"bundle";System.register("bundled/ci-shortcode.js",["css:/base.css","css:/style-web.css","css:/header-web.css","tslib","bundled/edu-vendor.js","hammerjs","propagating-hammerjs","systemjs","bundled/edu-post-ivy-boot2.js","zenscroll","npm:dompurify/dist/purify.js","inline-views:/header-tpl","npm:body-scroll-lock/lib/bodyScrollLock.js","npm:tablesort/dist/tablesort.min.js","bundled/site-footer-web2.js","bundled/ci-shortcode2.js"],function(n){"use strict";return{setters:[function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(e){var t={};t.CIShortCode=e.C,t.NGCIShortCodeModule=e.N,n(t)}],execute:function(){}}}),System.register("bundled/experts-gallery-ui-component.js",["css:/base.css","css:/style-web.css","css:/header-web.css","tslib","bundled/edu-vendor.js","hammerjs","propagating-hammerjs","systemjs","bundled/edu-post-ivy-boot2.js","zenscroll","npm:dompurify/dist/purify.js","inline-views:/header-tpl","npm:body-scroll-lock/lib/bodyScrollLock.js","npm:tablesort/dist/tablesort.min.js"],function(m,v){"use strict";var b,y,w,x,q,k,T,I,L,C,E,z,O,S,A,R,j,H,M,P,N,F,$,V,Q,B,G,D,W,U,X,Y,K,J,Z,ee,te,ne,ie,se,oe,re,ae,ce,le,ue,de,pe,he,ge,fe,_e;return{setters:[function(){},function(){},function(){},function(){},function(e){b=e.ɵ,y=e.f,w=e.g,x=e.h,q=e.j,k=e.H,T=e.J,I=e.s,L=e.I,C=e.O,E=e.a5,z=e.l,O=e.b,S=e.c,A=e.C,e.d,R=e.N,j=e.e,H=e.n,M=e.v,P=e.p,N=e.u,F=e.aj,$=e.i,V=e.w,Q=e.o,B=e.a3,G=e.R,D=e.q,W=e.r,U=e.t,X=e.a8,Y=e.ah,K=e.ai},function(){},function(){},function(){},function(e){J=e.w,Z=e.z,ee=e.r,te=e.j,ne=e.R,ie=e.$,se=e.a,oe=e.L,re=e.i,ae=e.B,ce=e.T,le=e.I,ue=e.G,de=e.f,pe=e.D,he=e.H,ge=e.b,fe=e.M,_e=e.o},function(){},function(){},function(){},function(){},function(){}],execute:function(){m("CompileExpertsGallery",function(e,t,n,i,s){void 0===s&&(s={});for(var o=f,r=g,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+'"]',p=s.data[l]||{};p={back_bt_text:p.back_link_text,more_btn_txt:p.more_text,expert_offset:-100,max_experts:6,hashname:s.hashname,data:{expertsContent:p.expertsContent,aslogos:p.aslogos}},c.push(fe(e,t,n,o,r,d,p).then(function(n){var e=n.Component.instance.changedExpert.subscribe(function(e){e?history.pushState(null,"",location.pathname+location.search+"#expert="+e):history.replaceState(null,"",location.pathname+location.search)}),t=i.fragment.subscribe(function(e){var t;(e=(e||"").replace("#",""))&&-1<e.indexOf("expert=")&&((t=_e(e))&&t.expert&&ee(function(){n.Component.instance.hashname=t.expert}))});return{destroy:function(){n.destroy(),e.unsubscribe(),t.unsubscribe()}}}))}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&&(H(0,"div",10),H(1,"h2"),Q(2),P(),P()),2&e&&(e=N(2),$(2),B(e.header_text||"Ask the Experts"))}function i(e,t){1&e&&M(0,"div",11),2&e&&(e=N(2),x("innerHTML",e.intro,G))}function s(e,t){var n;1&e&&(n=D(),Y(0),H(1,"span",19),Q(2),P(),M(3,"br"),H(4,"i",19),Q(5),P(),M(6,"br"),H(7,"span",20),W("onTap",function(){U(n);var e=N().$implicit;return N(2).gotToOne(e.HASHTAG)}),Q(8,"Read More"),P(),K()),2&e&&(e=N().$implicit,$(2),B(e.AUTHOR),$(3),B(e.CAPTION))}function o(e,t){var n;1&e&&(n=D(),Y(0),H(1,"span",21),W("onTap",function(){U(n);var e=N().$implicit;return N(2).gotToOne(e.HASHTAG)}),P(),K()),2&e&&(e=N().$implicit,$(1),x("ng-context",e.AUTHOR))}function r(e,t){var n,i;1&e&&(n=D(),H(0,"dl",12),H(1,"dt",13),H(2,"span",14),W("onTap",function(){U(n);var e=t.$implicit;return N(2).gotToOne(e.HASHTAG)}),M(3,"img",15,16),P(),P(),H(5,"dd",17),w(6,s,9,2,"ng-container",18),w(7,o,2,1,"ng-container",18),P(),P()),2&e&&(i=t.$implicit,e=N(2),V("gallery-item-logo",e.as_logos),$(2),x("defer-src",i.AVATAR)("zing-no-touch",!0)("ui-hydrate",e.srv_no_avatars),$(1),V("exp-img-logo",e.as_logos),x("src",i.AVATAR,X)("alt",i.AUTHOR),$(3),x("ngIf",!e.as_logos),$(1),x("ngIf",e.as_logos))}function a(e,t){var n;1&e&&(n=D(),H(0,"div",22),H(1,"span",23),W("onTap",function(){return U(n),N(2).showMoreExperts()}),P(),P()),2&e&&(e=N(2),$(1),x("ng-context",e.more_btn_txt))}function c(e,t){1&e&&(H(0,"i"),Q(1),P()),2&e&&(e=N(3),$(1),B(null==e.expert_full?null:e.expert_full.CAPTION))}function l(e,t){1&e&&M(0,"div",29),2&e&&(e=N(3),x("innerHtml",e.expert_full.CONTENT,G))}function u(e,t){1&e&&M(0,"div",30),2&e&&(e=N(3),x("cleanHTML",e.expert_full.CONTENT)("cleanHTML-sett",e.doompurifySett))}function d(e,t){var n;1&e&&(n=D(),H(0,"article",24),H(1,"button",25),W("onTap",function(){return U(n),N(2).goToAll()}),Q(2),P(),M(3,"img",26),H(4,"h3"),Q(5),P(),w(6,c,2,1,"i",18),w(7,l,1,1,"div",27),w(8,u,1,2,"div",28),P()),2&e&&(e=N(2),V("exp-logo-profile",e.as_logos),$(1),x("ngClass",e.back_bt_class),$(1),B(e.back_bt_text),$(1),x("src",null==e.expert_full?null:e.expert_full.AVATAR,X),$(2),B(null==e.expert_full?null:e.expert_full.AUTHOR),$(1),x("ngIf",!e.as_logos),$(1),x("ngIf",!e.as_logos),$(1),x("ngIf",e.as_logos))}function 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 h(e,t){1&e&&(H(0,"section",1),H(1,"div",2),M(2,"i"),P(),w(3,n,3,1,"div",3),w(4,i,1,1,"div",4),H(5,"div",5),H(6,"div",6),w(7,r,8,11,"dl",7),w(8,a,2,1,"div",8),w(9,d,9,9,"article",9),P(),P(),P()),2&e&&(e=N(),x("ngClass",F(14,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),V("visible",e.loading),$(2),x("ngIf",!e.layout_format),$(1),x("ngIf",e.intro&&!e.expert_single),$(1),V("all",!e.expert_single),x("scroll-to",e.center_experts),$(1),x("scroll-to",e.scrollsingle)("scrolloffset",e.expert_offset),$(1),x("ngForOf",e.experts),$(1),x("ngIf",e.hasmoreexperts&&!e.expert_single),$(1),x("ngIf",e.expert_single))}v.import("css:/components/experts-gallery.css").then(function(){},function(){});var g=(Object.defineProperty(t.prototype,"hashname",{get:function(){return this._hashname},set:function(e){(this._hashname=e)&&this._rendered?this._goToExpert(e):this.expert_single=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){(this._data=e)&&J(e.expertsContent)?(Z("experts-gallery"),this.expert_single=!1,this._parseExperts(this._data),this.asyncdata&&this._setExpertsPagination(),!this.emptydata&&this._hashname&&this._goToExpert(this._hashname),e.aslogos&&(this.as_logos=!0)):e&&!e.expertsContent&&(this.emptydata=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"urlpath",{get:function(){return this._urlpath},set:function(e){var t=e&&e!==this._urlpath;this._urlpath=e,t&&(this.urlrefresh=this.urlrefresh)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"urlrefresh",{get:function(){return this._refreshonurl},set:function(e){(this._refreshonurl=e)&&this._urlpath&&!this._data&&!this.asyncdata?this._refreshonurl=!0:this._refreshonurl=!1},enumerable:!1,configurable:!0}),t.prototype._goToExpert=function(e,n){var i=this;this.is_initial=!1;function s(){i.scrollsingle=!0,setTimeout(function(){i.scrollsingle=!1},100)}e=e.toString().toLowerCase(),e=!(!this._hashtaglist.hasOwnProperty(e)||!this._data.expertsContent[this._hashtaglist[e]])&&(this.expert_single=!0,this.expert_full!==this._data.expertsContent[this._hashtaglist[e]]&&(this.expert_full=this._data.expertsContent[this._hashtaglist[e]],ee(function(){i._zone.run(function(){var t;te()&&i._servertransitwait?(n||(t=ge.subscribe("server:transitscroll",function(e){"done"!=e&&"none"!=e||s(),setTimeout(function(){t&&t.unsubscribe()})})),i._servertransitwait=!1):n||s()})})),!0),this.tagMatch.emit(e)},t.prototype._storeTags=function(){this._hashtaglist={};for(var e=0,t=this.experts.length;e<t;e++){var n=(n=this.experts[e].HASHTAG.substring(1)).toLowerCase();this._hashtaglist[n]=e+(0===this.current_page?0:this.current_page-1)*this.max_experts}},t.prototype._parseExperts=function(e){0<e.expertsContent.length?(this.experts=e.expertsContent,this.hasmoreexperts=!!this.max_experts&&e.expertsContent.length>this.max_experts,this.intro=e.expertsIntro||null,this._storeTags(),this._hashname&&this._goToExpert(this._hashname),this.emptydata=!1):(this.emptydata=!0,this._hashtaglist=[])},t.prototype._setExpertsPagination=function(){this.hasmoreexperts=!!this.max_experts&&this.experts.length>this.max_experts,this.experts=(this.experts||[]).slice(this.current_page*this.max_experts,++this.current_page*this.max_experts)},t.prototype._throwError=function(e,t){this.dataerror=!0,ne(e,"NG Experts Gallery : Data Request Error",{action:t})},t.prototype._getExpertsByUrl=function(){var n=this;this.expert_single=!1,Z("experts-gallery"),this.loading=!0,ie({method:"GET",url:se(),id:"experts-gallery",before:function(){n.loading=!0},after:function(){n.loading=!1},data:{action:"Posts.GetExpertsGallery",path:this.urlpath},events:!1}).then(function(e){var t;e&&!e.error?(t=e.data,oe(t)&&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=re(),this.isnode?this.server_render?this.norender=!this._data&&!this.asyncdata:this.norender=!0:(!this._data&&this.urlpath&&this.urlrefresh&&!this.asyncdata?this.loading=!0:this.loading=!1,this.loading||this.asyncdata||this.data||(this.emptydata=!0),this.urlrefresh&&setTimeout(function(){e._getExpertsByUrl()},this.refreshdelay),this.as_logos?(this.more_btn_txt||(this.more_btn_txt="More Retailers"),this.back_bt_text||(this.back_bt_text="Back to All Retailers")):(this.more_btn_txt||(this.more_btn_txt="More Experts"),this.back_bt_text||(this.back_bt_text="Back to All Experts"))),this.asyncdata||this._setExpertsPagination()},t.prototype.ngAfterViewInit=function(){var e=this;this._rendered=!0,this.data&&!this.emptydata&&this._hashname?ee(function(){return e._goToExpert(e._hashname)}):this.asyncdata||(this._servertransitwait=!1)},t.prototype.ngOnDestroy=function(){Z("experts-gallery")},t.prototype.goToAll=function(){var e=this;this.expert_single=!1,this.scrollall=!0,this.scrollsingle=!1,this.expert_full=null,setTimeout(function(){e.scrollall=!1},100),this.changedExpert.emit(null)},t.prototype.gotToOne=function(e){e=e.substring(1);this.expert_full=null,this._goToExpert(e),this.changedExpert.emit(e)},t.prototype.showMoreExperts=function(){var e=this,t=this._data.expertsContent,n=t.length;this.experts=t.slice(this.current_page*this.max_experts,++this.current_page*this.max_experts),this._storeTags(),this.current_page&&this.current_page*this.max_experts>=n&&(this.current_page=0),this.center_experts=!1,setTimeout(function(){e.center_experts=!0,ee(function(){e.center_experts=!1})})},t.ɵfac=function(e){return new(e||t)(b(E))},t.ɵcmp=y({type:t,selectors:[["div","id","experts-gallery"]],inputs:{expert_offset:["scroll-offset","expert_offset"],max_experts:["max-experts","max_experts"],header_text:["header-text","header_text"],srv_no_avatars:["ui-hydrate-avatars","srv_no_avatars"],hashname:["hashtag","hashname"],data:"data",urlpath:"urlpath",urlrefresh:"urlrefresh",refreshdelay:"refreshdelay",asyncdata:"asyncdata",server_render:["server-render","server_render"],layout_format:["format","layout_format"],back_bt_text:["back-bt-text","back_bt_text"],back_bt_class:["back-bt-class","back_bt_class"],more_btn_txt:["more-bt-text","more_btn_txt"]},outputs:{changedExpert:"changedExpert",tagMatch:"tagMatch"},attrs:e,decls:1,vars:1,consts:[["class","experts-gallery",3,"ngClass","scroll-to",4,"ngIf"],[1,"experts-gallery",3,"ngClass","scroll-to"],[1,"progress-indicator"],["class","header-part",4,"ngIf"],["class","intro-part with-links",3,"innerHTML",4,"ngIf"],[1,"container",3,"scroll-to"],[1,"gallery",3,"scroll-to","scrolloffset"],["class","gallery-item",3,"gallery-item-logo",4,"ngFor","ngForOf"],["class","more-experts",4,"ngIf"],["class","expert-profile ng-enter-element slide",3,"exp-logo-profile",4,"ngIf"],[1,"header-part"],[1,"intro-part","with-links",3,"innerHTML"],[1,"gallery-item"],[1,"gallery-icon"],["zing-touch","",1,"gall-ic-action",3,"defer-src","zing-no-touch","ui-hydrate","onTap"],["height","110","width","110",1,"expert-image",3,"src","alt"],["deferImg",""],[1,"wp-caption-text","gallery-caption"],[4,"ngIf"],[1,"text-select"],["zing-touch","",1,"read-more","touch-element-cl",3,"onTap"],["zing-touch","",1,"read-more","touch-element-cl",3,"ng-context","onTap"],[1,"more-experts"],["zing-touch","",3,"ng-context","onTap"],[1,"expert-profile","ng-enter-element","slide"],["zing-touch","",1,"back-to-xprts",3,"ngClass","onTap"],["height","200","width","200",1,"profile-img",3,"src"],["class","description-text",3,"innerHtml",4,"ngIf"],["class","description-text",3,"cleanHTML","cleanHTML-sett",4,"ngIf"],[1,"description-text",3,"innerHtml"],[1,"description-text",3,"cleanHTML","cleanHTML-sett"]],template:function(e,t){1&e&&w(0,h,10,21,"section",0),2&e&&x("ngIf",!t.norender)},directives:[q,k,ae,T,ce,le,ue,de],encapsulation:2}),t);function t(e){this._zone=e,this.experts=[],this.expert_single=!1,this.expert_offset=0,this.max_experts=Number.MAX_SAFE_INTEGER,this.header_text="",this.srv_no_avatars=!1,this.current_page=0,this.questions=[],this.scrollall=!1,this.center_experts=!1,this.scrollsingle=!1,this.loading=!1,this.emptydata=!1,this.norender=!1,this.dataerror=!1,this.hasmoreexperts=!1,this.isnode=!1,this.doompurifySett={USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOW_UNKNOWN_PROTOCOLS:!0,KEEP_CONTENT:!0,ADD_TAGS:["meta","noscript","iframe"],ADD_ATTR:["content","itemprop","itemtype","itemscope","id","name","src"]},this.as_logos=!1,this.is_initial=!0,this._rendered=!1,this._hashtaglist={},this._refreshonurl=!1,this.refreshdelay=1,this.asyncdata=!1,this.server_render=!1,this.layout_format=0,this.back_bt_text="Back to All Experts",this.back_bt_class="btn blue",this.more_btn_txt="More Experts",this.changedExpert=new j,this.tagMatch=new j,this._servertransitwait=!0}I(g,[{type:z,args:[{selector:"div[id=experts-gallery]",templateUrl:"/views/components/experts-gallery.html"}]}],function(){return[{type:E}]},{expert_offset:[{type:L,args:["scroll-offset"]}],max_experts:[{type:L,args:["max-experts"]}],header_text:[{type:L,args:["header-text"]}],srv_no_avatars:[{type:L,args:["ui-hydrate-avatars"]}],hashname:[{type:L,args:["hashtag"]}],data:[{type:L}],urlpath:[{type:L}],urlrefresh:[{type:L}],refreshdelay:[{type:L}],asyncdata:[{type:L}],server_render:[{type:L,args:["server-render"]}],layout_format:[{type:L,args:["format"]}],back_bt_text:[{type:L,args:["back-bt-text"]}],back_bt_class:[{type:L,args:["back-bt-class"]}],more_btn_txt:[{type:L,args:["more-bt-text"]}],changedExpert:[{type:C}],tagMatch:[{type:C}]});var f=(_.ɵmod=O({type:_}),_.ɵinj=S({factory:function(e){return new(e||_)},imports:[[pe,A,he]]}),_);function _(){}I(f,[{type:R,args:[{imports:[pe,A,he],declarations:[g],exports:[g],entryComponents:[g]}]}],null,null)}}}),System.register("bundled/qna-comp.js",["css:/base.css","css:/style-web.css","css:/header-web.css","tslib","bundled/edu-vendor.js","hammerjs","propagating-hammerjs","systemjs","bundled/edu-post-ivy-boot2.js","zenscroll","npm:dompurify/dist/purify.js","inline-views:/header-tpl","npm:body-scroll-lock/lib/bodyScrollLock.js","npm:tablesort/dist/tablesort.min.js","bundled/site-footer-web2.js","npm:navigo/lib/navigo.js","bundled/qna-comp2.js","autosize","bundled/ci-shortcode2.js"],function(n){"use strict";return{setters:[function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(e){var t={};t.QnAComp=e.Q,t.QnAModule=e.a,n(t)},function(){},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 p(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,p(function(){p(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))?(p(function(){p(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&&p(function(){p(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","bundled/ci-shortcode2.js"],function(Je,Ze){"use strict";var et,tt,nt,it,st,ot,rt,at,ct,lt,ut,dt,pt,ht,gt,ft,_t,mt,vt,bt,yt,wt,xt,qt,kt,Tt,It,Lt,Ct,Et,zt,Ot,St,At,Rt,jt,Ht,Mt,Pt,Nt,Ft,$t,Vt,Qt,Bt,Gt,Dt,Wt,Ut,Xt,Yt,Kt,Jt,Zt,en,tn,nn,sn,on,rn,an,cn,ln,un,dn,pn,hn,gn,fn,_n,mn,vn,bn,yn,wn,xn,qn,kn,Tn,In,Ln,Cn,En,zn,On,Sn,An,Rn,jn,Hn,Mn,Pn,Nn,Fn,$n,Vn,Qn,Bn,Gn,Dn,Wn,Un,Xn,Yn,Kn,Jn;return{setters:[function(e){et=e.T,tt=e.b,nt=e.c,it=e.C,e.d,st=e.s,ot=e.N,rt=e.a4,at=e.ɵ,ct=e.a,lt=e.I,ut=e.O,dt=e.E,pt=e.a5,ht=e.D,gt=e.e,ft=e.f,_t=e.a6,mt=e.z,vt=e.A,bt=e.v,yt=e.g,wt=e.i,xt=e.h,qt=e.j,kt=e.F,Tt=e.k,It=e.l,Lt=e.V,Ct=e.n,Et=e.p,zt=e.S,Ot=e.H,St=e.a7,At=e.u,Rt=e.a8,jt=e.L,Ht=e.r,Mt=e.$,Pt=e.o,Nt=e.q,Ft=e.t,$t=e.w,Vt=e.a3,Qt=e.R,Bt=e.a9,Gt=e.y,Dt=e.P,Wt=e.Q,Ut=e.m,Xt=e.U,Yt=e.x,Kt=e.a0,Jt=e.aa,Zt=e.ab,en=e.ac,tn=e.B,nn=e.J,sn=e.ad,on=e.ae,rn=e.af,an=e.ag,cn=e.ah,ln=e.ai},function(){},function(e){un=e.o,dn=e.i,pn=e.r,hn=e.j,gn=e.S,fn=e.D,_n=e.u,mn=e.k,vn=e.g,bn=e.R,yn=e.l,wn=e.e,xn=e.E,qn=e.T,kn=e.d,Tn=e.C,In=e.t,Ln=e.m,Cn=e.p,En=e.q,zn=e.s,On=e.v,Sn=e.w,An=e.b,Rn=e.x,jn=e.y,Hn=e.z,Mn=e.$,Pn=e.a,Nn=e.n,Fn=e.B,$n=e.F,Vn=e.G,Qn=e.f,Bn=e.I,Gn=e.H,Dn=e.c,Wn=e.J,Un=e.K},function(e){Xn=e.F,Yn=e.a},function(){},function(){},function(e){Kn=e.n,Jn=e.a}],execute:function(){var n,t=require("npm:navigo/lib/navigo.js"),i=Je("A",function(){this.queryParams=new rt(function(t){var e=o.subscribe(function(e){e&&t.next(un(e.query))});return{unsubscribe:function(){e.unsubscribe()}}}),this.fragment=new rt(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 et(null),e=Je("R",(r.forRoot=function(e){s=s.concat(e)},r.ɵmod=tt({type:r}),r.ɵinj=nt({factory:function(e){return new(e||r)},providers:[i],imports:[[it]]}),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()}st(e,[{type:ot,args:[{imports:[it],providers:[i]}]}],function(){return[]},null);var a=(Object.defineProperty(c.prototype,"updateAutoSize",{get:function(){return!1},set:function(e){var t=this;dn()||this._zone.runOutsideAngular(function(){1==e&&pn(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(){pn(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),dn()||window.addEventListener("resize",this._windowResize)},c.prototype.ngAfterViewInit=function(){var t=this;!dn()&&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(){dn()||(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)(at(dt),at(pt))},c.ɵdir=ct({type:c,selectors:[["","ng-autosize",""]],inputs:{updateAutoSize:["sizeupdate","updateAutoSize"],_resize:["watchresize","_resize"]},outputs:{onResized:"onResized"}}),c);function c(e,t){this._el=e,this._zone=t,this._resize=!1,this.onResized=new gt}st(a,[{type:ht,args:[{selector:"[ng-autosize]"}]}],function(){return[{type:dt},{type:pt}]},{updateAutoSize:[{type:lt,args:["sizeupdate"]}],_resize:[{type:lt,args:["watchresize"]}],onResized:[{type:ut}]});var l=(u.ɵmod=tt({type:u}),u.ɵinj=nt({factory:function(e){return new(e||u)},imports:[[it]]}),u);function u(){}st(l,[{type:ot,args:[{declarations:[a],exports:[a],imports:[it]}]}],null,null);var d=["textarea"];function p(e,t){1&e&&(Ct(0,"div",4),bt(1,"i"),Et())}var h=require("systemjs"),g=!1,f=hn()&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,_=(Object.defineProperty(m.prototype,"value",{get:function(){return this._value.getValue()},set:function(e){this._value.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"active",{get:function(){return this._active.getValue()},set:function(e){this._active.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"readonly",{get:function(){return this._readonly},set:function(e){this._readonly=e,this._editor&&(this._editor.isReadOnly=e)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"autofocus",{get:function(){return this._autofocus},set:function(e){(this._autofocus=e)&&this._container&&this._container.nativeElement.focus()},enumerable:!1,configurable:!0}),m.prototype.StartCkeditor=function(){var i=this;h.dynamicImport(["ckeditor5/build/ckeditor.js"],function(e){e.create(i._container.nativeElement,i.options).then(function(t){var n;i._enabled=!0,i._editor=t,i._cd.detectChanges(),t.model.document.on("change:data",function(e){n=t.getData(),i.valueChange.emit(n)}),i._editorsubs=i._value.subscribe(function(e){n!==e&&t.setData(e)}),i.autofocus&&(t.editing.view.focus(),f||setTimeout(function(){var e=i._el.nativeElement;i._service.scrollTo({target:e,inview:!0})},100)),i.editorInitiated.emit(!0),g=!0},function(){throw i.editorInitiated.emit(!1),Error("Cannot instance the ckeditor")})},function(){throw i.editorInitiated.emit(!1),Error("Cannot load the ckeditor")})},m.prototype.EndCkeditor=function(){this._enabled=!1,this._editor&&(this._editor.destroy(),this._editor=null,this._editorsubs.unsubscribe())},m.prototype.ngOnInit=function(){var t=this,e=this._active.subscribe(function(e){e&&!t._enabled?setTimeout(function(){pn(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)(at(dt),at(Tt),at(gn))},m.ɵcmp=ft({type:m,selectors:[["ck-editor"]],viewQuery:function(e,t){var n;1&e&&_t(d,!0),2&e&&mt(n=vt())&&(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&&(bt(0,"div",0),bt(1,"textarea",1,2),yt(3,p,2,0,"div",3)),2&e&&(wt(1),xt("value",t.value),wt(2),xt("ngIf",!t.editor_init))},directives:[qt],styles:['.ck-toolbar .ckeditor-heading { font-size:18px; font-family: "ProximaNova-Bold", Helvetica, Arial, sans-serif }',".ck-editor__editable a:focus,.ck-editor__editable a:hover{text-decoration:underline}",".ck-editor__editable a{color:#1194f6;text-decoration:none;cursor:pointer}","ck-editor { display: block }"],encapsulation:2}),m);function m(e,t,n){this._el=e,this._cd=t,this._service=n,this._destroyed=!0,this.ckeditorLoaded=!0,this.ckelementid=_n(),this._value=new et(null),this.valueChange=new gt,this._active=new et(!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 gt,this.editor_init=g}st(_,[{type:It,args:[{selector:"ck-editor",template:'\n        <div class="ck-tools"></div>\n        <textarea #textarea class="ck-textarea" [value]="value"></textarea>\n        <div class="progress-indicator visible" *ngIf="!editor_init"><i></i></div>\n    ',styles:['.ck-toolbar .ckeditor-heading { font-size:18px; font-family: "ProximaNova-Bold", Helvetica, Arial, sans-serif }',".ck-editor__editable a:focus,.ck-editor__editable a:hover{text-decoration:underline}",".ck-editor__editable a{color:#1194f6;text-decoration:none;cursor:pointer}","ck-editor { display: block }"],host:{class:"progress-indicator-container"},encapsulation:Lt.None}]}],function(){return[{type:dt},{type:Tt},{type:gn}]},{_container:[{type:kt,args:["textarea",{static:!0}]}],value:[{type:lt}],valueChange:[{type:ut}],active:[{type:lt,args:["active"]}],readonly:[{type:lt}],autofocus:[{type:lt,args:["cursor-focus"]}],options:[{type:lt}],editorInitiated:[{type:ut}]});var v=(b.ɵmod=tt({type:b}),b.ɵinj=nt({factory:function(e){return new(e||b)},imports:[[it,fn]]}),b);function b(){}st(v,[{type:ot,args:[{declarations:[_],exports:[_],imports:[it,fn]}]}],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){!dn()&&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(){dn()||(this.onError=this.onError.bind(this),this._el.nativeElement.addEventListener("error",this.onError))},w.prototype.ngOnDestroy=function(){dn()||this._el.nativeElement.removeEventListener("error",this.onError)},w.ɵfac=function(e){return new(e||w)(at(dt),at(zt))},w.ɵdir=ct({type:w,selectors:[["","on-img-error",""]],inputs:{fallback:["on-img-error","fallback"],src:"src"},outputs:{onImageFailed:"image-failed"}}),w);function w(e,t){this._el=e,this._renderer=t,this.onImageFailed=new gt}st(y,[{type:ht,args:[{selector:"[on-img-error]"}]}],function(){return[{type:dt},{type:zt}]},{fallback:[{type:lt,args:["on-img-error"]}],onImageFailed:[{type:ut,args:["image-failed"]}],src:[{type:lt}]});var x=(q.ɵmod=tt({type:q}),q.ɵinj=nt({factory:function(e){return new(e||q)},imports:[[it]]}),q);function q(){}st(x,[{type:ot,args:[{declarations:[y],exports:[y],imports:[it]}]}],null,null);var k=["img-placeholder",""];function T(e,t){1&e&&bt(0,"img",2),2&e&&(e=At(),xt("src",e.srcLoaded,Rt)("ngClass",e.classes)("alt",e.alt),jt("itemprop",e.itemprop))}function I(e,t){1&e&&bt(0,"div",3),2&e&&(e=At(),xt("ngClass","animated-"+e.type)("ngStyle",e.placeHolderStyle))}var L=(Object.defineProperty(C.prototype,"src",{get:function(){return this._src},set:function(e){this._src=e,dn()?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)(at(Tt))},C.ɵcmp=ft({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&&(yt(0,T,1,4,"img",0),yt(1,I,1,2,"div",1)),2&e&&(xt("ngIf",""!=t.srcLoaded),wt(1),xt("ngIf",""==t.srcLoaded))},directives:[qt,Ot,St],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 gt,this.srcLoaded=""}st(L,[{type:It,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:Tt}]},{src:[{type:lt,args:["src"]}],itemprop:[{type:lt}],alt:[{type:lt}],classes:[{type:lt}],boxwidth:[{type:lt}],boxheight:[{type:lt}],unitsizewidth:[{type:lt}],unitsizeheight:[{type:lt}],type:[{type:lt}],imageLoaded:[{type:ut}]});var E=(z.ɵmod=tt({type:z}),z.ɵinj=nt({factory:function(e){return new(e||z)},imports:[[it]]}),z);function z(){}function O(e,t){1&e&&(Ct(0,"h2",8),Pt(1,"Ask a Question"),Et())}function S(e,t){1&e&&(Ct(0,"h2",8),Pt(1,"Thank you"),Et())}function A(e,t){1&e&&(Ct(0,"h2",8),Pt(1,"Please provide your email in order to receive answers"),Et())}function R(e,t){var n;1&e&&(n=Nt(),Ct(0,"div",9),Ct(1,"span",10),Pt(2),Et(),Ct(3,"textarea",11),Ht("input",function(e){return Ft(n),At().SetInput(e)}),Et(),Et()),2&e&&(e=At(),wt(1),$t("ques-ov-cred",e.input_chars_left<0),wt(1),Vt(e.input_chars_left),wt(1),xt("value",e.input_value)("readonly",e.submiting))}function j(e,t){var n;1&e&&(n=Nt(),Ct(0,"div",9),Ct(1,"textarea",12),Ht("input",function(e){return Ft(n),At().input_value_extra=e.target.value}),Et(),Et()),2&e&&(e=At(),wt(1),xt("value",e.input_value_extra)("readonly",e.submiting))}function H(e,t){var n;1&e&&(n=Nt(),Ct(0,"div",9),Ct(1,"ng-dropdown",13),Ht("selected",function(e){return Ft(n),At().SetCategory(e)}),Et(),Et()),2&e&&(e=At(),wt(1),xt("invalid",e.categoryerror)("items",e.categories)("second",!0)("value",e.category))}function M(e,t){1&e&&bt(0,"div",14),2&e&&(e=At(),xt("innerHTML",e.ajax_message,Qt)("zing-url-container",!0))}function P(e,t){var n;1&e&&(n=Nt(),Ct(0,"button",15),Ht("onTap",function(){return Ft(n),At().Submit()}),Pt(1," Next "),bt(2,"i",16),Et()),2&e&&(e=At(),$t("loadactive",e.submiting),xt("disabled",e.submiting))}function N(e,t){1&e&&(Ct(0,"div",17),Pt(1,"Your question has been submitted to our moderators for review. We will send you an email once your question has been approved."),Et())}function F(e,t){1&e&&bt(0,"br")}function $(e,t){1&e&&bt(0,"div",14),2&e&&(e=At(2),xt("innerHTML",e.ajax_message,Qt)("zing-url-container",!0))}function V(e,t){1&e&&bt(0,"br")}function Q(e,t){var n;1&e&&(n=Nt(),Ct(0,"div",18),Ct(1,"button",19),Ht("onTap",function(){return Ft(n),At().Back()}),Pt(2,"Back"),Et(),Ct(3,"button",20),Ht("onTap",function(){return Ft(n),At().GuestSubmit()}),bt(4,"i",21),Ct(5,"span",22),Pt(6,"Login to Wallethub"),Et(),Et(),Ct(7,"div",23),Pt(8,"or"),Et(),Ct(9,"input",24),Ht("input",function(e){return Ft(n),At().user_email=e.target.value}),Et(),yt(10,F,1,0,"br",25),yt(11,$,1,2,"div",4),yt(12,V,1,0,"br",25),Ct(13,"button",26),Ht("onTap",function(){return Ft(n),At().GuestSubmit()}),Pt(14," Submit "),bt(15,"i",16),Et(),Et()),2&e&&(e=At(),wt(9),xt("value",e.user_email),wt(1),xt("ngIf",!e.show_ajax_error),wt(1),xt("ngIf",e.show_ajax_error),wt(1),xt("ngIf",!e.show_ajax_error),wt(1),$t("loadactive",e.submiting),xt("disabled",e.submiting))}st(E,[{type:ot,args:[{declarations:[L],exports:[L],imports:[it]}]}],null,null);var B=require("systemjs"),G=(D.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},D.prototype._CountChars=function(){this.input_chars_left=this.input_value?this._max_input-this.input_value.trim().length:this._max_input},D.prototype._SendQues=function(){var n=this;this.show_ajax_error=!1,this.submiting=!0;var i=mn(this.input_value);B.dynamicImport(["Encryption"],function(e){var t={url:vn()+"/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,bn(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,yn().then(function(e){e.captureException(t)},function(){})})},D.prototype.SetCategory=function(e){this.category=e.value,this._catid=this._catindex[e.index],this.categoryerror=!1},D.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)},D.prototype.OnErrorToastHidden=function(){this.show_error&&(this.show_error=!1)},D.prototype.GuestSubmit=function(){this._SendQues()},D.prototype.SetInput=function(e){this.show_error=!1,this.show_ajax_error=!1,this.input_value=e.target.value,this._CountChars()},D.prototype.Back=function(){this.needs_login=!1,this.show_ajax_error=!1,this.ajax_message=""},D.prototype.ngOnInit=function(){var t=this;this.input_value=this.data.input||"",this.data.referer?this._referer=this.data.referer:(this._referer=vn()+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(),!dn()&&Tn.get("mw_signon")&&(this._is_lodgged=!0)},D.ɵfac=function(e){return new(e||D)(at(Mt))},D.ɵcmp=ft({type:D,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&&(yt(0,O,2,0,"h2",0),yt(1,S,2,0,"h2",0),yt(2,A,2,0,"h2",0),yt(3,R,4,5,"div",1),yt(4,j,2,2,"div",1),yt(5,H,2,4,"div",1),Ct(6,"div",2),Ct(7,"error-toast",3),Ht("onhidden",function(){return t.OnErrorToastHidden()}),Et(),Et(),yt(8,M,1,2,"div",4),yt(9,P,3,3,"button",5),yt(10,N,2,0,"div",6),yt(11,Q,16,7,"div",7)),2&e&&(xt("ngIf",!t.submited&&!t.needs_login),wt(1),xt("ngIf",t.submited),wt(1),xt("ngIf",t.needs_login&&!t.submited),wt(1),xt("ngIf",!t.submited&&!t.needs_login),wt(1),xt("ngIf",!t.submited&&!t.needs_login),wt(1),xt("ngIf",!t.submited&&!t.needs_login&&t.has_categories&&1<t.categories.length),wt(1),xt("ng-hidden",t.submited||t.needs_login),wt(1),xt("message",t.error_message)("show",t.show_error)("close-on-change",!0)("timer",t.toastinterval),wt(1),xt("ngIf",!t.needs_login&&t.show_ajax_error),wt(1),xt("ngIf",!t.submited&&!t.needs_login),wt(1),xt("ngIf",t.submited),wt(1),xt("ngIf",t.needs_login&&!t.submited))},directives:[qt,wn,xn,a,Kn,qn],encapsulation:2}),D);function D(e){this._location=e,this.data={},this.input_value="",this.input_value_extra="",this.input_chars_left=0,this._max_input=140,this.submiting=!1,this.submited=!1,this._limit=140,this._is_lodgged=!1,this.needs_login=!1,this.user_email="",this._referer="",this.has_categories=!1,this.categoryerror=!1,this.toastinterval=3500}st(G,[{type:It,args:[{selector:"question-overlay",templateUrl:"/views/components/question-overlay.html"}]}],function(){return[{type:Mt}]},null);var W=(U.ɵmod=tt({type:U}),U.ɵinj=nt({factory:function(e){return new(e||U)},imports:[[it,fn,l,kn,Jn]]}),U);function U(){}st(W,[{type:ot,args:[{imports:[it,fn,l,kn,Jn],exports:[G],declarations:[G],entryComponents:[G]}]}],null,null);var X=["content"];function Y(e,t){var n;1&e&&(n=Nt(),Ct(0,"span",4),Ht("onTap",function(){return Ft(n),At().Collapse()}),Pt(1,"show less"),Et())}function K(e,t){var n;1&e&&(n=Nt(),Ct(0,"div",5),Ht("onExpand",function(e){return Ft(n),At().Expanded(e)}),Et()),2&e&&(e=At(),xt("ng-truncate",e.htmlcontent)("breakpoint",e.breakpoint)("breakwords",e.breakwords))}k=["*"],Object.defineProperty(J.prototype,"content",{set:function(e){this._content=e||"",this._initiated&&(this._expandct?this._ShowFullCT():this._Truncate())},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"expandContent",{set:function(e){this._expandContent.next(e),this._expandct=e},enumerable:!1,configurable:!0}),J.prototype.ngOnInit=function(){!this._expandct&&this._content||dn()?this._Truncate():this._ShowFullCT(),this._initiated=!0},J.prototype._WordCount=function(e){e=In((1==e.nodeType?e.textContent:e.wholeText)+"");return""==e?0:e.split(/\s+/g).length},J.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)}},J.prototype._AddExpandBT=function(e){var t=e.parentNode;t.removeChild(e),t.innerHTML=In(t.innerHTML);var n=t.tagName.toLowerCase();if(Ln(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)},J.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}}},J.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=In(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},J.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=In(e),dn())this._render.setProperty(this._el.nativeElement,"innerHTML",e);else{var n=window.innerWidth||document.body.clientWidth;n<this.breakpoint&&e.indexOf("\x3c!--mobilechop--\x3e")<0&&(e=e.replace(/<!--(auto)?(mobile)?chop-->/g,""));var i=!1,s=!1;n>=this.breakpoint?0<e.indexOf("\x3c!--chop--\x3e")&&(i=!0):0<e.indexOf("\x3c!--chop--\x3e")&&e.indexOf("\x3c!--mobilechop--\x3e")<0?i=!0:0<e.indexOf("\x3c!--mobilechop--\x3e")&&(i=s=!0),i||(e=e.replace("\x3c!--chop--\x3e","").replace("\x3c!--mobilechop--\x3e","")),e=(e=(e=n>this.breakpoint?e.replace(/(<!--chop-->)\s*(<!--mobilechop-->)/,"$2$1"):e.replace(/(<!--mobilechop-->)\s*(<!--chop-->)/,"$2$1")).replace("\x3c!--chop--\x3e",'<span data-chop="desktop"></span>')).replace("\x3c!--mobilechop--\x3e",'<span data-chop="mobile"></span>');var o=document.createElement("div");o.innerHTML=e;var r=o.querySelector('span[data-chop="desktop"]'),a=o.querySelector('span[data-chop="mobile"]');if(!r&&!a&&!this.auto_truncate)return e=Cn(e),void this._render.setProperty(this._el.nativeElement,"innerHTML",e);var c,l=!1,i=!!this.breakwords;if(o.lastChild==r||o.lastChild==a)i=!1,r&&o.lastChild==r&&(r.parentNode.removeChild(r),r=null,a&&o.lastChild==a&&(a.parentNode.removeChild(a),a=null)),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(En(this.breakwords,function(e,t){if(n<zn(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=Cn(o.innerHTML)),this._render.setProperty(this._el.nativeElement,"innerHTML",e),this.istruncated.pipe(Yt(1)).subscribe(function(e){pn(function(){t.onContent.emit(e?"collapsed":"expanded")})})}},J.prototype._ShowFullCT=function(){var e=this,t=this._content||"";this.collapse_bt&&(t+='<br class="js-shave-br" /><span class="js-shave-char cursor-pointer js-shave-char-less">'+this.collapse_bt+"</span>"),t=t.replace("[chop]","").replace("[mobilechop]",""),this._render.setProperty(this._el.nativeElement,"innerHTML",t),pn(function(){e.onContent.emit("expanded")})},J.prototype.Expand=function(e){dn()||(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))},J.prototype.ngAfterViewInit=function(){var t=this;dn()||(this._windowobs=Kt(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}}}}))}))},J.prototype.ngOnDestroy=function(){this._windowobs&&(this._windowobs=null),this._windowsubs&&this._windowsubs.unsubscribe(),this.istruncated.complete()},J.ɵfac=function(e){return new(e||J)(at(dt),at(zt))},J.ɵdir=ct({type:J,selectors:[["","ng-truncate",""]],hostBindings:function(e,t){1&e&&Ht("click",function(e){return t.Expand(e)})},inputs:{breakpoint:"breakpoint",breakwords:"breakwords",content:["ng-truncate","content"],sanitize:"sanitize",use_shave_break:["use-shave","use_shave_break"],expand_bt:["expand-button","expand_bt"],collapse_bt:["collapse-button","collapse_bt"],auto_truncate:["auto-trim","auto_truncate"],expandContent:["expand-content","expandContent"]},outputs:{onExpand:"onExpand",onContent:"onContent"}}),E=J;function J(e,t){this._el=e,this._render=t,this.breakpoint=768,this.breakwords={416:35,541:50,769:70,1282:90,1901:100,2048:150},this._content="",this.sanitize=!0,this.use_shave_break=!1,this.expand_bt="show more",this.collapse_bt="show less",this.auto_truncate=!0,this._expanded=!1,this._initiated=!1,this.istruncated=new et(null),this._expandContent=new Xt,this._expandct=!1,this.onExpand=new gt,this.onContent=new gt}st(E,[{type:ht,args:[{selector:"[ng-truncate]"}]}],function(){return[{type:dt},{type:zt}]},{breakpoint:[{type:lt}],breakwords:[{type:lt}],content:[{type:lt,args:["ng-truncate"]}],sanitize:[{type:lt,args:["sanitize"]}],use_shave_break:[{type:lt,args:["use-shave"]}],expand_bt:[{type:lt,args:["expand-button"]}],collapse_bt:[{type:lt,args:["collapse-button"]}],auto_truncate:[{type:lt,args:["auto-trim"]}],expandContent:[{type:lt,args:["expand-content"]}],onExpand:[{type:ut,args:["onExpand"]}],Expand:[{type:Bt,args:["click",["$event"]]}],onContent:[{type:ut,args:["onContent"]}]});Z.prototype.Expanded=function(e){e&&(this.hide_org_content=!1,"permanent"==this.expand_mode&&(this.perma_expand=!0)),this._cd.detectChanges()},Z.prototype.Collapse=function(){this.hide_org_content=!0,this._cd.detectChanges()},Z.prototype.ngOnInit=function(){var t=this;this.hide_org_content=!dn(),dn()?(this.hide_org_content=!1,this.perma_expand=!0):this._observer=new MutationObserver(function(e){t.htmlcontent=t.contentBox.nativeElement.innerHTML,pn(function(){t._cd.detectChanges()})})},Z.prototype.ngAfterViewInit=function(){var e=this;dn()||(this.htmlcontent=this.contentBox.nativeElement.innerHTML,pn(function(){e._cd.detectChanges()}),this._observer.observe(this.contentBox.nativeElement,{attributes:!1,childList:!0,characterData:!0}))},Z.prototype.ngOnDestroy=function(){this._observer.disconnect()},Z.ɵfac=function(e){return new(e||Z)(at(Tt),at(zt))},Z.ɵcmp=ft({type:Z,selectors:[["ng-truncate"]],viewQuery:function(e,t){var n;1&e&&Gt(X,!0),2&e&&mt(n=vt())&&(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&&(Dt(),Ct(0,"div",0,1),Wt(2),Et(),yt(3,Y,2,0,"span",2),yt(4,K,1,3,"div",3)),2&e&&(xt("ng-hidden",t.hide_org_content),wt(3),xt("ngIf",!t.hide_org_content&&!t.perma_expand),wt(1),xt("ngIf",t.hide_org_content))},directives:[wn,qt,qn,E],encapsulation:2,changeDetection:0}),L=Z;function Z(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=""}st(L,[{type:It,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:Ut.OnPush}]}],function(){return[{type:Tt},{type:zt}]},{breakpoint:[{type:lt}],breakwords:[{type:lt}],expand_mode:[{type:lt,args:["expand"]}],contentBox:[{type:kt,args:["content",{static:!1}]}]});ee.ɵmod=tt({type:ee}),ee.ɵinj=nt({factory:function(e){return new(e||ee)},imports:[[it,fn]]}),k=ee;function ee(){}st(k,[{type:ot,args:[{imports:[it,fn],declarations:[E,L],exports:[E,L]}]}],null,null);var te=["txtElement"],ne=["quesOverlay"],ie=["ques_answer"],L=["id","qna-box"];function se(e,t){1&e&&(Ct(0,"span",16),Pt(1),Et()),2&e&&(e=At(),wt(1),tn("(",e.schq_count,")"))}function oe(e,t){1&e&&(Ct(0,"p",17),Ct(1,"span"),Pt(2),Et(),Pt(3,"For more general questions, visit our "),Ct(4,"a",18),Pt(5,"Answers section."),Et(),Et()),2&e&&(e=At(),wt(2),tn("Get answers to your questions about ",e.product_name," below. "),wt(2),xt("zing-url",!0))}function re(e,t){1&e&&bt(0,"p",19),2&e&&(e=At(),xt("zing-url-container",!0)("ng-truncate",e.intro_content)("breakwords",e.truncateBreakwords)("breakpoint",480))}function ae(e,t){var n;1&e&&(n=Nt(),Ct(0,"i",29),Ht("onTap",function(){return Ft(n),At(2).QClear()}),Et())}function ce(e,t){1&e&&(Ct(0,"span"),Pt(1,"Don't see what you're looking for?"),Et())}function le(e,t){1&e&&(Ct(0,"div",30),Pt(1,"MATCHING RESULTS"),Et())}function ue(e,t){1&e&&(Ct(0,"div",30),Pt(1,"NO MATCHING RESULTS"),Et())}function de(e,t){1&e&&(Ct(0,"div",30),Pt(1,"Searching for answers..."),Et())}function pe(e,t){var n;1&e&&(n=Nt(),Ct(0,"div",20),Ct(1,"div",21),Ct(2,"textarea",22),Ht("input",function(e){return Ft(n),At().SearchInput(e)}),Et(),yt(3,ae,1,0,"i",23),Ct(4,"button",24),Ht("onTap",function(){return Ft(n),At().QSearch()}),Et(),Et(),Ct(5,"div",25),yt(6,ce,2,0,"span",26),Ct(7,"button",27),Ht("onTap",function(){return Ft(n),At().AskQuestion()}),Pt(8,"Ask Your Question"),Et(),Et(),yt(9,le,2,0,"div",28),yt(10,ue,2,0,"div",28),yt(11,de,2,0,"div",28),Et()),2&e&&(e=At(),wt(1),xt("scroll-to",e.focus_on_input),wt(1),xt("value",e.search_value),wt(1),xt("ngIf",e.search_value),wt(1),xt("ng-hidden",!!e.search_value),wt(1),$t("qna-aq-ss",e.noresults),xt("ng-hidden",!(e.show_search_state||e.show_search_state_empty)),wt(1),xt("ngIf",e.show_search_state&&!e.noresults),wt(3),xt("ngIf",e.show_search_state&&!e.search_loading),wt(1),xt("ngIf",e.show_search_state_empty&&!e.search_loading),wt(1),xt("ngIf",e.search_loading))}function he(e,t){var n,i;1&e&&(n=Nt(),Ct(0,"span",31),Ht("onTap",function(){Ft(n);var e=t.index;return At().ChangeSort(e)}),Pt(1),Et()),2&e&&(i=t.$implicit,e=t.index,$t("qnaml-first",0==e),wt(1),Vt(i))}function ge(e,t){1&e&&bt(0,"div",40)}function fe(e,t){var n;1&e&&(n=Nt(),Ct(0,"div",32),yt(1,ge,1,0,"div",33),Ct(2,"div",34),Ct(3,"div",35),bt(4,"img",36),Et(),Ct(5,"div",37),Ct(6,"textarea",38),Ht("input",function(e){return Ft(n),At().ques_ask=e.target.value}),Et(),Ct(7,"div",39),Ht("onTap",function(){return Ft(n),At().AskQuestion()}),Pt(8,"Ask your Question"),Et(),Et(),Et(),Et()),2&e&&(e=At(),wt(1),xt("ngIf",0==e.schquestions.length),wt(3),xt("src",e.user_avatar,Rt)("on-img-error",e.user_avatar_fallback),wt(1),xt("scroll-to",e.focus_on_input),wt(1),xt("value",e.ques_ask))}function _e(e,t){1&e&&(Ct(0,"div",44),Ct(1,"div",45),bt(2,"i"),Et(),Et())}function me(e,t){1&e&&bt(0,"a",67),2&e&&(e=At().$implicit,$t("qt-as-link",e.from_search),xt("href",e.ques_href||"/answers/"+e.ques_fullslug,Rt)("zing-url",!0)("ng-context",e.ques_title))}function ve(e,t){1&e&&bt(0,"span",68),2&e&&(e=At().$implicit,$t("qt-as-link",e.from_search),xt("ng-context",e.ques_title))}function be(e,t){1&e&&bt(0,"p",69),2&e&&(e=At().$implicit,xt("cleanHTML",e.ques_content_cut_mob))}function ye(e,t){1&e&&bt(0,"p",70),2&e&&(e=At().$implicit,xt("cleanHTML",e.ques_content_cut_desk))}function we(e,t){1&e&&(Ct(0,"span",71),Pt(1,"..."),Et())}function xe(e,t){1&e&&bt(0,"p",69),2&e&&(e=At().$implicit,xt("cleanHTML",e.ques_content_more))}function qe(e,t){var n,i;1&e&&(n=Nt(),Ct(0,"span",72),Ht("onTap",function(){Ft(n);var e=At().$implicit;return At(2).ExpandContent(e.id,"question")}),Pt(1,"show more"),Et()),2&e&&(i=At().$implicit,e=At(2),xt("ng-hidden",e.questionexpand[i.id]))}function ke(e,t){var n,i;1&e&&(n=Nt(),Ct(0,"span",72),Ht("onTap",function(){Ft(n);var e=At().$implicit;return At(2).ExpandContent(e.id,"question")}),Pt(1,"show less"),Et()),2&e&&(i=At().$implicit,e=At(2),xt("ng-hidden",!e.questionexpand[i.id]))}function Te(e,t){var n;1&e&&(n=Nt(),Ct(0,"div",73),Ht("click",function(){Ft(n);var e=At().$implicit;return At(2).ShowReplybox(e.id)}),Pt(1,"Reply"),Et())}function Ie(e,t){1&e&&bt(0,"i")}function Le(e,t){1&e&&bt(0,"i")}function Ce(e,t){var n,i;1&e&&(n=Nt(),Ct(0,"form",74),Ht("onSubmit",function(){Ft(n);var e=At().$implicit;return At(2).SubmitReply(e)}),Ct(1,"div",75),bt(2,"img",76),Et(),Ct(3,"div",77),Ct(4,"ck-editor",78),Ht("valueChange",function(e){Ft(n);var t=At().$implicit;return At(2).ReplyInput(e,t.id)}),Et(),Et(),Ct(5,"div",79),bt(6,"error-toast",80),Ct(7,"button",81),Ht("onTap",function(){Ft(n);var e=At().$implicit;return At(2).ShowReplybox(e.id)}),Pt(8,"Cancel"),Et(),Ct(9,"button",82),Ct(10,"span"),Pt(11,"Reply"),Et(),bt(12,"i",83),Et(),Et(),Et()),2&e&&(i=At().$implicit,e=At(2),wt(2),xt("src",e.user_avatar,Rt)("on-img-error",e.user_avatar_fallback),wt(2),xt("value",e.replyboxinput[i.id])("active",!0)("cursor-focus",e.replyboxshow[i.id])("readonly",e.replyinprogress[i.id]),wt(2),xt("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),wt(1),xt("disabled",e.replyinprogress[i.id]),wt(2),$t("loadactive",e.replyinprogress[i.id]),xt("disabled",e.replyinprogress[i.id]))}function Ee(e,t){1&e&&(Ct(0,"span",97),Pt(1),Et()),2&e&&(e=At(2).$implicit,wt(1),tn(", ",e.user_title,""))}var ze=function(){return{attribute:"itemprop",value:"name"}},Oe=function(e){return[e]};function Se(e,t){var n,i;1&e&&(Ct(0,"div",94),Ct(1,"span",95),Pt(2),Et(),yt(3,Ee,2,1,"span",96),Et()),2&e&&(n=(i=At()).index,e=i.$implicit,i=At(3),xt("ng-attribute",i.userschema)("ng-attribute-when",i.toggleSchema&&0==n),wt(1),xt("ng-attribute",rn(7,Oe,an(6,ze)))("ng-attribute-when",i.toggleSchema&&0==n),wt(1),Vt(e.user_fullname||(null==e?null:e.user_login)),wt(1),xt("ngIf",e.user_title))}function Ae(e,t){1&e&&(cn(0),Pt(1),ln()),2&e&&(e=At().$implicit,wt(1),Vt(null==e?null:e.user_login))}function Re(e,t){1&e&&bt(0,"i")}function je(e,t){1&e&&bt(0,"i")}var He=function(){return{attribute:"itemprop",value:"upvoteCount"}},Me=function(){return{attribute:"itemprop",value:"downvoteCount"}};function Pe(e,t){var n,i,s;1&e&&(n=Nt(),Ct(0,"div",59),Ct(1,"div",98),Ht("onTap",function(){Ft(n);var e=At().$implicit;return At(3).RateContent(e,"up","answer")}),yt(2,Re,1,0,"i",26),Ct(3,"span",95),Pt(4),Et(),Et(),Ct(5,"div",62),Ht("onTap",function(){Ft(n);var e=At().$implicit;return At(3).RateContent(e,"down","answer")}),yt(6,je,1,0,"i",26),Ct(7,"span",95),Pt(8),Et(),Et(),Et()),2&e&&(i=(s=At()).$implicit,e=s.index,s=At(3),wt(1),$t("visible",i.voteinprogress),xt("zing-no-touch",!0),wt(1),xt("ngIf",i.voteinprogress),wt(1),xt("ng-attribute",rn(15,Oe,an(14,He)))("ng-attribute-when",s.toggleSchema&&0==e),wt(1),Vt(i.upvote),wt(1),$t("visible",i.downvoteinprogress),xt("zing-no-touch",!0),wt(1),xt("ngIf",i.downvoteinprogress),wt(1),xt("ng-attribute",rn(18,Oe,an(17,Me)))("ng-attribute-when",s.toggleSchema&&0==e),wt(1),Vt(i.downvote))}var Ne=function(){return{416:35,541:50,769:70,2800:90}},Fe=function(){return{attribute:"itemprop",value:"text"}};function $e(e,t){var n,i,s;1&e&&(Ct(0,"div",84),Ct(1,"div",85),Ct(2,"div",86),bt(3,"img",87,88),Et(),Ct(5,"div",89),yt(6,Se,4,9,"div",90),Ct(7,"div",91),yt(8,Ae,2,1,"ng-container",26),Et(),Et(),Et(),bt(9,"div",92),yt(10,Pe,9,20,"div",93),Et()),2&e&&(n=t.$implicit,i=t.index,e=(s=At()).$implicit,t=s.index,s=At(2),xt("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),wt(2),xt("defer-src",n.user_avatar)("src-fallback",s.user_avatar_fallback),wt(4),xt("ngIf",n.user_fullname||(null==n?null:n.user_login)),wt(2),xt("ngIf",null==n?null:n.user_login),wt(1),xt("zing-url-container",!0)("expand-content",0==i&&0==t&&!(s.show_search_state||s.show_search_state_empty))("breakwords",an(16,Ne))("collapse-button",0!=i||0!=t||s.show_search_state||s.show_search_state_empty?"show less":"")("ng-truncate",n.content_long)("ng-attribute",rn(18,Oe,an(17,Fe)))("ng-attribute-when",s.toggleSchema&&0==i),jt("data-pos",n.stackid),wt(1),xt("ngIf",!s.IsSpecial(n.id)))}function Ve(e,t){var n,i;1&e&&(n=Nt(),Ct(0,"div",99),Ct(1,"div",100),bt(2,"i"),Et(),Ct(3,"span",101),Ht("onTap",function(){Ft(n);var e=At(),t=e.$implicit,e=e.index;return At(2).ViewMoreAns(t,e)}),Pt(4," View more answers "),bt(5,"i",7),Et(),Et()),2&e&&(i=At().$implicit,e=At(2),wt(1),$t("visible",e.answersmore[i.id]))}function Qe(e,t){var n,i;1&e&&(n=Nt(),Ct(0,"article",46),Ct(1,"h3",47),yt(2,me,1,5,"a",48),yt(3,ve,1,3,"span",49),Et(),Ct(4,"div",50),Ct(5,"div",51),Pt(6),Et(),Ct(7,"span",52),Pt(8),Et(),Et(),yt(9,be,1,1,"p",53),yt(10,ye,1,1,"p",54),yt(11,we,2,0,"span",55),yt(12,xe,1,1,"p",53),yt(13,qe,2,1,"span",56),yt(14,ke,2,1,"span",56),Ct(15,"div",57),yt(16,Te,2,0,"div",58),Ct(17,"div",59),Ct(18,"div",60),Ht("onTap",function(){Ft(n);var e=t.$implicit;return At(2).RateContent(e)}),yt(19,Ie,1,0,"i",26),Ct(20,"span",61),Pt(21),Et(),Et(),Ct(22,"div",62),Ht("onTap",function(){Ft(n);var e=t.$implicit;return At(2).RateContent(e,"down")}),yt(23,Le,1,0,"i",26),Ct(24,"span",61),Pt(25),Et(),Et(),Et(),Et(),yt(26,Ce,13,14,"form",63),Ct(27,"div",64),yt(28,$e,11,20,"div",65),yt(29,Ve,6,2,"div",66),Et(),Et()),2&e&&(i=t.$implicit,e=At(2),$t("qna-q-search",i.from_search),xt("ng-attribute",e.qschemascope)("ng-attribute-when",e.questionToggleSchema(i)),wt(1),xt("ng-attribute",rn(35,Oe,an(34,ze)))("ng-attribute-when",e.questionToggleSchema(i)),wt(1),xt("ngIf",i.ques_href||i.ques_fullslug),wt(1),xt("ngIf",!i.ques_href&&!i.ques_fullslug),wt(2),xt("ng-attribute",rn(38,Oe,an(37,He)))("ng-attribute-when",e.questionToggleSchema(i)),wt(1),Vt(i.upvote),wt(2),tn("Upvote",1!=i.upvote?"s":"",""),wt(1),xt("ngIf",!e.questionexpand[i.id]&&i.ques_content_cut_mob),wt(1),xt("ngIf",!e.questionexpand[i.id]&&i.ques_content_cut_desk),wt(1),xt("ngIf",!e.questionexpand[i.id]&&i.ques_content_has_more),wt(1),xt("ngIf",(e.questionexpand[i.id]||!i.ques_content_cut_mob)&&i.ques_content_more),wt(1),xt("ngIf",i.ques_content_has_more),wt(1),xt("ngIf",i.ques_content_has_more),wt(2),xt("ngIf",!e.IsSpecial(i.id)),wt(2),$t("visible",i.voteinprogress),xt("zing-no-touch",!0),wt(1),xt("ngIf",i.voteinprogress),wt(2),Vt(i.upvote),wt(1),$t("visible",i.downvoteinprogress),xt("zing-no-touch",!0),wt(1),xt("ngIf",i.downvoteinprogress),wt(2),Vt(i.downvote),wt(1),xt("ngIf",e.replyboxshow[i.id]),wt(1),xt("ng-hidden",!i.answers||i.answers.length<1),wt(1),xt("ngForOf",i.answers)("ngForTrackBy",e.trackByFn),wt(1),xt("ngIf",i.has_more_answers))}function Be(e,t){1&e&&(Ct(0,"div",41),yt(1,_e,3,0,"div",42),yt(2,Qe,30,40,"article",43),Et()),2&e&&(e=At(),$t("qna-qb-loading",e.search_loading||e.questions_more),xt("ng-hidden",e.resultserror||e.load_startup||e.load_startup_fail)("ng-attribute",e.qschemapage)("ng-attribute-when",e.sectionToggleSchema()),wt(1),xt("ngIf",e.search_loading||e.questions_more),wt(1),xt("ngForOf",e.schquestions)("ngForTrackBy",e.trackByFn))}function Ge(e,t){var n;1&e&&(n=Nt(),Ct(0,"button",106),Ht("onTap",function(){return Ft(n),At(2).ViewMoreQuestions()}),Ct(1,"span",107),Ct(2,"span",105),Pt(3,"View "),Et(),Pt(4,"More Questions"),Et(),bt(5,"i",83),Et()),2&e&&(e=At(2),$t("loadactive",e.questions_more))}function De(e,t){var n;1&e&&(n=Nt(),Ct(0,"div",102),yt(1,Ge,6,2,"button",103),Ct(2,"button",104),Ht("onTap",function(){return Ft(n),At().AskQuestion()}),Pt(3,"Ask "),Ct(4,"span",105),Pt(5,"Your"),Et(),Pt(6," Question"),Et(),Et()),2&e&&(e=At(),wt(1),xt("ngIf",e.has_more_ques))}function We(e,t){1&e&&(Ct(0,"div",108),Ct(1,"div",45),bt(2,"i"),Et(),Et())}function Ue(e,t){var n;1&e&&(n=Nt(),Ct(0,"div",109),Ct(1,"p",110),Pt(2,"Oops there was a problem retrieving data"),Et(),bt(3,"br"),Ct(4,"div",111),Ct(5,"button",112),Ht("onTap",function(){return Ft(n),At().RetryLoadData()}),Pt(6,"Retry"),Et(),Et(),Et())}function Xe(e,t,n){return{"light-font qnah-1":e,"qnah-2 bold-font":t,"qnah-1 qnah-3 extra-bold-font":n}}Ze.import("css:/components/qna-comp.css").then(function(){}).catch(function(){});y=Je("Q",(Object.defineProperty(Ye.prototype,"search_value",{get:function(){return this._qType.getValue()},enumerable:!1,configurable:!0}),Ye.prototype.questionToggleSchema=function(e){return this.toggleSchema&&!(!e.answers||e.answers.length<1)},Ye.prototype.sectionToggleSchema=function(){return!!(this.toggleSchema&&this._has_answer&&0<this.schquestions.length)},Object.defineProperty(Ye.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(Ye.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(Ye.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(Ye.prototype,"open_popup",{get:function(){return this._open_popup},set:function(e){(this._open_popup=e)&&this.AskQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(Ye.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}),Ye.prototype.trackByFn=function(e){return e},Ye.prototype._ParseQuestions=function(e,i,s){var o=this,r=[];return On(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}Sn(o.schquestions)&&(t+=o.schquestions.length),o._ParseAnswers(n,t,null,s),r.push(n)}),r},Ye.prototype._ParseAnswers=function(i,s,e,o){var r=this,t=e||i.answers||[];Sn(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),Sn(n.content)?(n.content_cut=n.content[0]||n.content[1],r.answers_content_clipped&&!i.from_search?(n.content_long=n.content[0],delete n.content_cut):n.content[0]?n.content_long=n.content[1]:(n.content_long=n.content_cut,delete n.content_cut)):(n.content_long=n.content,r.answers_content_clipped=!0),delete n.content,n.content_cut&&"string"==typeof n.content_cut&&(n.content_cut=n.content_cut.replace("[[:hellip:]]","...")),0!=s||i.from_search||i.answers.length||(n.content_long||(n.content_long=n.content_cut),delete n.content_cut,r.answerexpand[n.id]=!0),r.signon&&r.signon.id==n.uid&&(r.replyboxinputsubmited[i.id]=n.content_long||n.content_cut),n.content_cut&&(n.content_cut=r._FormatAnswer(n.content_cut)),n.content_long&&(n.content_long=r._FormatAnswer(n.content_long));e=o?o(n,i):null;"boolean"==typeof e&&!e||(i.answers.push(n),n.stackid=s.toString()+"-"+i.answers.indexOf(n).toString())}),i.has_more_answers=(i.total_answers||0)>i.answers.length||1<i.answers.length&&!this.question_more_answers[i.id]),pn(function(){An.emit("$shortcodes:set")})},Ye.prototype._FormatAnswer=function(e){var t=this._sanitize.sanitize(Jt.HTML,e||"");Rn(t)||(t="",jn()&&(t=e));try{t=(t=(t=t.replace(/<p><\/p>/g,"")).replace(/<p>(\s|&nbsp;)+<\/p>/g,"")).replace(/((?:[^\S\n]*(<p>)\s*<br(?:\s*\/\s*)?>\s*(<\/p>)|\s*<br>){2,})/g,"")}catch(e){t=""}return t},Ye.prototype.SearchInput=function(e){e=e.target.value;this._qType.next(e)},Ye.prototype.ControlSortList=function(e){this.sort_list_opened="boolean"==typeof e?e:!this.sort_list_opened},Ye.prototype.ExpandContent=function(e,t){this[t+"expand"][e]=!this[t+"expand"][e]},Ye.prototype.RateContent=function(t,e,n){var i,s,o;void 0===e&&(e="up"),t.voteinprogress||t.downvoteinprogress||(t.voteinprogress="up"==e,t.downvoteinprogress="down"==e,i=t.id,s=t.answers||t.ques_title?"question":"answer",(o=(t.id+"").match(/^([abceq])(\d+)$/))&&(i=parseInt(o.pop()),s=o.pop(),~["q","a"].indexOf(s)||(s="q"+s)),Hn("content-vote-"+t.id),Mn({url:Pn(),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?An.emit("$server:error",{data:e.message}):401==e.status&&hn()&&(top.location.href="/join/light?redirect_to="+encodeURIComponent(document.location.href))}))},Ye.prototype.IsSpecial=function(e){return~["c","b","e"].indexOf((e+"").charAt(0))},Ye.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},Ye.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]="")},Ye.prototype.ReplyInput=function(e,t){this.replyboxinput[t]=e,this.replyerror[t]&&(this.replyerror[t].show=!1)},Ye.prototype.SubmitReply=function(i){var s=this,e=this.replyboxinput[i.id];!(e=In(e))||e.length<30?this._throwReplyError(i.id,"Content must have 30 characters."):Mn({url:Pn(),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)})},Ye.prototype.QSearch=function(e,t){var n=this;this.resultserror=!1;e=t?null:In(null!=e?e:this._qType.getValue())||"";this.current_page=1,Hn("qna-search-query"),Hn("qna-load-initial"),e?(e={id:"qna-search-query",url:Pn(),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,Mn(e).then(function(e){if(!e||!Sn(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)},Ye.prototype.QReset=function(){this.QSearch(null,!0)},Ye.prototype.QClear=function(){this._qType.next("")},Ye.prototype._throwGenericError=function(e,t){},Ye.prototype._stripSlashes=function(e){return 0==e.indexOf("/")&&(e=e.substring(1)),e.lastIndexOf("/")==e.length-1&&(e=e.substring(0,e.length)),e},Ye.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);Mn({url:Pn(),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||!Sn(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)})},Ye.prototype._LoadQues=function(t){var n=this;t&&(this.current_page=1),Hn("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),Mn({url:Pn(),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||!Sn(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)})},Ye.prototype.ViewMoreQuestions=function(){this.current_page++,this._LoadQues()},Ye.prototype.ChangeSort=function(e){this.sortv=this.sortList[e],this.sort_list_opened=!1,this.sortingparam=1===e?"mv":"mp",this._LoadQues(!0)},Ye.prototype.AskQuestion=function(){this._quesOverlay.Open(G,{input:this.ques_ask||this._qType.getValue()||"",referer:vn()+this.ques_referer,addparams:this.addAskParams,categories:this.ask_quest_categories})},Ye.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)},Ye.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),Hn("qna-load-initial"),Mn({url:Pn(),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&&!Sn(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})},Ye.prototype.RetryLoadData=function(){this._StartupLoad()},Ye.prototype.ngOnInit=function(){var n=this;this.sortv=this.sortList[0],this.sortingparam="mp",dn()||!Tn.get("mw_signon")&&!Un.group("mw_cookies")?this.user_avatar=null:(this.signon=Tn.get("mw_signon")?JSON.parse(Tn.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&&!dn()&&this._route.queryParams.pipe(Yt(1)).subscribe(function(e){e=e[n.page_query],e=e?zn(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&&Sn(this.ques_data.questions)?this._parseInitialData(this.ques_data):dn()||(this.load_startup=!0,setTimeout(function(){n._StartupLoad()},this.start_delay||1));var t=this._qType.pipe(Zt(200)).subscribe(function(e){var t=In((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()})},Ye.prototype.ngOnDestroy=function(){this._qType.complete()},Ye.ɵfac=function(e){return new(e||Ye)(at(pt),at(Mt),at(on),at(i),at(gn))},Ye.ɵcmp=ft({type:Ye,selectors:[["section","id","qna-box"]],viewQuery:function(e,t){1&e&&(Gt(te,!0),Gt(ne,!0),Gt(ie,!0)),2&e&&(mt(e=vt())&&(t.txtElement=e.first),mt(e=vt())&&(t._quesOverlay=e.first),mt(e=vt())&&(t._answersList=e))},hostVars:4,hostBindings:function(e,t){2&e&&$t("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"],["zing-touch","",1,"qna-q-ans-content","with-links","text-select",3,"zing-url-container","expand-content","breakwords","collapse-button","ng-truncate","ng-attribute","ng-attribute-when"],["class","qna-q-thumbs",4,"ngIf"],[1,"full-name","semi-bold-font",3,"ng-attribute","ng-attribute-when"],[3,"ng-attribute","ng-attribute-when"],["class","author-cap",4,"ngIf"],[1,"author-cap"],["zing-touch","",1,"up","vote","bf-icon-upvote","progress-indicator",3,"zing-no-touch","onTap"],[1,"qna-qa-show-more","progress-indicator-container"],[1,"progress-indicator"],["zing-touch","",1,"qna-qa-sm-bt","link","inherit",3,"onTap"],[1,"qna-q-get-more"],["class","btn blue-brds tall with-loader no-disabled bold-font","aria-label","More Questions","zing-touch","",3,"loadactive","onTap",4,"ngIf"],["zing-touch","",1,"btn","tall","qna-qgm-btn-last","blue-brds","bold-font",3,"onTap"],[1,"qna-qgm-mhide"],["aria-label","More Questions","zing-touch","",1,"btn","blue-brds","tall","with-loader","no-disabled","bold-font",3,"onTap"],[1,"bt-text"],[1,"qna-startup-load","progress-indicator-container","ng-enter-element"],[1,"qna-startup-fail","ng-enter-element"],[1,"qna-prg","center","semi-bold-font","qna-prg-smaller"],[1,"center"],["zing-touch","",1,"btn","blue-brds","fixed-w-f","with-loader",3,"onTap"]],template:function(e,t){1&e&&(Ct(0,"h2",0),Pt(1),yt(2,se,2,1,"span",1),Et(),yt(3,oe,6,2,"p",2),yt(4,re,1,4,"p",3),yt(5,pe,12,11,"div",4),Ct(6,"div",5),Ct(7,"span",6),Ht("onTap",function(){return t.ControlSortList()})("onTapOutside",function(){return t.ControlSortList(!1)}),Ct(8,"span"),Pt(9),Et(),bt(10,"i",7),Et(),Ct(11,"div",8),Ht("onTap",function(e){return e.stopPropagation()}),yt(12,he,2,3,"span",9),Et(),Et(),yt(13,fe,9,5,"div",10),yt(14,Be,3,8,"div",11),yt(15,De,7,1,"div",12),bt(16,"modal-dialog",null,13),yt(18,We,3,0,"div",14),yt(19,Ue,7,0,"div",15)),2&e&&(xt("ngClass",en(16,Xe,0==t.layout_type,1==t.layout_type,2==t.layout_type)),wt(1),tn("",t.section_title," "),wt(1),xt("ngIf",1==t.layout_type&&t.schq_count),wt(1),xt("ngIf",t.product_name),wt(1),xt("ngIf",t.intro_content),wt(1),xt("ngIf",t.has_enough_ques&&!t.load_startup&&!t.load_startup_fail),wt(1),xt("ng-hidden",!t.has_enough_ques||0==t.schquestions.length||t.show_search_state||t.show_search_state_empty||t.resultserror),wt(3),Vt(t.sortv),wt(2),xt("ng-hidden",!t.sort_list_opened),wt(1),xt("ngForOf",t.sortList)("ngForTrackBy",t.trackByFn),wt(1),xt("ngIf",!t.has_enough_ques&&!t.load_startup&&!t.load_startup_fail),wt(1),xt("ngIf",t.search_loading||t.questions_more||t.schquestions.length),wt(1),xt("ngIf",t.has_view_more),wt(3),xt("ngIf",t.load_startup&&!t.load_startup_fail),wt(1),xt("ngIf",t.load_startup_fail))},directives:[Ot,qt,wn,qn,nn,Nn,E,Fn,a,y,$n,Vn,Qn,Xn,_,xn,Bn],encapsulation:2}),Ye));function Ye(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 et(""),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 gt,this.replyboxinput={},this.replyboxinputsubmited={},this.replyinprogress={},this.replyerror={},this.replyboxshow={},this.sortList=["Most Popular","Most Upvotes"],this.sortv="",this.sort_list_opened=!1,this.user_avatar_fallback="https://d2e70e9yced57e.cloudfront.net/wallethub/images/profile/avatars/silhouette-50_V1d9a2cc_.png",this.ques_ask="",this._open_popup=!1,this.page_query=null,this.answers_link=vn()+"/answers/"}st(y,[{type:It,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:pt},{type:Mt},{type:on},{type:i},{type:gn}]},{layout_type:[{type:lt,args:["type"]}],product_name:[{type:lt,args:["product-name"]}],ques_data:[{type:lt,args:["product-questions"]}],ques_referer:[{type:lt,args:["product-referer"]}],intro_content:[{type:lt,args:["use-intro"]}],quest_category:[{type:lt,args:["product-category"]}],start_delay:[{type:lt,args:["startup-delay"]}],section_title:[{type:lt,args:["section-title"]}],ask_quest_categories:[{type:lt,args:["question-categories"]}],toggleSchema:[{type:lt,args:["toggle-schema"]}],total_ques:[{type:ut,args:["total-questions"]}],txtElement:[{type:kt,args:["txtElement",{static:!1}]}],_quesOverlay:[{type:kt,args:["quesOverlay",{static:!1}]}],_answersList:[{type:sn,args:["ques_answer"]}],open_popup:[{type:lt,args:["show-ask-popup"]}],focus_on_input:[{type:lt,args:["scroll-to-ask"]}],addAskParams:[{type:lt,args:["question-ask-add-params"]}],page_query:[{type:lt,args:["pagination-query"]}]});_=Je("a",(Ke.ɵmod=tt({type:Ke}),Ke.ɵinj=nt({factory:function(e){return new(e||Ke)},imports:[[it,fn,kn,x,Gn,e,Dn,Wn,l,v,Yn,W,k]]}),Ke));function Ke(){}st(_,[{type:ot,args:[{imports:[it,fn,kn,x,Gn,e,Dn,Wn,l,v,Yn,W,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/ci-shortcode2.js",["bundled/edu-vendor.js","bundled/edu-post-ivy-boot2.js","bundled/site-footer-web2.js"],function(G,D){"use strict";var W,U,X,Y,K,J,Z,ee,te,ne,ie,se,oe,re,ae,ce,le,ue,de,pe,he,ge,fe,_e,me,ve,be,ye,we,xe,qe,ke,Te,Ie,Le,Ce,Ee,ze,Oe,Se,Ae,Re,je,He,Me,Pe,Ne,Fe,$e,Ve,Qe,Be,Ge,De,We,Ue,Xe,Ye,Ke,Je,Ze,et,tt,nt,it,st,ot,rt,at,ct,lt;return{setters:[function(e){W=e.f,U=e.y,X=e.z,Y=e.A,K=e.n,J=e.r,Z=e.g,ee=e.p,te=e.v,ne=e.h,ie=e.G,se=e.i,oe=e.H,re=e.j,ae=e.J,ce=e.s,le=e.I,ue=e.O,de=e.F,pe=e.E,he=e.l,ge=e.K,fe=e.o,_e=e.B,me=e.L,ve=e.M,be=e.e,ye=e.P,we=e.Q,xe=e.w,qe=e.b,ke=e.c,Te=e.C,e.d,Ie=e.N,Le=e.u,Ce=e.q,Ee=e.t,ze=e.R,Oe=e.ɵ,Se=e.a,Ae=e.k,Re=e.D,je=e.S,He=e.T,Me=e.U,Pe=e.W,Ne=e.X,Fe=e.Y,$e=e.Z,Ve=e._,Qe=e.$,Be=e.a0,Ge=e.a1,De=e.a2,We=e.m,Ue=e.a3},function(e){Xe=e.T,Ye=e.e,Ke=e.f,Je=e.D,Ze=e.$,et=e.a,tt=e.C,nt=e.i,it=e.S,st=e.u,ot=e.r,rt=e.g,at=e.h},function(e){ct=e.F,lt=e.a}],execute:function(){var i=["dropdownList"];function n(e,t){1&e&&(K(0,"span",7),J("onTap",function(){return!0}),ee()),2&e&&(e=Le(),ne("cleanHTML",e.placeholder))}function s(e,t){1&e&&(K(0,"span",8),J("onTap",function(){return!0}),ee()),2&e&&(e=Le(),ne("cleanHTML",e.value))}function o(e,n){var i,t,s;1&e&&(i=Ce(),K(0,"li",9),J("onTap",function(e){Ee(i);var t=n.index;return Le().selectItem(e,t)}),ee()),2&e&&(t=n.$implicit,s=n.index,e=Le(),xe("active",e.activeidx==s),ne("cleanHTML",t))}function r(e,t,n,i,s){return{"ng-wh-error":e,"drp-b-darker":t,second:n,selected:i,opened:s}}function a(e,t){1&e&&(K(0,"span",12),J("onTap",function(){return!0}),ee()),2&e&&(e=Le(),ne("cleanHTML",e.placeholder))}function c(e,t){1&e&&(K(0,"span",13),J("onTap",function(){return!0}),ee()),2&e&&(e=Le(),ne("cleanHTML",e.value))}function l(e,t){var n;1&e&&(n=Ce(),K(0,"span",7),J("onTap",function(e){return Ee(n),Le().controlListOveride(e)})("onTapOutside",function(e){return Ee(n),Le().controlListOveride(e,!1)}),ee()),2&e&&(e=Le(),ne("innerHTML",e.placeholder,ze)("zing-no-touch",!0))}function u(e,t){var n;1&e&&(n=Ce(),K(0,"span",7),J("onTap",function(e){return Ee(n),Le().controlListOveride(e)})("onTapOutside",function(e){return Ee(n),Le().controlListOveride(e,!1)}),ee()),2&e&&(e=Le(),ne("innerHTML",e.value,ze)("zing-no-touch",!0))}function d(e,t){var n;1&e&&(n=Ce(),K(0,"span",8),J("onTap",function(e){return Ee(n),Le().removeSelected(e)}),ee())}function p(e,t,n,i,s){return{"ng-wh-error":e,"drp-b-darker":t,second:n,selected:i,show:s}}var e=["*"],t=G("n",(Object.defineProperty(h.prototype,"value",{get:function(){return(this._value||"").toString()},set:function(e){this.noselection=!e,this._value=e},enumerable:!1,configurable:!0}),h.prototype.controlList=function(e,t){this.opened=void 0!==t?t:!this.opened,this.onTapped.emit(this),this.fixOverflow()},h.prototype.close=function(){this.opened=!1},h.prototype.open=function(){this.opened=!0},h.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})},h.prototype.trackByFn=function(e){return e},h.prototype.ngOnInit=function(){this.value&&-1<this.items.indexOf(this.value)&&(this.activeidx=this.items.indexOf(this.value))},h.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}})},h.ɵfac=function(e){return new(e||h)},h.ɵcmp=W({type:h,selectors:[["ng-dropdown"]],viewQuery:function(e,t){var n;1&e&&U(i,!0,pe),2&e&&X(n=Y())&&(t.dropdownList=n.first)},inputs:{placeholder:"placeholder",items:"items",second:"second",darker:["dark-borders","darker"],invalid:"invalid",value:"value"},outputs:{valueChange:"valueChange",selected:"selected",onTapped:"onTapped"},decls:7,vars:12,consts:[["zing-touch","",1,"dropdown",3,"ngClass","onTap","onTapOutside"],["zing-touch","","class","dropdown-placeholder",3,"cleanHTML","onTap",4,"ngIf"],["zing-touch","","class","dropdown-selected",3,"cleanHTML","onTap",4,"ngIf"],[1,"dropdown-list","ng-enter-element",3,"ng-hidden"],["dropdownList",""],["class","dropdown-item","zing-touch","",3,"active","cleanHTML","onTap",4,"ngFor","ngForOf","ngForTrackBy"],[1,"dropdown-arrow","bf-icon-down-open"],["zing-touch","",1,"dropdown-placeholder",3,"cleanHTML","onTap"],["zing-touch","",1,"dropdown-selected",3,"cleanHTML","onTap"],["zing-touch","",1,"dropdown-item",3,"cleanHTML","onTap"]],template:function(e,t){1&e&&(K(0,"div",0),J("onTap",function(e){return t.controlList(e)})("onTapOutside",function(e){return t.controlList(e,!1)}),Z(1,n,1,1,"span",1),Z(2,s,1,1,"span",2),K(3,"ul",3,4),Z(5,o,1,3,"li",5),ee(),te(6,"i",6),ee()),2&e&&(ne("ngClass",ie(6,r,t.invalid,t.darker,t.second,!t.noselection,t.opened)),se(1),ne("ngIf",t.placeholder&&t.noselection),se(1),ne("ngIf",!t.noselection),se(1),ne("ng-hidden",!t.opened),se(2),ne("ngForOf",t.items)("ngForTrackBy",t.trackByFn))},directives:[Xe,oe,re,Ye,ae,Ke],encapsulation:2}),h));function h(){this.placeholder="Select...",this.items=[],this.darker=!1,this.invalid=!1,this.valueChange=new be,this.selected=new be,this.onTapped=new be,this.noselection=!0,this.opened=!1,this.activeidx=null}ce(t,[{type:he,args:[{selector:"ng-dropdown",template:'<div class="dropdown" [ngClass]="{ \'ng-wh-error\' : invalid, \'drp-b-darker\'  : darker, \'second\' : second, \'selected\' : !noselection, \'opened\' : opened }" zing-touch (onTap)="controlList($event)" (onTapOutside)="controlList($event,false)">\n                    <span zing-touch (onTap)="true" class="dropdown-placeholder" *ngIf="(placeholder && noselection)" [cleanHTML]="placeholder"></span>\n                    <span zing-touch (onTap)="true" class="dropdown-selected" *ngIf="!noselection" [cleanHTML]="value"></span>\n                    <ul class="dropdown-list ng-enter-element" [ng-hidden]="!opened" #dropdownList>\n                        <li *ngFor="let item of items; index as i; trackBy: trackByFn" class="dropdown-item" [class.active]="activeidx == i" zing-touch (onTap)="selectItem($event,i)" [cleanHTML]="item"></li>\n                    </ul>\n                    <i class="dropdown-arrow bf-icon-down-open"></i>\n                </div>'}]}],null,{placeholder:[{type:le}],items:[{type:le}],second:[{type:le}],darker:[{type:le,args:["dark-borders"]}],invalid:[{type:le,args:["invalid"]}],valueChange:[{type:ue}],selected:[{type:ue}],onTapped:[{type:ue}],dropdownList:[{type:de,args:["dropdownList",{read:pe,static:!1}]}],value:[{type:le}]});var g,f=(g=t,__extends(_,g),_.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))},_.ɵfac=function(e){return m(e||_)},_.ɵcmp=W({type:_,selectors:[["ng-dropdown-bool"]],inputs:{text:"text",name:"name",label:"label"},features:[ge],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&&(K(0,"div",0),J("onTap",function(e){return t.controlList(e)})("onTapOutside",function(e){return t.controlList(e,!1)}),Z(1,a,1,1,"span",1),Z(2,c,1,1,"span",2),K(3,"div",3,4),K(5,"p",5),fe(6),ee(),K(7,"div",6),K(8,"label",7),K(9,"input",8),J("change",function(){return t.Check(!0)}),ee(),te(10,"i",9),K(11,"span",10),fe(12,"Yes"),ee(),ee(),K(13,"label",7),K(14,"input",8),J("change",function(){return t.Check(!1)}),ee(),te(15,"i",9),K(16,"span",10),fe(17,"No"),ee(),ee(),ee(),ee(),te(18,"i",11),ee()),2&e&&(ne("ngClass",ie(13,r,t.invalid,t.darker,t.second,!t.noselection,t.opened)),se(1),ne("ngIf",t.placeholder&&t.noselection),se(1),ne("ngIf",!t.noselection),se(1),ne("ng-hidden",!t.opened),se(3),_e(" ",t.text," "),se(2),ne("zingToggle",!0),me("aria-label",t.label),se(1),ne("checked",!0===t.booleanValue)("name",t.name),se(4),ne("zingToggle",!0),me("aria-label",t.label),se(1),ne("checked",!1===t.booleanValue)("name",t.name))},directives:[Xe,oe,re,Ye,Ke],encapsulation:2}),_);function _(){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 m=ve(f);ce(f,[{type:he,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:le}],name:[{type:le}],label:[{type:le}]});var v,b=(v=t,__extends(y,v),y.prototype.controlListOveride=function(e,t){this.controlList(e,t),this.fixOverflowRight()},y.prototype.removeSelected=function(e){this.value=null,this.filterCleared.emit(!0),this.controlList(e,!1)},y.prototype.fixOverflowRight=function(){var n=this.dropdownList&&this.dropdownList.nativeElement,i=n&&n.parentElement;n.style.left="0px",setTimeout(function(){try{var e=n.getBoundingClientRect(),t=i.getBoundingClientRect();t.x+t.width<=e.width?n.classList.add("sticky-left"):n.classList.remove("sticky-left"),e.x+e.width>=window.innerWidth?(e=window.innerWidth-(e.x+e.width+20),n.style.left=e+"px"):n.style.left="0px"}catch(e){throw e}})},y.ɵfac=function(e){return w(e||y)},y.ɵcmp=W({type:y,selectors:[["ng-dropdown-filter"]],inputs:{wider:"wider"},outputs:{filterCleared:"filterCleared"},features:[ge],ngContentSelectors:e,decls:9,vars:14,consts:[[1,"filter-box",3,"ngClass"],["zing-touch","",1,"filter-tag",3,"onTap"],["class","filter-label","zing-touch","","role","button",3,"innerHTML","zing-no-touch","onTap","onTapOutside",4,"ngIf"],["zing-touch","","role","button",1,"filter-drp-arrow",3,"zing-no-touch","onTap","onTapOutside"],["class","filter-drp-close bf-icon-cross","zing-touch","",3,"onTap",4,"ngIf"],["zing-touch","",1,"filter-content","ng-enter-element",3,"ng-hidden","onTap","onTapOutside"],["dropdownList",""],["zing-touch","","role","button",1,"filter-label",3,"innerHTML","zing-no-touch","onTap","onTapOutside"],["zing-touch","",1,"filter-drp-close","bf-icon-cross",3,"onTap"]],template:function(e,t){1&e&&(ye(),K(0,"div",0),K(1,"div",1),J("onTap",function(){return!0}),Z(2,l,1,2,"span",2),K(3,"i",3),J("onTap",function(e){return t.controlListOveride(e)})("onTapOutside",function(e){return t.controlListOveride(e,!1)}),ee(),Z(4,u,1,2,"span",2),Z(5,d,1,0,"span",4),ee(),K(6,"div",5,6),J("onTap",function(e){return t.controlListOveride(e,!0)})("onTapOutside",function(e){return t.controlListOveride(e,!1)}),we(8),ee(),ee()),2&e&&(ne("ngClass",ie(8,p,t.invalid,t.darker,t.second,!t.noselection,t.opened)),se(2),ne("ngIf",t.placeholder&&t.noselection),se(1),ne("zing-no-touch",!0),se(1),ne("ngIf",!t.noselection),se(1),ne("ngIf",!t.noselection),se(1),xe("wider",t.wider),ne("ng-hidden",!t.opened))},directives:[oe,Xe,re,Ye],encapsulation:2}),y);function y(){var e=null!==v&&v.apply(this,arguments)||this;return e.wider=!1,e.filterCleared=new be,e}var w=ve(b);ce(b,[{type:he,args:[{selector:"ng-dropdown-filter",template:'<div class="filter-box" [ngClass]="{ \'ng-wh-error\' : invalid, \'drp-b-darker\'  : darker, \'second\' : second, \'selected\' : !noselection, \'show\' : opened }">\n                    <div class="filter-tag" zing-touch (onTap)="true">\n                        <span class="filter-label" *ngIf="(placeholder && noselection)" [innerHTML]="placeholder" zing-touch [zing-no-touch]="true" (onTap)="controlListOveride($event)" (onTapOutside)="controlListOveride($event,false)" role="button"></span>\n                        <i class="filter-drp-arrow" zing-touch [zing-no-touch]="true" (onTap)="controlListOveride($event)" (onTapOutside)="controlListOveride($event,false)" role="button"></i>\n                        <span class="filter-label" *ngIf="!noselection" [innerHTML]="value" zing-touch [zing-no-touch]="true" (onTap)="controlListOveride($event)" (onTapOutside)="controlListOveride($event,false)" role="button"></span>\n                        <span class="filter-drp-close bf-icon-cross" zing-touch *ngIf="!noselection" (onTap)="removeSelected($event)"></span>\n                    </div>\n                    <div class="filter-content ng-enter-element" [class.wider]="wider" [ng-hidden]="!opened" #dropdownList zing-touch (onTap)="controlListOveride($event,true)" (onTapOutside)="controlListOveride($event,false)">\n                        <ng-content></ng-content>\n                    </div>\n                </div>'}]}],null,{wider:[{type:le}],filterCleared:[{type:ue}]});var x,q=G("a",(k.ɵmod=qe({type:k}),k.ɵinj=ke({factory:function(e){return new(e||k)},imports:[[Te,Je]]}),k));function k(){}ce(q,[{type:Ie,args:[{declarations:[t,f,b],exports:[t,f,b],imports:[Te,Je]}]}],null,null);var T=(Object.defineProperty(I.prototype,"insuredvalue",{get:function(){return this.insuredparam.toString()},enumerable:!1,configurable:!0}),I.prototype._GetToken=function(){var t=this;return Ze({url:et(),method:"GET",data:{action:"Pit.RefreshNonce"},expectedType:"text"}).then(function(e){return t.xsrf_token=e,x=e,t._cd.detectChanges(),null},function(e){return console.warn("could not get token"),e})},I.prototype.SetAdView=function(e){this.ad_click_id=e.click,this.ad_view_id=e.view,this._cd.detectChanges()},I.prototype.ChangeInsurance=function(e){this.insured=e,this.insuredparam="Yes"==e,this._cd.detectChanges()},I.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()},I.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()},I.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)},I.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||(tt.set("wh_zipcode",this.zipcode,3650),tt.set("wh_age",this.ageparam,3650),tt.set("wh_currently_insured",this.insuredparam?1:0,3650),Ze({url:et(),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()}))}},I.prototype.ngOnInit=function(){var t=this;nt()||(x?this.xsrf_token=x:this._GetToken(),this.is_tabletmode=768<=window.innerWidth&&window.innerWidth<=1003,tt.get("wh_zipcode")&&""!=tt.get("wh_zipcode")?(this.zipcode=tt.get("wh_zipcode"),this._cd.detectChanges()):Ze({url:et(),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()}),tt.get("wh_age")&&""!=tt.get("wh_age")&&(this.ageparam=tt.get("wh_age"),this.age=this.ages[this._ages_param.indexOf(this.ageparam)],this._cd.detectChanges()),tt.get("wh_currently_insured")&&""!=tt.get("wh_currently_insured")&&(this.insured="1"==tt.get("wh_currently_insured")?"Yes":"No",this.insuredparam="1"==tt.get("wh_currently_insured"),this._cd.detectChanges()))},I.prototype.ngOnDestroy=function(){clearTimeout(this._ajax_error_timer),x=null},I.ɵfac=function(e){return new(e||I)(Oe(Ae))},I.ɵdir=Se({type:I,inputs:{typeList:["type-list","typeList"],age:"age",insured:"insured",zipcode:"zipcode",layoutType:["layout-type","layoutType"]}}),I);function I(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}ce(T,[{type:Re}],function(){return[{type:Ae}]},{typeList:[{type:le,args:["type-list"]}],age:[{type:le,args:["age"]}],insured:[{type:le,args:["insured"]}],zipcode:[{type:le,args:["zipcode"]}],layoutType:[{type:le,args:["layout-type"]}]});var L=["input"];function C(e,t){1&e&&te(0,"div",5),2&e&&(e=Le(),ne("innerHTML",e.label,ze))}var E=(Object.defineProperty(z.prototype,"required",{get:function(){return this._required},set:function(e){this._required=!!e},enumerable:!1,configurable:!0}),z.prototype.Check=function(){this.checked=!this.checked,this.checkedChange.emit(this.checked)},z.prototype.ngAfterViewInit=function(){nt()&&this.checked&&this.renderer.setAttribute(this.checkbox.nativeElement,"checked","checked")},z.ɵfac=function(e){return new(e||z)(Oe(pe),Oe(je))},z.ɵcmp=W({type:z,selectors:[["ng-checkbox"]],viewQuery:function(e,t){var n;1&e&&U(L,!0,pe),2&e&&X(n=Y())&&(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&&(K(0,"label",0),K(1,"input",1,2),J("change",function(){return t.Check()}),ee(),te(3,"i",3),Z(4,C,1,1,"div",4),ee()),2&e&&(ne("zingToggle",!0),me("aria-label",t.label),se(1),ne("checked",t.checked)("required",t.required)("disabled",t.disabled)("name",t.name),se(3),ne("ngIf",t.label))},directives:[Xe,re],encapsulation:2}),z);function z(e,t){this.el=e,this.renderer=t,this.name=null,this.label=null,this.checkedChange=new be,this.disabled=!1}ce(E,[{type:he,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:pe},{type:je}]},{checkbox:[{type:de,args:["input",{read:pe,static:!1}]}],required:[{type:le}],name:[{type:le}],label:[{type:le}],checkedChange:[{type:ue}],checked:[{type:le}],disabled:[{type:le}]});var O=(S.ɵmod=qe({type:S}),S.ɵinj=ke({factory:function(e){return new(e||S)},imports:[[Te,Je]]}),S);function S(){}ce(O,[{type:Ie,args:[{declarations:[E],exports:[E],imports:[Te,Je]}]}],null,null);var A=["AdPixelViewTrigger"],R=["AdPixelViewReferrer"],j=["AdPixelViewClick"],H=(M.prototype.AttachEvents=function(){var t=this;this.onScrollEnd=new He(null),this.onResize=new Me,nt()||(this._subs=this._dservice.onScroll.subscribe(function(e){t._scrolling&&clearTimeout(t._scrolltimer),t._scrolling=!0,t._scrolltimer=setTimeout(function(){t._scrolling=!1,ot(function(){t.onScrollEnd.next(e)})},500)}),this._resize=new Me,this._obs.push(Be(window,"resize")),this._resizesubs=this._obs[this._obs.length-1].pipe(Ge(this._resize)).subscribe(function(){ot(function(){t.onResize.next()})}))},M.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},M.ɵprov=Ne({token:M,factory:M.ɵfac=function(e){return new(e||M)(Pe(it))}}),M);function M(e){this._dservice=e,this._scrolling=!1,this._obs=[]}ce(H,[{type:Fe}],function(){return[{type:it}]},null);Object.defineProperty(P.prototype,"recheck",{get:function(){return this._recheck},set:function(e){e&&this._ResetnCheck(),this._recheck=e},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"_adlocation",{get:function(){return this._loc.path().replace("/ng-home/","/").split("?")[0]},enumerable:!1,configurable:!0}),P.prototype.ngOnInit=function(){this.viewId=st(),this.clickId=st(),nt()||(this.viewport=this._getViewportSize()),this.viewSet.emit(this.viewId)},P.prototype.ngAfterViewInit=function(){var t,e,n,i=this;this._PixelReferrer(),this._PixelAddClickId(),nt()||(this.clicksList&&this.clicksList.forEach(function(t){var e=Be(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=Be(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")})))},P.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))},P.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)))},P.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)},P.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}},P.prototype._ResetnCheck=function(){nt()||(this.is_viewed=!1,this.viewId=st(),this.clickId=st(),this._PixelReferrer(),this._PixelAddClickId(),this._CheckElements("all"))},P.prototype._PixelTrigger=function(){this.is_viewed||(this.is_viewed=!0,this.adViewed.emit({view:this.viewId,click:this.clickId}),this._httpCall())},P.prototype._PixelClicked=function(e){var t=this;this.is_viewed||this._PixelTrigger(),ot(function(){t._PixelAddClickId()})},P.prototype._PixelAddClickId=function(){var i=this;this.clicksList&&this.clicksList.forEach(function(e){var t,n=i.clickUrl;nt()||(t=i.clickId,i.uniqueClickId&&(i.clickId=st()),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)})},P.prototype._PixelReferrer=function(){var i=this;this.referrersList&&this.referrersList.forEach(function(e){var t=i.referrerUrl,n=t;nt()||(n+=(-1<t.indexOf("?")?"&":"?")+"viewReferrer="+i.viewId),i._renderer.setAttribute(e.nativeElement,"href",n)})},P.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=rt()+"/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),Ze({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.")},P.prototype.ngOnDestroy=function(){this.sbs.unsubscribe(),this._intersectionObserver&&(this._intersectionObserver.disconnect(),this._intersectionObserver=null),this.obs=[]},P.ɵfac=function(e){return new(e||P)(Oe(pe),Oe(it),Oe(je),Oe(H),Oe(Qe))},P.ɵdir=Se({type:P,selectors:[["","ad-pixel",""]],contentQueries:function(e,t,n){1&e&&($e(n,A,!0,pe),$e(n,R,!0,pe),$e(n,j,!0,pe)),2&e&&(X(e=Y())&&(t.triggersList=e),X(e=Y())&&(t.referrersList=e),X(e=Y())&&(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"}}),e=P;function P(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 De,this.obs=[],this.is_intersecting=!1,this.is_main_intersct=!1,this.adViewed=new be,this.viewSet=new be,this._CheckForIntersection=function(e){if(!o.is_viewed)for(var t=0,n=e.length;t<n;t++){var i=e[t];if(at(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=!(nt()||!window.IntersectionObserver),this.debug&&console.log("use_IntersectionObserver is : ",this.use_IntersectionObserver)}ce(e,[{type:Re,args:[{selector:"[ad-pixel]"}]}],function(){return[{type:pe},{type:it},{type:je},{type:H},{type:Qe}]},{addlQueries:[{type:le,args:["addl-queries"]}],triggerRatio:[{type:le,args:["trigger-ratio"]}],debug:[{type:le,args:["debug"]}],referrerUrl:[{type:le,args:["referrer-url"]}],clickUrl:[{type:le,args:["click-url"]}],section:[{type:le,args:["adview-section"]}],position:[{type:le,args:["adview-position"]}],totals:[{type:le,args:["adview-totals"]}],adId:[{type:le,args:["ad-id"]}],ad_use_parent_el:[{type:le,args:["ad-use-parent"]}],uniqueClickId:[{type:le,args:["unique-click-id"]}],recheck:[{type:le,args:["ad-pixel-recheck"]}],triggersList:[{type:Ve,args:["AdPixelViewTrigger",{read:pe,descendants:!0}]}],referrersList:[{type:Ve,args:["AdPixelViewReferrer",{read:pe,descendants:!0}]}],clicksList:[{type:Ve,args:["AdPixelViewClick",{read:pe,descendants:!0}]}],adViewed:[{type:ue}],viewSet:[{type:ue}]});N.prototype.ngOnDestroy=function(){this._srv.DetachEvents()},N.ɵmod=qe({type:N}),N.ɵinj=ke({factory:function(e){return new(e||N)(Pe(H))},providers:[H],imports:[[Te,Je]]}),f=N;function N(e){this._srv=e,this._srv.AttachEvents()}ce(f,[{type:Ie,args:[{declarations:[e],exports:[e],imports:[Te,Je],providers:[H]}]}],function(){return[{type:H}]},null);b=["class","car-insurance-widget"];function F(e,t){1&e&&(K(0,"div",14),fe(1),ee()),2&e&&(e=Le(),se(1),Ue(e.error_msg))}function $(e,t){1&e&&(K(0,"div",15),fe(1),ee()),2&e&&(e=Le(),se(1),Ue(e.error_msg))}D.import("css:/ci-shortcode.css").then(function(){},function(){});var V,t=G("C",(V=T,__extends(Q,V),Q.prototype.ChangeInsurance=function(e){this.insuredparam=e,this._cd.detectChanges()},Q.prototype._GetSesId=function(){var t=this;return Ze({url:rt()+"/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)})},Q.prototype.ngOnInit=function(){var e;V.prototype.ngOnInit.call(this),nt()||(e=tt.get("__whid"),this.adview_extra={adview_offer_type:"Car_Insurance_Widget",session_id:e},this._GetSesId())},Q.ɵfac=function(e){return new(e||Q)(Oe(Ae))},Q.ɵcmp=W({type:Q,selectors:[["div",8,"car-insurance-widget"]],features:[ge],attrs:b,decls:16,vars:15,consts:[["form-submit","","ad-pixel","",1,"form-ci-widget",3,"unique-click-id","ad-id","addl-queries","onSubmit","adViewed"],[1,"ciw-head"],[1,"ciw-row"],[1,"ciw-box","first"],["type","tel","placeholder","Zip Code","name","zip","maxlength","5",1,"single","textfield","ciw-zip",3,"value","input"],[1,"ciw-box","second"],["placeholder","Age",3,"items","second","invalid","value","valueChange"],["class","ciw-error-age semi-bold-font mob ng-enter-element",4,"ngIf"],[1,"ciw-box","ciw-block","ci-checkbox"],["label","Currently Insured?","name","currently_insured",3,"checked","checkedChange"],[1,"ciw-box","ciw-block","with-loader"],["type","submit",1,"btn","blue","ciw-btn"],[1,"btn-loader"],["class","ciw-error-age semi-bold-font desk ng-enter-element",4,"ngIf"],[1,"ciw-error-age","semi-bold-font","mob","ng-enter-element"],[1,"ciw-error-age","semi-bold-font","desk","ng-enter-element"]],template:function(e,t){1&e&&(K(0,"form",0),J("onSubmit",function(){return t.GetQuote()})("adViewed",function(e){return t.SetAdView(e)}),K(1,"h3",1),fe(2,"Find Cheap Car Insurance"),ee(),K(3,"div",2),K(4,"div",3),K(5,"input",4),J("input",function(e){return t.ChangeZip(e)}),ee(),ee(),K(6,"div",5),K(7,"ng-dropdown",6),J("valueChange",function(e){return t.SetAge(e)}),ee(),ee(),Z(8,F,2,1,"div",7),K(9,"div",8),K(10,"ng-checkbox",9),J("checkedChange",function(e){return t.ChangeInsurance(e)}),ee(),ee(),K(11,"div",10),K(12,"button",11),fe(13,"Find Insurers"),te(14,"i",12),ee(),ee(),ee(),Z(15,$,2,1,"div",13),ee()),2&e&&(ne("unique-click-id",!0)("ad-id",5e6)("addl-queries",t.adview_extra),se(5),xe("ng-wh-error",t.invalid.zip),ne("value",t.zipcode),se(2),ne("items",t.ages)("second",!0)("invalid",t.invalid.age)("value",t.age),se(1),ne("ngIf",t.show_error),se(2),ne("checked",t.insuredparam),se(1),xe("loadactive",t.loading),se(4),ne("ngIf",t.show_error))},directives:[ct,e,t,re,E],encapsulation:2,changeDetection:0}),Q));function Q(e){return V.call(this,e)||this}ce(t,[{type:he,args:[{selector:"div.car-insurance-widget",templateUrl:"/views/components/shortcodes/ci-shortcode.html",changeDetection:We.OnPush}]}],function(){return[{type:Ae}]},null);E=G("N",(B.ɵmod=qe({type:B}),B.ɵinj=ke({factory:function(e){return new(e||B)},imports:[[Te,Je,q,O,lt,f]]}),B));function B(){}ce(E,[{type:Ie,args:[{declarations:[t],entryComponents:[t],exports:[t],imports:[Te,Je,q,O,lt,f]}]}],null,null)}}}),System.register("bundled/route-ui-module.js",["css:/base.css","css:/style-web.css","css:/header-web.css","tslib","bundled/edu-vendor.js","hammerjs","propagating-hammerjs","systemjs","bundled/edu-post-ivy-boot2.js","zenscroll","npm:dompurify/dist/purify.js","inline-views:/header-tpl","npm:body-scroll-lock/lib/bodyScrollLock.js","npm:tablesort/dist/tablesort.min.js","bundled/site-footer-web2.js","npm:navigo/lib/navigo.js","bundled/qna-comp2.js","autosize","bundled/ci-shortcode2.js"],function(n){"use strict";return{setters:[function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(e){var t={};t.ActivatedRoute=e.A,t.RouterModule=e.R,n(t)},function(){},function(){}],execute:function(){}}});