"bundle";System.register("bundled/ci-shortcode.js",["css:/base.css","css:/style-web.css","css:/header-web.css","tslib","bundled/edu-vendor.js","hammerjs","propagating-hammerjs","systemjs","bundled/edu-post-ivy-boot2.js","zenscroll","npm:dompurify/dist/purify.js","inline-views:/header-tpl","npm:body-scroll-lock/lib/bodyScrollLock.js","npm:tablesort/dist/tablesort.min.js","bundled/site-footer-web2.js","npm:navigo/lib/navigo.js","bundled/qna-comp2.js","autosize"],function(k,T){"use strict";var I,C,L,E,z,O,S,A,R,j,H,M,P,N,F,$,V,Q,G,B,D,W,U,X,Y,K,Z,J,ee,te,ne,ie,se,oe,re,ae,ce,le,ue,de,he,pe,ge,fe,_e,me,ve,be,ye,we,xe,qe,ke,Te,Ie,Ce,Le,Ee,ze,Oe,Se,Ae;return{setters:[function(){},function(){},function(){},function(){},function(e){I=e.ɵ,C=e.a,L=e.s,E=e.I,z=e.k,O=e.D,S=e.f,A=e.y,R=e.z,j=e.A,H=e.n,M=e.r,P=e.p,N=e.v,F=e.g,$=e.h,V=e.Q,Q=e.i,G=e.j,B=e.F,D=e.E,W=e.O,U=e.R,X=e.l,Y=e.b,K=e.c,Z=e.C,e.d,J=e.N,ee=e.e,te=e.u,ne=e.Z,ie=e.G,se=e.a1,oe=e.ac,re=e.ad,ae=e.ae,ce=e.af,le=e.ag,ue=e._,de=e.a2,he=e.ah,pe=e.ai,ge=e.U,fe=e.o,_e=e.w,me=e.m,ve=e.$},function(){},function(){},function(){},function(e){be=e.$,ye=e.a,we=e.C,xe=e.i,qe=e.T,ke=e.D,Te=e.S,Ie=e.u,Ce=e.r,Le=e.j,Ee=e.K},function(){},function(){},function(){},function(){},function(){},function(e){ze=e.F,Oe=e.a},function(){},function(e){Se=e.n,Ae=e.a},function(){}],execute:function(){var n,e=(Object.defineProperty(t.prototype,"insuredvalue",{get:function(){return this.insuredparam.toString()},enumerable:!1,configurable:!0}),t.prototype._GetToken=function(){var t=this;return be({url:ye(),method:"GET",data:{action:"Pit.RefreshNonce"},expectedType:"text"}).then(function(e){return t.xsrf_token=e,n=e,t._cd.detectChanges(),null},function(e){return console.warn("could not get token"),e})},t.prototype.SetAdView=function(e){this.ad_click_id=e.click,this.ad_view_id=e.view,this._cd.detectChanges()},t.prototype.ChangeInsurance=function(e){this.insured=e,this.insuredparam="Yes"==e,this._cd.detectChanges()},t.prototype.ChangeZip=function(e){this.zipcode=e.target.value,this.invalid.zip=!1,this.show_error=!1,clearTimeout(this._ajax_error_timer),this._cd.detectChanges()},t.prototype.SetAge=function(e){this.age=e,this.ageparam=this._ages_param[this.ages.indexOf(this.age)],this.show_error=!1,this.invalid.age=!1,clearTimeout(this._ajax_error_timer),this._cd.detectChanges()},t.prototype._ajaxError=function(){var e=this;clearTimeout(this._ajax_error_timer),this.error_msg="something went wrong, please retry.",this.show_error=!0,this._cd.detectChanges(),this._ajax_error_timer=setTimeout(function(){e.show_error=!1,e._cd.detectChanges()},2500)},t.prototype.GetQuote=function(e){var t=this;if(!this.loading){if(this.pass_validation=!1,this.show_error)return this.show_error=!1,this._cd.detectChanges(),void setTimeout(function(){t.show_error=!0,t._cd.detectChanges()});0==/^\d+$/.test(this.zipcode)||5!==this.zipcode.length?(this.invalid.zip=!0,this.show_error=!0,this.error_msg="please provide a valid U.S zipcode"):this.age?(this.loading=!0,this.pass_validation=!0):(this.invalid.age=!0,this.show_error=!0,this.error_msg="please select an age"),this._cd.detectChanges(),this.show_error||(we.set("wh_zipcode",this.zipcode,3650),we.set("wh_age",this.ageparam,3650),we.set("wh_currently_insured",this.insuredparam?1:0,3650),be({url:ye(),method:"GET",data:Object.assign({action:"Profiles.FindInsurers",age:this.ageparam,zip:this.zipcode,currently_insured:this.insuredparam,viewid:this.ad_view_id,clickid:this.ad_click_id},e||{}),after:function(){t.loading=!1,t._cd.detectChanges()}}).then(function(e){e.error?t._ajaxError():(setTimeout(function(){t.loading=!0,t._cd.detectChanges()}),window.open(e.goto_link,"_self"))}).catch(function(e){t._ajaxError()}))}},t.prototype.ngOnInit=function(){var t=this;xe()||(n?this.xsrf_token=n:this._GetToken(),this.is_tabletmode=768<=window.innerWidth&&window.innerWidth<=1003,we.get("wh_zipcode")&&""!=we.get("wh_zipcode")?(this.zipcode=we.get("wh_zipcode"),this._cd.detectChanges()):be({url:ye(),method:"GET",data:{action:"Calculators.MortgageIpToZip",loggedIn:!1}}).then(function(e){e.zip?t.zipcode=e.zip:"-"!=e[7]&&(t.zipcode=e[7]||""),t._cd.detectChanges()}).catch(function(e){t._ajaxError()}),we.get("wh_age")&&""!=we.get("wh_age")&&(this.ageparam=we.get("wh_age"),this.age=this.ages[this._ages_param.indexOf(this.ageparam)],this._cd.detectChanges()),we.get("wh_currently_insured")&&""!=we.get("wh_currently_insured")&&(this.insured="1"==we.get("wh_currently_insured")?"Yes":"No",this.insuredparam="1"==we.get("wh_currently_insured"),this._cd.detectChanges()))},t.prototype.ngOnDestroy=function(){clearTimeout(this._ajax_error_timer),n=null},t.ɵfac=function(e){return new(e||t)(I(z))},t.ɵdir=C({type:t,inputs:{typeList:["type-list","typeList"],age:"age",insured:"insured",zipcode:"zipcode",layoutType:["layout-type","layoutType"]}}),t);function t(e){this._cd=e,this.typeList=[],this.age=null,this.insured="Yes",this.zipcode="",this.layoutType=1,this.ages=["16-20","21-24","25-34","35-44","45-54","55-65","65+"],this.ageparam="",this.insuredparam=!0,this._ages_param=["16","21","25","35","45","55","65"],this.loading=!1,this.invalid={type:!1,zip:!1,age:!1,rpc:!1},this.show_error=!1,this.error_msg="",this.pass_validation=!1,this.xsrf_token="",this.ad_view_id="",this.ad_click_id="",this.is_tabletmode=!1,this._ajax_error_timer=null}L(e,[{type:O}],function(){return[{type:z}]},{typeList:[{type:E,args:["type-list"]}],age:[{type:E,args:["age"]}],insured:[{type:E,args:["insured"]}],zipcode:[{type:E,args:["zipcode"]}],layoutType:[{type:E,args:["layout-type"]}]});var i=["input"];function s(e,t){1&e&&N(0,"div",5),2&e&&(e=te(),$("innerHTML",e.label,ne))}var o=(Object.defineProperty(r.prototype,"required",{get:function(){return this._required},set:function(e){this._required=!!e},enumerable:!1,configurable:!0}),r.prototype.Check=function(){this.checked=!this.checked,this.checkedChange.emit(this.checked)},r.prototype.ngAfterViewInit=function(){xe()&&this.checked&&this.renderer.setAttribute(this.checkbox.nativeElement,"checked","checked")},r.ɵfac=function(e){return new(e||r)(I(D),I(U))},r.ɵcmp=S({type:r,selectors:[["ng-checkbox"]],viewQuery:function(e,t){var n;1&e&&A(i,!0,D),2&e&&R(n=j())&&(t.checkbox=n.first)},inputs:{required:"required",name:"name",label:"label",checked:"checked",disabled:"disabled"},outputs:{checkedChange:"checkedChange"},decls:5,vars:7,consts:[["zing-touch","",1,"checkbox",3,"zingToggle"],["type","checkbox","value","",3,"checked","required","disabled","name","change"],["input",""],[1,"track","bf-icon-ok"],["class","name",3,"innerHTML",4,"ngIf"],[1,"name",3,"innerHTML"]],template:function(e,t){1&e&&(H(0,"label",0),H(1,"input",1,2),M("change",function(){return t.Check()}),P(),N(3,"i",3),F(4,s,1,1,"div",4),P()),2&e&&($("zingToggle",!0),V("aria-label",t.label),Q(1),$("checked",t.checked)("required",t.required)("disabled",t.disabled)("name",t.name),Q(3),$("ngIf",t.label))},directives:[qe,G],encapsulation:2}),r);function r(e,t){this.el=e,this.renderer=t,this.name=null,this.label=null,this.checkedChange=new ee,this.disabled=!1}L(o,[{type:X,args:[{selector:"ng-checkbox",template:'<label class="checkbox" zing-touch [zingToggle]="true" [attr.aria-label]="label">\n                    <input #input type="checkbox" value="" [checked]="checked" (change)="Check()" [required]="required" [disabled]="disabled" [name]="name"/>\n                    <i class="track bf-icon-ok"></i>\n                    <div class="name" *ngIf="label" [innerHTML]="label"></div>\n                </label>'}]}],function(){return[{type:D},{type:U}]},{checkbox:[{type:B,args:["input",{read:D,static:!1}]}],required:[{type:E}],name:[{type:E}],label:[{type:E}],checkedChange:[{type:W}],checked:[{type:E}],disabled:[{type:E}]});var a=(c.ɵmod=Y({type:c}),c.ɵinj=K({factory:function(e){return new(e||c)},imports:[[Z,ke]]}),c);function c(){}L(a,[{type:J,args:[{declarations:[o],exports:[o],imports:[Z,ke]}]}],null,null);var l=["AdPixelViewTrigger"],u=["AdPixelViewReferrer"],d=["AdPixelViewClick"],h=(p.prototype.AttachEvents=function(){var t=this;this.onScrollEnd=new ie(null),this.onResize=new se,xe()||(this._subs=this._dservice.onScroll.subscribe(function(e){t._scrolling&&clearTimeout(t._scrolltimer),t._scrolling=!0,t._scrolltimer=setTimeout(function(){t._scrolling=!1,Ce(function(){t.onScrollEnd.next(e)})},500)}),this._resize=new se,this._obs.push(de(window,"resize")),this._resizesubs=this._obs[this._obs.length-1].pipe(he(this._resize)).subscribe(function(){Ce(function(){t.onResize.next()})}))},p.prototype.DetachEvents=function(){this._subs&&(this._subs.unsubscribe(),this._subs=null),this._resizesubs&&(this._resizesubs.unsubscribe(),this._resizesubs=null),this._resize&&(this._resize.next(),this._resize.complete(),this._resize=null),this.onScrollEnd&&(this.onScrollEnd.complete(),this.onScrollEnd=null),this.onResize&&(this.onResize.complete(),this.onResize=null),this._obs=null},p.ɵprov=re({token:p,factory:p.ɵfac=function(e){return new(e||p)(oe(Te))}}),p);function p(e){this._dservice=e,this._scrolling=!1,this._obs=[]}L(h,[{type:ae}],function(){return[{type:Te}]},null);var g=(Object.defineProperty(f.prototype,"recheck",{get:function(){return this._recheck},set:function(e){e&&this._ResetnCheck(),this._recheck=e},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"_adlocation",{get:function(){return this._loc.path().replace("/ng-home/","/").split("?")[0]},enumerable:!1,configurable:!0}),f.prototype.ngOnInit=function(){this.viewId=Ie(),this.clickId=Ie(),xe()||(this.viewport=this._getViewportSize()),this.viewSet.emit(this.viewId)},f.prototype.ngAfterViewInit=function(){var t,e,n,i=this;this._PixelReferrer(),this._PixelAddClickId(),xe()||(this.clicksList&&this.clicksList.forEach(function(t){var e=de(t.nativeElement,"click");i.obs.push(e),i.sbs.add(e.subscribe(function(e){i._PixelClicked(t)}))}),this.referrersList&&this.referrersList.forEach(function(e){e=de(e.nativeElement,"click");i.obs.push(e),i.sbs.add(e.subscribe(function(e){i.is_viewed||i._PixelTrigger()}))}),t=(this.use_IntersectionObserver?this._RegisterIntersectElements:this._CheckElements).bind(this),this.sbs.add(this.clicksList.changes.subscribe(function(e){t(i.clicksList),i._PixelAddClickId()})),this.sbs.add(this.triggersList.changes.subscribe(function(e){t(i.triggersList)})),this.sbs.add(this.referrersList.changes.subscribe(function(e){i._PixelReferrer(),t(i.referrersList)})),e=this._srv.onScrollEnd,n=this._srv.onResize,this.use_IntersectionObserver?(this._intersectionObserver=new IntersectionObserver(function(e){i._CheckForIntersection(e)},{threshold:this.triggerRatio}),this._RegisterIntersectElements("all"),this.sbs.add(e.subscribe(function(e){i.is_intersecting&&i._PixelTrigger()}))):(this._CheckElements("all"),this.sbs.add(e.subscribe(function(e){i._CheckElements("all")}))),this.sbs.add(n.subscribe(function(e){i.viewport=i._getViewportSize(),i.debug&&console.log("new viewport size : ",i.viewport),i.use_IntersectionObserver||i._CheckElements("all")})))},f.prototype._RegisterIntersectElements=function(e){var t=this,n=!0,i=function(e){t._intersectionObserver.unobserve(e.nativeElement),t._intersectionObserver.observe(e.nativeElement),n=!1};"all"==e?(this.triggersList&&this.triggersList.forEach(i),this.referrersList&&this.referrersList.forEach(i),this.clicksList&&this.clicksList.forEach(i)):e.forEach(i),(this.is_main_intersct=n)&&(i=this.mainElement.nativeElement,i=this.ad_use_parent_el?i.parentNode:i,this._intersectionObserver.observe(i))},f.prototype._CheckElements=function(e){var t,n,i=this;this.is_viewed||(t=!0,n=function(e){t=!1,i._isInViewport(e)&&i._PixelTrigger()},"all"==e?(this.triggersList&&this.triggersList.forEach(function(e){n(e)}),this.referrersList&&this.referrersList.forEach(function(e){n(e)}),this.clicksList&&this.clicksList.forEach(function(e){n(e)})):e&&e.forEach(function(e){n(e)}),(this.is_main_intersct=t)&&(e=this.mainElement.nativeElement,e=this.ad_use_parent_el?{nativeElement:e.parentNode}:this.mainElement,n(e)))},f.prototype._isInViewport=function(e,t){if(!this.viewport)return!1;var n=t?e.boundingClientRect:e.nativeElement.getBoundingClientRect(),t=n.height||n.bottom-n.top,e=n.width||n.right-n.left;return!(!t||!e)&&!(n.top+n.height*(this.is_main_intersct?this.triggerRatio:1)>this.viewport.h||n.bottom<0)},f.prototype._getViewportSize=function(){var e=window;if(null!=e.innerWidth)return{w:e.innerWidth,h:e.innerHeight};e=e.document;return{w:e.body.clientWidth,h:e.body.clientWidth}},f.prototype._ResetnCheck=function(){xe()||(this.is_viewed=!1,this.viewId=Ie(),this.clickId=Ie(),this._PixelReferrer(),this._PixelAddClickId(),this._CheckElements("all"))},f.prototype._PixelTrigger=function(){this.is_viewed||(this.is_viewed=!0,this.adViewed.emit({view:this.viewId,click:this.clickId}),this._httpCall())},f.prototype._PixelClicked=function(e){var t=this;this.is_viewed||this._PixelTrigger(),Ce(function(){t._PixelAddClickId()})},f.prototype._PixelAddClickId=function(){var i=this;this.clicksList&&this.clicksList.forEach(function(e){var t,n=i.clickUrl;xe()||(t=i.clickId,i.uniqueClickId&&(i.clickId=Ie()),n=n+(-1<n.indexOf("?")?"&":"?")+"clickId="+t+"&viewId="+i.viewId,(t=e.nativeElement).dataset&&t.dataset.clickparams&&(n+="&"+t.dataset.clickparams)),i._renderer.setAttribute(e.nativeElement,"href",n)})},f.prototype._PixelReferrer=function(){var i=this;this.referrersList&&this.referrersList.forEach(function(e){var t=i.referrerUrl,n=t;xe()||(n+=(-1<t.indexOf("?")?"&":"?")+"viewReferrer="+i.viewId),i._renderer.setAttribute(e.nativeElement,"href",n)})},f.prototype._httpCall=function(e){void 0===e&&(e={});var t=Object.assign({adview_id:this.viewId,adview_pid:this.adId,adview_page:this._adlocation,adview_version:2,adview_section:this.section,adview_position:this.position||0,adview_totals:this.totals||0},this.addlQueries,e),e=Le()+"/pixel.png";t.adview_section||delete t.adview_section,t.adview_pid||delete t.adview_id,(0==t.adview_totals&&0==t.adview_position||-1==t.adview_totals&&-1==t.adview_position)&&(delete t.adview_position,delete t.adview_totals),be({method:"GET",data:{},events:!1,url:e,query:t,expectedType:"text",retry:1}).then(function(){},function(e){}),this.debug&&console.log(this.adId," AdPixelView fired.")},f.prototype.ngOnDestroy=function(){this.sbs.unsubscribe(),this._intersectionObserver&&(this._intersectionObserver.disconnect(),this._intersectionObserver=null),this.obs=[]},f.ɵfac=function(e){return new(e||f)(I(D),I(Te),I(U),I(h),I(ue))},f.ɵdir=C({type:f,selectors:[["","ad-pixel",""]],contentQueries:function(e,t,n){1&e&&(ce(n,l,!0,D),ce(n,u,!0,D),ce(n,d,!0,D)),2&e&&(R(e=j())&&(t.triggersList=e),R(e=j())&&(t.referrersList=e),R(e=j())&&(t.clicksList=e))},inputs:{addlQueries:["addl-queries","addlQueries"],triggerRatio:["trigger-ratio","triggerRatio"],debug:"debug",referrerUrl:["referrer-url","referrerUrl"],clickUrl:["click-url","clickUrl"],section:["adview-section","section"],position:["adview-position","position"],totals:["adview-totals","totals"],adId:["ad-id","adId"],ad_use_parent_el:["ad-use-parent","ad_use_parent_el"],uniqueClickId:["unique-click-id","uniqueClickId"],recheck:["ad-pixel-recheck","recheck"]},outputs:{adViewed:"adViewed",viewSet:"viewSet"}}),f);function f(e,t,n,i,s){var o=this;this.mainElement=e,this._dservice=t,this._renderer=n,this._srv=i,this._loc=s,this.triggerRatio=.15,this.debug=!1,this.referrerUrl="",this.clickUrl="",this.section="",this.position=0,this.totals=0,this.ad_use_parent_el=!1,this.uniqueClickId=!1,this.viewId="",this.is_viewed=!1,this.clickId="",this.sbs=new pe,this.obs=[],this.is_intersecting=!1,this.is_main_intersct=!1,this.adViewed=new ee,this.viewSet=new ee,this._CheckForIntersection=function(e){if(!o.is_viewed)for(var t=0,n=e.length;t<n;t++){var i=e[t];if(Ee(i.isIntersecting)&&o._isInViewport(i,!0)){o.is_intersecting=!0;break}if(i.isIntersecting){o.is_intersecting=!0;break}o.is_intersecting=!1}},this.use_IntersectionObserver=!(xe()||!window.IntersectionObserver),this.debug&&console.log("use_IntersectionObserver is : ",this.use_IntersectionObserver)}L(g,[{type:O,args:[{selector:"[ad-pixel]"}]}],function(){return[{type:D},{type:Te},{type:U},{type:h},{type:ue}]},{addlQueries:[{type:E,args:["addl-queries"]}],triggerRatio:[{type:E,args:["trigger-ratio"]}],debug:[{type:E,args:["debug"]}],referrerUrl:[{type:E,args:["referrer-url"]}],clickUrl:[{type:E,args:["click-url"]}],section:[{type:E,args:["adview-section"]}],position:[{type:E,args:["adview-position"]}],totals:[{type:E,args:["adview-totals"]}],adId:[{type:E,args:["ad-id"]}],ad_use_parent_el:[{type:E,args:["ad-use-parent"]}],uniqueClickId:[{type:E,args:["unique-click-id"]}],recheck:[{type:E,args:["ad-pixel-recheck"]}],triggersList:[{type:le,args:["AdPixelViewTrigger",{read:D,descendants:!0}]}],referrersList:[{type:le,args:["AdPixelViewReferrer",{read:D,descendants:!0}]}],clicksList:[{type:le,args:["AdPixelViewClick",{read:D,descendants:!0}]}],adViewed:[{type:W}],viewSet:[{type:W}]});var _=(m.prototype.ngOnDestroy=function(){this._srv.DetachEvents()},m.ɵmod=Y({type:m}),m.ɵinj=K({factory:function(e){return new(e||m)(oe(h))},providers:[h],imports:[[Z,ke]]}),m);function m(e){this._srv=e,this._srv.AttachEvents()}L(_,[{type:J,args:[{declarations:[g],exports:[g],imports:[Z,ke],providers:[h]}]}],function(){return[{type:h}]},null);var v=["class","car-insurance-widget"];function b(e,t){1&e&&(H(0,"div",14),fe(1),P()),2&e&&(e=te(),Q(1),ve(e.error_msg))}function y(e,t){1&e&&(H(0,"div",15),fe(1),P()),2&e&&(e=te(),Q(1),ve(e.error_msg))}T.import("css:/ci-shortcode.css").then(function(){},function(){});var w,g=k("CIShortCode",(w=e,__extends(x,w),x.prototype.ChangeInsurance=function(e){this.insuredparam=e,this._cd.detectChanges()},x.prototype._GetSesId=function(){var t=this;return be({url:Le()+"/sid.php",data:{a:"1"},method:"GET",events:!1,retry:2}).then(function(e){return e&&e.__whid&&(t.adview_extra={adview_offer_type:"Car_Insurance_Widget",session_id:e.__whid}),t._cd.detectChanges(),null}).catch(function(e){console.warn("could not get session id",e)})},x.prototype.ngOnInit=function(){var e;w.prototype.ngOnInit.call(this),xe()||(e=we.get("__whid"),this.adview_extra={adview_offer_type:"Car_Insurance_Widget",session_id:e},this._GetSesId())},x.ɵfac=function(e){return new(e||x)(I(z))},x.ɵcmp=S({type:x,selectors:[["div",8,"car-insurance-widget"]],features:[ge],attrs:v,decls:16,vars:15,consts:[["form-submit","","ad-pixel","",1,"form-ci-widget",3,"unique-click-id","ad-id","addl-queries","onSubmit","adViewed"],[1,"ciw-head"],[1,"ciw-row"],[1,"ciw-box","first"],["type","tel","placeholder","Zip Code","name","zip","maxlength","5",1,"single","textfield","ciw-zip",3,"value","input"],[1,"ciw-box","second"],["placeholder","Age",3,"items","second","invalid","value","valueChange"],["class","ciw-error-age semi-bold-font mob ng-enter-element",4,"ngIf"],[1,"ciw-box","ciw-block","ci-checkbox"],["label","Currently Insured?","name","currently_insured",3,"checked","checkedChange"],[1,"ciw-box","ciw-block","with-loader"],["type","submit",1,"btn","blue","ciw-btn"],[1,"btn-loader"],["class","ciw-error-age semi-bold-font desk ng-enter-element",4,"ngIf"],[1,"ciw-error-age","semi-bold-font","mob","ng-enter-element"],[1,"ciw-error-age","semi-bold-font","desk","ng-enter-element"]],template:function(e,t){1&e&&(H(0,"form",0),M("onSubmit",function(){return t.GetQuote()})("adViewed",function(e){return t.SetAdView(e)}),H(1,"h3",1),fe(2,"Find Cheap Car Insurance"),P(),H(3,"div",2),H(4,"div",3),H(5,"input",4),M("input",function(e){return t.ChangeZip(e)}),P(),P(),H(6,"div",5),H(7,"ng-dropdown",6),M("valueChange",function(e){return t.SetAge(e)}),P(),P(),F(8,b,2,1,"div",7),H(9,"div",8),H(10,"ng-checkbox",9),M("checkedChange",function(e){return t.ChangeInsurance(e)}),P(),P(),H(11,"div",10),H(12,"button",11),fe(13,"Find Insurers"),N(14,"i",12),P(),P(),P(),F(15,y,2,1,"div",13),P()),2&e&&($("unique-click-id",!0)("ad-id",5e6)("addl-queries",t.adview_extra),Q(5),_e("ng-wh-error",t.invalid.zip),$("value",t.zipcode),Q(2),$("items",t.ages)("second",!0)("invalid",t.invalid.age)("value",t.age),Q(1),$("ngIf",t.show_error),Q(2),$("checked",t.insuredparam),Q(1),_e("loadactive",t.loading),Q(4),$("ngIf",t.show_error))},directives:[ze,g,Se,G,o],encapsulation:2,changeDetection:0}),x));function x(e){return w.call(this,e)||this}L(g,[{type:X,args:[{selector:"div.car-insurance-widget",templateUrl:"/views/components/shortcodes/ci-shortcode.html",changeDetection:me.OnPush}]}],function(){return[{type:z}]},null);o=k("NGCIShortCodeModule",(q.ɵmod=Y({type:q}),q.ɵinj=K({factory:function(e){return new(e||q)},imports:[[Z,ke,Ae,a,Oe,_]]}),q));function q(){}L(o,[{type:J,args:[{declarations:[g],entryComponents:[g],exports:[g],imports:[Z,ke,Ae,a,Oe,_]}]}],null,null)}}}),System.register("bundled/experts-gallery-ui-component.js",["css:/base.css","css:/style-web.css","css:/header-web.css","tslib","bundled/edu-vendor.js","hammerjs","propagating-hammerjs","systemjs","bundled/edu-post-ivy-boot2.js","zenscroll","npm:dompurify/dist/purify.js","inline-views:/header-tpl","npm:body-scroll-lock/lib/bodyScrollLock.js","npm:tablesort/dist/tablesort.min.js"],function(m,v){"use strict";var b,y,w,x,q,k,T,I,C,L,E,z,O,S,A,R,j,H,M,P,N,F,$,V,Q,G,B,D,W,U,X,Y,K,Z,J,ee,te,ne,ie,se,oe,re,ae,ce,le,ue,de,he,pe,ge,fe,_e;return{setters:[function(){},function(){},function(){},function(){},function(e){b=e.ɵ,y=e.f,w=e.g,x=e.h,q=e.j,k=e.L,T=e.T,I=e.s,C=e.I,L=e.O,E=e.J,z=e.l,O=e.b,S=e.c,A=e.C,e.d,R=e.N,j=e.e,H=e.n,M=e.v,P=e.p,N=e.u,F=e.aj,$=e.i,V=e.w,Q=e.o,G=e.$,B=e.Z,D=e.q,W=e.r,U=e.t,X=e.P,Y=e.aa,K=e.ab},function(){},function(){},function(){},function(e){Z=e.v,J=e.y,ee=e.r,te=e.e,ne=e.R,ie=e.$,se=e.a,oe=e.L,re=e.i,ae=e.z,ce=e.T,le=e.I,ue=e.F,de=e.g,he=e.D,pe=e.G,ge=e.b,fe=e.M,_e=e.o},function(){},function(){},function(){},function(){},function(){}],execute:function(){m("CompileExpertsGallery",function(e,t,n,i,s){void 0===s&&(s={});return fe(e,t,n,f,g,"div[id=experts-gallery]",s).then(function(n){var e=n.Component.instance.changedExpert.subscribe(function(e){e?history.pushState(null,"",location.pathname+location.search+"#expert="+e):history.replaceState(null,"",location.pathname+location.search)}),t=i.fragment.subscribe(function(e){var t;(e=(e||"").replace("#",""))&&-1<e.indexOf("expert=")&&((t=_e(e))&&t.expert&&ee(function(){n.Component.instance.hashname=t.expert}))});return{destroy:function(){n.destroy(),e.unsubscribe(),t.unsubscribe()}}})});var e=["id","experts-gallery"];function n(e,t){1&e&&(H(0,"div",10),H(1,"h2"),Q(2),P(),P()),2&e&&(e=N(2),$(2),G(e.header_text||"Ask the Experts"))}function i(e,t){1&e&&M(0,"div",11),2&e&&(e=N(2),x("innerHTML",e.intro,B))}function s(e,t){var n;1&e&&(n=D(),Y(0),H(1,"span",19),Q(2),P(),M(3,"br"),H(4,"i",19),Q(5),P(),M(6,"br"),H(7,"span",20),W("onTap",function(){U(n);var e=N().$implicit;return N(2).gotToOne(e.HASHTAG)}),Q(8,"Read More"),P(),K()),2&e&&(e=N().$implicit,$(2),G(e.AUTHOR),$(3),G(e.CAPTION))}function o(e,t){var n;1&e&&(n=D(),Y(0),H(1,"span",21),W("onTap",function(){U(n);var e=N().$implicit;return N(2).gotToOne(e.HASHTAG)}),P(),K()),2&e&&(e=N().$implicit,$(1),x("ng-context",e.AUTHOR))}function r(e,t){var n,i;1&e&&(n=D(),H(0,"dl",12),H(1,"dt",13),H(2,"span",14),W("onTap",function(){U(n);var e=t.$implicit;return N(2).gotToOne(e.HASHTAG)}),M(3,"img",15,16),P(),P(),H(5,"dd",17),w(6,s,9,2,"ng-container",18),w(7,o,2,1,"ng-container",18),P(),P()),2&e&&(i=t.$implicit,e=N(2),V("gallery-item-logo",e.as_logos),$(2),x("defer-src",i.AVATAR)("zing-no-touch",!0)("ui-hydrate",e.srv_no_avatars),$(1),V("exp-img-logo",e.as_logos),x("src",i.AVATAR,X)("alt",i.AUTHOR),$(3),x("ngIf",!e.as_logos),$(1),x("ngIf",e.as_logos))}function a(e,t){var n;1&e&&(n=D(),H(0,"div",22),H(1,"span",23),W("onTap",function(){return U(n),N(2).showMoreExperts()}),P(),P()),2&e&&(e=N(2),$(1),x("ng-context",e.more_btn_txt))}function c(e,t){1&e&&(H(0,"i"),Q(1),P()),2&e&&(e=N(3),$(1),G(null==e.expert_full?null:e.expert_full.CAPTION))}function l(e,t){1&e&&M(0,"div",29),2&e&&(e=N(3),x("innerHtml",e.expert_full.CONTENT,B))}function u(e,t){1&e&&M(0,"div",30),2&e&&(e=N(3),x("cleanHTML",e.expert_full.CONTENT)("cleanHTML-sett",e.doompurifySett))}function d(e,t){var n;1&e&&(n=D(),H(0,"article",24),H(1,"button",25),W("onTap",function(){return U(n),N(2).goToAll()}),Q(2),P(),M(3,"img",26),H(4,"h3"),Q(5),P(),w(6,c,2,1,"i",18),w(7,l,1,1,"div",27),w(8,u,1,2,"div",28),P()),2&e&&(e=N(2),V("exp-logo-profile",e.as_logos),$(1),x("ngClass",e.back_bt_class),$(1),G(e.back_bt_text),$(1),x("src",null==e.expert_full?null:e.expert_full.AVATAR,X),$(2),G(null==e.expert_full?null:e.expert_full.AUTHOR),$(1),x("ngIf",!e.as_logos),$(1),x("ngIf",!e.as_logos),$(1),x("ngIf",e.as_logos))}function h(e,t,n,i,s,o){return{"exp-gal-one-it":e,"exp-gal-two-it":t,"expert-single":n,"blink-end":i,empty:s,"experts-format-a":o}}function p(e,t){1&e&&(H(0,"section",1),H(1,"div",2),M(2,"i"),P(),w(3,n,3,1,"div",3),w(4,i,1,1,"div",4),H(5,"div",5),H(6,"div",6),w(7,r,8,11,"dl",7),w(8,a,2,1,"div",8),w(9,d,9,9,"article",9),P(),P(),P()),2&e&&(e=N(),x("ngClass",F(14,h,e.experts.length<2,e.experts.length<3,e.expert_single,!e.expert_single&&!e.loading&&!e.is_initial,e.emptydata,1==e.layout_format))("scroll-to",e.scrollall),$(1),V("visible",e.loading),$(2),x("ngIf",!e.layout_format),$(1),x("ngIf",e.intro&&!e.expert_single),$(1),V("all",!e.expert_single),x("scroll-to",e.center_experts),$(1),x("scroll-to",e.scrollsingle)("scrolloffset",e.expert_offset),$(1),x("ngForOf",e.experts),$(1),x("ngIf",e.hasmoreexperts&&!e.expert_single),$(1),x("ngIf",e.expert_single))}v.import("css:/components/experts-gallery.css").then(function(){},function(){});var g=(Object.defineProperty(t.prototype,"hashname",{get:function(){return this._hashname},set:function(e){(this._hashname=e)&&this._rendered?this._goToExpert(e):this.expert_single=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){(this._data=e)&&Z(e.expertsContent)?(J("experts-gallery"),this.expert_single=!1,this._parseExperts(this._data),this.asyncdata&&this._setExpertsPagination(),!this.emptydata&&this._hashname&&this._goToExpert(this._hashname),e.aslogos&&(this.as_logos=!0)):e&&!e.expertsContent&&(this.emptydata=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"urlpath",{get:function(){return this._urlpath},set:function(e){var t=e&&e!==this._urlpath;this._urlpath=e,t&&(this.urlrefresh=this.urlrefresh)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"urlrefresh",{get:function(){return this._refreshonurl},set:function(e){(this._refreshonurl=e)&&this._urlpath&&!this._data&&!this.asyncdata?this._refreshonurl=!0:this._refreshonurl=!1},enumerable:!1,configurable:!0}),t.prototype._goToExpert=function(e,n){var i=this;this.is_initial=!1;function s(){i.scrollsingle=!0,setTimeout(function(){i.scrollsingle=!1},100)}e=e.toString().toLowerCase(),e=!(!this._hashtaglist.hasOwnProperty(e)||!this._data.expertsContent[this._hashtaglist[e]])&&(this.expert_single=!0,this.expert_full!==this._data.expertsContent[this._hashtaglist[e]]&&(this.expert_full=this._data.expertsContent[this._hashtaglist[e]],ee(function(){i._zone.run(function(){var t;te()&&i._servertransitwait?(n||(t=ge.subscribe("server:transitscroll",function(e){"done"!=e&&"none"!=e||s(),setTimeout(function(){t&&t.unsubscribe()})})),i._servertransitwait=!1):n||s()})})),!0),this.tagMatch.emit(e)},t.prototype._storeTags=function(){this._hashtaglist={};for(var e=0,t=this.experts.length;e<t;e++){var n=(n=this.experts[e].HASHTAG.substring(1)).toLowerCase();this._hashtaglist[n]=e+(0===this.current_page?0:this.current_page-1)*this.max_experts}},t.prototype._parseExperts=function(e){0<e.expertsContent.length?(this.experts=e.expertsContent,this.hasmoreexperts=!!this.max_experts&&e.expertsContent.length>this.max_experts,this.intro=e.expertsIntro||null,this._storeTags(),this._hashname&&this._goToExpert(this._hashname),this.emptydata=!1):(this.emptydata=!0,this._hashtaglist=[])},t.prototype._setExpertsPagination=function(){this.hasmoreexperts=!!this.max_experts&&this.experts.length>this.max_experts,this.experts=(this.experts||[]).slice(this.current_page*this.max_experts,++this.current_page*this.max_experts)},t.prototype._throwError=function(e,t){this.dataerror=!0,ne(e,"NG Experts Gallery : Data Request Error",{action:t})},t.prototype._getExpertsByUrl=function(){var n=this;this.expert_single=!1,J("experts-gallery"),this.loading=!0,ie({method:"GET",url:se(),id:"experts-gallery",before:function(){n.loading=!0},after:function(){n.loading=!1},data:{action:"Posts.GetExpertsGallery",path:this.urlpath},events:!1}).then(function(e){var t;e&&!e.error?(t=e.data,oe(t)&&Z(t.expertsContent)?(n._data=t,n._parseExperts(t)):n.emptydata=!0):n._throwError({data:e,status:200,type:"response"},n.urlpath)},function(e){n._throwError(e,n.urlpath)})},t.prototype.ngOnInit=function(){var e=this;this.isnode=re(),this.isnode?this.server_render?this.norender=!this._data&&!this.asyncdata:this.norender=!0:(!this._data&&this.urlpath&&this.urlrefresh&&!this.asyncdata?this.loading=!0:this.loading=!1,this.loading||this.asyncdata||this.data||(this.emptydata=!0),this.urlrefresh&&setTimeout(function(){e._getExpertsByUrl()},this.refreshdelay),this.as_logos?(this.more_btn_txt||(this.more_btn_txt="More Retailers"),this.back_bt_text||(this.back_bt_text="Back to All Retailers")):(this.more_btn_txt||(this.more_btn_txt="More Experts"),this.back_bt_text||(this.back_bt_text="Back to All Experts"))),this.asyncdata||this._setExpertsPagination()},t.prototype.ngAfterViewInit=function(){var e=this;this._rendered=!0,this.data&&!this.emptydata&&this._hashname?ee(function(){return e._goToExpert(e._hashname)}):this.asyncdata||(this._servertransitwait=!1)},t.prototype.ngOnDestroy=function(){J("experts-gallery")},t.prototype.goToAll=function(){var e=this;this.expert_single=!1,this.scrollall=!0,this.scrollsingle=!1,this.expert_full=null,setTimeout(function(){e.scrollall=!1},100),this.changedExpert.emit(null)},t.prototype.gotToOne=function(e){e=e.substring(1);this.expert_full=null,this._goToExpert(e),this.changedExpert.emit(e)},t.prototype.showMoreExperts=function(){var e=this,t=this._data.expertsContent,n=t.length;this.experts=t.slice(this.current_page*this.max_experts,++this.current_page*this.max_experts),this._storeTags(),this.current_page&&this.current_page*this.max_experts>=n&&(this.current_page=0),this.center_experts=!1,setTimeout(function(){e.center_experts=!0,ee(function(){e.center_experts=!1})})},t.ɵfac=function(e){return new(e||t)(b(E))},t.ɵcmp=y({type:t,selectors:[["div","id","experts-gallery"]],inputs:{expert_offset:["scroll-offset","expert_offset"],max_experts:["max-experts","max_experts"],header_text:["header-text","header_text"],srv_no_avatars:["ui-hydrate-avatars","srv_no_avatars"],hashname:["hashtag","hashname"],data:"data",urlpath:"urlpath",urlrefresh:"urlrefresh",refreshdelay:"refreshdelay",asyncdata:"asyncdata",server_render:["server-render","server_render"],layout_format:["format","layout_format"],back_bt_text:["back-bt-text","back_bt_text"],back_bt_class:["back-bt-class","back_bt_class"],more_btn_txt:["more-bt-text","more_btn_txt"]},outputs:{changedExpert:"changedExpert",tagMatch:"tagMatch"},attrs:e,decls:1,vars:1,consts:[["class","experts-gallery",3,"ngClass","scroll-to",4,"ngIf"],[1,"experts-gallery",3,"ngClass","scroll-to"],[1,"progress-indicator"],["class","header-part",4,"ngIf"],["class","intro-part with-links",3,"innerHTML",4,"ngIf"],[1,"container",3,"scroll-to"],[1,"gallery",3,"scroll-to","scrolloffset"],["class","gallery-item",3,"gallery-item-logo",4,"ngFor","ngForOf"],["class","more-experts",4,"ngIf"],["class","expert-profile ng-enter-element slide",3,"exp-logo-profile",4,"ngIf"],[1,"header-part"],[1,"intro-part","with-links",3,"innerHTML"],[1,"gallery-item"],[1,"gallery-icon"],["zing-touch","",1,"gall-ic-action",3,"defer-src","zing-no-touch","ui-hydrate","onTap"],["height","110","width","110",1,"expert-image",3,"src","alt"],["deferImg",""],[1,"wp-caption-text","gallery-caption"],[4,"ngIf"],[1,"text-select"],["zing-touch","",1,"read-more","touch-element-cl",3,"onTap"],["zing-touch","",1,"read-more","touch-element-cl",3,"ng-context","onTap"],[1,"more-experts"],["zing-touch","",3,"ng-context","onTap"],[1,"expert-profile","ng-enter-element","slide"],["zing-touch","",1,"back-to-xprts",3,"ngClass","onTap"],["height","200","width","200",1,"profile-img",3,"src"],["class","description-text",3,"innerHtml",4,"ngIf"],["class","description-text",3,"cleanHTML","cleanHTML-sett",4,"ngIf"],[1,"description-text",3,"innerHtml"],[1,"description-text",3,"cleanHTML","cleanHTML-sett"]],template:function(e,t){1&e&&w(0,p,10,21,"section",0),2&e&&x("ngIf",!t.norender)},directives:[q,k,ae,T,ce,le,ue,de],encapsulation:2}),t);function t(e){this._zone=e,this.experts=[],this.expert_single=!1,this.expert_offset=0,this.max_experts=Number.MAX_SAFE_INTEGER,this.header_text="",this.srv_no_avatars=!1,this.current_page=0,this.questions=[],this.scrollall=!1,this.center_experts=!1,this.scrollsingle=!1,this.loading=!1,this.emptydata=!1,this.norender=!1,this.dataerror=!1,this.hasmoreexperts=!1,this.isnode=!1,this.doompurifySett={USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOW_UNKNOWN_PROTOCOLS:!0,KEEP_CONTENT:!0,ADD_TAGS:["meta","noscript","iframe"],ADD_ATTR:["content","itemprop","itemtype","itemscope","id","name","src"]},this.as_logos=!1,this.is_initial=!0,this._rendered=!1,this._hashtaglist={},this._refreshonurl=!1,this.refreshdelay=1,this.asyncdata=!1,this.server_render=!1,this.layout_format=0,this.back_bt_text="Back to All Experts",this.back_bt_class="btn blue",this.more_btn_txt="More Experts",this.changedExpert=new j,this.tagMatch=new j,this._servertransitwait=!0}I(g,[{type:z,args:[{selector:"div[id=experts-gallery]",templateUrl:"/views/components/experts-gallery.html"}]}],function(){return[{type:E}]},{expert_offset:[{type:C,args:["scroll-offset"]}],max_experts:[{type:C,args:["max-experts"]}],header_text:[{type:C,args:["header-text"]}],srv_no_avatars:[{type:C,args:["ui-hydrate-avatars"]}],hashname:[{type:C,args:["hashtag"]}],data:[{type:C}],urlpath:[{type:C}],urlrefresh:[{type:C}],refreshdelay:[{type:C}],asyncdata:[{type:C}],server_render:[{type:C,args:["server-render"]}],layout_format:[{type:C,args:["format"]}],back_bt_text:[{type:C,args:["back-bt-text"]}],back_bt_class:[{type:C,args:["back-bt-class"]}],more_btn_txt:[{type:C,args:["more-bt-text"]}],changedExpert:[{type:L}],tagMatch:[{type:L}]});var f=(_.ɵmod=O({type:_}),_.ɵinj=S({factory:function(e){return new(e||_)},imports:[[he,A,pe]]}),_);function _(){}I(f,[{type:R,args:[{imports:[he,A,pe],declarations:[g],exports:[g],entryComponents:[g]}]}],null,null)}}}),System.register("bundled/qna-comp.js",["css:/base.css","css:/style-web.css","css:/header-web.css","tslib","bundled/edu-vendor.js","hammerjs","propagating-hammerjs","systemjs","bundled/edu-post-ivy-boot2.js","zenscroll","npm:dompurify/dist/purify.js","inline-views:/header-tpl","npm:body-scroll-lock/lib/bodyScrollLock.js","npm:tablesort/dist/tablesort.min.js","bundled/site-footer-web2.js","npm:navigo/lib/navigo.js","bundled/qna-comp2.js","autosize"],function(n){"use strict";return{setters:[function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(e){var t={};t.QnAComp=e.Q,t.QnAModule=e.b,n(t)},function(){}],execute:function(){}}}),function(i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():System.registerDynamic("npm:navigo/lib/navigo.js",[],!1,function(e,t,n){return i.call(this)})}(function(){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function a(){return!("undefined"==typeof window||!window.history||!window.history.pushState)}function c(e,t,n){this.root=null,this._routes=[],this._useHash=t,this._hash=void 0===n?"#":n,this._paused=!1,this._destroyed=!1,this._lastRouteResolved=null,this._notFoundHandler=null,this._defaultHandler=null,this._usePushState=!t&&a(),this._onLocationChange=this._onLocationChange.bind(this),this._genericHooks=null,this._historyAPIUpdateMethod="pushState",e?this.root=t?e.replace(/\/$/,"/"+this._hash):e.replace(/\/$/,""):t&&(this.root=this._cLoc().split(this._hash)[0].replace(/\/$/,"/"+this._hash)),this._listen(),this.updatePageLinks()}function l(e){return e instanceof RegExp?e:e.replace(/\/+$/,"").replace(/^\/+/,"^/")}function n(e){return e.replace(/\/$/,"").split("/").length}function r(e,t){return n(t)-n(e)}function i(r,e){return(1<arguments.length&&void 0!==e?e:[]).map(function(e){var t,i,s,n=(t=l(e.route),i=[],{regexp:t=t instanceof RegExp?t:new RegExp(t.replace(c.PARAMETER_REGEXP,function(e,t,n){return i.push(n),c.REPLACE_VARIABLE_REGEXP}).replace(c.WILDCARD_REGEXP,c.REPLACE_WILDCARD)+c.FOLLOWED_BY_SLASH_REGEXP,c.MATCH_REGEXP_FLAGS),paramNames:i}),o=n.regexp,t=n.paramNames,n=r.replace(/^\/+/,"/").match(o),o=(o=n,0!==(s=t).length&&o?o.slice(1,o.length).reduce(function(e,t,n){return null===e&&(e={}),e[s[n]]=decodeURIComponent(t),e},null):null);return!!n&&{match:n,route:e,params:o}}).filter(function(e){return e})}function u(e,t){return i(e,t)[0]||!1}function e(t,e){var n=e.map(function(e){return""===e.route||"*"===e.route?t:t.split(new RegExp(e.route+"($|/)"))[0]}),e=l(t);return 1<n.length?n.reduce(function(e,t){return e.length>t.length&&(e=t),e},n[0]):1===n.length?n[0]:e}function d(e,t,n){function i(e){return e.split(/\?(.*)?$/)[0]}return void 0===n&&(n="#"),a()&&!t?i(e).split(n)[0]:1<(n=e.split(n)).length?i(n[1]):i(n[0])}function h(e,t,n){if(t&&"object"===(void 0===t?"undefined":o(t))){if(t.before)return void t.before(function(){0<arguments.length&&void 0!==arguments[0]&&!arguments[0]||(e(),t.after&&t.after(n))},n);if(t.after)return e(),void(t.after&&t.after(n))}e()}return c.prototype={helpers:{match:u,root:e,clean:l,getOnlyURL:d},navigate:function(e,t){return e=e||"",this._usePushState?(t=(t=(t?"":this._getRoot()+"/")+e.replace(/^\/+/,"/")).replace(/([^:])(\/{2,})/g,"$1/"),history[this._historyAPIUpdateMethod]({},"",t),this.resolve()):"undefined"!=typeof window&&(e=e.replace(new RegExp("^"+this._hash),""),window.location.href=window.location.href.replace(/#$/,"").replace(new RegExp(this._hash+".*$"),"")+this._hash+e),this},on:function(){for(var e,t=this,n=arguments.length,i=Array(n),s=0;s<n;s++)i[s]=arguments[s];return"function"==typeof i[0]?this._defaultHandler={handler:i[0],hooks:i[1]}:2<=i.length?"/"===i[0]?(e=i[1],"object"===o(i[1])&&(e=i[1].uses),this._defaultHandler={handler:e,hooks:i[2]}):this._add(i[0],i[1],i[2]):"object"===o(i[0])&&Object.keys(i[0]).sort(r).forEach(function(e){t.on(e,i[0][e])}),this},off:function(n){return null!==this._defaultHandler&&n===this._defaultHandler.handler?this._defaultHandler=null:null!==this._notFoundHandler&&n===this._notFoundHandler.handler&&(this._notFoundHandler=null),this._routes=this._routes.reduce(function(e,t){return t.handler!==n&&e.push(t),e},[]),this},notFound:function(e,t){return this._notFoundHandler={handler:e,hooks:t},this},resolve:function(e){var t,n,i=this,s=(e||this._cLoc()).replace(this._getRoot(),"");this._useHash&&(s=s.replace(new RegExp("^/"+this._hash),"/"));var o=(e||this._cLoc()).split(/\?(.*)?$/).slice(1).join(""),r=d(s,this._useHash,this._hash);return!this._paused&&(this._lastRouteResolved&&r===this._lastRouteResolved.url&&o===this._lastRouteResolved.query?(this._lastRouteResolved.hooks&&this._lastRouteResolved.hooks.already&&this._lastRouteResolved.hooks.already(this._lastRouteResolved.params),!1):(n=u(r,this._routes))?(this._callLeave(),this._lastRouteResolved={url:r,query:o,hooks:n.route.hooks,params:n.params,name:n.route.name},t=n.route.handler,h(function(){h(function(){n.route.route instanceof RegExp?t.apply(void 0,n.match.slice(1,n.match.length)):t(n.params,o)},n.route.hooks,n.params,i._genericHooks)},this._genericHooks,n.params),n):this._defaultHandler&&(""===r||"/"===r||r===this._hash||function(e,t,n){if((!a()||t)&&e.match(n)){n=e.split(n);return n.length<2||""===n[1]}}(r,this._useHash,this._hash))?(h(function(){h(function(){i._callLeave(),i._lastRouteResolved={url:r,query:o,hooks:i._defaultHandler.hooks},i._defaultHandler.handler(o)},i._defaultHandler.hooks)},this._genericHooks),!0):(this._notFoundHandler&&h(function(){h(function(){i._callLeave(),i._lastRouteResolved={url:r,query:o,hooks:i._notFoundHandler.hooks},i._notFoundHandler.handler(o)},i._notFoundHandler.hooks)},this._genericHooks),!1))},destroy:function(){this._routes=[],this._destroyed=!0,this._lastRouteResolved=null,this._genericHooks=null,clearTimeout(this._listeningInterval),"undefined"!=typeof window&&(window.removeEventListener("popstate",this._onLocationChange),window.removeEventListener("hashchange",this._onLocationChange))},updatePageLinks:function(){var i=this;"undefined"!=typeof document&&this._findLinks().forEach(function(n){n.hasListenerAttached||(n.addEventListener("click",function(e){if((e.ctrlKey||e.metaKey)&&"a"==e.target.tagName.toLowerCase())return!1;var t=i.getLinkPath(n);i._destroyed||(e.preventDefault(),i.navigate(t.replace(/\/+$/,"").replace(/^\/+/,"/")))}),n.hasListenerAttached=!0)})},generate:function(i,e){var s=1<arguments.length&&void 0!==e?e:{},e=this._routes.reduce(function(e,t){if(t.name===i)for(var n in e=t.route,s)e=e.toString().replace(":"+n,s[n]);return e},"");return this._useHash?this._hash+e:e},link:function(e){return this._getRoot()+e},pause:function(e){e=!(0<arguments.length&&void 0!==e)||e;this._paused=e,this._historyAPIUpdateMethod=e?"replaceState":"pushState"},resume:function(){this.pause(!1)},historyAPIUpdateMethod:function(e){return void 0===e?this._historyAPIUpdateMethod:this._historyAPIUpdateMethod=e},disableIfAPINotAvailable:function(){a()||this.destroy()},lastRouteResolved:function(){return this._lastRouteResolved},getLinkPath:function(e){return e.getAttribute("href")},hooks:function(e){this._genericHooks=e},_add:function(e,t,n){t=1<arguments.length&&void 0!==t?t:null,n=2<arguments.length&&void 0!==n?n:null;return"string"==typeof e&&(e=encodeURI(e)),this._routes.push("object"===(void 0===t?"undefined":o(t))?{route:e,handler:t.uses,name:t.as,hooks:n||t.hooks}:{route:e,handler:t,hooks:n}),this._add},_getRoot:function(){return null!==this.root||(this.root=e(this._cLoc().split("?")[0],this._routes)),this.root},_listen:function(){var e,t,n,i=this;this._usePushState?window.addEventListener("popstate",this._onLocationChange):"undefined"!=typeof window&&"onhashchange"in window?window.addEventListener("hashchange",this._onLocationChange):(e=this._cLoc(),n=t=void 0,(n=function(){t=i._cLoc(),e!==t&&(e=t,i.resolve()),i._listeningInterval=setTimeout(n,200)})())},_cLoc:function(){return"undefined"!=typeof window?void 0!==window.__NAVIGO_WINDOW_LOCATION_MOCK__?window.__NAVIGO_WINDOW_LOCATION_MOCK__:l(window.location.href):""},_findLinks:function(){return[].slice.call(document.querySelectorAll("[data-navigo]"))},_onLocationChange:function(){this.resolve()},_callLeave:function(){var e=this._lastRouteResolved;e&&e.hooks&&e.hooks.leave&&e.hooks.leave(e.params)}},c.PARAMETER_REGEXP=/([:*])(\w+)/g,c.WILDCARD_REGEXP=/\*/g,c.REPLACE_VARIABLE_REGEXP="([^/]+)",c.REPLACE_WILDCARD="(?:.*)",c.FOLLOWED_BY_SLASH_REGEXP="(?:/$|$)",c.MATCH_REGEXP_FLAGS="",c}),System.register("bundled/qna-comp2.js",["bundled/edu-vendor.js","systemjs","bundled/edu-post-ivy-boot2.js","bundled/site-footer-web2.js","npm:navigo/lib/navigo.js","autosize"],function(mt,vt){"use strict";var bt,yt,wt,xt,qt,kt,Tt,It,Ct,Lt,Et,zt,Ot,St,At,Rt,jt,Ht,Mt,Pt,Nt,Ft,$t,Vt,Qt,Gt,Bt,Dt,Wt,Ut,Xt,Yt,Kt,Zt,Jt,en,tn,nn,sn,on,rn,an,cn,ln,un,dn,hn,pn,gn,fn,_n,mn,vn,bn,yn,wn,xn,qn,kn,Tn,In,Cn,Ln,En,zn,On,Sn,An,Rn,jn,Hn,Mn,Pn,Nn,Fn,$n,Vn,Qn,Gn,Bn,Dn,Wn,Un,Xn,Yn,Kn,Zn,Jn,ei,ti,ni,ii,si,oi,ri,ai,ci,li,ui,di,hi,pi,gi,fi,_i,mi,vi;return{setters:[function(e){bt=e.G,yt=e.b,wt=e.c,xt=e.C,e.d,qt=e.s,kt=e.N,Tt=e.H,It=e.ɵ,Ct=e.a,Lt=e.I,Et=e.O,zt=e.E,Ot=e.J,St=e.D,At=e.e,Rt=e.f,jt=e.K,Ht=e.z,Mt=e.A,Pt=e.v,Nt=e.g,Ft=e.i,$t=e.h,Vt=e.j,Qt=e.F,Gt=e.k,Bt=e.l,Dt=e.V,Wt=e.n,Ut=e.p,Xt=e.R,Yt=e.L,Kt=e.M,Zt=e.u,Jt=e.P,en=e.Q,tn=e.y,nn=e.r,sn=e.S,on=e.T,rn=e.U,an=e.o,cn=e.B,ln=e.W,un=e.X,dn=e.Y,hn=e.w,pn=e.q,gn=e.t,fn=e.Z,_n=e._,mn=e.$,vn=e.a0,bn=e.m,yn=e.a1,wn=e.x,xn=e.a2,qn=e.a3,kn=e.a4,Tn=e.a5,In=e.a6,Cn=e.a7,Ln=e.a8,En=e.a9,zn=e.aa,On=e.ab},function(){},function(e){Sn=e.o,An=e.i,Rn=e.r,jn=e.e,Hn=e.S,Mn=e.D,Pn=e.u,Nn=e.T,Fn=e.f,$n=e.g,Vn=e.h,Qn=e.j,Gn=e.R,Bn=e.k,Dn=e.E,Wn=e.d,Un=e.C,Xn=e.t,Yn=e.l,Kn=e.m,Zn=e.p,Jn=e.q,ei=e.s,ti=e.v,ni=e.b,ii=e.w,si=e.x,oi=e.y,ri=e.$,ai=e.a,ci=e.n,li=e.z,ui=e.B,di=e.F,hi=e.I,pi=e.G,gi=e.c,fi=e.H,_i=e.J},function(e){mi=e.F,vi=e.a},function(){},function(){}],execute:function(){var n,t=require("npm:navigo/lib/navigo.js"),i=mt("A",function(){this.queryParams=new Tt(function(t){var e=o.subscribe(function(e){e&&t.next(Sn(e.query))});return{unsubscribe:function(){e.unsubscribe()}}}),this.fragment=new Tt(function(t){var e=location.hash;t.next(e);function n(e){t.next(location.hash)}return window.addEventListener("hashchange",n),{unsubscribe:function(){window.removeEventListener("hashchange",n)}}})}),s=[],o=new bt(null),e=mt("R",(r.forRoot=function(e){s=s.concat(e)},r.ɵmod=yt({type:r}),r.ɵinj=wt({factory:function(e){return new(e||r)},providers:[i],imports:[[xt]]}),r));function r(){var e=document.querySelector("head base");(n=new t(location.origin+e.getAttribute("href")||"")).hooks({after:function(){var e=n.lastRouteResolved();o.next({url:e.url,params:e.params,query:e.query})}}),s.forEach(function(e){var t;e.path&&(t=e.path,"prefix"==e.pathMatch&&(t+="/*"),n.on(t,function(){}))}),n.resolve()}qt(e,[{type:kt,args:[{imports:[xt],providers:[i]}]}],function(){return[]},null);var a=(Object.defineProperty(c.prototype,"updateAutoSize",{get:function(){return!1},set:function(e){var t=this;An()||this._zone.runOutsideAngular(function(){1==e&&Rn(function(){t._autosize.then(function(e){e.update(t._el.nativeElement)})})})},enumerable:!1,configurable:!0}),c.prototype.fireResize=function(){this.onResized.emit()},c.prototype._windowResize=function(){var e=this;this._resize&&this._zone.runOutsideAngular(function(){Rn(function(){e._autosize&&e._autosize.update(e._el.nativeElement)})})},c.prototype.ngOnInit=function(){this.fireResize=this.fireResize.bind(this),this._windowResize=this._windowResize.bind(this),An()||window.addEventListener("resize",this._windowResize)},c.prototype.ngAfterViewInit=function(){var t=this;!An()&&this._el.nativeElement&&this._zone.runOutsideAngular(function(){SystemJS.dynamicImport(["autosize"]).then(function(e){e=e[0];e(t._el.nativeElement),t._el.nativeElement.addEventListener("autosize:resized",t.fireResize),t._autosize=e})})},c.prototype.ngOnDestroy=function(){An()||(this._autosize&&(this._autosize.destroy(this._el.nativeElement),this._el.nativeElement.removeEventListener("autosize:resized",this.fireResize)),window.removeEventListener("resize",this._windowResize))},c.ɵfac=function(e){return new(e||c)(It(zt),It(Ot))},c.ɵdir=Ct({type:c,selectors:[["","ng-autosize",""]],inputs:{updateAutoSize:["sizeupdate","updateAutoSize"],_resize:["watchresize","_resize"]},outputs:{onResized:"onResized"}}),c);function c(e,t){this._el=e,this._zone=t,this._resize=!1,this.onResized=new At}qt(a,[{type:St,args:[{selector:"[ng-autosize]"}]}],function(){return[{type:zt},{type:Ot}]},{updateAutoSize:[{type:Lt,args:["sizeupdate"]}],_resize:[{type:Lt,args:["watchresize"]}],onResized:[{type:Et}]});var l=(u.ɵmod=yt({type:u}),u.ɵinj=wt({factory:function(e){return new(e||u)},imports:[[xt]]}),u);function u(){}qt(l,[{type:kt,args:[{declarations:[a],exports:[a],imports:[xt]}]}],null,null);var d=["textarea"];function h(e,t){1&e&&(Wt(0,"div",4),Pt(1,"i"),Ut())}var p=require("systemjs"),g=!1,f=jn()&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,_=(Object.defineProperty(m.prototype,"value",{get:function(){return this._value.getValue()},set:function(e){this._value.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"active",{get:function(){return this._active.getValue()},set:function(e){this._active.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"readonly",{get:function(){return this._readonly},set:function(e){this._readonly=e,this._editor&&(this._editor.isReadOnly=e)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"autofocus",{get:function(){return this._autofocus},set:function(e){(this._autofocus=e)&&this._container&&this._container.nativeElement.focus()},enumerable:!1,configurable:!0}),m.prototype.StartCkeditor=function(){var i=this;p.dynamicImport(["ckeditor5/build/ckeditor.js"],function(e){e.create(i._container.nativeElement,i.options).then(function(t){var n;i._enabled=!0,i._editor=t,i._cd.detectChanges(),t.model.document.on("change:data",function(e){n=t.getData(),i.valueChange.emit(n)}),i._editorsubs=i._value.subscribe(function(e){n!==e&&t.setData(e)}),i.autofocus&&(t.editing.view.focus(),f||setTimeout(function(){var e=i._el.nativeElement;i._service.scrollTo({target:e,inview:!0})},100)),i.editorInitiated.emit(!0),g=!0},function(){throw i.editorInitiated.emit(!1),Error("Cannot instance the ckeditor")})},function(){throw i.editorInitiated.emit(!1),Error("Cannot load the ckeditor")})},m.prototype.EndCkeditor=function(){this._enabled=!1,this._editor&&(this._editor.destroy(),this._editor=null,this._editorsubs.unsubscribe())},m.prototype.ngOnInit=function(){var t=this,e=this._active.subscribe(function(e){e&&!t._enabled?setTimeout(function(){Rn(function(){t.StartCkeditor()})}):t._enabled&&t.EndCkeditor()},function(){},function(){e&&e.unsubscribe()});this.editorInitiated.subscribe(function(){t.editor_init=!0})},m.prototype.ngOnDestroy=function(){this._active.complete(),this._value.complete(),this.EndCkeditor()},m.ɵfac=function(e){return new(e||m)(It(zt),It(Gt),It(Hn))},m.ɵcmp=Rt({type:m,selectors:[["ck-editor"]],viewQuery:function(e,t){var n;1&e&&jt(d,!0),2&e&&Ht(n=Mt())&&(t._container=n.first)},hostAttrs:[1,"progress-indicator-container"],inputs:{value:"value",active:"active",readonly:"readonly",autofocus:["cursor-focus","autofocus"],options:"options"},outputs:{valueChange:"valueChange",editorInitiated:"editorInitiated"},decls:4,vars:2,consts:[[1,"ck-tools"],[1,"ck-textarea",3,"value"],["textarea",""],["class","progress-indicator visible",4,"ngIf"],[1,"progress-indicator","visible"]],template:function(e,t){1&e&&(Pt(0,"div",0),Pt(1,"textarea",1,2),Nt(3,h,2,0,"div",3)),2&e&&(Ft(1),$t("value",t.value),Ft(2),$t("ngIf",!t.editor_init))},directives:[Vt],styles:['.ck-toolbar .ckeditor-heading { font-size:18px; font-family: "ProximaNova-Bold", Helvetica, Arial, sans-serif }',".ck-editor__editable a:focus,.ck-editor__editable a:hover{text-decoration:underline}",".ck-editor__editable a{color:#1194f6;text-decoration:none;cursor:pointer}","ck-editor { display: block }"],encapsulation:2}),m);function m(e,t,n){this._el=e,this._cd=t,this._service=n,this._destroyed=!0,this.ckeditorLoaded=!0,this.ckelementid=Pn(),this._value=new bt(null),this.valueChange=new At,this._active=new bt(!1),this._autofocus=!1,this._enabled=!1,this.options={toolbar:["heading","|","bold","italic","underline","link","|","insertTable","bulletedList","numberedList","|","undo","redo"],heading:{options:[{model:"paragraph",title:"Normal",class:""},{model:"heading2",view:"h2",title:"Heading",class:"ckeditor-heading bold-font"}]},table:{toolbar:["tableColumn","tableRow","mergeTableCells"]}},this.editorInitiated=new At,this.editor_init=g}qt(_,[{type:Bt,args:[{selector:"ck-editor",template:'\n        <div class="ck-tools"></div>\n        <textarea #textarea class="ck-textarea" [value]="value"></textarea>\n        <div class="progress-indicator visible" *ngIf="!editor_init"><i></i></div>\n    ',styles:['.ck-toolbar .ckeditor-heading { font-size:18px; font-family: "ProximaNova-Bold", Helvetica, Arial, sans-serif }',".ck-editor__editable a:focus,.ck-editor__editable a:hover{text-decoration:underline}",".ck-editor__editable a{color:#1194f6;text-decoration:none;cursor:pointer}","ck-editor { display: block }"],host:{class:"progress-indicator-container"},encapsulation:Dt.None}]}],function(){return[{type:zt},{type:Gt},{type:Hn}]},{_container:[{type:Qt,args:["textarea",{static:!0}]}],value:[{type:Lt}],valueChange:[{type:Et}],active:[{type:Lt,args:["active"]}],readonly:[{type:Lt}],autofocus:[{type:Lt,args:["cursor-focus"]}],options:[{type:Lt}],editorInitiated:[{type:Et}]});var v=(b.ɵmod=yt({type:b}),b.ɵinj=wt({factory:function(e){return new(e||b)},imports:[[xt,Mn]]}),b);function b(){}qt(v,[{type:kt,args:[{declarations:[_],exports:[_],imports:[xt,Mn]}]}],null,null);var y=(Object.defineProperty(w.prototype,"src",{get:function(){return this._src},set:function(e){this._src=e,!this._src&&this.fallback&&(this._src=this.fallback),this._src&&this._renderer.setAttribute(this._el.nativeElement,"src",this._src)},enumerable:!1,configurable:!0}),w.prototype.onError=function(e){!An()&&e&&(e=this._el.nativeElement,this.fallback&&e.src!=this.fallback?(e.src=this.fallback,e.style.display=""):e.style.display="none",this.onImageFailed.emit(!0))},w.prototype.ngOnInit=function(){An()||(this.onError=this.onError.bind(this),this._el.nativeElement.addEventListener("error",this.onError))},w.prototype.ngOnDestroy=function(){An()||this._el.nativeElement.removeEventListener("error",this.onError)},w.ɵfac=function(e){return new(e||w)(It(zt),It(Xt))},w.ɵdir=Ct({type:w,selectors:[["","on-img-error",""]],inputs:{fallback:["on-img-error","fallback"],src:"src"},outputs:{onImageFailed:"image-failed"}}),w);function w(e,t){this._el=e,this._renderer=t,this.onImageFailed=new At}qt(y,[{type:St,args:[{selector:"[on-img-error]"}]}],function(){return[{type:zt},{type:Xt}]},{fallback:[{type:Lt,args:["on-img-error"]}],onImageFailed:[{type:Et,args:["image-failed"]}],src:[{type:Lt}]});var x=(q.ɵmod=yt({type:q}),q.ɵinj=wt({factory:function(e){return new(e||q)},imports:[[xt]]}),q);function q(){}qt(x,[{type:kt,args:[{declarations:[y],exports:[y],imports:[xt]}]}],null,null);var k=["img-placeholder",""];function T(e,t){1&e&&Pt(0,"img",2),2&e&&(e=Zt(),$t("src",e.srcLoaded,Jt)("ngClass",e.classes)("alt",e.alt),en("itemprop",e.itemprop))}function I(e,t){1&e&&Pt(0,"div",3),2&e&&(e=Zt(),$t("ngClass","animated-"+e.type)("ngStyle",e.placeHolderStyle))}var C=(Object.defineProperty(L.prototype,"src",{get:function(){return this._src},set:function(e){this._src=e,An()?this.srcLoaded=this._src:(this.placeHolderStyle={width:this.boxwidth+this.unitsizewidth,height:this.boxheight+this.unitsizeheight},this.showCardImage()),this._cd.detectChanges()},enumerable:!1,configurable:!0}),L.prototype.showCardImage=function(){var e=this;this.myImage||(this.myImage=new Image,this.myImage.onload=function(){e.srcLoaded=e.myImage.getAttribute("src"),e._cd.detectChanges()}),this.myImage.src=this.src},L.prototype.ngOnInit=function(){},L.ɵfac=function(e){return new(e||L)(It(Gt))},L.ɵcmp=Rt({type:L,selectors:[["","img-placeholder",""]],inputs:{src:"src",itemprop:"itemprop",alt:"alt",classes:"classes",boxwidth:"boxwidth",boxheight:"boxheight",unitsizewidth:"unitsizewidth",unitsizeheight:"unitsizeheight",type:"type"},outputs:{imageLoaded:"imageLoaded"},attrs:k,decls:2,vars:2,consts:[[3,"src","ngClass","alt",4,"ngIf"],["class","animated-placeholder",3,"ngClass","ngStyle",4,"ngIf"],[3,"src","ngClass","alt"],[1,"animated-placeholder",3,"ngClass","ngStyle"]],template:function(e,t){1&e&&(Nt(0,T,1,4,"img",0),Nt(1,I,1,2,"div",1)),2&e&&($t("ngIf",""!=t.srcLoaded),Ft(1),$t("ngIf",""==t.srcLoaded))},directives:[Vt,Yt,Kt],encapsulation:2}),L);function L(e){this._cd=e,this._src="",this.itemprop="",this.classes=[],this.boxwidth=100,this.boxheight=100,this.unitsizewidth="%",this.unitsizeheight="%",this.type="rounded",this.imageLoaded=new At,this.srcLoaded=""}qt(C,[{type:Bt,args:[{selector:"[img-placeholder]",template:'<img [attr.itemprop]="itemprop" [src]="srcLoaded" [ngClass]="classes" [alt]="alt" *ngIf="srcLoaded!=\'\'" />\n                <div class="animated-placeholder" [ngClass]="\'animated-\'+type" *ngIf="srcLoaded==\'\'" [ngStyle]="placeHolderStyle"></div>'}]}],function(){return[{type:Gt}]},{src:[{type:Lt,args:["src"]}],itemprop:[{type:Lt}],alt:[{type:Lt}],classes:[{type:Lt}],boxwidth:[{type:Lt}],boxheight:[{type:Lt}],unitsizewidth:[{type:Lt}],unitsizeheight:[{type:Lt}],type:[{type:Lt}],imageLoaded:[{type:Et}]});var E=(z.ɵmod=yt({type:z}),z.ɵinj=wt({factory:function(e){return new(e||z)},imports:[[xt]]}),z);function z(){}qt(E,[{type:kt,args:[{declarations:[C],exports:[C],imports:[xt]}]}],null,null);var O=["dropdownList"];function S(e,t){1&e&&(Wt(0,"span",7),nn("onTap",function(){return!0}),Ut()),2&e&&(e=Zt(),$t("cleanHTML",e.placeholder))}function A(e,t){1&e&&(Wt(0,"span",8),nn("onTap",function(){return!0}),Ut()),2&e&&(e=Zt(),$t("cleanHTML",e.value))}function R(e,n){var i,t,s;1&e&&(i=pn(),Wt(0,"li",9),nn("onTap",function(e){gn(i);var t=n.index;return Zt().selectItem(e,t)}),Ut()),2&e&&(t=n.$implicit,s=n.index,e=Zt(),hn("active",e.activeidx==s),$t("cleanHTML",t))}function j(e,t,n,i,s){return{"ng-wh-error":e,"drp-b-darker":t,second:n,selected:i,opened:s}}function H(e,t){1&e&&(Wt(0,"span",12),nn("onTap",function(){return!0}),Ut()),2&e&&(e=Zt(),$t("cleanHTML",e.placeholder))}function M(e,t){1&e&&(Wt(0,"span",13),nn("onTap",function(){return!0}),Ut()),2&e&&(e=Zt(),$t("cleanHTML",e.value))}function P(e,t){var n;1&e&&(n=pn(),Wt(0,"span",7),nn("onTap",function(e){return gn(n),Zt().controlListOveride(e)})("onTapOutside",function(e){return gn(n),Zt().controlListOveride(e,!1)}),Ut()),2&e&&(e=Zt(),$t("innerHTML",e.placeholder,fn)("zing-no-touch",!0))}function N(e,t){var n;1&e&&(n=pn(),Wt(0,"span",7),nn("onTap",function(e){return gn(n),Zt().controlListOveride(e)})("onTapOutside",function(e){return gn(n),Zt().controlListOveride(e,!1)}),Ut()),2&e&&(e=Zt(),$t("innerHTML",e.value,fn)("zing-no-touch",!0))}function F(e,t){var n;1&e&&(n=pn(),Wt(0,"span",8),nn("onTap",function(e){return gn(n),Zt().removeSelected(e)}),Ut())}function $(e,t,n,i,s){return{"ng-wh-error":e,"drp-b-darker":t,second:n,selected:i,show:s}}var V=["*"],k=mt("n",(Object.defineProperty(Q.prototype,"value",{get:function(){return(this._value||"").toString()},set:function(e){this.noselection=!e,this._value=e},enumerable:!1,configurable:!0}),Q.prototype.controlList=function(e,t){this.opened=void 0!==t?t:!this.opened,this.onTapped.emit(this),this.fixOverflow()},Q.prototype.close=function(){this.opened=!1},Q.prototype.open=function(){this.opened=!0},Q.prototype.selectItem=function(e,t){void 0===t&&(t=0),e&&e.srcEvent?e.srcEvent.cancelBubble=!0:e&&e.stopPropagation&&e.stopPropagation(),this._value=this.items[t],this.activeidx=t,this.valueChange.emit(this.value),this.noselection=!1,this.selected.emit({eventName:"select",value:this.value,index:t})},Q.prototype.trackByFn=function(e){return e},Q.prototype.ngOnInit=function(){this.value&&-1<this.items.indexOf(this.value)&&(this.activeidx=this.items.indexOf(this.value))},Q.prototype.fixOverflow=function(){var t=this.dropdownList&&this.dropdownList.nativeElement,n=t&&t.parentElement;setTimeout(function(){try{var e=t.getBoundingClientRect();n.getBoundingClientRect().x+e.width>=window.innerWidth?t.classList.add("sticky-right"):t.classList.remove("sticky-right")}catch(e){throw e}})},Q.ɵfac=function(e){return new(e||Q)},Q.ɵcmp=Rt({type:Q,selectors:[["ng-dropdown"]],viewQuery:function(e,t){var n;1&e&&tn(O,!0,zt),2&e&&Ht(n=Mt())&&(t.dropdownList=n.first)},inputs:{placeholder:"placeholder",items:"items",second:"second",darker:["dark-borders","darker"],invalid:"invalid",value:"value"},outputs:{valueChange:"valueChange",selected:"selected",onTapped:"onTapped"},decls:7,vars:12,consts:[["zing-touch","",1,"dropdown",3,"ngClass","onTap","onTapOutside"],["zing-touch","","class","dropdown-placeholder",3,"cleanHTML","onTap",4,"ngIf"],["zing-touch","","class","dropdown-selected",3,"cleanHTML","onTap",4,"ngIf"],[1,"dropdown-list","ng-enter-element",3,"ng-hidden"],["dropdownList",""],["class","dropdown-item","zing-touch","",3,"active","cleanHTML","onTap",4,"ngFor","ngForOf","ngForTrackBy"],[1,"dropdown-arrow","bf-icon-down-open"],["zing-touch","",1,"dropdown-placeholder",3,"cleanHTML","onTap"],["zing-touch","",1,"dropdown-selected",3,"cleanHTML","onTap"],["zing-touch","",1,"dropdown-item",3,"cleanHTML","onTap"]],template:function(e,t){1&e&&(Wt(0,"div",0),nn("onTap",function(e){return t.controlList(e)})("onTapOutside",function(e){return t.controlList(e,!1)}),Nt(1,S,1,1,"span",1),Nt(2,A,1,1,"span",2),Wt(3,"ul",3,4),Nt(5,R,1,3,"li",5),Ut(),Pt(6,"i",6),Ut()),2&e&&($t("ngClass",sn(6,j,t.invalid,t.darker,t.second,!t.noselection,t.opened)),Ft(1),$t("ngIf",t.placeholder&&t.noselection),Ft(1),$t("ngIf",!t.noselection),Ft(1),$t("ng-hidden",!t.opened),Ft(2),$t("ngForOf",t.items)("ngForTrackBy",t.trackByFn))},directives:[Nn,Yt,Vt,Fn,on,$n],encapsulation:2}),Q));function Q(){this.placeholder="Select...",this.items=[],this.darker=!1,this.invalid=!1,this.valueChange=new At,this.selected=new At,this.onTapped=new At,this.noselection=!0,this.opened=!1,this.activeidx=null}qt(k,[{type:Bt,args:[{selector:"ng-dropdown",template:'<div class="dropdown" [ngClass]="{ \'ng-wh-error\' : invalid, \'drp-b-darker\'  : darker, \'second\' : second, \'selected\' : !noselection, \'opened\' : opened }" zing-touch (onTap)="controlList($event)" (onTapOutside)="controlList($event,false)">\n                    <span zing-touch (onTap)="true" class="dropdown-placeholder" *ngIf="(placeholder && noselection)" [cleanHTML]="placeholder"></span>\n                    <span zing-touch (onTap)="true" class="dropdown-selected" *ngIf="!noselection" [cleanHTML]="value"></span>\n                    <ul class="dropdown-list ng-enter-element" [ng-hidden]="!opened" #dropdownList>\n                        <li *ngFor="let item of items; index as i; trackBy: trackByFn" class="dropdown-item" [class.active]="activeidx == i" zing-touch (onTap)="selectItem($event,i)" [cleanHTML]="item"></li>\n                    </ul>\n                    <i class="dropdown-arrow bf-icon-down-open"></i>\n                </div>'}]}],null,{placeholder:[{type:Lt}],items:[{type:Lt}],second:[{type:Lt}],darker:[{type:Lt,args:["dark-borders"]}],invalid:[{type:Lt,args:["invalid"]}],valueChange:[{type:Et}],selected:[{type:Et}],onTapped:[{type:Et}],dropdownList:[{type:Qt,args:["dropdownList",{read:zt,static:!1}]}],value:[{type:Lt}]});var G,E=(G=k,__extends(B,G),B.prototype.Check=function(e){void 0!==e&&(this.booleanValue===e?(this.booleanValue=null,this.value=null):(this.booleanValue=e,this.value=e?"Yes":"No"),this.valueChange.emit(this.value))},B.ɵfac=function(e){return D(e||B)},B.ɵcmp=Rt({type:B,selectors:[["ng-dropdown-bool"]],inputs:{text:"text",name:"name",label:"label"},features:[rn],decls:19,vars:19,consts:[["zing-touch","",1,"dropdown",3,"ngClass","onTap","onTapOutside"],["zing-touch","","class","dropdown-placeholder",3,"cleanHTML","onTap",4,"ngIf"],["zing-touch","","class","dropdown-selected",3,"cleanHTML","onTap",4,"ngIf"],[1,"dropdown-list","ng-enter-element",3,"ng-hidden"],["dropdownList",""],[1,"text"],[1,"boolean-items"],["zing-touch","",1,"checkbox",3,"zingToggle"],["type","checkbox","value","",3,"checked","name","change"],[1,"track","bf-icon-ok"],[1,"name"],[1,"dropdown-arrow","bf-icon-down-open"],["zing-touch","",1,"dropdown-placeholder",3,"cleanHTML","onTap"],["zing-touch","",1,"dropdown-selected",3,"cleanHTML","onTap"]],template:function(e,t){1&e&&(Wt(0,"div",0),nn("onTap",function(e){return t.controlList(e)})("onTapOutside",function(e){return t.controlList(e,!1)}),Nt(1,H,1,1,"span",1),Nt(2,M,1,1,"span",2),Wt(3,"div",3,4),Wt(5,"p",5),an(6),Ut(),Wt(7,"div",6),Wt(8,"label",7),Wt(9,"input",8),nn("change",function(){return t.Check(!0)}),Ut(),Pt(10,"i",9),Wt(11,"span",10),an(12,"Yes"),Ut(),Ut(),Wt(13,"label",7),Wt(14,"input",8),nn("change",function(){return t.Check(!1)}),Ut(),Pt(15,"i",9),Wt(16,"span",10),an(17,"No"),Ut(),Ut(),Ut(),Ut(),Pt(18,"i",11),Ut()),2&e&&($t("ngClass",sn(13,j,t.invalid,t.darker,t.second,!t.noselection,t.opened)),Ft(1),$t("ngIf",t.placeholder&&t.noselection),Ft(1),$t("ngIf",!t.noselection),Ft(1),$t("ng-hidden",!t.opened),Ft(3),cn(" ",t.text," "),Ft(2),$t("zingToggle",!0),en("aria-label",t.label),Ft(1),$t("checked",!0===t.booleanValue)("name",t.name),Ft(4),$t("zingToggle",!0),en("aria-label",t.label),Ft(1),$t("checked",!1===t.booleanValue)("name",t.name))},directives:[Nn,Yt,Vt,Fn,$n],encapsulation:2}),B);function B(){var e=null!==G&&G.apply(this,arguments)||this;return e.text="Some text to display",e.name="",e.label="",e.booleanValue=null,e}var D=ln(E);qt(E,[{type:Bt,args:[{selector:"ng-dropdown-bool",template:'<div class="dropdown" [ngClass]="{ \'ng-wh-error\' : invalid, \'drp-b-darker\'  : darker, \'second\' : second, \'selected\' : !noselection, \'opened\' : opened }" zing-touch (onTap)="controlList($event)" (onTapOutside)="controlList($event,false)">\n                    <span zing-touch (onTap)="true" class="dropdown-placeholder" *ngIf="(placeholder && noselection)" [cleanHTML]="placeholder"></span>\n                    <span zing-touch (onTap)="true" class="dropdown-selected" *ngIf="!noselection" [cleanHTML]="value"></span>\n                    <div class="dropdown-list ng-enter-element" [ng-hidden]="!opened" #dropdownList>\n                        <p class="text"> {{ text }} </p>\n                        <div class="boolean-items">\n                            <label class="checkbox" zing-touch [zingToggle]="true" [attr.aria-label]="label">\n                                <input type="checkbox" value="" [checked]="booleanValue === true" (change)="Check(true)" [name]="name"/>\n                                <i class="track bf-icon-ok"></i>\n                                <span class="name">Yes</span>\n                            </label>\n                            <label class="checkbox" zing-touch [zingToggle]="true" [attr.aria-label]="label">\n                                <input type="checkbox" value="" [checked]="booleanValue === false" (change)="Check(false)" [name]="name"/>\n                                <i class="track bf-icon-ok"></i>\n                                <span class="name">No</span>\n                            </label>\n                        </div>\n                    </div>\n                    <i class="dropdown-arrow bf-icon-down-open"></i>\n                </div>'}]}],null,{text:[{type:Lt}],name:[{type:Lt}],label:[{type:Lt}]});var W,C=(W=k,__extends(U,W),U.prototype.controlListOveride=function(e,t){this.controlList(e,t),this.fixOverflowRight()},U.prototype.removeSelected=function(e){this.value=null,this.filterCleared.emit(!0),this.controlList(e,!1)},U.prototype.fixOverflowRight=function(){var n=this.dropdownList&&this.dropdownList.nativeElement,i=n&&n.parentElement;n.style.left="0px",setTimeout(function(){try{var e=n.getBoundingClientRect(),t=i.getBoundingClientRect();t.x+t.width<=e.width?n.classList.add("sticky-left"):n.classList.remove("sticky-left"),e.x+e.width>=window.innerWidth?(e=window.innerWidth-(e.x+e.width+20),n.style.left=e+"px"):n.style.left="0px"}catch(e){throw e}})},U.ɵfac=function(e){return X(e||U)},U.ɵcmp=Rt({type:U,selectors:[["ng-dropdown-filter"]],inputs:{wider:"wider"},outputs:{filterCleared:"filterCleared"},features:[rn],ngContentSelectors:V,decls:9,vars:14,consts:[[1,"filter-box",3,"ngClass"],["zing-touch","",1,"filter-tag",3,"onTap"],["class","filter-label","zing-touch","","role","button",3,"innerHTML","zing-no-touch","onTap","onTapOutside",4,"ngIf"],["zing-touch","","role","button",1,"filter-drp-arrow",3,"zing-no-touch","onTap","onTapOutside"],["class","filter-drp-close bf-icon-cross","zing-touch","",3,"onTap",4,"ngIf"],["zing-touch","",1,"filter-content","ng-enter-element",3,"ng-hidden","onTap","onTapOutside"],["dropdownList",""],["zing-touch","","role","button",1,"filter-label",3,"innerHTML","zing-no-touch","onTap","onTapOutside"],["zing-touch","",1,"filter-drp-close","bf-icon-cross",3,"onTap"]],template:function(e,t){1&e&&(un(),Wt(0,"div",0),Wt(1,"div",1),nn("onTap",function(){return!0}),Nt(2,P,1,2,"span",2),Wt(3,"i",3),nn("onTap",function(e){return t.controlListOveride(e)})("onTapOutside",function(e){return t.controlListOveride(e,!1)}),Ut(),Nt(4,N,1,2,"span",2),Nt(5,F,1,0,"span",4),Ut(),Wt(6,"div",5,6),nn("onTap",function(e){return t.controlListOveride(e,!0)})("onTapOutside",function(e){return t.controlListOveride(e,!1)}),dn(8),Ut(),Ut()),2&e&&($t("ngClass",sn(8,$,t.invalid,t.darker,t.second,!t.noselection,t.opened)),Ft(2),$t("ngIf",t.placeholder&&t.noselection),Ft(1),$t("zing-no-touch",!0),Ft(1),$t("ngIf",!t.noselection),Ft(1),$t("ngIf",!t.noselection),Ft(1),hn("wider",t.wider),$t("ng-hidden",!t.opened))},directives:[Yt,Nn,Vt,Fn],encapsulation:2}),U);function U(){var e=null!==W&&W.apply(this,arguments)||this;return e.wider=!1,e.filterCleared=new At,e}var X=ln(C);qt(C,[{type:Bt,args:[{selector:"ng-dropdown-filter",template:'<div class="filter-box" [ngClass]="{ \'ng-wh-error\' : invalid, \'drp-b-darker\'  : darker, \'second\' : second, \'selected\' : !noselection, \'show\' : opened }">\n                    <div class="filter-tag" zing-touch (onTap)="true">\n                        <span class="filter-label" *ngIf="(placeholder && noselection)" [innerHTML]="placeholder" zing-touch [zing-no-touch]="true" (onTap)="controlListOveride($event)" (onTapOutside)="controlListOveride($event,false)" role="button"></span>\n                        <i class="filter-drp-arrow" zing-touch [zing-no-touch]="true" (onTap)="controlListOveride($event)" (onTapOutside)="controlListOveride($event,false)" role="button"></i>\n                        <span class="filter-label" *ngIf="!noselection" [innerHTML]="value" zing-touch [zing-no-touch]="true" (onTap)="controlListOveride($event)" (onTapOutside)="controlListOveride($event,false)" role="button"></span>\n                        <span class="filter-drp-close bf-icon-cross" zing-touch *ngIf="!noselection" (onTap)="removeSelected($event)"></span>\n                    </div>\n                    <div class="filter-content ng-enter-element" [class.wider]="wider" [ng-hidden]="!opened" #dropdownList zing-touch (onTap)="controlListOveride($event,true)" (onTapOutside)="controlListOveride($event,false)">\n                        <ng-content></ng-content>\n                    </div>\n                </div>'}]}],null,{wider:[{type:Lt}],filterCleared:[{type:Et}]});V=mt("a",(Y.ɵmod=yt({type:Y}),Y.ɵinj=wt({factory:function(e){return new(e||Y)},imports:[[xt,Mn]]}),Y));function Y(){}function K(e,t){1&e&&(Wt(0,"h2",8),an(1,"Ask a Question"),Ut())}function Z(e,t){1&e&&(Wt(0,"h2",8),an(1,"Thank you"),Ut())}function J(e,t){1&e&&(Wt(0,"h2",8),an(1,"Please provide your email in order to receive answers"),Ut())}function ee(e,t){var n;1&e&&(n=pn(),Wt(0,"div",9),Wt(1,"span",10),an(2),Ut(),Wt(3,"textarea",11),nn("input",function(e){return gn(n),Zt().SetInput(e)}),Ut(),Ut()),2&e&&(e=Zt(),Ft(1),hn("ques-ov-cred",e.input_chars_left<0),Ft(1),mn(e.input_chars_left),Ft(1),$t("value",e.input_value)("readonly",e.submiting))}function te(e,t){var n;1&e&&(n=pn(),Wt(0,"div",9),Wt(1,"textarea",12),nn("input",function(e){return gn(n),Zt().input_value_extra=e.target.value}),Ut(),Ut()),2&e&&(e=Zt(),Ft(1),$t("value",e.input_value_extra)("readonly",e.submiting))}function ne(e,t){var n;1&e&&(n=pn(),Wt(0,"div",9),Wt(1,"ng-dropdown",13),nn("selected",function(e){return gn(n),Zt().SetCategory(e)}),Ut(),Ut()),2&e&&(e=Zt(),Ft(1),$t("invalid",e.categoryerror)("items",e.categories)("second",!0)("value",e.category))}function ie(e,t){1&e&&Pt(0,"div",14),2&e&&(e=Zt(),$t("innerHTML",e.ajax_message,fn)("zing-url-container",!0))}function se(e,t){var n;1&e&&(n=pn(),Wt(0,"button",15),nn("onTap",function(){return gn(n),Zt().Submit()}),an(1," Next "),Pt(2,"i",16),Ut()),2&e&&(e=Zt(),hn("loadactive",e.submiting),$t("disabled",e.submiting))}function oe(e,t){1&e&&(Wt(0,"div",17),an(1,"Your question has been submitted to our moderators for review. We will send you an email once your question has been approved."),Ut())}function re(e,t){1&e&&Pt(0,"br")}function ae(e,t){1&e&&Pt(0,"div",14),2&e&&(e=Zt(2),$t("innerHTML",e.ajax_message,fn)("zing-url-container",!0))}function ce(e,t){1&e&&Pt(0,"br")}function le(e,t){var n;1&e&&(n=pn(),Wt(0,"div",18),Wt(1,"button",19),nn("onTap",function(){return gn(n),Zt().Back()}),an(2,"Back"),Ut(),Wt(3,"button",20),nn("onTap",function(){return gn(n),Zt().GuestSubmit()}),Pt(4,"i",21),Wt(5,"span",22),an(6,"Login to Wallethub"),Ut(),Ut(),Wt(7,"div",23),an(8,"or"),Ut(),Wt(9,"input",24),nn("input",function(e){return gn(n),Zt().user_email=e.target.value}),Ut(),Nt(10,re,1,0,"br",25),Nt(11,ae,1,2,"div",4),Nt(12,ce,1,0,"br",25),Wt(13,"button",26),nn("onTap",function(){return gn(n),Zt().GuestSubmit()}),an(14," Submit "),Pt(15,"i",16),Ut(),Ut()),2&e&&(e=Zt(),Ft(9),$t("value",e.user_email),Ft(1),$t("ngIf",!e.show_ajax_error),Ft(1),$t("ngIf",e.show_ajax_error),Ft(1),$t("ngIf",!e.show_ajax_error),Ft(1),hn("loadactive",e.submiting),$t("disabled",e.submiting))}qt(V,[{type:kt,args:[{declarations:[k,E,C],exports:[k,E,C],imports:[xt,Mn]}]}],null,null);var ue=require("systemjs"),de=(he.prototype._CountWords=function(e){if(!e)return"";e=e.replace(/(^\s*)|(\s*$)/gi,"");return(e=(e=e.replace(/[ ]{2,}/gi," ")).replace(/\n /,"")).split(" ").filter(function(e){return""!=e}).length},he.prototype._CountChars=function(){this.input_chars_left=this.input_value?this._max_input-this.input_value.trim().length:this._max_input},he.prototype._SendQues=function(){var n=this;this.show_ajax_error=!1,this.submiting=!0;var i=Vn(this.input_value);ue.dynamicImport(["Encryption"],function(e){var t={url:Qn()+"/ajax.php",data:Object.assign({action:"Answers.PostQuestion",question:i,url:n._referer},n.data.addparams||{}),encryptprops:["email"],before:function(){n.submiting=!0},after:function(){n.submiting=!1},headers:{"Content-Type":"application/x-www-form-urlencoded"}};n.has_categories&&(t.data.category=n._catid),n.user_email&&(t.data.email=n.user_email),n._is_lodgged||n.user_email||(t.data.light=!0),n.input_value_extra&&(t.data.details=n.input_value_extra),e.send(t).then(function(e){if(!e||e.error)e&&"message"in e?n.ajax_message=e.message:n.ajax_message='Unexpected error. Please contact <a class="link" href="mailto:help@wallethub.com" target="system">help@evolutionfinance.com</a>',n.show_ajax_error=!0;else{if("redirect"in e)return n.submiting=!0,void(top.location.href=e.redirect);n.submited=!0}},function(e){n.ajax_message='Unexpected error. Please contact <a class="link" href="mailto:help@wallethub.com" target="system">help@evolutionfinance.com</a>',n.show_ajax_error=!0,Gn(e,"Failed to submit a question from ng2 QnA component")})},function(t){n.ajax_message='Unexpected error. Please contact <a class="link" href="mailto:help@wallethub.com" target="system">help@evolutionfinance.com</a>',n.show_ajax_error=!0,Bn().then(function(e){e.captureException(t)},function(){})})},he.prototype.SetCategory=function(e){this.category=e.value,this._catid=this._catindex[e.index],this.categoryerror=!1},he.prototype.Submit=function(){this.show_error||this.submiting||(this.show_ajax_error=!1,this._CountWords(this.input_value)<3?(this.show_error=!0,this.error_message="Question must have at least 3 words."):this.input_chars_left<0?(this.error_message="Question cannot have more then "+this._max_input+" chars.",this.show_error=!0):this.has_categories&&!this.category?(this.show_error=!0,this.error_message="Please select a category."):this._is_lodgged?this._SendQues():this.needs_login=!0)},he.prototype.OnErrorToastHidden=function(){this.show_error&&(this.show_error=!1)},he.prototype.GuestSubmit=function(){this._SendQues()},he.prototype.SetInput=function(e){this.show_error=!1,this.show_ajax_error=!1,this.input_value=e.target.value,this._CountChars()},he.prototype.Back=function(){this.needs_login=!1,this.show_ajax_error=!1,this.ajax_message=""},he.prototype.ngOnInit=function(){var t=this;this.input_value=this.data.input||"",this.data.referer?this._referer=this.data.referer:(this._referer=Qn()+this._location.path(),this._referer.lastIndexOf("/")!==this._referer.length-1&&(this._referer+="/")),this.data.categories&&0<this.data.categories.length&&(this.has_categories=!0,this.categories=[],this._catindex=[],this.data.categories.forEach(function(e){t.categories.push(e.name),t._catindex.push(e.id)}),1==this.categories.length&&(this._catid=this._catindex[0],this.category=this.categories[0])),this._CountChars(),!An()&&Un.get("mw_signon")&&(this._is_lodgged=!0)},he.ɵfac=function(e){return new(e||he)(It(_n))},he.ɵcmp=Rt({type:he,selectors:[["question-overlay"]],decls:12,vars:15,consts:[["class","ques-ov regular-font ng-enter-element",4,"ngIf"],["class","ques-ov-txt-box ng-enter-element",4,"ngIf"],[3,"ng-hidden"],[3,"message","show","close-on-change","timer","onhidden"],["class","ques-ov-error-notice ng-enter-element slide","zing-touch","",3,"innerHTML","zing-url-container",4,"ngIf"],["class","btn fixed-w-i with-loader no-disabled ng-enter-element","zing-touch","",3,"disabled","loadactive","onTap",4,"ngIf"],["class","ng-enter-element ques-ov-end-msg",4,"ngIf"],["class","ng-enter-element ques-ov-login",4,"ngIf"],[1,"ques-ov","regular-font","ng-enter-element"],[1,"ques-ov-txt-box","ng-enter-element"],[1,"ques-ov-count"],["placeholder","Ask a question (140 character limit)","ng-autosize","",1,"ques-ov-txt","textarea",3,"value","readonly","input"],["placeholder","Additional details (optional)","ng-autosize","",1,"ques-ov-txt","ques-ov-txt-liner","textarea",3,"value","readonly","input"],["placeholder","Select Category...",1,"ques-ov-drp",3,"invalid","items","second","value","selected"],["zing-touch","",1,"ques-ov-error-notice","ng-enter-element","slide",3,"innerHTML","zing-url-container"],["zing-touch","",1,"btn","fixed-w-i","with-loader","no-disabled","ng-enter-element",3,"disabled","onTap"],[1,"btn-loader"],[1,"ng-enter-element","ques-ov-end-msg"],[1,"ng-enter-element","ques-ov-login"],["zing-touch","",1,"btn","white-blue","ques-ov-bk-bt",3,"onTap"],["aria-label","Login","zing-touch","",1,"btn","aqua","full","ques-ov-lg-bt","semi-bold-font",3,"onTap"],[1,"bf-icon-wlogo"],[1,"ques-ov-lg-txt"],[1,"ques-ov-or","center"],["aria-label","Email","type","email","placeholder","Email Address",1,"textfield","full",3,"value","input"],[4,"ngIf"],["zing-touch","",1,"btn","fixed-w-i","with-loader","no-disabled",3,"disabled","onTap"]],template:function(e,t){1&e&&(Nt(0,K,2,0,"h2",0),Nt(1,Z,2,0,"h2",0),Nt(2,J,2,0,"h2",0),Nt(3,ee,4,5,"div",1),Nt(4,te,2,2,"div",1),Nt(5,ne,2,4,"div",1),Wt(6,"div",2),Wt(7,"error-toast",3),nn("onhidden",function(){return t.OnErrorToastHidden()}),Ut(),Ut(),Nt(8,ie,1,2,"div",4),Nt(9,se,3,3,"button",5),Nt(10,oe,2,0,"div",6),Nt(11,le,16,7,"div",7)),2&e&&($t("ngIf",!t.submited&&!t.needs_login),Ft(1),$t("ngIf",t.submited),Ft(1),$t("ngIf",t.needs_login&&!t.submited),Ft(1),$t("ngIf",!t.submited&&!t.needs_login),Ft(1),$t("ngIf",!t.submited&&!t.needs_login),Ft(1),$t("ngIf",!t.submited&&!t.needs_login&&t.has_categories&&1<t.categories.length),Ft(1),$t("ng-hidden",t.submited||t.needs_login),Ft(1),$t("message",t.error_message)("show",t.show_error)("close-on-change",!0)("timer",t.toastinterval),Ft(1),$t("ngIf",!t.needs_login&&t.show_ajax_error),Ft(1),$t("ngIf",!t.submited&&!t.needs_login),Ft(1),$t("ngIf",t.submited),Ft(1),$t("ngIf",t.needs_login&&!t.submited))},directives:[Vt,Fn,Dn,a,k,Nn],encapsulation:2}),he);function he(e){this._location=e,this.data={},this.input_value="",this.input_value_extra="",this.input_chars_left=0,this._max_input=140,this.submiting=!1,this.submited=!1,this._limit=140,this._is_lodgged=!1,this.needs_login=!1,this.user_email="",this._referer="",this.has_categories=!1,this.categoryerror=!1,this.toastinterval=3500}qt(de,[{type:Bt,args:[{selector:"question-overlay",templateUrl:"/views/components/question-overlay.html"}]}],function(){return[{type:_n}]},null);pe.ɵmod=yt({type:pe}),pe.ɵinj=wt({factory:function(e){return new(e||pe)},imports:[[xt,Mn,l,Wn,V]]}),E=pe;function pe(){}qt(E,[{type:kt,args:[{imports:[xt,Mn,l,Wn,V],exports:[de],declarations:[de],entryComponents:[de]}]}],null,null);var ge=["content"];function fe(e,t){var n;1&e&&(n=pn(),Wt(0,"span",4),nn("onTap",function(){return gn(n),Zt().Collapse()}),an(1,"show less"),Ut())}function _e(e,t){var n;1&e&&(n=pn(),Wt(0,"div",5),nn("onExpand",function(e){return gn(n),Zt().Expanded(e)}),Ut()),2&e&&(e=Zt(),$t("ng-truncate",e.htmlcontent)("breakpoint",e.breakpoint)("breakwords",e.breakwords))}C=["*"],Object.defineProperty(me.prototype,"content",{set:function(e){this._content=e||"",this._initiated&&(this._expandct?this._ShowFullCT():this._Truncate())},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"expandContent",{set:function(e){this._expandContent.next(e),this._expandct=e},enumerable:!1,configurable:!0}),me.prototype.ngOnInit=function(){!this._expandct&&this._content||An()?this._Truncate():this._ShowFullCT(),this._initiated=!0},me.prototype._WordCount=function(e){e=Xn((1==e.nodeType?e.textContent:e.wholeText)+"");return""==e?0:e.split(/\s+/g).length},me.prototype._CutHTML=function(e,t){var n=e.parentNode,i=null;if(n){for(var s=[],o=0,r=n.childNodes.length;o<r;o++){var a=n.childNodes[o];a==e?i=o:null!==i&&i<o&&a.tagName&&"td"!==a.tagName.toLowerCase()&&s.push(a)}s.forEach(function(e){e.parentNode.removeChild(e)}),n!=t&&n&&this._CutHTML(n,t)}},me.prototype._AddExpandBT=function(e){var t=e.parentNode;t.removeChild(e),t.innerHTML=Xn(t.innerHTML);var n=t.tagName.toLowerCase();if(Yn(n,["tr","tbody","thead","tfoot"])){if("table"!=n){for(var i=t.parentNode,n=i.tagName.toLowerCase();"table"!=n&&n;)n=(i=i.parentNode)&&i.tagName?i.tagName.toLowerCase():null;"table"==n&&(t=i)}t.insertAdjacentHTML("afterend",' <span class="js-shave-char cursor-pointer">'+this.expand_bt+"</span>"),t.insertAdjacentText?t.insertAdjacentText("afterend","..."):t.insertAdjacentHTML("afterend","...")}else t.insertAdjacentText?t.insertAdjacentText("beforeend","..."):t.insertAdjacentHTML("beforeend","..."),"a"==n?t.insertAdjacentHTML("afterend",' <span class="js-shave-char cursor-pointer">'+this.expand_bt+"</span>"):t.insertAdjacentHTML("beforeend",' <span class="js-shave-char cursor-pointer">'+this.expand_bt+"</span>");this.istruncated.next(!0)},me.prototype._Shave=function(e,t){if(!(this._WordCount(e)<=t)){var n=void 0===e.textContent?"innerText":"textContent",i=e[n].split(" ");if(!(i.length<2))for(var s,o=i.length-1,r=0;r<o;){s=r+o+1>>1;var a=i.slice(0,s).join(" "),c=-1<a.lastIndexOf(".");e[n]=a,e.insertAdjacentHTML("beforeend",'<span class="js-shave-char cursor-pointer">'+(c?"":".")+".."+this.expand_bt+"</span>"),this._WordCount(e)>t?o=s-1:r=s}}},me.prototype._TruncateWithLimit=function(e,c){var t=document.createElement("div");t.innerHTML=e;var l=0,u=!1,d=function(e){for(var t=0,n=e.childNodes.length;t<n;t++){var i=e.childNodes[t];if(1==i.nodeType){if(d(i))return!0}else if(3==i.nodeType){var s=i[void 0===i.textContent?"innerText":"textContent"],o=Xn(s).split(/\s+/g);if(l+=o.length,0==s.indexOf(" ")&&(o[0]=" "+o[0]),s.lastIndexOf(" ")==s.length-1&&(o[o.length-1]+=" "),c<l){var r,a=l-c;return i.nodeValue=o.slice(0,o.length-a).join(" "),i.parentNode&&((r=document.createElement("div")).innerHTML='<span data-chop="auto"></span>',s=r.querySelector('span[data-chop="auto"]'),(r=document.createElement("div")).innerHTML=o.slice(o.length-a).join(" "),i!==i.parentNode.lastChild?i.parentNode.insertBefore(s,i.nextElementSibling):(i.parentNode.appendChild(s),i.parentNode.insertAdjacentHTML("beforeend",r.innerHTML))),u=!0}}}};return d(t),!u||(e=t.querySelector('span[data-chop="auto"]'))&&t.lastChild!==e&&(this._CutHTML(e,t),this._AddExpandBT(e)),t.innerHTML},me.prototype._Truncate=function(){var t=this;this.istruncated.next(!1);var e=this._content;if(e=(e=(e=e.replace("[chop]","\x3c!--chop--\x3e").replace("[mobilechop]","\x3c!--mobilechop--\x3e")).replace('<span data-chop="desktop"></span>',"\x3c!--chop--\x3e").replace('<span data-chop="mobile"></span>',"\x3c!--mobilechop--\x3e")).replace(/(?:\\r\\n|\\r|\\n)/g,""),e=Xn(e),An())this._render.setProperty(this._el.nativeElement,"innerHTML",e);else{var n=window.innerWidth||document.body.clientWidth;n<this.breakpoint&&e.indexOf("\x3c!--mobilechop--\x3e")<0&&(e=e.replace(/<!--(auto)?(mobile)?chop-->/g,""));var i=!1,s=!1;n>=this.breakpoint?0<e.indexOf("\x3c!--chop--\x3e")&&(i=!0):0<e.indexOf("\x3c!--chop--\x3e")&&e.indexOf("\x3c!--mobilechop--\x3e")<0?i=!0:0<e.indexOf("\x3c!--mobilechop--\x3e")&&(i=s=!0),i||(e=e.replace("\x3c!--chop--\x3e","").replace("\x3c!--mobilechop--\x3e","")),e=(e=(e=n>this.breakpoint?e.replace(/(<!--chop-->)\s*(<!--mobilechop-->)/,"$2$1"):e.replace(/(<!--mobilechop-->)\s*(<!--chop-->)/,"$2$1")).replace("\x3c!--chop--\x3e",'<span data-chop="desktop"></span>')).replace("\x3c!--mobilechop--\x3e",'<span data-chop="mobile"></span>');var o=document.createElement("div");o.innerHTML=e;var r=o.querySelector('span[data-chop="desktop"]'),a=o.querySelector('span[data-chop="mobile"]');if(!r&&!a&&!this.auto_truncate)return e=Kn(e),void this._render.setProperty(this._el.nativeElement,"innerHTML",e);var c,l=!1,i=!!this.breakwords;if(o.lastChild==r||o.lastChild==a)i=!1,r&&o.lastChild==r&&(r.parentNode.removeChild(r),r=null),a&&o.lastChild==a&&(a.parentNode.removeChild(a),a=null);else{if(r&&r.parentNode.lastChild==r){for(var u=r.parentNode,d=!0;u&&u!==o;){if(u.parentNode.lastChild!=u){d=!1;break}u=u.parentNode}d&&(i=!1,r.parentNode.removeChild(r),r=null)}if(a&&a.parentNode.lastChild==a){for(u=a.parentNode,d=!0;u&&u!==o;){if(u.parentNode.lastChild!=u){d=!1;break}u=u.parentNode}d&&(i=!1,a.parentNode.removeChild(a),a=null)}}if(r&&(n>this.breakpoint||!s))this._CutHTML(r,o),this._AddExpandBT(r);else if(s&&a&&n<this.breakpoint)this._CutHTML(a,o),this._AddExpandBT(a);else if(i){if(Zn(this.breakwords,function(e,t){if(n<Jn(t))return c=e,!1}),c)if(this.use_shave_break)this._Shave(o,c),l=!0;else if(this._WordCount(o)>c)return void this._render.setProperty(this._el.nativeElement,"innerHTML",this._TruncateWithLimit(e,c))}e=o.innerHTML;!l&&this.sanitize&&(e=Kn(o.innerHTML)),this._render.setProperty(this._el.nativeElement,"innerHTML",e),this.istruncated.pipe(wn(1)).subscribe(function(e){Rn(function(){t.onContent.emit(e?"collapsed":"expanded")})})}},me.prototype._ShowFullCT=function(){var e=this,t=this._content||"";this.collapse_bt&&(t+='<br class="js-shave-br" /><span class="js-shave-char cursor-pointer js-shave-char-less">'+this.collapse_bt+"</span>"),t=t.replace("[chop]","").replace("[mobilechop]",""),this._render.setProperty(this._el.nativeElement,"innerHTML",t),Rn(function(){e.onContent.emit("expanded")})},me.prototype.Expand=function(e){An()||(e=e.target)&&e.classList&&e.classList.contains("js-shave-char")&&(this._expanded=!this._expanded,this._expanded?this._ShowFullCT():(this._expandct=!1,this._Truncate()),this.onExpand.emit(this._expanded))},me.prototype.ngAfterViewInit=function(){var t=this;An()||(this._windowobs=xn(window,"resize"),this._windowobs.subscribe(function(){!t._content||t._expanded||t._expandct||t._Truncate()}),this._expandContent.subscribe(function(e){t._content&&(t._expanded=!e,t.Expand({target:{classList:{contains:function(){return!0}}}}))}))},me.prototype.ngOnDestroy=function(){this._windowobs&&(this._windowobs=null),this._windowsubs&&this._windowsubs.unsubscribe(),this.istruncated.complete()},me.ɵfac=function(e){return new(e||me)(It(zt),It(Xt))},me.ɵdir=Ct({type:me,selectors:[["","ng-truncate",""]],hostBindings:function(e,t){1&e&&nn("click",function(e){return t.Expand(e)})},inputs:{breakpoint:"breakpoint",breakwords:"breakwords",content:["ng-truncate","content"],sanitize:"sanitize",use_shave_break:["use-shave","use_shave_break"],expand_bt:["expand-button","expand_bt"],collapse_bt:["collapse-button","collapse_bt"],auto_truncate:["auto-trim","auto_truncate"],expandContent:["expand-content","expandContent"]},outputs:{onExpand:"onExpand",onContent:"onContent"}}),k=me;function me(e,t){this._el=e,this._render=t,this.breakpoint=768,this.breakwords={416:35,541:50,769:70,1282:90,1901:100,2048:150},this._content="",this.sanitize=!0,this.use_shave_break=!1,this.expand_bt="show more",this.collapse_bt="show less",this.auto_truncate=!0,this._expanded=!1,this._initiated=!1,this.istruncated=new bt(null),this._expandContent=new yn,this._expandct=!1,this.onExpand=new At,this.onContent=new At}qt(k,[{type:St,args:[{selector:"[ng-truncate]"}]}],function(){return[{type:zt},{type:Xt}]},{breakpoint:[{type:Lt}],breakwords:[{type:Lt}],content:[{type:Lt,args:["ng-truncate"]}],sanitize:[{type:Lt,args:["sanitize"]}],use_shave_break:[{type:Lt,args:["use-shave"]}],expand_bt:[{type:Lt,args:["expand-button"]}],collapse_bt:[{type:Lt,args:["collapse-button"]}],auto_truncate:[{type:Lt,args:["auto-trim"]}],expandContent:[{type:Lt,args:["expand-content"]}],onExpand:[{type:Et,args:["onExpand"]}],Expand:[{type:vn,args:["click",["$event"]]}],onContent:[{type:Et,args:["onContent"]}]});ve.prototype.Expanded=function(e){e&&(this.hide_org_content=!1,"permanent"==this.expand_mode&&(this.perma_expand=!0)),this._cd.detectChanges()},ve.prototype.Collapse=function(){this.hide_org_content=!0,this._cd.detectChanges()},ve.prototype.ngOnInit=function(){var t=this;this.hide_org_content=!An(),An()?(this.hide_org_content=!1,this.perma_expand=!0):this._observer=new MutationObserver(function(e){t.htmlcontent=t.contentBox.nativeElement.innerHTML,Rn(function(){t._cd.detectChanges()})})},ve.prototype.ngAfterViewInit=function(){var e=this;An()||(this.htmlcontent=this.contentBox.nativeElement.innerHTML,Rn(function(){e._cd.detectChanges()}),this._observer.observe(this.contentBox.nativeElement,{attributes:!1,childList:!0,characterData:!0}))},ve.prototype.ngOnDestroy=function(){this._observer.disconnect()},ve.ɵfac=function(e){return new(e||ve)(It(Gt),It(Xt))},ve.ɵcmp=Rt({type:ve,selectors:[["ng-truncate"]],viewQuery:function(e,t){var n;1&e&&tn(ge,!0),2&e&&Ht(n=Mt())&&(t.contentBox=n.first)},inputs:{breakpoint:"breakpoint",breakwords:"breakwords",expand_mode:["expand","expand_mode"]},ngContentSelectors:C,decls:5,vars:3,consts:[[3,"ng-hidden"],["content",""],["class","js-shave-char cursor-pointer","zing-touch","",3,"onTap",4,"ngIf"],[3,"ng-truncate","breakpoint","breakwords","onExpand",4,"ngIf"],["zing-touch","",1,"js-shave-char","cursor-pointer",3,"onTap"],[3,"ng-truncate","breakpoint","breakwords","onExpand"]],template:function(e,t){1&e&&(un(),Wt(0,"div",0,1),dn(2),Ut(),Nt(3,fe,2,0,"span",2),Nt(4,_e,1,3,"div",3)),2&e&&($t("ng-hidden",t.hide_org_content),Ft(3),$t("ngIf",!t.hide_org_content&&!t.perma_expand),Ft(1),$t("ngIf",t.hide_org_content))},directives:[Fn,Vt,Nn,k],encapsulation:2,changeDetection:0}),V=ve;function ve(e,t){this._cd=e,this._render=t,this.breakpoint=768,this.breakwords={416:35,541:50,769:70,1282:90,1901:100,2048:150},this.expand_mode="dynamic",this.hide_org_content=!0,this.perma_expand=!1,this.htmlcontent=""}qt(V,[{type:Bt,args:[{selector:"ng-truncate",template:'<div [ng-hidden]="hide_org_content" #content><ng-content></ng-content></div>\n                <span class="js-shave-char cursor-pointer" zing-touch (onTap)="Collapse()" *ngIf="!hide_org_content && !perma_expand">show less</span>\n                <div *ngIf="hide_org_content" [ng-truncate]="htmlcontent" [breakpoint]="breakpoint" [breakwords]="breakwords" (onExpand)="Expanded($event)"></div>',changeDetection:bn.OnPush}]}],function(){return[{type:Gt},{type:Xt}]},{breakpoint:[{type:Lt}],breakwords:[{type:Lt}],expand_mode:[{type:Lt,args:["expand"]}],contentBox:[{type:Qt,args:["content",{static:!1}]}]});be.ɵmod=yt({type:be}),be.ɵinj=wt({factory:function(e){return new(e||be)},imports:[[xt,Mn]]}),C=be;function be(){}qt(C,[{type:kt,args:[{imports:[xt,Mn],declarations:[k,V],exports:[k,V]}]}],null,null);var ye=["txtElement"],we=["quesOverlay"],xe=["ques_answer"],V=["id","qna-box"];function qe(e,t){1&e&&(Wt(0,"span",16),an(1),Ut()),2&e&&(e=Zt(),Ft(1),cn("(",e.schq_count,")"))}function ke(e,t){1&e&&(Wt(0,"p",17),Wt(1,"span"),an(2),Ut(),an(3,"For more general questions, visit our "),Wt(4,"a",18),an(5,"Answers section."),Ut(),Ut()),2&e&&(e=Zt(),Ft(2),cn("Get answers to your questions about ",e.product_name," below. "),Ft(2),$t("zing-url",!0))}function Te(e,t){1&e&&Pt(0,"p",19),2&e&&(e=Zt(),$t("zing-url-container",!0)("ng-truncate",e.intro_content)("breakwords",e.truncateBreakwords)("breakpoint",480))}function Ie(e,t){var n;1&e&&(n=pn(),Wt(0,"i",29),nn("onTap",function(){return gn(n),Zt(2).QClear()}),Ut())}function Ce(e,t){1&e&&(Wt(0,"span"),an(1,"Don't see what you're looking for?"),Ut())}function Le(e,t){1&e&&(Wt(0,"div",30),an(1,"MATCHING RESULTS"),Ut())}function Ee(e,t){1&e&&(Wt(0,"div",30),an(1,"NO MATCHING RESULTS"),Ut())}function ze(e,t){1&e&&(Wt(0,"div",30),an(1,"Searching for answers..."),Ut())}function Oe(e,t){var n;1&e&&(n=pn(),Wt(0,"div",20),Wt(1,"div",21),Wt(2,"textarea",22),nn("input",function(e){return gn(n),Zt().SearchInput(e)}),Ut(),Nt(3,Ie,1,0,"i",23),Wt(4,"button",24),nn("onTap",function(){return gn(n),Zt().QSearch()}),Ut(),Ut(),Wt(5,"div",25),Nt(6,Ce,2,0,"span",26),Wt(7,"button",27),nn("onTap",function(){return gn(n),Zt().AskQuestion()}),an(8,"Ask Your Question"),Ut(),Ut(),Nt(9,Le,2,0,"div",28),Nt(10,Ee,2,0,"div",28),Nt(11,ze,2,0,"div",28),Ut()),2&e&&(e=Zt(),Ft(1),$t("scroll-to",e.focus_on_input),Ft(1),$t("value",e.search_value),Ft(1),$t("ngIf",e.search_value),Ft(1),$t("ng-hidden",!!e.search_value),Ft(1),hn("qna-aq-ss",e.noresults),$t("ng-hidden",!(e.show_search_state||e.show_search_state_empty)),Ft(1),$t("ngIf",e.show_search_state&&!e.noresults),Ft(3),$t("ngIf",e.show_search_state&&!e.search_loading),Ft(1),$t("ngIf",e.show_search_state_empty&&!e.search_loading),Ft(1),$t("ngIf",e.search_loading))}function Se(e,t){var n,i;1&e&&(n=pn(),Wt(0,"span",31),nn("onTap",function(){gn(n);var e=t.index;return Zt().ChangeSort(e)}),an(1),Ut()),2&e&&(i=t.$implicit,e=t.index,hn("qnaml-first",0==e),Ft(1),mn(i))}function Ae(e,t){1&e&&Pt(0,"div",40)}function Re(e,t){var n;1&e&&(n=pn(),Wt(0,"div",32),Nt(1,Ae,1,0,"div",33),Wt(2,"div",34),Wt(3,"div",35),Pt(4,"img",36),Ut(),Wt(5,"div",37),Wt(6,"textarea",38),nn("input",function(e){return gn(n),Zt().ques_ask=e.target.value}),Ut(),Wt(7,"div",39),nn("onTap",function(){return gn(n),Zt().AskQuestion()}),an(8,"Ask your Question"),Ut(),Ut(),Ut(),Ut()),2&e&&(e=Zt(),Ft(1),$t("ngIf",0==e.schquestions.length),Ft(3),$t("src",e.user_avatar,Jt)("on-img-error",e.user_avatar_fallback),Ft(1),$t("scroll-to",e.focus_on_input),Ft(1),$t("value",e.ques_ask))}function je(e,t){1&e&&(Wt(0,"div",44),Wt(1,"div",45),Pt(2,"i"),Ut(),Ut())}function He(e,t){1&e&&Pt(0,"a",67),2&e&&(e=Zt().$implicit,hn("qt-as-link",e.from_search),$t("href",e.ques_href||"/answers/"+e.ques_fullslug,Jt)("zing-url",!0)("ng-context",e.ques_title))}function Me(e,t){1&e&&Pt(0,"span",68),2&e&&(e=Zt().$implicit,hn("qt-as-link",e.from_search),$t("ng-context",e.ques_title))}function Pe(e,t){1&e&&Pt(0,"p",69),2&e&&(e=Zt().$implicit,$t("cleanHTML",e.ques_content_cut_mob))}function Ne(e,t){1&e&&Pt(0,"p",70),2&e&&(e=Zt().$implicit,$t("cleanHTML",e.ques_content_cut_desk))}function Fe(e,t){1&e&&(Wt(0,"span",71),an(1,"..."),Ut())}function $e(e,t){1&e&&Pt(0,"p",69),2&e&&(e=Zt().$implicit,$t("cleanHTML",e.ques_content_more))}function Ve(e,t){var n,i;1&e&&(n=pn(),Wt(0,"span",72),nn("onTap",function(){gn(n);var e=Zt().$implicit;return Zt(2).ExpandContent(e.id,"question")}),an(1,"show more"),Ut()),2&e&&(i=Zt().$implicit,e=Zt(2),$t("ng-hidden",e.questionexpand[i.id]))}function Qe(e,t){var n,i;1&e&&(n=pn(),Wt(0,"span",72),nn("onTap",function(){gn(n);var e=Zt().$implicit;return Zt(2).ExpandContent(e.id,"question")}),an(1,"show less"),Ut()),2&e&&(i=Zt().$implicit,e=Zt(2),$t("ng-hidden",!e.questionexpand[i.id]))}function Ge(e,t){var n;1&e&&(n=pn(),Wt(0,"div",73),nn("click",function(){gn(n);var e=Zt().$implicit;return Zt(2).ShowReplybox(e.id)}),an(1,"Reply"),Ut())}function Be(e,t){1&e&&Pt(0,"i")}function De(e,t){1&e&&Pt(0,"i")}function We(e,t){var n,i;1&e&&(n=pn(),Wt(0,"form",74),nn("onSubmit",function(){gn(n);var e=Zt().$implicit;return Zt(2).SubmitReply(e)}),Wt(1,"div",75),Pt(2,"img",76),Ut(),Wt(3,"div",77),Wt(4,"ck-editor",78),nn("valueChange",function(e){gn(n);var t=Zt().$implicit;return Zt(2).ReplyInput(e,t.id)}),Ut(),Ut(),Wt(5,"div",79),Pt(6,"error-toast",80),Wt(7,"button",81),nn("onTap",function(){gn(n);var e=Zt().$implicit;return Zt(2).ShowReplybox(e.id)}),an(8,"Cancel"),Ut(),Wt(9,"button",82),Wt(10,"span"),an(11,"Reply"),Ut(),Pt(12,"i",83),Ut(),Ut(),Ut()),2&e&&(i=Zt().$implicit,e=Zt(2),Ft(2),$t("src",e.user_avatar,Jt)("on-img-error",e.user_avatar_fallback),Ft(2),$t("value",e.replyboxinput[i.id])("active",!0)("cursor-focus",e.replyboxshow[i.id])("readonly",e.replyinprogress[i.id]),Ft(2),$t("message",null==e.replyerror[i.id]?null:e.replyerror[i.id].message)("show",null==e.replyerror[i.id]?null:e.replyerror[i.id].show)("close-on-change",!0)("timer",3e3),Ft(1),$t("disabled",e.replyinprogress[i.id]),Ft(2),hn("loadactive",e.replyinprogress[i.id]),$t("disabled",e.replyinprogress[i.id]))}function Ue(e,t){1&e&&(Wt(0,"span",97),an(1),Ut()),2&e&&(e=Zt(2).$implicit,Ft(1),cn(", ",e.user_title,""))}var Xe=function(){return{attribute:"itemprop",value:"name"}},Ye=function(e){return[e]};function Ke(e,t){var n,i;1&e&&(Wt(0,"div",94),Wt(1,"span",95),an(2),Ut(),Nt(3,Ue,2,1,"span",96),Ut()),2&e&&(n=(i=Zt()).index,e=i.$implicit,i=Zt(3),$t("ng-attribute",i.userschema)("ng-attribute-when",i.toggleSchema&&0==n),Ft(1),$t("ng-attribute",Ln(7,Ye,En(6,Xe)))("ng-attribute-when",i.toggleSchema&&0==n),Ft(1),mn(e.user_fullname||(null==e?null:e.user_login)),Ft(1),$t("ngIf",e.user_title))}function Ze(e,t){1&e&&(zn(0),an(1),On()),2&e&&(e=Zt().$implicit,Ft(1),mn(null==e?null:e.user_login))}function Je(e,t){1&e&&Pt(0,"i")}function et(e,t){1&e&&Pt(0,"i")}var tt=function(){return{attribute:"itemprop",value:"upvoteCount"}},nt=function(){return{attribute:"itemprop",value:"downvoteCount"}};function it(e,t){var n,i,s;1&e&&(n=pn(),Wt(0,"div",59),Wt(1,"div",98),nn("onTap",function(){gn(n);var e=Zt().$implicit;return Zt(3).RateContent(e,"up","answer")}),Nt(2,Je,1,0,"i",26),Wt(3,"span",95),an(4),Ut(),Ut(),Wt(5,"div",62),nn("onTap",function(){gn(n);var e=Zt().$implicit;return Zt(3).RateContent(e,"down","answer")}),Nt(6,et,1,0,"i",26),Wt(7,"span",95),an(8),Ut(),Ut(),Ut()),2&e&&(i=(s=Zt()).$implicit,e=s.index,s=Zt(3),Ft(1),hn("visible",i.voteinprogress),$t("zing-no-touch",!0),Ft(1),$t("ngIf",i.voteinprogress),Ft(1),$t("ng-attribute",Ln(15,Ye,En(14,tt)))("ng-attribute-when",s.toggleSchema&&0==e),Ft(1),mn(i.upvote),Ft(1),hn("visible",i.downvoteinprogress),$t("zing-no-touch",!0),Ft(1),$t("ngIf",i.downvoteinprogress),Ft(1),$t("ng-attribute",Ln(18,Ye,En(17,nt)))("ng-attribute-when",s.toggleSchema&&0==e),Ft(1),mn(i.downvote))}var st=function(){return{416:35,541:50,769:70,2800:90}},ot=function(){return{attribute:"itemprop",value:"text"}};function rt(e,t){var n,i,s;1&e&&(Wt(0,"div",84),Wt(1,"div",85),Wt(2,"div",86),Pt(3,"img",87,88),Ut(),Wt(5,"div",89),Nt(6,Ke,4,9,"div",90),Wt(7,"div",91),Nt(8,Ze,2,1,"ng-container",26),Ut(),Ut(),Ut(),Pt(9,"div",92),Nt(10,it,9,20,"div",93),Ut()),2&e&&(n=t.$implicit,i=t.index,e=(s=Zt()).$implicit,t=s.index,s=Zt(2),$t("ng-hidden",!(0==i||s.question_more_answers[e.id]||1==i&&e.answers[0].my_ans))("ng-attribute",s.aschemascope)("ng-attribute-when",s.toggleSchema&&0==i),Ft(2),$t("defer-src",n.user_avatar)("src-fallback",s.user_avatar_fallback),Ft(4),$t("ngIf",n.user_fullname||(null==n?null:n.user_login)),Ft(2),$t("ngIf",null==n?null:n.user_login),Ft(1),$t("zing-url-container",!0)("expand-content",0==i&&0==t&&!(s.show_search_state||s.show_search_state_empty))("breakwords",En(16,st))("collapse-button",0!=i||0!=t||s.show_search_state||s.show_search_state_empty?"show less":"")("ng-truncate",n.content_long)("ng-attribute",Ln(18,Ye,En(17,ot)))("ng-attribute-when",s.toggleSchema&&0==i),en("data-pos",n.stackid),Ft(1),$t("ngIf",!s.IsSpecial(n.id)))}function at(e,t){var n,i;1&e&&(n=pn(),Wt(0,"div",99),Wt(1,"div",100),Pt(2,"i"),Ut(),Wt(3,"span",101),nn("onTap",function(){gn(n);var e=Zt(),t=e.$implicit,e=e.index;return Zt(2).ViewMoreAns(t,e)}),an(4," View more answers "),Pt(5,"i",7),Ut(),Ut()),2&e&&(i=Zt().$implicit,e=Zt(2),Ft(1),hn("visible",e.answersmore[i.id]))}function ct(e,t){var n,i;1&e&&(n=pn(),Wt(0,"article",46),Wt(1,"h3",47),Nt(2,He,1,5,"a",48),Nt(3,Me,1,3,"span",49),Ut(),Wt(4,"div",50),Wt(5,"div",51),an(6),Ut(),Wt(7,"span",52),an(8),Ut(),Ut(),Nt(9,Pe,1,1,"p",53),Nt(10,Ne,1,1,"p",54),Nt(11,Fe,2,0,"span",55),Nt(12,$e,1,1,"p",53),Nt(13,Ve,2,1,"span",56),Nt(14,Qe,2,1,"span",56),Wt(15,"div",57),Nt(16,Ge,2,0,"div",58),Wt(17,"div",59),Wt(18,"div",60),nn("onTap",function(){gn(n);var e=t.$implicit;return Zt(2).RateContent(e)}),Nt(19,Be,1,0,"i",26),Wt(20,"span",61),an(21),Ut(),Ut(),Wt(22,"div",62),nn("onTap",function(){gn(n);var e=t.$implicit;return Zt(2).RateContent(e,"down")}),Nt(23,De,1,0,"i",26),Wt(24,"span",61),an(25),Ut(),Ut(),Ut(),Ut(),Nt(26,We,13,14,"form",63),Wt(27,"div",64),Nt(28,rt,11,20,"div",65),Nt(29,at,6,2,"div",66),Ut(),Ut()),2&e&&(i=t.$implicit,e=Zt(2),hn("qna-q-search",i.from_search),$t("ng-attribute",e.qschemascope)("ng-attribute-when",e.questionToggleSchema(i)),Ft(1),$t("ng-attribute",Ln(35,Ye,En(34,Xe)))("ng-attribute-when",e.questionToggleSchema(i)),Ft(1),$t("ngIf",i.ques_href||i.ques_fullslug),Ft(1),$t("ngIf",!i.ques_href&&!i.ques_fullslug),Ft(2),$t("ng-attribute",Ln(38,Ye,En(37,tt)))("ng-attribute-when",e.questionToggleSchema(i)),Ft(1),mn(i.upvote),Ft(2),cn("Upvote",1!=i.upvote?"s":"",""),Ft(1),$t("ngIf",!e.questionexpand[i.id]&&i.ques_content_cut_mob),Ft(1),$t("ngIf",!e.questionexpand[i.id]&&i.ques_content_cut_desk),Ft(1),$t("ngIf",!e.questionexpand[i.id]&&i.ques_content_has_more),Ft(1),$t("ngIf",(e.questionexpand[i.id]||!i.ques_content_cut_mob)&&i.ques_content_more),Ft(1),$t("ngIf",i.ques_content_has_more),Ft(1),$t("ngIf",i.ques_content_has_more),Ft(2),$t("ngIf",!e.IsSpecial(i.id)),Ft(2),hn("visible",i.voteinprogress),$t("zing-no-touch",!0),Ft(1),$t("ngIf",i.voteinprogress),Ft(2),mn(i.upvote),Ft(1),hn("visible",i.downvoteinprogress),$t("zing-no-touch",!0),Ft(1),$t("ngIf",i.downvoteinprogress),Ft(2),mn(i.downvote),Ft(1),$t("ngIf",e.replyboxshow[i.id]),Ft(1),$t("ng-hidden",!i.answers||i.answers.length<1),Ft(1),$t("ngForOf",i.answers)("ngForTrackBy",e.trackByFn),Ft(1),$t("ngIf",i.has_more_answers))}function lt(e,t){1&e&&(Wt(0,"div",41),Nt(1,je,3,0,"div",42),Nt(2,ct,30,40,"article",43),Ut()),2&e&&(e=Zt(),hn("qna-qb-loading",e.search_loading||e.questions_more),$t("ng-hidden",e.resultserror||e.load_startup||e.load_startup_fail)("ng-attribute",e.qschemapage)("ng-attribute-when",e.sectionToggleSchema()),Ft(1),$t("ngIf",e.search_loading||e.questions_more),Ft(1),$t("ngForOf",e.schquestions)("ngForTrackBy",e.trackByFn))}function ut(e,t){var n;1&e&&(n=pn(),Wt(0,"button",106),nn("onTap",function(){return gn(n),Zt(2).ViewMoreQuestions()}),Wt(1,"span",107),Wt(2,"span",105),an(3,"View "),Ut(),an(4,"More Questions"),Ut(),Pt(5,"i",83),Ut()),2&e&&(e=Zt(2),hn("loadactive",e.questions_more))}function dt(e,t){var n;1&e&&(n=pn(),Wt(0,"div",102),Nt(1,ut,6,2,"button",103),Wt(2,"button",104),nn("onTap",function(){return gn(n),Zt().AskQuestion()}),an(3,"Ask "),Wt(4,"span",105),an(5,"Your"),Ut(),an(6," Question"),Ut(),Ut()),2&e&&(e=Zt(),Ft(1),$t("ngIf",e.has_more_ques))}function ht(e,t){1&e&&(Wt(0,"div",108),Wt(1,"div",45),Pt(2,"i"),Ut(),Ut())}function pt(e,t){var n;1&e&&(n=pn(),Wt(0,"div",109),Wt(1,"p",110),an(2,"Oops there was a problem retrieving data"),Ut(),Pt(3,"br"),Wt(4,"div",111),Wt(5,"button",112),nn("onTap",function(){return gn(n),Zt().RetryLoadData()}),an(6,"Retry"),Ut(),Ut(),Ut())}function gt(e,t,n){return{"light-font qnah-1":e,"qnah-2 bold-font":t,"qnah-1 qnah-3 extra-bold-font":n}}vt.import("css:/components/qna-comp.css").then(function(){}).catch(function(){});y=mt("Q",(Object.defineProperty(ft.prototype,"search_value",{get:function(){return this._qType.getValue()},enumerable:!1,configurable:!0}),ft.prototype.questionToggleSchema=function(e){return this.toggleSchema&&!(!e.answers||e.answers.length<1)},ft.prototype.sectionToggleSchema=function(){return!!(this.toggleSchema&&this._has_answer&&0<this.schquestions.length)},Object.defineProperty(ft.prototype,"show_search_state",{get:function(){return this.search_value&&1<this.search_value.length&&!this.noresults&&!this.resultserror},enumerable:!1,configurable:!0}),Object.defineProperty(ft.prototype,"show_search_state_empty",{get:function(){return this.search_value&&1<this.search_value.length&&this.noresults&&!this.resultserror},enumerable:!1,configurable:!0}),Object.defineProperty(ft.prototype,"has_clipped_answer_content",{get:function(){return this.answers_content_clipped&&!(this.show_search_state||this.show_search_state_empty)},enumerable:!1,configurable:!0}),Object.defineProperty(ft.prototype,"open_popup",{get:function(){return this._open_popup},set:function(e){(this._open_popup=e)&&this.AskQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(ft.prototype,"has_view_more",{get:function(){return!this.search_value&&!this.search_loading&&!this.load_startup&&!this.load_startup_fail&&!this.resultserror&&this.has_enough_ques},enumerable:!1,configurable:!0}),ft.prototype.trackByFn=function(e){return e},ft.prototype._ParseQuestions=function(e,i,s){var o=this,r=[];return ei(e,function(e,t){if(null==e)return!0;var n=e;if(n.ques_title=e.ques_content,delete n.ques_content,n.ques_content_more=n.ques_more_info||n.ques_content_more||"",n.ques_more_info&&delete n.ques_more_info,138<n.ques_content_more.length&&(n.ques_content_cut_mob=n.ques_content_more.substring(0,138),n.ques_content_has_more=!0),330<n.ques_content_more.length?n.ques_content_cut_desk=n.ques_content_more.substring(138,330):138<n.ques_content_more.length&&(n.ques_content_cut_mob=n.ques_content_more,n.ques_content_has_more=!1),!n.ques_fullslug&&n.ques_slug&&(n.ques_fullslug=n.ques_slug+"-"+n.id.toString()),i){e=i(n);if("boolean"==typeof e&&!e)return!0}ti(o.schquestions)&&(t+=o.schquestions.length),o._ParseAnswers(n,t,null,s),r.push(n)}),r},ft.prototype._ParseAnswers=function(i,s,e,o){var r=this,t=e||i.answers||[];ti(t)&&(i.answers=e?i.answers:[],0<t.length&&!this._has_answer&&(this._has_answer=!0),t.forEach(function(e,t){var n=e;n.user_login&&(n.user_login="@"+n.user_login),ti(n.content)?(n.content_cut=n.content[0]||n.content[1],r.answers_content_clipped&&!i.from_search?(n.content_long=n.content[0],delete n.content_cut):n.content[0]?n.content_long=n.content[1]:(n.content_long=n.content_cut,delete n.content_cut)):(n.content_long=n.content,r.answers_content_clipped=!0),delete n.content,n.content_cut&&"string"==typeof n.content_cut&&(n.content_cut=n.content_cut.replace("[[:hellip:]]","...")),0!=s||i.from_search||i.answers.length||(n.content_long||(n.content_long=n.content_cut),delete n.content_cut,r.answerexpand[n.id]=!0),r.signon&&r.signon.id==n.uid&&(r.replyboxinputsubmited[i.id]=n.content_long||n.content_cut),n.content_cut&&(n.content_cut=r._FormatAnswer(n.content_cut)),n.content_long&&(n.content_long=r._FormatAnswer(n.content_long));e=o?o(n,i):null;"boolean"==typeof e&&!e||(i.answers.push(n),n.stackid=s.toString()+"-"+i.answers.indexOf(n).toString())}),i.has_more_answers=(i.total_answers||0)>i.answers.length||1<i.answers.length&&!this.question_more_answers[i.id]),Rn(function(){ni.emit("$shortcodes:set")})},ft.prototype._FormatAnswer=function(e){var t=this._sanitize.sanitize(qn.HTML,e||"");ii(t)||(t="",si()&&(t=e));try{t=(t=(t=t.replace(/<p><\/p>/g,"")).replace(/<p>(\s|&nbsp;)+<\/p>/g,"")).replace(/((?:[^\S\n]*(<p>)\s*<br(?:\s*\/\s*)?>\s*(<\/p>)|\s*<br>){2,})/g,"")}catch(e){t=""}return t},ft.prototype.SearchInput=function(e){e=e.target.value;this._qType.next(e)},ft.prototype.ControlSortList=function(e){this.sort_list_opened="boolean"==typeof e?e:!this.sort_list_opened},ft.prototype.ExpandContent=function(e,t){this[t+"expand"][e]=!this[t+"expand"][e]},ft.prototype.RateContent=function(t,e,n){var i,s,o;void 0===e&&(e="up"),t.voteinprogress||t.downvoteinprogress||(t.voteinprogress="up"==e,t.downvoteinprogress="down"==e,i=t.id,s=t.answers||t.ques_title?"question":"answer",(o=(t.id+"").match(/^([abceq])(\d+)$/))&&(i=parseInt(o.pop()),s=o.pop(),~["q","a"].indexOf(s)||(s="q"+s)),oi("content-vote-"+t.id),ri({url:ai(),data:{action:"Answers.Vote",id:i,kind:s,dir:"down"==e?"dn":"up"},id:"content-vote-"+t.id,before:function(){t.voteinprogress="up"==e,t.downvoteinprogress="down"==e},after:function(){t.voteinprogress=!1,t.downvoteinprogress=!1},headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(function(e){if(e.error)throw Error("response error");t.upvote=e.votes_up,t.downvote=e.votes_dn}).catch(function(e){e instanceof Error?ni.emit("$server:error",{data:e.message}):401==e.status&&jn()&&(top.location.href="/join/light?redirect_to="+encodeURIComponent(document.location.href))}))},ft.prototype.IsSpecial=function(e){return~["c","b","e"].indexOf((e+"").charAt(0))},ft.prototype._throwReplyError=function(e,t){var n=this;void 0===t&&(t="We encountered an error. Please retry"),this.replyerror[e]=this.replyerror[e]||{},this.replyerror[e].message=t,this.replyerror[e].show?(this.replyerror[e].show=!1,setTimeout(function(){n.replyerror[e].show=!0})):this.replyerror[e].show=!0},ft.prototype.ShowReplybox=function(e){this.replyinprogress[e]||(this.replyboxshow[e]=!this.replyboxshow[e],this.replyboxshow[e]?this.replyboxinput[e]=this.replyboxinputsubmited[e]||"":this.replyboxinput[e]="")},ft.prototype.ReplyInput=function(e,t){this.replyboxinput[t]=e,this.replyerror[t]&&(this.replyerror[t].show=!1)},ft.prototype.SubmitReply=function(i){var s=this,e=this.replyboxinput[i.id];!(e=Xn(e))||e.length<30?this._throwReplyError(i.id,"Content must have 30 characters."):ri({url:ai(),data:{action:"Answers.AnswerQuestion",do:"user-answer",question_id:i.id,answer:e},headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded"},before:function(){s.replyinprogress[i.id]=!0},after:function(){delete s.replyinprogress[i.id]}}).then(function(t){return t&&"redirect"in t?(top.location.href=t.redirect,void setTimeout(function(){s.replyinprogress[i.id]=!0})):void(t.error&&"message"in t?s._throwReplyError(i.id,t.message):t.error?s._throwReplyError(i.id):(e=(i.answers||[]).findIndex(function(e){return e.id==t.id}),n={date:t.date,id:t.id,content:[t.answer],user_login:t.user_login||t.username,user_fullname:t.user_fullname||t.fullname,user_avatar:t.user_avatar||t.avatar,user_title:t.user_title||"",edited:t.edited},n={id:i.id,has_more_answers:i.has_more_answers,answers:[n]},s._ParseAnswers(n,n.id),(n=n.answers[0]).my_ans=!0,s.answerexpand[n.id]=!0,-1<e?(n.edited=!0,Object.assign(i.answers[e],n)):i.answers.unshift(n),s.replyboxinputsubmited[i.id]=t.answer,delete s.replyboxshow[i.id]));var e,n}).catch(function(e){console.error(e),s._throwReplyError(i.id)})},ft.prototype.QSearch=function(e,t){var n=this;this.resultserror=!1;e=t?null:Xn(null!=e?e:this._qType.getValue())||"";this.current_page=1,oi("qna-search-query"),oi("qna-load-initial"),e?(e={id:"qna-search-query",url:ai(),data:{action:"Answers.CommunitySearch",query:e},before:function(){n.search_loading=!0},after:function(){n.search_loading=!1},method:"GET"},this.quest_category?e.data.category=this._stripSlashes(this.quest_category):e.data.uri=this.ques_referer,ri(e).then(function(e){if(!e||!ti(e))throw Error("Data provide is invalid");n.answerexpand={},n.questionexpand={},n.schquestions=n._ParseQuestions(e,function(e){e.from_search=!0}),n.noresults=0==n.schquestions.length}).catch(function(e){e instanceof Error&&console.error(e),n.resultserror=!0})):this._StartupLoad(!0)},ft.prototype.QReset=function(){this.QSearch(null,!0)},ft.prototype.QClear=function(){this._qType.next("")},ft.prototype._throwGenericError=function(e,t){},ft.prototype._stripSlashes=function(e){return 0==e.indexOf("/")&&(e=e.substring(1)),e.lastIndexOf("/")==e.length-1&&(e=e.substring(0,e.length)),e},ft.prototype.ViewMoreAns=function(t,n){var i=this;if(1<t.answers.length&&!this.question_more_answers[t.id])return this.question_more_answers[t.id]=!0,void(t.has_more_answers=(t.total_answers||0)>t.answers.length);ri({url:ai(),method:"GET",data:{action:"Answers.GetMoreAnswers",answers:t.answers.length,qid:t.id,v:2},before:function(){i.answersmore[t.id]=!0},after:function(){i.answersmore[t.id]=!1}}).then(function(e){if(!e||!ti(e.answers))throw Error("Required `answers` Array is not part of response");i.question_more_answers[t.id]=!0,i._ParseAnswers(t,n,e.answers)}).catch(function(e){console.error(e)})},ft.prototype._LoadQues=function(t){var n=this;t&&(this.current_page=1),oi("qna-more-questions");var i,e={uri:this.ques_referer,action:"Answers.GetForPage"};1<this.current_page&&(e.p=this.current_page),this.sortingparam&&(e.sort_by=this.sortingparam),ri({url:ai(),method:"GET",data:e,before:function(){n.questions_more=!0,i=n._dservice&&n._dservice.element&&n._dservice.element.scrollTop},after:function(){n.questions_more=!1},id:"qna-more-questions"}).then(function(e){if(!e||!ti(e.questions))throw Error("Required `question` Array is not part of response");n.has_enough_ques=e.pages&&1<e.pages,n.has_more_ques=e.current_page&&e.pages&&e.current_page<e.pages,t&&(n.schquestions=[]),t&&(n.has_enough_ques=!0),n.schquestions=n.schquestions.concat(n._ParseQuestions(e.questions)),n.noresults=0==n.schquestions.length,setTimeout(function(){n._dservice&&n._dservice.element&&n._dservice.scrollTo({position:i,timing:0})})}).catch(function(e){console.error(e)})},ft.prototype.ViewMoreQuestions=function(){this.current_page++,this._LoadQues()},ft.prototype.ChangeSort=function(e){this.sortv=this.sortList[e],this.sort_list_opened=!1,this.sortingparam=1===e?"mv":"mp",this._LoadQues(!0)},ft.prototype.AskQuestion=function(){this._quesOverlay.Open(de,{input:this.ques_ask||this._qType.getValue()||"",referer:Qn()+this.ques_referer,addparams:this.addAskParams,categories:this.ask_quest_categories})},ft.prototype._parseInitialData=function(e){this.schquestions=this._ParseQuestions(e.questions||[]),this.noresults=0==this.schquestions.length,this.has_enough_ques=e.pages&&1<e.pages,this.has_more_ques=e.current_page&&e.pages&&e.current_page<e.pages,this.load_startup_fail=!1,this.noresults?this.schq_count=null:this.schq_count=e.total_questions+" question"+(1!=e.total_questions?"s":""),this.total_ques.emit(e.total_questions||0),e.categories&&!this.ask_quest_categories&&(this.ask_quest_categories=e.categories),e.current_page&&1<e.current_page&&(this.current_page=e.current_page)},ft.prototype._StartupLoad=function(t){var n=this;this.load_startup_fail=!1;var e={uri:this.ques_referer,action:"Answers.GetForPage"};1<this.current_page&&(e.p=this.current_page),this.sortingparam&&(e.sort_by=this.sortingparam),oi("qna-load-initial"),ri({url:ai(),method:"GET",data:e,before:function(){t?n.search_loading=!0:n.load_startup=!0},after:function(){t?n.search_loading=!1:n.load_startup=!1},id:"qna-load-initial"}).then(function(e){if(!e||e.error||e.questions&&!ti(e.questions))throw Error("Required `question` Array is not part of response");n._parseInitialData(e),t&&(n.has_enough_ques=!0)}).catch(function(e){console.error(e),n.load_startup_fail=!0})},ft.prototype.RetryLoadData=function(){this._StartupLoad()},ft.prototype.ngOnInit=function(){var n=this;this.sortv=this.sortList[0],this.sortingparam="mp",An()||!Un.get("mw_signon")&&!_i.group("mw_cookies")?this.user_avatar=null:(this.signon=Un.get("mw_signon")?JSON.parse(Un.get("mw_signon")):null,this.user_avatar=this.signon&&this.signon.pp||this.user_avatar_fallback);var i,s,e=this._location.path().split("?")[0];this.ques_referer=this.ques_referer||e.replace("/ng-home",""),0!=this.ques_referer.indexOf("/")&&(this.ques_referer="/"+this.ques_referer),this.ques_referer.startsWith("/personal-loans")||this.ques_referer.lastIndexOf("/")!==this.ques_referer.length-1&&(this.ques_referer+="/"),this.page_query&&!An()&&this._route.queryParams.pipe(wn(1)).subscribe(function(e){e=e[n.page_query],e=e?Jn(e):0;e&&(!n.ques_data||!n.ques_data.pages||e<=n.ques_data.pages&&e!=n.ques_data.current_page?(n.current_page=e,n.ques_data=null):n.ques_data.questions.length<1&&(n.ques_data.pages=1))}),this.ques_data&&this.ques_data.questions&&ti(this.ques_data.questions)?this._parseInitialData(this.ques_data):An()||(this.load_startup=!0,setTimeout(function(){n._StartupLoad()},this.start_delay||1));var t=this._qType.pipe(kn(200)).subscribe(function(e){var t=Xn((e||"").replace(/(\r\n\t|\n|\r\t)/gm," "));null!==e&&t!=i&&1<t.length?(i=t,s=!0,n.QSearch(t)):s&&(!t||t.length<2)&&(i=t,s=!1,n.QReset())},function(){},function(){t.unsubscribe()})},ft.prototype.ngOnDestroy=function(){this._qType.complete()},ft.ɵfac=function(e){return new(e||ft)(It(Ot),It(_n),It(Cn),It(i),It(Hn))},ft.ɵcmp=Rt({type:ft,selectors:[["section","id","qna-box"]],viewQuery:function(e,t){1&e&&(tn(ye,!0),tn(we,!0),tn(xe,!0)),2&e&&(Ht(e=Mt())&&(t.txtElement=e.first),Ht(e=Mt())&&(t._quesOverlay=e.first),Ht(e=Mt())&&(t._answersList=e))},hostVars:4,hostBindings:function(e,t){2&e&&hn("qna-type1",0==t.layout_type)("qna-no-more",!t.has_view_more)},inputs:{layout_type:["type","layout_type"],product_name:["product-name","product_name"],ques_data:["product-questions","ques_data"],ques_referer:["product-referer","ques_referer"],intro_content:["use-intro","intro_content"],quest_category:["product-category","quest_category"],start_delay:["startup-delay","start_delay"],section_title:["section-title","section_title"],ask_quest_categories:["question-categories","ask_quest_categories"],toggleSchema:["toggle-schema","toggleSchema"],open_popup:["show-ask-popup","open_popup"],focus_on_input:["scroll-to-ask","focus_on_input"],addAskParams:["question-ask-add-params","addAskParams"],page_query:["pagination-query","page_query"]},outputs:{total_ques:"total-questions"},attrs:V,decls:20,vars:20,consts:[[1,"qna-heading",3,"ngClass"],["class","qa-count semi-bold-font",4,"ngIf"],["class","qna-prg",4,"ngIf"],["class","qna-prg","zing-touch","",3,"zing-url-container","ng-truncate","breakwords","breakpoint",4,"ngIf"],["class","qna-search-box",4,"ngIf"],["role","listbox",1,"qna-sort","ng-enter-element",3,"ng-hidden"],["role","option","zing-touch","",1,"qna-most-list-active","inline-block",3,"onTap","onTapOutside"],[1,"af-icon-down-open"],["zing-touch","",1,"qna-most-list","basic-trans",3,"ng-hidden","onTap"],["role","option","class","qna-most-list-it bold-font","zing-touch","",3,"qnaml-first","onTap",4,"ngFor","ngForOf","ngForTrackBy"],["class","qna-form-box",4,"ngIf"],["class","qna-questions-box",3,"qna-qb-loading","ng-hidden","ng-attribute","ng-attribute-when",4,"ngIf"],["class","qna-q-get-more",4,"ngIf"],["quesOverlay",""],["class","qna-startup-load progress-indicator-container ng-enter-element",4,"ngIf"],["class","qna-startup-fail ng-enter-element",4,"ngIf"],[1,"qa-count","semi-bold-font"],[1,"qna-prg"],["href","/answers/","zing-touch","","target","_blank","rel","noopener",1,"link",3,"zing-url"],["zing-touch","",1,"qna-prg",3,"zing-url-container","ng-truncate","breakwords","breakpoint"],[1,"qna-search-box"],["aria-label","Search for answers",1,"label-input","full",3,"scroll-to"],["placeholder","Have a question? Search for answers","ng-autosize","","aria-label","keyword",1,"qna-search-input","textarea",3,"value","input"],["class","qba-sc-cross lbl-b ng-enter-element","zing-touch","",3,"onTap",4,"ngIf"],["aria-label","Search","type","button","zing-touch","",1,"lbl-b","action","af-icon-search",3,"ng-hidden","onTap"],[1,"qna-ask-q-suggest","semi-bold-font","ng-enter-element",3,"ng-hidden"],[4,"ngIf"],["zing-touch","",1,"btn","fixed-w-h",3,"onTap"],["class","qna-search-state bold-font",4,"ngIf"],["zing-touch","",1,"qba-sc-cross","lbl-b","ng-enter-element",3,"onTap"],[1,"qna-search-state","bold-font"],["role","option","zing-touch","",1,"qna-most-list-it","bold-font",3,"onTap"],[1,"qna-form-box"],["class","qna-fb-hero",4,"ngIf"],[1,"qna-ques-form"],[1,"qna-qf-av"],["width","40","height","40","alt","",3,"src","on-img-error"],[1,"qna-qf-input",3,"scroll-to"],["placeholder","Have a question? Ask the WalletHub community...","aria-label","Ask a question","ng-autosize","",1,"qna-qf-txt","textarea","semi-bold-font",3,"value","input"],["zing-touch","",1,"btn","fixed-w-f",3,"onTap"],[1,"qna-fb-hero"],[1,"qna-questions-box",3,"ng-hidden","ng-attribute","ng-attribute-when"],["class","qna-loading-box ng-enter-element",4,"ngIf"],["class","qna-question-item",3,"qna-q-search","ng-attribute","ng-attribute-when",4,"ngFor","ngForOf","ngForTrackBy"],[1,"qna-loading-box","ng-enter-element"],[1,"progress-indicator","always-v","visible"],[1,"qna-question-item",3,"ng-attribute","ng-attribute-when"],[1,"qna-q-title-box","bold-font",3,"ng-attribute","ng-attribute-when"],["class","qna-q-title link","zing-touch","","rel","noopener",3,"href","zing-url","ng-context","qt-as-link",4,"ngIf"],["class","qna-q-title link",3,"ng-context","qt-as-link",4,"ngIf"],[1,"qna-q-upvotes"],[1,"qna-q-upvotes-count",3,"ng-attribute","ng-attribute-when"],[1,"bold-font"],["class","qna-q-content ng-enter-element text-select",3,"cleanHTML",4,"ngIf"],["class","qna-q-content ng-enter-element qna-q-desk text-select",3,"cleanHTML",4,"ngIf"],["class","qna-q-content qna-q-desk",4,"ngIf"],["class","qna-q-content-more semi-bold-font","zing-touch","",3,"ng-hidden","onTap",4,"ngIf"],[1,"qna-q-actions"],["class","qna-q-reply link semi-bold-font",3,"click",4,"ngIf"],[1,"qna-q-thumbs"],["zing-touch","",1,"up","vote","bf-icon-upvote","progress-indicator","qna-qvt",3,"zing-no-touch","onTap"],[1,"qna-qv-t"],["zing-touch","",1,"dn","vote","bf-icon-downvote","progress-indicator",3,"zing-no-touch","onTap"],["class","qna-q-replyform ng-enter-element","form-submit","",3,"onSubmit",4,"ngIf"],[1,"qna-q-answers",3,"ng-hidden"],["class","qna-q-ans basic-trans",3,"ng-hidden","ng-attribute","ng-attribute-when",4,"ngFor","ngForOf","ngForTrackBy"],["class","qna-qa-show-more progress-indicator-container",4,"ngIf"],["zing-touch","","rel","noopener",1,"qna-q-title","link",3,"href","zing-url","ng-context"],[1,"qna-q-title","link",3,"ng-context"],[1,"qna-q-content","ng-enter-element","text-select",3,"cleanHTML"],[1,"qna-q-content","ng-enter-element","qna-q-desk","text-select",3,"cleanHTML"],[1,"qna-q-content","qna-q-desk"],["zing-touch","",1,"qna-q-content-more","semi-bold-font",3,"ng-hidden","onTap"],[1,"qna-q-reply","link","semi-bold-font",3,"click"],["form-submit","",1,"qna-q-replyform","ng-enter-element",3,"onSubmit"],[1,"avatar"],["width","","height","","alt","",3,"src","on-img-error"],[1,"reply-box","ck-answer-editor"],[3,"value","active","cursor-focus","readonly","valueChange"],[1,"reply-act"],[3,"message","show","close-on-change","timer"],["type","button","aria-label","Cancel","zing-touch","",1,"btn","grey","fixed-w",3,"disabled","onTap"],["type","submit","aria-label","Submit",1,"btn","blue","fixed-w","with-loader","no-disabled",3,"disabled"],[1,"btn-loader"],[1,"qna-q-ans","basic-trans",3,"ng-hidden","ng-attribute","ng-attribute-when"],[1,"qna-qa-top"],[1,"avatar",3,"defer-src","src-fallback"],["alt","","width","40","height","40",1,"avatar-img"],["deferImg",""],[1,"qna-qa-names","text-select"],["class","full-name semi-bold-font",3,"ng-attribute","ng-attribute-when",4,"ngIf"],[1,"second-name"],["zing-touch","",1,"qna-q-ans-content","with-links","text-select",3,"zing-url-container","expand-content","breakwords","collapse-button","ng-truncate","ng-attribute","ng-attribute-when"],["class","qna-q-thumbs",4,"ngIf"],[1,"full-name","semi-bold-font",3,"ng-attribute","ng-attribute-when"],[3,"ng-attribute","ng-attribute-when"],["class","author-cap",4,"ngIf"],[1,"author-cap"],["zing-touch","",1,"up","vote","bf-icon-upvote","progress-indicator",3,"zing-no-touch","onTap"],[1,"qna-qa-show-more","progress-indicator-container"],[1,"progress-indicator"],["zing-touch","",1,"qna-qa-sm-bt","link","inherit",3,"onTap"],[1,"qna-q-get-more"],["class","btn blue-brds tall with-loader no-disabled bold-font","aria-label","More Questions","zing-touch","",3,"loadactive","onTap",4,"ngIf"],["zing-touch","",1,"btn","tall","qna-qgm-btn-last","blue-brds","bold-font",3,"onTap"],[1,"qna-qgm-mhide"],["aria-label","More Questions","zing-touch","",1,"btn","blue-brds","tall","with-loader","no-disabled","bold-font",3,"onTap"],[1,"bt-text"],[1,"qna-startup-load","progress-indicator-container","ng-enter-element"],[1,"qna-startup-fail","ng-enter-element"],[1,"qna-prg","center","semi-bold-font","qna-prg-smaller"],[1,"center"],["zing-touch","",1,"btn","blue-brds","fixed-w-f","with-loader",3,"onTap"]],template:function(e,t){1&e&&(Wt(0,"h2",0),an(1),Nt(2,qe,2,1,"span",1),Ut(),Nt(3,ke,6,2,"p",2),Nt(4,Te,1,4,"p",3),Nt(5,Oe,12,11,"div",4),Wt(6,"div",5),Wt(7,"span",6),nn("onTap",function(){return t.ControlSortList()})("onTapOutside",function(){return t.ControlSortList(!1)}),Wt(8,"span"),an(9),Ut(),Pt(10,"i",7),Ut(),Wt(11,"div",8),nn("onTap",function(e){return e.stopPropagation()}),Nt(12,Se,2,3,"span",9),Ut(),Ut(),Nt(13,Re,9,5,"div",10),Nt(14,lt,3,8,"div",11),Nt(15,dt,7,1,"div",12),Pt(16,"modal-dialog",null,13),Nt(18,ht,3,0,"div",14),Nt(19,pt,7,0,"div",15)),2&e&&($t("ngClass",Tn(16,gt,0==t.layout_type,1==t.layout_type,2==t.layout_type)),Ft(1),cn("",t.section_title," "),Ft(1),$t("ngIf",1==t.layout_type&&t.schq_count),Ft(1),$t("ngIf",t.product_name),Ft(1),$t("ngIf",t.intro_content),Ft(1),$t("ngIf",t.has_enough_ques&&!t.load_startup&&!t.load_startup_fail),Ft(1),$t("ng-hidden",!t.has_enough_ques||0==t.schquestions.length||t.show_search_state||t.show_search_state_empty||t.resultserror),Ft(3),mn(t.sortv),Ft(2),$t("ng-hidden",!t.sort_list_opened),Ft(1),$t("ngForOf",t.sortList)("ngForTrackBy",t.trackByFn),Ft(1),$t("ngIf",!t.has_enough_ques&&!t.load_startup&&!t.load_startup_fail),Ft(1),$t("ngIf",t.search_loading||t.questions_more||t.schquestions.length),Ft(1),$t("ngIf",t.has_view_more),Ft(3),$t("ngIf",t.load_startup&&!t.load_startup_fail),Ft(1),$t("ngIf",t.load_startup_fail))},directives:[Yt,Vt,Fn,Nn,on,ci,k,li,a,y,ui,di,$n,mi,_,Dn,hi],encapsulation:2}),ft));function ft(e,t,n,i,s){this._zone=e,this._location=t,this._sanitize=n,this._route=i,this._dservice=s,this.layout_type=0,this.product_name="",this.ques_data=null,this.ques_referer=null,this.quest_category=null,this.start_delay=1e3,this.section_title="Questions & Answers",this.ask_quest_categories=null,this._qType=new bt(""),this.questions=[],this._has_answer=!1,this.truncateBreakwords={480:16,2048:300},this.toggleSchema=!1,this.qschemapage=[{attribute:"itemscope",value:""},{attribute:"itemtype",value:"http://schema.org/FAQPage"}],this.qschemascope=[{attribute:"itemscope",value:""},{attribute:"itemprop",value:"mainEntity"},{attribute:"itemtype",value:"http://schema.org/Question"}],this.aschemascope=[{attribute:"itemprop",value:"acceptedAnswer"},{attribute:"itemscope",value:""},{attribute:"itemtype",value:"http://schema.org/Answer"}],this.aschematime=[{attribute:"itemprop",value:"dateCreated"}],this.userschema=[{attribute:"itemprop",value:"author"},{attribute:"itemscope",value:""},{attribute:"itemtype",value:"http://schema.org/Person"}],this.noresults=!1,this.resultserror=!1,this.search_loading=!1,this.answerexpand={},this.questionexpand={},this.question_more_answers={},this.answersmore={},this.questions_more=!1,this.has_enough_ques=!1,this.has_more_ques=!1,this.load_startup=!1,this.load_startup_fail=!1,this.current_page=1,this.schquestions=[],this.total_ques=new At,this.replyboxinput={},this.replyboxinputsubmited={},this.replyinprogress={},this.replyerror={},this.replyboxshow={},this.sortList=["Most Popular","Most Upvotes"],this.sortv="",this.sort_list_opened=!1,this.user_avatar_fallback="https://d2e70e9yced57e.cloudfront.net/wallethub/images/profile/avatars/silhouette-50_V1d9a2cc_.png",this.ques_ask="",this._open_popup=!1,this.page_query=null,this.answers_link=Qn()+"/answers/"}qt(y,[{type:Bt,args:[{selector:"section[id=qna-box]",templateUrl:"/views/components/qna-comp.html",host:{"[class.qna-type1]":"layout_type == 0","[class.qna-no-more]":"!has_view_more"}}]}],function(){return[{type:Ot},{type:_n},{type:Cn},{type:i},{type:Hn}]},{layout_type:[{type:Lt,args:["type"]}],product_name:[{type:Lt,args:["product-name"]}],ques_data:[{type:Lt,args:["product-questions"]}],ques_referer:[{type:Lt,args:["product-referer"]}],intro_content:[{type:Lt,args:["use-intro"]}],quest_category:[{type:Lt,args:["product-category"]}],start_delay:[{type:Lt,args:["startup-delay"]}],section_title:[{type:Lt,args:["section-title"]}],ask_quest_categories:[{type:Lt,args:["question-categories"]}],toggleSchema:[{type:Lt,args:["toggle-schema"]}],total_ques:[{type:Et,args:["total-questions"]}],txtElement:[{type:Qt,args:["txtElement",{static:!1}]}],_quesOverlay:[{type:Qt,args:["quesOverlay",{static:!1}]}],_answersList:[{type:In,args:["ques_answer"]}],open_popup:[{type:Lt,args:["show-ask-popup"]}],focus_on_input:[{type:Lt,args:["scroll-to-ask"]}],addAskParams:[{type:Lt,args:["question-ask-add-params"]}],page_query:[{type:Lt,args:["pagination-query"]}]});_=mt("b",(_t.ɵmod=yt({type:_t}),_t.ɵinj=wt({factory:function(e){return new(e||_t)},imports:[[xt,Mn,Wn,x,pi,e,gi,fi,l,v,vi,E,C]]}),_t));function _t(){}qt(_,[{type:kt,args:[{imports:[xt,Mn,Wn,x,pi,e,gi,fi,l,v,vi,E,C],exports:[y],declarations:[y]}]}],null,null)}}}),function(i){System.registerDynamic("npm:autosize/dist/autosize.js",[],!1,function(e,t,n){return n.uri=n.id,i.call(t,n,t)})}(function(e,t){"use strict";var n,i,u="function"==typeof Map?new Map:(n=[],i=[],{has:function(e){return-1<n.indexOf(e)},get:function(e){return i[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),i.push(t))},delete:function(e){e=n.indexOf(e);-1<e&&(n.splice(e,1),i.splice(e,1))}}),d=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){d=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function s(s){var n,i,o,e,r,t;function a(e){var t=s.style.width;s.style.width="0px",s.offsetWidth,s.style.width=t,s.style.overflowY=e}function c(){var e,t;0!==s.scrollHeight&&(e=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(s),t=document.documentElement&&document.documentElement.scrollTop,s.style.height="",s.style.height=s.scrollHeight+n+"px",i=s.clientWidth,e.forEach(function(e){e.node.scrollTop=e.scrollTop}),t&&(document.documentElement.scrollTop=t))}function l(){c();var e=Math.round(parseFloat(s.style.height)),t=window.getComputedStyle(s,null),n="content-box"===t.boxSizing?Math.round(parseFloat(t.height)):s.offsetHeight;if(n<e?"hidden"===t.overflowY&&(a("scroll"),c(),n="content-box"===t.boxSizing?Math.round(parseFloat(window.getComputedStyle(s,null).height)):s.offsetHeight):"hidden"!==t.overflowY&&(a("hidden"),c(),n="content-box"===t.boxSizing?Math.round(parseFloat(window.getComputedStyle(s,null).height)):s.offsetHeight),o!==n){o=n;var i=d("autosize:resized");try{s.dispatchEvent(i)}catch(e){}}}s&&s.nodeName&&"TEXTAREA"===s.nodeName&&!u.has(s)&&(o=i=n=null,e=function(){s.clientWidth!==i&&l()},r=function(t){window.removeEventListener("resize",e,!1),s.removeEventListener("input",l,!1),s.removeEventListener("keyup",l,!1),s.removeEventListener("autosize:destroy",r,!1),s.removeEventListener("autosize:update",l,!1),Object.keys(t).forEach(function(e){s.style[e]=t[e]}),u.delete(s)}.bind(s,{height:s.style.height,resize:s.style.resize,overflowY:s.style.overflowY,overflowX:s.style.overflowX,wordWrap:s.style.wordWrap}),s.addEventListener("autosize:destroy",r,!1),"onpropertychange"in s&&"oninput"in s&&s.addEventListener("keyup",l,!1),window.addEventListener("resize",e,!1),s.addEventListener("input",l,!1),s.addEventListener("autosize:update",l,!1),s.style.overflowX="hidden",s.style.wordWrap="break-word",u.set(s,{destroy:r,update:l}),"vertical"===(t=window.getComputedStyle(s,null)).resize?s.style.resize="none":"both"===t.resize&&(s.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),l())}function o(e){e=u.get(e);e&&e.destroy()}function r(e){e=u.get(e);e&&e.update()}var a=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((a=function(e){return e}).destroy=function(e){return e},a.update=function(e){return e}):((a=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e},a.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e}),t.default=a,e.exports=t.default}),System.register("bundled/route-ui-module.js",["css:/base.css","css:/style-web.css","css:/header-web.css","tslib","bundled/edu-vendor.js","hammerjs","propagating-hammerjs","systemjs","bundled/edu-post-ivy-boot2.js","zenscroll","npm:dompurify/dist/purify.js","inline-views:/header-tpl","npm:body-scroll-lock/lib/bodyScrollLock.js","npm:tablesort/dist/tablesort.min.js","bundled/site-footer-web2.js","npm:navigo/lib/navigo.js","bundled/qna-comp2.js","autosize"],function(n){"use strict";return{setters:[function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(e){var t={};t.ActivatedRoute=e.A,t.RouterModule=e.R,n(t)},function(){}],execute:function(){}}});