"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","npm:autonumeric/dist/autoNumeric.js","bundled/site-footer-web2.js","npm:navigo/lib/navigo.js","bundled/qna-comp2.js","autosize"],function(k,T){"use strict";var I,E,C,L,z,A,S,O,R,j,H,M,P,N,F,$,G,D,V,Q,B,U,W,X,Y,K,Z,J,ee,te,ne,ie,se,oe,re,ae,ce,le,ue,de,he,pe,ge,_e,fe,me,ve,be,ye,we,xe,qe,ke,Te,Ie,Ee,Ce,Le,ze,Ae,Se,Oe;return{setters:[function(){},function(){},function(){},function(){},function(e){I=e.ɵ,E=e.a,C=e.s,L=e.I,z=e.k,A=e.D,S=e.f,O=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,G=e.Q,D=e.i,V=e.j,Q=e.F,B=e.E,U=e.O,W=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._,ie=e.H,se=e.a2,oe=e.ac,re=e.ad,ae=e.ae,ce=e.af,le=e.ag,ue=e.Y,de=e.a3,he=e.ah,pe=e.ai,ge=e.U,_e=e.o,fe=e.w,me=e.m,ve=e.Z},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,Ee=e.r,Ce=e.j,Le=e.K},function(){},function(){},function(){},function(){},function(){},function(){},function(e){ze=e.F,Ae=e.a},function(){},function(e){Se=e.n,Oe=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=E({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}C(e,[{type:A}],function(){return[{type:z}]},{typeList:[{type:L,args:["type-list"]}],age:[{type:L,args:["age"]}],insured:[{type:L,args:["insured"]}],zipcode:[{type:L,args:["zipcode"]}],layoutType:[{type:L,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(B),I(W))},r.ɵcmp=S({type:r,selectors:[["ng-checkbox"]],viewQuery:function(e,t){var n;1&e&&O(i,!0,B),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),G("aria-label",t.label),D(1),$("checked",t.checked)("required",t.required)("disabled",t.disabled)("name",t.name),D(3),$("ngIf",t.label))},directives:[qe,V],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}C(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:B},{type:W}]},{checkbox:[{type:Q,args:["input",{read:B,static:!1}]}],required:[{type:L}],name:[{type:L}],label:[{type:L}],checkedChange:[{type:U}],checked:[{type:L}],disabled:[{type:L}]});var a=(c.ɵmod=Y({type:c}),c.ɵinj=K({factory:function(e){return new(e||c)},imports:[[Z,ke]]}),c);function c(){}C(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,Ee(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(){Ee(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=[]}C(h,[{type:ae}],function(){return[{type:Te}]},null);var g=(Object.defineProperty(_.prototype,"recheck",{get:function(){return this._recheck},set:function(e){e&&this._ResetnCheck(),this._recheck=e},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"_adlocation",{get:function(){return this._loc.path().replace("/ng-home/","/").split("?")[0]},enumerable:!1,configurable:!0}),_.prototype.ngOnInit=function(){this.viewId=Ie(),this.clickId=Ie(),xe()||(this.viewport=this._getViewportSize()),this.viewSet.emit(this.viewId)},_.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")})))},_.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))},_.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)))},_.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)},_.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}},_.prototype._ResetnCheck=function(){xe()||(this.is_viewed=!1,this.viewId=Ie(),this.clickId=Ie(),this._PixelReferrer(),this._PixelAddClickId(),this._CheckElements("all"))},_.prototype._PixelTrigger=function(){this.is_viewed||(this.is_viewed=!0,this.adViewed.emit({view:this.viewId,click:this.clickId}),this._httpCall())},_.prototype._PixelClicked=function(e){var t=this;this.is_viewed||this._PixelTrigger(),Ee(function(){t._PixelAddClickId()})},_.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)})},_.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)})},_.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=Ce()+"/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.")},_.prototype.ngOnDestroy=function(){this.sbs.unsubscribe(),this._intersectionObserver&&(this._intersectionObserver.disconnect(),this._intersectionObserver=null),this.obs=[]},_.ɵfac=function(e){return new(e||_)(I(B),I(Te),I(W),I(h),I(ue))},_.ɵdir=E({type:_,selectors:[["","ad-pixel",""]],contentQueries:function(e,t,n){1&e&&(ce(n,l,!0,B),ce(n,u,!0,B),ce(n,d,!0,B)),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"}}),_);function _(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(Le(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)}C(g,[{type:A,args:[{selector:"[ad-pixel]"}]}],function(){return[{type:B},{type:Te},{type:W},{type:h},{type:ue}]},{addlQueries:[{type:L,args:["addl-queries"]}],triggerRatio:[{type:L,args:["trigger-ratio"]}],debug:[{type:L,args:["debug"]}],referrerUrl:[{type:L,args:["referrer-url"]}],clickUrl:[{type:L,args:["click-url"]}],section:[{type:L,args:["adview-section"]}],position:[{type:L,args:["adview-position"]}],totals:[{type:L,args:["adview-totals"]}],adId:[{type:L,args:["ad-id"]}],ad_use_parent_el:[{type:L,args:["ad-use-parent"]}],uniqueClickId:[{type:L,args:["unique-click-id"]}],recheck:[{type:L,args:["ad-pixel-recheck"]}],triggersList:[{type:le,args:["AdPixelViewTrigger",{read:B,descendants:!0}]}],referrersList:[{type:le,args:["AdPixelViewReferrer",{read:B,descendants:!0}]}],clicksList:[{type:le,args:["AdPixelViewClick",{read:B,descendants:!0}]}],adViewed:[{type:U}],viewSet:[{type:U}]});var f=(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()}C(f,[{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",15),_e(1),P()),2&e&&(e=te(),D(1),ve(e.error_msg))}function y(e,t){1&e&&(H(0,"div",16),_e(1),P()),2&e&&(e=te(),D(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:Ce()+"/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:18,vars:16,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"],["id","zip-ipt-label","for","zip-ipt",3,"hidden"],["type","tel","placeholder","Zip Code","name","zip","maxlength","5","id","zip-ipt","role","textbox","aria-labelledby","zip-ipt-label",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),_e(2,"Find Cheap Car Insurance"),P(),H(3,"div",2),H(4,"div",3),H(5,"label",4),_e(6,"Zip Code"),P(),H(7,"input",5),M("input",function(e){return t.ChangeZip(e)}),P(),P(),H(8,"div",6),H(9,"ng-dropdown",7),M("valueChange",function(e){return t.SetAge(e)}),P(),P(),F(10,b,2,1,"div",8),H(11,"div",9),H(12,"ng-checkbox",10),M("checkedChange",function(e){return t.ChangeInsurance(e)}),P(),P(),H(13,"div",11),H(14,"button",12),_e(15,"Find Insurers"),N(16,"i",13),P(),P(),P(),F(17,y,2,1,"div",14),P()),2&e&&($("unique-click-id",!0)("ad-id",5e6)("addl-queries",t.adview_extra),D(5),$("hidden",!0),D(2),fe("ng-wh-error",t.invalid.zip),$("value",t.zipcode),D(2),$("items",t.ages)("second",!0)("invalid",t.invalid.age)("value",t.age),D(1),$("ngIf",t.show_error),D(2),$("checked",t.insuredparam),D(1),fe("loadactive",t.loading),D(4),$("ngIf",t.show_error))},directives:[ze,g,Se,V,o],encapsulation:2,changeDetection:0}),x));function x(e){return w.call(this,e)||this}C(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,Oe,a,Ae,f]]}),q));function q(){}C(o,[{type:J,args:[{declarations:[g],entryComponents:[g],exports:[g],imports:[Z,ke,Oe,a,Ae,f]}]}],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","npm:autonumeric/dist/autoNumeric.js"],function(v,b){"use strict";var y,w,x,q,k,T,I,E,C,L,z,A,S,O,R,j,H,M,P,N,F,$,G,D,V,Q,B,U,W,X,Y,K,Z,J,ee,te,ne,ie,se,oe,re,ae,ce,le,ue,de,he,pe,ge,_e,fe,me;return{setters:[function(){},function(){},function(){},function(){},function(e){y=e.ɵ,w=e.f,x=e.g,q=e.h,k=e.j,T=e.M,I=e.T,E=e.s,C=e.I,L=e.O,z=e.K,A=e.l,S=e.b,O=e.c,R=e.C,e.d,j=e.N,H=e.e,M=e.n,P=e.p,N=e.u,F=e.S,$=e.i,G=e.w,D=e.v,V=e.o,Q=e.Z,B=e._,U=e.q,W=e.r,X=e.t,Y=e.G,K=e.aa,Z=e.ab},function(){},function(){},function(){},function(e){J=e.v,ee=e.x,te=e.r,ne=e.e,ie=e.R,se=e.$,oe=e.a,re=e.w,ae=e.i,ce=e.z,le=e.T,ue=e.I,de=e.F,he=e.g,pe=e.D,ge=e.G,_e=e.b,fe=e.L,me=e.o},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){v("CompileExpertsGallery",function(e,t,n,i,s){void 0===s&&(s={});for(var o=f,r=_,a=document.querySelectorAll("div[id=experts-gallery]"),c=[],l=0,u=a.length;l<u;l++){a[l].setAttribute("data-expert-sect",l.toString());var d='div[data-expert-sect="'+l+'"]',h=s.data[l]||{};h={back_bt_text:h.back_link_text,more_btn_txt:h.more_text,expert_offset:-100,max_experts:6,hashname:s.hashname,data:{expertsContent:h.expertsContent,aslogos:h.aslogos}},c.push(fe(e,t,n,o,r,d,h).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=me(e))&&t.expert&&te(function(){n.Component.instance.hashname=t.expert}))});return{destroy:function(){n.destroy(),e.unsubscribe(),t.unsubscribe()}}}))}return Promise.all(c).then(function(e){return{destroy:function(){e.forEach(function(e){e.destroy()})}}})});var e=["id","experts-gallery"];function n(e,t){1&e&&(M(0,"div",10),D(1,"i"),P())}function i(e,t){1&e&&(M(0,"div",11),M(1,"h2"),V(2),P(),P()),2&e&&(e=N(2),$(2),Q(e.header_text||"Ask the Experts"))}function s(e,t){1&e&&D(0,"div",12),2&e&&(e=N(2),q("innerHTML",e.intro,B))}function o(e,t){var n;1&e&&(n=U(),K(0),M(1,"span",20),V(2),P(),D(3,"br"),M(4,"i",20),V(5),P(),D(6,"br"),M(7,"span",21),W("onTap",function(){X(n);var e=N().$implicit;return N(2).gotToOne(e.HASHTAG)}),V(8,"Read More"),P(),Z()),2&e&&(e=N().$implicit,$(2),Q(e.AUTHOR),$(3),Q(e.CAPTION))}function r(e,t){var n;1&e&&(n=U(),K(0),M(1,"span",22),W("onTap",function(){X(n);var e=N().$implicit;return N(2).gotToOne(e.HASHTAG)}),P(),Z()),2&e&&(e=N().$implicit,$(1),q("ng-context",e.AUTHOR))}function a(e,t){var n,i;1&e&&(n=U(),M(0,"dl",13),M(1,"dt",14),M(2,"span",15),W("onTap",function(){X(n);var e=t.$implicit;return N(2).gotToOne(e.HASHTAG)}),D(3,"img",16,17),P(),P(),M(5,"dd",18),x(6,o,9,2,"ng-container",19),x(7,r,2,1,"ng-container",19),P(),P()),2&e&&(i=t.$implicit,e=N(2),G("gallery-item-logo",e.as_logos),$(2),q("defer-src",i.AVATAR)("zing-no-touch",!0)("ui-hydrate",e.srv_no_avatars),$(1),G("exp-img-logo",e.as_logos),q("src",i.AVATAR,Y)("alt",i.AUTHOR),$(3),q("ngIf",!e.as_logos),$(1),q("ngIf",e.as_logos))}function c(e,t){var n;1&e&&(n=U(),M(0,"div",23),M(1,"span",24),W("onTap",function(){return X(n),N(2).showMoreExperts()}),P(),P()),2&e&&(e=N(2),$(1),q("ng-context",e.more_btn_txt))}function l(e,t){1&e&&(M(0,"i"),V(1),P()),2&e&&(e=N(3),$(1),Q(null==e.expert_full?null:e.expert_full.CAPTION))}function u(e,t){1&e&&D(0,"div",30),2&e&&(e=N(3),q("innerHtml",e.expert_full.CONTENT,B))}function d(e,t){1&e&&D(0,"div",31),2&e&&(e=N(3),q("cleanHTML",e.expert_full.CONTENT)("cleanHTML-sett",e.doompurifySett))}function h(e,t){var n;1&e&&(n=U(),M(0,"article",25),M(1,"button",26),W("onTap",function(){return X(n),N(2).goToAll()}),V(2),P(),D(3,"img",27),M(4,"h3"),V(5),P(),x(6,l,2,1,"i",19),x(7,u,1,1,"div",28),x(8,d,1,2,"div",29),P()),2&e&&(e=N(2),G("exp-logo-profile",e.as_logos),$(1),q("ngClass",e.back_bt_class),$(1),Q(e.back_bt_text),$(1),q("src",null==e.expert_full?null:e.expert_full.AVATAR,Y),$(2),Q(null==e.expert_full?null:e.expert_full.AUTHOR),$(1),q("ngIf",!e.as_logos),$(1),q("ngIf",!e.as_logos),$(1),q("ngIf",e.as_logos))}function p(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 g(e,t){1&e&&(M(0,"section",1),x(1,n,2,0,"div",2),x(2,i,3,1,"div",3),x(3,s,1,1,"div",4),M(4,"div",5),M(5,"div",6),x(6,a,8,11,"dl",7),x(7,c,2,1,"div",8),x(8,h,9,9,"article",9),P(),P(),P()),2&e&&(e=N(),q("ngClass",F(13,p,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),q("ngIf",e.loading),$(1),q("ngIf",!e.layout_format),$(1),q("ngIf",e.intro&&!e.expert_single),$(1),G("all",!e.expert_single),q("scroll-to",e.center_experts),$(1),q("scroll-to",e.scrollsingle)("scrolloffset",e.expert_offset),$(1),q("ngForOf",e.experts),$(1),q("ngIf",e.hasmoreexperts&&!e.expert_single),$(1),q("ngIf",e.expert_single))}b.import("css:/components/experts-gallery.css").then(function(){},function(){});var _=(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)&&J(e.expertsContent)?(ee("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]],te(function(){i._zone.run(function(){var t;ne()&&i._servertransitwait?(n||(t=_e.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,ie(e,"NG Experts Gallery : Data Request Error",{action:t})},t.prototype._getExpertsByUrl=function(){var n=this;this.expert_single=!1,ee("experts-gallery"),this.loading=!0,se({method:"GET",url:oe(),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,re(t)&&J(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=ae(),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?te(function(){return e._goToExpert(e._hashname)}):this.asyncdata||(this._servertransitwait=!1)},t.prototype.ngOnDestroy=function(){ee("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,te(function(){e.center_experts=!1})})},t.ɵfac=function(e){return new(e||t)(y(z))},t.ɵcmp=w({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"],["class","progress-indicator visible",4,"ngIf"],["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","text-select expert-profile ng-enter-element slide",3,"exp-logo-profile",4,"ngIf"],[1,"progress-indicator","visible"],[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,"text-select","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&&x(0,g,9,20,"section",0),2&e&&q("ngIf",!t.norender)},directives:[k,T,ce,I,le,ue,de,he],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 H,this.tagMatch=new H,this._servertransitwait=!0}E(_,[{type:A,args:[{selector:"div[id=experts-gallery]",templateUrl:"/views/components/experts-gallery.html"}]}],function(){return[{type:z}]},{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=(m.ɵmod=S({type:m}),m.ɵinj=O({factory:function(e){return new(e||m)},imports:[[pe,R,ge]]}),m);function m(){}E(f,[{type:j,args:[{imports:[pe,R,ge],declarations:[_],exports:[_],entryComponents:[_]}]}],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","npm:autonumeric/dist/autoNumeric.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(){},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(_t,ft){"use strict";var mt,vt,bt,yt,wt,xt,qt,kt,Tt,It,Et,Ct,Lt,zt,At,St,Ot,Rt,jt,Ht,Mt,Pt,Nt,Ft,$t,Gt,Dt,Vt,Qt,Bt,Ut,Wt,Xt,Yt,Kt,Zt,Jt,en,tn,nn,sn,on,rn,an,cn,ln,un,dn,hn,pn,gn,_n,fn,mn,vn,bn,yn,wn,xn,qn,kn,Tn,In,En,Cn,Ln,zn,An,Sn,On,Rn,jn,Hn,Mn,Pn,Nn,Fn,$n,Gn,Dn,Vn,Qn,Bn,Un,Wn,Xn,Yn,Kn,Zn,Jn,ei,ti,ni,ii,si,oi,ri,ai,ci,li,ui,di,hi,pi,gi,_i,fi;return{setters:[function(e){mt=e.H,vt=e.b,bt=e.c,yt=e.C,e.d,wt=e.s,xt=e.N,qt=e.J,kt=e.ɵ,Tt=e.a,It=e.I,Et=e.O,Ct=e.E,Lt=e.K,zt=e.D,At=e.e,St=e.f,Ot=e.L,Rt=e.z,jt=e.A,Ht=e.v,Mt=e.g,Pt=e.i,Nt=e.h,Ft=e.j,$t=e.F,Gt=e.k,Dt=e.l,Vt=e.V,Qt=e.n,Bt=e.p,Ut=e.R,Wt=e.M,Xt=e.P,Yt=e.u,Kt=e.G,Zt=e.Q,Jt=e.y,en=e.r,tn=e.S,nn=e.T,sn=e.U,on=e.o,rn=e.W,an=e.B,cn=e.X,ln=e.q,un=e.t,dn=e.w,hn=e.Y,pn=e.Z,gn=e._,_n=e.$,fn=e.a0,mn=e.a1,vn=e.m,bn=e.a2,yn=e.x,wn=e.a3,xn=e.a4,qn=e.a5,kn=e.a6,Tn=e.a7,In=e.a8,En=e.a9,Cn=e.aa,Ln=e.ab},function(){},function(e){zn=e.o,An=e.i,Sn=e.r,On=e.e,Rn=e.S,jn=e.D,Hn=e.u,Mn=e.T,Pn=e.f,Nn=e.g,Fn=e.h,$n=e.j,Gn=e.R,Dn=e.k,Vn=e.E,Qn=e.d,Bn=e.C,Un=e.t,Wn=e.l,Xn=e.m,Yn=e.p,Kn=e.q,Zn=e.s,Jn=e.v,ei=e.b,ti=e.w,ni=e.x,ii=e.$,si=e.a,oi=e.y,ri=e.n,ai=e.z,ci=e.B,li=e.F,ui=e.I,di=e.G,hi=e.c,pi=e.H,gi=e.J},function(e){_i=e.F,fi=e.a},function(){},function(){}],execute:function(){var n,t=require("npm:navigo/lib/navigo.js"),i=_t("A",function(){this.queryParams=new qt(function(t){var e=o.subscribe(function(e){e&&t.next(zn(e.query))});return{unsubscribe:function(){e.unsubscribe()}}}),this.fragment=new qt(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 mt(null),e=_t("R",(r.forRoot=function(e){s=s.concat(e)},r.ɵmod=vt({type:r}),r.ɵinj=bt({factory:function(e){return new(e||r)},providers:[i],imports:[[yt]]}),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()}wt(e,[{type:xt,args:[{imports:[yt],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&&Sn(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(){Sn(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)(kt(Ct),kt(Lt))},c.ɵdir=Tt({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}wt(a,[{type:zt,args:[{selector:"[ng-autosize]"}]}],function(){return[{type:Ct},{type:Lt}]},{updateAutoSize:[{type:It,args:["sizeupdate"]}],_resize:[{type:It,args:["watchresize"]}],onResized:[{type:Et}]});var l=(u.ɵmod=vt({type:u}),u.ɵinj=bt({factory:function(e){return new(e||u)},imports:[[yt]]}),u);function u(){}wt(l,[{type:xt,args:[{declarations:[a],exports:[a],imports:[yt]}]}],null,null);var d=["textarea"];function h(e,t){1&e&&(Qt(0,"div",4),Ht(1,"i"),Bt())}var p=require("systemjs"),g=!1,_=On()&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,f=(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(),_||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(){Sn(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)(kt(Ct),kt(Gt),kt(Rn))},m.ɵcmp=St({type:m,selectors:[["ck-editor"]],viewQuery:function(e,t){var n;1&e&&Ot(d,!0),2&e&&Rt(n=jt())&&(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&&(Ht(0,"div",0),Ht(1,"textarea",1,2),Mt(3,h,2,0,"div",3)),2&e&&(Pt(1),Nt("value",t.value),Pt(2),Nt("ngIf",!t.editor_init))},directives:[Ft],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:#136AE8;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=Hn(),this._value=new mt(null),this.valueChange=new At,this._active=new mt(!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}wt(f,[{type:Dt,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:#136AE8;text-decoration:none;cursor:pointer}","ck-editor { display: block }"],host:{class:"progress-indicator-container"},encapsulation:Vt.None}]}],function(){return[{type:Ct},{type:Gt},{type:Rn}]},{_container:[{type:$t,args:["textarea",{static:!0}]}],value:[{type:It}],valueChange:[{type:Et}],active:[{type:It,args:["active"]}],readonly:[{type:It}],autofocus:[{type:It,args:["cursor-focus"]}],options:[{type:It}],editorInitiated:[{type:Et}]});var v=(b.ɵmod=vt({type:b}),b.ɵinj=bt({factory:function(e){return new(e||b)},imports:[[yt,jn]]}),b);function b(){}wt(v,[{type:xt,args:[{declarations:[f],exports:[f],imports:[yt,jn]}]}],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)(kt(Ct),kt(Ut))},w.ɵdir=Tt({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}wt(y,[{type:zt,args:[{selector:"[on-img-error]"}]}],function(){return[{type:Ct},{type:Ut}]},{fallback:[{type:It,args:["on-img-error"]}],onImageFailed:[{type:Et,args:["image-failed"]}],src:[{type:It}]});var x=(q.ɵmod=vt({type:q}),q.ɵinj=bt({factory:function(e){return new(e||q)},imports:[[yt]]}),q);function q(){}wt(x,[{type:xt,args:[{declarations:[y],exports:[y],imports:[yt]}]}],null,null);var k=["img-placeholder",""];function T(e,t){1&e&&Ht(0,"img",2),2&e&&(e=Yt(),Nt("src",e.srcLoaded,Kt)("ngClass",e.classes)("alt",e.alt),Zt("itemprop",e.itemprop))}function I(e,t){1&e&&Ht(0,"div",3),2&e&&(e=Yt(),Nt("ngClass","animated-"+e.type)("ngStyle",e.placeHolderStyle))}var E=(Object.defineProperty(C.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}),C.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},C.prototype.ngOnInit=function(){},C.ɵfac=function(e){return new(e||C)(kt(Gt))},C.ɵcmp=St({type:C,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&&(Mt(0,T,1,4,"img",0),Mt(1,I,1,2,"div",1)),2&e&&(Nt("ngIf",""!=t.srcLoaded),Pt(1),Nt("ngIf",""==t.srcLoaded))},directives:[Ft,Wt,Xt],encapsulation:2}),C);function C(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=""}wt(E,[{type:Dt,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:It,args:["src"]}],itemprop:[{type:It}],alt:[{type:It}],classes:[{type:It}],boxwidth:[{type:It}],boxheight:[{type:It}],unitsizewidth:[{type:It}],unitsizeheight:[{type:It}],type:[{type:It}],imageLoaded:[{type:Et}]});var L=(z.ɵmod=vt({type:z}),z.ɵinj=bt({factory:function(e){return new(e||z)},imports:[[yt]]}),z);function z(){}wt(L,[{type:xt,args:[{declarations:[E],exports:[E],imports:[yt]}]}],null,null);var A=["dropdownList"];function S(e,t){1&e&&(Qt(0,"span",7),en("onTap",function(){return!0}),Bt()),2&e&&(e=Yt(),Nt("cleanHTML",e.placeholder))}function O(e,t){1&e&&(Qt(0,"span",8),en("onTap",function(){return!0}),Bt()),2&e&&(e=Yt(),Nt("cleanHTML",e.value))}function R(e,n){var i,t,s;1&e&&(i=ln(),Qt(0,"li",9),en("onTap",function(e){un(i);var t=n.index;return Yt().selectItem(e,t)}),Bt()),2&e&&(t=n.$implicit,s=n.index,e=Yt(),dn("active",e.activeidx==s),Nt("cleanHTML",t))}function j(e,t){1&e&&Ht(0,"i",10)}function H(e,t,n,i,s,o){return{"ng-wh-error":e,"drp-b-darker":t,second:n,selected:i,opened:s,disabled:o}}function M(e,t){1&e&&(Qt(0,"span",12),en("onTap",function(){return!0}),Bt()),2&e&&(e=Yt(),Nt("cleanHTML",e.placeholder))}function P(e,t){1&e&&(Qt(0,"span",13),en("onTap",function(){return!0}),Bt()),2&e&&(e=Yt(),Nt("cleanHTML",e.value))}function N(e,t,n,i,s){return{"ng-wh-error":e,"drp-b-darker":t,second:n,selected:i,opened:s}}var F=_t("n",(Object.defineProperty($.prototype,"value",{get:function(){return(this._value||"").toString()},set:function(e){this.noselection=!e,this._value=e},enumerable:!1,configurable:!0}),$.prototype.controlList=function(e,t){this.disabled||(this.opened=void 0!==t?t:!this.opened,this.onTapped.emit(this),this.fixOverflow())},$.prototype.close=function(){this.opened=!1},$.prototype.open=function(){this.opened=!0},$.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})},$.prototype.trackByFn=function(e){return e},$.prototype.ngOnInit=function(){this.value&&-1<this.items.indexOf(this.value)&&(this.activeidx=this.items.indexOf(this.value))},$.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}})},$.ɵfac=function(e){return new(e||$)},$.ɵcmp=St({type:$,selectors:[["ng-dropdown"]],viewQuery:function(e,t){var n;1&e&&Jt(A,!0,Ct),2&e&&Rt(n=jt())&&(t.dropdownList=n.first)},inputs:{placeholder:"placeholder",items:"items",second:"second",darker:["dark-borders","darker"],invalid:"invalid",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange",selected:"selected",onTapped:"onTapped"},decls:7,vars:14,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"],["class","dropdown-arrow bf-icon-down-open",4,"ngIf"],["zing-touch","",1,"dropdown-placeholder",3,"cleanHTML","onTap"],["zing-touch","",1,"dropdown-selected",3,"cleanHTML","onTap"],["zing-touch","",1,"dropdown-item",3,"cleanHTML","onTap"],[1,"dropdown-arrow","bf-icon-down-open"]],template:function(e,t){1&e&&(Qt(0,"div",0),en("onTap",function(e){return t.controlList(e)})("onTapOutside",function(e){return t.controlList(e,!1)}),Mt(1,S,1,1,"span",1),Mt(2,O,1,1,"span",2),Qt(3,"ul",3,4),Mt(5,R,1,3,"li",5),Bt(),Mt(6,j,1,0,"i",6),Bt()),2&e&&(Nt("ngClass",tn(7,H,t.invalid,t.darker,t.second,!t.noselection,t.opened,t.disabled)),Pt(1),Nt("ngIf",t.placeholder&&t.noselection),Pt(1),Nt("ngIf",!t.noselection),Pt(1),Nt("ng-hidden",!t.opened),Pt(2),Nt("ngForOf",t.items)("ngForTrackBy",t.trackByFn),Pt(1),Nt("ngIf",!t.disabled))},directives:[Mn,Wt,Ft,Pn,nn,Nn],encapsulation:2}),$));function $(){this.placeholder="Select...",this.items=[],this.darker=!1,this.invalid=!1,this.disabled=!1,this.valueChange=new At,this.selected=new At,this.onTapped=new At,this.noselection=!0,this.opened=!1,this.activeidx=null}wt(F,[{type:Dt,args:[{selector:"ng-dropdown",template:'<div class="dropdown" [ngClass]="{ \'ng-wh-error\' : invalid, \'drp-b-darker\'  : darker, \'second\' : second, \'selected\' : !noselection, \'opened\' : opened, \'disabled\' : disabled }" 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" *ngIf="!disabled"></i>\n                </div>'}]}],null,{placeholder:[{type:It}],items:[{type:It}],second:[{type:It}],darker:[{type:It,args:["dark-borders"]}],invalid:[{type:It,args:["invalid"]}],disabled:[{type:It}],valueChange:[{type:Et}],selected:[{type:Et}],onTapped:[{type:Et}],dropdownList:[{type:$t,args:["dropdownList",{read:Ct,static:!1}]}],value:[{type:It}]});var G,k=(G=F,__extends(D,G),D.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))},D.ɵfac=function(e){return V(e||D)},D.ɵcmp=St({type:D,selectors:[["ng-dropdown-bool"]],inputs:{text:"text",name:"name",label:"label"},features:[sn],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&&(Qt(0,"div",0),en("onTap",function(e){return t.controlList(e)})("onTapOutside",function(e){return t.controlList(e,!1)}),Mt(1,M,1,1,"span",1),Mt(2,P,1,1,"span",2),Qt(3,"div",3,4),Qt(5,"p",5),on(6),Bt(),Qt(7,"div",6),Qt(8,"label",7),Qt(9,"input",8),en("change",function(){return t.Check(!0)}),Bt(),Ht(10,"i",9),Qt(11,"span",10),on(12,"Yes"),Bt(),Bt(),Qt(13,"label",7),Qt(14,"input",8),en("change",function(){return t.Check(!1)}),Bt(),Ht(15,"i",9),Qt(16,"span",10),on(17,"No"),Bt(),Bt(),Bt(),Bt(),Ht(18,"i",11),Bt()),2&e&&(Nt("ngClass",rn(13,N,t.invalid,t.darker,t.second,!t.noselection,t.opened)),Pt(1),Nt("ngIf",t.placeholder&&t.noselection),Pt(1),Nt("ngIf",!t.noselection),Pt(1),Nt("ng-hidden",!t.opened),Pt(3),an(" ",t.text," "),Pt(2),Nt("zingToggle",!0),Zt("aria-label",t.label),Pt(1),Nt("checked",!0===t.booleanValue)("name",t.name),Pt(4),Nt("zingToggle",!0),Zt("aria-label",t.label),Pt(1),Nt("checked",!1===t.booleanValue)("name",t.name))},directives:[Mn,Wt,Ft,Pn,Nn],encapsulation:2}),D);function D(){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 V=cn(k);wt(k,[{type:Dt,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:It}],name:[{type:It}],label:[{type:It}]});L=_t("a",(Q.ɵmod=vt({type:Q}),Q.ɵinj=bt({factory:function(e){return new(e||Q)},imports:[[yt,jn]]}),Q));function Q(){}function B(e,t){1&e&&(Qt(0,"h2",8),on(1,"Ask a Question"),Bt())}function U(e,t){1&e&&(Qt(0,"h2",8),on(1,"Thank you"),Bt())}function W(e,t){1&e&&(Qt(0,"h2",8),on(1,"Please provide your email in order to receive answers"),Bt())}function X(e,t){var n;1&e&&(n=ln(),Qt(0,"div",9),Qt(1,"span",10),on(2),Bt(),Qt(3,"textarea",11),en("input",function(e){return un(n),Yt().SetInput(e)}),Bt(),Bt()),2&e&&(e=Yt(),Pt(1),dn("ques-ov-cred",e.input_chars_left<0),Pt(1),pn(e.input_chars_left),Pt(1),Nt("value",e.input_value)("readonly",e.submiting))}function Y(e,t){var n;1&e&&(n=ln(),Qt(0,"div",9),Qt(1,"textarea",12),en("input",function(e){return un(n),Yt().input_value_extra=e.target.value}),Bt(),Bt()),2&e&&(e=Yt(),Pt(1),Nt("value",e.input_value_extra)("readonly",e.submiting))}function K(e,t){var n;1&e&&(n=ln(),Qt(0,"div",9),Qt(1,"ng-dropdown",13),en("selected",function(e){return un(n),Yt().SetCategory(e)}),Bt(),Bt()),2&e&&(e=Yt(),Pt(1),Nt("invalid",e.categoryerror)("items",e.categories)("second",!0)("value",e.category))}function Z(e,t){1&e&&Ht(0,"div",14),2&e&&(e=Yt(),Nt("innerHTML",e.ajax_message,gn)("zing-url-container",!0))}function J(e,t){var n;1&e&&(n=ln(),Qt(0,"button",15),en("onTap",function(){return un(n),Yt().Submit()}),on(1," Next "),Ht(2,"i",16),Bt()),2&e&&(e=Yt(),dn("loadactive",e.submiting),Nt("disabled",e.submiting))}function ee(e,t){1&e&&(Qt(0,"div",17),on(1,"Your question has been submitted to our moderators for review. We will send you an email once your question has been approved."),Bt())}function te(e,t){1&e&&Ht(0,"br")}function ne(e,t){1&e&&Ht(0,"div",14),2&e&&(e=Yt(2),Nt("innerHTML",e.ajax_message,gn)("zing-url-container",!0))}function ie(e,t){1&e&&Ht(0,"br")}function se(e,t){var n;1&e&&(n=ln(),Qt(0,"div",18),Qt(1,"button",19),en("onTap",function(){return un(n),Yt().Back()}),on(2,"Back"),Bt(),Qt(3,"button",20),en("onTap",function(){return un(n),Yt().GuestSubmit()}),Ht(4,"i",21),Qt(5,"span",22),on(6,"Login to Wallethub"),Bt(),Bt(),Qt(7,"div",23),on(8,"or"),Bt(),Qt(9,"input",24),en("input",function(e){un(n);var t=Yt();return t.user_email=e.target.value,t.show_ajax_error=!1}),Bt(),Mt(10,te,1,0,"br",25),Mt(11,ne,1,2,"div",4),Mt(12,ie,1,0,"br",25),Qt(13,"button",26),en("onTap",function(){return un(n),Yt().GuestSubmit()}),on(14," Submit "),Ht(15,"i",16),Bt(),Bt()),2&e&&(e=Yt(),Pt(9),Nt("value",e.user_email),Pt(1),Nt("ngIf",!e.show_ajax_error),Pt(1),Nt("ngIf",e.show_ajax_error),Pt(1),Nt("ngIf",!e.show_ajax_error),Pt(1),dn("loadactive",e.submiting),Nt("disabled",e.submiting))}wt(L,[{type:xt,args:[{declarations:[F,k],exports:[F,k],imports:[yt,jn]}]}],null,null);var oe=require("systemjs"),re=(ae.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},ae.prototype._CountChars=function(){this.input_chars_left=this.input_value?this._max_input-this.input_value.trim().length:this._max_input},ae.prototype._SendQues=function(){var n=this;this.show_ajax_error=!1,this.submiting=!0;var i=Fn(this.input_value);oe.dynamicImport(["Encryption"],function(e){var t={url:$n()+"/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,Dn().then(function(e){e.captureException(t)},function(){})})},ae.prototype.SetCategory=function(e){this.category=e.value,this._catid=this._catindex[e.index],this.categoryerror=!1},ae.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)},ae.prototype.OnErrorToastHidden=function(){this.show_error&&(this.show_error=!1)},ae.prototype.GuestSubmit=function(){this.user_email&&!this._email_reg.test(this.user_email)?(this.show_ajax_error=!0,this.ajax_message="Please enter a correct Email Address."):this._SendQues()},ae.prototype.SetInput=function(e){this.show_error=!1,this.show_ajax_error=!1,this.input_value=e.target.value,this._CountChars()},ae.prototype.Back=function(){this.needs_login=!1,this.show_ajax_error=!1,this.ajax_message=""},ae.prototype.ngOnInit=function(){var t=this;this.input_value=this.data.input||"",this.data.referer?this._referer=this.data.referer:(this._referer=$n()+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()&&Bn.get("mw_signon")&&(this._is_lodgged=!0)},ae.ɵfac=function(e){return new(e||ae)(kt(hn))},ae.ɵcmp=St({type:ae,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&&(Mt(0,B,2,0,"h2",0),Mt(1,U,2,0,"h2",0),Mt(2,W,2,0,"h2",0),Mt(3,X,4,5,"div",1),Mt(4,Y,2,2,"div",1),Mt(5,K,2,4,"div",1),Qt(6,"div",2),Qt(7,"error-toast",3),en("onhidden",function(){return t.OnErrorToastHidden()}),Bt(),Bt(),Mt(8,Z,1,2,"div",4),Mt(9,J,3,3,"button",5),Mt(10,ee,2,0,"div",6),Mt(11,se,16,7,"div",7)),2&e&&(Nt("ngIf",!t.submited&&!t.needs_login),Pt(1),Nt("ngIf",t.submited),Pt(1),Nt("ngIf",t.needs_login&&!t.submited),Pt(1),Nt("ngIf",!t.submited&&!t.needs_login),Pt(1),Nt("ngIf",!t.submited&&!t.needs_login),Pt(1),Nt("ngIf",!t.submited&&!t.needs_login&&t.has_categories&&1<t.categories.length),Pt(1),Nt("ng-hidden",t.submited||t.needs_login),Pt(1),Nt("message",t.error_message)("show",t.show_error)("close-on-change",!0)("timer",t.toastinterval),Pt(1),Nt("ngIf",!t.needs_login&&t.show_ajax_error),Pt(1),Nt("ngIf",!t.submited&&!t.needs_login),Pt(1),Nt("ngIf",t.submited),Pt(1),Nt("ngIf",t.needs_login&&!t.submited))},directives:[Ft,Pn,Vn,a,F,Mn],encapsulation:2}),ae);function ae(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._email_reg=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,this.has_categories=!1,this.categoryerror=!1,this.toastinterval=3500}wt(re,[{type:Dt,args:[{selector:"question-overlay",templateUrl:"/views/components/question-overlay.html"}]}],function(){return[{type:hn}]},null);ce.ɵmod=vt({type:ce}),ce.ɵinj=bt({factory:function(e){return new(e||ce)},imports:[[yt,jn,l,Qn,L]]}),E=ce;function ce(){}wt(E,[{type:xt,args:[{imports:[yt,jn,l,Qn,L],exports:[re],declarations:[re],entryComponents:[re]}]}],null,null);var le=["content"];function ue(e,t){var n;1&e&&(n=ln(),Qt(0,"span",4),en("onTap",function(){return un(n),Yt().Collapse()}),on(1,"show less"),Bt())}function de(e,t){var n;1&e&&(n=ln(),Qt(0,"div",5),en("onExpand",function(e){return un(n),Yt().Expanded(e)}),Bt()),2&e&&(e=Yt(),Nt("ng-truncate",e.htmlcontent)("breakpoint",e.breakpoint)("breakwords",e.breakwords))}k=["*"],Object.defineProperty(he.prototype,"content",{set:function(e){this._content=e||"",this._initiated&&(this._expandct?this._ShowFullCT():this._Truncate())},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"expandContent",{set:function(e){this._expandContent.next(e),this._expandct=e},enumerable:!1,configurable:!0}),he.prototype.ngOnInit=function(){!this._expandct&&this._content||An()?this._Truncate():this._ShowFullCT(),this._initiated=!0},he.prototype._WordCount=function(e){e=Un((1==e.nodeType?e.textContent:e.wholeText)+"");return""==e?0:e.split(/\s+/g).length},he.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)}},he.prototype._AddExpandBT=function(e){var t=e.parentNode;t.removeChild(e),t.innerHTML=Un(t.innerHTML);var n=t.tagName.toLowerCase();if(Wn(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)},he.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}}},he.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=Un(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),e.parentNode==t&&(t.innerHTML=t.innerHTML.split(e.outerHTML)[0]+e.outerHTML,e=t.querySelector('span[data-chop="auto"]')),this._AddExpandBT(e)),t.innerHTML},he.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=Un(e),An())return this.sanitize&&(e=Xn(e,this.sanitizeCFG)),void this._render.setProperty(this._el.nativeElement,"innerHTML",e);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=Xn(e,this.sanitizeCFG),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)),a&&o.lastChild==a&&(a.parentNode.removeChild(a),a=null,r&&o.lastChild==r&&(r.parentNode.removeChild(r),r=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),r.parentNode==o&&(o.innerHTML=o.innerHTML.split(r.outerHTML)[0]+r.outerHTML,r=o.querySelector('span[data-chop="desktop"]')),this._AddExpandBT(r);else if(s&&a&&n<this.breakpoint)this._CutHTML(a,o),a.parentNode==o&&(o.innerHTML=o.innerHTML.split(a.outerHTML)[0]+a.outerHTML,a=o.querySelector('span[data-chop="mobile"]')),this._AddExpandBT(a);else if(i){if(Yn(this.breakwords,function(e,t){if(n<Kn(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=Xn(o.innerHTML,this.sanitizeCFG)),this._render.setProperty(this._el.nativeElement,"innerHTML",e),this.istruncated.pipe(yn(1)).subscribe(function(e){Sn(function(){t.onContent.emit(e?"collapsed":"expanded")})})},he.prototype._ShowFullCT=function(){var e=this,t=this._content||"";this.sanitize&&(t=Xn(t,this.sanitizeCFG)),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),Sn(function(){e.onContent.emit("expanded")})},he.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))},he.prototype.ngAfterViewInit=function(){var t=this;An()||(this._windowobs=wn(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}}}}))}))},he.prototype.ngOnDestroy=function(){this._windowobs&&(this._windowobs=null),this._windowsubs&&this._windowsubs.unsubscribe(),this.istruncated.complete()},he.ɵfac=function(e){return new(e||he)(kt(Ct),kt(Ut))},he.ɵdir=Tt({type:he,selectors:[["","ng-truncate",""]],hostBindings:function(e,t){1&e&&en("click",function(e){return t.Expand(e)})},inputs:{breakpoint:"breakpoint",breakwords:"breakwords",content:["ng-truncate","content"],sanitize:"sanitize",sanitizeCFG:["sanitize-cfg","sanitizeCFG"],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"}}),F=he;function he(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.sanitizeCFG={RETURN_DOM_FRAGMENT:!1,RETURN_DOM:!1,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOW_UNKNOWN_PROTOCOLS:!0,KEEP_CONTENT:!0,ADD_TAGS:["meta","noscript"],ADD_ATTR:["content","itemprop","itemtype","itemscope","id","name","target"]},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 mt(null),this._expandContent=new bn,this._expandct=!1,this.onExpand=new At,this.onContent=new At}wt(F,[{type:zt,args:[{selector:"[ng-truncate]"}]}],function(){return[{type:Ct},{type:Ut}]},{breakpoint:[{type:It}],breakwords:[{type:It}],content:[{type:It,args:["ng-truncate"]}],sanitize:[{type:It,args:["sanitize"]}],sanitizeCFG:[{type:It,args:["sanitize-cfg"]}],use_shave_break:[{type:It,args:["use-shave"]}],expand_bt:[{type:It,args:["expand-button"]}],collapse_bt:[{type:It,args:["collapse-button"]}],auto_truncate:[{type:It,args:["auto-trim"]}],expandContent:[{type:It,args:["expand-content"]}],onExpand:[{type:Et,args:["onExpand"]}],Expand:[{type:_n,args:["click",["$event"]]}],onContent:[{type:Et,args:["onContent"]}]});pe.prototype.Expanded=function(e){e&&(this.hide_org_content=!1,"permanent"==this.expand_mode&&(this.perma_expand=!0)),this._cd.detectChanges()},pe.prototype.Collapse=function(){this.hide_org_content=!0,this._cd.detectChanges()},pe.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,Sn(function(){t._cd.detectChanges()})})},pe.prototype.ngAfterViewInit=function(){var e=this;An()||(this.htmlcontent=this.contentBox.nativeElement.innerHTML,Sn(function(){e._cd.detectChanges()}),this._observer.observe(this.contentBox.nativeElement,{attributes:!1,childList:!0,characterData:!0}))},pe.prototype.ngOnDestroy=function(){this._observer.disconnect()},pe.ɵfac=function(e){return new(e||pe)(kt(Gt),kt(Ut))},pe.ɵcmp=St({type:pe,selectors:[["ng-truncate"]],viewQuery:function(e,t){var n;1&e&&Jt(le,!0),2&e&&Rt(n=jt())&&(t.contentBox=n.first)},inputs:{breakpoint:"breakpoint",breakwords:"breakwords",expand_mode:["expand","expand_mode"]},ngContentSelectors:k,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&&(fn(),Qt(0,"div",0,1),mn(2),Bt(),Mt(3,ue,2,0,"span",2),Mt(4,de,1,3,"div",3)),2&e&&(Nt("ng-hidden",t.hide_org_content),Pt(3),Nt("ngIf",!t.hide_org_content&&!t.perma_expand),Pt(1),Nt("ngIf",t.hide_org_content))},directives:[Pn,Ft,Mn,F],encapsulation:2,changeDetection:0}),L=pe;function pe(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=""}wt(L,[{type:Dt,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:vn.OnPush}]}],function(){return[{type:Gt},{type:Ut}]},{breakpoint:[{type:It}],breakwords:[{type:It}],expand_mode:[{type:It,args:["expand"]}],contentBox:[{type:$t,args:["content",{static:!1}]}]});ge.ɵmod=vt({type:ge}),ge.ɵinj=bt({factory:function(e){return new(e||ge)},imports:[[yt,jn]]}),k=ge;function ge(){}wt(k,[{type:xt,args:[{imports:[yt,jn],declarations:[F,L],exports:[F,L]}]}],null,null);var _e=["txtElement"],fe=["quesOverlay"],me=["ques_answer"],L=["id","qna-box"];function ve(e,t){1&e&&(Qt(0,"span",16),on(1),Bt()),2&e&&(e=Yt(),Pt(1),an("(",e.schq_count,")"))}function be(e,t){1&e&&(Qt(0,"p",17),Qt(1,"span"),on(2),Bt(),on(3,"For more general questions, visit our "),Qt(4,"a",18),on(5,"Answers section."),Bt(),Bt()),2&e&&(e=Yt(),Pt(2),an("Get answers to your questions about ",e.product_name," below. "),Pt(2),Nt("zing-url",!0))}function ye(e,t){1&e&&Ht(0,"p",19),2&e&&(e=Yt(),Nt("zing-url-container",!0)("ng-truncate",e.intro_content)("breakwords",e.truncateBreakwords)("breakpoint",480))}function we(e,t){var n;1&e&&(n=ln(),Qt(0,"i",29),en("onTap",function(){return un(n),Yt(2).QClear()}),Bt())}function xe(e,t){1&e&&(Qt(0,"span"),on(1,"Don't see what you're looking for?"),Bt())}function qe(e,t){1&e&&(Qt(0,"div",30),on(1,"MATCHING RESULTS"),Bt())}function ke(e,t){1&e&&(Qt(0,"div",30),on(1,"NO MATCHING RESULTS"),Bt())}function Te(e,t){1&e&&(Qt(0,"div",30),on(1,"Searching for answers..."),Bt())}function Ie(e,t){var n;1&e&&(n=ln(),Qt(0,"div",20),Qt(1,"div",21),Qt(2,"textarea",22),en("input",function(e){return un(n),Yt().SearchInput(e)}),Bt(),Mt(3,we,1,0,"i",23),Qt(4,"button",24),en("onTap",function(){return un(n),Yt().QSearch()}),Bt(),Bt(),Qt(5,"div",25),Mt(6,xe,2,0,"span",26),Qt(7,"button",27),en("onTap",function(){return un(n),Yt().AskQuestion()}),on(8,"Ask Your Question"),Bt(),Bt(),Mt(9,qe,2,0,"div",28),Mt(10,ke,2,0,"div",28),Mt(11,Te,2,0,"div",28),Bt()),2&e&&(e=Yt(),Pt(1),Nt("scroll-to",e.focus_on_input),Pt(1),Nt("value",e.search_value),Pt(1),Nt("ngIf",e.search_value),Pt(1),Nt("ng-hidden",!!e.search_value),Pt(1),dn("qna-aq-ss",e.noresults),Nt("ng-hidden",!(e.show_search_state||e.show_search_state_empty)),Pt(1),Nt("ngIf",e.show_search_state&&!e.noresults),Pt(3),Nt("ngIf",e.show_search_state&&!e.search_loading),Pt(1),Nt("ngIf",e.show_search_state_empty&&!e.search_loading),Pt(1),Nt("ngIf",e.search_loading))}function Ee(e,t){var n,i;1&e&&(n=ln(),Qt(0,"span",31),en("onTap",function(){un(n);var e=t.index;return Yt().ChangeSort(e)}),on(1),Bt()),2&e&&(i=t.$implicit,e=t.index,dn("qnaml-first",0==e),Pt(1),pn(i))}function Ce(e,t){1&e&&Ht(0,"div",40)}function Le(e,t){var n;1&e&&(n=ln(),Qt(0,"div",32),Mt(1,Ce,1,0,"div",33),Qt(2,"div",34),Qt(3,"div",35),Ht(4,"img",36),Bt(),Qt(5,"div",37),Qt(6,"textarea",38),en("input",function(e){return un(n),Yt().ques_ask=e.target.value}),Bt(),Qt(7,"div",39),en("onTap",function(){return un(n),Yt().AskQuestion()}),on(8,"Ask your Question"),Bt(),Bt(),Bt(),Bt()),2&e&&(e=Yt(),Pt(1),Nt("ngIf",0==e.schquestions.length),Pt(3),Nt("src",e.user_avatar,Kt)("on-img-error",e.user_avatar_fallback),Pt(1),Nt("scroll-to",e.focus_on_input),Pt(1),Nt("value",e.ques_ask))}function ze(e,t){1&e&&(Qt(0,"div",44),Qt(1,"div",45),Ht(2,"i"),Bt(),Bt())}function Ae(e,t){1&e&&Ht(0,"a",67),2&e&&(e=Yt().$implicit,dn("qt-as-link",e.from_search),Nt("href",e.ques_href||"/answers/"+e.ques_fullslug,Kt)("zing-url",!0)("ng-context",e.ques_title))}function Se(e,t){1&e&&Ht(0,"span",68),2&e&&(e=Yt().$implicit,dn("qt-as-link",e.from_search),Nt("ng-context",e.ques_title))}function Oe(e,t){1&e&&Ht(0,"p",69),2&e&&(e=Yt().$implicit,Nt("cleanHTML",e.ques_content_cut_mob))}function Re(e,t){1&e&&Ht(0,"p",70),2&e&&(e=Yt().$implicit,Nt("cleanHTML",e.ques_content_cut_desk))}function je(e,t){1&e&&(Qt(0,"span",71),on(1,"..."),Bt())}function He(e,t){1&e&&Ht(0,"p",69),2&e&&(e=Yt().$implicit,Nt("cleanHTML",e.ques_content_more))}function Me(e,t){var n,i;1&e&&(n=ln(),Qt(0,"span",72),en("onTap",function(){un(n);var e=Yt().$implicit;return Yt(2).ExpandContent(e.id,"question")}),on(1,"show more"),Bt()),2&e&&(i=Yt().$implicit,e=Yt(2),Nt("ng-hidden",e.questionexpand[i.id]))}function Pe(e,t){var n,i;1&e&&(n=ln(),Qt(0,"span",72),en("onTap",function(){un(n);var e=Yt().$implicit;return Yt(2).ExpandContent(e.id,"question")}),on(1,"show less"),Bt()),2&e&&(i=Yt().$implicit,e=Yt(2),Nt("ng-hidden",!e.questionexpand[i.id]))}function Ne(e,t){var n;1&e&&(n=ln(),Qt(0,"div",73),en("click",function(){un(n);var e=Yt().$implicit;return Yt(2).ShowReplybox(e.id)}),on(1,"Reply"),Bt())}function Fe(e,t){1&e&&Ht(0,"i")}function $e(e,t){1&e&&Ht(0,"i")}function Ge(e,t){var n,i;1&e&&(n=ln(),Qt(0,"form",74),en("onSubmit",function(){un(n);var e=Yt().$implicit;return Yt(2).SubmitReply(e)}),Qt(1,"div",75),Ht(2,"img",76),Bt(),Qt(3,"div",77),Qt(4,"ck-editor",78),en("valueChange",function(e){un(n);var t=Yt().$implicit;return Yt(2).ReplyInput(e,t.id)}),Bt(),Bt(),Qt(5,"div",79),Ht(6,"error-toast",80),Qt(7,"button",81),en("onTap",function(){un(n);var e=Yt().$implicit;return Yt(2).ShowReplybox(e.id)}),on(8,"Cancel"),Bt(),Qt(9,"button",82),Qt(10,"span"),on(11,"Reply"),Bt(),Ht(12,"i",83),Bt(),Bt(),Bt()),2&e&&(i=Yt().$implicit,e=Yt(2),Pt(2),Nt("src",e.user_avatar,Kt)("on-img-error",e.user_avatar_fallback),Pt(2),Nt("value",e.replyboxinput[i.id])("active",!0)("cursor-focus",e.replyboxshow[i.id])("readonly",e.replyinprogress[i.id]),Pt(2),Nt("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),Pt(1),Nt("disabled",e.replyinprogress[i.id]),Pt(2),dn("loadactive",e.replyinprogress[i.id]),Nt("disabled",e.replyinprogress[i.id]))}function De(e,t){1&e&&(Qt(0,"span",98),on(1),Bt()),2&e&&(e=Yt(2).$implicit,Pt(1),an(", ",e.user_title,""))}var Ve=function(){return{attribute:"itemprop",value:"name"}},Qe=function(e){return[e]};function Be(e,t){var n,i;1&e&&(Qt(0,"div",95),Qt(1,"span",96),on(2),Bt(),Mt(3,De,2,1,"span",97),Bt()),2&e&&(n=(i=Yt()).index,e=i.$implicit,i=Yt(3),Nt("ng-attribute",i.userschema)("ng-attribute-when",i.toggleSchema&&0==n),Pt(1),Nt("ng-attribute",In(7,Qe,En(6,Ve)))("ng-attribute-when",i.toggleSchema&&0==n),Pt(1),pn(e.user_fullname||(null==e?null:e.user_login)),Pt(1),Nt("ngIf",e.user_title))}function Ue(e,t){1&e&&(Cn(0),on(1),Ln()),2&e&&(e=Yt().$implicit,Pt(1),pn(null==e?null:e.user_login))}function We(e,n){var i,t;1&e&&(i=ln(),Qt(0,"span",31),en("onTap",function(){un(i);var e=n.index,t=Yt(2).$implicit;return Yt(3).AnsOpt(e,t)}),on(1),Bt()),2&e&&(t=n.$implicit,e=n.index,dn("qnaml-first",0==e),Pt(1),pn(t))}function Xe(e,t){var n,i;1&e&&(n=ln(),Qt(0,"div",99),Qt(1,"i",100),en("onTap",function(){un(n);var e=Yt().$implicit;return Yt(3).ControlAnsOpt(e)})("onTapOutside",function(){return un(n),Yt().$implicit.options_list_opened=!1}),Bt(),Qt(2,"div",8),en("onTap",function(e){return un(n),e.stopPropagation()}),Mt(3,We,2,3,"span",101),Bt(),Bt()),2&e&&(i=Yt().$implicit,e=Yt(3),Pt(2),Nt("ng-hidden",!i.options_list_opened),Pt(1),Nt("ngForOf",e.ansOptions)("ngForTrackBy",e.trackByFn))}function Ye(e,t){1&e&&Ht(0,"i")}function Ke(e,t){1&e&&Ht(0,"i")}var Ze=function(){return{attribute:"itemprop",value:"upvoteCount"}},Je=function(){return{attribute:"itemprop",value:"downvoteCount"}};function et(e,t){var n,i,s;1&e&&(n=ln(),Qt(0,"div",59),Qt(1,"div",102),en("onTap",function(){un(n);var e=Yt().$implicit;return Yt(3).RateContent(e,"up","answer")}),Mt(2,Ye,1,0,"i",26),Qt(3,"span",96),on(4),Bt(),Bt(),Qt(5,"div",62),en("onTap",function(){un(n);var e=Yt().$implicit;return Yt(3).RateContent(e,"down","answer")}),Mt(6,Ke,1,0,"i",26),Qt(7,"span",96),on(8),Bt(),Bt(),Bt()),2&e&&(i=(s=Yt()).$implicit,e=s.index,s=Yt(3),Pt(1),dn("visible",i.voteinprogress),Nt("zing-no-touch",!0),Pt(1),Nt("ngIf",i.voteinprogress),Pt(1),Nt("ng-attribute",In(15,Qe,En(14,Ze)))("ng-attribute-when",s.toggleSchema&&0==e),Pt(1),pn(i.upvote),Pt(1),dn("visible",i.downvoteinprogress),Nt("zing-no-touch",!0),Pt(1),Nt("ngIf",i.downvoteinprogress),Pt(1),Nt("ng-attribute",In(18,Qe,En(17,Je)))("ng-attribute-when",s.toggleSchema&&0==e),Pt(1),pn(i.downvote))}var tt=function(){return{416:35,541:50,769:70,2800:90}},nt=function(){return{attribute:"itemprop",value:"text"}};function it(e,t){var n,i,s;1&e&&(Qt(0,"div",84),Qt(1,"div",85),Qt(2,"div",86),Ht(3,"img",87,88),Bt(),Qt(5,"div",89),Mt(6,Be,4,9,"div",90),Qt(7,"div",91),Mt(8,Ue,2,1,"ng-container",26),Bt(),Mt(9,Xe,4,3,"div",92),Bt(),Bt(),Ht(10,"div",93),Mt(11,et,9,20,"div",94),Bt()),2&e&&(n=t.$implicit,i=t.index,e=(s=Yt()).$implicit,t=s.index,s=Yt(2),Nt("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),Pt(2),Nt("defer-src",n.user_avatar)("src-fallback",s.user_avatar_fallback),Pt(4),Nt("ngIf",n.user_fullname||(null==n?null:n.user_login)),Pt(2),Nt("ngIf",null==n?null:n.user_login),Pt(1),Nt("ngIf",null==n?null:n.is_reportable),Pt(1),Nt("zing-url-container",!0)("expand-content",0==i&&0==t&&!(s.show_search_state||s.show_search_state_empty))("breakwords",En(18,tt))("collapse-button",0!=i||0!=t||s.show_search_state||s.show_search_state_empty?"show less":"")("ng-truncate",n.content_long)("sanitize-cfg",n.sanitizecfg)("ng-attribute",In(20,Qe,En(19,nt)))("ng-attribute-when",s.toggleSchema&&0==i),Zt("data-pos",n.stackid),Pt(1),Nt("ngIf",!s.IsSpecial(n.id)))}function st(e,t){1&e&&(Qt(0,"div",106),Ht(1,"i"),Bt())}function ot(e,t){var n,i;1&e&&(n=ln(),Qt(0,"div",103),Mt(1,st,2,0,"div",104),Qt(2,"span",105),en("onTap",function(){un(n);var e=Yt(),t=e.$implicit,e=e.index;return Yt(2).ViewMoreAns(t,e)}),on(3," View more answers "),Ht(4,"i",7),Bt(),Bt()),2&e&&(i=Yt().$implicit,e=Yt(2),Pt(1),Nt("ngIf",e.answersmore[i.id]))}function rt(e,t){var n,i;1&e&&(n=ln(),Qt(0,"article",46),Qt(1,"h3",47),Mt(2,Ae,1,5,"a",48),Mt(3,Se,1,3,"span",49),Bt(),Qt(4,"div",50),Qt(5,"div",51),on(6),Bt(),Qt(7,"span",52),on(8),Bt(),Bt(),Mt(9,Oe,1,1,"p",53),Mt(10,Re,1,1,"p",54),Mt(11,je,2,0,"span",55),Mt(12,He,1,1,"p",53),Mt(13,Me,2,1,"span",56),Mt(14,Pe,2,1,"span",56),Qt(15,"div",57),Mt(16,Ne,2,0,"div",58),Qt(17,"div",59),Qt(18,"div",60),en("onTap",function(){un(n);var e=t.$implicit;return Yt(2).RateContent(e)}),Mt(19,Fe,1,0,"i",26),Qt(20,"span",61),on(21),Bt(),Bt(),Qt(22,"div",62),en("onTap",function(){un(n);var e=t.$implicit;return Yt(2).RateContent(e,"down")}),Mt(23,$e,1,0,"i",26),Qt(24,"span",61),on(25),Bt(),Bt(),Bt(),Bt(),Mt(26,Ge,13,14,"form",63),Qt(27,"div",64),Mt(28,it,12,22,"div",65),Mt(29,ot,5,1,"div",66),Bt(),Bt()),2&e&&(i=t.$implicit,e=Yt(2),dn("qna-q-search",i.from_search),Nt("ng-attribute",e.qschemascope)("ng-attribute-when",e.questionToggleSchema(i)),Pt(1),Nt("ng-attribute",In(35,Qe,En(34,Ve)))("ng-attribute-when",e.questionToggleSchema(i)),Pt(1),Nt("ngIf",i.ques_href||i.ques_fullslug),Pt(1),Nt("ngIf",!i.ques_href&&!i.ques_fullslug),Pt(2),Nt("ng-attribute",In(38,Qe,En(37,Ze)))("ng-attribute-when",e.questionToggleSchema(i)),Pt(1),pn(i.upvote),Pt(2),an("Upvote",1!=i.upvote?"s":"",""),Pt(1),Nt("ngIf",!e.questionexpand[i.id]&&i.ques_content_cut_mob),Pt(1),Nt("ngIf",!e.questionexpand[i.id]&&i.ques_content_cut_desk),Pt(1),Nt("ngIf",!e.questionexpand[i.id]&&i.ques_content_has_more),Pt(1),Nt("ngIf",(e.questionexpand[i.id]||!i.ques_content_cut_mob)&&i.ques_content_more),Pt(1),Nt("ngIf",i.ques_content_has_more),Pt(1),Nt("ngIf",i.ques_content_has_more),Pt(2),Nt("ngIf",!e.IsSpecial(i.id)),Pt(2),dn("visible",i.voteinprogress),Nt("zing-no-touch",!0),Pt(1),Nt("ngIf",i.voteinprogress),Pt(2),pn(i.upvote),Pt(1),dn("visible",i.downvoteinprogress),Nt("zing-no-touch",!0),Pt(1),Nt("ngIf",i.downvoteinprogress),Pt(2),pn(i.downvote),Pt(1),Nt("ngIf",e.replyboxshow[i.id]),Pt(1),Nt("ng-hidden",!i.answers||i.answers.length<1),Pt(1),Nt("ngForOf",i.answers)("ngForTrackBy",e.trackByFn),Pt(1),Nt("ngIf",i.has_more_answers))}function at(e,t){1&e&&(Qt(0,"div",41),Mt(1,ze,3,0,"div",42),Mt(2,rt,30,40,"article",43),Bt()),2&e&&(e=Yt(),dn("qna-qb-loading",e.search_loading||e.questions_more),Nt("ng-hidden",e.resultserror||e.load_startup||e.load_startup_fail)("ng-attribute",e.qschemapage)("ng-attribute-when",e.sectionToggleSchema()),Pt(1),Nt("ngIf",e.search_loading||e.questions_more),Pt(1),Nt("ngForOf",e.schquestions)("ngForTrackBy",e.trackByFn))}function ct(e,t){var n;1&e&&(n=ln(),Qt(0,"button",111),en("onTap",function(){return un(n),Yt(2).ViewMoreQuestions()}),Qt(1,"span",112),Qt(2,"span",110),on(3,"View "),Bt(),on(4,"More Questions"),Bt(),Ht(5,"i",83),Bt()),2&e&&(e=Yt(2),dn("loadactive",e.questions_more))}function lt(e,t){var n;1&e&&(n=ln(),Qt(0,"div",107),Mt(1,ct,6,2,"button",108),Qt(2,"button",109),en("onTap",function(){return un(n),Yt().AskQuestion()}),on(3,"Ask "),Qt(4,"span",110),on(5,"Your"),Bt(),on(6," Question"),Bt(),Bt()),2&e&&(e=Yt(),Pt(1),Nt("ngIf",e.has_more_ques))}function ut(e,t){1&e&&(Qt(0,"div",113),Qt(1,"div",45),Ht(2,"i"),Bt(),Bt())}function dt(e,t){var n;1&e&&(n=ln(),Qt(0,"div",114),Qt(1,"p",115),on(2,"Oops there was a problem retrieving data"),Bt(),Ht(3,"br"),Qt(4,"div",116),Qt(5,"button",117),en("onTap",function(){return un(n),Yt().RetryLoadData()}),on(6,"Retry"),Bt(),Bt(),Bt())}function ht(e,t,n){return{"light-font qnah-1":e,"qnah-2 bold-font":t,"qnah-1 qnah-3 extra-bold-font":n}}ft.import("css:/components/qna-comp.css").then(function(){}).catch(function(){});y=_t("Q",(Object.defineProperty(pt.prototype,"search_value",{get:function(){return this._qType.getValue()},enumerable:!1,configurable:!0}),pt.prototype.questionToggleSchema=function(e){return this.toggleSchema&&!(!e.answers||e.answers.length<1)},pt.prototype.sectionToggleSchema=function(){return!!(this.toggleSchema&&this._has_answer&&0<this.schquestions.length)},Object.defineProperty(pt.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(pt.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(pt.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(pt.prototype,"open_popup",{get:function(){return this._open_popup},set:function(e){(this._open_popup=e)&&this.AskQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(pt.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}),pt.prototype.trackByFn=function(e){return e},pt.prototype._ParseQuestions=function(e,i,s){var o=this,r=[];return Zn(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}Jn(o.schquestions)&&(t+=o.schquestions.length),o._ParseAnswers(n,t,null,s),r.push(n)}),r},pt.prototype._ParseAnswers=function(i,s,e,o){var r=this,t=e||i.answers||[];Jn(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),Jn(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()),n.is_reportable=!1,n.sanitizecfg={RETURN_DOM_FRAGMENT:!1,RETURN_DOM:!1,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOW_UNKNOWN_PROTOCOLS:!0,KEEP_CONTENT:!0,ADD_TAGS:["meta","noscript"],ADD_ATTR:["content","itemprop","itemtype","itemscope","id","name","target","allow","allowfullscreen","frameborder"]},(r.IsSpecial(n.id)||Wn(n.uid,[13302181,15780064,13301077,15679068,15598394]))&&n.sanitizecfg.ADD_TAGS.push("iframe")}),i.has_more_answers=(i.total_answers||0)>i.answers.length||1<i.answers.length&&!this.question_more_answers[i.id]),Sn(function(){ei.emit("$shortcodes:set")})},pt.prototype._FormatAnswer=function(t){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},pt.prototype.SearchInput=function(e){e=e.target.value;this._qType.next(e)},pt.prototype.ControlSortList=function(e){this.sort_list_opened="boolean"==typeof e?e:!this.sort_list_opened},pt.prototype.ExpandContent=function(e,t){this[t+"expand"][e]=!this[t+"expand"][e]},pt.prototype.RateContent=function(t,e,n){var i,s,o;void 0===e&&(e="up"),ti(this.signon)&&"id"in this.signon||!On()?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)),ni("content-vote-"+t.id),ii({url:si(),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?ei.emit("$server:error",{data:e.message}):401==e.status&&On()&&(top.location.href="/join/light?redirect_to="+encodeURIComponent(document.location.href))})):top.location.href="/join/light?redirect_to="+encodeURIComponent(document.location.href)},pt.prototype.IsSpecial=function(e){return~["c","b","e"].indexOf((e+"").charAt(0))},pt.prototype.ControlAnsOpt=function(e){e.options_list_opened=!e.options_list_opened},pt.prototype.AnsOpt=function(e,t){t=oi(t.id);0==e&&window.open("/report-abuse/?ru="+location.href.split("?")[0].split("#")[0]+"&t=a&id="+t,"_self")},pt.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},pt.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]="")},pt.prototype.ReplyInput=function(e,t){this.replyboxinput[t]=e,this.replyerror[t]&&(this.replyerror[t].show=!1)},pt.prototype.SubmitReply=function(i){var s=this,e=this.replyboxinput[i.id];!(e=Un(e))||e.length<30?this._throwReplyError(i.id,"Content must have 30 characters."):ii({url:si(),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)})},pt.prototype.QSearch=function(e,t){var n=this;this.resultserror=!1;e=t?null:Un(null!=e?e:this._qType.getValue())||"";this.current_page=1,ni("qna-search-query"),ni("qna-load-initial"),e?(e={id:"qna-search-query",url:si(),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,ii(e).then(function(e){if(!e||!Jn(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)},pt.prototype.QReset=function(){this.QSearch(null,!0)},pt.prototype.QClear=function(){this._qType.next("")},pt.prototype._throwGenericError=function(e,t){},pt.prototype._stripSlashes=function(e){return 0==e.indexOf("/")&&(e=e.substring(1)),e.lastIndexOf("/")==e.length-1&&(e=e.substring(0,e.length)),e},pt.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);ii({url:si(),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||!Jn(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)})},pt.prototype._LoadQues=function(t){var n=this;t&&(this.current_page=1),ni("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),ii({url:si(),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||!Jn(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)})},pt.prototype.ViewMoreQuestions=function(){this.current_page++,this._LoadQues()},pt.prototype.ChangeSort=function(e){this.sortv=this.sortList[e],this.sort_list_opened=!1,this.sortingparam=1===e?"mv":"mp",this._LoadQues(!0)},pt.prototype.AskQuestion=function(){this._quesOverlay.Open(re,{input:this.ques_ask||this._qType.getValue()||"",referer:$n()+this.ques_referer,addparams:this.addAskParams,categories:this.ask_quest_categories})},pt.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)},pt.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),ni("qna-load-initial"),ii({url:si(),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&&!Jn(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})},pt.prototype.RetryLoadData=function(){this._StartupLoad()},pt.prototype.ngOnInit=function(){var n=this;this.sortv=this.sortList[0],this.sortingparam="mp",An()||!Bn.get("mw_signon")&&!gi.group("mw_cookies")?this.user_avatar=null:(this.signon=Bn.get("mw_signon")?JSON.parse(Bn.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(yn(1)).subscribe(function(e){e=e[n.page_query],e=e?Kn(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&&Jn(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(xn(200)).subscribe(function(e){var t=Un((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()})},pt.prototype.ngOnDestroy=function(){this._qType.complete()},pt.ɵfac=function(e){return new(e||pt)(kt(Lt),kt(hn),kt(Tn),kt(i),kt(Rn))},pt.ɵcmp=St({type:pt,selectors:[["section","id","qna-box"]],viewQuery:function(e,t){1&e&&(Jt(_e,!0),Jt(fe,!0),Jt(me,!0)),2&e&&(Rt(e=jt())&&(t.txtElement=e.first),Rt(e=jt())&&(t._quesOverlay=e.first),Rt(e=jt())&&(t._answersList=e))},hostVars:4,hostBindings:function(e,t){2&e&&dn("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:L,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"],["class","qna-qa-sort","role","listbox",4,"ngIf"],["zing-touch","",1,"qna-q-ans-content","with-links","text-select",3,"zing-url-container","expand-content","breakwords","collapse-button","ng-truncate","sanitize-cfg","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"],["role","listbox",1,"qna-qa-sort"],["zing-touch","",1,"af-icon-down-open","cursor-pointer",3,"onTap","onTapOutside"],["role","option","zing-touch","","class","qna-most-list-it bold-font",3,"qnaml-first","onTap",4,"ngFor","ngForOf","ngForTrackBy"],["zing-touch","",1,"up","vote","bf-icon-upvote","progress-indicator",3,"zing-no-touch","onTap"],[1,"qna-qa-show-more","progress-indicator-container"],["class","progress-indicator visible",4,"ngIf"],["zing-touch","",1,"qna-qa-sm-bt","link","inherit",3,"onTap"],[1,"progress-indicator","visible"],[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&&(Qt(0,"h2",0),on(1),Mt(2,ve,2,1,"span",1),Bt(),Mt(3,be,6,2,"p",2),Mt(4,ye,1,4,"p",3),Mt(5,Ie,12,11,"div",4),Qt(6,"div",5),Qt(7,"span",6),en("onTap",function(){return t.ControlSortList()})("onTapOutside",function(){return t.ControlSortList(!1)}),Qt(8,"span"),on(9),Bt(),Ht(10,"i",7),Bt(),Qt(11,"div",8),en("onTap",function(e){return e.stopPropagation()}),Mt(12,Ee,2,3,"span",9),Bt(),Bt(),Mt(13,Le,9,5,"div",10),Mt(14,at,3,8,"div",11),Mt(15,lt,7,1,"div",12),Ht(16,"modal-dialog",null,13),Mt(18,ut,3,0,"div",14),Mt(19,dt,7,0,"div",15)),2&e&&(Nt("ngClass",qn(16,ht,0==t.layout_type,1==t.layout_type,2==t.layout_type)),Pt(1),an("",t.section_title," "),Pt(1),Nt("ngIf",1==t.layout_type&&t.schq_count),Pt(1),Nt("ngIf",t.product_name),Pt(1),Nt("ngIf",t.intro_content),Pt(1),Nt("ngIf",t.has_enough_ques&&!t.load_startup&&!t.load_startup_fail),Pt(1),Nt("ng-hidden",!t.has_enough_ques||0==t.schquestions.length||t.show_search_state||t.show_search_state_empty||t.resultserror),Pt(3),pn(t.sortv),Pt(2),Nt("ng-hidden",!t.sort_list_opened),Pt(1),Nt("ngForOf",t.sortList)("ngForTrackBy",t.trackByFn),Pt(1),Nt("ngIf",!t.has_enough_ques&&!t.load_startup&&!t.load_startup_fail),Pt(1),Nt("ngIf",t.search_loading||t.questions_more||t.schquestions.length),Pt(1),Nt("ngIf",t.has_view_more),Pt(3),Nt("ngIf",t.load_startup&&!t.load_startup_fail),Pt(1),Nt("ngIf",t.load_startup_fail))},directives:[Wt,Ft,Pn,Mn,nn,ri,F,ai,a,y,ci,li,Nn,_i,f,Vn,ui],encapsulation:2}),pt));function pt(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 mt(""),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.ansOptions=["Report"],this._open_popup=!1,this.page_query=null,this.answers_link=$n()+"/answers/"}wt(y,[{type:Dt,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:Lt},{type:hn},{type:Tn},{type:i},{type:Rn}]},{layout_type:[{type:It,args:["type"]}],product_name:[{type:It,args:["product-name"]}],ques_data:[{type:It,args:["product-questions"]}],ques_referer:[{type:It,args:["product-referer"]}],intro_content:[{type:It,args:["use-intro"]}],quest_category:[{type:It,args:["product-category"]}],start_delay:[{type:It,args:["startup-delay"]}],section_title:[{type:It,args:["section-title"]}],ask_quest_categories:[{type:It,args:["question-categories"]}],toggleSchema:[{type:It,args:["toggle-schema"]}],total_ques:[{type:Et,args:["total-questions"]}],txtElement:[{type:$t,args:["txtElement",{static:!1}]}],_quesOverlay:[{type:$t,args:["quesOverlay",{static:!1}]}],_answersList:[{type:kn,args:["ques_answer"]}],open_popup:[{type:It,args:["show-ask-popup"]}],focus_on_input:[{type:It,args:["scroll-to-ask"]}],addAskParams:[{type:It,args:["question-ask-add-params"]}],page_query:[{type:It,args:["pagination-query"]}]});f=_t("b",(gt.ɵmod=vt({type:gt}),gt.ɵinj=bt({factory:function(e){return new(e||gt)},imports:[[yt,jn,Qn,x,di,e,hi,pi,l,v,fi,E,k]]}),gt));function gt(){}wt(f,[{type:xt,args:[{imports:[yt,jn,Qn,x,di,e,hi,pi,l,v,fi,E,k],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","npm:autonumeric/dist/autoNumeric.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(){},function(e){var t={};t.ActivatedRoute=e.A,t.RouterModule=e.R,n(t)},function(){}],execute:function(){}}});