define(["exports","./edu-vendor","./edu-main","systemjs","npm:navigo/lib/navigo.js"],function(e,t,n,r,i){"use strict";function o(e,n){1&e&&(t.ɵɵelementStart(0,"p",5),t.ɵɵtext(1,"Enter your cell phone number and we’ll send you a link to install the WalletHub app."),t.ɵɵelementEnd())}function a(e,n){1&e&&(t.ɵɵelementStart(0,"p",6),t.ɵɵtext(1,"Failed. Please check your phone number."),t.ɵɵelementEnd())}function s(e,n){1&e&&(t.ɵɵelementStart(0,"p",7),t.ɵɵtext(1,"Awesome! You should be receiving a text with the download link shortly"),t.ɵɵelementEnd())}function l(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",8),t.ɵɵelementStart(1,"button",9),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext().closeDialog()}),t.ɵɵtext(2,"Close"),t.ɵɵelementEnd(),t.ɵɵelementEnd()}}function c(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"form",10),t.ɵɵlistener("onSubmit",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext().SendSms()}),t.ɵɵelementStart(1,"input",11),t.ɵɵlistener("input",function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext().phone=e.target.value}),t.ɵɵelementEnd(),t.ɵɵelementStart(2,"p",12),t.ɵɵtext(3,"Wallethub doesn’t charge for this service. Standard message rates apply."),t.ɵɵelementEnd(),t.ɵɵelement(4,"error-toast",13),t.ɵɵelementStart(5,"div",14),t.ɵɵelementStart(6,"button",15),t.ɵɵelement(7,"i",16),t.ɵɵelementStart(8,"span"),t.ɵɵtext(9,"Send Link to My Phone"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelement(10,"div",17),t.ɵɵelementStart(11,"button",18),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext().closeDialog()}),t.ɵɵtext(12,"Cancel"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext();t.ɵɵadvance(1),t.ɵɵproperty("value",i.phone),t.ɵɵadvance(3),t.ɵɵproperty("show",i.apifail)("timer",2200),t.ɵɵadvance(2),t.ɵɵclassProp("loadactive",i.sending)}}var d=function(){function e(e){this._cd=e,this.phone=null,this.sending=!1,this.sentfailed=!1,this.sentdone=!1,this.apifail=!1}return e.prototype.SendSms=function(){var e=this;this.sending||n.$http({before:function(){e.sending=!0},after:function(){e.sending=!1},url:n.ajaxUrl(),data:{action:"Sms.SendAndroidLink",type:this.data.android?"android":"apple",phone:this.phone},headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(function(t){t.error&&t.failed?e.sentfailed=!0:(e.sentfailed=!1,e.sentdone=!0),e._cd.detectChanges()},function(t){e.apifail=!0,setTimeout(function(){e.apifail=!1,e._cd.detectChanges()},100)})},e.prototype.closeMe=function(){this.sending||this.closeDialog()},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(t.ChangeDetectorRef))},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["app-store"]],decls:5,vars:5,consts:[["class","semi-bold-font",4,"ngIf"],["class","semib-bol-font ng-enter-element",4,"ngIf"],["class","semi-bold-font ng-enter-element",4,"ngIf"],["class","buttons-holder-final ng-enter-element",4,"ngIf"],["form-submit","",3,"onSubmit",4,"ngIf"],[1,"semi-bold-font"],[1,"semib-bol-font","ng-enter-element"],[1,"semi-bold-font","ng-enter-element"],[1,"buttons-holder-final","ng-enter-element"],["type","button","zing-touch","",1,"btn","fixed-w-c",3,"onTap"],["form-submit","",3,"onSubmit"],["type","tel","autocomplete","off","placeholder","cell phone number",1,"textfield","full",3,"value","input"],[1,"app-store-notice"],[3,"show","timer"],[1,"buttons-holder"],["type","submit",1,"btn","with-loader"],[1,"btn-loader"],[1,"btn-spacer"],["type","button","zing-touch","",1,"btn","blue-brds","fixed-w-c","close-bt",3,"onTap"]],template:function(e,n){1&e&&(t.ɵɵtemplate(0,o,2,0,"p",0),t.ɵɵtemplate(1,a,2,0,"p",1),t.ɵɵtemplate(2,s,2,0,"p",2),t.ɵɵtemplate(3,l,3,0,"div",3),t.ɵɵtemplate(4,c,13,5,"form",4)),2&e&&(t.ɵɵproperty("ngIf",!n.sentfailed&&!n.sentdone),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.sentfailed),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.sentdone),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.sentdone),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!n.sentdone))},directives:[t.NgIf,n.TouchGestures,n.FormSubmit,n.ErrorToastComponent],styles:["app-store .app-store-notice { color : #5D7279; padding-bottom: 15px }\n        app-store .textfield { margin:15px 0 }\n        app-store .buttons-holder {text-align : right}\n        app-store error-toast { display :block; position: relative; }\n        app-store error-toast .errortoast { top:-50px; bottom: auto; }\n        app-store { max-width: 430px; display:block }\n        app-store .buttons-holder-final {text-align:center; padding-top:15px}\n        @media (max-width:480px){\n            app-store { padding : 10px }\n\n        }\n        @media (max-width:390px){\n            app-store error-toast .errortoast { left: 0px }\n\n        }\n        @media (max-width:360px){\n            app-store error-toast .errortoast { left: -20px }\n            app-store .btn-spacer { height: 8px; display : block }\n            app-store .btn { width: 100% }\n            app-store .btn.fixed-w-c { width: 100% }\n        }\n        @media (max-width:340px) {\n            app-store .close-bt {\n                width: 100px;\n            }\n        }\n        \n        "],encapsulation:2}),e}(),u=["smsOverlay"],p=["toTop"],h=["main-footer",""];function m(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",76),t.ɵɵelementStart(1,"span",77),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext().openStoreOvelary(!1)}),t.ɵɵtext(2," "),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"span",78),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext().openStoreOvelary(!0)}),t.ɵɵtext(4," "),t.ɵɵelementEnd(),t.ɵɵelementEnd()}}function f(e,n){1&e&&(t.ɵɵelementStart(0,"div",76),t.ɵɵelementStart(1,"a",79),t.ɵɵtext(2," "),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"a",80),t.ɵɵtext(4," "),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵadvance(1),t.ɵɵproperty("zing-url",!0),t.ɵɵadvance(2),t.ɵɵproperty("zing-url",!0))}function g(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",81),t.ɵɵelementStart(1,"span",77),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext().openStoreOvelary(!1)}),t.ɵɵtext(2," "),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"span",82),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext().openStoreOvelary(!0)}),t.ɵɵtext(4," "),t.ɵɵelementEnd(),t.ɵɵelementEnd()}}function _(e,n){1&e&&(t.ɵɵelementStart(0,"div",83),t.ɵɵelementStart(1,"a",84),t.ɵɵtext(2," "),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"a",85),t.ɵɵtext(4," "),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&t.ɵɵproperty("zing-url-container",!0)}require("systemjs").import("css:/footer-web.css").then(function(){},function(){});var v,x,b=function(){function e(e,t,r){this._dservice=e,this._el=t,this._render=r,this.copyrightyear=n.isNode()?"":(new Date).getFullYear(),this.isWeb=!n.isNode(),this.feedbackUrl="/feedback/",this._arrowautoshow=!0,n.Events.keepValueFor("to-top-arrow:show"),n.Events.emit("to-top-arrow:show",!0)}return e.prototype.trackByFn=function(e){return e},e.prototype.ScrollToTop=function(){this._dservice.element.focus(),this._dservice.scrollTo({position:0,timing:300}),setTimeout(function(){n.$http({method:"GET",events:!1,url:n.baseUrl()+"/gototop.png",expectedType:"text",silent:!0})},300)},e.prototype.openStoreOvelary=function(e){!n.isNode()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobi/i.test(navigator.userAgent)?e?window.open("https://goo.gl/mhG3k4","_blank"):window.open("http://apple.co/23gVr3A","_blank"):this._smsOverlay.Open(d,{android:e})},e.prototype.ngOnInit=function(){var e=this;this.isWeb&&(this.feedbackUrl="/feedback/?ref=."+window.location.pathname),n.Events.subscribe("footer:novox",function(t){!1===t?(e._render.removeAttribute(e._el.nativeElement,"tabindex"),e._render.removeAttribute(e._el.nativeElement,"aria-hidden")):(e._render.setAttribute(e._el.nativeElement,"tabindex","-1"),e._render.setAttribute(e._el.nativeElement,"aria-hidden","true"))})},e.prototype.openFeedbackPage=function(e){return e.stopPropagation(),e.preventDefault(),window.open("/feedback/?ref="+window.location.pathname,"_parent"),!1},e.prototype.ngAfterViewInit=function(){var e=this;if(this.isWeb&&!window.JSTESTING){var r=this._arrowTop.nativeElement;n.AppContainer().appendChild(r),this._headpos=this._dservice.onScroll.subscribe(function(t){e._arrowautoshow&&n.reqAnimationFrame(function(){!r.classList.contains("show")&&t>=1800?r.classList.add("show"):r.classList.contains("show")&&t<1800&&r.classList.remove("show")})});var i=!1;n.Events.subscribe("to-top-arrow:show",function(n){e._arrowautoshow=n,n?i&&e._dservice.onScroll.pipe(t.take(1)).subscribe(function(e){!r.classList.contains("show")&&e>=1800&&r.classList.add("show")}):r.classList.contains("show")&&(r.classList.remove("show"),i=!0)})}},e.prototype.ngOnDestroy=function(){this._headpos&&this._headpos.unsubscribe(),n.Events.terminate("to-top-arrow:show"),n.Events.terminate("footer:novox")},e.ɵfac=function(r){return new(r||e)(t.ɵɵdirectiveInject(n.ScrollerService),t.ɵɵdirectiveInject(t.ElementRef),t.ɵɵdirectiveInject(t.Renderer2))},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["footer","main-footer",""]],viewQuery:function(e,n){if(1&e&&(t.ɵɵviewQuery(u,5),t.ɵɵviewQuery(p,5)),2&e){var r=void 0;t.ɵɵqueryRefresh(r=t.ɵɵloadQuery())&&(n._smsOverlay=r.first),t.ɵɵqueryRefresh(r=t.ɵɵloadQuery())&&(n._arrowTop=r.first)}},attrs:h,decls:265,vars:12,consts:[["zing-touch","","aria-label","Footer Main Menu",1,"main",3,"zing-url-container"],[1,"label"],["href","/about/"],["href","/media/"],["href","/jobs/"],["href","/contact/"],["href","/edu/statistics"],["href","/add-listing/"],["href","/answers/#sp=597"],["rel","nofollow","zing-touch","",3,"href","zing-url","onTap"],["href","/community/guidelines/"],["href","/terms/privacy/"],["href","/terms/"],["href","/accessibility"],["href","/pi-request?dontsell=1"],["href","/credit-cards/0-apr/"],["href","/credit-cards/balance-transfer/"],["href","/credit-cards/low-interest/"],["href","/best-credit-card-rates"],["href","/best-cash-back-credit-card"],["href","/credit-cards/gas/"],["href","/credit-cards/airline-miles/"],["href","/credit-cards/hotel/"],["href","/credit-cards/rewards/"],["href","/best-business-credit-card"],["href","/credit-cards/no-credit-student/"],["href","/best-credit-cards"],["href","/credit-cards/store/"],["href","/credit-cards/charge-cards/"],["href","/credit-cards/emv/"],["href","/credit-cards/no-foreign-transaction-fee/"],["href","/best-credit-card-deals"],["href","/credit-cards/no-annual-fee/"],["href","/credit-cards/secured/"],["href","/credit-cards/unsecured/"],["href","/credit-cards/excellent-credit/"],["href","/credit-cards/good-credit/"],["href","/credit-cards/fair-credit/"],["href","/credit-cards/bad-credit/"],["href","/credit-cards/no-credit/"],["href","/free-credit-score"],["href","/free-credit-report"],["href","/free-credit-monitoring"],["href","/wallet-literacy-score/"],["href","/credit-score-range/"],["href","/awards/"],["href","/local-financial-products/"],["href","/product-directory/"],["href","/search-directory/"],["href","/banks"],["href","/credit-unions"],["href","/mortgage-brokers"],["href","/real-estate-agents"],["href","/insurance-agents"],["href","/insurance-companies"],["href","/attorneys"],["class","mobileButtons top-mb-score-bts",4,"ngIf"],["zing-touch","","aria-label","Footer First Menu",1,"small",3,"zing-url-container"],["href","/credit-cards/"],["zing-touch","","aria-label","Footer Second Menu",1,"second-small",3,"zing-url-container"],["class","mobileButtons",4,"ngIf"],["class","mobileButtons","zing-touch","",3,"zing-url-container",4,"ngIf"],["aria-label","Copyright"],["tabindex","0","role","text"],["src","/sid.php","alt","",2,"position","absolute","visibility","hidden","bottom","0"],["id","footer_cta"],[1,"big-content"],[1,"cta_arrow"],[1,"small-content"],[1,"small-mobile-content"],[1,"main-content"],[1,"center"],["onclick","location.href='/join/';",1,"join_for_free"],["smsOverlay",""],["id","global-arrow-up","zing-touch","","role","button","tabindex","0","aria-label","Go to the top",3,"onTap"],["toTop",""],[1,"mobileButtons","top-mb-score-bts"],["zing-touch","","role","link","aria-label","get on the app store","tabindex","0",1,"store-link","appleStore",3,"onTap"],["zing-touch","","role","link","aria-label","get on the google play","tabindex","0",1,"store-link","googlePlay",3,"onTap"],["zing-touch","","href","https://itunes.apple.com/us/app/wallethub-free-credit-report/id1110552982?mt=8","target","_blank","rel","noopener","title","get on the app store",1,"store-link","appleStore",3,"zing-url"],["zing-touch","","href","https://play.google.com/store/apps/details?id=com.wallethub.mywallet","target","_blank","rel","noopener","title","get on the google play",1,"store-link","googlePlay",3,"zing-url"],[1,"mobileButtons"],["zing-touch","","role","link","aria-label","get get on the google play","tabindex","0",1,"store-link","googlePlay",3,"onTap"],["zing-touch","",1,"mobileButtons",3,"zing-url-container"],["href","https://itunes.apple.com/us/app/wallethub-free-credit-report/id1110552982?mt=8","target","_blank","rel","noopener","title","get on the app store","aria-label","get on the app store",1,"store-link","appleStore"],["href","https://play.google.com/store/apps/details?id=com.wallethub.mywallet","target","_blank","rel","noopener","title","get on the google play","aria-label","get on the google play",1,"store-link","googlePlay"]],template:function(e,n){1&e&&(t.ɵɵelementStart(0,"nav",0),t.ɵɵelementStart(1,"ul"),t.ɵɵelementStart(2,"li",1),t.ɵɵtext(3,"About"),t.ɵɵelementEnd(),t.ɵɵelementStart(4,"li"),t.ɵɵelementStart(5,"a",2),t.ɵɵtext(6,"About Us"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(7,"li"),t.ɵɵelementStart(8,"a",3),t.ɵɵtext(9,"Media"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(10,"li"),t.ɵɵelementStart(11,"a",4),t.ɵɵtext(12,"Jobs"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(13,"li"),t.ɵɵelementStart(14,"a",5),t.ɵɵtext(15,"Contact Us"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(16,"li"),t.ɵɵelementStart(17,"a",6),t.ɵɵtext(18,"Studies & Reports"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(19,"li"),t.ɵɵelementStart(20,"a",7),t.ɵɵtext(21,"Businesses"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(22,"li",1),t.ɵɵtext(23,"Help & Legal"),t.ɵɵelementEnd(),t.ɵɵelementStart(24,"li"),t.ɵɵelementStart(25,"a",8),t.ɵɵtext(26,"FAQ"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(27,"li"),t.ɵɵelementStart(28,"a",9),t.ɵɵlistener("onTap",function(e){return n.openFeedbackPage(e)}),t.ɵɵtext(29,"Feedback"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(30,"li"),t.ɵɵelementStart(31,"a",10),t.ɵɵtext(32,"Guidelines"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(33,"li"),t.ɵɵelementStart(34,"a",11),t.ɵɵtext(35,"Privacy"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(36,"li"),t.ɵɵelementStart(37,"a",12),t.ɵɵtext(38,"Terms"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(39,"li"),t.ɵɵelementStart(40,"a",13),t.ɵɵtext(41,"Accessibility"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(42,"li"),t.ɵɵelementStart(43,"a",14),t.ɵɵtext(44,"Do Not Sell My"),t.ɵɵelement(45,"br"),t.ɵɵtext(46,"Personal Information"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(47,"ul"),t.ɵɵelementStart(48,"li",1),t.ɵɵtext(49,"Credit Card Rates"),t.ɵɵelementEnd(),t.ɵɵelementStart(50,"li"),t.ɵɵelementStart(51,"a",15),t.ɵɵtext(52,"0% APR"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(53,"li"),t.ɵɵelementStart(54,"a",16),t.ɵɵtext(55,"Balance Transfer"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(56,"li"),t.ɵɵelementStart(57,"a",17),t.ɵɵtext(58,"Low Interest"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(59,"li"),t.ɵɵelementStart(60,"a",18),t.ɵɵtext(61,"Best Rates"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(62,"li",1),t.ɵɵtext(63,"Credit Card Rewards"),t.ɵɵelementEnd(),t.ɵɵelementStart(64,"li"),t.ɵɵelementStart(65,"a",19),t.ɵɵtext(66,"Cash Back"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(67,"li"),t.ɵɵelementStart(68,"a",20),t.ɵɵtext(69,"Gas"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(70,"li"),t.ɵɵelementStart(71,"a",21),t.ɵɵtext(72,"Airline"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(73,"li"),t.ɵɵelementStart(74,"a",22),t.ɵɵtext(75,"Hotel"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(76,"li"),t.ɵɵelementStart(77,"a",23),t.ɵɵtext(78,"All Rewards"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(79,"ul"),t.ɵɵelementStart(80,"li",1),t.ɵɵtext(81,"Credit Card Types"),t.ɵɵelementEnd(),t.ɵɵelementStart(82,"li"),t.ɵɵelementStart(83,"a",24),t.ɵɵtext(84,"Business"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(85,"li"),t.ɵɵelementStart(86,"a",25),t.ɵɵtext(87,"Student"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(88,"li"),t.ɵɵelementStart(89,"a",26),t.ɵɵtext(90,"Editors Best"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(91,"li"),t.ɵɵelementStart(92,"a",27),t.ɵɵtext(93,"Store Cards"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(94,"li"),t.ɵɵelementStart(95,"a",28),t.ɵɵtext(96,"Charge Cards"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(97,"li"),t.ɵɵelementStart(98,"a",29),t.ɵɵtext(99,"Smart Chip"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(100,"li"),t.ɵɵelementStart(101,"a",30),t.ɵɵtext(102,"No Foreign Fee"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(103,"li"),t.ɵɵelementStart(104,"a",31),t.ɵɵtext(105,"Credit Card Deals"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(106,"li"),t.ɵɵelementStart(107,"a",32),t.ɵɵtext(108,"No Annual Fee"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(109,"li"),t.ɵɵelementStart(110,"a",33),t.ɵɵtext(111,"Secured Cards"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(112,"li"),t.ɵɵelementStart(113,"a",34),t.ɵɵtext(114,"Unsecured Cards"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(115,"ul"),t.ɵɵelementStart(116,"li",1),t.ɵɵtext(117,"Cards by Credit Score"),t.ɵɵelementEnd(),t.ɵɵelementStart(118,"li"),t.ɵɵelementStart(119,"a",35),t.ɵɵtext(120,"Excellent Credit"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(121,"li"),t.ɵɵelementStart(122,"a",36),t.ɵɵtext(123,"Good Credit"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(124,"li"),t.ɵɵelementStart(125,"a",37),t.ɵɵtext(126,"Fair Credit"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(127,"li"),t.ɵɵelementStart(128,"a",38),t.ɵɵtext(129,"Bad Credit"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(130,"li"),t.ɵɵelementStart(131,"a",39),t.ɵɵtext(132,"No Credit"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(133,"li",1),t.ɵɵtext(134,"Credit Tools"),t.ɵɵelementEnd(),t.ɵɵelementStart(135,"li"),t.ɵɵelementStart(136,"a",40),t.ɵɵtext(137,"Free Credit Score"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(138,"li"),t.ɵɵelementStart(139,"a",41),t.ɵɵtext(140,"Free Credit Report"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(141,"li"),t.ɵɵelementStart(142,"a",42),t.ɵɵtext(143,"Free Credit Monitoring"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(144,"li"),t.ɵɵelementStart(145,"a",43),t.ɵɵtext(146,"WalletLiteracy Score"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(147,"li"),t.ɵɵelementStart(148,"a",44),t.ɵɵtext(149,"Credit Score Range"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(150,"ul"),t.ɵɵelementStart(151,"li",1),t.ɵɵtext(152,"Financial Directories"),t.ɵɵelementEnd(),t.ɵɵelementStart(153,"li"),t.ɵɵelementStart(154,"a",45),t.ɵɵtext(155,"WalletHub Awards"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(156,"li"),t.ɵɵelementStart(157,"a",46),t.ɵɵtext(158,"Nearby Providers"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(159,"li"),t.ɵɵelementStart(160,"a",47),t.ɵɵtext(161,"Popular Products"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(162,"li"),t.ɵɵelementStart(163,"a",48),t.ɵɵtext(164,"Popular Searches"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(165,"li"),t.ɵɵelementStart(166,"a",49),t.ɵɵtext(167,"Banks"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(168,"li"),t.ɵɵelementStart(169,"a",50),t.ɵɵtext(170,"Credit Unions"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(171,"li"),t.ɵɵelementStart(172,"a",51),t.ɵɵtext(173,"Mortgage Brokers"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(174,"li"),t.ɵɵelementStart(175,"a",52),t.ɵɵtext(176,"Real Estate Agents"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(177,"li"),t.ɵɵelementStart(178,"a",53),t.ɵɵtext(179,"Insurance Agents"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(180,"li"),t.ɵɵelementStart(181,"a",54),t.ɵɵtext(182,"Insurance Companies"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(183,"li"),t.ɵɵelementStart(184,"a",55),t.ɵɵtext(185,"Attorneys"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵtemplate(186,m,5,0,"div",56),t.ɵɵtemplate(187,f,5,2,"div",56),t.ɵɵelementStart(188,"nav",57),t.ɵɵelementStart(189,"div"),t.ɵɵelementStart(190,"a",2),t.ɵɵtext(191,"About"),t.ɵɵelementEnd(),t.ɵɵelementStart(192,"a",3),t.ɵɵtext(193,"Media"),t.ɵɵelementEnd(),t.ɵɵelementStart(194,"a",5),t.ɵɵtext(195,"Contact Us"),t.ɵɵelementEnd(),t.ɵɵelementStart(196,"a",4),t.ɵɵtext(197,"Jobs"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(198,"div"),t.ɵɵelementStart(199,"a",58),t.ɵɵtext(200,"Credit Cards"),t.ɵɵelementEnd(),t.ɵɵelementStart(201,"a",6),t.ɵɵtext(202,"Studies"),t.ɵɵelementEnd(),t.ɵɵelementStart(203,"a",40),t.ɵɵtext(204,"Credit Score"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(205,"nav",59),t.ɵɵelementStart(206,"div"),t.ɵɵelementStart(207,"a",11),t.ɵɵtext(208,"Privacy Policy"),t.ɵɵelementEnd(),t.ɵɵelementStart(209,"a",12),t.ɵɵtext(210,"Terms"),t.ɵɵelementEnd(),t.ɵɵelementStart(211,"a",10),t.ɵɵtext(212,"Guidelines"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(213,"div"),t.ɵɵelementStart(214,"a",14),t.ɵɵtext(215,"Do Not Sell My Personal Information"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(216,"div"),t.ɵɵelementStart(217,"a",9),t.ɵɵlistener("onTap",function(e){return n.openFeedbackPage(e)}),t.ɵɵtext(218,"Feedback"),t.ɵɵelementEnd(),t.ɵɵelementStart(219,"a",13),t.ɵɵtext(220,"Accessibility"),t.ɵɵelementEnd(),t.ɵɵelementStart(221,"a",7),t.ɵɵtext(222,"Businesses"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵtemplate(223,g,5,0,"div",60),t.ɵɵtemplate(224,_,5,1,"div",61),t.ɵɵelementStart(225,"aside",62),t.ɵɵelementStart(226,"div",63),t.ɵɵtext(227),t.ɵɵelementStart(228,"span"),t.ɵɵtext(229,"All Rights Reserved."),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelement(230,"img",64),t.ɵɵelementStart(231,"div",65),t.ɵɵelementStart(232,"span",66),t.ɵɵtext(233,"Get unlimited free credit scores & reports "),t.ɵɵelement(234,"span",67),t.ɵɵelementEnd(),t.ɵɵelementStart(235,"span",68),t.ɵɵtext(236,"Sign up for free credit monitoring "),t.ɵɵelement(237,"span",67),t.ɵɵelementEnd(),t.ɵɵelementStart(238,"span",69),t.ɵɵtext(239,"get your free credit score & report "),t.ɵɵelement(240,"span",67),t.ɵɵelementEnd(),t.ɵɵelementStart(241,"div",70),t.ɵɵelementStart(242,"h3"),t.ɵɵtext(243,"Join WalletHub"),t.ɵɵelementEnd(),t.ɵɵelementStart(244,"p"),t.ɵɵtext(245,"+ 100% Free"),t.ɵɵelementEnd(),t.ɵɵelementStart(246,"p"),t.ɵɵtext(247,"+ Unlimited Credit Reports"),t.ɵɵelementEnd(),t.ɵɵelementStart(248,"p"),t.ɵɵtext(249,"+ Unlimited Credit Scores"),t.ɵɵelementEnd(),t.ɵɵelementStart(250,"p"),t.ɵɵtext(251,"+ Credit Monitoring Protection"),t.ɵɵelementEnd(),t.ɵɵelementStart(252,"p"),t.ɵɵtext(253,"+ Credit Improvement Tips"),t.ɵɵelementEnd(),t.ɵɵelementStart(254,"p"),t.ɵɵtext(255,"+ Automatically Finds Savings"),t.ɵɵelementEnd(),t.ɵɵelementStart(256,"div",71),t.ɵɵelementStart(257,"button",72),t.ɵɵtext(258,"JOIN FOR FREE"),t.ɵɵelementEnd(),t.ɵɵelementStart(259,"p"),t.ɵɵtext(260,"No credit card needed"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelement(261,"modal-dialog",null,73),t.ɵɵelementStart(263,"div",74,75),t.ɵɵlistener("onTap",function(){return n.ScrollToTop()}),t.ɵɵelementEnd()),2&e&&(t.ɵɵproperty("zing-url-container",!0),t.ɵɵadvance(28),t.ɵɵproperty("href",n.feedbackUrl,t.ɵɵsanitizeUrl)("zing-url",!1),t.ɵɵadvance(158),t.ɵɵproperty("ngIf",n.isWeb),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!n.isWeb),t.ɵɵadvance(1),t.ɵɵproperty("zing-url-container",!0),t.ɵɵadvance(17),t.ɵɵproperty("zing-url-container",!0),t.ɵɵadvance(12),t.ɵɵproperty("href",n.feedbackUrl,t.ɵɵsanitizeUrl)("zing-url",!1),t.ɵɵadvance(6),t.ɵɵproperty("ngIf",n.isWeb),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!n.isWeb),t.ɵɵadvance(3),t.ɵɵtextInterpolate1(" © ",n.copyrightyear," Evolution Finance, Inc. "))},directives:[n.TouchGestures,t.NgIf,n.ngModalDialog],encapsulation:2,changeDetection:0}),e}(),y=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=t.ɵɵdefineNgModule({type:e}),e.ɵinj=t.ɵɵdefineInjector({imports:[[n.DirectivesModule,t.CommonModule,n.ngModalsModule,n.ErrorsModule,n.FormSubmitModule]]}),e}(),w=require("npm:navigo/lib/navigo.js"),E=function(){return function(){this.queryParams=new t.Observable(function(e){var t=q.subscribe(function(t){t&&e.next(n.objectFromParam(t.query))});return{unsubscribe:function(){t.unsubscribe()}}}),this.fragment=new t.Observable(function(e){var t=location.hash;e.next(t);var n=function(t){e.next(location.hash)};return window.addEventListener("hashchange",n),{unsubscribe:function(){window.removeEventListener("hashchange",n)}}})}}(),S=[],q=new t.BehaviorSubject(null),C=function(){function e(){var e=document.querySelector("head base"),t=new w(location.origin+e.getAttribute("href")||"");t.hooks({after:function(){var e=t.lastResolved();n.arrayForEach(e,function(e){q.next({url:e.url,params:e.params,query:e.queryString})})}}),S.forEach(function(e){if(e.path){var n=e.path;"prefix"==e.pathMatch&&(n+="/*"),t.on(n,function(){})}}),t.on(function(e){}),t.resolve()}return e.forRoot=function(e){S=S.concat(e)},e.ɵfac=function(t){return new(t||e)},e.ɵmod=t.ɵɵdefineNgModule({type:e}),e.ɵinj=t.ɵɵdefineInjector({providers:[E],imports:[[t.CommonModule]]}),e}(),T="function"==typeof Map?new Map:(v=[],x=[],{has:function(e){return v.indexOf(e)>-1},get:function(e){return x[v.indexOf(e)]},set:function(e,t){-1===v.indexOf(e)&&(v.push(e),x.push(t))},delete:function(e){var t=v.indexOf(e);t>-1&&(v.splice(t,1),x.splice(t,1))}}),k=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){k=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function I(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!T.has(e)){var t,n=null,r=null,i=null,o=function(){e.clientWidth!==r&&c()},a=function(t){window.removeEventListener("resize",o,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),T.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",o,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",T.set(e,{destroy:a,update:c}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),c()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function l(){if(0!==e.scrollHeight){var t=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}(e),i=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach(function(e){e.node.scrollTop=e.scrollTop}),i&&(document.documentElement.scrollTop=i)}}function c(){l();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),l(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),l(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==r){i=r;var o=k("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}function A(e){var t=T.get(e);t&&t.destroy()}function z(e){var t=T.get(e);t&&t.update()}var L=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((L=function(e){return e}).destroy=function(e){return e},L.update=function(e){return e}):((L=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return I(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],A),e},L.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],z),e});var M=L,O=Object.freeze({__proto__:null,default:M}),N=function(){function e(e,n){this._el=e,this._zone=n,this._resize=!1,this.onResized=new t.EventEmitter}return Object.defineProperty(e.prototype,"updateAutoSize",{get:function(){return!1},set:function(e){var t=this;n.isNode()||this._zone.runOutsideAngular(function(){1==e&&n.reqAnimationFrame(function(){t._autosize.then(function(e){e.update(t._el.nativeElement)})})})},enumerable:!1,configurable:!0}),e.prototype.fireResize=function(){this.onResized.emit()},e.prototype._windowResize=function(){var e=this;this._resize&&this._zone.runOutsideAngular(function(){n.reqAnimationFrame(function(){e._autosize&&e._autosize.update(e._el.nativeElement)})})},e.prototype.ngOnInit=function(){this.fireResize=this.fireResize.bind(this),this._windowResize=this._windowResize.bind(this),n.isNode()||window.addEventListener("resize",this._windowResize)},e.prototype.ngAfterViewInit=function(){var e=this;!n.isNode()&&this._el.nativeElement&&this._zone.runOutsideAngular(function(){var t=M||O;t(e._el.nativeElement),e._el.nativeElement.addEventListener("autosize:resized",e.fireResize),e._autosize=t})},e.prototype.ngOnDestroy=function(){n.isNode()||(this._autosize&&(this._autosize.destroy(this._el.nativeElement),this._el.nativeElement.removeEventListener("autosize:resized",this.fireResize),this._autosize=null),window.removeEventListener("resize",this._windowResize))},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(t.ElementRef),t.ɵɵdirectiveInject(t.NgZone))},e.ɵdir=t.ɵɵdefineDirective({type:e,selectors:[["","ng-autosize",""]],inputs:{updateAutoSize:["sizeupdate","updateAutoSize"],_resize:["watchresize","_resize"]},outputs:{onResized:"onResized"}}),e}(),F=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=t.ɵɵdefineNgModule({type:e}),e.ɵinj=t.ɵɵdefineInjector({imports:[[t.CommonModule]]}),e}(),j=["textarea"];function H(e,n){1&e&&(t.ɵɵelementStart(0,"div",4),t.ɵɵelement(1,"i"),t.ɵɵelementEnd())}var P=require("systemjs"),R=!1,V=n.isWeb()&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,B=function(){function e(e,r,i){this._el=e,this._cd=r,this._service=i,this._destroyed=!0,this.ckeditorLoaded=!0,this.ckelementid=n.uniqid(),this._value=new t.BehaviorSubject(null),this.valueChange=new t.EventEmitter,this._active=new t.BehaviorSubject(!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 t.EventEmitter,this.editor_init=R}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value.getValue()},set:function(e){this._value.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this._active.getValue()},set:function(e){this._active.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.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(e.prototype,"autofocus",{get:function(){return this._autofocus},set:function(e){this._autofocus=e,e&&this._container&&this._container.nativeElement.focus()},enumerable:!1,configurable:!0}),e.prototype.StartCkeditor=function(){var e=this;P.import("ckeditor5/build/ckeditor.js").then(function(t){t.create(e._container.nativeElement,e.options).then(function(t){var n;e._enabled=!0,e._editor=t,e._cd.detectChanges(),t.model.document.on("change:data",function(r){n=t.getData(),e.valueChange.emit(n)}),e._editorsubs=e._value.subscribe(function(e){n!==e&&t.setData(e)}),e.autofocus&&(t.editing.view.focus(),V||setTimeout(function(){var t=e._el.nativeElement;e._service.scrollTo({target:t,inview:!0})},100)),e.editorInitiated.emit(!0),R=!0},function(){throw e.editorInitiated.emit(!1),Error("Cannot instance the ckeditor")})},function(){throw e.editorInitiated.emit(!1),Error("Cannot load the ckeditor")})},e.prototype.EndCkeditor=function(){this._enabled=!1,this._editor&&(this._editor.destroy(),this._editor=null,this._editorsubs.unsubscribe())},e.prototype.ngOnInit=function(){var e=this,t=this._active.subscribe({next:function(t){t&&!e._enabled?setTimeout(function(){n.reqAnimationFrame(function(){e.StartCkeditor()})}):e._enabled&&e.EndCkeditor()},error:function(){},complete:function(){t&&t.unsubscribe()}});this.editorInitiated.subscribe(function(){e.editor_init=!0})},e.prototype.ngOnDestroy=function(){this._active.complete(),this._value.complete(),this.EndCkeditor()},e.ɵfac=function(r){return new(r||e)(t.ɵɵdirectiveInject(t.ElementRef),t.ɵɵdirectiveInject(t.ChangeDetectorRef),t.ɵɵdirectiveInject(n.ScrollerService))},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["ck-editor"]],viewQuery:function(e,n){if(1&e&&t.ɵɵviewQuery(j,7),2&e){var r;t.ɵɵqueryRefresh(r=t.ɵɵloadQuery())&&(n._container=r.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,n){1&e&&(t.ɵɵelement(0,"div",0),t.ɵɵelement(1,"textarea",1,2),t.ɵɵtemplate(3,H,2,0,"div",3)),2&e&&(t.ɵɵadvance(1),t.ɵɵproperty("value",n.value),t.ɵɵadvance(2),t.ɵɵproperty("ngIf",!n.editor_init))},directives:[t.NgIf],styles:['.ck-toolbar .ckeditor-heading { font-size:18px; font-family: "ProximaNova-Bold", Helvetica, Arial, sans-serif }',".ck-editor__editable a:focus,.ck-editor__editable a:hover{text-decoration:underline}",".ck-editor__editable a{color:#136AE8;text-decoration:none;cursor:pointer}","ck-editor { display: block }"],encapsulation:2}),e}(),D=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=t.ɵɵdefineNgModule({type:e}),e.ɵinj=t.ɵɵdefineInjector({imports:[[t.CommonModule,n.DirectivesModule]]}),e}(),$=function(){function e(e,n){this._el=e,this._renderer=n,this.onImageFailed=new t.EventEmitter}return Object.defineProperty(e.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}),e.prototype.onError=function(e){if(!n.isNode()&&e){var t=this._el.nativeElement;this.fallback&&t.src!=this.fallback?(t.src=this.fallback,t.style.display=""):t.style.display="none",this.onImageFailed.emit(!0)}},e.prototype.ngOnInit=function(){n.isNode()||(this.onError=this.onError.bind(this),this._el.nativeElement.addEventListener("error",this.onError))},e.prototype.ngOnDestroy=function(){n.isNode()||this._el.nativeElement.removeEventListener("error",this.onError)},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(t.ElementRef),t.ɵɵdirectiveInject(t.Renderer2))},e.ɵdir=t.ɵɵdefineDirective({type:e,selectors:[["","on-img-error",""]],inputs:{fallback:["on-img-error","fallback"],src:"src"},outputs:{onImageFailed:"image-failed"}}),e}(),Q=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=t.ɵɵdefineNgModule({type:e}),e.ɵinj=t.ɵɵdefineInjector({imports:[[t.CommonModule]]}),e}(),G=["img-placeholder",""],U=(function(){function e(){this.itemprop="",this.classes=[]}e.ɵfac=function(t){return new(t||e)},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["","img-placeholder",""]],inputs:{src:"src",itemprop:"itemprop",alt:"alt",classes:"classes"},attrs:G,decls:3,vars:5,consts:[[3,"defer-src","ui-hydrate"],[3,"ngClass","alt"],["deferImg",""]],template:function(e,n){1&e&&(t.ɵɵelementStart(0,"div",0),t.ɵɵelement(1,"img",1,2),t.ɵɵelementEnd()),2&e&&(t.ɵɵproperty("defer-src",n.src)("ui-hydrate",!0),t.ɵɵadvance(1),t.ɵɵproperty("ngClass",n.classes)("alt",n.alt),t.ɵɵattribute("itemprop",n.itemprop))},directives:[n.ImageLoader,t.NgClass],encapsulation:2})}(),function(){function e(){}e.ɵfac=function(t){return new(t||e)},e.ɵmod=t.ɵɵdefineNgModule({type:e}),e.ɵinj=t.ɵɵdefineInjector({imports:[[t.CommonModule,n.ImageLoaderModule]]})}(),["dropdownList"]),W=["button"];function Y(e,n){if(1&e&&t.ɵɵelement(0,"span",8),2&e){var r=t.ɵɵnextContext();t.ɵɵproperty("cleanHTML",r.placeholder),t.ɵɵattribute("tabindex",r.tabindex)("aria-expanded",r.opened)}}function J(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"li",9),t.ɵɵlistener("onClick",function(){var e=t.ɵɵrestoreView(r).index;return t.ɵɵnextContext().selectItem(e)})("onTap",function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext().PreventClose(e)}),t.ɵɵelementEnd()}if(2&e){var i=n.$implicit,o=n.index,a=t.ɵɵnextContext();t.ɵɵclassProp("active",a.activeidx==o),t.ɵɵproperty("cleanHTML",i),t.ɵɵattribute("aria-selected",a.activeidx==o)("id",a.optionid+"-"+o)}}function X(e,n){1&e&&t.ɵɵelement(0,"span",10)}var Z=function(e,t,n,r,i,o){return{"ng-wh-error":e,"drp-b-darker":t,second:n,selected:r,opened:i,disabled:o}};function K(e,n){if(1&e&&(t.ɵɵelementStart(0,"span",12),t.ɵɵlistener("onTap",function(){return!0}),t.ɵɵelementEnd()),2&e){var r=t.ɵɵnextContext();t.ɵɵproperty("cleanHTML",r.placeholder)}}function ee(e,n){if(1&e&&(t.ɵɵelementStart(0,"span",13),t.ɵɵlistener("onTap",function(){return!0}),t.ɵɵelementEnd()),2&e){var r=t.ɵɵnextContext();t.ɵɵproperty("cleanHTML",r.value)}}var te=function(e,t,n,r,i){return{"ng-wh-error":e,"drp-b-darker":t,second:n,selected:r,opened:i}},ne=function(){function e(e){this._cd=e,this.tabindex=0,this.placeholder="Select...",this.items=[],this.darker=!1,this.invalid=!1,this.disabled=!1,this.bounds_check=!1,this.labelledby="",this.valueChange=new t.EventEmitter,this.selected=new t.EventEmitter,this.onTapped=new t.EventEmitter,this.noselection=!0,this.opened=!1,this.activeidx=null}return Object.defineProperty(e.prototype,"value",{get:function(){return(this._value||"").toString()},set:function(e){this.noselection=!e,this._value=e},enumerable:!1,configurable:!0}),e.prototype.controlList=function(e,t){this.disabled||(this.opened=void 0!==t?t:!this.opened,this.onTapped.emit(this),this.fixOverflow())},e.prototype.close=function(){this.opened=!1},e.prototype.open=function(){this.opened=!0},e.prototype.PreventClose=function(e){e&&e.srcEvent&&(e.srcEvent.cancelBubble=!0,e.srcEvent.stopPropagation&&e.srcEvent.stopPropagation()),e&&e.stopPropagation&&e.stopPropagation()},e.prototype.selectItem=function(e){void 0===e&&(e=0),this._value=this.items[e],this.activeidx=e,this.valueChange.emit(this.value),this.noselection=!1,this.selected.emit({eventName:"select",value:this.value,index:e}),this.activedescendant=this.optionid+"-"+this.activeidx,this.close(),this._cd.detectChanges(),this.listbutton&&this.listbutton.nativeElement.focus()},e.prototype.trackByFn=function(e){return e},e.prototype.ngOnInit=function(){this.optionid=n.uniqid("opt-"),this.value&&this.items.indexOf(this.value)>-1&&(this.activeidx=this.items.indexOf(this.value),this.activedescendant=this.optionid+"-"+this.activeidx)},e.prototype.fixOverflow=function(){var e=this,t=this.dropdownList&&this.dropdownList.nativeElement,n=t&&t.parentElement;requestAnimationFrame(function(){try{var r=t.getBoundingClientRect();n.getBoundingClientRect().x+r.width>=window.innerWidth?t.classList.add("sticky-right"):t.classList.remove("sticky-right"),e.bounds_check&&r.y+r.height>window.innerHeight?t.classList.add("upwards"):t.classList.remove("upwards")}catch(e){throw e}})},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(t.ChangeDetectorRef))},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["ng-dropdown"]],viewQuery:function(e,n){if(1&e&&(t.ɵɵviewQuery(U,5,t.ElementRef),t.ɵɵviewQuery(W,5,t.ElementRef)),2&e){var r=void 0;t.ɵɵqueryRefresh(r=t.ɵɵloadQuery())&&(n.dropdownList=r.first),t.ɵɵqueryRefresh(r=t.ɵɵloadQuery())&&(n.listbutton=r.first)}},inputs:{tabindex:"tabindex",placeholder:"placeholder",items:"items",second:"second",darker:["dark-borders","darker"],invalid:"invalid",disabled:"disabled",bounds_check:["bounds-check","bounds_check"],labelledby:"labelledby",value:"value"},outputs:{valueChange:"valueChange",selected:"selected",onTapped:"onTapped"},decls:8,vars:20,consts:[["zing-touch","",1,"dropdown",3,"ngClass","onTap","onTapOutside"],["role","button","aria-haspopup","listbox","class","dropdown-placeholder",3,"cleanHTML",4,"ngIf"],["role","button","aria-haspopup","listbox",1,"dropdown-selected",3,"ng-hidden","cleanHTML"],["button",""],["role","listbox","tabindex","0",1,"dropdown-list","ng-enter-element",3,"ng-hidden"],["dropdownList",""],["class","dropdown-item","role","option","zing-touch","",3,"active","cleanHTML","onClick","onTap",4,"ngFor","ngForOf","ngForTrackBy"],["class","dropdown-arrow bf-icon-down-open",4,"ngIf"],["role","button","aria-haspopup","listbox",1,"dropdown-placeholder",3,"cleanHTML"],["role","option","zing-touch","",1,"dropdown-item",3,"cleanHTML","onClick","onTap"],[1,"dropdown-arrow","bf-icon-down-open"]],template:function(e,n){1&e&&(t.ɵɵelementStart(0,"div",0),t.ɵɵlistener("onTap",function(e){return n.controlList(e)})("onTapOutside",function(e){return n.controlList(e,!1)}),t.ɵɵtemplate(1,Y,1,3,"span",1),t.ɵɵelement(2,"span",2,3),t.ɵɵelementStart(4,"ul",4,5),t.ɵɵtemplate(6,J,1,5,"li",6),t.ɵɵelementEnd(),t.ɵɵtemplate(7,X,1,0,"span",7),t.ɵɵelementEnd()),2&e&&(t.ɵɵproperty("ngClass",t.ɵɵpureFunction6(13,Z,n.invalid,n.darker,n.second,!n.noselection,n.opened,n.disabled)),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.placeholder&&n.noselection),t.ɵɵadvance(1),t.ɵɵproperty("ng-hidden",n.noselection)("cleanHTML",n.value),t.ɵɵattribute("tabindex",n.noselection?n.tabindex:-1)("aria-hidden",n.noselection)("aria-expanded",n.opened),t.ɵɵadvance(2),t.ɵɵproperty("ng-hidden",!n.opened),t.ɵɵattribute("aria-labelledby",n.labelledby)("aria-activedescendant",n.activedescendant),t.ɵɵadvance(2),t.ɵɵproperty("ngForOf",n.items)("ngForTrackBy",n.trackByFn),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!n.disabled))},directives:[n.TouchGestures,t.NgClass,t.NgIf,n.ngHidden,n.ngCleanHTML,t.NgForOf],encapsulation:2}),e}(),re=(function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.text="Some text to display",t.name="",t.label="",t.booleanValue=null,t}var i;__extends(r,e),r.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))},r.ɵfac=function(e){return(i||(i=t.ɵɵgetInheritedFactory(r)))(e||r)},r.ɵcmp=t.ɵɵdefineComponent({type:r,selectors:[["ng-dropdown-bool"]],inputs:{text:"text",name:"name",label:"label"},features:[t.ɵɵInheritDefinitionFeature],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,n){1&e&&(t.ɵɵelementStart(0,"div",0),t.ɵɵlistener("onTap",function(e){return n.controlList(e)})("onTapOutside",function(e){return n.controlList(e,!1)}),t.ɵɵtemplate(1,K,1,1,"span",1),t.ɵɵtemplate(2,ee,1,1,"span",2),t.ɵɵelementStart(3,"div",3,4),t.ɵɵelementStart(5,"p",5),t.ɵɵtext(6),t.ɵɵelementEnd(),t.ɵɵelementStart(7,"div",6),t.ɵɵelementStart(8,"label",7),t.ɵɵelementStart(9,"input",8),t.ɵɵlistener("change",function(){return n.Check(!0)}),t.ɵɵelementEnd(),t.ɵɵelement(10,"i",9),t.ɵɵelementStart(11,"span",10),t.ɵɵtext(12,"Yes"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(13,"label",7),t.ɵɵelementStart(14,"input",8),t.ɵɵlistener("change",function(){return n.Check(!1)}),t.ɵɵelementEnd(),t.ɵɵelement(15,"i",9),t.ɵɵelementStart(16,"span",10),t.ɵɵtext(17,"No"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelement(18,"i",11),t.ɵɵelementEnd()),2&e&&(t.ɵɵproperty("ngClass",t.ɵɵpureFunction5(13,te,n.invalid,n.darker,n.second,!n.noselection,n.opened)),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.placeholder&&n.noselection),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!n.noselection),t.ɵɵadvance(1),t.ɵɵproperty("ng-hidden",!n.opened),t.ɵɵadvance(3),t.ɵɵtextInterpolate1(" ",n.text," "),t.ɵɵadvance(2),t.ɵɵproperty("zingToggle",!0),t.ɵɵattribute("aria-label",n.label),t.ɵɵadvance(1),t.ɵɵproperty("checked",!0===n.booleanValue)("name",n.name),t.ɵɵadvance(4),t.ɵɵproperty("zingToggle",!0),t.ɵɵattribute("aria-label",n.label),t.ɵɵadvance(1),t.ɵɵproperty("checked",!1===n.booleanValue)("name",n.name))},directives:[n.TouchGestures,t.NgClass,t.NgIf,n.ngHidden,n.ngCleanHTML],encapsulation:2})}(ne),function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=t.ɵɵdefineNgModule({type:e}),e.ɵinj=t.ɵɵdefineInjector({imports:[[t.CommonModule,n.DirectivesModule]]}),e}());function ie(e,n){1&e&&(t.ɵɵelementStart(0,"h2",11),t.ɵɵtext(1,"Thank you"),t.ɵɵelementEnd()),2&e&&t.ɵɵproperty("focus-when",!0)}function oe(e,n){1&e&&(t.ɵɵelementStart(0,"h2",11),t.ɵɵtext(1,"Please provide your email in order to receive answers"),t.ɵɵelementEnd()),2&e&&t.ɵɵproperty("focus-when",!0)}function ae(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",12),t.ɵɵelementStart(1,"span",13),t.ɵɵtext(2),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"textarea",14),t.ɵɵlistener("input",function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext().SetInput(e)}),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext();t.ɵɵadvance(1),t.ɵɵclassProp("ques-ov-cred",i.input_chars_left<0),t.ɵɵadvance(1),t.ɵɵtextInterpolate(i.input_chars_left),t.ɵɵadvance(1),t.ɵɵproperty("value",i.input_value)("readonly",i.submiting)}}function se(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",12),t.ɵɵelementStart(1,"textarea",15),t.ɵɵlistener("input",function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext().input_value_extra=e.target.value}),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext();t.ɵɵadvance(1),t.ɵɵproperty("value",i.input_value_extra)("readonly",i.submiting)}}function le(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",12),t.ɵɵelementStart(1,"ng-dropdown",16),t.ɵɵlistener("selected",function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext().SetCategory(e)}),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext();t.ɵɵadvance(1),t.ɵɵproperty("invalid",i.categoryerror)("items",i.categories)("second",!0)("value",i.category)}}function ce(e,n){if(1&e&&t.ɵɵelement(0,"div",17),2&e){var r=t.ɵɵnextContext();t.ɵɵproperty("innerHTML",r.ajax_message,t.ɵɵsanitizeHtml)("zing-url-container",!0)}}function de(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"button",18),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext().Submit()}),t.ɵɵtext(1," Next "),t.ɵɵelement(2,"i",19),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext();t.ɵɵclassProp("loadactive",i.submiting),t.ɵɵproperty("disabled",i.submiting)}}function ue(e,n){1&e&&(t.ɵɵelementStart(0,"div",20),t.ɵɵtext(1,"Your question has been submitted to our moderators for review. We will send you an email once your question has been approved."),t.ɵɵelementEnd())}function pe(e,n){1&e&&t.ɵɵelement(0,"br")}function he(e,n){if(1&e&&t.ɵɵelement(0,"div",17),2&e){var r=t.ɵɵnextContext(2);t.ɵɵproperty("innerHTML",r.ajax_message,t.ɵɵsanitizeHtml)("zing-url-container",!0)}}function me(e,n){1&e&&t.ɵɵelement(0,"br")}function fe(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",21),t.ɵɵelementStart(1,"button",22),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext().Back()}),t.ɵɵtext(2,"Back"),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"button",23),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext().GuestSubmit()}),t.ɵɵelement(4,"i",24),t.ɵɵelementStart(5,"span",25),t.ɵɵtext(6,"Login to Wallethub"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(7,"div",26),t.ɵɵtext(8,"or"),t.ɵɵelementEnd(),t.ɵɵelementStart(9,"input",27),t.ɵɵlistener("input",function(e){t.ɵɵrestoreView(r);var n=t.ɵɵnextContext();return n.user_email=e.target.value,n.show_ajax_error=!1}),t.ɵɵelementEnd(),t.ɵɵtemplate(10,pe,1,0,"br",28),t.ɵɵtemplate(11,he,1,2,"div",7),t.ɵɵtemplate(12,me,1,0,"br",28),t.ɵɵelementStart(13,"button",29),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext().GuestSubmit()}),t.ɵɵtext(14," Submit "),t.ɵɵelement(15,"i",30),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext();t.ɵɵadvance(9),t.ɵɵproperty("value",i.user_email),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!i.show_ajax_error),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.show_ajax_error),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!i.show_ajax_error),t.ɵɵadvance(1),t.ɵɵclassProp("loadactive",i.submiting),t.ɵɵproperty("disabled",i.submiting)}}var ge=require("systemjs"),_e=function(){function e(e){this._location=e,this.data={},this.input_value="",this.input_value_extra="",this.input_chars_left=0,this._max_input=140,this.submiting=!1,this.submited=!1,this._limit=140,this._is_lodgged=!1,this.needs_login=!1,this.user_email="",this._referer="",this._email_reg=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,this.has_categories=!1,this.categoryerror=!1,this.toastinterval=3500,this.live_status="",this.question_count_status="",this.is_android=!1}return e.prototype._CountWords=function(e){if(!e)return"";var t=e.replace(/(^\s*)|(\s*$)/gi,"");return(t=(t=t.replace(/[ ]{2,}/gi," ")).replace(/\n /,"")).split(" ").filter(function(e){return""!=e}).length},e.prototype._CountChars=function(){var e=(this.input_value||"").trim().length;this.input_chars_left=this._max_input-e,this.question_count_status=e+" character"+(1!=e?"s":"")+" entered"},e.prototype._SendQues=function(){var e=this;this.show_ajax_error=!1,this.submiting=!0;var t=n.cleanInput(this.input_value);this.live_status="Posting question.",ge.import("Encryption").then(function(r){var i={url:n.baseUrl()+"/ajax.php",data:Object.assign({action:"Answers.PostQuestion",question:t,url:e._referer},e.data.addparams||{}),encryptprops:["email"],before:function(){e.submiting=!0},after:function(){e.submiting=!1},headers:{"Content-Type":"application/x-www-form-urlencoded"}};e.has_categories&&(i.data.category=e._catid),e.user_email&&(i.data.email=e.user_email),e._is_lodgged||e.user_email||(i.data.light=!0),e.input_value_extra&&(i.data.details=e.input_value_extra),r.send(i).then(function(t){if(e.live_status="",!t||t.error){if(t&&"message"in t){var n=t.message.match(/^Bad word `([^`]+)` detected.$/);n&&n.length&&(t.message='Profanity is not allowed, including words such as "'+n[1]+'". Please adjust.'),e.ajax_message=t.message}else e.ajax_message='Unexpected error. Please contact <a class="link" href="mailto:help@wallethub.com" target="system">help@evolutionfinance.com</a>';e.show_ajax_error=!0}else{if("redirect"in t)return e.submiting=!0,void(top.location.href=t.redirect);e.submited=!0}},function(t){e.live_status="",e.ajax_message='Unexpected error. Please contact <a class="link" href="mailto:help@wallethub.com" target="system">help@evolutionfinance.com</a>',e.show_ajax_error=!0,n.RavenRequestFail(t,"Failed to submit a question from ng2 QnA component")})},function(t){e.live_status="",e.ajax_message='Unexpected error. Please contact <a class="link" href="mailto:help@wallethub.com" target="system">help@evolutionfinance.com</a>',e.show_ajax_error=!0,n.RavenJs().then(function(e){e.captureException(t)},function(){})})},e.prototype.SetCategory=function(e){this.category=e.value,this._catid=this._catindex[e.index],this.categoryerror=!1},e.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)},e.prototype.OnErrorToastHidden=function(){this.show_error&&(this.show_error=!1)},e.prototype.GuestSubmit=function(){this.user_email&&!this._email_reg.test(this.user_email)?(this.show_ajax_error=!0,this.ajax_message="Please enter a correct Email Address."):this._SendQues()},e.prototype.SetInput=function(e){this.show_error=!1,this.show_ajax_error=!1,this.input_value=e.target.value,this._CountChars()},e.prototype.Back=function(){this.needs_login=!1,this.show_ajax_error=!1,this.ajax_message=""},e.prototype.ngOnInit=function(){var e=this;this.input_value=this.data.input||"",this.data.referer?this._referer=this.data.referer:(this._referer=n.baseUrl()+this._location.path(),this._referer.lastIndexOf("/")!==this._referer.length-1&&(this._referer+="/")),this.data.categories&&this.data.categories.length>0&&(this.has_categories=!0,this.categories=[],this._catindex=[],this.data.categories.forEach(function(t){e.categories.push(t.name),e._catindex.push(t.id)}),1==this.categories.length&&(this._catid=this._catindex[0],this.category=this.categories[0])),this._CountChars(),n.isNode()||(n.Cookies.get("mw_signon")&&(this._is_lodgged=!0),this.is_android=null!=navigator.userAgent.match(/Android/i)||navigator.platform&&null!=navigator.platform.match(/Android/i))},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(t.Location))},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["question-overlay"]],decls:16,vars:18,consts:[["tabindex","0","ng-focus","",1,"ques-ov","regular-font",3,"ng-hidden","focus-when"],["class","ques-ov regular-font ng-enter-element","tabindex","0","ng-focus","",3,"focus-when",4,"ngIf"],[3,"ng-aria-live"],["class","ques-ov-txt-box ng-enter-element",4,"ngIf"],["hidden","true","id","ques-ov-count-status"],[3,"ng-hidden"],[3,"message","show","close-on-change","timer","onhidden"],["class","ques-ov-error-notice ng-enter-element slide","role","alert","tabindex","-1","zing-touch","",3,"innerHTML","zing-url-container",4,"ngIf"],["class","btn fixed-w-i with-loader no-disabled ng-enter-element","zing-touch","","aria-label","Next",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"],["tabindex","0","ng-focus","",1,"ques-ov","regular-font","ng-enter-element",3,"focus-when"],[1,"ques-ov-txt-box","ng-enter-element"],["aria-hidden","true","tabindex","-1",1,"ques-ov-count"],["placeholder","Ask a question (140 character limit)","ng-autosize","","aria-describedby","ques-ov-count-status",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"],["role","alert","tabindex","-1","zing-touch","",1,"ques-ov-error-notice","ng-enter-element","slide",3,"innerHTML","zing-url-container"],["zing-touch","","aria-label","Next",1,"btn","fixed-w-i","with-loader","no-disabled","ng-enter-element",3,"disabled","onTap"],["aria-hidden","true","tabindex","-1",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"],[1,"btn-loader"]],template:function(e,n){1&e&&(t.ɵɵelementStart(0,"h2",0),t.ɵɵtext(1,"Ask a Question"),t.ɵɵelementEnd(),t.ɵɵtemplate(2,ie,2,1,"h2",1),t.ɵɵtemplate(3,oe,2,1,"h2",1),t.ɵɵelement(4,"div",2),t.ɵɵtemplate(5,ae,4,5,"div",3),t.ɵɵelementStart(6,"div",4),t.ɵɵtext(7),t.ɵɵelementEnd(),t.ɵɵtemplate(8,se,2,2,"div",3),t.ɵɵtemplate(9,le,2,4,"div",3),t.ɵɵelementStart(10,"div",5),t.ɵɵelementStart(11,"error-toast",6),t.ɵɵlistener("onhidden",function(){return n.OnErrorToastHidden()}),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵtemplate(12,ce,1,2,"div",7),t.ɵɵtemplate(13,de,3,3,"button",8),t.ɵɵtemplate(14,ue,2,0,"div",9),t.ɵɵtemplate(15,fe,16,7,"div",10)),2&e&&(t.ɵɵproperty("ng-hidden",n.submited||n.needs_login)("focus-when",!(n.submited||n.needs_login)),t.ɵɵadvance(2),t.ɵɵproperty("ngIf",n.submited),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.needs_login&&!n.submited),t.ɵɵadvance(1),t.ɵɵproperty("ng-aria-live",n.live_status),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!n.submited&&!n.needs_login),t.ɵɵadvance(2),t.ɵɵtextInterpolate(n.question_count_status),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!n.submited&&!n.needs_login),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!n.submited&&!n.needs_login&&n.has_categories&&n.categories.length>1),t.ɵɵadvance(1),t.ɵɵproperty("ng-hidden",n.submited||n.needs_login),t.ɵɵadvance(1),t.ɵɵproperty("message",n.error_message)("show",n.show_error)("close-on-change",!0)("timer",n.toastinterval),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!n.needs_login&&n.show_ajax_error),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!n.submited&&!n.needs_login),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.submited),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.needs_login&&!n.submited))},directives:[n.ngFocus,n.ngHidden,t.NgIf,n.ngAriaLive,n.ErrorToastComponent,N,ne,n.TouchGestures],encapsulation:2}),e}(),ve=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=t.ɵɵdefineNgModule({type:e}),e.ɵinj=t.ɵɵdefineInjector({imports:[[t.CommonModule,n.DirectivesModule,F,n.ErrorsModule,re,n.ngFocusModule]]}),e}(),xe=["content"];function be(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"span",4),t.ɵɵlistener("onClick",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext().Collapse()}),t.ɵɵtext(1,"show less"),t.ɵɵelementEnd()}}function ye(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",5),t.ɵɵlistener("onExpand",function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext().Expanded(e)}),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext();t.ɵɵproperty("ng-truncate",i.htmlcontent)("breakpoint",i.breakpoint)("breakwords",i.breakwords)}}var we,Ee=["*"];function Se(){if(n.isNode()){if(we)return we;var e=new(0,require("jsdom").JSDOM)("<!DOCTYPE html><head><title></title></head><body></body></html>");return we=e.window.document}return document}var qe=function(){function e(e,n){this._el=e,this._render=n,this._cleanups=[],this.breakpoint=768,this.breakwords={416:35,541:50,769:70,1282:90,1901:100,2048:150},this.staticbreak=null,this._content="",this.sanitize=!0,this.sanitizeCFG={RETURN_DOM_FRAGMENT:!1,RETURN_DOM:!1,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOW_UNKNOWN_PROTOCOLS:!0,KEEP_CONTENT:!0,ADD_TAGS:["meta","noscript"],ADD_ATTR:["content","itemprop","itemtype","itemscope","id","name","target"]},this.use_shave_break=!1,this.expand_bt="show more",this.collapse_bt="show less",this.auto_truncate=!0,this._expanded=!1,this._initiated=!1,this.istruncated=new t.BehaviorSubject(null),this._expandContent=new t.Subject,this._expandct=!1,this.onExpand=new t.EventEmitter,this.onContent=new t.EventEmitter}return Object.defineProperty(e.prototype,"content",{set:function(e){this._content=e||"",this._initiated&&(this._expandct?this._ShowFullCT():this._Truncate())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expandContent",{set:function(e){this._expandContent.next(e),this._expandct=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){!this._expandct&&this._content||n.isNode()?this._Truncate():this._ShowFullCT(),this._initiated=!0},e.prototype._WordCount=function(e){var t=n.trim((1==e.nodeType?e.textContent:e.wholeText)+"");return""==t?0:t.split(/\s+/g).length},e.prototype._CutHTML=function(e,t){var n=e.parentNode,r=null;if(n){for(var i=[],o=0,a=n.childNodes.length;o<a;o++){var s=n.childNodes[o];s==e?r=o:null!==r&&o>r&&(!s.tagName||"td"!==s.tagName.toLowerCase())&&i.push(s)}i.forEach(function(e){e.parentNode.removeChild(e)}),n!=t&&n&&this._CutHTML(n,t)}},e.prototype._AddExpandBT=function(e){var t=e.parentNode;t.removeChild(e),t.innerHTML=n.trim(t.innerHTML);var r=t.tagName.toLowerCase();if(n.isAny(r,["tr","tbody","thead","tfoot"])){if("table"!=r){var i=t.parentNode;for(r=i.tagName.toLowerCase();"table"!=r&&r;)r=(i=i.parentNode)&&i.tagName?i.tagName.toLowerCase():null;"table"==r&&(t=i)}t.insertAdjacentHTML("afterend",' <span class="js-shave-char cursor-pointer" role="button" tabindex="0">'+this.expand_bt+"</span>"),t.insertAdjacentText?t.insertAdjacentText("afterend","..."):t.insertAdjacentHTML("afterend","...")}else t.insertAdjacentText?t.insertAdjacentText("beforeend","..."):t.insertAdjacentHTML("beforeend","..."),"a"==r?t.insertAdjacentHTML("afterend",' <span class="js-shave-char cursor-pointer" role="button" tabindex="0">'+this.expand_bt+"</span>"):t.insertAdjacentHTML("beforeend",' <span class="js-shave-char cursor-pointer" role="button" tabindex="0">'+this.expand_bt+"</span>");this.istruncated.next(!0)},e.prototype._Shave=function(e,t){if(!(this._WordCount(e)<=t)){var n=void 0===e.textContent?"innerText":"textContent",r=e[n].split(" ");if(!(r.length<2))for(var i=r.length-1,o=0,a=void 0,s=!1;o<i;){a=o+i+1>>1;var l=r.slice(0,a).join(" ");s=l.lastIndexOf(".")>-1,e[n]=l,e.insertAdjacentHTML("beforeend",'<span class="js-shave-char cursor-pointer" role="button" tabindex="0" aria-label="'+this.expand_bt+'">'+(s?"":".")+".."+this.expand_bt+"</span>"),this._WordCount(e)>t?i=a-1:o=a}}},e.prototype._TruncateWithLimit=function(e,t){var r=Se().createElement("div");r.innerHTML=e;var i=0,o=!1,a=function(e){for(var r=0,s=e.childNodes.length;r<s;r++){var l=e.childNodes[r];if(1==l.nodeType){if(l.classList.contains("cc-list-buttons"))return!0;if(a(l))return!0}else if(3==l.nodeType){var c=l[void 0===l.textContent?"innerText":"textContent"],d=n.trim(c).split(/\s+/g);if(i+=d.length,0==c.indexOf(" ")&&(d[0]=" "+d[0]),c.lastIndexOf(" ")==c.length-1&&(d[d.length-1]+=" "),i>t){var u=i-t;if(l.nodeValue=d.slice(0,d.length-u).join(" "),l.parentNode){var p=Se().createElement("div"),h=Se().createElement("span");h.setAttribute("data-chop","auto"),p.appendChild(h);var m=Se().createElement("div");m.innerHTML=d.slice(d.length-u).join(" "),l!==l.parentNode.lastChild?l.parentNode.insertBefore(h,l.nextElementSibling):(l.parentNode.appendChild(h),l.parentNode.insertAdjacentHTML("beforeend",m.innerHTML))}return o=!0,!0}}}};if(a(r),o){var s=r.querySelector('span[data-chop="auto"]');s&&r.lastChild!==s&&(this._CutHTML(s,r),s.parentNode==r&&(r.innerHTML=r.innerHTML.split(s.outerHTML)[0]+s.outerHTML,s=r.querySelector('span[data-chop="auto"]')),this._AddExpandBT(s))}return r.innerHTML},e.prototype._Truncate=function(){var e=this;this.istruncated.next(!1);var r=this._content;if(this.staticbreak){r=r.replace(/(?:\\r\\n|\\r|\\n)/g,""),r=(r=n.trim(r)).replace("[chop]",'<span data-chop="desktop"></span>').replace("[mobilechop]","");var i=Se().createElement("div");i.innerHTML=r;var o=i.querySelector('span[data-chop="desktop"]');return o?(console.log(o),i.lastChild==o?o.parentNode.removeChild(o):(this._CutHTML(o,i),o.parentNode==i&&(i.innerHTML=i.innerHTML.split(o.outerHTML)[0]+o.outerHTML,o=i.querySelector('span[data-chop="desktop"]')),this._AddExpandBT(o),r=i.innerHTML)):this._WordCount(i)>this.staticbreak&&(r=this._TruncateWithLimit(r,this.staticbreak)),this.sanitize&&(r=n.Sanitize(r,this.sanitizeCFG)),void this._render.setProperty(this._el.nativeElement,"innerHTML",r)}if(r=(r=(r=r.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,""),r=n.trim(r),n.isNode())return this.sanitize&&(r=n.Sanitize(r,this.sanitizeCFG)),void this._render.setProperty(this._el.nativeElement,"innerHTML",r);var a=window.innerWidth||document.body.clientWidth;a<this.breakpoint&&r.indexOf("\x3c!--mobilechop--\x3e")<0&&(r=r.replace(/<!--(auto)?(mobile)?chop-->/g,""));var s=!1,l=!1;a>=this.breakpoint?r.indexOf("\x3c!--chop--\x3e")>0&&(s=!0):r.indexOf("\x3c!--chop--\x3e")>0&&r.indexOf("\x3c!--mobilechop--\x3e")<0?s=!0:r.indexOf("\x3c!--mobilechop--\x3e")>0&&(s=l=!0),s||(r=r.replace("\x3c!--chop--\x3e","").replace("\x3c!--mobilechop--\x3e","")),r=(r=(r=a>this.breakpoint?r.replace(/(<!--chop-->)\s*(<!--mobilechop-->)/,"$2$1"):r.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 c=document.createElement("div");c.innerHTML=r;var d=c.querySelector('span[data-chop="desktop"]'),u=c.querySelector('span[data-chop="mobile"]');if(!d&&!u&&!this.auto_truncate)return r=n.Sanitize(r,this.sanitizeCFG),void this._render.setProperty(this._el.nativeElement,"innerHTML",r);var p=!1,h=!!this.breakwords;if(c.lastChild==d||c.lastChild==u)h=!1,d&&c.lastChild==d&&(d.parentNode.removeChild(d),d=null,u&&c.lastChild==u&&(u.parentNode.removeChild(u),u=null)),u&&c.lastChild==u&&(u.parentNode.removeChild(u),u=null,d&&c.lastChild==d&&(d.parentNode.removeChild(d),d=null));else{if(d&&d.parentNode.lastChild==d){for(var m=d.parentNode,f=!0;m&&m!==c;){if(m.parentNode.lastChild!=m){f=!1;break}m=m.parentNode}f&&(h=!1,d.parentNode.removeChild(d),d=null)}if(u&&u.parentNode.lastChild==u){for(m=u.parentNode,f=!0;m&&m!==c;){if(m.parentNode.lastChild!=m){f=!1;break}m=m.parentNode}f&&(h=!1,u.parentNode.removeChild(u),u=null)}}if(d&&(a>this.breakpoint||!l))this._CutHTML(d,c),d.parentNode==c&&(c.innerHTML=c.innerHTML.split(d.outerHTML)[0]+d.outerHTML,d=c.querySelector('span[data-chop="desktop"]')),this._AddExpandBT(d);else if(l&&u&&a<this.breakpoint)this._CutHTML(u,c),u.parentNode==c&&(c.innerHTML=c.innerHTML.split(u.outerHTML)[0]+u.outerHTML,u=c.querySelector('span[data-chop="mobile"]')),this._AddExpandBT(u);else if(h){var g;if(n.objectForEach(this.breakwords,function(e,t){if(a<n.toNumber(t))return g=e,!1}),g)if(this.use_shave_break)this._Shave(c,g),p=!0;else if(this._WordCount(c)>g)return void this._render.setProperty(this._el.nativeElement,"innerHTML",this._TruncateWithLimit(r,g))}var _=c.innerHTML;!p&&this.sanitize&&(_=n.Sanitize(c.innerHTML,this.sanitizeCFG)),this._render.setProperty(this._el.nativeElement,"innerHTML",_),this.istruncated.pipe(t.take(1)).subscribe(function(t){n.reqAnimationFrame(function(){e.onContent.emit(t?"collapsed":"expanded")})})},e.prototype._ShowFullCT=function(){var e=this,t=this._content||"";this.sanitize&&(t=n.Sanitize(t,this.sanitizeCFG)),this.collapse_bt&&(t+='<br class="js-shave-br" /><span class="js-shave-char cursor-pointer js-shave-char-less" role="button" tabindex="0">'+this.collapse_bt+"</span>"),t=t.replace("[chop]","").replace("[mobilechop]",""),this._render.setProperty(this._el.nativeElement,"innerHTML",t),n.reqAnimationFrame(function(){e.onContent.emit("expanded")})},e.prototype.Expand=function(e){if(!n.isNode()){var t=e.target;t&&t.classList&&t.classList.contains("js-shave-char")&&(this._expanded=!this._expanded,this._expanded?this._ShowFullCT():(this._expandct=!1,this._Truncate()),this.onExpand.emit(this._expanded),n.Events.emit("$shortcodes:set"))}},e.prototype.ngAfterViewInit=function(){var e=this;n.isNode()||(this._windowobs=t.fromEvent(window,"resize"),this._windowobs.subscribe(function(){!e._content||e._expanded||e._expandct||e._Truncate()}),this._expandContent.subscribe(function(t){e._content&&(e._expanded=!t,e.Expand({target:{classList:{contains:function(){return!0}}}}))}),this._cleanups.push(this._render.listen(this._el.nativeElement,"click",function(t){e.Expand(t)})))},e.prototype.ngOnDestroy=function(){this._windowobs&&(this._windowobs=null),this._windowsubs&&this._windowsubs.unsubscribe(),this.istruncated.complete(),this._cleanups.forEach(function(e){e()})},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(t.ElementRef),t.ɵɵdirectiveInject(t.Renderer2))},e.ɵdir=t.ɵɵdefineDirective({type:e,selectors:[["","ng-truncate",""]],inputs:{breakpoint:"breakpoint",breakwords:"breakwords",staticbreak:["breakwords-static","staticbreak"],content:["ng-truncate","content"],sanitize:"sanitize",sanitizeCFG:["sanitize-cfg","sanitizeCFG"],use_shave_break:["use-shave","use_shave_break"],expand_bt:["expand-button","expand_bt"],collapse_bt:["collapse-button","collapse_bt"],auto_truncate:["auto-trim","auto_truncate"],expandContent:["expand-content","expandContent"]},outputs:{onExpand:"onExpand",onContent:"onContent"}}),e}(),Ce=(function(){function e(e,n){this._cd=e,this._render=n,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="",this.onExpand=new t.EventEmitter}e.prototype.Expanded=function(e){if(e&&(this.hide_org_content=!1,"permanent"==this.expand_mode&&(this.perma_expand=!0)),this.onExpand.emit(e),this._cd.detectChanges(),this.contentBox&&this.contentBox.nativeElement)for(var t=this.contentBox.nativeElement,n=function(e,n){var r=t.childNodes[e];return r.focus&&(r.setAttribute("tabindex","0"),r.focus(),setTimeout(function(){r.focus()})),"break"},r=0,i=t.childNodes.length;r<i;r++){if("break"===n(r))break}},e.prototype.Collapse=function(){this.hide_org_content=!0,this._cd.detectChanges()},e.prototype.ngOnInit=function(){var e=this;this.hide_org_content=!n.isNode(),n.isNode()?(this.hide_org_content=!1,this.perma_expand=!0):this._observer=new MutationObserver(function(t){e.htmlcontent=e.contentBox.nativeElement.innerHTML,n.reqAnimationFrame(function(){e._cd.detectChanges()})})},e.prototype.ngAfterViewInit=function(){var e=this;n.isNode()||(this.htmlcontent=this.contentBox.nativeElement.innerHTML,n.reqAnimationFrame(function(){e._cd.detectChanges()}),this._observer.observe(this.contentBox.nativeElement,{attributes:!1,childList:!0,characterData:!0}))},e.prototype.ngOnDestroy=function(){this._observer.disconnect()},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(t.ChangeDetectorRef),t.ɵɵdirectiveInject(t.Renderer2))},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["ng-truncate"]],viewQuery:function(e,n){if(1&e&&t.ɵɵviewQuery(xe,5),2&e){var r;t.ɵɵqueryRefresh(r=t.ɵɵloadQuery())&&(n.contentBox=r.first)}},inputs:{breakpoint:"breakpoint",breakwords:"breakwords",expand_mode:["expand","expand_mode"]},outputs:{onExpand:"onExpand"},ngContentSelectors:Ee,decls:5,vars:3,consts:[[3,"ng-hidden"],["content",""],["class","js-shave-char cursor-pointer js-shave-char-expanded","zing-touch","","role","button","tabindex","0",3,"onClick",4,"ngIf"],[3,"ng-truncate","breakpoint","breakwords","onExpand",4,"ngIf"],["zing-touch","","role","button","tabindex","0",1,"js-shave-char","cursor-pointer","js-shave-char-expanded",3,"onClick"],[3,"ng-truncate","breakpoint","breakwords","onExpand"]],template:function(e,n){1&e&&(t.ɵɵprojectionDef(),t.ɵɵelementStart(0,"div",0,1),t.ɵɵprojection(2),t.ɵɵelementEnd(),t.ɵɵtemplate(3,be,2,0,"span",2),t.ɵɵtemplate(4,ye,1,3,"div",3)),2&e&&(t.ɵɵproperty("ng-hidden",n.hide_org_content),t.ɵɵadvance(3),t.ɵɵproperty("ngIf",!n.hide_org_content&&!n.perma_expand),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.hide_org_content))},directives:[n.ngHidden,t.NgIf,n.TouchGestures,qe],encapsulation:2,changeDetection:0})}(),function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=t.ɵɵdefineNgModule({type:e}),e.ɵinj=t.ɵɵdefineInjector({imports:[[t.CommonModule,n.DirectivesModule]]}),e}()),Te=["txtElement"],ke=["quesOverlay"],Ie=["ques_answer"],Ae=["id","qna-box"];function ze(e,n){if(1&e&&(t.ɵɵelementStart(0,"span",21),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var r=t.ɵɵnextContext(2);t.ɵɵadvance(1),t.ɵɵtextInterpolate1("(",r.schq_count,")")}}var Le=function(e,t,n){return{"light-font qnah-1":e,"qnah-2 bold-font":t,"qnah-1 qnah-3 extra-bold-font":n}};function Me(e,n){if(1&e&&(t.ɵɵelementStart(0,"h2",19),t.ɵɵtext(1),t.ɵɵtemplate(2,ze,2,1,"span",20),t.ɵɵelementEnd()),2&e){var r=t.ɵɵnextContext();t.ɵɵproperty("ngClass",t.ɵɵpureFunction3(3,Le,0==r.layout_type,1==r.layout_type,2==r.layout_type)),t.ɵɵadvance(1),t.ɵɵtextInterpolate1("",r.section_title," "),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",1==r.layout_type&&r.schq_count)}}function Oe(e,n){if(1&e&&(t.ɵɵelementStart(0,"p",22),t.ɵɵelementStart(1,"span"),t.ɵɵtext(2),t.ɵɵelementEnd(),t.ɵɵtext(3,"For more general questions, visit our "),t.ɵɵelementStart(4,"a",23),t.ɵɵtext(5,"Answers section."),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e){var r=t.ɵɵnextContext();t.ɵɵadvance(2),t.ɵɵtextInterpolate1("Get answers to your questions about ",r.product_name," below. "),t.ɵɵadvance(2),t.ɵɵproperty("zing-url",!0)}}function Ne(e,n){if(1&e&&t.ɵɵelement(0,"p",24),2&e){var r=t.ɵɵnextContext();t.ɵɵproperty("zing-url-container",!0)("ng-truncate",r.intro_content)("breakwords",r.truncateBreakwords)("breakpoint",480)}}function Fe(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"span",35),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext(2).QClear()}),t.ɵɵelementEnd()}}function je(e,n){1&e&&(t.ɵɵelementStart(0,"span"),t.ɵɵtext(1,"Don't see what you're looking for?"),t.ɵɵelementEnd())}function He(e,n){1&e&&(t.ɵɵelementStart(0,"div",36),t.ɵɵtext(1,"MATCHING RESULTS"),t.ɵɵelementEnd())}function Pe(e,n){1&e&&(t.ɵɵelementStart(0,"div",36),t.ɵɵtext(1,"NO MATCHING RESULTS"),t.ɵɵelementEnd())}function Re(e,n){1&e&&(t.ɵɵelementStart(0,"div",36),t.ɵɵtext(1,"Searching for answers..."),t.ɵɵelementEnd())}function Ve(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",25),t.ɵɵelementStart(1,"div",26),t.ɵɵelementStart(2,"textarea",27),t.ɵɵlistener("input",function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext().SearchInput(e)}),t.ɵɵelementEnd(),t.ɵɵtemplate(3,Fe,1,0,"span",28),t.ɵɵelementStart(4,"button",29),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext().QSearch()}),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"div",30),t.ɵɵtemplate(6,je,2,0,"span",31),t.ɵɵelementStart(7,"button",32),t.ɵɵlistener("click",function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext().AskQuestion(e)}),t.ɵɵtext(8,"Ask Your Question"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(9,"div",33),t.ɵɵtemplate(10,He,2,0,"div",34),t.ɵɵtemplate(11,Pe,2,0,"div",34),t.ɵɵtemplate(12,Re,2,0,"div",34),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext();t.ɵɵadvance(1),t.ɵɵproperty("scroll-to",i.focus_on_input),t.ɵɵadvance(1),t.ɵɵproperty("value",i.search_value),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.search_value),t.ɵɵadvance(1),t.ɵɵproperty("ng-hidden",!!i.search_value),t.ɵɵadvance(1),t.ɵɵclassProp("qna-aq-ss",i.noresults),t.ɵɵproperty("ng-hidden",!(i.show_search_state||i.show_search_state_empty)),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.show_search_state&&!i.noresults),t.ɵɵadvance(4),t.ɵɵproperty("ngIf",i.show_search_state&&!i.search_loading),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.show_search_state_empty&&!i.search_loading),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.search_loading)}}function Be(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"span",37),t.ɵɵlistener("onTap",function(){var e=t.ɵɵrestoreView(r).index;return t.ɵɵnextContext().ChangeSort(e)}),t.ɵɵtext(1),t.ɵɵelementEnd()}if(2&e){var i=n.$implicit,o=n.index,a=t.ɵɵnextContext();t.ɵɵclassProp("qnaml-first",0==o),t.ɵɵproperty("focus-when",a.sort_list_opened&&0==o)("no-click",!0),t.ɵɵadvance(1),t.ɵɵtextInterpolate(i)}}function De(e,n){1&e&&t.ɵɵelement(0,"div",46)}function $e(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",38),t.ɵɵtemplate(1,De,1,0,"div",39),t.ɵɵelementStart(2,"div",40),t.ɵɵelementStart(3,"div",41),t.ɵɵelement(4,"img",42),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"div",43),t.ɵɵelementStart(6,"textarea",44),t.ɵɵlistener("input",function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext().ques_ask=e.target.value}),t.ɵɵelementEnd(),t.ɵɵelementStart(7,"button",45),t.ɵɵlistener("click",function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext().AskQuestion(e)}),t.ɵɵtext(8,"Ask your Question"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext();t.ɵɵadvance(1),t.ɵɵproperty("ngIf",0==i.schquestions.length),t.ɵɵadvance(3),t.ɵɵproperty("src",i.user_avatar,t.ɵɵsanitizeUrl)("on-img-error",i.user_avatar_fallback),t.ɵɵadvance(1),t.ɵɵproperty("scroll-to",i.focus_on_input),t.ɵɵadvance(1),t.ɵɵproperty("value",i.ques_ask)}}function Qe(e,n){1&e&&(t.ɵɵelementStart(0,"div",50),t.ɵɵelementStart(1,"div",51),t.ɵɵelement(2,"i"),t.ɵɵelementEnd(),t.ɵɵelementEnd())}function Ge(e,n){if(1&e&&t.ɵɵelement(0,"a",75),2&e){var r=t.ɵɵnextContext().$implicit;t.ɵɵclassProp("qt-as-link",r.from_search),t.ɵɵproperty("href",r.ques_href||"/answers/"+r.ques_fullslug,t.ɵɵsanitizeUrl)("zing-url",!0)("cleanHTML",r.ques_title)("focus-when",r.focuson)("no-click",!0)}}function Ue(e,n){if(1&e&&t.ɵɵelement(0,"span",76),2&e){var r=t.ɵɵnextContext().$implicit;t.ɵɵclassProp("qt-as-link",r.from_search),t.ɵɵproperty("cleanHTML",r.ques_title)}}function We(e,n){if(1&e&&t.ɵɵelement(0,"p",77),2&e){var r=t.ɵɵnextContext().$implicit;t.ɵɵproperty("cleanHTML",r.ques_content_cut_mob)}}function Ye(e,n){if(1&e&&t.ɵɵelement(0,"p",78),2&e){var r=t.ɵɵnextContext().$implicit;t.ɵɵproperty("cleanHTML",r.ques_content_cut_desk)}}function Je(e,n){1&e&&(t.ɵɵelementStart(0,"span",79),t.ɵɵtext(1,"..."),t.ɵɵelementEnd())}function Xe(e,n){if(1&e&&t.ɵɵelement(0,"p",77),2&e){var r=t.ɵɵnextContext().$implicit;t.ɵɵproperty("cleanHTML",r.ques_content_more)}}function Ze(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"span",80),t.ɵɵlistener("onTap",function(){t.ɵɵrestoreView(r);var e=t.ɵɵnextContext().$implicit;return t.ɵɵnextContext(2).ExpandContent(e.id,"question")}),t.ɵɵtext(1,"show more"),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext().$implicit,o=t.ɵɵnextContext(2);t.ɵɵproperty("ng-hidden",o.questionexpand[i.id])}}function Ke(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"span",81),t.ɵɵlistener("onTap",function(){t.ɵɵrestoreView(r);var e=t.ɵɵnextContext().$implicit;return t.ɵɵnextContext(2).ExpandContent(e.id,"question")}),t.ɵɵtext(1,"show less"),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext().$implicit,o=t.ɵɵnextContext(2);t.ɵɵproperty("ng-hidden",!o.questionexpand[i.id])}}function et(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",82),t.ɵɵlistener("click",function(){t.ɵɵrestoreView(r);var e=t.ɵɵnextContext().$implicit;return t.ɵɵnextContext(2).ShowReplybox(e.id)}),t.ɵɵtext(1,"Reply"),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext().$implicit;t.ɵɵproperty("focus-when",i.reply_bt_focus)("no-click",!0)}}function tt(e,n){1&e&&t.ɵɵelement(0,"span",83)}function nt(e,n){1&e&&t.ɵɵelement(0,"span",83)}function rt(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"form",84),t.ɵɵlistener("onSubmit",function(){t.ɵɵrestoreView(r);var e=t.ɵɵnextContext().$implicit;return t.ɵɵnextContext(2).SubmitReply(e)}),t.ɵɵelementStart(1,"div",85),t.ɵɵelement(2,"img",86),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"div",87),t.ɵɵelementStart(4,"ck-editor",88),t.ɵɵlistener("valueChange",function(e){t.ɵɵrestoreView(r);var n=t.ɵɵnextContext().$implicit;return t.ɵɵnextContext(2).ReplyInput(e,n.id)}),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"div",89),t.ɵɵelement(6,"error-toast",90),t.ɵɵelementStart(7,"button",91),t.ɵɵlistener("click",function(){t.ɵɵrestoreView(r);var e=t.ɵɵnextContext().$implicit;return t.ɵɵnextContext(2).ShowReplybox(e.id)}),t.ɵɵtext(8,"Cancel"),t.ɵɵelementEnd(),t.ɵɵelementStart(9,"button",92),t.ɵɵelementStart(10,"span"),t.ɵɵtext(11,"Reply"),t.ɵɵelementEnd(),t.ɵɵelement(12,"i",93),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext().$implicit,o=t.ɵɵnextContext(2);t.ɵɵadvance(2),t.ɵɵproperty("src",o.user_avatar,t.ɵɵsanitizeUrl)("on-img-error",o.user_avatar_fallback),t.ɵɵadvance(2),t.ɵɵproperty("value",o.replyboxinput[i.id])("active",!0)("cursor-focus",o.replyboxshow[i.id])("readonly",o.replyinprogress[i.id]),t.ɵɵadvance(2),t.ɵɵproperty("message",null==o.replyerror[i.id]?null:o.replyerror[i.id].message)("show",null==o.replyerror[i.id]?null:o.replyerror[i.id].show)("close-on-change",!0)("timer",3e3),t.ɵɵadvance(1),t.ɵɵproperty("disabled",o.replyinprogress[i.id]),t.ɵɵadvance(2),t.ɵɵclassProp("loadactive",o.replyinprogress[i.id]),t.ɵɵproperty("disabled",o.replyinprogress[i.id])}}function it(e,n){if(1&e&&(t.ɵɵelementStart(0,"span",109),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var r=t.ɵɵnextContext(2).$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate1(", ",r.user_title,"")}}function ot(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",106),t.ɵɵelement(1,"span",107),t.ɵɵtemplate(2,it,2,1,"span",108),t.ɵɵelementEnd()),2&e){var r=t.ɵɵnextContext().$implicit;t.ɵɵadvance(1),t.ɵɵproperty("ng-context",r.user_fullname||r.user_login),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",r.user_title)}}function at(e,n){if(1&e&&(t.ɵɵelementContainerStart(0),t.ɵɵtext(1),t.ɵɵelementContainerEnd()),2&e){var r=t.ɵɵnextContext().$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(r.user_login)}}function st(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"span",114),t.ɵɵlistener("onTap",function(){var e=t.ɵɵrestoreView(r).index,n=t.ɵɵnextContext(2).$implicit;return t.ɵɵnextContext(3).AnsOpt(e,n)}),t.ɵɵtext(1),t.ɵɵelementEnd()}if(2&e){var i=n.$implicit,o=n.index;t.ɵɵclassProp("qnaml-first",0==o),t.ɵɵadvance(1),t.ɵɵtextInterpolate(i)}}function lt(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",110),t.ɵɵelementStart(1,"span",111),t.ɵɵlistener("onTap",function(){t.ɵɵrestoreView(r);var e=t.ɵɵnextContext().$implicit;return t.ɵɵnextContext(3).ControlAnsOpt(e)})("onTapOutside",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext().$implicit.options_list_opened=!1}),t.ɵɵelementEnd(),t.ɵɵelementStart(2,"div",112),t.ɵɵlistener("onTap",function(e){return e.stopPropagation()}),t.ɵɵtemplate(3,st,2,3,"span",113),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext().$implicit,o=t.ɵɵnextContext(3);t.ɵɵadvance(2),t.ɵɵproperty("ng-hidden",!i.options_list_opened),t.ɵɵadvance(1),t.ɵɵproperty("ngForOf",o.ansOptions)("ngForTrackBy",o.trackByFn)}}function ct(e,n){1&e&&t.ɵɵelement(0,"span",83)}function dt(e,n){1&e&&t.ɵɵelement(0,"span",83)}var ut=function(){return{attribute:"itemprop",value:"upvoteCount"}},pt=function(e){return[e]},ht=function(){return{attribute:"itemprop",value:"downvoteCount"}};function mt(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",66),t.ɵɵelementStart(1,"div",115),t.ɵɵlistener("onTap",function(){t.ɵɵrestoreView(r);var e=t.ɵɵnextContext().$implicit;return t.ɵɵnextContext(3).RateContent(e,"up")}),t.ɵɵtemplate(2,ct,1,0,"span",116),t.ɵɵelementStart(3,"span",117),t.ɵɵtext(4),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"div",70),t.ɵɵlistener("onTap",function(){t.ɵɵrestoreView(r);var e=t.ɵɵnextContext().$implicit;return t.ɵɵnextContext(3).RateContent(e,"down")}),t.ɵɵtemplate(6,dt,1,0,"span",116),t.ɵɵelementStart(7,"span",117),t.ɵɵtext(8),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext(),o=i.$implicit,a=i.index,s=t.ɵɵnextContext(3);t.ɵɵadvance(1),t.ɵɵclassProp("visible",o.voteinprogress),t.ɵɵproperty("zing-no-touch",!0),t.ɵɵattribute("aria-label",o.upvotelabel),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",o.voteinprogress),t.ɵɵadvance(1),t.ɵɵproperty("ng-attribute",t.ɵɵpureFunction1(17,pt,t.ɵɵpureFunction0(16,ut)))("ng-attribute-when",s.toggleSchema&&0==a),t.ɵɵadvance(1),t.ɵɵtextInterpolate(o.upvote),t.ɵɵadvance(1),t.ɵɵclassProp("visible",o.downvoteinprogress),t.ɵɵproperty("zing-no-touch",!0),t.ɵɵattribute("aria-label",o.dnvotelabel),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",o.downvoteinprogress),t.ɵɵadvance(1),t.ɵɵproperty("ng-attribute",t.ɵɵpureFunction1(20,pt,t.ɵɵpureFunction0(19,ht)))("ng-attribute-when",s.toggleSchema&&0==a),t.ɵɵadvance(1),t.ɵɵtextInterpolate(o.downvote)}}var ft=function(){return{416:35,541:50,769:70,2800:90}},gt=function(){return{attribute:"itemprop",value:"text"}};function _t(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",94),t.ɵɵelementStart(1,"div",95),t.ɵɵelementStart(2,"div",96),t.ɵɵelement(3,"img",97,98),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"div",99),t.ɵɵtemplate(6,ot,3,2,"div",100),t.ɵɵelementStart(7,"div",101),t.ɵɵtemplate(8,at,2,1,"ng-container",31),t.ɵɵelementEnd(),t.ɵɵtemplate(9,lt,4,3,"div",102),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(10,"span",103),t.ɵɵtext(11),t.ɵɵelementEnd(),t.ɵɵelementStart(12,"div",104),t.ɵɵlistener("onExpand",function(){var e=t.ɵɵrestoreView(r).$implicit;return t.ɵɵnextContext(3).AnswerExpanded(e)}),t.ɵɵelementEnd(),t.ɵɵtemplate(13,mt,9,22,"div",105),t.ɵɵelementEnd()}if(2&e){var i=n.$implicit,o=n.index,a=t.ɵɵnextContext(),s=a.$implicit,l=a.index,c=t.ɵɵnextContext(2);t.ɵɵproperty("ng-hidden",!(0==o||c.question_more_answers[s.id]||1==o&&s.answers[0].my_ans))("ng-attribute",c.aschemascope)("ng-attribute-when",c.toggleSchema&&0==o),t.ɵɵadvance(2),t.ɵɵproperty("defer-src",i.user_avatar)("src-fallback",c.user_avatar_fallback),t.ɵɵadvance(4),t.ɵɵproperty("ngIf",i.user_fullname||i.user_login),t.ɵɵadvance(2),t.ɵɵproperty("ngIf",i.user_login),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",null==i?null:i.is_reportable),t.ɵɵadvance(1),t.ɵɵattribute("id","ans-desc-"+i.id),t.ɵɵadvance(1),t.ɵɵtextInterpolate1("Answer provided by user: ",i.user_fullname||i.user_login,""),t.ɵɵadvance(1),t.ɵɵproperty("zing-url-container",!0)("expand-content",0==o&&0==l&&!c.search_loading&&!(c.show_search_state||c.show_search_state_empty))("breakwords",t.ɵɵpureFunction0(21,ft))("collapse-button",0!=o||0!=l||c.show_search_state||c.show_search_state_empty?"show less":"")("ng-truncate",i.content_long)("sanitize-cfg",i.sanitizecfg)("ng-attribute",t.ɵɵpureFunction1(23,pt,t.ɵɵpureFunction0(22,gt)))("ng-attribute-when",c.toggleSchema&&0==o),t.ɵɵattribute("data-pos",i.stackid)("aria-describedby","ans-desc-"+i.id),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!c.IsSpecial(i.id))}}function vt(e,n){1&e&&(t.ɵɵelementStart(0,"div",122),t.ɵɵelement(1,"i"),t.ɵɵelementEnd())}function xt(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",118),t.ɵɵtemplate(1,vt,2,0,"div",119),t.ɵɵelementStart(2,"span",120),t.ɵɵlistener("onTap",function(){t.ɵɵrestoreView(r);var e=t.ɵɵnextContext(),n=e.$implicit,i=e.index;return t.ɵɵnextContext(2).ViewMoreAns(n,i)}),t.ɵɵtext(3," View more answers "),t.ɵɵelement(4,"i",121),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext().$implicit,o=t.ɵɵnextContext(2);t.ɵɵadvance(1),t.ɵɵproperty("ngIf",o.answersmore[i.id])}}var bt=function(){return{attribute:"itemprop",value:"name"}};function yt(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"article",52),t.ɵɵelementStart(1,"h3",53),t.ɵɵtemplate(2,Ge,1,7,"a",54),t.ɵɵtemplate(3,Ue,1,3,"span",55),t.ɵɵelementEnd(),t.ɵɵelementStart(4,"div",56),t.ɵɵelementStart(5,"div",57),t.ɵɵtext(6),t.ɵɵelementEnd(),t.ɵɵelementStart(7,"span",58),t.ɵɵtext(8),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵtemplate(9,We,1,1,"p",59),t.ɵɵtemplate(10,Ye,1,1,"p",60),t.ɵɵtemplate(11,Je,2,0,"span",61),t.ɵɵtemplate(12,Xe,1,1,"p",59),t.ɵɵtemplate(13,Ze,2,1,"span",62),t.ɵɵtemplate(14,Ke,2,1,"span",63),t.ɵɵelementStart(15,"div",64),t.ɵɵtemplate(16,et,2,2,"div",65),t.ɵɵelementStart(17,"div",66),t.ɵɵelementStart(18,"div",67),t.ɵɵlistener("onTap",function(){var e=t.ɵɵrestoreView(r).$implicit;return t.ɵɵnextContext(2).RateContent(e,"up")}),t.ɵɵtemplate(19,tt,1,0,"span",68),t.ɵɵelementStart(20,"span",69),t.ɵɵtext(21),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(22,"div",70),t.ɵɵlistener("onTap",function(){var e=t.ɵɵrestoreView(r).$implicit;return t.ɵɵnextContext(2).RateContent(e,"down")}),t.ɵɵtemplate(23,nt,1,0,"span",68),t.ɵɵelementStart(24,"span",69),t.ɵɵtext(25),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵtemplate(26,rt,13,14,"form",71),t.ɵɵelementStart(27,"div",72),t.ɵɵtemplate(28,_t,14,25,"div",73),t.ɵɵtemplate(29,xt,5,1,"div",74),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var i=n.$implicit,o=t.ɵɵnextContext(2);t.ɵɵclassProp("qna-q-search",i.from_search),t.ɵɵproperty("ng-attribute",o.qschemascope)("ng-attribute-when",o.questionToggleSchema(i)),t.ɵɵadvance(1),t.ɵɵproperty("ng-attribute",t.ɵɵpureFunction1(37,pt,t.ɵɵpureFunction0(36,bt)))("ng-attribute-when",o.questionToggleSchema(i)),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.ques_href||i.ques_fullslug),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!i.ques_href&&!i.ques_fullslug),t.ɵɵadvance(2),t.ɵɵproperty("ng-attribute",t.ɵɵpureFunction1(40,pt,t.ɵɵpureFunction0(39,ut)))("ng-attribute-when",o.questionToggleSchema(i)),t.ɵɵadvance(1),t.ɵɵtextInterpolate(i.upvote),t.ɵɵadvance(2),t.ɵɵtextInterpolate1("Upvote",1!=i.upvote?"s":"",""),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!o.questionexpand[i.id]&&i.ques_content_cut_mob),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!o.questionexpand[i.id]&&i.ques_content_cut_desk),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!o.questionexpand[i.id]&&i.ques_content_has_more),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",(o.questionexpand[i.id]||!i.ques_content_cut_mob)&&i.ques_content_more),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.ques_content_has_more),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.ques_content_has_more),t.ɵɵadvance(2),t.ɵɵproperty("ngIf",!o.IsSpecial(i.id)),t.ɵɵadvance(2),t.ɵɵclassProp("visible",i.voteinprogress),t.ɵɵproperty("zing-no-touch",!0),t.ɵɵattribute("aria-label",i.upvotelabel),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.voteinprogress),t.ɵɵadvance(2),t.ɵɵtextInterpolate(i.upvote),t.ɵɵadvance(1),t.ɵɵclassProp("visible",i.downvoteinprogress),t.ɵɵproperty("zing-no-touch",!0),t.ɵɵattribute("aria-label",i.dnvotelabel),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.downvoteinprogress),t.ɵɵadvance(2),t.ɵɵtextInterpolate(i.downvote),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",o.replyboxshow[i.id]),t.ɵɵadvance(1),t.ɵɵproperty("ng-hidden",!i.answers||i.answers.length<1),t.ɵɵadvance(1),t.ɵɵproperty("ngForOf",i.answers)("ngForTrackBy",o.trackByFn),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.has_more_answers)}}function wt(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",47),t.ɵɵtemplate(1,Qe,3,0,"div",48),t.ɵɵtemplate(2,yt,30,42,"article",49),t.ɵɵelementEnd()),2&e){var r=t.ɵɵnextContext();t.ɵɵclassProp("qna-qb-loading",r.search_loading||r.questions_more),t.ɵɵproperty("ng-hidden",r.resultserror||r.load_startup||r.load_startup_fail)("ng-attribute",r.qschemapage)("ng-attribute-when",r.sectionToggleSchema()),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",r.search_loading||r.questions_more),t.ɵɵadvance(1),t.ɵɵproperty("ngForOf",r.schquestions)("ngForTrackBy",r.trackByFn)}}function Et(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"button",127),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext(2).ViewMoreQuestions()}),t.ɵɵelementStart(1,"span",128),t.ɵɵelementStart(2,"span",126),t.ɵɵtext(3,"View "),t.ɵɵelementEnd(),t.ɵɵtext(4,"More Questions"),t.ɵɵelementEnd(),t.ɵɵelement(5,"i",93),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext(2);t.ɵɵclassProp("loadactive",i.questions_more)}}function St(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",123),t.ɵɵtemplate(1,Et,6,2,"button",124),t.ɵɵelementStart(2,"button",125),t.ɵɵlistener("click",function(e){return t.ɵɵrestoreView(r),t.ɵɵnextContext().AskQuestion(e)}),t.ɵɵtext(3,"Ask "),t.ɵɵelementStart(4,"span",126),t.ɵɵtext(5,"Your"),t.ɵɵelementEnd(),t.ɵɵtext(6," Question"),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext();t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.has_more_ques)}}function qt(e,n){1&e&&(t.ɵɵelementStart(0,"div",129),t.ɵɵelementStart(1,"div",51),t.ɵɵelement(2,"i"),t.ɵɵelementEnd(),t.ɵɵelementEnd())}function Ct(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",130),t.ɵɵelementStart(1,"p",131),t.ɵɵtext(2,"Oops there was a problem retrieving data"),t.ɵɵelementEnd(),t.ɵɵelement(3,"br"),t.ɵɵelementStart(4,"div",132),t.ɵɵelementStart(5,"button",133),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext().RetryLoadData()}),t.ɵɵtext(6,"Retry"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()}}var Tt=function(e){return{"ng-enter-element":e}};require("systemjs").import("css:/components/qna-comp.css").then(function(){}).catch(function(){});var kt=function(){function e(e,r,i,o,a){this._zone=e,this._location=r,this._sanitize=i,this._route=o,this._dservice=a,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.show_header=!0,this.ask_quest_categories=null,this._qType=new t.BehaviorSubject(""),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.is_android=!1,this.current_page=1,this.schquestions=[],this.total_ques=new t.EventEmitter,this.replyboxinput={},this.replyboxinputsubmited={},this.replyinprogress={},this.replyerror={},this.replyboxshow={},this.sortList=["Most Popular","Most Upvotes"],this.sortv="",this.sort_list_opened=!1,this.user_avatar_fallback="https://d2e70e9yced57e.cloudfront.net/wallethub/images/profile/avatars/silhouette-50_V1d9a2cc_.png",this.ques_ask="",this.ansOptions=["Report"],this._open_popup=!1,this.page_query=null,this.allow_animation=!1,this.live_status="",this.answers_link=n.baseUrl()+"/answers/",n.isNode()||(this.is_android=null!=navigator.userAgent.match(/Android/i)||navigator.platform&&null!=navigator.platform.match(/Android/i))}return Object.defineProperty(e.prototype,"search_value",{get:function(){return this._qType.getValue()},enumerable:!1,configurable:!0}),e.prototype.questionToggleSchema=function(e){return this.toggleSchema&&!(!e.answers||e.answers.length<1)},e.prototype.sectionToggleSchema=function(){return!!(this.toggleSchema&&this._has_answer&&this.schquestions.length>0)},Object.defineProperty(e.prototype,"show_search_state",{get:function(){return this.search_value&&this.search_value.length>1&&!this.noresults&&!this.resultserror},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"show_search_state_empty",{get:function(){return this.search_value&&this.search_value.length>1&&this.noresults&&!this.resultserror},enumerable:!1,configurable:!0}),Object.defineProperty(e.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(e.prototype,"open_popup",{get:function(){return this._open_popup},set:function(e){this._open_popup=e,e&&this.AskQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(e.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}),e.prototype.trackByFn=function(e){return e},e.prototype._ParseQuestions=function(e,t,r){var i=this,o=[];return n.arrayForEach(e,function(e,a){if(null==e)return!0;var s=e;if(s.ques_title=e.ques_content,delete s.ques_content,s.ques_content_more=s.ques_more_info||s.ques_content_more||"",s.ques_more_info&&delete s.ques_more_info,s.ques_content_more.length>138&&(s.ques_content_cut_mob=s.ques_content_more.substring(0,138),s.ques_content_has_more=!0),s.ques_content_more.length>330?s.ques_content_cut_desk=s.ques_content_more.substring(138,330):s.ques_content_more.length>138&&(s.ques_content_cut_mob=s.ques_content_more,s.ques_content_has_more=!1),!s.ques_fullslug&&s.ques_slug&&(s.ques_fullslug=s.ques_slug+"-"+s.id.toString()),s.upvotelabel=s.upvote+" up vote"+(1!=s.upvote?"s":""),s.dnvotelabel=s.downvote+" down vote"+(1!=s.upvote?"s":""),t){var l=t(s,a);if("boolean"==typeof l&&!l)return!0}var c=a;n.isArray(i.schquestions)&&(c+=i.schquestions.length),i._ParseAnswers(s,c,null,0,r),o.push(s)}),o},e.prototype._ParseAnswers=function(e,t,r,i,o){var a=this,s=r||e.answers||[];n.isArray(s)&&(e.answers=r?e.answers:[],s.length>0&&!this._has_answer&&(this._has_answer=!0),s.forEach(function(r,i){var s=r;s.user_login&&(s.user_login="@"+s.user_login),s.user_fullname=n.trim(s.user_fullname||""),n.isArray(s.content)?(s.content_cut=s.content[0]||s.content[1],a.answers_content_clipped&&!e.from_search?(s.content_long=s.content[0],delete s.content_cut):s.content[0]?s.content_long=s.content[1]:(s.content_long=s.content_cut,delete s.content_cut)):(s.content_long=s.content,a.answers_content_clipped=!0),delete s.content,s.content_cut&&"string"==typeof s.content_cut&&(s.content_cut=s.content_cut.replace("[[:hellip:]]","...")),0!=t||e.from_search||e.answers.length||(s.content_long||(s.content_long=s.content_cut),delete s.content_cut,a.answerexpand[s.id]=!0),a.signon&&a.signon.id==s.uid&&(a.replyboxinputsubmited[e.id]=s.content_long||s.content_cut),s.content_cut&&(s.content_cut=a._FormatAnswer(s.content_cut)),s.content_long&&(s.content_long=a._FormatAnswer(s.content_long));var l=o?o(s,e,i):null;("boolean"!=typeof l||l)&&(e.answers.push(s),s.stackid=t.toString()+"-"+e.answers.indexOf(s).toString()),s.is_reportable=!1,s.sanitizecfg={RETURN_DOM_FRAGMENT:!1,RETURN_DOM:!1,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOW_UNKNOWN_PROTOCOLS:!0,KEEP_CONTENT:!0,ADD_TAGS:["meta","noscript"],ADD_ATTR:["content","itemprop","itemtype","itemscope","id","name","target","allow","allowfullscreen","frameborder"]},s.upvotelabel=s.upvote+" up vote"+(1!=s.upvote?"s":""),s.dnvotelabel=s.downvote+" down vote"+(1!=s.upvote?"s":""),(a.IsSpecial(s.id)||n.isAny(s.uid,[13302181,15780064,13301077,15679068,15598394,16156697]))&&s.sanitizecfg.ADD_TAGS.push("iframe")}),e.has_more_answers=(e.total_answers||0)>e.answers.length||e.answers.length>1&&!this.question_more_answers[e.id],void 0!==i&&!isNaN(parseInt(i.toString()))&&i>0&&(e.has_more_answers=!0)),n.reqAnimationFrame(function(){n.Events.emit("$shortcodes:set")})},e.prototype._FormatAnswer=function(e){try{e=(e=(e=e.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(t){e=""}return e},e.prototype.SearchInput=function(e){var t=e.target.value;this._qType.next(t)},e.prototype.ControlSortList=function(e){this.sort_list_opened="boolean"==typeof e?e:!this.sort_list_opened},e.prototype.ExpandContent=function(e,t){this[t+"expand"][e]=!this[t+"expand"][e]},e.prototype.RateContent=function(e,t){var r=this;if(void 0===t&&(t="up"),n.isObject(this.signon)&&"id"in this.signon||!n.isWeb()){if(!e.voteinprogress&&!e.downvoteinprogress){e.voteinprogress="up"==t,e.downvoteinprogress="down"==t;var i=e.id,o=e.answers||e.ques_title?"question":"answer",a=o,s=(e.id+"").match(/^([abceq])(\d+)$/);s&&(i=parseInt(s.pop()),a=s.pop(),~["q","a"].indexOf(a)||(a="q"+a)),n.$httpAbort("content-vote-"+e.id),clearTimeout(this.live_status_timer),n.$http({url:n.ajaxUrl(),data:{action:"Answers.Vote",id:i,kind:a,dir:"down"==t?"dn":"up"},id:"content-vote-"+e.id,before:function(){e.voteinprogress="up"==t,e.downvoteinprogress="down"==t,r.live_status="Voting "+o},after:function(){e.voteinprogress=!1,e.downvoteinprogress=!1},headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(function(n){if(r.live_status="",n.error)throw Error("response error");e.upvote=n.votes_up,e.downvote=n.votes_dn,e.upvotelabel=e.upvote+" "+t+" vote"+(1!=e.upvote?"s":""),e.dnvotelabel=e.downvote+" "+t+" vote"+(1!=e.downvote?"s":""),r.live_status="up"==t?e.upvotelabel:e.dnvotelabel,n.upClass&&(e.upvotelabel+=". Pressed"),n.dnClass&&(e.dnvotelabel+=". Pressed"),r.live_status_timer=setTimeout(function(){r.live_status=""},1e3)}).catch(function(e){e instanceof Error?(n.Events.emit("$server:error",{data:e.message}),r.live_status="Error saving your vote"):401==e.status&&(r.live_status="You must be logged in to vote",n.isWeb()&&(top.location.href="/join/light?redirect_to="+encodeURIComponent(document.location.href))),r.live_status_timer=setTimeout(function(){r.live_status=""},1e3)})}}else top.location.href="/join/light?redirect_to="+encodeURIComponent(document.location.href)},e.prototype.IsSpecial=function(e){return~["c","b","e"].indexOf((e+"").charAt(0))},e.prototype.ControlAnsOpt=function(e){e.options_list_opened=!e.options_list_opened},e.prototype.AnsOpt=function(e,t){var r=n.stringGetDigits(t.id);0==e&&window.open("/report-abuse/?ru="+location.href.split("?")[0].split("#")[0]+"&t=a&id="+r,"_self")},e.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},e.prototype.ShowReplybox=function(e){this.replyinprogress[e]||(this.replyboxshow[e]=!this.replyboxshow[e],this.replyboxshow[e]?this.replyboxinput[e]=this.replyboxinputsubmited[e]||"":(n.arrayForEach(this.schquestions,function(t){if(t.id==e)return t.reply_bt_focus=!0,setTimeout(function(){t.reply_bt_focus=!1},100),!1}),this.replyboxinput[e]=""))},e.prototype.ReplyInput=function(e,t){this.replyboxinput[t]=e,this.replyerror[t]&&(this.replyerror[t].show=!1)},e.prototype.SubmitReply=function(e){var t=this,r=this.replyboxinput[e.id];!(r=n.trim(r))||r.length<30?this._throwReplyError(e.id,"Content must have 30 characters."):(clearTimeout(this.live_status_timer),this.live_status="Posting answer",n.$http({url:n.ajaxUrl(),data:{action:"Answers.AnswerQuestion",do:"user-answer",question_id:e.id,answer:r},headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded"},before:function(){t.replyinprogress[e.id]=!0},after:function(){delete t.replyinprogress[e.id]}}).then(function(r){if(t.live_status="",r&&"redirect"in r)return top.location.href=r.redirect,void setTimeout(function(){t.replyinprogress[e.id]=!0});if(r.error&&"message"in r){var i=[e.id],o=r.message.match(/^Bad word `([^`]+)` detected.$/);return o&&o.length&&i.push('Profanity is not allowed, including words such as "'+o[1]+'". Please adjust.'),void t._throwReplyError.apply(t,i)}if(r.error)t._throwReplyError(e.id);else{var a=(e.answers||[]).findIndex(function(e){return e.id==r.id}),s={date:r.date,id:r.id,content:[r.answer],user_login:r.user_login||r.username,user_fullname:n.trim(r.user_fullname||r.fullname||""),user_avatar:r.user_avatar||r.avatar,user_title:r.user_title||"",edited:r.edited},l={id:e.id,has_more_answers:e.has_more_answers,answers:[s]};t._ParseAnswers(l,l.id);var c=l.answers[0];c.my_ans=!0,t.answerexpand[c.id]=!0;var d=c;a>-1?(c.edited=!0,Object.assign(e.answers[a],c),d=e.answers[a]):e.answers.unshift(c),t.replyboxinputsubmited[e.id]=r.answer,delete t.replyboxshow[e.id],t.live_status="Answer posted",d.focuson=!0,setTimeout(function(){d.focuson=!1},100),t.live_status_timer=setTimeout(function(){t.live_status=""},1e3)}}).catch(function(n){console.error(n),t._throwReplyError(e.id)}))},e.prototype.QSearch=function(e,t){var r=this;this.resultserror=!1;var i=t?null:n.trim(null!=e?e:this._qType.getValue())||"";if(this.current_page=1,n.$httpAbort("qna-search-query"),n.$httpAbort("qna-load-initial"),i){clearTimeout(this.live_status_timer);var o={id:"qna-search-query",url:n.ajaxUrl(),data:{action:"Answers.CommunitySearch",query:i},before:function(){r.search_loading=!0,r.live_status="Searching for answers"},after:function(){r.search_loading=!1},method:"GET"};this.quest_category?o.data.category=this._stripSlashes(this.quest_category):o.data.uri=this.ques_referer,n.$http(o).then(function(e){if(!e||!n.isArray(e))throw r.live_status="no matching results",r.live_status_timer=setTimeout(function(){r.live_status=""},1e3),Error("Data provide is invalid");r.answerexpand={},r.questionexpand={},r.schquestions=r._ParseQuestions(e,function(e){e.from_search=!0}),r.noresults=0==r.schquestions.length,r.live_status=(r.noresults?"no ":"")+"matching results",r.live_status_timer=setTimeout(function(){r.live_status=""},1e3)}).catch(function(e){e instanceof Error&&console.error(e),r.resultserror=!0,r.live_status="no matching results",setTimeout(function(){r.live_status=""},1e3)})}else this._StartupLoad(!0)},e.prototype.QReset=function(){this.QSearch(null,!0)},e.prototype.QClear=function(){this._qType.next("")},e.prototype._stripSlashes=function(e){return 0==e.indexOf("/")&&(e=e.substring(1)),e.lastIndexOf("/")==e.length-1&&(e=e.substring(0,e.length)),e},e.prototype.ViewMoreAns=function(e,t){var r=this;if(e.answers.length>1&&!this.question_more_answers[e.id])return this.question_more_answers[e.id]=!0,void(e.has_more_answers=(e.total_answers||0)>e.answers.length);this.live_status="Loading more answers",n.$http({url:n.ajaxUrl(),method:"GET",data:{action:"Answers.GetMoreAnswers",answers:e.answers.length,qid:e.id,v:2},before:function(){r.answersmore[e.id]=!0},after:function(){r.answersmore[e.id]=!1}}).then(function(i){if(r.live_status="",!i||!n.isArray(i.answers))throw Error("Required `answers` Array is not part of response");r.question_more_answers[e.id]=!0,r._ParseAnswers(e,t,i.answers,i.left,function(e,t,n){0==n&&(e.focuson=!0,setTimeout(function(){e.focuson=!1},100))}),r.live_status="Loaded "+i.answers.length+" more answer"+(1!=i.answers.length?"s":""),setTimeout(function(){r.live_status=""},1e3)}).catch(function(e){r.live_status="",console.error(e)})},e.prototype.AnswerExpanded=function(e){e.focuson=!0,setTimeout(function(){e.focuson=!1},100)},e.prototype._LoadQues=function(e){var t=this;e&&(this.live_status="Questions are now sorted by "+this.sortv,this.current_page=1),n.$httpAbort("qna-more-questions");var r,i={uri:this.ques_referer,action:"Answers.GetForPage"};this.current_page>1&&(i.p=this.current_page),this.sortingparam&&(i.sort_by=this.sortingparam),n.$http({url:n.ajaxUrl(),method:"GET",data:i,before:function(){t.questions_more=!0,r=t._dservice&&t._dservice.element&&t._dservice.element.scrollTop,t.live_status=e?"Sorting questions by "+("mv"!=t.sortingparam?"most popular":"most upvotes"):"Loading more questions"},after:function(){t.questions_more=!1},id:"qna-more-questions"}).then(function(i){if(t.live_status="",!i||!n.isArray(i.questions))throw Error("Required `question` Array is not part of response");t.has_enough_ques=i.pages&&i.pages>1,t.has_more_ques=i.current_page&&i.pages&&i.current_page<i.pages,e?(t.schquestions=[],t.has_enough_ques=!0):(t.live_status="Loaded "+i.questions.length+"more question"+(1!=i.questions.length?"s":""),setTimeout(function(){t.live_status=""},1e3)),t.schquestions=t.schquestions.concat(t._ParseQuestions(i.questions,function(t,n){0!=n||e||(t.focuson=!0,setTimeout(function(){t.focuson=!1},100))})),t.noresults=0==t.schquestions.length,setTimeout(function(){t._dservice&&t._dservice.element&&t._dservice.scrollTo({position:r,timing:0})})}).catch(function(e){t.live_status="",console.error(e)})},e.prototype.ViewMoreQuestions=function(){this.current_page++,this._LoadQues()},e.prototype.ChangeSort=function(e){switch(this.sortv=this.sortList[e],this.sort_list_opened=!1,e){case 1:this.sortingparam="mv";break;default:this.sortingparam="mp"}this._LoadQues(!0)},e.prototype.AskQuestion=function(e){var t=e&&e.currentTarget;this._quesOverlay.Open(_e,{input:this.ques_ask||this._qType.getValue()||"",referer:n.baseUrl()+this.ques_referer,addparams:this.addAskParams,categories:this.ask_quest_categories},{return_focus_to:t||null})},e.prototype._parseInitialData=function(e){this.schquestions=this._ParseQuestions(e.questions||[]),this.noresults=0==this.schquestions.length,this.has_enough_ques=e.pages&&e.pages>1,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&&e.current_page>1&&(this.current_page=e.current_page)},e.prototype._StartupLoad=function(e){var t=this;this.load_startup_fail=!1;var r={uri:this.ques_referer,action:"Answers.GetForPage"};this.current_page>1&&(r.p=this.current_page),this.sortingparam&&(r.sort_by=this.sortingparam),n.$httpAbort("qna-load-initial"),n.$http({url:n.ajaxUrl(),method:"GET",data:r,before:function(){e?t.search_loading=!0:t.load_startup=!0},after:function(){e?t.search_loading=!1:t.load_startup=!1},id:"qna-load-initial"}).then(function(r){if(!r||r.error||r.questions&&!n.isArray(r.questions))throw Error("Required `question` Array is not part of response");t._parseInitialData(r),e&&(t.has_enough_ques=!0)}).catch(function(e){console.error(e),t.load_startup_fail=!0})},e.prototype.RetryLoadData=function(){this._StartupLoad()},e.prototype.ngOnInit=function(){var e=this;this.sortv=this.sortList[0],this.sortingparam="mp",n.isNode()||!n.Cookies.get("mw_signon")&&!n.AppData.group("mw_cookies")?this.user_avatar=null:(this.signon=n.Cookies.get("mw_signon")?JSON.parse(n.Cookies.get("mw_signon")):null,this.user_avatar=this.signon&&this.signon.pp||this.user_avatar_fallback);var r,i,o=this._location.path().split("?")[0];this.ques_referer=this.ques_referer||o.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&&!n.isNode()&&this._route.queryParams.pipe(t.take(1)).subscribe(function(t){var r=t[e.page_query],i=r?n.toNumber(r):0;i&&(e.ques_data&&e.ques_data.pages?i<=e.ques_data.pages&&i!=e.ques_data.current_page?(e.current_page=i,e.ques_data=null):e.ques_data.questions.length<1&&(e.ques_data.pages=1):(e.current_page=i,e.ques_data=null))}),this.ques_data&&this.ques_data.questions&&n.isArray(this.ques_data.questions)?this._parseInitialData(this.ques_data):n.isNode()||(this.load_startup=!0,setTimeout(function(){e._StartupLoad()},this.start_delay||1));var a=this._qType.pipe(t.debounceTime(200)).subscribe(function(t){var o=n.trim((t||"").replace(/(\r\n\t|\n|\r\t)/gm," "));null!==t&&o!=r&&o.length>1?(r=o,i=!0,e.QSearch(o)):i&&(!o||o.length<2)&&(r=o,i=!1,e.QReset())},function(){},function(){a.unsubscribe()})},e.prototype.ngAfterViewInit=function(){var e=this;n.reqAnimationFrame(function(){n.isNode()||(e.allow_animation=!0)})},e.prototype.ngOnDestroy=function(){this._qType.complete()},e.ɵfac=function(r){return new(r||e)(t.ɵɵdirectiveInject(t.NgZone),t.ɵɵdirectiveInject(t.Location),t.ɵɵdirectiveInject(t.DomSanitizer),t.ɵɵdirectiveInject(E),t.ɵɵdirectiveInject(n.ScrollerService))},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["section","id","qna-box"]],viewQuery:function(e,n){if(1&e&&(t.ɵɵviewQuery(Te,5),t.ɵɵviewQuery(ke,5),t.ɵɵviewQuery(Ie,5)),2&e){var r=void 0;t.ɵɵqueryRefresh(r=t.ɵɵloadQuery())&&(n.txtElement=r.first),t.ɵɵqueryRefresh(r=t.ɵɵloadQuery())&&(n._quesOverlay=r.first),t.ɵɵqueryRefresh(r=t.ɵɵloadQuery())&&(n._answersList=r)}},hostVars:4,hostBindings:function(e,n){2&e&&t.ɵɵclassProp("qna-type1",0==n.layout_type)("qna-no-more",!n.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"],show_header:["show-header","show_header"],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:Ae,decls:21,vars:20,consts:[[3,"ng-aria-live"],["class","qna-heading",3,"ngClass",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"],[1,"qna-sort",3,"ngClass","ng-hidden"],["role","button","tabindex","0","aria-haspopup","listbox","aria-controls","a11y-qna-list","zing-touch","",1,"qna-most-list-active","inline-block",3,"onTap","onTapOutside"],["aria-hidden","false","tabindex","-1"],["aria-hidden","false","tabindex","-1",1,"af-icon-down-open"],["id","a11y-qna-list","role","listbox","tabindex","0","aria-labelledby","label-id-qna-sort","zing-touch","",1,"qna-most-list","basic-trans",3,"ng-hidden","onTap"],["role","option","tabindex","0","class","qna-most-list-it bold-font","ng-focus","","zing-touch","",3,"focus-when","qnaml-first","no-click","onTap",4,"ngFor","ngForOf","ngForTrackBy"],["id","label-id-qna-sort","hidden","true"],["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"],["title","Ask Your Question"],["quesOverlay",""],["class","qna-startup-load progress-indicator-container ng-enter-element",4,"ngIf"],["class","qna-startup-fail ng-enter-element",4,"ngIf"],[1,"qna-heading",3,"ngClass"],["class","qa-count semi-bold-font",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","","role","button","aria-label","Clear field",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"],["aria-haspopup","dialog",1,"btn","fixed-w-h",3,"click"],["aria-hidden","true","tabindex","-1"],["class","qna-search-state bold-font",4,"ngIf"],["zing-touch","","role","button","aria-label","Clear field",1,"qba-sc-cross","lbl-b","ng-enter-element",3,"onTap"],[1,"qna-search-state","bold-font"],["role","option","tabindex","0","ng-focus","","zing-touch","",1,"qna-most-list-it","bold-font",3,"focus-when","no-click","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"],["aria-haspopup","dialog",1,"btn","fixed-w-f",3,"click"],[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","ng-focus","",3,"href","zing-url","cleanHTML","qt-as-link","focus-when","no-click",4,"ngIf"],["class","qna-q-title link",3,"cleanHTML","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","","role","button","aria-expanded","false",3,"ng-hidden","onTap",4,"ngIf"],["class","qna-q-content-more semi-bold-font","zing-touch","","role","button","aria-expanded","true",3,"ng-hidden","onTap",4,"ngIf"],[1,"qna-q-actions"],["class","qna-q-reply link semi-bold-font","role","button","tabindex","0","ng-focus","",3,"focus-when","no-click","click",4,"ngIf"],[1,"qna-q-thumbs"],["zing-touch","","role","button","tabindex","0",1,"up","vote","bf-icon-upvote","progress-indicator","qna-qvt",3,"zing-no-touch","onTap"],["class","progress-spin","aria-hidden","true","tabindex","-1",4,"ngIf"],[1,"vote-text"],["zing-touch","","role","button","tabindex","0",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","ng-focus","",1,"qna-q-title","link",3,"href","zing-url","cleanHTML","focus-when","no-click"],[1,"qna-q-title","link",3,"cleanHTML"],[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","","role","button","aria-expanded","false",1,"qna-q-content-more","semi-bold-font",3,"ng-hidden","onTap"],["zing-touch","","role","button","aria-expanded","true",1,"qna-q-content-more","semi-bold-font",3,"ng-hidden","onTap"],["role","button","tabindex","0","ng-focus","",1,"qna-q-reply","link","semi-bold-font",3,"focus-when","no-click","click"],["aria-hidden","true","tabindex","-1",1,"progress-spin"],["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",1,"btn","grey","fixed-w",3,"disabled","click"],["type","submit","aria-label","Submit",1,"btn","blue","fixed-w","with-loader","no-disabled",3,"disabled"],["aria-hidden","true","tabindex","-1",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","user avatar","width","40","height","40",1,"avatar-img"],["deferImg",""],[1,"qna-qa-names","text-select"],["class","full-name semi-bold-font",4,"ngIf"],["aria-hidden","true","tabindex","-1",1,"second-name"],["class","qna-qa-sort","role","listbox",4,"ngIf"],["hidden","true","role","tooltip"],["zing-touch","","role","group","tabindex","0",1,"qna-q-ans-content","with-links","text-select",3,"zing-url-container","expand-content","breakwords","collapse-button","ng-truncate","sanitize-cfg","ng-attribute","ng-attribute-when","onExpand"],["class","qna-q-thumbs",4,"ngIf"],[1,"full-name","semi-bold-font"],[3,"ng-context"],["class","author-cap","aria-hidden","true","tabindex","-1",4,"ngIf"],["aria-hidden","true","tabindex","-1",1,"author-cap"],["role","listbox",1,"qna-qa-sort"],["zing-touch","",1,"af-icon-down-open","cursor-pointer",3,"onTap","onTapOutside"],["zing-touch","",1,"qna-most-list","basic-trans",3,"ng-hidden","onTap"],["role","option","zing-touch","","class","qna-most-list-it bold-font",3,"qnaml-first","onTap",4,"ngFor","ngForOf","ngForTrackBy"],["role","option","zing-touch","",1,"qna-most-list-it","bold-font",3,"onTap"],["zing-touch","","role","button","tabindex","0",1,"up","vote","bf-icon-upvote","progress-indicator",3,"zing-no-touch","onTap"],["aria-hidden","true","tabindex","-1","class","progress-spin",4,"ngIf"],[1,"vote-text",3,"ng-attribute","ng-attribute-when"],[1,"qna-qa-show-more","progress-indicator-container"],["class","progress-indicator visible",4,"ngIf"],["zing-touch","","role","button",1,"qna-qa-sm-bt","link","inherit",3,"onTap"],["aria-hidden","true","tabindex","-1",1,"af-icon-down-open"],[1,"progress-indicator","visible"],[1,"qna-q-get-more"],["class","btn blue-brds tall with-loader no-disabled bold-font","aria-label","More Questions","zing-touch","",3,"loadactive","onTap",4,"ngIf"],["aria-label","Ask Your Question",1,"btn","tall","qna-qgm-btn-last","blue-brds","bold-font",3,"click"],[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,n){1&e&&(t.ɵɵelement(0,"div",0),t.ɵɵtemplate(1,Me,3,7,"h2",1),t.ɵɵtemplate(2,Oe,6,2,"p",2),t.ɵɵtemplate(3,Ne,1,4,"p",3),t.ɵɵtemplate(4,Ve,13,11,"div",4),t.ɵɵelementStart(5,"div",5),t.ɵɵelementStart(6,"span",6),t.ɵɵlistener("onTap",function(){return n.ControlSortList()})("onTapOutside",function(){return n.ControlSortList(!1)}),t.ɵɵelementStart(7,"span",7),t.ɵɵtext(8),t.ɵɵelementEnd(),t.ɵɵelement(9,"i",8),t.ɵɵelementEnd(),t.ɵɵelementStart(10,"div",9),t.ɵɵlistener("onTap",function(e){return e.stopPropagation()}),t.ɵɵtemplate(11,Be,2,5,"span",10),t.ɵɵelementEnd(),t.ɵɵelementStart(12,"div",11),t.ɵɵtext(13,"Questions sort"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵtemplate(14,$e,9,5,"div",12),t.ɵɵtemplate(15,wt,3,8,"div",13),t.ɵɵtemplate(16,St,7,1,"div",14),t.ɵɵelement(17,"modal-dialog",15,16),t.ɵɵtemplate(19,qt,3,0,"div",17),t.ɵɵtemplate(20,Ct,7,0,"div",18)),2&e&&(t.ɵɵproperty("ng-aria-live",n.live_status),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.show_header),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.product_name),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.intro_content),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.has_enough_ques&&!n.load_startup&&!n.load_startup_fail),t.ɵɵadvance(1),t.ɵɵproperty("ngClass",t.ɵɵpureFunction1(18,Tt,n.allow_animation))("ng-hidden",!n.has_enough_ques||0==n.schquestions.length||n.show_search_state||n.show_search_state_empty||n.resultserror),t.ɵɵadvance(1),t.ɵɵattribute("aria-expanded",n.sort_list_opened)("aria-label",n.sortv),t.ɵɵadvance(2),t.ɵɵtextInterpolate(n.sortv),t.ɵɵadvance(2),t.ɵɵproperty("ng-hidden",!n.sort_list_opened),t.ɵɵadvance(1),t.ɵɵproperty("ngForOf",n.sortList)("ngForTrackBy",n.trackByFn),t.ɵɵadvance(3),t.ɵɵproperty("ngIf",!n.has_enough_ques&&!n.load_startup&&!n.load_startup_fail),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.search_loading||n.questions_more||n.schquestions.length),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.has_view_more),t.ɵɵadvance(3),t.ɵɵproperty("ngIf",n.load_startup&&!n.load_startup_fail),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.load_startup_fail))},directives:[n.ngAriaLive,t.NgIf,t.NgClass,n.ngHidden,n.TouchGestures,t.NgForOf,n.ngModalDialog,qe,n.ngZenScroll,N,n.ngFocus,$,n.ngAttribute,n.ngCleanHTML,n.FormSubmit,B,n.ErrorToastComponent,n.ImageLoader,n.ngCleanBind],encapsulation:2}),e}(),It=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=t.ɵɵdefineNgModule({type:e}),e.ɵinj=t.ɵɵdefineInjector({imports:[[t.CommonModule,n.DirectivesModule,n.ErrorsModule,Q,n.ImageLoaderModule,C,n.ngModalsModule,n.StickerModule,F,D,n.FormSubmitModule,ve,Ce,n.ngFocusModule]]}),e}(),At=["id","experts-gallery"];function zt(e,n){1&e&&(t.ɵɵelementStart(0,"div",10),t.ɵɵelement(1,"i"),t.ɵɵelementEnd())}function Lt(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",11),t.ɵɵelement(1,"h2",12),t.ɵɵelementEnd()),2&e){var r=t.ɵɵnextContext(2);t.ɵɵadvance(1),t.ɵɵproperty("innerHTML",r.header_text||"Ask the Experts",t.ɵɵsanitizeHtml)}}function Mt(e,n){if(1&e&&(t.ɵɵelement(0,"div",13),t.ɵɵpipe(1,"safeHtml")),2&e){var r=t.ɵɵnextContext(2);t.ɵɵproperty("innerHTML",t.ɵɵpipeBind1(1,1,r.intro),t.ɵɵsanitizeHtml)}}function Ot(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementContainerStart(0),t.ɵɵelementStart(1,"span",21),t.ɵɵtext(2),t.ɵɵelementEnd(),t.ɵɵelement(3,"br"),t.ɵɵelementStart(4,"i",21),t.ɵɵtext(5),t.ɵɵelementEnd(),t.ɵɵelement(6,"br"),t.ɵɵelementStart(7,"span",22),t.ɵɵlistener("onTap",function(){t.ɵɵrestoreView(r);var e=t.ɵɵnextContext().$implicit;return t.ɵɵnextContext(2).gotToOne(e.HASHTAG)}),t.ɵɵtext(8,"Read More"),t.ɵɵelementEnd(),t.ɵɵelementContainerEnd()}if(2&e){var i=t.ɵɵnextContext().$implicit;t.ɵɵadvance(2),t.ɵɵtextInterpolate(i.AUTHOR),t.ɵɵadvance(3),t.ɵɵtextInterpolate(i.CAPTION)}}function Nt(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementContainerStart(0),t.ɵɵelementStart(1,"span",23),t.ɵɵlistener("onTap",function(){t.ɵɵrestoreView(r);var e=t.ɵɵnextContext().$implicit;return t.ɵɵnextContext(2).gotToOne(e.HASHTAG)}),t.ɵɵelementEnd(),t.ɵɵelementContainerEnd()}if(2&e){var i=t.ɵɵnextContext().$implicit;t.ɵɵadvance(1),t.ɵɵproperty("ng-context",i.AUTHOR)}}function Ft(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"dl",14),t.ɵɵelementStart(1,"dt",15),t.ɵɵelementStart(2,"span",16),t.ɵɵlistener("onTap",function(){var e=t.ɵɵrestoreView(r).$implicit;return t.ɵɵnextContext(2).gotToOne(e.HASHTAG)}),t.ɵɵelement(3,"img",17,18),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"dd",19),t.ɵɵtemplate(6,Ot,9,2,"ng-container",20),t.ɵɵtemplate(7,Nt,2,1,"ng-container",20),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var i=n.$implicit,o=n.index,a=t.ɵɵnextContext(2);t.ɵɵclassProp("gallery-item-logo",a.as_logos),t.ɵɵadvance(1),t.ɵɵproperty("focus-when",a.center_experts&&0===o),t.ɵɵadvance(1),t.ɵɵproperty("defer-src",i.AVATAR)("zing-no-touch",!0)("ui-hydrate",a.srv_no_avatars),t.ɵɵadvance(1),t.ɵɵclassProp("exp-img-logo",a.as_logos),t.ɵɵproperty("src",i.AVATAR,t.ɵɵsanitizeUrl)("alt",i.AUTHOR),t.ɵɵadvance(3),t.ɵɵproperty("ngIf",!a.as_logos),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",a.as_logos)}}function jt(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",24),t.ɵɵelementStart(1,"span",25),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext(2).showMoreExperts()}),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext(2);t.ɵɵadvance(1),t.ɵɵproperty("ng-context",i.more_btn_txt)}}function Ht(e,n){if(1&e&&(t.ɵɵelementStart(0,"i"),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var r=t.ɵɵnextContext(3);t.ɵɵadvance(1),t.ɵɵtextInterpolate(null==r.expert_full?null:r.expert_full.CAPTION)}}function Pt(e,n){if(1&e&&t.ɵɵelement(0,"div",31),2&e){var r=t.ɵɵnextContext(3);t.ɵɵproperty("innerHtml",r.expert_full.CONTENT,t.ɵɵsanitizeHtml)}}function Rt(e,n){if(1&e&&t.ɵɵelement(0,"div",32),2&e){var r=t.ɵɵnextContext(3);t.ɵɵproperty("cleanHTML",r.expert_full.CONTENT)("cleanHTML-sett",r.doompurifySett)}}function Vt(e,n){if(1&e){var r=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"article",26),t.ɵɵelementStart(1,"button",27),t.ɵɵlistener("onTap",function(){return t.ɵɵrestoreView(r),t.ɵɵnextContext(2).goToAll()}),t.ɵɵtext(2),t.ɵɵelementEnd(),t.ɵɵelement(3,"img",28),t.ɵɵelementStart(4,"h3"),t.ɵɵtext(5),t.ɵɵelementEnd(),t.ɵɵtemplate(6,Ht,2,1,"i",20),t.ɵɵtemplate(7,Pt,1,1,"div",29),t.ɵɵtemplate(8,Rt,1,2,"div",30),t.ɵɵelementEnd()}if(2&e){var i=t.ɵɵnextContext(2);t.ɵɵclassProp("exp-logo-profile",i.as_logos),t.ɵɵadvance(1),t.ɵɵproperty("ngClass",i.back_bt_class),t.ɵɵadvance(1),t.ɵɵtextInterpolate(i.back_bt_text),t.ɵɵadvance(1),t.ɵɵproperty("src",null==i.expert_full?null:i.expert_full.AVATAR,t.ɵɵsanitizeUrl),t.ɵɵadvance(2),t.ɵɵtextInterpolate(null==i.expert_full?null:i.expert_full.AUTHOR),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!i.as_logos),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!i.as_logos),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.as_logos)}}var Bt=function(e,t,n,r,i,o){return{"exp-gal-one-it":e,"exp-gal-two-it":t,"expert-single":n,"blink-end":r,empty:i,"experts-format-a":o}};function Dt(e,n){if(1&e&&(t.ɵɵelementStart(0,"section",1),t.ɵɵtemplate(1,zt,2,0,"div",2),t.ɵɵtemplate(2,Lt,2,1,"div",3),t.ɵɵtemplate(3,Mt,2,3,"div",4),t.ɵɵelementStart(4,"div",5),t.ɵɵelementStart(5,"div",6),t.ɵɵtemplate(6,Ft,8,12,"dl",7),t.ɵɵtemplate(7,jt,2,1,"div",8),t.ɵɵtemplate(8,Vt,9,9,"article",9),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e){var r=t.ɵɵnextContext();t.ɵɵproperty("ngClass",t.ɵɵpureFunction6(13,Bt,r.experts.length<2,r.experts.length<3,r.expert_single,!r.expert_single&&!r.loading&&!r.is_initial,r.emptydata,1==r.layout_format))("scroll-to",r.scrollall),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",r.loading),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!r.layout_format),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",r.intro&&!r.expert_single),t.ɵɵadvance(1),t.ɵɵclassProp("all",!r.expert_single),t.ɵɵproperty("scroll-to",r.center_experts),t.ɵɵadvance(1),t.ɵɵproperty("scroll-to",r.scrollsingle)("scrolloffset",r.expert_offset),t.ɵɵadvance(1),t.ɵɵproperty("ngForOf",r.experts),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",r.hasmoreexperts&&!r.expert_single),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",r.expert_single)}}require("systemjs").import("css:/components/experts-gallery.css").then(function(){},function(){});var $t=function(){function e(e){this.sanitized=e}return e.prototype.transform=function(e){return this.sanitized.bypassSecurityTrustHtml(e)},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(t.DomSanitizer,16))},e.ɵpipe=t.ɵɵdefinePipe({name:"safeHtml",type:e,pure:!0}),e}(),Qt=function(){function e(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 t.EventEmitter,this.tagMatch=new t.EventEmitter,this._servertransitwait=!0}return Object.defineProperty(e.prototype,"hashname",{get:function(){return this._hashname},set:function(e){this._hashname=e,e&&this._rendered?this._goToExpert(e):this.expert_single=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,e&&n.isArray(e.expertsContent)?(n.$httpAbort("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(e.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(e.prototype,"urlrefresh",{get:function(){return this._refreshonurl},set:function(e){this._refreshonurl=e,e&&this._urlpath&&!this._data&&!this.asyncdata?this._refreshonurl=!0:this._refreshonurl=!1},enumerable:!1,configurable:!0}),e.prototype._goToExpert=function(e,t){var r=this;this.is_initial=!1;var i,o=function(){r.scrollsingle=!0,setTimeout(function(){r.scrollsingle=!1},100)};e=e.toString().toLowerCase(),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]],n.reqAnimationFrame(function(){r._zone.run(function(){if(n.isWeb()&&r._servertransitwait){if(!t)var e=n.Events.subscribe("server:transitscroll",function(t){"done"!=t&&"none"!=t||o(),setTimeout(function(){e&&e.unsubscribe()})});r._servertransitwait=!1}else t||o()})})),i=!0):i=!1,this.tagMatch.emit(i)},e.prototype._storeTags=function(){this._hashtaglist={};for(var e=0,t=this.experts.length;e<t;e++){var n=this.experts[e].HASHTAG.substring(1);n=n.toLowerCase(),this._hashtaglist[n]=e+(0===this.current_page?0:this.current_page-1)*this.max_experts}},e.prototype._parseExperts=function(e){e.expertsContent.length>0?(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=[])},e.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)},e.prototype._throwError=function(e,t){this.dataerror=!0,n.RavenRequestFail(e,"NG Experts Gallery : Data Request Error",{action:t})},e.prototype._getExpertsByUrl=function(){var e=this;this.expert_single=!1,n.$httpAbort("experts-gallery"),this.loading=!0,n.$http({method:"GET",url:n.ajaxUrl(),id:"experts-gallery",before:function(){e.loading=!0},after:function(){e.loading=!1},data:{action:"Posts.GetExpertsGallery",path:this.urlpath},events:!1}).then(function(t){if(t&&!t.error){var r=t.data;n.isObject(r)&&n.isArray(r.expertsContent)?(e._data=r,e._parseExperts(r)):e.emptydata=!0}else e._throwError({data:t,status:200,type:"response"},e.urlpath)},function(t){e._throwError(t,e.urlpath)})},e.prototype.ngOnInit=function(){var e=this;this.isnode=n.isNode(),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()},e.prototype.ngAfterViewInit=function(){var e=this;this._rendered=!0,this.data&&!this.emptydata&&this._hashname?n.reqAnimationFrame(function(){return e._goToExpert(e._hashname)}):this.asyncdata||(this._servertransitwait=!1)},e.prototype.ngOnDestroy=function(){n.$httpAbort("experts-gallery")},e.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)},e.prototype.gotToOne=function(e){var t=e.substring(1);this.expert_full=null,this._goToExpert(t),this.changedExpert.emit(t)},e.prototype.showMoreExperts=function(){var e=this,t=this._data.expertsContent,r=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>=r&&(this.current_page=0),this.center_experts=!1,setTimeout(function(){e.center_experts=!0,n.reqAnimationFrame(function(){e.center_experts=!1})})},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(t.NgZone))},e.ɵcmp=t.ɵɵdefineComponent({type:e,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:At,decls:1,vars:1,consts:[["class","experts-gallery",3,"ngClass","scroll-to",4,"ngIf"],[1,"experts-gallery",3,"ngClass","scroll-to"],["class","progress-indicator visible",4,"ngIf"],["class","header-part",4,"ngIf"],["class","intro-part with-links",3,"innerHTML",4,"ngIf"],[1,"container",3,"scroll-to"],[1,"gallery",3,"scroll-to","scrolloffset"],["class","gallery-item",3,"gallery-item-logo",4,"ngFor","ngForOf"],["class","more-experts",4,"ngIf"],["class","text-select expert-profile ng-enter-element slide",3,"exp-logo-profile",4,"ngIf"],[1,"progress-indicator","visible"],[1,"header-part"],[3,"innerHTML"],[1,"intro-part","with-links",3,"innerHTML"],[1,"gallery-item"],["ng-focus","",1,"gallery-icon",3,"focus-when"],["zing-touch","",1,"gall-ic-action",3,"defer-src","zing-no-touch","ui-hydrate","onTap"],["height","110","width","110",1,"expert-image",3,"src","alt"],["deferImg",""],[1,"wp-caption-text","gallery-caption"],[4,"ngIf"],[1,"text-select"],["zing-touch","",1,"read-more","touch-element-cl",3,"onTap"],["zing-touch","",1,"read-more","touch-element-cl",3,"ng-context","onTap"],[1,"more-experts"],["zing-touch","",3,"ng-context","onTap"],[1,"text-select","expert-profile","ng-enter-element","slide"],["zing-touch","",1,"back-to-xprts",3,"ngClass","onTap"],["height","200","width","200",1,"profile-img",3,"src"],["class","description-text",3,"innerHtml",4,"ngIf"],["class","description-text",3,"cleanHTML","cleanHTML-sett",4,"ngIf"],[1,"description-text",3,"innerHtml"],[1,"description-text",3,"cleanHTML","cleanHTML-sett"]],template:function(e,n){1&e&&t.ɵɵtemplate(0,Dt,9,20,"section",0),2&e&&t.ɵɵproperty("ngIf",!n.norender)},directives:[t.NgIf,t.NgClass,n.ngZenScroll,t.NgForOf,n.ngFocus,n.TouchGestures,n.ImageLoader,n.ngCleanBind,n.ngCleanHTML],pipes:[$t],encapsulation:2}),e}(),Gt=function(){function e(){}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=t.ɵɵdefineNgModule({type:e}),e.ɵinj=t.ɵɵdefineInjector({imports:[[n.DirectivesModule,t.CommonModule,n.ImageLoaderModule,n.ngFocusModule]]}),e}();e.ActivatedRoute=E,e.CompileExpertsGallery=function(e,t,r,i,o){void 0===o&&(o={});for(var a=Gt,s=Qt,l=document.querySelectorAll("div[id=experts-gallery]"),c=[],d=0,u=l.length;d<u;d++){l[d].setAttribute("data-expert-sect",d.toString());var p='div[data-expert-sect="'+d+'"]',h=o.data[d]||{};h={back_bt_text:h.back_link_text,more_btn_txt:h.more_text,header_text:h.header_text,expert_offset:-100,max_experts:6,hashname:o.hashname,data:{expertsContent:h.expertsContent,aslogos:h.aslogos,expertsIntro:h.expertsIntro}},c.push(n.injectModuleAsync(e,t,r,a,s,p,h).then(function(e){var t=e.Component.instance.changedExpert.subscribe(function(e){e?history.pushState(null,"",location.pathname+location.search+"#expert="+e):history.replaceState(null,"",location.pathname+location.search)}),r=i.fragment.subscribe(function(t){if((t=(t||"").replace("#",""))&&t.indexOf("expert=")>-1){var r=n.objectFromParam(t);r&&r.expert&&n.reqAnimationFrame(function(){e.Component.instance.hashname=r.expert})}});return{destroy:function(){e.destroy(),t.unsubscribe(),r.unsubscribe()}}}))}return Promise.all(c).then(function(e){return{destroy:function(){e.forEach(function(e){e.destroy()})}}})},e.FooterModule=y,e.PageFooter=b,e.QnAComp=kt,e.QnAModule=It,e.RouterModule=C,e.ngDropDownModule=re,e.ngDropdown=ne});