function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var CommonBE,radioboxStyleValues,_typeof,bulletStyleValues,key,_createClass;(typeof KnotiaKnowledge5=="undefined"||KnotiaKnowledge5===null)&&(KnotiaKnowledge5={});KnotiaKnowledge5.CollectionType={Collection:1,SearchAll:2,Briefcase:3,News:4,SavedSearches:5,MyNotes:6};KnotiaKnowledge5.PageType={Document:10,SearchResults:20,SearchTemplate:30,Other:999};KnotiaKnowledge5.SearchType={Simple:1,Advanced:2,SearchAll:3,Rulings:4,TaxSubjectFile:5,ProvincialCase:6,TaxPrecedentLetter:7,Case:8,Annotations:9,SearchBriefcase:10,BrowseBriefcase:11,MostEmailed:14,Content:15,Matrix:16,Alerts:17,Commentary:18,ITATopicalIndex:19,NewsSearch:20,NewsSearchMostRecentDate:21,ChooseDateNews:22,SimpleNews:23,AdvancedNews:24,ChooseAlertLoadNews:25,NewsSearchPastNDays:26,CaseCommentaryTopicalIndex:27,RulingReviewTopicalIndex:28,ITACommentaryTopicalIndex:29,ETATopicalIndex:30,ETACommentaryTopicalIndex:31,NewsSearchDateRange:32,TaxRulesTopicalIndex:33,T1TopicalIndex:34,PurposeNotesTopicalIndex:35,HeuristicAnswerLibrary:36,SearchMyNotes:37,WealthAndEstatePlanning:38,TEXDocumentType:39,TEXMarketSegmentType:40,TEXDocumentTopic:41,TEXCountry:42,TEXTopicalIndex:43,TEXRevenueFocusTopicalIndex:44,TEXTaxPrecendentsTopicalIndex:45,TaxRatesAndTools:46,EnableFilterSearchByDocDate:47,EYNotesAndAnnotationsTool:48,NewsroomArchive:49,NotSpecified:0};KnotiaKnowledge5.TopicalIndexType={IncomeTax:1,TaxKnowledgeLibrary:2,CaseCommentary:3,RulingsReview:4,CaseCommentaryFrench:5,RulingsReviewFrench:6,Excise:7,ExciseCommentary:8,TaxRules:9,T1:10,PurposeNotes:11,TaxExchange:12,TaxExchangeRevenueFocus:13,TaxExchangeTaxPrecedent:14,NotSpecified:0};KnotiaKnowledge5.PinnedItemType={NOT_SET:0,Document:1,Search:2,Notes:3};NodeDataType={Unspecified:0,SearchResults:1,ViewCounts:2};KnotiaKnowledge5.AutomaticEmailNewsType={Disabled:0,PublishNewByDefaultUpdatesOnRequest:1,PublishAllByDefault:2,PublishAllOnRequest:3};_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();CommonBE=function(){function n(){_classCallCheck(this,n)}return _createClass(n,null,[{key:"getProductState",value:function(n){var t=LanguageType.ENGLISH;return typeof n.language=="string"&&(t=n.language),{name:n.name,link:n.link,isFetchable:n.isFetchable,productType:n.productType,productCategory:n.productCategory,language:t}}},{key:"getSuggestionState",value:function(n){return{name:n.name,link:n.link}}}]),n}();"use strict";var PageType={NOT_SET:0,KNOWLEDGE:1,HOME:2,SEARCHALL:3,NEWS:4,BRIEFCASE_DOCUMENTS:5,NOTES:6,PROFILE_PREFERENCE:7,LEARNING:8},ProductType={NOT_SET:0,KNOWLEDGE:1,NEWS:2,LEARNING:3,DOWNLOADS:4,TOOLS:5,URL:6,INTERNAL_URL:7},ProductCollectionType={KNOWLEDGE:"KNOWLEDGE",NEWS:"NEWS"},LanguageType={ENGLISH:"ENGLISH",FRENCH:"FRENCH"},SessionTrackerStatus={ACTIVE:"ACTIVE",INACTIVE:"INACTIVE"},SessionTrackerPreferencesStartUpOption={PROMOPT_TO_CHOOSE_A_CLIENT:1,START_MANUALLY:2,ALWAYS_START_WITH_GENERAL_RESEARCH:3},SessionTrackerModalTab={RECORD:"RECORD",MANAGE:"MANAGE"},SessionTrackerClientOptions={EXISTING_CLIENT:"EXISTING_CLIENT",NEW_CLIENT:"NEW_CLIENT"},SearchResultsSortOrder={TOC:"toc",RELEVANCY:"relevancy",DATE:"date"},SearchResultsSortOrderServerMapping={toc:SearchResultsSortOrder.TOC,relevancy:SearchResultsSortOrder.RELEVANCY,date:SearchResultsSortOrder.DATE},WordsAroundFirstHit={OFF:"OFF",LOW:"LOW",MEDIUM:"MEDIUM",HIGH:"HIGH"},DownloadDocumentOptions={DOCUMENT:"document",TOC_SELECTED_DOCUMENTS:"tocSelectedDocs",SEARCH_RESULTS_DOCUMENTS:"searchResultDocs",TAGGED_PARAGRAPHS:"taggedParagraphs",WORD_DOCUMENT:"wordDocument",PDF_DOCUMENT:"pdfDocument"},BriefcaseType={DOCUMENT:"document",SEARCH:"search"},BriefcaseDestinationType={EXISTING_FOLDER:"EXISTING_FOLDER",NEW_FOLDER:"NEW_FOLDER"},PrintOptions={DOCUMENT:"document",SELECTED_TEXT:"selectedText",TOC_SELECTED_DOCUMENTS:"tocSelectedDocs",SEARCH_RESULTS_DOCUMENTS:"searchResultDocs",TOC:"toc",TAGGED_PARAGRAPHS:"taggedParagraphs"},NavigationDirection={FORWARD:"FORWARD",REVERSE:"REVERSE"},SearchSuggestionType={FETCH:"FETCH",DOCUMENT:"DOCUMENT",ALL:"ALL",SEARCH_HISTORY:"SEARCH_HISTORY"},NodeCheckedStatusType={CHECKED:"CHECKED",UNCHECKED:"UNCHECKED",PARTIALLY_CHECKED:"PARTIALLY_CHECKED"},URLSearchParametersShortName={PRODUCT_ID:"PID",NEWS_PRODUCT_ID:"NPID",SEARCH_QUERY:"Q",SEARCH_FILTERS:"SF",TOC:"T",FETCH_ID:"FID",DRAFT_ALERT_ID:"DAID",ALERT_ID:"AID",EXECUTE_SEARCH_ID:"SID",MODAL:"M",SEARCH_TEMPLATE_ID:"STID",SEARCH_TYPE:"ST",SEARCH_PARAMETERS:"SP",TAB_ID:"T",POLICY:"Policy"},URLSearchParametersFullName={PRODUCT_ID:"ProductID",NEWS_PRODUCT_ID:"NewsProductID",SEARCH_QUERY:"SearchQuery",SEARCH_FILTERS:"SearchFilters",TOC:"TOC",FETCH_ID:"FetchID",DRAFT_ALERT_ID:"DraftAlertID",ALERT_ID:"AlertID",EXECUTE_SEARCH_ID:"ExecuteSearchID",MODAL:"Modal",SEARCH_TEMPLATE_ID:"SearchTemplateID",SEARCH_TYPE:"SearchType",SEARCH_PARAMETERS:"SearchParameters",TAB_ID:"TabID",POLICY:"Policy"},URLSearchParametersPolicyValues={TERMS_OF_USE:"TermsOfUse",EY_PRIVACY_POLICY:"EYPrivacyPolicy",CPA_PRIVACY_POLICY:"CPAPrivacyPolicy",EY_WEB_ACCESSIBILITY_STATEMENT:"EYWebAccessibilityStatement"},ProfileEditStatusType={NoEdit:0,LimitedEdit:10,FullEdit:20};_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();document.kNextReactComponents.Dropdown=function(n){function t(n){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return autobind(i),i}return _inherits(t,n),_createClass(t,null,[{key:"defaultProps",get:function(){return{active:!1,className:null,componentRef:null,children:null}}}]),_createClass(t,[{key:"render",value:function(){if(this.props.active!==!0)return null;var n="dropdown";return typeof this.props.className=="string"&&(n=n+" "+this.props.className),React.createElement("div",{className:n,ref:this.props.componentRef,componentname:"Dropdown"},this.props.children)}}]),t}(React.Component);_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();document.kNextReactComponents.FilterableSelect=function(n){function t(n){var i,r,u;return _classCallCheck(this,t),i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n)),autobind(i),r=document.kNextReact.HelperUtilities.convertArraytoObject(n.elements),u="",n.value!=null&&r[n.value]!=null&&(u=r[n.value]),i.state={valueText:u,tempValue:null,elements:r,renderElements:n.elements,expandedDropdown:!1},i}return _inherits(t,n),_createClass(t,null,[{key:"getDerivedStateFromProps",value:function(n,t){var i=t;return n.elements!=null&&(i.elements=document.kNextReact.HelperUtilities.convertArraytoObject(n.elements)),i.value=n.value,i.errorMessage=n.errorMessage,i}},{key:"defaultProps",get:function(){return{label:GetString("str_Component_defaultFilterableSelect"),placeholderText:GetString("str_Component_placeholderFilterableSelect"),elements:{},value:"",name:null,expandMaxHeight:300,onBlur:null,filterCaseSensitive:!1,required:!0,expandedDropDownZIndex:2}}}]),_createClass(t,[{key:"boxClick",value:function(n){this.setState({tempValue:n,expandedDropdown:!1},function(){this.onBlur()})}},{key:"onBlur",value:function(){this.setState({expandedDropdown:!1},function(){if(typeof this.props.onBlur=="function")this.props.onBlur(this.state.tempValue)})}},{key:"handleChange",value:function(n){var i=this.state.elements,r,u,t,f,e;ss;r={};u="";for(t in i)f=i[t],e=this.props.filterCaseSensitive?i[t]:i[t].toLowerCase(),e.indexOf(n.target.value.toLowerCase())>=0&&(u!=""?r[t]=f:(u=t,r[t]=f));this.setState({valueText:n.target.value,renderList:r,tempValue:u})}},{key:"searchBoxClick",value:function(){this.setState({valueText:"",expandedDropdown:!0,renderList:this.state.elements},function(){this.refs[this.props.value]!=null&&(window.test=this.refs[this.props.value],this.refs[this.props.value].parentNode.scrollTop=this.refs[this.props.value].offsetTop)})}},{key:"render",value:function(){var h=this,i=this.state.renderList,r=[],c=function(n){r.push(React.createElement("p",{key:n,ref:n,className:"select-option",onMouseDown:function(){return h.boxClick(n)}},i[n]))},u,o,s;for(u in i)c(u);var n="",t="",f=0,e="auto";return this.state.expandedDropdown?(n=this.state.valueText!=null?this.state.valueText:"",f=this.props.expandMaxHeight,e=this.props.expandedDropDownZIndex,typeof this.props.value=="string"&&this.state.elements[this.props.value]!=null&&(t=this.state.elements[this.props.value])):typeof this.props.placeholderText=="string"&&(t=this.props.placeholderText,typeof this.props.value=="string"&&this.state.elements[this.props.value]!=null&&(n=this.state.elements[this.props.value])),o=this.state.errorMessage!=""?React.createElement("div",{className:"input-error-message-box"},React.createElement("i",{className:"fa fa-exclamation-triangle","aria-hidden":"true"})," ",React.createElement("span",{className:"input-error-message"},this.state.errorMessage)," "):null,s=this.state.errorMessage!=""?"input search-select-input input-error":"input search-select-input",React.createElement("div",{className:"input-box",componentname:"FilterableSelect"},React.createElement("label",{className:"input-label"},this.props.label)," ",o," ",React.createElement("br",null),React.createElement("div",{className:"search-select-box"},React.createElement("div",{className:"search-box",onMouseDown:this.searchBoxClick},React.createElement("input",{className:s,type:"text",name:this.props.name,onChange:this.handleChange,value:n,placeholder:t,onBlur:this.onBlur}),React.createElement(document.kNextReactComponents.Icon,{iconType:IconType.SortDown})),React.createElement("div",{className:"options-box",style:{height:f,zIndex:e}},r)))}}]),t}(React.Component);document.kNextReactComponents.FilterableSelect.propTypes={label:PropTypes.string,placeholder:PropTypes.string,elements:PropTypes.oneOfType([PropTypes.object,PropTypes.array]),value:PropTypes.string,name:PropTypes.string.isRequired,height:PropTypes.number,onBlur:PropTypes.func.isRequired,filterCaseSensitive:PropTypes.bool,errorRequiredText:PropTypes.string,required:PropTypes.bool};_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();document.kNextReactComponents.SimpleSelect=function(n){function t(n){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return autobind(i),i}return _inherits(t,n),_createClass(t,null,[{key:"defaultProps",get:function(){return{values:{},value:null,className:null,disabled:!1,required:!0,selectClassName:null,domRef:null,onClickWireUp:null,onBlurWireUp:null,onInitialClickWireUp:null,label:"",id:"select",name:"name-for-select",order:[],errorMessage:"",errorPositionRelativeToSelect:ErrorPosition.AboveElement,hideBlankOption:!1,displayRedAsterisk:!1}}}]),_createClass(t,[{key:"handleClick",value:function(n){if(n!=null&&n.target!=null&n.target.value!=null)this.props.onClickWireUp(n.target.value)}},{key:"generateOptionsAsIs",value:function(){var t=[],n,i,r;for(n in this.props.values)i=this.props.values[n],r=React.createElement("option",{key:n,value:n},i),Globals.Utilities.arrayPush(t,r);return t}},{key:"generateOptionsInOrder",value:function(){var t=[],r=this.props.order.length,n;for(this.props.hideBlankOption||Globals.Utilities.arrayPush(t,React.createElement("option",{key:"-1",value:"",hidden:!0})),n=0;n<r;n++){var i=this.props.order[n],u=this.props.values[i],f=React.createElement("option",{key:i,value:i},u);Globals.Utilities.arrayPush(t,f)}return t}},{key:"render",value:function(){var i="input-group simple-select dropdown",n,r,u,o,t,s;typeof this.props.className=="string"&&(i=i+" "+this.props.className);n="";typeof this.props.selectClassName=="string"&&(n=n+" "+this.props.selectClassName);this.props.errorMessage.length>0&&(n+=" input-error");r=[];r=this.props.order.length>0?this.generateOptionsInOrder():this.generateOptionsAsIs();var f="asterisk"+this.props.id,h=this.props.displayRedAsterisk?React.createElement("span",{id:f,key:f,className:"red"},"*"):null,e=[];return this.props.label.length>0&&(u="label-for-"+this.props.id,o=React.createElement("label",{key:u,htmlFor:u,className:"input-label","aria-label":this.props.label},h,this.props.label),Globals.Utilities.arrayPush(e,o)),t=[],this.props.errorMessage.length>0&&(t=React.createElement("div",{className:"error-message-container"},React.createElement("i",{key:"text-input-error-icon",className:"fa fa-exclamation-triangle error-icon","aria-hidden":!1}),React.createElement("span",{id:"error-for-"+this.props.name,key:"text-input-error-message",className:"input-error-message"},this.props.errorMessage))),s="div-for-"+this.props.id,React.createElement("div",{className:i,componentname:"SimpleSelect",key:s},e,this.props.errorPositionRelativeToSelect==ErrorPosition.AboveElement?t:null,React.createElement("select",{id:this.props.id,name:this.props.name,"aria-label":"label for the select",className:n,value:this.props.value,onChange:this.handleClick,onClick:this.props.onInitialClickWireUp,onBlur:this.props.onBlurWireUp,disabled:this.props.disabled,ref:this.props.domRef},r),this.props.errorPositionRelativeToSelect==ErrorPosition.BelowElement?t:null)}}]),t}(React.Component);_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();document.kNextReactComponents.FilterableSelect_RadioButtonArray=function(n){function t(n){var i,r;return _classCallCheck(this,t),i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n)),autobind(i),r=!1,i.props.usePropValueForSelectButtonActive&&!Globals.Utilities.isUndefinedOrNull(i.props.selectButtonActive)&&(r=i.props.selectButtonActive),i.state={showDropdown:r},i}return _inherits(t,n),_createClass(t,null,[{key:"defaultProps",get:function(){return{enableScrolling:!1,disabled:!1,className:"",usePropValueForSelectButtonActive:!1,selectButtonActive:null,buttonID:"filterable-select-radio-button-array-select-button",selectButtonLabel:GetString("str_PleaseSelectAnOptionBelow"),sortedPkgValues:[],modifiedValues:{},filterText:"",selected:"",label:GetString("str_Component_defaultRadioButtonList"),numColumns:1,placeholder:"",isFilterable:!0,textInputRightIconClass:null,textInputLeftIconClass:null,onTextInputLabelIconClickWireUp:null,handleRadioButtonClick:null,handleFilterTextChangeWireUp:null,handleSelectButtonClickWireUp:null}}}]),_createClass(t,[{key:"componentDidUpdate",value:function(n,t){!t.showDropdown&&this.state.showDropdown&&this.props.enableScrolling&&document.querySelector("#"+this.props.buttonID).scrollIntoView({behavior:"smooth"})}},{key:"onSelectButtonClick",value:function(){if(!this.props.disabled){var n=!this.state.showDropdown;!n&&this.props.isFilterable&&this.props.handleFilterTextChangeWireUp("");this.setState({showDropdown:n});typeof this.props.handleSelectButtonClickWireUp=="function"&&this.props.handleSelectButtonClickWireUp(n)}}},{key:"onRadioButtonClick",value:function(n){this.props.handleRadioButtonClick(n);this.setState({showDropdown:!1});typeof this.props.handleSelectButtonClickWireUp=="function"&&this.props.handleSelectButtonClickWireUp(!1)}},{key:"render",value:function(){var r=this,n="select-button",i="fal fa-chevron-down",t="select-options-box";return this.props.disabled?(n+=" disabled",t+=" hidden"):this.state.showDropdown?(i="fal fa-chevron-up",n+=" select-button-active"):t+=" hidden",React.createElement("div",{className:"filterable-select-radio-button-array "+this.props.className,componentname:"FilterableSelect_RadioButtonArray"},React.createElement("div",{className:n,id:this.props.buttonID,onClick:this.onSelectButtonClick,onKeyPress:function(n){n.key==="Enter"&&r.onSelectButtonClick()}},React.createElement("span",{className:"select-button-text"},this.props.selectButtonLabel),React.createElement(document.kNextReactComponents.Icon,{iconClassName:i})),React.createElement("div",{className:t},React.createElement(document.kNextReactComponents.FilterableRadioList,{sortedPkgValues:this.props.sortedPkgValues,modifiedValues:this.props.modifiedValues,filterText:this.props.filterText,selected:this.props.selected,label:this.props.label,isFilterable:this.props.isFilterable,placeholder:this.props.placeholder,numColumns:this.props.numColumns,handleRadioButtonClick:this.onRadioButtonClick,handleFilterTextChangeWireUp:this.props.handleFilterTextChangeWireUp,textInputRightIconClass:this.props.textInputRightIconClass,textInputLeftIconClass:this.props.textInputLeftIconClass,onTextInputRightIconClickWireUp:this.props.onTextInputRightIconClickWireUp})))}}],[{key:"getDerivedStateFromProps",value:function(n,t){return n.disabled?{showDropdown:!1}:n.usePropValueForSelectButtonActive&&!Globals.Utilities.isUndefinedOrNull(n.selectButtonActive)?{showDropdown:n.selectButtonActive}:t}}]),t}(React.Component);_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();document.kNextReactComponents.FilterableSelect_CheckboxArray=function(n){function t(n){var i,r;return _classCallCheck(this,t),i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n)),autobind(i),r=!1,i.props.usePropValueForSelectButtonActive&&!Globals.Utilities.isUndefinedOrNull(i.props.selectButtonActive)&&(r=i.props.selectButtonActive),i.state={showDropdown:r},i}return _inherits(t,n),_createClass(t,null,[{key:"defaultProps",get:function(){return{enableScrolling:!1,disabled:!1,className:"",usePropValueForSelectButtonActive:!1,selectButtonActive:null,buttonID:"filterable-select-checkbox-array-select-button",selectButtonLabel:GetString("str_PleaseSelectAnOptionBelow"),sortedPkgValues:[],modifiedValues:{},filterText:"",selectionHelperLinksActive:!1,label:GetString("str_Component_defaultCheckboxList"),numColumns:1,placeholder:"",isFilterable:!0,textInputRightIconClass:null,textInputLeftIconClass:null,handleCheckBoxClickWireUp:null,handleFilterTextChangeWireUp:null,handleSelectButtonClickWireUp:null}}}]),_createClass(t,[{key:"componentDidUpdate",value:function(n,t){!t.showDropdown&&this.state.showDropdown&&this.props.enableScrolling&&document.querySelector("#"+this.props.buttonID).scrollIntoView({behavior:"smooth"})}},{key:"onSelectButtonClick",value:function(){if(!this.props.disabled){var n=!this.state.showDropdown;!n&&this.props.isFilterable&&this.props.handleFilterTextChangeWireUp("");this.setState({showDropdown:n});typeof this.props.handleSelectButtonClickWireUp=="function"&&this.props.handleSelectButtonClickWireUp(n)}}},{key:"render",value:function(){var i=this,n="select-button",r="fal fa-chevron-down",t="select-options-box";return this.props.disabled?(n+=" disabled",t+=" hidden"):this.state.showDropdown?(r="fal fa-chevron-up",n+=" select-button-active"):t+=" hidden",React.createElement("div",{className:"filterable-select-checkbox-array "+this.props.className,componentname:"FilterableSelect_CheckboxArray"},React.createElement("div",{className:n,id:this.props.buttonID,onClick:this.onSelectButtonClick,onKeyPress:function(n){n.key==="Enter"&&i.onSelectButtonClick()}},React.createElement("span",{className:"select-button-text"},this.props.selectButtonLabel),React.createElement(document.kNextReactComponents.Icon,{iconClassName:r})),React.createElement("div",{className:t},React.createElement(document.kNextReactComponents.FilterableCheckboxList,{selectionHelperLinksActive:this.props.selectionHelperLinksActive,sortedPkgValues:this.props.sortedPkgValues,modifiedValues:this.props.modifiedValues,filterText:this.props.filterText,label:this.props.label,isFilterable:this.props.isFilterable,placeholder:this.props.placeholder,numColumns:this.props.numColumns,handleCheckBoxClickWireUp:this.props.handleCheckBoxClickWireUp,onKeyDownWireUp:function(n,t){n.key==="Enter"&&i.props.handleCheckBoxClickWireUp(t)},handleFilterTextChangeWireUp:this.props.handleFilterTextChangeWireUp,textInputRightIconClass:this.props.textInputRightIconClass,textInputLeftIconClass:this.props.textInputLeftIconClass,onTextInputRightIconClickWireUp:this.props.onTextInputRightIconClickWireUp})))}}],[{key:"getDerivedStateFromProps",value:function(n,t){return n.disabled?{showDropdown:!1}:n.usePropValueForSelectButtonActive&&!Globals.Utilities.isUndefinedOrNull(n.selectButtonActive)?{showDropdown:n.selectButtonActive}:t}}]),t}(React.Component);_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();document.kNextReactComponents.FilterableCheckboxList=function(n){function t(n){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return autobind(i),i}return _inherits(t,n),_createClass(t,null,[{key:"defaultProps",get:function(){return{sortedPkgValues:[],modifiedValues:{},filterText:"",className:"",label:GetString("str_Component_defaultCheckboxList"),CheckBoxStyle:CheckBoxStyle.Primary,boxed:!1,numColumns:1,isFilterable:!0,selectionHelperLinksActive:!0,handleCheckBoxClickWireUp:null,handleFilterTextChangeWireUp:null,handleSelectAllClickWireUp:null,handleClearSelectionClickWireUp:null,onKeyDownWireUp:null}}}]),_createClass(t,[{key:"handleCheckBoxClick",value:function(n){typeof this.props.handleCheckBoxClickWireUp=="function"&&this.props.handleCheckBoxClickWireUp(n)}},{key:"handleFilterTextChange",value:function(n){typeof this.props.handleFilterTextChangeWireUp=="function"&&this.props.handleFilterTextChangeWireUp(n)}},{key:"handleSelectAllClick",value:function(){typeof this.props.handleSelectAllClickWireUp=="function"&&this.props.handleSelectAllClickWireUp()}},{key:"handleClearSelectionClick",value:function(){typeof this.props.handleClearSelectionClickWireUp=="function"&&this.props.handleClearSelectionClickWireUp()}},{key:"handleKeyDown",value:function(n,t){if(typeof this.props.onKeyDownWireUp=="function")this.props.onKeyDownWireUp(n,t)}},{key:"pushValueToCheckboxList",value:function(n,t,i){var s=this,r="checkbox checkbox-primary",e="checkmark",u=n[t].id,o,f;switch(this.props.CheckBoxStyle){case CheckBoxStyle.Secondary:r="checkbox checkbox-secondary";break;case CheckBoxStyle.Dark:r="checkbox checkbox-dark";break;case CheckBoxStyle.Primary:default:r="checkbox checkbox-primary"}o=this.props.modifiedValues[u];e=o.checked===!0?"checkmark checked":"checkmark";f=o.disabled===!0;f&&(r+=" disabled",e+=" disabled");i.push(React.createElement("label",{tabIndex:"0",key:u,className:r,onKeyDown:function(n){f||s.handleKeyDown(n,u)},onClick:function(){f||s.handleCheckBoxClick(u)}},n[t].name,React.createElement("span",{className:e})))}},{key:"generateCheckBoxes",value:function(){var u=this.props.sortedPkgValues,n=this.props.numColumns,c,i,s;(typeof n!="number"||n<=0||n>12)&&(n=1);var a=u.length,f=0,h=this.props.modifiedValues;for(c in h)h[c].hidden||f++;var t=Math.ceil(f/n),e=f-t,l="col-xs-"+(12/n).toString(),o=[],r=[];for(i=0;i<a;i++)(s=u[i].id,this.props.modifiedValues[s]!=null&&this.props.modifiedValues[s].hidden!==!0)&&(t>0?(this.pushValueToCheckboxList(u,i,r),t=t-1):(o.push(React.createElement("div",{key:n,className:l},r)),r=[],n=n-1,t=Math.ceil(e/n)-1,e=e-t,this.pushValueToCheckboxList(u,i,r)));return o.push(React.createElement("div",{key:t,className:l},r)),React.createElement("div",{key:"checkBoxArrayGroup",className:"select-options-list row"},o)}},{key:"render",value:function(){var n=[],t=this.props.label!=null?React.createElement("p",null,this.props.label):null,i=React.createElement("div",{className:"input-group"},this.generateCheckBoxes());return n=this.props.isFilterable===!0?this.props.selectionHelperLinksActive?React.createElement("div",{className:"filterable-checkbox-array "+this.props.className,componentname:"FilterableCheckboxList"},React.createElement(document.kNextReactComponents.TextInput,{key:"filter-input",className:"input filter-text",label:null,required:!1,onChangeWireUp:this.handleFilterTextChange,value:this.props.filterText,placeholder:this.props.placeholder}),React.createElement("div",{className:"selection-helper-links"},React.createElement(document.kNextReactComponents.Link,{link:null,onClickWireUp:this.handleSelectAllClick,text:GetString("str_SelectAll")}),"    ",React.createElement(document.kNextReactComponents.Link,{link:null,onClickWireUp:this.handleClearSelectionClick,text:GetString("str_ClearSelection")})),t,i):React.createElement("div",{className:"filterable-checkbox-array "+this.props.className,componentname:"FilterableCheckboxList"},React.createElement(document.kNextReactComponents.TextInput_SideIcon,{key:"filter-input",className:"input filter-text",label:null,required:!1,onChangeWireUp:this.handleFilterTextChange,value:this.props.filterText,placeholder:this.props.placeholder,leftIconClass:this.props.textInputLeftIconClass,rightIconClass:"fa fa-times",onRightIconClickWireUp:this.props.onTextInputRightIconClickWireUp}),t,i):React.createElement("div",{className:"filterable-checkbox-array "+this.props.className,componentname:"FilterableCheckboxList"},t,i),this.props.boxed!==null&&typeof this.props.boxed!="undefined"&&this.props.boxed===!0&&(n=React.createElement("div",{className:"paper-box "+this.props.className,componentname:"FilterableCheckboxList"},n)),n}}]),t}(React.Component);_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();document.kNextReactComponents.FilterableRadioList=function(n){function t(n){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return autobind(i),i}return _inherits(t,n),_createClass(t,null,[{key:"defaultProps",get:function(){return{sortedPkgValues:[],modifiedValues:{},selected:null,filterText:"",placeholder:null,label:GetString("str_Component_defaultRadioButtonList"),numColumns:1,isFilterable:!0,textInputRightIconClass:null,textInputLeftIconClass:null,onTextInputRightIconClickWireUp:null,handleFilterTextChangeWireUp:null,handleRadioButtonClick:null}}}]),_createClass(t,[{key:"handleFilterTextChange",value:function(n){typeof this.props.handleFilterTextChangeWireUp=="function"&&this.props.handleFilterTextChangeWireUp(n)}},{key:"pushValueToRadioList",value:function(n,t,i){var u=this,r=n[t].id,f=this.props.selected===r,e=React.createElement("div",{tabIndex:0,key:r,className:"radio-button-container "+f,onClick:function(){return u.props.handleRadioButtonClick(r)},onKeyPress:function(n){n.key==="Enter"&&u.props.handleRadioButtonClick(r)}},React.createElement(document.kNextReactComponents.Radio,{tabIndex:-1,name:r,text:n[t].name,checked:f}));i.push(e)}},{key:"generateRadioBoxes",value:function(){var u=this.props.sortedPkgValues,n=this.props.numColumns,c,i,s;(typeof n!="number"||n<=0||n>12)&&(n=1);var a=u.length,e=0,h=this.props.modifiedValues;for(c in h)h[c].hidden||e++;var t=Math.ceil(e/n),f=e-t,l="col-xs-"+(12/n).toString(),o=[],r=[];for(i=0;i<a;i++)(s=u[i].id,this.props.modifiedValues[s]!==null&&this.props.modifiedValues[s].hidden!==!0)&&(t>0?(this.pushValueToRadioList(u,i,r),t=t-1):(o.push(React.createElement("div",{key:f,className:l},r)),r=[],n=n-1,t=Math.ceil(f/n)-1,f=f-t,this.pushValueToRadioList(u,i,r)));return o.push(React.createElement("div",{key:t,className:l},r)),React.createElement("div",{key:"radioBoxArrayGroup",className:"select-options-list row"},o)}},{key:"render",value:function(){var n=this.props.label!=null?React.createElement("p",null,this.props.label):null,t=React.createElement("div",{className:"input-group"},this.generateRadioBoxes());return this.props.isFilterable===!0?React.createElement("div",{className:"filterable-radio-array",componentname:"FilterableRadioList"},React.createElement(document.kNextReactComponents.TextInput_SideIcon,{key:"filter-input",className:"input filter-text",label:null,required:!1,onChangeWireUp:this.handleFilterTextChange,value:this.props.filterText,placeholder:this.props.placeholder,leftIconClass:this.props.textInputLeftIconClass,rightIconClass:this.props.textInputRightIconClass,onRightIconClickWireUp:this.props.onTextInputRightIconClickWireUp}),n,t):React.createElement("div",{className:"filterable-radio-array",componentname:"FilterableRadioList"},n,t)}}]),t}(React.Component);_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();document.kNextReactComponents.RadioButtonList=function(n){function t(n){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return autobind(i),i.elementRefs=[],i.elementRefOrder={},i}return _inherits(t,n),_createClass(t,null,[{key:"defaultProps",get:function(){return{value:"",values:{},valueOrder:[],name:null,label:GetString("str_Component_defaultRadioButtonList"),description:null,className:null,required:!0,errorMessage:null,RadioBoxStyle:RadioBoxStyle.Primary,ContainerClassName:null,DescriptionPosition:DescriptionPosition.BelowLabel,firstElementRef:null,focusSelectedElement:!1,setFirstElementRefWireUp:null,onClickWireUp:null}}}]),_createClass(t,[{key:"componentDidMount",value:function(){this.elementRefs[0]!=null&&typeof this.props.setFirstElementRefWireUp=="function"&&this.props.setFirstElementRefWireUp(this.elementRefs[0])}},{key:"componentDidUpdate",value:function(){if(this.props.focusSelectedElement){var t=this.elementRefOrder[this.props.value],n=this.elementRefs[t];Globals.Utilities.isUndefinedOrNull(n)||!Globals.Utilities.isUndefinedOrNull(n.current)||n.current.focus()}}},{key:"handleClick",value:function(n){if(typeof this.props.onClickWireUp=="function")this.props.onClickWireUp(n)}},{key:"handleUpArrowKeyPress",value:function(n){for(var t=n-1,i=!1,u=Globals.Utilities.getObjectKeysAsArray(this.props.values),r;t>=0;){if(r=u[t],!this.props.values[r].disabled){i=!0;break}t--}i&&this.elementRefs[t].current.focus()}},{key:"handleDownArrowKeyPress",value:function(n){for(var t=n+1,i=!1,r=Globals.Utilities.getObjectKeysAsArray(this.props.values),u;t<r.length;){if(u=r[t],!this.props.values[u].disabled){i=!0;break}t++}i&&this.elementRefs[t].current.focus()}},{key:"handleKeyPress",value:function(n,t,i){switch(n.keyCode){case 32:this.props.onClickWireUp(t);break;case 40:n.preventDefault();this.handleDownArrowKeyPress(i);break;case 38:n.preventDefault();this.handleUpArrowKeyPress(i)}}},{key:"addRadioToRadioBoxesDOM",value:function(n,t,i,r){var e=this,u=i,o=r,s=u===this.props.value,h=u,f,c;t[u].value!==null&&typeof t[u].value!="undefined"&&(h=t[u].value);f="radio radio-primary";switch(this.props.RadioBoxStyle){case RadioBoxStyle.Secondary:f="radio radio-secondary";break;case RadioBoxStyle.Dark:f="radio radio-dark";break;case RadioBoxStyle.Primary:default:f="radio radio-primary"}c=React.createRef();this.elementRefs[o]=c;this.elementRefOrder[u]=o;var l=!0,y=null,a=null,v="radio-option disabled";t[u].disabled||(l=!1,y=function(n){e.handleKeyPress(n,u,o)},a=function(){return e.handleClick(u)},v="radio-option");this.props.ContainerClassName&&(v+=" "+this.props.ContainerClassName);switch(this.props.DescriptionPosition){case DescriptionPosition.BesideLabel:n.push(React.createElement("li",{key:u,className:v,onKeyDown:y,disabled:l,ref:c,tabIndex:0,"aria-disabled":l,"aria-checked":s,"aria-label":t[u].label,role:"radio",onClick:a,onKeyPress:function(n){n.key==="Enter"&&a()}},React.createElement(document.kNextReactComponents.Radio,{checked:s,text:t[u].label,disabled:t[u].disabled,tabIndex:-1,descriptionText:t[u].description})));break;case DescriptionPosition.BelowLabel:default:n.push(React.createElement("div",{key:u,className:f,onClick:function(){return e.props.onClickWireUp(h)},onKeyPress:function(n){if(n.key==="Enter")e.props.onClickWireUp(h)},tabIndex:0},React.createElement("div",{className:"radio-label-box"},React.createElement(document.kNextReactComponents.Radio,{checked:s,text:t[u].label,disabled:t[u].disabled,tabIndex:-1})),React.createElement("div",{className:"description below-label"},t[u].description)))}}},{key:"generateRadioBoxes",value:function(){var i=this.props.values,r=this.props.valueOrder,u=[],n=0,t,h,c,l,e;if(!Globals.Utilities.isUndefinedOrNull(r)&&r.length>0){var f=!0,o=!1,s=undefined;try{for(t=r[Symbol.iterator]();!(f=(h=t.next()).done);f=!0)c=h.value,this.addRadioToRadioBoxesDOM(u,i,c,n),n++}catch(a){o=!0;s=a}finally{try{!f&&t.return&&t.return()}finally{if(o)throw s;}}}else for(l in i)this.addRadioToRadioBoxesDOM(u,i,l,n),n++;return e="select-options-list radiobutton-list ",typeof this.props.className=="string"&&(e=e+this.props.className),u}},{key:"render",value:function(){var n="fa fa-exclamation-triangle error-icon hidden",t;return typeof this.props.errorMessage=="string"&&this.props.errorMessage!==""&&(n="fa fa-exclamation-triangle error-icon"),t=React.createElement("span",null,React.createElement("i",{className:n,"aria-hidden":"true"}),React.createElement("span",{className:"input-error-message"},this.props.errorMessage)),React.createElement("div",{className:"input-group radio-list",componentname:"RadioButtonList"},React.createElement("p",{className:"title"},this.props.label," ",t),React.createElement("p",{className:"group-description"},this.props.description),React.createElement("ul",{id:"",role:"radiogroup","aria-labelledby":"",className:"select-options-list no-bullet"},this.generateRadioBoxes()))}}]),t}(React.Component);radioboxStyleValues=[];for(key in RadioBoxStyle)radioboxStyleValues.push(RadioBoxStyle[key]);document.kNextReactComponents.RadioButtonList.propTypes={value:PropTypes.string,values:PropTypes.object,label:PropTypes.string,RadioBoxStyle:PropTypes.oneOf(radioboxStyleValues),onClickWireUp:PropTypes.func.isRequired};_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();document.kNextReactComponents.UnorderedList=function(n){function t(n){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return autobind(i),i}return _inherits(t,n),_createClass(t,null,[{key:"defaultProps",get:function(){return{ItemList:null,BulletStyle:BulletStyle.Arrow,onClickWireUp:null}}}]),_createClass(t,[{key:"createItems",value:function(){var u=[],t,n,i,r;if(Globals.Utilities.isArray(this.props.ItemList)&&this.props.ItemList.length>0){for(t=0;t<this.props.ItemList.length;t++)n=this.props.ItemList[t],i=[],(typeof n=="undefined"?"undefined":_typeof(n))==="object"&&"link"in n?(r="list-item ",typeof n.className=="string"&&n.className!==""&&(r=r+n.className),i.push(this.generateLink(t,n))):i.push(React.createElement("span",{key:"text"},n)),(typeof n=="undefined"?"undefined":_typeof(n))==="object"&&"descriptionText"in n&&i.push(React.createElement("div",{key:"description-text",className:"description-text"},n.descriptionText)),u.push(React.createElement("li",{className:"list-item",key:t},i));return u}return null}},{key:"generateLink",value:function(n,t){var u=t.className!=null?t.className:"",f=typeof this.props.onClickWireUp=="function",e=this.props.onClickWireUp,i=t.external===undefined?!1:t.external,o=i===!0&&t.showExternalIcon===!0?!0:!1,r=null;return f&&t.id!=null&&!t.preventClick&&(r=function(){return e(t.id)}),React.createElement(document.kNextReactComponents.Link,{onClickWireUp:r,key:n,className:u,link:t.link,text:t.text,tooltip:t.tooltip,external:i,showExternalIcon:o})}},{key:"render",value:function(){var n="arrow-bullet";switch(this.props.BulletStyle){case BulletStyle.Square:n="square-bullet";break;case BulletStyle.Circle:n="circle-bullet";break;case BulletStyle.None:n="no-bullet";break;case BulletStyle.Arrow:default:n="arrow-bullet"}return React.createElement("div",{className:"input-group unordered-list",componentname:"UnorderedList"},React.createElement("ul",{className:n},this.createItems()))}}]),t}(React.Component);bulletStyleValues=[];for(key in BulletStyle)bulletStyleValues.push(BulletStyle[key]);document.kNextReactComponents.UnorderedList.propTypes={ItemList:PropTypes.array.isRequired,BulletStyle:PropTypes.oneOf(bulletStyleValues),onClick:PropTypes.func};_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();document.kNextReactComponents.StructuredLinkList=function(n){function t(n){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return autobind(i),i}return _inherits(t,n),_createClass(t,null,[{key:"defaultProps",get:function(){return{className:null,BulletStyle:BulletStyle.Arrow,structuredLinks:[{text:"Canadian Tax",secondaryHeader:[{text:"English",linkArray:[{id:170,link:"https://google.ca",text:"Customs and Trade Navigator"},{id:168,link:"https://google.ca",text:"Federal Income Tax Navigator"},{id:1,link:"https://google.ca",text:"GST/HST and Excise Navigator"},{id:1,link:"https://google.ca",text:"Provincial Taxes Navigator"},{id:1,link:"https://google.ca",text:"EY's Guide to Preparing 2019 Personal Tax Returns (T1)"}]},{text:"French",linkArray:[{id:1,link:"https://google.ca",text:"Comment gérer vos impôts personnels"},{id:1,link:"https://google.ca",text:"Livres électroniques pouvant être téléchargés"},{id:1,link:"https://google.ca",text:"Navigateur Douanes et commerce extérieur"},{id:1,link:"https://google.ca",text:"Navigateur Impôt et taxes provinciaux"}]}]}],onLinkClickWireUp:null}}}]),_createClass(t,[{key:"generateHeaderLinks",value:function(n){for(var r=[],i,u,t=0;t<n.length;t++)(i=n[t],i.linkArray.length<1)||(u=React.createElement("div",{className:"header-link-group",key:t},React.createElement("p",{className:"header-text"},i.text),React.createElement(document.kNextReactComponents.UnorderedList,{ItemList:i.linkArray,BulletStyle:this.props.BulletStyle,onClickWireUp:this.props.onLinkClickWireUp})),r.push(u));return r}},{key:"generateLinks",value:function(){var i=this.props.structuredLinks,t,r,n,u,f;if(Globals.Utilities.isUndefinedOrNull(i)||Globals.Utilities.getObjectKeysAsArray(i).length<=0)return console.log("invalid link lists structure"),null;t=[];for(r in i){if(n=i[r],n.link!=null)return t.push(React.createElement(document.kNextReactComponents.UnorderedList,{key:"linksList",ItemList:this.props.structuredLinks,BulletStyle:this.props.BulletStyle,onClickWireUp:this.props.onLinkClickWireUp})),t;n.linkArray!=null?(u=React.createElement("div",{className:"",key:r},React.createElement("p",{className:"header-text"},n.text),React.createElement(document.kNextReactComponents.UnorderedList,{ItemList:n.linkArray,BulletStyle:this.props.BulletStyle,onClickWireUp:this.props.onLinkClickWireUp})),t.push(u)):n.secondaryHeader!=null&&(f=React.createElement("div",{className:"nested-header-link-group",key:r},React.createElement("p",{className:"header-text"},n.text),this.generateHeaderLinks(n.secondaryHeader)),t.push(f))}return t}},{key:"render",value:function(){var n="structured-link-list ";return typeof this.props.className=="string"&&(n=n+this.props.className),React.createElement("div",{className:n,componentname:"StructuredLinkList"},React.createElement("div",{className:"structured-link-list"},this.generateLinks()))}}]),t}(React.Component);_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();document.kNextReactComponents.ImageTileList=function(n){function t(n){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return autobind(i),i}return _inherits(t,n),_createClass(t,null,[{key:"defaultProps",get:function(){return{className:"",values:[{text:"Please pass",imgSrc:null,link:null,showExternalIcon:!1},{text:"props for",imgSrc:null,link:null,showExternalIcon:!1},{text:"image tile list.",imgSrc:null,link:null,showExternalIcon:!1}],numberOfCols:2,onTileClickWireUp:null}}}]),_createClass(t,[{key:"handleOnClick",value:function(n,t){if(typeof this.props.onTileClickWireUp=="function")this.props.onTileClickWireUp(this.props.values[t])}},{key:"render",value:function(){for(var r=this,u=this.props.numberOfCols,f=this.props.values,e=[],l="col-md-"+12/u,o=f.length,i=0,n=0,t,c;o-n>0;){var a=o-n,s=Math.ceil(a/(u-i)),h=[],v=function(n){var t=f[n];h.push(React.createElement("div",{className:"home-tools-card",key:n,tabIndex:0,onKeyDown:function(t){(t.key==="Enter"||t.keyCode==32)&&(t.preventDefault(),r.handleOnClick(t,n))},onClick:function(t){r.handleOnClick(t,n)},role:"link","aria-label":t.text},React.createElement("div",{className:"home-tools-card-image"},React.createElement("img",{src:t.imgSrc,alt:"",className:"home-tools-img"})),React.createElement("div",{className:"home-tools-card-body"},React.createElement(document.kNextReactComponents.Link,{text:t.text,tabIndex:-1,link:null,showExternalIcon:t.showExternalIcon,external:t.showExternalIcon}))))};for(t=n;t<n+s;t++)v(t);e.push(React.createElement("div",{key:i,className:l},h));n=n+s;i++}return c="image-link-tiles "+this.props.className,React.createElement("div",{className:c,componentname:"ImageTileList"},e)}}]),t}(React.Component);_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();document.kNextReactComponents.LinkGridList=function(n){function t(n){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return autobind(i),i}return _inherits(t,n),_createClass(t,null,[{key:"defaultProps",get:function(){return{className:"",values:[{text:"Please pass",link:null,showExternalIcon:!1},{text:"props for",link:null,showExternalIcon:!1},{text:"link grid list.",link:null,showExternalIcon:!1}],numberOfCols:2,onLinkClickWireUp:null}}}]),_createClass(t,[{key:"handleLinkClick",value:function(n,t){if(typeof this.props.onLinkClickWireUp=="function")this.props.onLinkClickWireUp(this.props.values[t])}},{key:"render",value:function(){for(var u=this,f=this.props.numberOfCols,e=this.props.values,o=[],i=12/f,l="link-grid-list col-sm-"+i+" col-md-"+i+" col-lg-"+i,s=e.length,r=0,n=0,t;s-n>0;){var h=Math.ceil((s-n)/(f-r)),c=[],a=function(n){var t=e[n],f=null,i=null,r;typeof u.props.onLinkClickWireUp=="function"?i=function(t){u.handleLinkClick(t,n)}:f=t.link;r=null;t.showExternalIcon&&(r=React.createElement(document.kNextReactComponents.Icon,{iconClassName:"fal fa-external-link",additionalClasses:"external"}));c.push(React.createElement("div",{className:"link-box",key:n},React.createElement("a",{tabIndex:0,href:f,alt:"",className:"link",onClick:i,onKeyDown:function(n){(n.key==="Enter"||n.keyCode===32)&&(n.preventDefault(),i(n))}},t.text),r))};for(t=n;t<n+h;t++)a(t);o.push(React.createElement("div",{key:r,className:l},c));n=n+h;r++}return React.createElement("div",{className:"link-grid row "+this.props.className,componentname:"LinkGridList"},o)}}]),t}(React.Component);_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();document.SiteOptionsDropdown=function(n){function t(n){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return autobind(i),i.wrapperRef=React.createRef(),i.setWrapperRef=i.setWrapperRef.bind(i),i}return _inherits(t,n),_createClass(t,null,[{key:"defaultProps",get:function(){return{active:!1,name:"Expandable Tab",className:"",links:[{id:"id_forgot",link:"https://www.ey.com/en_ca",text:"You forgot"},{id:"id_links",link:"https://www.ey.com/en_ca",text:"to add links"}],domRef:null,onClickWireUp:null,onLinkClickWireUp:null}}}]),_createClass(t,[{key:"componentDidUpdate",value:function(n){n.active===!1&&this.props.active===!0?document.addEventListener("click",this.handleClickOutside):n.active===!0&&this.props.active===!1&&document.removeEventListener("click",this.handleClickOutside)}},{key:"setWrapperRef",value:function(n){this.wrapperRef=n}},{key:"handleClickOutside",value:function(n){this.wrapperRef==null||typeof this.wrapperRef.contains!="function"||this.wrapperRef.contains(n.target)||typeof this.props.onClickWireUp!="function"||this.props.onClickWireUp()}},{key:"handleKeyPress",value:function(n){n.key==="Enter"&&this.props.onClickWireUp()}},{key:"handleKeyDown",value:function(n){if(typeof this.props.onKeyDownWireUp=="function")this.props.onKeyDownWireUp(n)}},{key:"render",value:function(){var t="icon-box header-hover-element ",n,i;return this.props.active&&(t="icon-box header-hover-element active "),n="site-option-dropdown ",typeof this.props.className=="string"&&n!==""&&(n=n+this.props.className),i=null,React.createElement("div",{className:n,componentname:"SiteOptionsDropdown"},React.createElement("div",{className:t,onClick:this.props.onClickWireUp,tabIndex:0,ref:this.props.domRef,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress},this.props.children),React.createElement(document.kNextReactComponents.Dropdown,{className:"navigation dark",active:this.props.active,zIndex:1,componentRef:this.setWrapperRef},React.createElement(document.kNextReactComponents.UnorderedList,{ItemList:this.props.links,onClickWireUp:this.props.onLinkClickWireUp,BulletStyle:BulletStyle.None})))}}]),t}(React.Component);_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();document.UnauthPageHeader=function(n){function t(n){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return autobind(i),i.state={activeDropdown:null},i}return _inherits(t,n),_createClass(t,null,[{key:"defaultProps",get:function(){return{languageOptions:{},activeLanguageKey:null,showLanguageDropdown:!1,onLanguageClickWireUp:null,onLanguageLinkClickWireUp:null,onPrintClickWireUp:null,showUserInfoDropdown:!1}}}]),_createClass(t,[{key:"handleDropdownClick",value:function(n){var t=Object.assign({},this.state,{activeDropdown:n===this.state.activeDropdown?null:n});this.setState(t)}},{key:"render",value:function(){var n=this,t=null,i=Globals.Utilities.getObjectKeysAsArray(this.props.languageOptions),r;return i.length>0&&(t=React.createElement(document.SiteOptionsDropdown,{className:"language",links:this.props.languageOptions,onLinkClickWireUp:this.props.onLanguageClickWireUp,active:this.state.activeDropdown==="language",onClickWireUp:function(){n.handleDropdownClick("language")}},React.createElement("i",{className:"fal fa-globe"}))),r=React.createElement("div",{className:"site-options-group"},t,React.createElement("div",{className:"icon-box header-hover-element",onClick:this.props.onPrintClickWireUp,onMouseOver:RememberSelectedText,tabIndex:0,onKeyPress:function(t){t.key==="Enter"&&n.props.onPrintClickWireUp()}},React.createElement("i",{className:"far fa-print"}))),React.createElement("div",{className:"unauth-header",componentname:"UnauthHeader"},React.createElement("input",{id:"hdnUseSiteTheme",value:"1",type:"hidden"}),React.createElement("div",{className:"page-header EYTaxNavigator unauth",id:"page-header"},React.createElement("div",{className:"page-header-group"},React.createElement("div",{className:"level-1"},React.createElement("div",{className:"site-logos"},React.createElement("a",{href:"https://ey.com/",className:"no-hover-effect white"},React.createElement("img",{className:"primary-logo",src:"/resources/images/logos/EYLogo_White.png"})),React.createElement("div",{className:"vertical-line"}),React.createElement("span",{className:"site-name"},"Tax News Update: US Edition"))))))}}]),t}(React.Component);_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();document.Footer=function(n){function t(n){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return autobind(i),i}return _inherits(t,n),_createClass(t,[{key:"render",value:function(){var n="container-fluid footer",t,i;return(this.props.isSticky||this.props.isSticky==="true")&&(n=n+" sticky"),t=new Date,i=t.getFullYear(),React.createElement("div",{className:n,id:"footer",componentname:"Footer"},React.createElement("div",{className:"row"},React.createElement("div",{className:"col-lg-1"}),React.createElement("div",{className:"col-lg-4"},React.createElement("p",{className:"footer-site-name"},"Tax News Update: U.S. Edition"),React.createElement("p",null," All rights reserved. No part of this document may be reproduced, retransmitted or otherwise redistributed in any form or by any means, electronic or mechanical, including by photocopying, facsimile transmission, recording, rekeying, or using any information storage and retrieval system, without written permission from Ernst & Young LLP."),React.createElement("div",null,"© Copyright ","1996-~yearEnd~, Ernst & Young LLP".replace("~yearEnd~",i)),React.createElement("div",{className:"white-space"})),React.createElement("div",{className:"col-lg-1"}),React.createElement("div",{className:"col-lg-5"},React.createElement("br",null),React.createElement("p",null,"The information contained herein is general in nature and is not intended, and should not be construed, as legal, accounting or tax advice or opinion provided by Ernst & Young LLP to the reader. The reader also is cautioned that this material may not be applicable to, or suitable for, the reader's specific circumstances or needs, and may require consideration of non-tax and other tax factors if any action is to be contemplated. The reader should contact his or her Ernst & Young LLP or other tax professional prior to taking any action based upon this information. Ernst & Young LLP assumes no obligation to inform the reader of any changes in tax laws or other factors that could affect the information contained herein."),React.createElement("p",null,React.createElement(document.kNextReactComponents.Link,{external:!0,showExternalIcon:!0,link:"https://www.ey.com/en_us/privacy-statement",className:"white",text:"EY Privacy Statement"}))),React.createElement("div",{className:"col-lg-1"})))}}]),t}(React.Component)