PageSourceSearch

https://99offers.io/4297.4d9ddaccdad267ad.js

js 99offers.io collected 2026-10-08 15:58:20 UTC 151,843 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkguliver=self.webpackChunkguliver||[]).push([[4297],{7261:(E,y,r)=>{r.d(y,{S:()=>f});var x=r(6208),u=r(9468);let f=(()=>{class c{}return c.\u0275fac=function(h){return new(h||c)},c.\u0275mod=u.oAB({type:c}),c.\u0275inj=u.cJS({imports:[x.m]}),c})()},758:(E,y,r)=>{r.d(y,{z:()=>c});var x=r(5673),u=r(9468),f=r(9025);let c=(()=>{class e{constructor(){this.zoom=15,this.iconFull=!1,this.draggable=!0,this.iconBaseMini="./assets/img/map-mini-marker.svg",this.iconBase="./assets/img/map-icon.svg",this.options={zoomControl:!1,scrollwheel:!1,disableDoubleClickZoom:!0,backgroundColor:"#ccc",disableDefaultUI:!0,styles:x.v.styles},this.markerOptions={options:{icon:null}},this.markers=[]}ngOnInit(){this.markerOptions.options.icon=this.iconFull?this.iconBase:this.iconBaseMini,this.center={lat:this.lat,lng:this.lng},this.draggable||(this.options.gestureHandling="none")}}return e.\u0275fac=function(g){return new(g||e)},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-google-map"]],inputs:{width:"width",height:"height",zoom:"zoom",iconFull:"iconFull",lat:"lat",lng:"lng",draggable:"draggable"},decls:2,vars:7,consts:[[3,"height","width","zoom","center","options"],[3,"position","options"]],template:function(g,m){1&g&&(u.TgZ(0,"google-map",0),u._UZ(1,"map-marker",1),u.qZA()),2&g&&(u.Q6J("height",m.height)("width",m.width)("zoom",m.zoom)("center",m.center)("options",m.options),u.xp6(1),u.Q6J("position",m.center)("options",m.markerOptions.options))},dependencies:[f.b6,f.O_]}),e})()},4297:(E,y,r)=>{r.r(y),r.d(y,{FindExpertModule:()=>oo});var x=r(6208),u=r(8938),f=r(8645),c=r(9773),e=r(9468),h=r(8547),g=r(2333),m=r(1757),l=r(6814),C=r(33),b=r(1693),ie=r(4202),F=r(6202),re=r(7044),U=r(1026),J=r(338),B=r(7455),Z=r(9045),H=r(9862);let ae=(()=>{class n extends Z.s{constructor(t,o){super(t),this.authService=o}getAll(t=1,o=null,i=null,a=Z.s.PAGE_LIMIT){const d=new H.WM({Authorization:`Bearer ${this.authService.getToken()}`});let _=(new H.LE).set("page",t+"").set("limit",a+"");if(o?.length)for(const M of o)_=_.append(`sort[${M.field}]`,M.value);return i&&(_=_.append("search",i)),this.get("/lead-questions/all",{params:_,headers:d})}}return n.\u0275fac=function(t){return new(t||n)(e.LFG(H.eN),e.LFG(g.e))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Q=r(3245);let le=(()=>{class n{constructor(){this.describeHouse=new e.vpe}onSubmit(){this.describeHouse.emit()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-add-free"]],outputs:{describeHouse:"describeHouse"},decls:12,vars:0,consts:[[1,"house-add-free"],[1,"house__wrap"],[1,"house-add-free__wrap"],[1,"house-add-free__icon"],["name","menu-home"],[1,"house-add-free__content"],[1,"house-add-free__title"],[1,"house-add-free__text"],["type","button","ui-flat-button","","color","primary-white",1,"house-add-free__button",3,"click"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e._UZ(4,"app-svg",4),e.qZA(),e.TgZ(5,"div",5)(6,"h2",6),e._uU(7,"Create your house description to use it for all 99 Offers services"),e.qZA(),e.TgZ(8,"p",7),e._uU(9,"Let us learn more about your home to personalize your search and find the real estate expert that meets your needs. "),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return o.onSubmit()}),e._uU(11,"Describe my house"),e.qZA()()()()())},dependencies:[C.H,b.z],styles:[".house-add-free[_ngcontent-%COMP%]{background:url(/assets/img/home-free-bg.webp) no-repeat center;background-size:cover;border-radius:0 16px 16px}.house-add-free__wrap[_ngcontent-%COMP%]{display:flex}.house-add-free__icon[_ngcontent-%COMP%]{width:43px;height:43px;flex-shrink:0;margin-right:24px;color:var(--color-primary)}.house-add-free__icon[_ngcontent-%COMP%]     svg{width:100%;height:100%}.house-add-free__title[_ngcontent-%COMP%]{color:#fff;font-size:24px;line-height:1.3;letter-spacing:-.18px;margin-bottom:24px}.house-add-free__text[_ngcontent-%COMP%]{font-size:14px;line-height:1.3;letter-spacing:.14px;margin-bottom:24px}
1.house-add-free__button[_ngcontent-%COMP%]{width:200px}@media screen and (max-width: 767px){.house-add-free[_ngcontent-%COMP%]{border-radius:16px}.house-add-free__wrap[_ngcontent-%COMP%]{display:block}.house-add-free__icon[_ngcontent-%COMP%]{margin:0 0 16px}.house-add-free__title[_ngcontent-%COMP%]{font-size:14px;margin-bottom:16px}.house-add-free__text[_ngcontent-%COMP%]{font-size:12px;margin-bottom:16px}.house-add-free__button[_ngcontent-%COMP%]{width:100%}}@media screen and (max-width: 575px){.house-add-free[_ngcontent-%COMP%]{border-radius:0 0 16px 16px}}"]}),n})();const pe=["progressBar"];let v=(()=>{class n{ngOnInit(){this.deg=360*this.percent/100}ngAfterViewInit(){this.progressBar.nativeElement.style.setProperty("--home-progress-bar",`${this.deg}deg`)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-progress"]],viewQuery:function(t,o){if(1&t&&e.Gf(pe,5),2&t){let i;e.iGM(i=e.CRH())&&(o.progressBar=i.first)}},inputs:{text:"text",percent:"percent",color:"color"},decls:4,vars:4,consts:[[1,"house-progress"],[1,"house-progress__bar"],["progressBar",""],[1,"house-progress__text",3,"innerHTML"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"div",1,2)(3,"div",3),e.qZA()),2&t&&(e.ekj("house-progress--grey","grey"===o.color),e.xp6(1),e.uIk("data-progress",o.percent),e.xp6(2),e.Q6J("innerHTML",o.text,e.oJD))},styles:['.house-progress[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}.house-progress__bar[_ngcontent-%COMP%]{display:flex;flex-shrink:0;width:36px;height:36px;border-radius:50%;background:conic-gradient(#0AAF60 var(--home-progress-bar),#ACB0BA 0);font-size:0}.house-progress__bar[_ngcontent-%COMP%]:after{content:attr(data-progress) "%";display:flex;justify-content:center;flex-direction:column;width:100%;margin:3px;border-radius:50%;background:#181E29;font-size:9px;font-weight:700;color:var(--color-action-green-100);text-align:center}.house-progress__text[_ngcontent-%COMP%]{margin-left:8px;color:var(--color-action-green-100);font-size:12px;font-weight:700;line-height:1.3}.house-progress--grey[_ngcontent-%COMP%]   .house-progress__bar[_ngcontent-%COMP%]:after{color:#acb0ba}.house-progress--grey[_ngcontent-%COMP%]   .house-progress__text[_ngcontent-%COMP%]{color:#acb0ba}@media screen and (max-width: 767px){.house-progress[_ngcontent-%COMP%]{margin-bottom:16px}}@media screen and (max-width: 767px){.house-progress__text[_ngcontent-%COMP%]{font-size:10px}.house-progress__bar[_ngcontent-%COMP%]{width:28px;height:28px}.house-progress__bar[_ngcontent-%COMP%]:after{font-size:8px;margin:2px}}']}),n})(),w=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-profile-address"]],inputs:{address:"address"},decls:5,vars:1,consts:[[1,"house-profile-address"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.914 1.58545L2.141 4.52545C1.511 5.01545 1 6.05845 1 6.84945V12.0365C1 13.6605 2.323 14.9905 3.947 14.9905H12.053C13.677 14.9905 15 13.6605 15 12.0435V6.94745C15 6.10045 14.433 5.01545 13.74 4.53245L9.414 1.50145C8.434 0.815453 6.859 0.850453 5.914 1.58545Z","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e._UZ(2,"path",2),e.qZA(),e.kcU(),e.TgZ(3,"span"),e._uU(4),e.qZA()()),2&t&&(e.xp6(4),e.Oqu(o.address))},styles:[".house-profile-address[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:14px;color:var(--color-greyscale-40, #F6F7F9);font-weight:700;line-height:1.6}.house-profile-address[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-right:8px}
1.house-profile-address[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-top:2px}"]}),n})();function de(n,s){if(1&n&&e._UZ(0,"app-house-profile-address",3),2&n){const t=e.oxw();e.Q6J("address",t.address)}}let S=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-add-header"]],inputs:{text:"text",address:"address"},decls:4,vars:2,consts:[[1,"house-add-header"],[1,"house-add-header__title"],[3,"address",4,"ngIf"],[3,"address"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"h2",1),e._uU(2),e.qZA(),e.YNc(3,de,1,1,"app-house-profile-address",2),e.qZA()),2&t&&(e.xp6(2),e.Oqu(o.text),e.xp6(1),e.Q6J("ngIf",o.address))},dependencies:[l.O5,w],styles:[".house-add-header[_ngcontent-%COMP%]{margin-bottom:24px;display:flex;justify-content:space-between;align-items:center;gap:0 32px}.house-add-header__title[_ngcontent-%COMP%]{color:var(--color-primary);font-size:24px;font-weight:700;line-height:1.3;letter-spacing:-.18px}.house-add-header[_ngcontent-%COMP%]   app-house-profile-address[_ngcontent-%COMP%]{flex-shrink:0}@media screen and (max-width: 767px){.house-add-header[_ngcontent-%COMP%]{margin-bottom:16px}.house-add-header__title[_ngcontent-%COMP%]{font-size:14px}app-house-profile-address[_ngcontent-%COMP%]{display:none}}"]}),n})();var N=r(9693);let ce=(()=>{class n{constructor(){this.addAddress=new e.vpe}onAddAddress(){this.addAddress.emit()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-add-address"]],inputs:{progress:"progress"},outputs:{addAddress:"addAddress"},decls:7,vars:1,consts:[[1,"house-add-address"],[1,"house__wrap"],["text","House <br>description",3,"percent"],["text","House address"],[1,"house-add-address__text"],[3,"addAddress"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-house-progress",2)(3,"app-house-add-header",3),e.TgZ(4,"p",4),e._uU(5,"Enter your house address so that we can find the real estate experts in your area."),e.qZA(),e.TgZ(6,"app-house-address",5),e.NdJ("addAddress",function(){return o.onAddAddress()}),e.qZA()()()),2&t&&(e.xp6(2),e.Q6J("percent",o.progress))},dependencies:[v,S,N.l],styles:[".house-add-address__text[_ngcontent-%COMP%]{font-size:14px;line-height:1.6;letter-spacing:.14px;margin-bottom:24px}@media screen and (max-width: 767px){.house-add-address__text[_ngcontent-%COMP%]{margin-bottom:16px}}"]}),n})();var p=r(95),P=r(3529),D=r(758),ue=r(1893),_e=r(5965),he=r(2437);function ge(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"button",5),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onBack())}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.backButtonText)}}function fe(n,s){1&n&&e._UZ(0,"app-svg",6)}function me(n,s){if(1&n&&e._uU(0),2&n){const t=e.oxw();e.Oqu(t.nextButtonText)}}let z=(()=>{class n{constructor(){this.backStep=new e.vpe,this.nextButtonText="Next",this.backButtonText="Back",this.formLoad=!1,this.isBackButton=!0}onBack(){this.backStep.emit()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-step-buttons"]],inputs:{nextButtonText:"nextButtonText",backButtonText:"backButtonText",disabled:"disabled",formLoad:"formLoad",isBackButton:"isBackButton"},outputs:{backStep:"backStep"},decls:6,vars:6,consts:[[1,"house-step-buttons"],["type","button","ui-stroked-button","","color","primary","class","house-step-buttons__back",3,"click",4,"ngIf"],["type","submit","ui-flat-button","","color","primary-white",1,"house-step-buttons__next",3,"disabled"],["name","form-load",4,"ngIf","ngIfElse"],["noFormLo
1ad",""],["type","button","ui-stroked-button","","color","primary",1,"house-step-buttons__back",3,"click"],["name","form-load"]],template:function(t,o){if(1&t&&(e.TgZ(0,"div",0),e.YNc(1,ge,2,1,"button",1),e.TgZ(2,"button",2),e.YNc(3,fe,1,0,"app-svg",3),e.YNc(4,me,1,1,"ng-template",null,4,e.W1O),e.qZA()()),2&t){const i=e.MAs(5);e.xp6(1),e.Q6J("ngIf",o.isBackButton),e.xp6(1),e.ekj("form-load-btn",o.formLoad),e.Q6J("disabled",o.formLoad||o.disabled),e.xp6(1),e.Q6J("ngIf",o.formLoad)("ngIfElse",i)}},dependencies:[l.O5,C.H,b.z,he.Y],styles:[".house-step-buttons[_ngcontent-%COMP%]{display:flex;gap:8px 16px}.house-step-buttons__back[_ngcontent-%COMP%]{width:100px;color:#fff}.house-step-buttons__next[_ngcontent-%COMP%]{width:200px}@media screen and (min-width: 768px){.house-step-buttons__back[_ngcontent-%COMP%]:hover{color:var(--color-dark)!important;background:#FFF!important;border-color:#fff!important}}@media screen and (max-width: 767px){.house-step-buttons[_ngcontent-%COMP%]{flex-direction:column}.house-step-buttons[_ngcontent-%COMP%]   .ui-button[_ngcontent-%COMP%]{width:100%}}"]}),n})();function xe(n,s){1&n&&(e.TgZ(0,"span",17),e._uU(1,"This field cannot be empty."),e.qZA())}function Ce(n,s){1&n&&(e.TgZ(0,"span",17),e._uU(1,"This field cannot be empty."),e.qZA())}function be(n,s){1&n&&(e.TgZ(0,"span",17),e._uU(1,"This field cannot be empty."),e.qZA())}function ve(n,s){1&n&&(e.TgZ(0,"span",17),e._uU(1,"This field cannot be empty."),e.qZA())}function ye(n,s){1&n&&(e.TgZ(0,"span",17),e._uU(1,"This field cannot be empty."),e.qZA())}let Me=(()=>{class n{constructor(){this.backStep=new e.vpe,this.confirmAddress=new e.vpe,this.states=P.G.states,this.filteredStates=P.G.states}setForm(){this.form=new p.cw({street:new p.NI(this.userPlace?.street,[p.kI.required]),building_number:new p.NI(this.userPlace?.building_number,[p.kI.required]),state:new p.NI(this.userPlace?.state,[p.kI.required]),short_state:new p.NI(this.userPlace?.short_state,[p.kI.required]),city:new p.NI(this.userPlace?.city,[p.kI.required]),county:new p.NI(this.userPlace?.county),zip:new p.NI(this.userPlace?.zip,[p.kI.required])})}ngOnInit(){this.userPlace=JSON.parse(localStorage.getItem("userPlace")),this.setForm()}onStateChange(){this.form.controls.short_state.setValue(this.states.find(t=>t.long_name===this.form.value.state)?.short_name)}onStateSearch(t){const o=t.target.value;o?(this.filteredStates=[],this.states.forEach(i=>{(i.long_name.toLowerCase().match(RegExp("^"+o.toLowerCase(),"g"))||i.short_name.toLowerCase().includes(o.toLowerCase()))&&this.filteredStates.push(i)})):this.filteredStates=P.G.states}onSubmit(){const t={...JSON.parse(localStorage.getItem("userPlace")),...this.form.value};localStorage.setItem("userPlace",JSON.stringify(t)),this.confirmAddress.emit()}onBack(){this.backStep.emit()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-add-confirm"]],inputs:{progress:"progress"},outputs:{backStep:"backStep",confirmAddress:"confirmAddress"},decls:25,vars:12,consts:[[1,"house-add-confirm"],[1,"house__wrap"],["text","House <br>description",3,"percent"],["text","House address"],[3,"formGroup","ngSubmit"],[1,"house-add-confirm__row"],[1,"house-add-confirm__left"],[1,"form-row"],["label","Street:","type","text","formControlName","street"],["ui-input-error","",4,"ngIf"],["label","Building number:","type","text","formControlName","building_number"],["label","Building number:","type","text","formControlName","state"],["label","City:","type","text","formControlName","city"],["label","Zip code:","type","text","formControlName","zip"],[1,"house-add-confirm__map"],[3,"lat","lng","width","height"],[3,"disabled","backStep"],["ui-input-error",""]],template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-house-progress",2)(3,"app-house-add-header",3),e.TgZ(4,"form",4),e.NdJ("ngSubmit",function(){return o.onSubmit()}),e.TgZ(5,"div",5)(6,"div",6)(7,"div",7)(8,"app-ui-input",8),e.YNc(9,xe,2,0,"span",9),e.qZA()(),e.TgZ(10,"div",7)(11,"app-ui-input",10),e.YNc(12,Ce,2,0,"span",9),e.qZA()(),e.TgZ(13,"div",7)(14,"app-ui-input",11),e.YNc(15,be,2,0,"span",9),e.qZA()(),e.TgZ(16,"div",7)(17,"app-ui-input",12),e.YNc(18,ve,2,0,"span",9),e.qZA()(),e.TgZ(19,"div",7)(20,"app-ui-input",13),e.YNc(21,ye,2,0,"span",9),e.qZA()()(),e.TgZ(22,"div",14),e._UZ(23,"app-google-map",15),e.qZA()(),e.TgZ(24,"a
1pp-house-step-buttons",16),e.NdJ("backStep",function(){return o.onBack()}),e.qZA()()()()),2&t&&(e.xp6(2),e.Q6J("percent",o.progress),e.xp6(2),e.Q6J("formGroup",o.form),e.xp6(5),e.Q6J("ngIf",o.form.controls.street.touched&&(null==o.form.controls.street.errors?null:o.form.controls.street.errors.required)),e.xp6(3),e.Q6J("ngIf",o.form.controls.building_number.touched&&(null==o.form.controls.building_number.errors?null:o.form.controls.building_number.errors.required)),e.xp6(3),e.Q6J("ngIf",o.form.controls.state.touched&&(null==o.form.controls.state.errors?null:o.form.controls.state.errors.required)),e.xp6(3),e.Q6J("ngIf",o.form.controls.city.touched&&(null==o.form.controls.city.errors?null:o.form.controls.city.errors.required)),e.xp6(3),e.Q6J("ngIf",o.form.controls.zip.touched&&(null==o.form.controls.zip.errors?null:o.form.controls.zip.errors.required)),e.xp6(2),e.Q6J("lat",null==o.userPlace?null:o.userPlace.lat)("lng",null==o.userPlace?null:o.userPlace.lng)("width","100%")("height","100%"),e.xp6(1),e.Q6J("disabled",o.form.invalid))},dependencies:[l.O5,p._Y,p.JJ,p.JL,p.sg,p.u,D.z,ue.M,_e.O,v,S,z],styles:[".house-add-confirm__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px;margin-bottom:24px}.house-add-confirm__left[_ngcontent-%COMP%]   .form-row[_ngcontent-%COMP%]{margin-bottom:12px}.house-add-confirm__left[_ngcontent-%COMP%]   .form-row[_ngcontent-%COMP%]:last-child{margin-bottom:0}.house-add-confirm__left[_ngcontent-%COMP%]   .form-row[_ngcontent-%COMP%]   app-ui-select[_ngcontent-%COMP%]{color:var(--color-dark)}.house-add-confirm__map[_ngcontent-%COMP%]     .map-container{border-radius:8px}@media screen and (max-width: 767px){.house-add-confirm__row[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:18px}.house-add-confirm__map[_ngcontent-%COMP%]{height:110px;order:1}.house-add-confirm__left[_ngcontent-%COMP%]{order:2}}"]}),n})();var I=r(1398),we=r(2565),Pe=r(1043),T=r(4471);function Oe(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",1)(1,"div",2)(2,"h2",3),e._uU(3),e.qZA(),e.TgZ(4,"button",4),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onClose())}),e.O4$(),e.TgZ(5,"svg",5),e._UZ(6,"path",6),e.qZA()()(),e.kcU(),e._UZ(7,"div",7),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Oqu(t.title),e.xp6(4),e.Q6J("innerHTML",t.text,e.oJD)}}let $=(()=>{class n{constructor(){this.isOneHouse=!1,this.isCloseModal=!1,this.bonusConnects=0,this.title="Improve your House description",this.text="",this.bonusConnects$=null,this.leadService=(0,e.f3M)(h.y),this.siteSettingsService=(0,e.f3M)(T.a)}ngOnInit(){if(this.isOneHouse)return this.title="For now, Only one HOUSE PROFILE is available",void(this.text="<p>Sorry, you can add only one house profile. But we\u2019re currently working to allow adding more.</p>");{this.bonusConnects$=this.siteSettingsService.settingsState.subscribe(o=>{o?.length&&(this.bonusConnects=+o.find(i=>"bonus_connects_for_additional_questions"===i.slug)?.value,this.text=`\n            <ul>\n              <li>Specify your needs and house description to narrow your search results</li>\n              <li>Start and complete the form at a time of your convenience</li>\n              <li>Earn ${this.bonusConnects} Connects as a one-time reward for completing the form</li>\n            </ul>\n          `)});const t=[{key:"date_showed_additional_questions_banner",value:(new Date).getTime()}];setTimeout(()=>{this.leadService.update(t,this.lead?._id).subscribe()},1e3)}}onClose(){this.isCloseModal=!0}ngOnDestroy(){this.bonusConnects$?.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-info"]],inputs:{lead:"lead",isOneHouse:"isOneHouse"},decls:1,vars:1,consts:[["class","house-modal-info",4,"ngIf"],[1,"house-modal-info"],[1,"house-modal-info__header"],[1,"house-modal-info__title"],[1,"house-modal-info__close",3,"click"],["width","12","height","12","viewBox","0 0 12 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.5491 2.67052L8.21965 6L11.5491 9.32948C12.1503 9.93063 12.1503 10.948 11.5491 11.5491C10.948 12.1503 9.93063 12.1503 9.32948 11.5491L6 8.21965L2.67052 11.5491C2.06936 12.1503 1.05202 12.1503 0.450867 11.5491C-0.150289 10.948 -0.150289 9.93063 0.450867 9.32948L3.78035 6L0.450867 2.67052C-0.150289 2.06936 -0.150289 1.05202 0.450867 0.450867C1.05202 -0.150289 2.06936 -0.150289 2.67052 0.450867L6 3.78035L9.32948 0.450867C9.93063 -0.150289 10.948 -0.150289 11.5491 0.450867C12.1503 1.05202 12.1503 2.06936 11.5491 2.67052Z","fill","currentColor"],[1,"house-modal-info__text",3,"innerHTML"]],template:function(t,o){1&t&&e.YNc(0,Oe,8,2,"div",0),2&t&&e.Q6J("ngIf",!o.isCloseModal)},dependencies:[l.O5],styles:[".house-modal-info[_ngcontent-%COMP%]{padding:16px;border-radius:8px;background:var(--color-action-blue-20);margin-bottom:24px;max-width:520px}
1.house-modal-info__header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:0 16px}.house-modal-info__title[_ngcontent-%COMP%]{color:var(--color-primary);font-size:15px;font-weight:700;line-height:1.3;letter-spacing:-.15px;text-transform:uppercase}.house-modal-info__close[_ngcontent-%COMP%]{padding:0;background:none;color:#9096a2;flex-shrink:0}.house-modal-info__close[_ngcontent-%COMP%]:hover{color:var(--color-primary)}.house-modal-info__text[_ngcontent-%COMP%]{color:var(--color-dark);font-size:14px;line-height:1.3;letter-spacing:.14px}.house-modal-info__text[_ngcontent-%COMP%]     ul{list-style:initial;padding-left:24px}"]}),n})(),L=(()=>{class n{constructor(){this.bonusConnects$=null,this.siteSettingsService=(0,e.f3M)(T.a)}ngOnInit(){this.bonusConnects$=this.siteSettingsService.settingsState.subscribe(t=>{t?.length&&(this.bonusConnects=+t.find(o=>"bonus_connects_for_additional_questions"===o.slug)?.value)})}ngOnDestroy(){this.bonusConnects$?.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-bonus-connects"]],decls:7,vars:1,consts:[[1,"house-bonus-connects"],[1,"house-bonus-connects__value"],["name","connect"],[1,"house-bonus-connects__label"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._uU(3),e.qZA(),e._UZ(4,"app-svg",2),e.qZA(),e.TgZ(5,"p",3),e._uU(6,"bonus"),e.qZA()()),2&t&&(e.xp6(3),e.hij("+",o.bonusConnects,""))},dependencies:[C.H],styles:[".house-bonus-connects[_ngcontent-%COMP%]{color:#fff}.house-bonus-connects__value[_ngcontent-%COMP%]{display:flex;align-items:center;gap:2px;font-size:14px;font-weight:700;line-height:1.6}.house-bonus-connects__value[_ngcontent-%COMP%]     svg{width:14px;height:14px}.house-bonus-connects__label[_ngcontent-%COMP%]{margin-top:-5px;font-size:12px;line-height:1.3;letter-spacing:.12px}"]}),n})();function Se(n,s){if(1&n&&e._UZ(0,"app-house-progress",11),2&n){const t=e.oxw();e.Q6J("text",t.progressText)("percent",t.progress)}}function Te(n,s){1&n&&(e.TgZ(0,"p",12),e._uU(1,"Active"),e.qZA())}let A=(()=>{class n{constructor(){this.isProfile=!1}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-mobile-header"]],inputs:{address:"address",progressText:"progressText",progress:"progress",isProfile:"isProfile"},decls:14,vars:3,consts:[[1,"house-mobile-header"],[1,"house-mobile-header__top"],[1,"house-mobile-header-house"],[1,"house-mobile-header-house__icon"],["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.26297 1.6566L2.1188 4.1066C1.5938 4.51493 1.16797 5.3841 1.16797 6.04326V10.3658C1.16797 11.7191 2.27047 12.8274 3.6238 12.8274H10.3788C11.7321 12.8274 12.8346 11.7191 12.8346 10.3716V6.12493C12.8346 5.4191 12.3621 4.51493 11.7846 4.11243L8.17964 1.5866C7.36297 1.01493 6.05047 1.0441 5.26297 1.6566Z","stroke","#181E29","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"house-mobile-header-house__text"],[1,"house-mobile-header__bottom"],[3,"address"],[3,"text","percent",4,"ngIf"],["class","house-mobile-header__status",4,"ngIf"],[3,"text","percent"],[1,"house-mobile-header__status"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.O4$(),e.TgZ(4,"svg",4),e._UZ(5,"path",5),e.qZA()(),e.kcU(),e.TgZ(6,"p",6),e._uU(7,"House 1 "),e.TgZ(8,"span"),e._uU(9,"free"),e.qZA()()()(),e.TgZ(10,"div",7),e._UZ(11,"app-house-profile-address",8),e.YNc(12,Se,1,2,"app-house-progress",9),e.YNc(13,Te,2,0,"p",10),e.qZA()()),2&t&&(e.xp6(11),e.Q6J("address",o.address),e.xp6(1),e.Q6J("ngIf",!o.isProfile),e.xp6(1),e.Q6J("ngIf",o.isProfile))},dependencies:[l.O5,v,w],styles:[".house-mobile-header[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 767px){.house-mobile-header[_ngcontent-%COMP%]{display:block;background:#29313F;padding:12px 20px}.house-mobile-header__top[_ngcontent-%COMP%]{margin-bottom:12px}.house-mobile-header-house[_ngcontent-%COMP%]{display:flex;align-items:center;border-radius:8px;background:#FFF;color:var(--color-dark);
1width:200px;padding:8px 12px;font-weight:700;font-size:12px}.house-mobile-header-house__icon[_ngcontent-%COMP%]{flex-shrink:0;margin-right:4px}.house-mobile-header-house__text[_ngcontent-%COMP%]{margin-top:1px}.house-mobile-header-house__text[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#7a808b}.house-mobile-header__bottom[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:0 16px}.house-mobile-header__bottom[_ngcontent-%COMP%]     .house-progress{margin-bottom:0}.house-mobile-header__bottom[_ngcontent-%COMP%]     .house-progress__bar:after{background:#29313F}.house-mobile-header__status[_ngcontent-%COMP%]{color:var(--color-action-green-100);font-size:12px;font-weight:700;line-height:1.6}}"]}),n})();function Ae(n,s){if(1&n&&e._UZ(0,"app-house-info",10),2&n){const t=e.oxw();e.Q6J("lead",t.lead)}}function ke(n,s){1&n&&(e.ynx(0),e.TgZ(1,"div",11),e.O4$(),e.TgZ(2,"svg",12),e._UZ(3,"path",13),e.qZA()(),e.kcU(),e._UZ(4,"app-house-bonus-connects"),e.BQk())}function Ze(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"app-ui-radio",18),e.NdJ("ngModelChange",function(i){e.CHM(t);const a=e.oxw(3);return e.KtG(a.selectedItem=i)})("change",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.onChange())}),e._uU(1),e.qZA()}if(2&n){const t=s.$implicit,o=e.oxw(3);e.Q6J("value",null==t||null==t.value?null:t.value.value)("radioStyle","second")("ngModel",o.selectedItem),e.xp6(1),e.Oqu(null==t||null==t.value?null:t.value.value)}}function He(n,s){if(1&n&&(e.TgZ(0,"div",16),e.YNc(1,Ze,2,4,"app-ui-radio",17),e.ALo(2,"keyvalue"),e.qZA()),2&n){const t=s.$implicit;e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,t))}}function Ie(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"div",14),e.YNc(2,He,3,3,"div",15),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.questionColumns)}}function Le(n,s){if(1&n&&(e.TgZ(0,"p",27),e._uU(1),e.qZA()),2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.Oqu(null==t||null==t.value?null:t.value.description)}}function qe(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"p",25),e._uU(2),e.qZA(),e.YNc(3,Le,2,1,"p",26),e.BQk()),2&n){const t=e.oxw().$implicit;e.xp6(2),e.Oqu(null==t||null==t.value?null:t.value.title),e.xp6(1),e.Q6J("ngIf",null==t||null==t.value?null:t.value.description)}}function Ee(n,s){if(1&n&&e._uU(0),2&n){const t=e.oxw().$implicit;e.hij(" ",null==t||null==t.value?null:t.value.value," ")}}function Fe(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"app-ui-checkbox",21),e.NdJ("change",function(i){const d=e.CHM(t).$implicit,_=e.oxw(3);return e.KtG(_.onCheckboxChange(i,null==d||null==d.value?null:d.value.value))}),e.TgZ(1,"div",22),e.YNc(2,qe,4,2,"ng-container",23),e.YNc(3,Ee,1,1,"ng-template",null,24,e.W1O),e.qZA()()}if(2&n){const t=s.$implicit,o=e.MAs(4),i=e.oxw(3);e.Q6J("checkboxStyle","second")("checked",null==i.selectedItemArray?null:i.selectedItemArray.includes(null==t||null==t.value?null:t.value.value))("disabled",i.isDisabledCheckboxes),e.xp6(2),e.Q6J("ngIf",null==t||null==t.value?null:t.value.title)("ngIfElse",o)}}function Ue(n,s){if(1&n&&(e.TgZ(0,"div",16),e.YNc(1,Fe,5,5,"app-ui-checkbox",20),e.ALo(2,"keyvalue"),e.qZA()),2&n){const t=s.$implicit;e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,t))}}function Je(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"app-ui-checkbox",30),e.NdJ("change",function(i){const d=e.CHM(t).$implicit,_=e.oxw(3);return e.KtG(_.onCheckboxChange(i,null==d?null:d.value,!0))}),e.TgZ(1,"div",22),e._uU(2),e.qZA()()}if(2&n){const t=s.$implicit,o=e.oxw(3);e.Q6J("checkboxStyle","second")("checked",null==o.selectedItemArray?null:o.selectedItemArray.includes(null==t?null:t.value)),e.xp6(2),e.Oqu(null==t?null:t.value)}}function Be(n,s){if(1&n&&(e.TgZ(0,"div",28),e.YNc(1,Je,3,3,"app-ui-checkbox",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.thirdQuestionColumn)}}function Qe(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"div",14),e.YNc(2,Ue,3,3,"div",15),e.qZA(),e.YNc(3,Be,2,1,"div",19),e.BQk()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngForOf",3===(null==t.questionColumns?null:t.questionColumns.length)?t.twoQuestionColumns:t.questionColumns),e.xp6(1),e.Q6J("ngIf",null==t.thirdQuestionColumn?null:t.thirdQuestionColumn.length)}}
1function Ne(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"li",36),e.NdJ("click",function(){const a=e.CHM(t).index,d=e.oxw(2);return e.KtG(d.onRangeItemClick(a))}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&n){const t=s.$implicit;e.xp6(2),e.Oqu(null==t?null:t.value)}}function De(n,s){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",31)(2,"input",32),e.NdJ("input",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.onRangeChange(i))}),e.qZA(),e._UZ(3,"div",33),e.TgZ(4,"ul",34),e.YNc(5,Ne,3,1,"li",35),e.qZA()(),e.BQk()}if(2&n){const t=e.oxw();e.xp6(2),e.s9C("max",(null==t.rangeColumns?null:t.rangeColumns.length)-1),e.Q6J("value",t.rangeValue),e.xp6(3),e.Q6J("ngForOf",t.rangeColumns)}}let ze=(()=>{class n{constructor(){this.stepNext=new e.vpe,this.stepBack=new e.vpe,this.categoryAdd=new e.vpe,this.updateLead=new e.vpe,this.saveLastRequiredStep=new e.vpe,this.createLead=new e.vpe,this.required=!1,this.progressText="House <br>description",this.isAdditional=!1,this.isLastStep=!1,this.backButtonText="Back",this.isLastRequiredStep=!1,this.isBackButton=!0,this.formLoad=!1,this.questionColumns=[],this.thirdQuestionColumn=[],this.twoQuestionColumns=[],this.rangeColumns=[],this.rangeValue=0,this.selectedItem=null,this.selectedItemArray=[],this.isDisabledCheckboxes=!1,this.updateLead$=null,this.bonusConnects$=null,this.createLead$=null,this.fb=(0,e.f3M)(p.qu),this.leadService=(0,e.f3M)(h.y),this.cd=(0,e.f3M)(e.sBO),this.authService=(0,e.f3M)(g.e),this.toastService=(0,e.f3M)(I.M),this.leadSlotsService=(0,e.f3M)(F.J)}assignForm(){if(this.lead?._id){if(this.houseAddress=this.lead?.address,"categories"===this.question.slug)return this.selectedItemArray=this.lead?.categories?.map(t=>t._id)??[],void this.form.controls.value.setValue(this.selectedItemArray);if("radio"===this.question.type){const t=this.lead.form.find(o=>o.question_obj.slug===this.question.slug)?.answers;return void(t?.length&&(this.selectedItem=t[0],this.form.controls.value.setValue(this.selectedItem)))}if("checkbox"===this.question.type)return this.selectedItemArray=this.lead.form.find(t=>t.question_obj.slug===this.question.slug).answers??[],this.thirdQuestionColumn.find(t=>this.selectedItemArray.includes(t.value))&&(this.isDisabledCheckboxes=!0),void this.form.controls.value.setValue(this.selectedItemArray);if("range"===this.question.type){const t=this.lead.form.find(o=>o.question_obj.slug===this.question.slug).answers;if(t?.length)this.rangeValue=this.rangeColumns.findIndex(o=>o.value===t[0]),this.form.controls.value.setValue(t[0]);else{switch(this.question?.slug){case"form_property_conditions":case"form_sell_fast":this.rangeValue=2;break;default:this.rangeValue=0}this.form.controls.value.setValue([this.rangeColumns[this.rangeValue].value])}return}}else{const t=JSON.parse(localStorage.getItem("userPlace"));this.houseAddress=t?.building_number+" "+t?.street;const o=t?.form?.find(i=>i.question===this.question._id)?.answers;if(!o?.length)return;o?.length>1?this.selectedItemArray=o:(this.selectedItem=o[0],this.form.controls.value.setValue([this.selectedItem]))}}ngOnChanges(t){if(t.lead?.currentValue){if("categories"!==this.question?.slug)return;this.form&&this.assignForm()}}ngOnInit(){if(this.form=this.fb.group({value:["",[p.kI.required]]}),"range"===this.question?.type)this.rangeColumns=this.question?.values;else if(this.question?.values?.length){this.questionColumns=this.question?.values,3===this.questionColumns?.length&&(this.twoQuestionColumns=[this.questionColumns[0],this.questionColumns[1]],this.thirdQuestionColumn=this.questionColumns[2]);for(const t of this.questionColumns)delete t?.description,delete t?._id}this.assignForm(),this.cd.detectChanges()}onChange(){this.form.controls.value.setValue([this.selectedItem])}onCheckboxChange(t,o,i=!1){t.target.checked?(this.selectedItemArray.push(o),i?(this.form.controls.value.setValue([o]),this.isDisabledCheckboxes=!0):this.form.controls.value.setValue(this.selectedItemArray)):(this.isDisabledCheckboxes=!1,this.selectedItemArray=this.selectedItemArray?.filter(a=>a!==o),this.form.controls.value.setValue(this.selectedItemArray))}onRangeChange(t){this.form.controls.value.setValue([this.rangeColumns[t.target.value].value])}onRangeItemClick(t){this.rangeValue=t,this.form.controls.value.setValue([this.rangeColumns[t].value])}
1onSubmit(){if(!this.form.invalid)if(this.required)if(this.isLastRequiredStep)if("homeowner"===this.authService?.getUser()?.role){this.saveLastRequiredStep.emit({question:this.question?._id,answers:this.form.value.value});const o=this.leadService.setHouseData();if(localStorage.getItem("99offers-utm-tags")){const i=JSON.parse(localStorage.getItem("99offers-utm-tags"));i.length&&i.forEach(a=>{o.push(a)})}this.formLoad=!0,this.createLead$=this.leadService.createLeadBySeller(o,this.authService.getUser()).subscribe({next:i=>{i?._id?("99offers.io"===window.location.hostname&&fbq("track","Lead"),localStorage.removeItem("userPlace"),this.createLead.emit(i),this.formLoad=!1,this.leadSlotsService.leadId.next(i._id)):this.toastService.onShowToast("Somethings goes wrong. Please, try again.","error"),this.formLoad=!1},error:i=>{this.toastService.onShowToast(i.error.message,"error"),this.formLoad=!1}})}else this.stepNext.emit({question:this.question?._id,answers:this.form.value.value});else this.stepNext.emit({question:this.question?._id,answers:this.form.value.value});else{this.formLoad=!0;const t=[];if("categories"===this.question?.slug)t.push({key:this.question?.slug,value:this.form.value.value?.length?this.form.value.value:null});else{const o=[...this.lead.form];o.find(i=>i.question_obj.slug===this.question?.slug).answers=this.form.value.value?.length?this.form.value.value:null,t.push({key:"form",value:o.map(i=>i.question_obj._id?{question:i.question_obj._id,answers:i.answers}:{question_slug:i.question_obj.slug,answers:i.answers})})}this.updateLead$=this.leadService.update(t,this.lead?._id).subscribe({next:o=>{this.lead.categories=o.categories,this.lead.form=o.form,this.lead.date_showed_additional_questions_banner=o.date_showed_additional_questions_banner,this.isLastStep?(this.updateLead.emit(o),this.formLoad=!1):(this.formLoad=!1,this.stepNext.emit(null),this.leadService.isFirstLoadingExperts.next(!1))}})}}onBack(){this.stepBack.emit()}ngOnDestroy(){this.updateLead$?.unsubscribe(),this.bonusConnects$?.unsubscribe(),this.createLead$?.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-add-step"]],inputs:{question:"question",required:"required",progress:"progress",progressText:"progressText",isAdditional:"isAdditional",lead:"lead",isLastStep:"isLastStep",backButtonText:"backButtonText",isLastRequiredStep:"isLastRequiredStep",isBackButton:"isBackButton"},outputs:{stepNext:"stepNext",stepBack:"stepBack",categoryAdd:"categoryAdd",updateLead:"updateLead",saveLastRequiredStep:"saveLastRequiredStep",createLead:"createLead"},features:[e.TTD],decls:13,vars:16,consts:[[1,"house-add-step"],[3,"address","progressText","progress"],[1,"house__wrap"],[3,"lead",4,"ngIf"],[1,"house-add-step-progress"],[3,"text","percent"],[4,"ngIf"],[3,"text","address"],[1,"house-add-step__form",3,"ngSubmit"],[3,"disabled","formLoad","backButtonText","isBackButton","backStep"],[3,"lead"],[1,"house-add-step-progress__arrow"],["width","20","height","16","viewBox","0 0 20 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.133 0.426356C11.4009 0.15336 11.7642 0 12.143 0C12.5219 0 12.8852 0.15336 13.1531 0.426356L19.5817 6.97926C19.8495 7.25234 20 7.62266 20 8.00879C20 8.39492 19.8495 8.76525 19.5817 9.03833L13.1531 15.5912C12.8836 15.8565 12.5228 16.0033 12.1482 15.9999C11.7736 15.9966 11.4153 15.8435 11.1504 15.5735C10.8856 15.3035 10.7353 14.9383 10.7321 14.5565C10.7288 14.1746 10.8728 13.8068 11.133 13.5322L15.0002 9.46499H1.42859C1.04971 9.46499 0.686338 9.31157 0.418425 9.03848C0.150512 8.76539 0 8.395 0 8.00879C0 7.62258 0.150512 7.25219 0.418425 6.9791C0.686338 6.70601 1.04971 6.55259 1.42859 6.55259H15.0002L11.133 2.48542C10.8652 2.21235 10.7148 1.84202 10.7148 1.45589C10.7148 1.06976 10.8652 0.699434 11.133 0.426356Z","fill","#ACB0BA"],[1,"house-add-step__row"],["class","house-add-step__column",4,"ngFor","ngForOf"],[1,"house-add-step__column"],["name","radio","class","house-add-step__item",3,"value","radioStyle","ngModel","ngModelChange","change",4,"ngFor","ngForOf"],["name","radio",1,"house-add-step__item",3,"value","radioStyle","ngModel","ngModelChange","change"],["class","house-add-step__third",4,"ngIf"],["name","checkbox","class","house-add-step__item",3,"checkboxStyle","checked","disabled","change",4,"ngFor","ngForOf"],["name","checkbox",1,"house-add-step__item",3,"checkboxStyle","checked","disabled","change"],[1,"house-add-step-checkbox"],[4,"ngIf","ngIfElse"],["noCategoryTitle",""],[1,"house-add-step-checkbox__title"],["class","house-add-step-checkbox__description",4,"ngIf"],[1,"house-add-step-checkbox__description"],[1,"house-add-step__third"],["name","checkbox","class","house-add-step__item",3,"checkboxStyle","checked","change",4,"ngFor","ngForOf"],["name","checkbox",1,"house-add-step__item",3,"checkboxStyle","checked","change"],[1,"house-add-step-range"],["type","range","min","0",1,"house-add-step-range__input",3,"max","value","input"],[1,"house-add-step-range__line"],[1,"house-add-step-range__list"],["class","house-add-step-range__item",3,"click",4,"ngFor","ngForOf"],[1,"house-add-step-range__item",3,"click"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"app-house-mobile-header",1),e.TgZ(2,"div",2),e.YNc(3,Ae,1,1,"app-house-info",3),e.TgZ(4,"div",4),e._UZ(5,"app-house-progress",5),e.YNc(6,ke,5,0,"ng-container",6),e.qZA(),e._UZ(7,"app-house-add-header",7),e.TgZ(8,"form",8),e.NdJ("ngSubmit",function(){return o.onSubmit()}),e.YNc(9,Ie,3,1,"ng-container",6),e.YNc(10,Qe,4,2,"ng-container",6),e.YNc(11,De,6,3,"
1ng-container",6),e.TgZ(12,"app-house-step-buttons",9),e.NdJ("backStep",function(){return o.onBack()}),e.qZA()()()()),2&t&&(e.xp6(1),e.Q6J("address",o.houseAddress)("progressText",o.progressText)("progress",o.progress),e.xp6(2),e.Q6J("ngIf","categories"===o.question.slug&&!(null!=o.lead&&o.lead.date_showed_additional_questions_banner)),e.xp6(2),e.Q6J("text",o.progressText)("percent",o.progress),e.xp6(1),e.Q6J("ngIf",o.isAdditional&&!(null!=o.lead&&o.lead.amount_of_bonus_connects)),e.xp6(1),e.Q6J("text",null==o.question?null:o.question.title)("address",o.houseAddress),e.xp6(2),e.Q6J("ngIf","radio"===(null==o.question?null:o.question.type)),e.xp6(1),e.Q6J("ngIf","checkbox"===(null==o.question?null:o.question.type)),e.xp6(1),e.Q6J("ngIf","range"===(null==o.question?null:o.question.type)),e.xp6(1),e.Q6J("disabled",o.form.invalid)("formLoad",o.formLoad)("backButtonText",o.backButtonText)("isBackButton",o.isBackButton))},dependencies:[l.sg,l.O5,p._Y,p.JJ,p.JL,p.On,p.F,we.w,Pe.Y,v,S,z,$,L,A,l.Nd],styles:['.house-add-step-progress[_ngcontent-%COMP%]{margin-bottom:24px;display:flex;align-items:center;gap:0 16px}.house-add-step-progress[_ngcontent-%COMP%]     .house-progress{margin-bottom:0}.house-add-step__row[_ngcontent-%COMP%]{display:flex;gap:0 24px;margin-bottom:24px}.house-add-step__column[_ngcontent-%COMP%]{flex:1}.house-add-step__item[_ngcontent-%COMP%]:not(:last-child){display:block;margin-bottom:16px}.house-add-step__item[_ngcontent-%COMP%]     .ui-radio label .ui-radio__box, .house-add-step__item[_ngcontent-%COMP%]     .ui-checkbox label .ui-checkbox__box{border-radius:6px!important;border:1px solid #7A808B!important;background:#F6F7F9;margin-right:16px!important}.house-add-step__item[_ngcontent-%COMP%]     .ui-radio.checked label .ui-radio__box, .house-add-step__item[_ngcontent-%COMP%]     .ui-checkbox.checked label .ui-checkbox__box{border:1px solid #7A808B!important;background:#F6F7F9!important;color:var(--color-action-green-100)!important}.house-add-step__item[_ngcontent-%COMP%]     .ui-radio.checked label .ui-radio__box span{width:10px!important;height:10px!important;border-radius:2px!important}.house-add-step__item[_ngcontent-%COMP%]     .ui-checkbox--second{height:auto}.house-add-step__item[_ngcontent-%COMP%]     .ui-checkbox.disabled.ui-checkbox--second{opacity:.2}.house-add-step-checkbox__title[_ngcontent-%COMP%]{font-size:14px;font-weight:700;line-height:1.3}.house-add-step-checkbox__description[_ngcontent-%COMP%]{margin-top:4px;font-size:12px;color:var(--greyscale-80, #C8CAD1);line-height:1.3}.house-add-step__third[_ngcontent-%COMP%]{padding-top:24px;border-top:1px solid #D9D9D9;margin-bottom:24px}.house-add-step-range[_ngcontent-%COMP%]{position:relative;margin:0 20px 60px}.house-add-step-range__input[_ngcontent-%COMP%]{position:relative;z-index:1;-webkit-appearance:none;width:100%;height:6px;background:none}.house-add-step-range__input[_ngcontent-%COMP%]::-webkit-slider-thumb{-webkit-appearance:none;height:16px;width:16px;border-radius:50%;background:var(--color-primary);border:1px solid var(--color-greyscale-60);cursor:ew-resize}.house-add-step-range__input[_ngcontent-%COMP%]::-webkit-slider-runnable-track{-webkit-appearance:none;box-shadow:none;border:none;background:transparent}.house-add-step-range__line[_ngcontent-%COMP%]{position:absolute;top:9px;left:5px;right:5px;height:6px;background:var(--color-greyscale-60)}.house-add-step-range__list[_ngcontent-%COMP%]{position:absolute;display:flex;justify-content:space-between;top:50%;transform:translateY(-50%);left:5px;right:5px;height:6px}.house-add-step-range__item[_ngcontent-%COMP%]{position:relative;width:4px;height:10px;border-radius:32px;background:var(--color-greyscale-60)}.house-add-step-range__item[_ngcontent-%COMP%]:before{content:"";position:absolute;width:50px;height:50px;top:50%;left:50%;transform:translate(-50%,-50%)}.house-add-step-range__item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 13px);left:50%;transform:translate(-50%);white-space:nowrap;font-size:16px;line-height:1.3}@media screen and (max-width: 767px){.house-add-step-mobile-header[_ngcontent-%COMP%]{display:block}.house-add-step__row[_ngcontent-%COMP%]{flex-direction:column;gap:16px;margin-bottom:16px}
1.house-add-step__item[_ngcontent-%COMP%]     .ui-checkbox__box{width:18px!important;height:18px!important}.house-add-step__item[_ngcontent-%COMP%]     .ui-checkbox label{font-size:12px!important}.house-add-step__item[_ngcontent-%COMP%]     .ui-radio label{font-size:14px!important}.house-add-step__item[_ngcontent-%COMP%]     .ui-radio label .ui-radio__box{width:18px!important;height:18px!important}.house-add-step-range__item[_ngcontent-%COMP%]:before{width:10px;height:10px}.house-add-step-range__item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:10px}.house-add-step__third[_ngcontent-%COMP%]{padding-top:16px;margin-bottom:16px}.house-add-step-progress[_ngcontent-%COMP%]{display:none}}']}),n})();var $e=r(2098),Re=r(5631);function Ye(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"app-homeowner-sign-up",4),e.NdJ("login",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.componentType="login")})("backStep",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onBack())})("auth",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.onAuth(i))}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("isAddHouse",!0)("houseData",t.houseData)}}
1function Ge(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"app-homeowner-login",5),e.NdJ("signUp",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.componentType="signup")})("backStep",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onBack())})("auth",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.onAuth(i))}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("isAddHouse",!0)("houseData",t.houseData)}}let Ve=(()=>{class n{constructor(){this.backStep=new e.vpe,this.auth=new e.vpe,this.componentType="signup",this.houseData=[],this.leadService=(0,e.f3M)(h.y)}ngOnInit(){this.houseData=this.leadService.setHouseData()}onBack(){this.backStep.emit()}onAuth(t){this.auth.emit(t),window.scroll(0,0)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-add-auth"]],outputs:{backStep:"backStep",auth:"auth"},decls:4,vars:2,consts:[[1,"house-add-auth"],[1,"house__wrap"],[3,"isAddHouse","houseData","login","backStep","auth",4,"ngIf"],[3,"isAddHouse","houseData","signUp","backStep","auth",4,"ngIf"],[3,"isAddHouse","houseData","login","backStep","auth"],[3,"isAddHouse","houseData","signUp","backStep","auth"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Ye,1,2,"app-homeowner-sign-up",2),e.YNc(3,Ge,1,2,"app-homeowner-login",3),e.qZA()()),2&t&&(e.xp6(2),e.Q6J("ngIf","signup"===o.componentType),e.xp6(1),e.Q6J("ngIf","login"===o.componentType))},dependencies:[l.O5,$e.y,Re.P]}),n})();function je(n,s){1&n&&e._UZ(0,"app-house-info",20),2&n&&e.Q6J("isOneHouse",!0)}let We=(()=>{class n{constructor(){this.improveHouseDescription=new e.vpe,this.findExperts=new e.vpe}onImproveHouseDescription(){this.improveHouseDescription.emit()}onFindExperts(){this.findExperts.emit()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-add-description"]],inputs:{lead:"lead",createdLead:"createdLead"},outputs:{improveHouseDescription:"improveHouseDescription",findExperts:"findExperts"},decls:37,vars:7,consts:[[1,"house-add-description"],[3,"address","progressText","progress"],[1,"house__wrap"],[3,"isOneHouse",4,"ngIf"],[1,"house-add-description-progress"],["text","House <br>description",3,"percent"],[1,"house-add-description-progress__arrow"],["width","20","height","16","viewBox","0 0 20 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.133 0.426356C11.4009 0.15336 11.7642 0 12.143 0C12.5219 0 12.8852 0.15336 13.1531 0.426356L19.5817 6.97926C19.8495 7.25234 20 7.62266 20 8.00879C20 8.39492 19.8495 8.76525 19.5817 9.03833L13.1531 15.5912C12.8836 15.8565 12.5228 16.0033 12.1482 15.9999C11.7736 15.9966 11.4153 15.8435 11.1504 15.5735C10.8856 15.3035 10.7353 14.9383 10.7321 14.5565C10.7288 14.1746 10.8728 13.8068 11.133 13.5322L15.0002 9.46499H1.42859C1.04971 9.46499 0.686338 9.31157 0.418425 9.03848C0.150512 8.76539 0 8.395 0 8.00879C0 7.62258 0.150512 7.25219 0.418425 6.9791C0.686338 6.70601 1.04971 6.55259 1.42859 6.55259H15.0002L11.133 2.48542C10.8652 2.21235 10.7148 1.84202 10.7148 1.45589C10.7148 1.06976 10.8652 0.699434 11.133 0.426356Z","fill","#ACB0BA"],["color","grey","text","Improve house <br>description",3,"percent"],["text","Your House Description Is Ready!",3,"address"],[1,"house-add-description-content"],[1,"house-add-description-content__title"],[1,"house-add-description-list"],[1,"house-add-description-item"],[1,"house-add-description-item-text"],[1,"house-add-description-item-right"],["type","button","ui-flat-button","","color","primary",3,"click"],["name","connect"],["type","button","ui-flat-button","","color","white",3,"click"],[3,"isOneHouse"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"app-house-mobile-header",1),e.TgZ(2,"div",2),e.YNc(3,je,1,1,"app-house-info",3),e.TgZ(4,"div",4),e._UZ(5,"app-house-progress",5),e.TgZ(6,"div",6),e.O4$(),e.TgZ(7,"svg",7),e._UZ(8,"path",8),e.qZA()(),e.kcU(),e._UZ(9,"app-house-progress",9),e.qZA(),e._UZ(10,"app-house-add-header",10),e.TgZ(11,"div",11)(12,"h3",12),e._uU(13,"Let\u2019s choose your next step"),e.qZA(),e.TgZ(14,"ul",13)(15,"li",14)(16,"div",15)(17,"p")(18,"strong"),e._uU(19,"Find Experts"),e.qZA(),e._uU(20," using the house description you\u2019ve just created. The selection of experts will be fairly wide."),e.qZA()(),e.TgZ(21,"div",16)(22,"button",17),e.NdJ("click",function(){return o.onFindExperts()}),e._uU(23,"Find experts"),e.qZA()()(),e.TgZ(24,"li",14)(25,"div",15)(26,"span")(27,"strong"),e._uU(28,"Improve your house description"),e.qZA(),e._uU(29," by adding details to get more accurate search results and find a perfect match faster. As a bonus \u2013 Connects"),e.qZA(),e._UZ(30,"app-svg",18),e.TgZ(31,"span"),e._uU(32,"that will allow you to contact a larger number of experts."),e.qZA()(),e.TgZ(33,"div",16)(34,"button",19),e.NdJ("click",function(){return o.onImproveHouseDescription()}),e._uU(35,"Improve house description"),e.qZA(),e._UZ(36,"app-house-bonus-connects"),e.qZA()()()()()()),2&t&&(e.xp6(1),e.Q6J("address",null==o.lead?null:o.lead.address)("progressText","House <br>description")("progress",100),e.xp6(2),e.Q6J("ngIf",(null==o.createdLead?null:o.createdLead._id)!==(null==o.lead?null:o.lead._id)),e.xp6(2),e.Q6J("percent",100),e.xp6(4),e.Q6J("percent",0),e.xp6(1),e.Q6J("address",null==o.lead?null:o.lead.address))},dependencies:[l.O5,C.H,b.z,v,S,$,L,A],styles:['.house-add-description-progress[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}
1.house-add-description-progress__arrow[_ngcontent-%COMP%]{margin:0 16px}.house-add-description-progress[_ngcontent-%COMP%]     .house-progress{margin-bottom:0}.house-add-description-content__title[_ngcontent-%COMP%]{font-size:14px;color:#e6e6eb;font-weight:700;line-height:1.3;letter-spacing:-.14px;text-transform:uppercase;margin-bottom:24px}.house-add-description-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:0 65px}.house-add-description-item[_ngcontent-%COMP%]:not(:last-child){margin-bottom:16px}.house-add-description-item-text[_ngcontent-%COMP%]{position:relative;font-size:14px;letter-spacing:.14px;line-height:1.3;padding-left:22px}.house-add-description-item-text[_ngcontent-%COMP%]:before{content:"";position:absolute;top:7px;left:9px;width:4px;height:4px;border-radius:100%;background:#E6E6EB}.house-add-description-item-text[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-weight:700}.house-add-description-item-text[_ngcontent-%COMP%]     svg{display:initial;transform:translateY(3px);position:relative;margin:-1px 4px 0;width:16px;height:16px}.house-add-description-item-right[_ngcontent-%COMP%]{flex-shrink:0;width:185px;display:flex;align-items:center;gap:0 11px}.house-add-description-item-right[_ngcontent-%COMP%]   .ui-button[_ngcontent-%COMP%]{width:100%}.house-add-description-item-right[_ngcontent-%COMP%]   app-house-bonus-connects[_ngcontent-%COMP%]{flex-shrink:0}@media screen and (max-width: 767px){.house-add-description-progress[_ngcontent-%COMP%]{display:none}.house-add-description-content__title[_ngcontent-%COMP%]{font-size:12px;margin-bottom:16px}.house-add-description-item[_ngcontent-%COMP%]{display:block}.house-add-description-item-text[_ngcontent-%COMP%]{font-size:12px;padding-left:20px;margin-bottom:12px}.house-add-description-item-right[_ngcontent-%COMP%]{width:100%;gap:0 24px}}']}),n})();var k=r(6346);function Ke(n,s){1&n&&e._UZ(0,"app-svg",21)}function Xe(n,s){1&n&&e._uU(0,"Add Connects to my balance")}let et=(()=>{class n{constructor(){this.claim=new e.vpe,this.formLoad=!1,this.bonusConnects$=null,this.setBonusConnects$=null,this.user$=null,this.getLead$=null,this.destroy$=new f.x,this.siteSettingsService=(0,e.f3M)(T.a),this.leadService=(0,e.f3M)(h.y),this.toastService=(0,e.f3M)(I.M),this.authService=(0,e.f3M)(g.e),this.usersService=(0,e.f3M)(k.f),this.addressService=(0,e.f3M)(J.D),this.router=(0,e.f3M)(u.F0)}ngOnInit(){this.bonusConnects$=this.siteSettingsService.settingsState.subscribe(t=>{t?.length&&(this.bonusConnects=+t.find(o=>"bonus_connects_for_additional_questions"===o.slug)?.value,this.bonusConnectsEq=+t.find(o=>"bonus_connects_eq_for_additional_questions"===o.slug)?.value)})}onClaim(){this.formLoad=!0,this.setBonusConnects$=this.leadService.setBonusConnects(this.lead?._id).subscribe({next:()=>{this.getMyLead(),localStorage.removeItem("seoPagesData")},error:t=>{this.toastService.onShowToast(t.error.message,"error"),this.formLoad=!1}})}getMyLead(){this.getLead$=this.leadService.getById(this.lead?._id).subscribe({next:t=>{t?._id&&(this.updatedLead=t,localStorage.setItem("currentLeadData",JSON.stringify(t)),this.onUpdateUser())},error:t=>{this.toastService.onShowToast(t.error.message,"error"),this.formLoad=!1}})}onUpdateUser(){this.user$=this.authService.validate(localStorage.getItem("99offers-auth-token")).subscribe({next:t=>{t?.user?._id&&(this.authService.setUser(t.user),this.claim.emit(this.updatedLead),this.addressService.checkExpertFillingAddress(),this.formLoad=!1)},error:t=>{this.toastService.onShowToast(t.error.message,"error"),this.formLoad=!1}})}ngOnDestroy(){this.bonusConnects$?.unsubscribe(),this.setBonusConnects$?.unsubscribe(),this.user$?.unsubscribe(),this.getLead$?.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-add-claim"]],inputs:{progress:"progress",progressText:"progressText",lead:"lead"},outputs:{claim:"claim"},decls:34,vars:13,consts:[[1,"house-add-claim"],[3,"address","progressText","progress"],[1,"house__wrap"],[1,"house-add-claim-progress"],[3,"text","percent"],[1,"house-add-claim-progress__arrow"],["width","20","height","16","viewBox","0 0 20 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.133 0.426356C11.4009 0.15336 11.7642 0 12.143 0C12.5219 0 12.8852 0.15336 13.1531 0.426356L19.5817 6.97926C19.8495 7.25234 20 7.62266 20 8.00879C20 8.39492 19.8495 8.76525 19.5817 9.03833L13.1531 15.5912C12.8836 15.8565 12.5228 16.0033 12.1482 15.9999C11.7736 15.9966 11.4153 15.8435 11.1504 15.5735C10.8856 15.3035 10.7353 14.9383 10.7321 14.5565C10.7288 14.1746 10.8728 13.8068 11.133 13.5322L15.0002 9.46499H1.42859C1.04971 9.46499 0.686338 9.31157 0.418425 9.03848C0.150512 8.76539 0 8.395 0 8.00879C0 7.62258 0.150512 7.25219 0.418425 6.9791C0.686338 6.70601 1.04971 6.55259 1.42859 6.55259H15.0002L11.133 2.48542C10.8652 2.21235 10.7148 1.84202 10.7148 1.45589C10.7148 1.06976 10.8652 0.699434 11.133 0.426356Z","fill","#ACB0BA"],[1,"house-add-claim__top"],[1,"house-add-claim__title"],[3,"address"],["src","/assets/img/claim-connects-mobile.png","alt","Connects",1,"house-add-claim__image","house-add-claim__image--mobile"],[1,"house-add-claim-bottom"],[1,"house-add-claim-bottom__left"],[1,"house-add-claim-bottom__text"],[1,"house-add-claim-bottom__connects"],["type","button","ui-flat-button","","color","primary-white",1,"house-add-claim__button",3,"disabled","click"],["name","form-load",4,"ngIf","ngIfElse"],["noFormLo
1ad",""],[1,"house-add-claim-bottom__right"],["src","/assets/img/claim-connects-2.png","alt","Connects",1,"house-add-claim__image"],["name","form-load"]],template:function(t,o){if(1&t&&(e.TgZ(0,"div",0),e._UZ(1,"app-house-mobile-header",1),e.TgZ(2,"div",2)(3,"div",3),e._UZ(4,"app-house-progress",4),e.TgZ(5,"div",5),e.O4$(),e.TgZ(6,"svg",6),e._UZ(7,"path",7),e.qZA()(),e.kcU(),e._UZ(8,"app-house-bonus-connects"),e.qZA(),e.TgZ(9,"div",8)(10,"p",9)(11,"span"),e._uU(12,"Congratulations!"),e.qZA(),e._uU(13,"Registration has been "),e._UZ(14,"br"),e._uU(15,"successfully completed"),e.qZA(),e._UZ(16,"app-house-profile-address",10)(17,"img",11),e.qZA(),e.TgZ(18,"div",12)(19,"div",13)(20,"p",14),e._uU(21,"For completing your home profile, we give you"),e.qZA(),e.TgZ(22,"p",15),e._uU(23),e.qZA(),e.TgZ(24,"p",14),e._uU(25,"so that you can start sending your requests "),e._UZ(26,"br"),e._uU(27,"to Experts right away."),e.qZA(),e.TgZ(28,"button",16),e.NdJ("click",function(){return o.onClaim()}),e.YNc(29,Ke,1,0,"app-svg",17),e.YNc(30,Xe,1,0,"ng-template",null,18,e.W1O),e.qZA()(),e.TgZ(32,"div",19),e._UZ(33,"img",20),e.qZA()()()()),2&t){const i=e.MAs(31);e.xp6(1),e.Q6J("address",null==o.lead?null:o.lead.address)("progressText",o.progressText)("progress",o.progress),e.xp6(3),e.Q6J("text",o.progressText)("percent",o.progress),e.xp6(12),e.Q6J("address",null==o.lead?null:o.lead.address),e.xp6(7),e.AsE("",o.bonusConnects," Connects (eq.$",o.bonusConnectsEq,")"),e.xp6(5),e.ekj("form-load-btn",o.formLoad),e.Q6J("disabled",o.formLoad),e.xp6(1),e.Q6J("ngIf",o.formLoad)("ngIfElse",i)}},dependencies:[l.O5,C.H,b.z,v,w,L,A],styles:[".house-add-claim-progress[_ngcontent-%COMP%]{margin-bottom:24px;display:flex;align-items:center;gap:0 16px}.house-add-claim-progress[_ngcontent-%COMP%]     .house-progress{margin-bottom:0}.house-add-claim__top[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.house-add-claim__title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;line-height:1.3;letter-spacing:-.18px}.house-add-claim__title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--color-primary);display:block}.house-add-claim-bottom[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.house-add-claim-bottom__left[_ngcontent-%COMP%]{width:350px}.house-add-claim-bottom__text[_ngcontent-%COMP%]{font-size:14px;line-height:1.2;font-weight:500;margin-bottom:24px}.house-add-claim-bottom__connects[_ngcontent-%COMP%]{color:#ffeb35;font-size:40px;font-weight:700;line-height:1.2;letter-spacing:-.4px;margin-bottom:24px;white-space:nowrap}.house-add-claim__image--mobile[_ngcontent-%COMP%]{display:none}.house-add-claim__button[_ngcontent-%COMP%]{width:100%}@media screen and (max-width: 767px){.house-add-claim-progress[_ngcontent-%COMP%]{display:none}.house-add-claim__top[_ngcontent-%COMP%]{margin-bottom:16px;gap:0 10px}.house-add-claim__top[_ngcontent-%COMP%]   app-house-profile-address[_ngcontent-%COMP%]{display:none}.house-add-claim__title[_ngcontent-%COMP%]   br[_ngcontent-%COMP%]{display:none}.house-add-claim__bottom[_ngcontent-%COMP%]{padding:0;margin-bottom:16px}.house-add-claim__text[_ngcontent-%COMP%]{font-size:14px}.house-add-claim__image[_ngcontent-%COMP%]{display:none;flex-shrink:0}.house-add-claim__image--mobile[_ngcontent-%COMP%]{display:block}.house-add-claim__button[_ngcontent-%COMP%]{width:100%}.house-add-claim-bottom__connects[_ngcontent-%COMP%]{white-space:initial}}@media screen and (max-width: 389px){.house-add-claim__title[_ngcontent-%COMP%]{font-size:20px}.house-add-claim__image[_ngcontent-%COMP%]{width:54px}.house-add-claim-bottom__text[_ngcontent-%COMP%]{font-size:13px}}"]}),n})();const tt=["houseAddElement"];function nt(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"app-house-add-free",9),e.NdJ("describeHouse",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onDescribeHouse())}),e.qZA()}}function ot(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"app-house-add-address",10),e.NdJ("addAddress",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onAddAddress())}),e.qZA()}2&n&&e.Q6J("progress",0)}
1function st(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"app-house-add-confirm",11),e.NdJ("backStep",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onConfirmBack())})("confirmAddress",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onConfirmAddress())}),e.qZA()}2&n&&e.Q6J("progress",25)}function it(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"app-house-add-step",14),e.NdJ("stepNext",function(i){e.CHM(t);const a=e.oxw(3);return e.KtG(a.onStepNext(i))})("stepBack",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.onStepBack())})("saveLastRequiredStep",function(i){e.CHM(t);const a=e.oxw(3);return e.KtG(a.onSaveLeadFormStep(i))})("createLead",function(i){e.CHM(t);const a=e.oxw(3);return e.KtG(a.onCreateLead(i))}),e.qZA()}if(2&n){const t=e.oxw(),o=t.$implicit,i=t.index,a=e.oxw(2);e.Q6J("question",o)("progress",25*(2+i))("required",!0)("isLastRequiredStep",a.currentStep===(null==a.questionsRequired?null:a.questionsRequired.length))}}function rt(n,s){if(1&n&&(e.ynx(0),e.YNc(1,it,1,4,"app-house-add-step",13),e.BQk()),2&n){const t=s.index,o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",o.currentStep===t+1)}}function at(n,s){if(1&n&&(e.ynx(0),e.YNc(1,rt,2,1,"ng-container",12),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.questionsRequired)}}function lt(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"app-house-add-auth",15),e.NdJ("backStep",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onStepBack())})("auth",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.onAuth(i))}),e.qZA()}}function pt(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"app-house-add-description",16),e.NdJ("improveHouseDescription",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.componentType="category")})("findExperts",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onCloseLead())}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("lead",t.selectedLead)("createdLead",t.createdLead)}}function dt(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"app-house-add-step",17),e.NdJ("stepNext",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onCategoryAdd())})("stepBack",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onCloseLead())}),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("progress",10)("question",t.categoriesQuestions)("progressText","Sale details")("lead",t.selectedLead)("backButtonText","Close")("isAdditional",!0)("isBackButton",!(null==t.selectedLead||!t.selectedLead.date_got_connects_for_additional_questions))}}function ct(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"app-house-add-step",19),e.NdJ("stepNext",function(i){e.CHM(t);const a=e.oxw(3);return e.KtG(a.onStepNext(i))})("stepBack",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.onStepBack())})("updateLead",function(i){e.CHM(t);const a=e.oxw(3);return e.KtG(a.onUpdateLead(i))}),e.qZA()}if(2&n){const t=e.oxw(),o=t.$implicit,i=t.index,a=e.oxw(2);e.Q6J("question",o)("lead",a.selectedLead)("progress",10*(i+2))("progressText","Sale details")("isLastStep",i===(null==a.questionsAdditional?null:a.questionsAdditional.length)-1)("isAdditional",!0)}}function ut(n,s){if(1&n&&(e.ynx(0),e.YNc(1,ct,1,6,"app-house-add-step",18),e.BQk()),2&n){const t=s.index,o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",o.currentStep===t+(null==o.questionsRequired?null:o.questionsRequired.length)+1)}}function _t(n,s){if(1&n&&(e.ynx(0),e.YNc(1,ut,2,1,"ng-container",12),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.questionsAdditional)}}function ht(n,s){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"app-house-add-claim",20),e.NdJ("claim",function(i){e.CHM(t);const a=e.oxw();return e.KtG(a.onClaim(i))}),e.qZA(),e.BQk()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("progress",100)("progressText","Sale details")("lead",t.selectedLead)}}let gt=(()=>{class n{constructor(){this.updateLead=new e.vpe,this.editAdditional=new e.vpe,this.startEdit=new e.vpe,this.isEditAdditional=!1,this.isFullHeight=!1,this.componentType="add_free",this.questions=[],this.questionsRequired=[],this.questionsAdditional=[],this.currentStep=0,this.categories=[],this.categories$=null,this.destroy$=new f.x,this.leadQuestionsService=(0,e.f3M)(ae),this.categoriesService=(0,e.f3M)(Q.G),this.leadService=(0,e.f3M)(h.y)}ngOnInit(){this.getCategoriesCache(),this.leadQuestionsService.getAll().subscribe({next:t=>{t?.docs?.length&&(this.questions=t?.docs,this.questionsRequired=t?.docs?.filter(o=>!o.is_additional),this.questionsAdditional=t?.docs?.filter(o=>o.is_additional),this.getLocalUserPlaceStep())}}),this.checkClickAddressLisst(),this.onSetSeoAddress()}checkClickAddressLisst(){this.leadService.isClickInAddressList.pipe((0,c.R)(this.destroy$)).subscribe(t=>{t&&(this.onAddAddress(),this.scrollByPointOnePx())})}scrollByPointOnePx(){window.scrollBy(0,1)}onAddAddress(){this.componentType="confirm_address",this.scrollToTop()}onDescribeHouse(){this.componentType="add_address",this.startEdit.emit(),this.scrollToTop()}getLocalUserPlaceStep(){this.userPlace=JSON.parse(localStorage.getItem("userPlace")),this.userPlace&&(this.startEdit.emit(),this.userPlace?.last_step?(this.componentType="require_steps",this.currentStep=this.userPlace?.last_step):this.componentType="confirm_address")}onSetSeoAddress(){this.leadService.isFindExpertSeoButton.subscribe(t=>{t&&this.onAddAddress()})}getCategoriesCache(){this.categories$=this.categoriesService.categoriesPublicState.subscribe(t=>{t?.length?(this.categories=t,this.categoriesQuestions={title:"Which selling option suits you best?",slug:"categories",type:"checkbox",values:[this.categories.map(o=>
1({value:o._id,title:o.title,description:o.description}))]}):this.getCategories()})}getCategories(){this.categories$=this.categoriesService.getAllPublic(1,null,null,null).subscribe({next:t=>{t?.docs?.length&&this.categoriesService.setCategoriesPublic(t?.docs)}})}onConfirmAddress(){this.userPlace=JSON.parse(localStorage.getItem("userPlace")),this.componentType="require_steps",this.currentStep=1,this.userPlace.last_step=1,localStorage.setItem("userPlace",JSON.stringify(this.userPlace)),this.scrollToTop()}onConfirmBack(){this.componentType="add_address",this.scrollToTop()}onStepNext(t){this.currentStep===this.questionsRequired?.length?this.componentType="auth":this.currentStep=this.currentStep+1,this.userPlace&&(this.userPlace.last_step=this.currentStep,this.userPlace?.form?.length||(this.userPlace.form=[]),this.onSaveLeadFormStep(t)),this.isEditAdditional&&localStorage.setItem("houseAdditionalStep",this.currentStep.toString()),this.scrollToTop()}onSaveLeadFormStep(t){this.userPlace?.form?.find(o=>o?.question===t?.question)?this.userPlace.form.splice(this.userPlace?.form?.findIndex(o=>o.question===t.question),1,t):this.userPlace.form.push(t),localStorage.setItem("userPlace",JSON.stringify(this.userPlace))}onCreateLead(t){this.userPlace=null,this.selectedLead=t,this.componentType="category",localStorage.setItem("houseAdditionalStep","category")}onStepBack(){if("auth"===this.componentType)return this.componentType="require_steps",void(this.currentStep=this.questionsRequired?.length);1===this.currentStep&&(this.componentType="confirm_address"),this.currentStep===this.questionsRequired?.length+1&&(this.componentType="category",localStorage.setItem("houseAdditionalStep","category")),this.currentStep=this.currentStep-1,this.isEditAdditional&&"category"!==localStorage.getItem("houseAdditionalStep")&&localStorage.setItem("houseAdditionalStep",this.currentStep.toString()),this.scrollToTop()}onAuth(t){this.scrollToTop(),this.userPlace=null,this.componentType="category",localStorage.setItem("houseAdditionalStep","category"),this.selectedLead=t,this.createdLead=t,this.editAdditional.emit()}onCategoryAdd(){this.componentType="additional",this.currentStep=this.questionsRequired?.length+1,localStorage.setItem("houseAdditionalStep",this.currentStep.toString()),this.scrollToTop()}ngOnChanges(t){if(t.isEditAdditional?.currentValue){if("house_description"===this.componentType)return;const o=localStorage.getItem("houseAdditionalStep");o?"category"===o?this.componentType="category":"claim"===o?this.componentType="claim":(this.componentType="additional",this.currentStep=+o):this.componentType="category"}}
1onUpdateLead(t){const o=t.form.filter(M=>M.question_obj?.is_additional),a=Math.ceil(25/(o?.length+1)),d=o.filter(M=>M.answers?.length>0);let _=75;t?.categories?.length&&(_+=a),_+=d?.length*a,_>100&&(_=100),100!==_||t?.date_got_connects_for_additional_questions?(localStorage.removeItem("houseAdditionalStep"),this.updateLead.emit(t)):(this.componentType="claim",this.isEditAdditional&&localStorage.setItem("houseAdditionalStep","claim"),this.scrollToTop())}onClaim(t){this.updateLead.emit(t),localStorage.removeItem("houseAdditionalStep")}onCloseLead(){this.updateLead.emit(this.selectedLead),localStorage.removeItem("houseAdditionalStep")}scrollToTop(){this.isFullHeight?window.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:this.houseAddElement.nativeElement.offsetTop-100,behavior:"smooth"})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.categories$?.unsubscribe(),this.leadService.isClickInAddressList.next(!1)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-add"]],viewQuery:function(t,o){if(1&t&&e.Gf(tt,5),2&t){let i;e.iGM(i=e.CRH())&&(o.houseAddElement=i.first)}},inputs:{isEditAdditional:"isEditAdditional",selectedLead:"selectedLead",isFullHeight:"isFullHeight"},outputs:{updateLead:"updateLead",editAdditional:"editAdditional",startEdit:"startEdit"},features:[e.TTD],decls:11,vars:9,consts:[[1,"house-add"],["houseAddElement",""],[3,"describeHouse",4,"ngIf"],[3,"progress","addAddress",4,"ngIf"],[3,"progress","backStep","confirmAddress",4,"ngIf"],[4,"ngIf"],[3,"backStep","auth",4,"ngIf"],[3,"lead","createdLead","improveHouseDescription","findExperts",4,"ngIf"],[3,"progress","question","progressText","lead","backButtonText","isAdditional","isBackButton","stepNext","stepBack",4,"ngIf"],[3,"describeHouse"],[3,"progress","addAddress"],[3,"progress","backStep","confirmAddress"],[4,"ngFor","ngForOf"],[3,"question","progress","required","isLastRequiredStep","stepNext","stepBack","
1saveLastRequiredStep","createLead",4,"ngIf"],[3,"question","progress","required","isLastRequiredStep","stepNext","stepBack","saveLastRequiredStep","createLead"],[3,"backStep","auth"],[3,"lead","createdLead","improveHouseDescription","findExperts"],[3,"progress","question","progressText","lead","backButtonText","isAdditional","isBackButton","stepNext","stepBack"],[3,"question","lead","progress","progressText","isLastStep","isAdditional","stepNext","stepBack","updateLead",4,"ngIf"],[3,"question","lead","progress","progressText","isLastStep","isAdditional","stepNext","stepBack","updateLead"],[3,"progress","progressText","lead","claim"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0,1),e.YNc(2,nt,1,0,"app-house-add-free",2),e.YNc(3,ot,1,1,"app-house-add-address",3),e.YNc(4,st,1,1,"app-house-add-confirm",4),e.YNc(5,at,2,1,"ng-container",5),e.YNc(6,lt,1,0,"app-house-add-auth",6),e.YNc(7,pt,1,2,"app-house-add-description",7),e.YNc(8,dt,1,7,"app-house-add-step",8),e.YNc(9,_t,2,1,"ng-container",5),e.YNc(10,ht,2,3,"ng-container",5),e.qZA()),2&t&&(e.xp6(2),e.Q6J("ngIf","add_free"===o.componentType),e.xp6(1),e.Q6J("ngIf","add_address"===o.componentType),e.xp6(1),e.Q6J("ngIf","confirm_address"===o.componentType),e.xp6(1),e.Q6J("ngIf","require_steps"===o.componentType),e.xp6(1),e.Q6J("ngIf","auth"===o.componentType),e.xp6(1),e.Q6J("ngIf","house_description"===o.componentType),e.xp6(1),e.Q6J("ngIf","category"===o.componentType),e.xp6(1),e.Q6J("ngIf","additional"===o.componentType),e.xp6(1),e.Q6J("ngIf","claim"===o.componentType))},dependencies:[l.sg,l.O5,le,ce,Me,ze,Ve,We,et]}),n})();var ft=r(3730),mt=r(2211),xt=r(5537);function Ct(n,s){1&n&&(e.TgZ(0,"div",9),e.O4$(),e.TgZ(1,"svg",10),e._UZ(2,"path",11)(3,"path",12)(4,"path",13),e.qZA()())}function bt(n,s){1&n&&e._UZ(0,"app-svg",17)}function vt(n,s){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA(),e._UZ(2,"app-svg",18)),2&n){const t=e.oxw(2);e.xp6(1),e.hij("Get My ",t.bonusConnects,"")}}function yt(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onGetBonusConnect())}),e.YNc(1,bt,1,0,"app-svg",15),e.YNc(2,vt,3,1,"ng-template",null,16,e.W1O),e.qZA()}if(2&n){const t=e.MAs(3),o=e.oxw();e.ekj("form-load-btn",o.formLoad),e.Q6J("disabled",o.formLoad),e.xp6(1),e.Q6J("ngIf",o.formLoad)("ngIfElse",t)}}let Mt=(()=>{class n{constructor(){this.editProfile=new e.vpe,this.text="The more complete your house profile, the more accurate selection of offers",this.isCanGetFreeToken=!1,this.formLoad=!1,this.bonusConnects$=null,this.getBonusConnect$=null,this.user$=null,this.siteSettingsService=(0,e.f3M)(T.a),this.leadService=(0,e.f3M)(h.y),this.toastService=(0,e.f3M)(I.M),this.authService=(0,e.f3M)(g.e)}onEdit(){this.editProfile.emit()}ngOnInit(){this.bonusConnects$=this.siteSettingsService.settingsState.subscribe(t=>{t?.length&&(this.bonusConnects=+t.find(o=>"bonus_connects_for_additional_questions"===o.slug)?.value)}),100===this.profilePercent&&!this.lead?.date_got_connects_for_additional_questions&&(this.text="Get your reward for completing profile",this.isCanGetFreeToken=!0)}onGetBonusConnect(){this.formLoad=!0,this.bonusConnects$=this.leadService.setBonusConnects(this.lead?._id).subscribe({next:()=>{this.onUpdateUser()},error:t=>{this.toastService.onShowToast(t.error.message,"error"),this.formLoad=!1}})}onUpdateUser(){this.user$=this.authService.validate(localStorage.getItem("99offers-auth-token")).subscribe({next:t=>{t?.user?._id&&(this.authService.setUser(t.user),this.isCanGetFreeToken=!1,this.formLoad=!1)},error:t=>{this.toastService.onShowToast(t.error.message,"error"),this.formLoad=!1}})}ngOnDestroy(){this.bonusConnects$?.unsubscribe(),this.getBonusConnect$?.unsubscribe(),this.user$?.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-profile-comleteness"]],inputs:{profilePercent:"profilePercent",lead:"lead"},outputs:{editProfile:"editProfile"},decls:12,vars:6,consts:[[1,"house-profile-completeness"],[1,"house-profile-completeness__top"],["class","house-profile-completeness__alert",4,"ngIf"],["text","Profile <br>completeness",3,"percent"],["type","button",1,"house-profile-completeness__edit",3,"click"],["name","edit"],[1,"house-profile-completeness__bottom"],[1,"house-profile-completeness__text"],["type","button","ui-flat-button","","color","primary-white",3,"form-load-btn","disabled","click",4,"ngIf"],[1,"house-profile-completeness__alert"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.8605 2.57335L1.21384 12C1.09741 12.2016 1.03581 12.4302 1.03516 12.663C1.03451 12.8958 1.09483 13.1248 1.21012 13.327C1.32541 13.5293 1.49165 13.6978 1.69231 13.8159C1.89296 13.934 2.12103 13.9975 2.35384 14H13.6472C13.88 13.9975 14.108 13.934 14.3087 13.8159C14.5094 13.6978 14.6756 13.5293 14.7909 13.327C14.9062 13.1248 14.9665 12.8958 14.9658 12.663C14.9652 12.4302 14.9036 12.2016 14.7872 12L9.1405 2.57335C9.02165 2.37742 8.85432 2.21543 8.65463 2.103C8.45495 1.99058 8.22966 1.93152 8.0005 1.93152C7.77135 1.93152 7.54606 1.99058 7.34637 2.103C7.14669 2.21543 6.97935 2.37742 6.8605 2.57335Z","stroke","#FA4545","stroke-linecap","round","stroke-linejoin","round"],["d","M8 6V8.66667","stroke","#FA4545","stroke-linecap","round","stroke-linejoin","round"],["d","M8 11.3334H8.00667","stroke","#FA4545","stroke-linecap","round","stroke-linejoin","round"],["type","button","ui-flat-button","","color","primary-white",3,"disabled","click"],["name","form-load",4,"ngIf","ngIfElse"],["noFormLo
1ad",""],["name","form-load"],["name","connect"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Ct,5,0,"div",2),e._UZ(3,"app-house-progress",3),e.TgZ(4,"button",4),e.NdJ("click",function(){return o.onEdit()}),e._UZ(5,"app-svg",5),e.TgZ(6,"span"),e._uU(7,"Edit"),e.qZA()()(),e.TgZ(8,"div",6)(9,"p",7),e._uU(10),e.qZA(),e.YNc(11,yt,4,5,"button",8),e.qZA()()),2&t&&(e.xp6(2),e.Q6J("ngIf",o.profilePercent<100),e.xp6(1),e.Q6J("percent",o.profilePercent),e.xp6(1),e.ekj("house-profile-completeness__edit--hide",o.isCanGetFreeToken),e.xp6(6),e.hij(" ",o.isCanGetFreeToken?"Get your reward for completing profile":"The more complete your house profile, the more accurate selection of offers"," "),e.xp6(1),e.Q6J("ngIf",o.isCanGetFreeToken))},dependencies:[l.O5,C.H,b.z,v],styles:[".house-profile-completeness__top[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px}.house-profile-completeness__top[_ngcontent-%COMP%]     .house-progress{margin-bottom:0}.house-profile-completeness__top[_ngcontent-%COMP%]   .house-profile-status__clear[_ngcontent-%COMP%]{margin-left:auto}.house-profile-completeness__alert[_ngcontent-%COMP%]{margin-right:10px}.house-profile-completeness__text[_ngcontent-%COMP%]{font-size:10px;font-weight:700;line-height:1.3;letter-spacing:-.1px}.house-profile-completeness__bottom[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:0 16px}.house-profile-completeness__bottom[_ngcontent-%COMP%]   .ui-button[_ngcontent-%COMP%]{width:96px;height:28px;font-size:12px;gap:0 2px;padding:0}.house-profile-completeness__bottom[_ngcontent-%COMP%]   .ui-button[_ngcontent-%COMP%]:not(.form-load-btn)     svg{width:12px;height:12px;fill:none}.house-profile-completeness__edit[_ngcontent-%COMP%]{margin-left:auto;display:flex;align-items:center;padding:0;background:none;color:var(--greyscale-100, #9096A2);font-size:10px;line-height:1.6;letter-spacing:.1px}.house-profile-completeness__edit[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:4px}.house-profile-completeness__edit[_ngcontent-%COMP%]:hover{color:var(--color-primary)}@media screen and (max-width: 767px){.house-profile-completeness[_ngcontent-%COMP%]{display:flex;gap:0 12px}.house-profile-completeness__bottom[_ngcontent-%COMP%]   .ui-button[_ngcontent-%COMP%]{width:70px;border-radius:4px;font-size:9px}.house-profile-completeness__bottom[_ngcontent-%COMP%]   .ui-button[_ngcontent-%COMP%]:not(.form-load-btn)     svg{width:10px;height:10px}.house-profile-completeness__edit--hide[_ngcontent-%COMP%], .house-profile-completeness__text[_ngcontent-%COMP%]{display:none}.house-profile-completeness__edit[_ngcontent-%COMP%]{margin-left:30px}.house-profile-completeness__top[_ngcontent-%COMP%]{margin-bottom:0}}"]}),n})();var wt=r(7297);const Pt=["swiperContainer"],Ot=["myHouseEl"],St=function(n){return{"house-profile--collapsed":n}};let Tt=(()=>{class n{constructor(){this.editLead=new e.vpe,this.services=[{text:"Selling",value:"selling"},{text:"Repairs (soon)",value:"repairs",disabled:!0},{text:"Mooving (soon)",value:"mooving",disabled:!0},{text:"Cleaning (soon)",value:"cleaning",disabled:!0}],this.selectedService="selling",this.selectedCategories=[],this.categories=[],this.initialProfilePercent=75,this.profilePercent=0,this.swiperConfig={slidesPerView:3,spaceBetween:40,simulateTouch:!1,pagination:!0,breakpoints:{0:{slidesPerView:1,spaceBetween:20},768:{slidesPerView:3,spaceBetween:40}}},this.isSwiperBeginning=!1,this.isSwiperEnd=!1,this.screenWidth=null,this.houseDistanceFromTop=0,this.isCollapsedMobile=!1,this.isCollapsedMobileClick=!1,this.categoriesCache$=null,this.categories$=null,this.categoriesService=(0,e.f3M)(Q.G),this.leadService=(0,e.f3M)(h.y),this.cd=(0,e.f3M)(e.sBO),this.usersService=(0,e.f3M)(k.f),this.findExpertsLoading$=this.usersService.findExpertsLoading}onResizeEvent(){typeof window<"u"&&this.checkWindowWidth()}onWindowScroll(){this.isCollapsedMobileClick||(this.isCollapsedMobile=window.pageYOffset>this.houseDistanceFromTop+5)}checkWindowWidth(){this.screenWidth=window.innerWidth>0?window.innerWidth:screen.width}ngOnInit(){this.getCategoriesCache(),this.getProfilePercent(),this.getDaysLeft()}ngAfterViewInit(){this.swiperContainer?.nativeElement?.swiper.slideTo(1,
10),this.swiperContainer?.nativeElement?.swiper.on("slideChange",o=>{this.isSwiperBeginning=o.isBeginning,this.isSwiperEnd=o.isEnd,this.cd.detectChanges()});const t=document.createElement("style");t.innerHTML=".swiper-pagination-bullet-active{width: 20px;border-radius: 99px} .swiper-pagination-bullet{transition: .3s ease-in-out;}",this.swiperContainer.nativeElement.shadowRoot.appendChild(t),this.checkWindowWidth(),this.screenWidth<768&&setTimeout(()=>{window.scrollTo({top:0}),this.houseDistanceFromTop=this.myHouseEl.nativeElement.getBoundingClientRect().top-70,window.scrollTo({top:this.houseDistanceFromTop,behavior:"smooth"})},300)}getCategoriesCache(){this.categoriesCache$=this.categoriesService.categoriesPublicState.subscribe(t=>{t?.length?(this.categories=t,this.lead?.categories?.length&&(this.selectedCategories=this.lead.categories.map(o=>o._id),this.leadService.setFilterCategories(this.selectedCategories),this.leadService.isFirstLoadingExperts.next(!1),this.onFindOffers())):this.getCategories()})}getCategories(){this.categories$=this.categoriesService.getAllPublic().subscribe({next:t=>{t?.docs?.length&&(this.categories=t.docs)}})}getProfilePercent(){const t=this.lead.form.filter(d=>d.question_obj?.is_additional),i=Math.ceil((100-this.initialProfilePercent)/(t?.length+1)),a=t.filter(d=>d.answers?.length>0);this.profilePercent=this.initialProfilePercent,this.lead?.categories?.length&&(this.profilePercent+=i),this.profilePercent+=a?.length*i,this.profilePercent>100&&(this.profilePercent=100)}getDaysLeft(){const t=new Date(this.selectedSlot?.date_last_deleting);t.setDate(t.getDate()+30),this.daysLeft=t.getTime()}onEdit(){this.editLead.emit()}onFindOffers(){this.leadService.setFilterCategories(this.selectedCategories),this.leadService.isClickFineOffers.next(!0)}onCollapseToggle(){this.isCollapsedMobileClick=!this.isCollapsedMobileClick,!0===this.isCollapsedMobileClick&&setTimeout(()=>{this.isCollapsedMobileClick=!1},1e3),this.isCollapsedMobile=!this.isCollapsedMobile}ngOnDestroy(){this.categoriesCache$?.unsubscribe(),this.categories$?.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-profile"]],viewQuery:function(t,o){if(1&t&&(e.Gf(Pt,5),e.Gf(Ot,5)),2&t){let i;e.iGM(i=e.CRH())&&(o.swiperContainer=i.first),e.iGM(i=e.CRH())&&(o.myHouseEl=i.first)}},hostBindings:function(t,o){1&t&&e.NdJ("resize",function(a){return o.onResizeEvent(a)},!1,e.Jf7)("scroll",function(){return o.onWindowScroll()},!1,e.Jf7)},inputs:{lead:"lead",currentUser:"currentUser",selectedSlot:"selectedSlot"},outputs:{editLead:"editLead"},decls:56,vars:30,consts:[[1,"my-house"],["myHouseEl",""],[3,"address","isProfile"],[1,"house-profile",3,"ngClass"],["appSwiperDirective","",3,"config"],["swiperContainer",""],[1,"house-profile__block","house-profile__block--services"],[1,"house-profile__block-header"],[1,"house-profile__title"],[1,"house-profile-completeness",3,"profilePercent","lead","editProfile"],[1,"house-profile-form-row","house-profile__service"],[1,"house-profile-form-row__label"],["placeholder","Select a service","optionValue","value","optionText","text",3,"data","ngModel","ngModelChange"],[1,"house-profile-form-row"],["optionValue","_id","optionText","title","placeholder","Select a service option",3,"data","ngModel","multiple","ngModelChange"],["type","button","ui-flat-button","","color","primary-white",1,"house-profile__button",3,"disabled","click"],[1,"house-profile__block"],[1,"house-profile__address"],[3,"address"],[1,"house-profile__map"],[3,"lat","lng","width","height"],[1,"house-profile-address-info"],[1,"house-profile-address-info__item"],[1,"house-profile__block","house-profile__block--connects"],[1,"house-profile-status"],[1,"house-profile-status__value"],[1,"house-profile__connects"],[3,"connects"],["type","button",1,"my-house__collapse-button",3,"click"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0,1),e._UZ(2,"app-house-mobile-header",2),e.TgZ(3,"div",3)(4,"swiper-container",4,5)(6,"swiper-slide")(7,"div",6)(8,"div",7)(9,"h2",8),e._uU(10,"Services"),e.qZA(),e.TgZ(11,"app-house-profile-comleteness",9),e.NdJ("editProfile",function(){return o.onEdit()}),e.qZA()(),e.TgZ(12,"div",10)(13,"p",11),e._uU(14,"Select a service"),e.qZA(),e.TgZ(15,"app-ui-select",12),e.NdJ("ngModelChange",function(a){return o.selectedService=a}),e.qZA()(),e.TgZ(16,"div",13)(17,"p",11),e._uU(18,"Select a service option"),e.qZA(),e.TgZ(19,"app-ui-select",14),e.NdJ("ngModelChange",function(a){return o.selectedCategories=a}),e.qZA()(),e.TgZ(20,"button",15),e.NdJ("click",function(){return o.onFindOffers()}),e.ALo(21,"async"),e._uU(22,"Find offers"),e.qZA()()(),e.TgZ(23,"swiper-slide")(24,"div",16)(25,"div",7)(26,"h2",8),e._uU(27,"House Profile"),e.qZA()(),e.TgZ(28,"div",17),e._UZ(29,"app-house-profile-address",18),e.qZA(),e.TgZ(30,"div",19),e._UZ(31,"app-google-map",20),e.qZA(),e.TgZ(32,"div",21)(33,"p",22),e._uU(34,"State: "),e.TgZ(35,"span"),e._uU(36),e.ALo(37,"state"),e.qZA()(),e.TgZ(38,"p",22),e._uU(39,"City: "),e.TgZ(40,"span"),e._uU(41),e.qZA()(),e.TgZ(42,"p",22),e._uU(43,"Zip code: "),e.TgZ(44,"span"),e._uU(45),e.qZA()()()()(),e.TgZ(46,"swiper-slide")(47,"div",23)(48,"div",24)(49,"p",25),e._uU(50,"Free"),e.qZA()(),e.TgZ(51,"div",26),e._UZ(52,"app-your-connects",27),e.qZA(),e.TgZ(53,"app-house-profile-comleteness",9),e.NdJ("editProfile",function(){return o.onEdit()}),e.qZA()()()()(),e.TgZ(54,"button",28),e.NdJ("click",function(){return o.onCollapseToggle()}),e._uU(55),e.qZA()()),2&t&&(e.xp6(2),e.Q6J("address",null==o.lead?null:o.lead.address)("isProfile",!0),e.xp6(1),e.Q6J("ngClass",e.VKq(28,St,o.isCollapsedMobile)),e.xp6(1),e.Q6J("config",o.swiperConfig),e.xp6(7),e.Q6J("profilePercent",o.profilePercent)("lead",o.lead),e.xp6(4),e.Q6J("data",o.services)("ngModel",o.selectedService),e.xp6(4),e.Q6J("data",o.categories)("ngModel",o.selectedCategories)("multiple",!0),e.xp6(1),e.Q6J("disabled",!(null!=o.lead&&o.lead.date_got_connects_for_additional_questions)||e.lcZ(21,24,o.findExpertsLoading$)),e.xp6(9),e.Q6J("address",null==o.lead?null:o.lead.address),e.xp6(2),e.Q6J("lat",null==o.lead?null:o.lead.lat)("lng",null==o.lead?null:o.lead.lng)("width","100%")("height","130px"),e.xp6(5),e.Oqu(e.l
1cZ(37,26,null==o.lead?null:o.lead.state)),e.xp6(5),e.Oqu(null==o.lead?null:o.lead.city),e.xp6(4),e.Oqu(null==o.lead?null:o.lead.zip),e.xp6(7),e.Q6J("connects",null==o.currentUser?null:o.currentUser.connects),e.xp6(1),e.Q6J("profilePercent",o.profilePercent)("lead",o.lead),e.xp6(2),e.Oqu(o.isCollapsedMobile?"Show":"Hide"))},dependencies:[l.mk,p.JJ,p.On,b.z,D.z,mt.c,B.w,xt.T,w,Mt,A,l.Ov,wt.$],styles:['.my-house[_ngcontent-%COMP%]{position:relative}.house-profile[_ngcontent-%COMP%]{padding:20px;position:relative}.house-profile[_ngcontent-%COMP%]     swiper-slide{display:flex;height:auto}.house-profile__block[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-shrink:0;width:100%}.house-profile__block-header[_ngcontent-%COMP%]{margin-bottom:16px;display:flex;justify-content:space-between;align-items:flex-start}.house-profile__block--services[_ngcontent-%COMP%]   .house-profile-completeness[_ngcontent-%COMP%]{display:none}.house-profile__title[_ngcontent-%COMP%]{color:var(--color-primary);font-size:14px;font-weight:700;line-height:1.6;text-transform:uppercase}.house-profile-form-row[_ngcontent-%COMP%]{margin-bottom:12px}.house-profile-form-row__label[_ngcontent-%COMP%]{font-size:14px;line-height:1.6;letter-spacing:.14px;margin-bottom:4px}.house-profile-form-row[_ngcontent-%COMP%]   app-ui-select[_ngcontent-%COMP%]{color:var(--greyscale-400, #4D5563)}.house-profile-form-row[_ngcontent-%COMP%]   app-ui-select[_ngcontent-%COMP%]     .ui-select__wrap{padding:8px 16px;height:36px}.house-profile-form-row[_ngcontent-%COMP%]   app-ui-select[_ngcontent-%COMP%]     .ui-select__selected-option{font-size:14px;font-weight:500}.house-profile-form-row[_ngcontent-%COMP%]   app-ui-select[_ngcontent-%COMP%]     .ui-select--opened .ui-select__wrap{border-bottom:1px solid transparent}.house-profile-form-row[_ngcontent-%COMP%]   app-ui-select[_ngcontent-%COMP%]     .ui-select-options{padding:0 16px 8px}.house-profile-form-row[_ngcontent-%COMP%]   app-ui-select[_ngcontent-%COMP%]     .ui-select-options__item{padding:0;font-size:14px;font-weight:500}.house-profile-form-row[_ngcontent-%COMP%]   app-ui-select[_ngcontent-%COMP%]     .ui-select-options__item:hover{background:none}.house-profile__button[_ngcontent-%COMP%]{margin-top:auto;width:100%}.house-profile__button[disabled][_ngcontent-%COMP%]{background:var(--color-primary);color:#fff}.house-profile__button[disabled][_ngcontent-%COMP%]:hover{background:#FFF;color:var(--color-dark)}.house-profile__service[_ngcontent-%COMP%]     .ui-select-options__item.active{display:none}.house-profile__address[_ngcontent-%COMP%], .house-profile__map[_ngcontent-%COMP%]{margin-bottom:24px}.house-profile__map[_ngcontent-%COMP%]     .map-container{border-radius:8px}.house-profile-address-info[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:4px 50px}.house-profile-address-info__item[_ngcontent-%COMP%]{font-size:12px;font-weight:500;line-height:1.6}.house-profile-address-info__item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--greyscale-20, #F8F9FA)}.house-profile-status[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.house-profile-status__value[_ngcontent-%COMP%]{font-size:12px;color:var(--color-action-green-100);font-weight:700;line-height:1.6}.house-profile-status__time[_ngcontent-%COMP%]{font-size:10px;color:var(--greyscale-100, #9096A2);line-height:1}.house-profile-status__clear[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0;background:none;color:var(--greyscale-100, #9096A2);font-size:10px;line-height:1.6;letter-spacing:.1px}.house-profile-status__clear[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:4px}.house-profile-status__clear[_ngcontent-%COMP%]:hover{color:var(--color-primary)}.house-profile__connects[_ngcontent-%COMP%]     .your-connects{align-items:center;padding:16px 12px;border-radius:8px}.house-profile__connects[_ngcontent-%COMP%]     .your-connects__title{font-size:10px}.house-profile__connects[_ngcontent-%COMP%]     .your-connects__value{font-size:14px;margin-top:-5px}.house-profile__connects[_ngcontent-%COMP%]     .your-connects svg{width:14px;
1height:14px}.house-profile__connects[_ngcontent-%COMP%]     .ui-button{padding:0;width:64px;height:26px;font-size:12px;border-radius:4px}.house-profile-completeness[_ngcontent-%COMP%]{display:block;margin-top:auto}.house-profile-prev-btn[_ngcontent-%COMP%], .house-profile-next-btn[_ngcontent-%COMP%]{display:none}.my-house__collapse-button[_ngcontent-%COMP%]{display:none!important}@media screen and (max-width: 767px){.my-house__collapse-button[_ngcontent-%COMP%]{display:block!important;position:absolute;top:100%;left:50%;transform:translate(-50%);border-radius:0 0 16px 16px;background:#181E29;width:77px;padding:2px 0;text-align:center;font-size:12px;color:#fff;font-weight:500;line-height:1.2}.house-profile[_ngcontent-%COMP%]{padding:0 20px;max-height:400px;transition:.3s ease-in-out;overflow:hidden}.house-profile--collapsed[_ngcontent-%COMP%]{max-height:0}.house-profile[_ngcontent-%COMP%]   swiper-container[_ngcontent-%COMP%]{padding:24px 0 48px;--swiper-pagination-bottom: 20px;--swiper-pagination-top: auto;--swiper-pagination-bullet-width: 4px;--swiper-pagination-bullet-height: 4px;--swiper-pagination-bullet-inactive-color: var(--color-greyscale-100);--swiper-pagination-bullet-inactive-opacity: .5;--swiper-pagination-color: var(--color-greyscale-100)}.house-profile[_ngcontent-%COMP%]   swiper-container[_ngcontent-%COMP%]   .swiper-pagination-bullet-active[_ngcontent-%COMP%]{width:20px!important}.house-profile[_ngcontent-%COMP%]   swiper-container[_ngcontent-%COMP%]   swiper-slide[_ngcontent-%COMP%]:first-child{order:2}.house-profile[_ngcontent-%COMP%]   swiper-container[_ngcontent-%COMP%]   swiper-slide[_ngcontent-%COMP%]:nth-child(2){order:1}.house-profile[_ngcontent-%COMP%]   swiper-container[_ngcontent-%COMP%]   swiper-slide[_ngcontent-%COMP%]:last-child{order:3}.house-profile-prev-btn[_ngcontent-%COMP%], .house-profile-next-btn[_ngcontent-%COMP%]{display:block;position:absolute;top:50%;transform:translateY(-50%);background:none;z-index:11}.house-profile-prev-btn[_ngcontent-%COMP%]{left:7px}.house-profile-next-btn[_ngcontent-%COMP%]{right:7px}.house-profile__map[_ngcontent-%COMP%]{position:relative}.house-profile__map[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;z-index:10}.house-profile__address[_ngcontent-%COMP%], .house-profile__block--connects[_ngcontent-%COMP%]   .house-profile-completeness[_ngcontent-%COMP%]{display:none}.house-profile__block--services[_ngcontent-%COMP%]   .house-profile-completeness[_ngcontent-%COMP%]{display:block}}'],data:{animation:[ft.vJ]}}),n})();function At(n,s){if(1&n&&(e.TgZ(0,"h1",5),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(null!=t.currentSeoInfo&&t.currentSeoInfo.h1_tag?null==t.currentSeoInfo?null:t.currentSeoInfo.h1_tag:t.expertsCount+" "+t.stateTransform(null==t.currentSeoInfo?null:t.currentSeoInfo.state)+" real estate experts")}}
1function kt(n,s){if(1&n&&(e.TgZ(0,"h1",5),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(null!=t.currentSeoInfo&&t.currentSeoInfo.h1_tag?null==t.currentSeoInfo?null:t.currentSeoInfo.h1_tag:t.expertsCount+" "+(null==t.currentSeoInfo||null==t.currentSeoInfo.county?null:t.currentSeoInfo.county.name)+", "+(null==t.currentSeoInfo?null:t.currentSeoInfo.state)+" real estate experts")}}function Zt(n,s){if(1&n&&(e.TgZ(0,"h1",5),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(null!=t.currentSeoInfo&&t.currentSeoInfo.h1_tag?null==t.currentSeoInfo?null:t.currentSeoInfo.h1_tag:t.expertsCount+" "+(null==t.currentSeoInfo||null==t.currentSeoInfo.city?null:t.currentSeoInfo.city.name)+", "+(null==t.currentSeoInfo?null:t.currentSeoInfo.state)+" real estate experts")}}function Ht(n,s){if(1&n&&(e.TgZ(0,"div",1)(1,"div",2),e.YNc(2,At,2,1,"h1",3),e.YNc(3,kt,2,1,"h1",3),e.YNc(4,Zt,2,1,"h1",3),e._UZ(5,"app-house-address",4),e.qZA()()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.isSeoState),e.xp6(1),e.Q6J("ngIf",t.isSeoCounty),e.xp6(1),e.Q6J("ngIf",t.isSeoCity),e.xp6(1),e.Q6J("isRedirect",!1)("isFindExpertSeo",!0)}}let It=(()=>{class n{constructor(){this.checkUser=!1,this.isSeoState=!1,this.isSeoCounty=!1,this.isSeoCity=!1,this.expertsCount=0,this.states=P.G.states,this.destroy$=new f.x,this.usersService=(0,e.f3M)(k.f)}ngOnInit(){this.getExpertsCount(),this.checkUserInput(),this.checkPageSource()}checkPageSource(){!this.currentSeoInfo?.city&&!this.currentSeoInfo?.county&&(this.isSeoState=!0),!this.currentSeoInfo?.city&&this.currentSeoInfo?.county&&(this.isSeoCounty=!0),this.currentSeoInfo?.city&&this.currentSeoInfo?.county&&(this.isSeoCity=!0)}getExpertsCount(){this.usersService.seoExpertsCount.pipe((0,c.R)(this.destroy$)).subscribe({next:t=>{t&&(this.expertsCount=t)}})}checkUserInput(){this.user?._id&&(this.checkUser=!0)}stateTransform(t){for(const o of this.states)if(o.short_name===t||o.long_name===t)return o.long_name;return""}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house-seo"]],inputs:{user:"user",currentSeoInfo:"currentSeoInfo"},decls:1,vars:1,consts:[["class","house-seo",4,"ngIf"],[1,"house-seo"],[1,"house-seo__wrapper"],["class","house-seo__title",4,"ngIf"],[3,"isRedirect","isFindExpertSeo"],[1,"house-seo__title"]],template:function(t,o){1&t&&e.YNc(0,Ht,6,5,"div",0),2&t&&e.Q6J("ngIf",!o.checkUser)},dependencies:[l.O5,N.l],styles:[".house-seo[_ngcontent-%COMP%]{width:100vw;margin-left:calc(50% - 50vw);padding:52px 0;background-image:url(/assets/img/find-expert-seo.webp);background-size:cover;background-repeat:no-repeat;position:relative;margin-bottom:36px}.house-seo__wrapper[_ngcontent-%COMP%]{max-width:870px;margin:0 auto;padding:0 20px}.house-seo__title[_ngcontent-%COMP%]{font-size:48px;font-style:normal;font-weight:700;line-height:120%;letter-spacing:-.96px;padding-bottom:40px;color:#fff}@media screen and (max-width: 767px){.house-seo[_ngcontent-%COMP%]{background-image:url(/assets/img/find-expert-seo-mobile.webp);padding:42px 0;margin-bottom:4px}.house-seo__title[_ngcontent-%COMP%]{font-size:28px;letter-spacing:-.56px;padding-bottom:24px}}"]}),n})();const Lt=["houseElement"];function qt(n,s){1&n&&e._UZ(0,"div",8)}function Et(n,s){1&n&&(e.TgZ(0,"li",18),e.O4$(),e.TgZ(1,"svg",19),e._UZ(2,"path",20),e.qZA(),e.kcU(),e.TgZ(3,"span"),e._uU(4,"House 1 "),e.TgZ(5,"span",21),e._uU(6,"free"),e.qZA()()())}function Ft(n,s){1&n&&(e.TgZ(0,"li",18),e.O4$(),e.TgZ(1,"svg",22),e._UZ(2,"path",23),e.qZA(),e.kcU(),e.TgZ(3,"span"),e._uU(4,"Add 1 house for free"),e.qZA()())}function Ut(n,s){if(1&n&&(e.ynx(0),e.YNc(1,Et,7,0,"li",17),e.YNc(2,Ft,5,0,"li",17),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.isStartEdit),e.xp6(1),e.Q6J("ngIf",!t.isStartEdit)}}function Jt(n,s){1&n&&(e.TgZ(0,"li",18),e.O4$(),e.TgZ(1,"svg",19),e._UZ(2,"path",20),e.qZA(),e.kcU(),e.TgZ(3,"span"),e._uU(4,"House 1 "),e.TgZ(5,"span",21),e._uU(6,"free"),e.qZA()()())}function Bt(n,s){if(1&n&&e.YNc(0,Jt,7,0,"li",24),2&n){const t=e.oxw(2);e.Q6J("ngForOf",t.leadSlots)}}
1function Qt(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"app-house-add",25),e.NdJ("updateLead",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onUpdateLead(i))})("editAdditional",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.onEdit())})("startEdit",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.onStartEdit())}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("isEditAdditional",t.isEditAdditional)("selectedLead",t.selectedLead)("isFullHeight",t.isFullHeight)}}function Nt(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"app-house-profile",26),e.NdJ("editLead",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.onEdit())}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("lead",t.selectedLead)("selectedSlot",t.selectedSlot)("currentUser",t.currentUser)}}const Dt=function(n,s,t){return{"house--hide":n,"house--full-height":s,"house--sticky-mobile":t}};function zt(n,s){if(1&n&&(e.TgZ(0,"div",9,10)(2,"ul",11),e.YNc(3,Ut,3,2,"ng-container",12),e.YNc(4,Bt,1,1,"ng-template",null,13,e.W1O),e.qZA(),e.TgZ(6,"div",14),e.YNc(7,Qt,1,3,"app-house-add",15),e.YNc(8,Nt,1,3,"app-house-profile",16),e.qZA()()),2&n){const t=e.MAs(5),o=e.oxw();e.Q6J("ngClass",e.kEZ(5,Dt,o.leadLoading,o.isFullHeight,!o.isEdit)),e.xp6(3),e.Q6J("ngIf",!(null!=o.selectedLead&&o.selectedLead._id&&null!=o.leadSlots&&o.leadSlots.length&&null!=o.leadSlots[0]&&o.leadSlots[0].lead))("ngIfElse",t),e.xp6(4),e.Q6J("ngIf",o.isEdit),e.xp6(1),e.Q6J("ngIf",!o.isEdit)}}function $t(n,s){if(1&n&&e._UZ(0,"app-house-seo",27),2&n){const t=e.oxw();e.Q6J("user",t.currentUser)("currentSeoInfo",t.currentSeoInfo)}}let Rt=(()=>{class n{constructor(){this.selectLead=new e.vpe,this.isFullHeight=!1,this.leadSlots=[],this.isEdit=!0,this.isEditAdditional=!1,this.isStartEdit=!1,this.isSticky=!1,this.leadLoading=!1,this.leadId=null,this.checkUser=!1,this.currentSeoInfo=null,this.checkSeoBlock=!0,this.screenWidth=null,this.lead$=null,this.leadSlots$=null,this.user$=null,this.helperService$=null,this.getExpertsId$=null,this.destroy$=new f.x,this.leadService=(0,e.f3M)(h.y),this.leadSlotsService=(0,e.f3M)(F.J),this.authService=(0,e.f3M)(g.e),this.helpersService=(0,e.f3M)(re.$),this.linksService=(0,e.f3M)(U.m),this.addressService=(0,e.f3M)(J.D)}onScroll(){const t=document.documentElement.scrollTop||document.body.scrollTop||0,o=this.houseElement?.nativeElement;this.isSticky=!this.isEdit&&t>o?.offsetTop+o?.offsetHeight}onResizeEvent(){typeof window<"u"&&this.checkWindowWidth()}checkWindowWidth(){this.screenWidth=window.innerWidth>0?window.innerWidth:screen.width}
1ngOnInit(){this.getUser(),this.getSeoInfo(),this.getSeoButtonState(),this.onScrollToHouse()}ngAfterViewInit(){this.checkWindowWidth()}getUser(){this.user$=this.authService.userState.subscribe(t=>{t?._id&&(this.currentUser?._id!==t?._id&&this.getLeadSlots(),this.currentUser=t,this.checkUser=!0,this.checkSeoBlock=!1)})}getLeadSlots(){this.leadLoading=!0,this.leadSlots$=this.leadSlotsService.getMy().subscribe({next:t=>{if(t?.length){this.leadSlots=t;for(const o of this.leadSlots){if(o?.lead)return this.selectedSlot=o,this.getLeadById(o?.lead),this.leadId=o?.lead,this.leadSlotsService.leadId.next(o?.lead),void this.getSelectedExpertsId();this.leadLoading=!1,this.leadService.isFirstLoadingExperts.next(!0)}}else this.leadLoading=!1},error:()=>{this.leadLoading=!1}})}getLeadById(t){this.lead$=this.leadService.getById(t).subscribe({next:o=>{this.selectedLead=o,this.selectLead.emit(this.selectedLead),this.leadService.isClickFineOffers.next(!0),this.leadService.currentLeadData.next(o),localStorage.setItem("currentLeadData",JSON.stringify(o)),(localStorage.getItem("houseAdditionalStep")||!this.selectedLead?.date_got_connects_for_additional_questions)&&(this.isEditAdditional=!0),(!this.isEditAdditional||this.selectedLead?.date_got_connects_for_additional_questions)&&(this.isEdit=!1),this.leadLoading=!1,o.date_got_connects_for_additional_questions&&this.addressService.checkExpertFillingAddress()},error:()=>{this.leadLoading=!1}})}getSelectedExpertsId(){this.getExpertsId$=this.leadService.getUserIdByLeadId(this.leadId).subscribe({next:t=>{t&&this.leadService.selectedExpertsIdSource.next(t)}})}onEdit(){if(this.screenWidth<768){window.scrollTo({top:0});const t=this.houseElement.nativeElement.getBoundingClientRect().top-70;window.scrollTo({top:t,behavior:"smooth"})}this.isEdit=!0,this.isEditAdditional=!0}onUpdateLead(t){this.isEdit=!1,this.isEditAdditional=!1,this.selectedLead=t,this.selectLead.emit(this.selectedLead)}onStartEdit(){this.isStartEdit=!0}onScrollToHouse(){this.helperService$=this.helpersService.isScrollToBlock.subscribe(t=>{t&&this.houseElement?.nativeElement.scrollIntoView({behavior:"smooth",block:"end"})})}getSeoInfo(){this.linksService.currentSeoInfo.pipe((0,c.R)(this.destroy$)).subscribe({next:t=>{t?._id&&(this.currentSeoInfo=t)}})}getSeoButtonState(){const t=JSON.parse(localStorage.getItem("userPlace"));this.leadService.isFindExpertSeoButton.pipe((0,c.R)(this.destroy$)).subscribe(o=>{o&&(this.checkSeoBlock=!1),!o&&t&&(this.checkSeoBlock=!1)})}ngOnDestroy(){this.lead$?.unsubscribe(),this.leadSlots$?.unsubscribe(),this.user$?.unsubscribe(),this.helperService$?.unsubscribe(),this.getExpertsId$?.unsubscribe(),this.destroy$?.next(),this.destroy$?.complete()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-house"]],viewQuery:function(t,o){if(1&t&&e.Gf(Lt,5),2&t){let i;e.iGM(i=e.CRH())&&(o.houseElement=i.first)}},hostBindings:function(t,o){1&t&&e.NdJ("scroll",function(a){return o.onScroll(a.target)},!1,e.Jf7)("resize",function(a){return o.onResizeEvent(a)},!1,e.Jf7)},inputs:{isFullHeight:"isFullHeight"},outputs:{selectLead:"selectLead"},decls:9,vars:7,consts:[["class","skeleton skeleton-house",4,"ngIf"],["class","house",3,"ngClass",4,"ngIf"],[3,"user","currentSeoInfo",4,"ngIf"],[1,"my-house-sticky"],[1,"my-house-sticky__wrap"],[1,"my-house-sticky__title"],[3,"address"],[3,"connects"],[1,"skeleton","skeleton-house"],[1,"house",3,"ngClass"],["houseElement",""],[1,"house-list"],[4,"ngIf","ngIfElse"],["leadSlotsList",""],[1,"house__inner"],[3,"isEditAdditional","selectedLead","isFullHeight","updateLead","editAdditional","startEdit",4,"ngIf"],[3,"lead","selectedSlot","currentUser","editLead",4,"ngIf"],["class","house-list-item active",4,"ngIf"],[1,"house-list-item","active"],["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.26297 1.6566L2.1188 4.1066C1.5938 4.51493 1.16797 5.3841 1.16797 6.04326V10.3658C1.16797 11.7191 2.27047 12.8274 3.6238 12.8274H10.3788C11.7321 12.8274 12.8346 11.7191 12.8346 10.3716V6.12493C12.8346 5.4191 12.3621 4.51493 11.7846 4.11243L8.17964 1.5866C7.36297 1.01493 6.05047 1.0441 5.26297 1.6566Z","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"house-list-item__price"],["xmlns","http://www.w3.org/2000/svg","width","13","height","12","viewBox","0 0 13 12","fill","none"],["d","M0.5 6C0.5 9.325 3.175 12 6.5 12C9.825 12 12.5 9.325 12.5 6C12.5 2.675 9.825 0 6.5 0C3.175 0 0.5 2.675 0.5 6ZM7.1 3.6V5.4L8.9 5.4C9.225 5.4 9.5 5.675 9.5 6C9.5 6.325 9.225 6.6 8.9 6.6H7.1V8.4C7.1 8.725 6.825 9 6.5 9C6.175 9 5.9 8.725 5.9 8.4L5.9 6.6H4.1C3.775 6.6 3.5 6.325 3.5 6C3.5 5.675 3.775 5.4 4.1 5.4H5.9L5.9 3.6C5.9 3.275 6.175 3 6.5 3C6.825 3 7.1 3.275 7.1 3.6Z","fill","#0AAF60"],["class","house-list-item active",4,"ngFor","ngForOf"],[3,"isEditAdditional","selectedLead","isFullHeight","updateLead","editAdditional","startEdit"],[3,"lead","selectedSlot","currentUser","editLead"],[3,"user","currentSeoInfo"]],template:function(t,o){1&t&&(e.YNc(0,qt,1,0,"div",0),e.YNc(1,zt,9,9,"div",1),e.YNc(2,$t,1,2,"app-house-seo",2),e.TgZ(3,"div",3)(4,"div",4)(5,"p",5),e._uU(6,"House 1"),e.qZA(),e._UZ(7,"app-house-profile-address",6)(8,"app-your-connects",7),e.qZA()()),2&t&&(e.Q6J("ngIf",o.leadLoading),e.xp6(1),e.Q6J("ngIf",o.checkUser||!o.checkUser&&!o.currentSeoInfo||!o.checkSeoBlock),e.xp6(1),e.Q6J("ngIf",!o.checkUser&&(null==o.currentSeoInfo?null:o.currentSeoInfo._id)&&o.checkSeoBlock),e.xp6(1),e.ekj("my-house-sticky--show",o.isSticky),e.xp6(4),e.Q6J("address",null==o.selectedLead?null:o.selectedLead.address),e.xp6(1),e.Q6J("connects",null==o.currentUser?null:o.currentUser.connects))},dependencies:[l.mk,l.sg,l.O5,B.w,gt,Tt,w,It],styles:['.skeleton-house[_ngcontent-%COMP%]{height:323px}.house[_ngcontent-%COMP%]{position:relative;padding-top:30px}
1.house--hide[_ngcontent-%COMP%]{display:none}.house[_ngcontent-%COMP%]     .house__wrap{padding:32px 110px}.house[_ngcontent-%COMP%]     .ui-input, .house[_ngcontent-%COMP%]     .ui-select__wrap{height:48px}.house[_ngcontent-%COMP%]     .ui-select__wrap{padding:14px 16px}.house[_ngcontent-%COMP%]     .ui-select__search{top:20px}.house[_ngcontent-%COMP%]     .ui-select__selected-option{top:9px}.house__inner[_ngcontent-%COMP%]{border-radius:0 16px 16px;background:#181E29;color:#e6e6eb}.house-list[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:30px;display:flex}.house-list-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:0 4px;padding:0 16px;border-radius:16px 16px 0 0;font-weight:700;font-size:12px;line-height:1}.house-list-item__price[_ngcontent-%COMP%]{color:var(--greyscale-200, #7A808B)}.house-list-item.active[_ngcontent-%COMP%]{background:#181E29;color:#e6e6eb}.my-house-sticky[_ngcontent-%COMP%]{background:var(--color-greyscale-20);position:sticky;padding-top:32px;top:var(--header-height);display:none;z-index:11}.my-house-sticky--show[_ngcontent-%COMP%]{display:block}.my-house-sticky__wrap[_ngcontent-%COMP%]{background:#181E29;color:#f6f7f9;border-radius:8px 8px 0 0;padding:10px 20px;display:flex;align-items:center;justify-content:space-between;gap:0 16px}.my-house-sticky__title[_ngcontent-%COMP%]{font-size:14px;font-weight:700;line-height:1.6}.my-house-sticky[_ngcontent-%COMP%]     .your-connects{padding:5px 8px;margin:0;border-radius:8px}.my-house-sticky[_ngcontent-%COMP%]     .your-connects__title{font-size:10px;line-height:1}.my-house-sticky[_ngcontent-%COMP%]     .your-connects__value{font-size:14px;line-height:1;margin-top:2px}.my-house-sticky[_ngcontent-%COMP%]     .your-connects svg{width:14px;height:14px}.my-house-sticky[_ngcontent-%COMP%]     .your-connects .ui-button{height:26px;font-size:12px;width:64px}.my-house-sticky-mobile[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 991px){.house[_ngcontent-%COMP%]     .house__wrap{padding:16px 20px}}@media screen and (max-width: 767px){.house[_ngcontent-%COMP%]{padding-top:0}.house--sticky-mobile[_ngcontent-%COMP%]{position:sticky;top:var(--header-height);z-index:100}.house__inner[_ngcontent-%COMP%]{border-radius:16px}.house-list[_ngcontent-%COMP%]{display:none}.my-house-sticky[_ngcontent-%COMP%]{display:none!important}.my-house-sticky-mobile[_ngcontent-%COMP%]{display:none;position:sticky;top:var(--header-height);z-index:11}.my-house-sticky-mobile--show[_ngcontent-%COMP%]{display:block}.house--full-height[_ngcontent-%COMP%]   .house__inner[_ngcontent-%COMP%]{border-radius:0}.house--full-height[_ngcontent-%COMP%]     .house__wrap{min-height:calc(100svh - var(--header-height));display:flex;flex-direction:column;padding-bottom:116px;position:relative}.house--full-height[_ngcontent-%COMP%]     .house-add-header__title{font-size:18px}.house--full-height[_ngcontent-%COMP%]     .house-add-step .house__wrap, .house--full-height[_ngcontent-%COMP%]     .house-add-claim .house__wrap{min-height:calc(100svh - var(--header-height) - 99px)}.house--full-height[_ngcontent-%COMP%]     .house-add-claim .house__wrap{justify-content:center;padding-bottom:16px}.house--full-height[_ngcontent-%COMP%]     .house-add-step-range{margin-top:40px}.house--full-height[_ngcontent-%COMP%]     .house-add-free{background:url(/assets/img/mobile-bg-house.jpeg) no-repeat center;background-size:cover;position:relative;border-radius:0}.house--full-height[_ngcontent-%COMP%]     .house-add-free:before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.7)}.house--full-height[_ngcontent-%COMP%]     .house-add-free .house__wrap{padding:16px 20px;justify-content:center}.house--full-height[_ngcontent-%COMP%]     .house-add-free__title{font-size:18px}.house--full-height[_ngcontent-%COMP%]     .house-add-free__text{font-size:14px}.house--full-height[_ngcontent-%COMP%]     form{display:flex;flex-direction:column;height:100%}.house--full-height[_ngcontent-%COMP%]     form app-house-step-buttons{position:absolute;bottom:16px;left:0;width:100%;padding:0 20px;display:block;margin-top:auto}}@media screen and (max-width: 575px){.house[_ngcontent-%COMP%]{margin-left:-20px;margin-right:-20px}.house__inner[_ngcontent-%COMP%]{border-radius:0 0 16px 16px}.my-house-sticky-mobile[_ngcontent-%COMP%]{margin-left:-20px;margin-right:-20px}}']}),n})();var q=r(4664),O=r(2096),R=r(6593),Y=r(993),G=r(7137),V=r(2922),j=r(4415),W=r(2516),K=r(4729),X=r(3270),Yt=r(9500),ee=r(1597),te=r(6397),ne=r(325),oe=r(8187),Gt=r(9872);function Vt(n,s){1&n&&(e.TgZ(0,"div",2)(1,"div",3)(2,"div",4),e._UZ(3,"div",5),e.TgZ(4,"div",6)(5,"div",7),e._UZ(6,"div",8),e.qZA(),e.TgZ(7,"div",9),e._UZ(8,"div",10)(9,"div",10),e.qZA()()(),e._UZ(10,"div",11)(11,"div",12),e.qZA(),e.TgZ(12,"div",13)(13,"div",14),e._UZ(14,"div",15),e.qZA(),e.TgZ(15,"div",16)(16,"div",17),e._UZ(17,"div",18)(18,"div",18),e.qZA(),e._UZ(19,"div",19),e.qZA()()())}
1function jt(n,s){if(1&n&&e._UZ(0,"app-expert-experience",22),2&n){const t=e.oxw(2);e.Q6J("expert",t.expert)}}function Wt(n,s){if(1&n&&e._UZ(0,"app-expert-detail",35),2&n){const t=e.oxw(2);e.Q6J("value",(null==t.expert?null:t.expert.first_name)+" "+(null==t.expert?null:t.expert.last_name))}}function Kt(n,s){if(1&n&&e._UZ(0,"app-expert-detail",36),2&n){const t=e.oxw(2);e.Q6J("value",(null==t.expert||null==t.expert.home_county?null:t.expert.home_county.name)+", "+(null==t.expert?null:t.expert.home_state))}}function Xt(n,s){if(1&n&&e._UZ(0,"app-expert-expertise",37),2&n){const t=e.oxw(2);e.Q6J("expert",t.expert)}}function en(n,s){if(1&n&&e._UZ(0,"app-expert-introduction",38),2&n){const t=e.oxw(2);e.Q6J("expert",t.expert)("inactive",!t.inactive)}}function tn(n,s){if(1&n&&e._UZ(0,"app-expert-online",22),2&n){const t=e.oxw(2);e.Q6J("expert",t.expert)}}function nn(n,s){if(1&n&&e._UZ(0,"app-expert-detail",39),2&n){const t=e.oxw(2);e.Q6J("value",null==t.expert||null==t.expert.categories[0]?null:t.expert.categories[0].name)}}function on(n,s){1&n&&e._UZ(0,"app-expert-detail",40),2&n&&e.Q6J("value","Inactive expert")}const se=function(n){return{inactive:n}};function sn(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",20)(1,"div",3)(2,"div",4),e._UZ(3,"app-expert-image",21),e.TgZ(4,"div",6)(5,"div",7),e._UZ(6,"app-expert-company",22)(7,"app-expert-top-pro",22)(8,"app-expert-near",22),e.qZA(),e.TgZ(9,"div",23),e.YNc(10,jt,1,1,"app-expert-experience",24),e.qZA(),e.TgZ(11,"div",9),e.YNc(12,Wt,1,1,"app-expert-detail",25),e.YNc(13,Kt,1,1,"app-expert-detail",26),e.qZA()()(),e.YNc(14,Xt,1,1,"app-expert-expertise",27),e.YNc(15,en,1,2,"app-expert-introduction",28),e.qZA(),e.TgZ(16,"div",29)(17,"div",14),e.YNc(18,tn,1,1,"app-expert-online",24),e.ALo(19,"expertOnline"),e.YNc(20,nn,1,1,"app-expert-detail",30),e.YNc(21,on,1,1,"app-expert-detail",31),e.qZA(),e.TgZ(22,"div",16)(23,"div",17),e._UZ(24,"app-expert-view-profile",32),e.TgZ(25,"app-request-offer",33),e.NdJ("sendRequest",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onSendRequest())}),e.qZA()(),e._UZ(26,"app-expert-offers",34),e.qZA()()()}if(2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(23,se,!t.inactive)),e.xp6(3),e.Q6J("expert",t.expert)("mainSize","110w"),e.xp6(3),e.Q6J("expert",t.expert),e.xp6(1),e.Q6J("expert",t.expert),e.xp6(1),e.Q6J("expert",t.expert),e.xp6(2),e.Q6J("ngIf",null==t.expert||null==t.expert.experience?null:t.expert.experience.length),e.xp6(2),e.Q6J("ngIf",(null==t.expert?null:t.expert.first_name)&&(null==t.expert?null:t.expert.last_name)),e.xp6(1),e.Q6J("ngIf",null==t.expert?null:t.expert.home_county),e.xp6(1),e.Q6J("ngIf",null==t.expert||null==t.expert.provided_services?null:t.expert.provided_services.length),e.xp6(1),e.Q6J("ngIf",null==t.expert?null:t.expert.about),e.xp6(1),e.Q6J("ngClass",e.VKq(25,se,!t.inactive)),e.xp6(2),e.Q6J("ngIf",(null==t.expert?null:t.expert.show_online_status)&&e.lcZ(19,21,null==t.expert?null:t.expert.last_login)),e.xp6(2),e.Q6J("ngIf",(null==t.expert?null:t.expert.home_county)&&t.inactive),e.xp6(1),e.Q6J("ngIf",(null==t.expert?null:t.expert.home_county)&&!t.inactive),e.xp6(3),e.Q6J("expert",t.expert)("stroked",!0)("inactive",!t.inactive),e.xp6(1),e.Q6J("expert",t.expert)("inactive",!t.inactive),e.xp6(1),e.Q6J("expert",t.expert)}}let rn=(()=>{class n{constructor(){this.expert=null,this.expertOfferMode=!1,this.isLoading=!1,this.inactive=!1,this.sendRequest=new e.vpe}onSendRequest(){this.sendRequest.emit()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-expert-big-desktop"]],inputs:{expert:"expert",expertOfferMode:"expertOfferMode",isLoading:"isLoading",inactive:"inactive"},outputs:{sendRequest:"sendRequest"},decls:2,vars:2,consts:[["class","expert-big",4,"ngIf"],["class","expert-big",3,"ngClass",4,"ngIf"],[1,"expert-big"],[1,"expert-big-left"],[1,"expert-big__wrap"],[1,"skeleton","skeleton__image"],[1,"expert-big-info"],[1,"expert-big-info__top"],[1,"skeleton","skeleton__name"],[1,"expert-big__details"],[1,"skeleton","skeleton__detail"],[1,"skeleton","skeleton__expertise"],[1,"skeleton","skeleton__introduction"],[1,"expert-big-right"],[1,"expert-big-right__top"],[1,"skeleton","skeleton__online"],[1,"expert-big-right__bottom"],[1,"expert-big__buttons"],[1,"skeleton","skeleton__button"],[1,"skeleton","skeleton__offers"],[1,"expert-big",3,"ngClass"],[1,"expert-big__photo",3,"expert","mainSize"],[3,"expert"],[1,"expert-big__meta"],[3,"expert",4,"ngIf"],["class","expert-detail","icon","input-user","label","Contact name",3,"value",4,"ngIf"],["class","expert-detail","icon","location","label","Location",3,"value",4,"ngIf"],["class","expert-big__expertise",3,"expert",4,"ngIf"],["class","expert-big__introduction",3,"expert","inactive",4,"ngIf"],[1,"expert-big-right",3,"ngClass"],["class","expert-detail","icon","dashboard-categories","label","Category",3,"value",4,"ngIf"],["class","expert-detail","icon","lock",3,"value",4,"ngIf"],[3,"expert","stroked","inactive"],[3,"expert","inactive","sendRequest"],[1,"expert-big__offers",3,"expert"],["icon","input-user","label","Contact name",1,"expert-detail",3,"value"],["icon","location","label","Location",1,"expert-detail",3,"value"],[1,"expert-big__expertise",3,"expert"],[1,"expert-big__introduction",3,"expert","inactive"],["icon","dashboard-categories","label","Category",1,"expert-detail",3,"value"],["icon","lock",1,"expert-detail",3,"value"]],template:function(t,o){1&t&&(e.YNc(0,Vt,20,0,"div",0),e.YNc(1,sn,27,27,"div",1)),2&t&&(e.Q6J("ngIf",o.isLoading),e.xp6(1),e.Q6J("ngIf",!o.isLoading))},dependencies:[l.mk,l.O5,Y._,G.G,V.h,j.C,W.W,K.T,X.m,Yt.i,ee.U,te.C,ne.w,oe.p,Gt.e],styles:[".expert-big[_ng
1content-%COMP%]{padding:24px;border:1px solid var(--color-greyscale-60);background:#ffffff;border-radius:24px;display:flex;justify-content:space-between}.expert-big.inactive[_ngcontent-%COMP%]{background:#F8F9FA}.expert-big-left[_ngcontent-%COMP%]{padding-right:24px;width:calc(100% - 315px)}.expert-big__wrap[_ngcontent-%COMP%]{display:flex;gap:24px}.expert-big__photo[_ngcontent-%COMP%]{flex-shrink:0;width:110px;height:110px}.expert-big-info__top[_ngcontent-%COMP%]{display:flex;align-items:center;gap:24px;margin-bottom:12px}.expert-big-info__top[_ngcontent-%COMP%]   app-expert-top-pro[_ngcontent-%COMP%], .expert-big-info__top[_ngcontent-%COMP%]   app-expert-near[_ngcontent-%COMP%]{flex-shrink:0}.expert-big__meta[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px;gap:8px 16px}.expert-big__meta[_ngcontent-%COMP%]   app-expert-top-pro[_ngcontent-%COMP%]{flex-shrink:0}.expert-big__details[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:16px}.expert-big__expertise[_ngcontent-%COMP%], .expert-big__introduction[_ngcontent-%COMP%]{display:block;margin-top:24px}.expert-big-right[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;flex-shrink:0;width:315px;padding-left:24px;border-left:1px solid var(--color-greyscale-60);gap:16px 0}.expert-big-right.inactive[_ngcontent-%COMP%]{border-left:1px solid #9096a2}.expert-big-right__top[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px 0}.expert-big__buttons[_ngcontent-%COMP%]     app-request-offer button{width:100%;margin-top:16px}.expert-big__offers[_ngcontent-%COMP%]{display:block;margin-top:16px}.skeleton__image[_ngcontent-%COMP%]{width:110px;height:110px;border-radius:16px;flex-shrink:0}.skeleton__name[_ngcontent-%COMP%]{width:100%;max-width:160px;height:20px}.skeleton__detail[_ngcontent-%COMP%]{width:150px;height:32px}.skeleton__expertise[_ngcontent-%COMP%]{margin-top:24px;width:100%;height:50px}.skeleton__introduction[_ngcontent-%COMP%]{width:100%;height:90px;margin-top:24px}.skeleton__online[_ngcontent-%COMP%]{width:100%;height:20px}.skeleton__button[_ngcontent-%COMP%]{width:100%;height:48px;border-radius:16px}.skeleton__button[_ngcontent-%COMP%]:not(:last-child){margin-bottom:16px}.skeleton__offers[_ngcontent-%COMP%]{height:22px;width:100%;margin-top:16px}@media screen and (max-width: 1199px){.expert-big-left[_ngcontent-%COMP%]{width:75%}.expert-big-right[_ngcontent-%COMP%]{width:25%}}"]}),n})();function an(n,s){1&n&&(e.TgZ(0,"div",2)(1,"div",3),e._UZ(2,"div",4),e.qZA(),e.TgZ(3,"div",5)(4,"div",6)(5,"div",7),e._UZ(6,"div",8)(7,"div",8)(8,"div",8),e.qZA()(),e.TgZ(9,"div",9),e._UZ(10,"div",10),e.qZA()(),e._UZ(11,"div",11),e.qZA())}function ln(n,s){if(1&n&&e._UZ(0,"app-expert-detail",23),2&n){const t=e.oxw(2);e.Q6J("value",(null==t.expert?null:t.expert.first_name)+" "+(null==t.expert?null:t.expert.last_name))}}function pn(n,s){if(1&n&&e._UZ(0,"app-expert-detail",24),2&n){const t=e.oxw(2);e.Q6J("value",(null==t.expert||null==t.expert.home_county?null:t.expert.home_county.name)+", "+(null==t.expert?null:t.expert.home_state))}}function dn(n,s){if(1&n&&e._UZ(0,"app-expert-detail",25),2&n){const t=e.oxw(2);e.Q6J("value",null==t.expert||null==t.expert.categories[0]?null:t.expert.categories[0].name)}}function cn(n,s){1&n&&e._UZ(0,"app-expert-detail",26),2&n&&e.Q6J("value","Inactive expert")}const un=function(n){return{inactive:n}};function _n(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",12)(1,"div",3),e._UZ(2,"app-expert-company",13)(3,"app-expert-top-pro",13)(4,"app-expert-near",13),e.qZA(),e.TgZ(5,"div",5)(6,"div",6),e._UZ(7,"app-expert-experience",13),e.TgZ(8,"div",7),e.YNc(9,ln,1,1,"app-expert-detail",14),e.YNc(10,pn,1,1,"app-expert-detail",15),e.YNc(11,dn,1,1,"app-expert-detail",16),e.YNc(12,cn,1,1,"app-expert-detail",17),e.qZA()(),e.TgZ(13,"div",9),e._UZ(14,"app-expert-image",18)(15,"app-expert-online",13),e.qZA()(),e._UZ(16,"app-expert-expertise",19),e.TgZ(17,"div",20)(18,"app-request-offer",21),e.NdJ("sendRequest",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onSendRequest())}),e.qZA(),e._UZ(19,"app-expert-view-profile",22),e.qZA(),e._UZ(20,"app-expert-offers",13),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(21,un,!t.inactive)),e.xp6(2),e.Q6J("expert",t.expert),e.xp6(1),e.Q6J("expert",t.expert),e.xp6(1),e.Q6J("expert",t.expert),e.xp6(3),e.Q6J("expert",t.expert),e.xp6(2),e.Q6J("ngIf",(null==t.expert?null:t.expert.first_name)&&(null==t.expert?null:t.expert.last_name)),e.xp6(1),e.Q6J("ngIf",null==t.expert?null:t.expert.home_county),e.xp6(1),e.Q6J("ngIf",(null==t.expert?null:t.expert.home_county)&&t.inactive),e.xp6(1),e.Q6J("ngIf",(null==t.expert?null:t.expert.home_county)&&!t.inactive),e.xp6(2),e.Q6J("expert",t.expert)("mainSize","110w"),e.xp6(1),e.Q6J("expert",t.expert),e.xp6(1),e.Q6J("expert",t.expert)("inactive",t.inactive),e.xp6(2),e.Q6J("expert",t.expert)("inactive",!t.inactive),e.xp6(1),e.Q6J("expert",t.expert)("stroked",!0)("icon",!0)("inactive",!t.inactive),e.xp6(1),e.Q6J("expert",t.expert)}}let hn=(()=>{class n{constructor(){this.expert=null,this.expertOfferMode=!1,this.isLoading=!1,this.inactive=!1,this.sendRequest=new e.vpe}onSendRequest(){this.sendRequest.emit()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-expert-big-mobile"]],inputs:{expert:"expert",expertOfferMode:"expertOfferMode",isLoading:"isLoading",inactive:"inactive"},outputs:{sendRequest:"sendRequest"},decls:2,vars:2,consts:[["class","expert-big",4,"ngIf"],["class","expert-big",3,"ngClass",4,"ngIf"],[1,"expert-big"],[1,"expert-big__header"],[1,"skeleton","skeleton__name"],[1,"expert-big__row"],[1,"expert-big__left"],[1,"expert-big__details"],[1,"skeleton","skeleton__detail"],[1,"expert-big__right"],[1,"skeleton","skeleton__image"],[1,"skeleton","skeleton__expertise"],[1,"expert-big",3,"ngClass"],[3,"expert"],["icon","input-user","label","Contact name",3,"value",4,"ngIf"],["icon","location","label","Location",3,"value",4,"ngIf"],["class","expert-detail","icon","dashboard-categories","label","Category",3,"value",4,"ngIf"],["class","expert-detail","icon","lock",3,"value",4,"ngIf"],[3,"expert","mainSize"],[3,"expert","inactive"],[1,"expert-big__buttons"],[3,"expert","inactive","sendRequest"],[3,"expert","stroked","icon","inactive"],["icon","input-user","label","Contact name",3,"value"],["icon","location","label","Location",3,"value"],["icon","dashboard-categories","label","Category",1,"expert-detail",3,"value"],["icon","lock",1,"expert-detail",3,"value"]],template:function(t,o){1&t&&(e.YNc(0,an,12,0,"div",0),e.YNc(1,_n,21,23,"div",1)),2&t&&(e.Q6J("ngIf",o.isLoading),e.xp6(1),e.Q6J("ngIf",!o.isLoading))},dependencies:[l.mk,l.O5,Y._,G.G,V.h,j.C,W.W,K.T,X.m,ee.U,te.C,ne.w,oe.p],styles:[".expert-big[_ng
1content-%COMP%]{padding:19px 24px 18px;border:1px solid var(--color-greyscale-60);background:#FFFFFF;border-radius:24px}.expert-big.inactive[_ngcontent-%COMP%]{background:#F8F9FA}.expert-big__header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:0 8px;margin-bottom:16px}.expert-big__header[_ngcontent-%COMP%]   app-expert-top-pro[_ngcontent-%COMP%]{flex-shrink:0}.expert-big__row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:0 16px;margin-bottom:16px}.expert-big__left[_ngcontent-%COMP%]   app-expert-experience[_ngcontent-%COMP%]     .expert-experience{display:inline-flex;margin-bottom:16px}.expert-big__details[_ngcontent-%COMP%]   app-expert-detail[_ngcontent-%COMP%]:not(:last-child)     .expert-detail{margin-bottom:8px}.expert-big__right[_ngcontent-%COMP%]{flex-shrink:0;width:100px}.expert-big__right[_ngcontent-%COMP%]   app-expert-image[_ngcontent-%COMP%]{display:block;width:100px;height:100px}.expert-big__right[_ngcontent-%COMP%]   app-expert-online[_ngcontent-%COMP%]     .expert-online{margin-top:8px}.expert-big[_ngcontent-%COMP%]   app-expert-expertise[_ngcontent-%COMP%]     .expert-expertise{margin-bottom:16px}.expert-big[_ngcontent-%COMP%]   app-expert-expertise[_ngcontent-%COMP%]     .expert-expertise__wrap{overflow:auto;-ms-overflow-style:none;scrollbar-width:none}.expert-big[_ngcontent-%COMP%]   app-expert-expertise[_ngcontent-%COMP%]     .expert-expertise__wrap::-webkit-scrollbar{display:none}.expert-big[_ngcontent-%COMP%]   app-expert-expertise[_ngcontent-%COMP%]     .expert-expertise__list{flex-wrap:nowrap;width:max-content}.expert-big__buttons[_ngcontent-%COMP%]{display:flex;gap:0 8px;margin-bottom:8px;align-items:center}.expert-big__buttons[_ngcontent-%COMP%]   app-request-offer[_ngcontent-%COMP%]{width:100%}.expert-big__buttons[_ngcontent-%COMP%]   app-request-offer[_ngcontent-%COMP%]     .ui-button{width:100%}.expert-big[_ngcontent-%COMP%]   app-expert-offers[_ngcontent-%COMP%]     .expert-offers{justify-content:center}.skeleton__image[_ngcontent-%COMP%]{width:110px;height:110px;border-radius:16px;flex-shrink:0}.skeleton__name[_ngcontent-%COMP%]{width:100%;max-width:160px;height:20px}.skeleton__detail[_ngcontent-%COMP%]{width:150px;height:32px}.skeleton__detail[_ngcontent-%COMP%]:not(:last-child){margin-bottom:16px}.skeleton__expertise[_ngcontent-%COMP%]{margin-top:24px;width:100%;height:50px}.skeleton__introduction[_ngcontent-%COMP%]{width:100%;height:90px;margin-top:24px}.skeleton__online[_ngcontent-%COMP%]{width:100%;height:20px}.skeleton__button[_ngcontent-%COMP%]{width:100%;height:48px;border-radius:16px}.skeleton__button[_ngcontent-%COMP%]:not(:last-child){margin-bottom:16px}.skeleton__offers[_ngcontent-%COMP%]{height:22px;width:100%;margin-top:16px}"]}),n})(),gn=(()=>{class n{constructor(){this.expert=null,this.expertOfferMode=!1,this.isLoading=!1,this.inactive=!1,this.sendRequest=new e.vpe,this.screenWidth=null}onResizeEvent(){typeof window<"u"&&this.checkWindowWidth()}checkWindowWidth(){this.screenWidth=window.innerWidth>0?window.innerWidth:screen.width}ngOnInit(){this.checkWindowWidth()}onSendRequest(){this.sendRequest.emit()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-expert-big"]],hostBindings:function(t,o){1&t&&e.NdJ("resize",function(a){return o.onResizeEvent(a)},!1,e.Jf7)},inputs:{expert:"expert",expertOfferMode:"expertOfferMode",isLoading:"isLoading",inactive:"inactive"},outputs:{sendRequest:"sendRequest"},decls:2,vars:8,consts:[[3,"expert","expertOfferMode","isLoading","inactive","sendRequest"]],template:function(t,o){1&t&&(e.TgZ(0,"app-expert-big-desktop",0),e.NdJ("sendRequest",function(){return o.onSendRequest()}),e.qZA(),e.TgZ(1,"app-expert-big-mobile",0),e.NdJ("sendRequest",function(){return o.onSendRequest()}),e.qZA()),2&t&&(e.Q6J("expert",o.expert)("expertOfferMode",o.expertOfferMode)("isLoading",o.isLoading)("inactive",o.inactive),e.xp6(1),e.Q6J("expert",o.expert)("expertOfferMode",o.expertOfferMode)("isLoading",o.isLoading)("inactive",o.inactive))},dependencies:[rn,hn],styles:["app-expert-big-mobile[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 991px){app-expert-big-desktop[_ngcontent-%COMP%]{display:none}app-expert-big-mobile[_ngcontent-%COMP%]{display:block}}"]}),n})(),fn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-find-expert-experts-not-found"]],decls:4,vars:0,consts:[[1,"find-expert-not-found"],["src","../../../../assets/img/agents-not-found.svg","alt",""]],template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"h2"),e._uU(2,"There are no agents in your region yet"),e.qZA(),e._UZ(3,"img",1),e.qZA())},styles:[".find-expert-not-found[_ngcontent-%COMP%]{display:flex;align-items:center;max-width:680px;margin:0 auto}.find-expert-not-found[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-style:normal;font-weight:700;font-size:48px;line-height:120%;letter-spacing:-.02em;color:#07090d;margin-right:30px}@media screen and (max-width: 767px){.find-expert-not-found[_ngcontent-%COMP%]{max-width:100%;flex-direction:column-reverse;padding-bottom:24px}.find-expert-not-found[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:24px;margin:20px 0 0;text-align:center}}"]}),n})();const mn=["lazyLoadExperts"],xn=["expertsList"],Cn=["expertElement"];function bn(n,s){1&n&&(e.TgZ(0,"h5",7),e._uU(1,"Experts based on your criteria"),e.qZA())}function vn(n,s){1&n&&e._UZ(0,"app-expert-big",9),2&n&&e.Q6J("isLoading",!0)}const yn=function(){return[]};function Mn(n,s){if(1&n&&(e.ynx(0),e.YNc(1,vn,1,1,"app-expert-big",8),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",e.DdM(1,yn).constructor(t.expertsLoadingLength))}}function wn(n,s){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"app-expert-big",13,14),e.NdJ("sendRequest",function(){const a=e.CHM(t).index,d=e.oxw(2);return e.KtG(d.onSendRequest(a))}),e.qZA(),e.BQk()}if(2&n){const t=s.$implicit,o=e.oxw(2);e.xp6(1),e.Q6J("expert",t)("inactive",null==o.currentUser||!o.currentUser._id||"inactive"!==(null==t?null:t.profile_privacy))}}const Pn=function(n){return{active:n}};function On(n,s){if(1&n&&e._UZ(0,"div",15,16),2&n){const t=e.oxw(2);e.Q6J("ngClass",e.VKq(1,Pn,t.isDivVisible&&t.searchAll))}}function Sn(n,s){if(1&n&&(e.TgZ(0,"div",10),e.YNc(1,wn,3,2,"ng-container",11),e.YNc(2,On,2,3,"div",12),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.experts),e.xp6(1),e.Q6J("ngIf",t.experts.length&&!t.expertsLoading)}}function Tn(n,s){1&n&&e._UZ(0,"app-find-expert-experts-not-found")}const An=function(n){return{"not-found":n}};let kn=(()=>{class n{constructor(){this.experts=[],this.defaultFilters={home_county:null,counties:null,home_state:null,states:null,cities:null,provided_services:null,categories:null,exclude_ids:null,exclude_counties:null,exclude_cities:null,exclude_states:null,profile_privacies:["public"]},this.secondFilters={home_county:null,counties:null,home_state:null,states:null,cities:null,provided_services:null,categories:null,exclude_ids:null,exclude_counties:null,exclude_cities:null,exclude_states:null,profile_privacies:["public"]},this.thirdFilters={home_county:null,counties:null,home_state:null,states:null,cities:null,provided_services:null,categories:null,exclude_ids:null,exclude_counties:null,exclude_cities:null,exclude_states:null,profile_privacies:["public"]},this.fourthFilters={home_county:null,counties:null,home_state:null,states:null,cities:null,provided_services:null,categories:null,exclude_ids:null,exclude_counties:null,exclude_states:null,profile_privacies:["inactive"]},this.expertsLoading=!0,this.expertsLoadingLength=5,this.hasFilter=localStorage.getItem("experts-filter"),this.itemsPerPage=Z.s.PAGE_LIMIT,this.currentPageCounty=1,this.currentPageState=1,this.currentPageAll=1,this.currentPageBotAll=1,this.switchState=!1,this.searchCounty=!!this.hasFilter,this.switchAll=!1,this.switchBotAll=!1,this.searchAll=!0,this.searchBotAll=!1,this.leadFilterCategories=[],this.timeOutGetExperts=null,this.currentUser=null,this.states=P.G.states,this.expertsCount=0,this.currentLeadData=null,this.experts$=null,this.user$=null,this.isFindExpert$=null,this.destroy$=new f.x,this.usersService=(0,e.f3M)(k.f),this.leadService=(0,e.f3M)(h.y),this.changeDetectorRef=(0,e.f3M)(e.sBO),this.authService=(0,e.f3M)(g.e),this.linksService=(0,e.f3M)(U.m),this.titleService=(0,e.f3M)(R.Dx),this.metaTagService=(0,e.f3M)(R.h_),this.footerService=(0,e.f3M)(m.M)}onScroll(){this.loading&&this.onIntersection()}getExpertsCountyAndCity(){this.loading=!1,this.experts$?.unsubscribe(),this.experts$=this.usersService.getExperts(this.currentPageCounty,null,this.defaultFilters,null,this.itemsPerPage).pipe((0,q.w)(t=>t.docs.length&&this.defaultFilters.cities?(0,O.of)(t):(this.searchCounty=!1,this.switchState=!0,this.getExpertsState(),(0,O.of)())),(0,c.R)(this.destroy$)).subscribe({next:t=>{const o=this.replaceLocation(t?.docs);this.experts=[...this.experts,...o],this.expertsLoading=!1,this.usersService.findExpertsLoading.next(!1),this.changeDetectorRef.detectChanges(),this.currentPageCounty===t.totalPages?(this.searchCounty=!1,this.switchState=!0):this.currentPageCounty+=1,this.onIntersection()},error:()=>{this.errorHandlingExperts()}})}getExpertsState(){this.loading=!1,this.experts$=this.usersService.getExperts(this.currentPageState,null,this.secondFilters,null,this.itemsPerPage).pipe((0,q.w)(t=>t.docs.length?(0,O.of)(t):(this.switchState=!1,this.switchAll=!0,this.getExpertsAll(),(0,O.of)())),(0,c.R)(this.destroy$)).subscribe({next:t=>{const o=this.replaceLocation(t?.docs);this.experts=[...this.experts,...this.cutDuplicates(this.experts,o)],this.expertsLoading=!1,this.usersService.findExpertsLoading.next(!1),this.changeDetectorRef.detectChanges(),this.currentPageState===t.totalPages?(this.switchState=!1,this.switchAll=!0):this.currentPageState+=1,this.onIntersection()},error:()=>{this.errorHandlingExperts()}})}getExpertsBotAll(){this.loading=!1,this.experts$=this.usersService.getExperts(this.currentPageBotAll,null,this.fourthFilters,null,this.itemsPerPage).pipe((0,c.R)(this.destroy$)).subscribe({next:t=>{this.expertsCount=t.totalDocs;const o=this.replaceLocation(t?.docs);this.experts=[...this.experts,...this.cutDuplicates(this.experts,o)],this.expertsLoading=!1,this.usersService.findExpertsLoading.next(!1),this.changeDetectorRef.detectChanges(),this.currentPageBotAll===t.totalPages?this.searchBotAll=!1:this.currentPageBotAll+=1,this.onSetTitle(),this.onIntersection()},error:()=>{this.errorHandlingExperts()}})}getExpertsAll(){this.loading=!1,this.experts$=this.usersService.getExperts(this.currentPageAll,null,this.thirdFilters,null,this.itemsPerPage).pipe((0,q.w)(t=>{if(t.docs.length)return(0,O.of)(t)}),(0,c.R)(this.destroy$)).subscribe({next:t=>{this.expertsCount=t.totalDocs;const o=this.replaceLocation(t?.docs);this.experts=[...this.experts,...this.cutDuplicates(this.experts,o)],this.expertsLoading=!1,this.usersService.findExpertsLoading.next(!1),this.changeDetectorRef.detectChanges(),this.currentPageAll===t.totalPages?(this.switchAll=!1,this.searchAll=!1,this.switchBotAll=!0,this.searchBotAll=!0):this.currentPageAll+=1,this.onSetTitle(),this.onIntersection()},error:()=>{this.errorHandlingExperts()}})}
1replaceLocation(t){if(this.currentLeadData?._id){const o=this.currentLeadData.county_id,i=this.currentLeadData.county;t.forEach(a=>{a?.counties.some(d=>d?._id===o)&&(a.home_county&&(a.home_county.name=i),a.home_state=this.currentLeadData.state)})}return t}cutDuplicates(t,o){const i=[];return o?.forEach(a=>{t.some(d=>d._id===a._id)||i.push(a)}),i}getFilterParams(){this.expertsLoading=!0,this.usersService.findExpertsLoading.next(!0),this.experts=[],this.selectedLead?._id?(this.defaultFilters.cities=[this.selectedLead?.city_id],this.defaultFilters.counties=[this.selectedLead?.county_id],this.defaultFilters.categories=this.leadFilterCategories,this.secondFilters.categories=this.leadFilterCategories,this.secondFilters.states=[this.selectedLead?.state],this.secondFilters.exclude_counties=[this.selectedLead?.county_id],this.secondFilters.exclude_cities=[this.selectedLead?.city_id],this.thirdFilters.categories=this.leadFilterCategories,this.thirdFilters.exclude_states=[this.selectedLead?.state],this.fourthFilters.categories=this.leadFilterCategories,this.getExpertsCountyAndCity(),this.changeDetectorRef.detectChanges()):this.selectedLead?._id||this.getExpertsAll(),this.changeDetectorRef.detectChanges()}onIsFindExperts(){this.isFindExpert$=this.leadService.isClickFineOffers.subscribe({next:t=>{t&&(this.clearCurrentPage(),this.timeOutGetExperts&&clearTimeout(this.timeOutGetExperts),this.timeOutGetExperts=setTimeout(()=>{this.leadFilterCategories=this.leadService.getFilterCategories(),this.getFilterParams(),this.leadService.isClickFineOffers.next(!1)}))}})}clearCurrentPage(){this.currentPageCounty=1,this.currentPageState=1,this.currentPageAll=1}errorHandlingExperts(){this.experts=[],this.changeDetectorRef.detectChanges()}receivingSwitchingExperts(){this.searchCounty?this.getExpertsCountyAndCity():this.switchState?this.getExpertsState():(this.searchAll&&this.getExpertsAll(),this.searchBotAll&&this.getExpertsBotAll())}onIntersection(){this.loading=!0,this?.divElement?.nativeElement&&(this.isDivVisible=this.isElementVisible(this?.divElement?.nativeElement),this.isDivVisible&&this.receivingSwitchingExperts())}isElementVisible(t){const o=t?.getBoundingClientRect();return o.top>=0&&o.left>=0&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&o.right<=(window.innerWidth||document.documentElement.clientWidth)}ngOnInit(){this.getUser(),this.getLeadCountyName(),this.expertsLoading=!0,this.usersService.findExpertsLoading.next(!0),this.onIsFindExperts(),this.getFilterParams(),this.currentUser?._id||this.footerService.isVisibleRelinking.next(!0)}onSendRequest(t){localStorage.getItem("scrolledToExpert")||((this.expertElements.toArray()[t+1]?.nativeElement).scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),localStorage.setItem("scrolledToExpert","true"))}onSetTitle(){this.titleService.setTitle("Find Real Estate Agents & Wholesalers in Your Area | 99offers"),this.metaTagService.updateTag({property:"og:description",content:"Looking for real estate agent? Check out our list of real estate experts at 99offers.com. We have the professionals in your area!"})}getUser(){this.user$=this.authService.userState.subscribe(t=>{t?._id&&(this.currentUser=t)})}getLeadCountyName(){this.leadService.currentLeadData.pipe((0,c.R)(this.destroy$)).subscribe({next:t=>{t&&(this.currentLeadData=t)}})}ngOnDestroy(){this.isFindExpert$?.unsubscribe(),this.user$?.unsubscribe(),this.destroy$.next(),this.destroy$.complete(),this.leadService.findeExpertFilterClearSource.next(!1),this.linksService.currentSeoInfo.next(null),this.titleService.setTitle("Sell Home on Your Terms with 99Offers"),this.metaTagService.updateTag({property:"og:description",content:"If you've made up your mind to sell your home, look no further than 99Offers. Selling your home has never been easier. Whether you are looking for a quick cash sale or aiming for that top-dollar offer, 99Offers has your back. We've got a range of tailored offers waiting just for you!"}),this.metaTagService.updateTag({name:"description",content:"If you've made up your mind to sell your home, look no further than 99Offers. Selling your home has never been easier. Whether you are looking for a quick cash sale or aiming for that top-dollar offer, 99Offers has your back. We've got a range of tailored offers waiting just for you!"}),this.footerService.isVisibleRelinking.next(!1)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-find-expert-experts"]],viewQuery:function(t,o){if(1&t&&(e.Gf(mn,5),e.Gf(xn,5),e.Gf(Cn,5,e.SBq)),2&t){let i;e.iGM(i=e.CRH())&&(o.divElement=i.first),e.iGM(i=e.CRH())&&(o.expertsListElement=i.first),e.iGM(i=e.CRH())&&(o.expertElements=i)}},hostBindings:function(t,o){1&t&&e.NdJ("scroll",function(){return o.onScroll()},!1,e.Jf7)},inputs:{selectedLead:"selectedLead"},decls:8,vars:7,consts:[[1,"find-expert-experts"],[1,"find-expert-experts-header",3,"ngClass"],["class","find-expert-experts-header__title",4,"ngIf"],[1,"find-expert-experts__list"],["expertsList",""],[4,"ngIf"],["class","find-expert-experts__list-block",4,"ngIf"],[1,"find-expert-experts-header__title"],[3,"isLoading",4,"ngFor","ngForOf"],[3,"isLoading"],[1,"find-expert-experts__list-block"],[4,"ngFor","ngForOf"],["class","lazy-load-experts",3,"ngClass",4,"ngIf"],[3,"expert","inactive","sendRequest"],["expertElement",""],[1,"lazy-load-experts",3,"ngClass"],["lazyLoadExperts",""]],template:function(t,o){1&t&&(e.TgZ(0,"section",0)(1,"header",1),e.YNc(2,bn,2,0,"h5",2),e.qZA(),e.TgZ(3,"div",3,4),e.YNc(5,Mn,2,2,"ng-container",5),e.YNc(6,Sn,3,2,"div",6),e.qZA()(),e.YNc(7,Tn,1,0,"app-find-expert-experts-not-found",5)),2&t&&(e.xp6(1),e.Q6J("ngClass",e.VKq(5,An,!o.experts.length)),e.xp6(1),e.Q6J("ngIf",o.experts.length),e.xp6(3),e.Q6J("ngIf",o.expertsLoading),e.xp6(1),e.Q6J("ngIf",!o.expertsLoading),e.xp6(1),e.Q6J("ngIf",!o.experts.length&&!o.expertsLoadingLength))},dependencies:[l.mk,l.sg,l.O5,gn,fn],styles:['.find-expert-experts[_ngcontent-%COMP%]{padding:20px 0 50px}.find-expert-experts__list-block[_ngcontent-%COMP%]{position:relative}.find-expert-experts__overlay[_ngcontent-%COMP%]{opacity:0;content:"";position:absolute;top:0%;left:0%;width:100%;height:calc(100% - 28px);background:#ccc;z-index:-1;border-radius:20px}.find-expert-experts__overlay.active[_ngcontent-%COMP%]{z-index:10;opacity:.4}.find-expert-experts-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:40px}.find-expert-experts-header__title[_ngcontent-%COMP%]{width:100%;text-align:left}.find-expert-experts-header.not-found[_ngcontent-%COMP%]{justify-content:flex-end}.find-expert-experts-header-showing[_ngcontent-%COMP%]{display:flex;align-items:center}.find-expert-experts-header-showing__text[_ngcontent-%COMP%]{font-weight:500;color:var(--color-greyscale-900);font-size:14px;line-height:1.14}.find-expert-experts-header-showing__reset[_ngcontent-%COMP%]{position:relative;padding-left:18px;margin-left:16px}.find-expert-experts-header-showing__reset[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{color:var(--color-primary);font-size:14px;background:none;font-weight:700}.find-expert-experts-header-showing__reset[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{text-decoration:underline}.find-expert-experts__list[_ngcontent-%COMP%]   app-expert-big[_ng
1content-%COMP%]{display:block}.find-expert-experts__list[_ngcontent-%COMP%]   app-expert-big[_ngcontent-%COMP%]:not(:last-child){margin-bottom:24px}.find-expert-pagination[_ngcontent-%COMP%]{margin-top:50px;display:flex;align-items:center;justify-content:space-between;padding-bottom:50px}.find-expert-pagination__text[_ngcontent-%COMP%]{font-size:14px;font-weight:700;line-height:1.6;color:var(--color-greyscale-200)}.find-expert-experts-seo__title[_ngcontent-%COMP%]{color:#000;font-size:24px;font-style:normal;font-weight:700;line-height:150%;padding-bottom:32px;max-width:450px}.find-expert-experts-seo__text[_ngcontent-%COMP%]{margin-bottom:32px}.find-expert-experts-seo__text[_ngcontent-%COMP%]     h4{font-size:18px;font-style:normal;font-weight:700;line-height:150%;letter-spacing:-.5px;padding-bottom:10px}.find-expert-experts-seo__text[_ngcontent-%COMP%]     p, .find-expert-experts-seo__text[_ngcontent-%COMP%]     strong{font-size:12px;font-style:normal;font-weight:400;line-height:160%;letter-spacing:.12px;color:var(--color-dark);padding-bottom:10px}.find-expert-experts-seo__text[_ngcontent-%COMP%]     strong{font-weight:700}@media screen and (max-width: 991px){.find-expert-experts-header-showing__text[_ngcontent-%COMP%]{font-size:12px}}@media screen and (max-width: 767px){.find-expert-experts-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:14px 0;margin-bottom:20px}.find-expert-experts-header-showing[_ngcontent-%COMP%]{width:100%;justify-content:space-between}.find-expert-experts-header-showing__reset[_ngcontent-%COMP%]{padding:0;margin:0}.find-expert-experts-header-showing__reset[_ngcontent-%COMP%]:before{display:none}}.lazy-load-experts[_ngcontent-%COMP%]{position:absolute;bottom:26%;opacity:0;width:100%;height:1px;overflow:hidden}@keyframes _ngcontent-%COMP%_lineAnim{0%{left:-40%}50%{left:20%;width:80%}to{left:100%;width:100%}}h1[_ngcontent-%COMP%]{font-size:32px}@media screen and (max-width: 767px){h1[_ngcontent-%COMP%]{font-size:18px;line-height:1.1}.find-expert-experts-seo__title[_ngcontent-%COMP%]{padding-bottom:24px;font-size:18px;letter-spacing:-.5px;max-width:100%}.find-expert-experts-seo__text[_ngcontent-%COMP%]     h4{font-size:14px;padding-bottom:10px}.find-expert-experts-seo__text[_ngcontent-%COMP%]     p, .find-expert-experts-seo__text[_ngcontent-%COMP%]     strong{font-size:12px}}']}),n})();function Zn(n,s){1&n&&(e.TgZ(0,"aside",9),e._UZ(1,"app-dashboard-sidebar"),e.qZA())}function Hn(n,s){if(1&n&&(e.TgZ(0,"h5",10),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.actionText)}}function In(n,s){1&n&&(e.TgZ(0,"div",14)(1,"h5",15),e._uU(2,"Homeowner\u2019s profile"),e.qZA(),e.TgZ(3,"p",16),e._uU(4," Manage your house profiles, select a service you need, and\xa0se
1nd requests to real estate experts. "),e.qZA()())}function Ln(n,s){if(1&n&&(e.TgZ(0,"div",17)(1,"div",18)(2,"p",19),e._uU(3,"Your Connects"),e.qZA(),e.TgZ(4,"div",20)(5,"span"),e._uU(6),e.qZA(),e._UZ(7,"app-svg",21),e.qZA()(),e.TgZ(8,"a",22),e._uU(9,"Buy"),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(6),e.Oqu(null==t.currentUser?null:t.currentUser.connects),e.xp6(2),e.MGl("routerLink","/","homeowner"===(null==t.currentUser?null:t.currentUser.role)?"ho":"exp","/connects")}}function qn(n,s){if(1&n&&(e.TgZ(0,"header",11),e.YNc(1,In,5,0,"div",12),e.YNc(2,Ln,10,2,"div",13),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf","homeowner"===(null==t.currentUser?null:t.currentUser.role)),e.xp6(1),e.Q6J("ngIf","homeowner"===(null==t.currentUser?null:t.currentUser.role))}}function En(n,s){if(1&n&&e._UZ(0,"app-find-expert-experts",23),2&n){const t=e.oxw();e.Q6J("selectedLead",t.selectedLead)}}const Fn=function(n,s){return{dashboard:n,"find-expert--not-full":s}},Un=[{path:"",component:(()=>{class n{constructor(t,o,i,a,d,_){this.leadService=t,this.renderer=o,this.authService=i,this.footerService=a,this.router=d,this.route=_,this.filterState=!1,this.checkUser=!1,this.isGetFreeConnects=!1,this.showProfileText=!1,this.actionText="Create your first free House Profile",this.addressInfoVisible$=this.leadService.addressInfoVisibleState,this.user$=null,this.destroy$=new f.x}checkHome(){this.filterState=!localStorage.getItem("userLeadInfo")}getUser(){this.user$=this.authService.userState.subscribe(t=>{t?._id?(this.currentUser=t,"homeowner"===this.currentUser?.role&&this.router.url.startsWith("/find-expert")&&this.router.navigate(["/ho/find-expert"]),this.footerService.isVisibleFull.next(!1),this.checkUser=!0):this.router.url.startsWith("/ho")&&this.router.navigate([this.router.url.replace(/\/ho/g,"")])})}ngOnInit(){this.parseQueryParamsAddress(),this.getUser(),localStorage.getItem("userLeadInfo")?this.leadService.addressInfoVisibleSource.next(!0):this.leadService.addressInfoVisibleSource.next(!1),this.checkHome(),this.checkClickAddressLisst()}onSelectLead(t){this.selectedLead=t,this.isGetFreeConnects=!!this.selectedLead?.date_got_connects_for_additional_questions}checkClickAddressLisst(){this.leadService.isClickInAddressList.pipe((0,c.R)(this.destroy$)).subscribe(t=>{t&&(this.showProfileText=!0)})}parseQueryParamsAddress(){this.route.queryParamMap.pipe((0,c.R)(this.destroy$)).subscribe(t=>{if(t.keys.length){const o={};t.keys.forEach(i=>{const a=t.get(i);o[i]=["lng","lat"].includes(i)?+a:a}),localStorage.setItem("userPlace",JSON.stringify(o))}})}ngOnDestroy(){this.user$?.unsubscribe(),this.footerService.isVisibleFull.next(!0)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(h.y),e.Y36(e.Qsj),e.Y36(g.e),e.Y36(m.M),e.Y36(u.F0),e.Y36(u.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-find-expert"]],decls:9,vars:17,consts:[[1,"find-expert",3,"ngClass"],[1,"container"],[1,"dashboard__row"],["class","dashboard-aside",4,"ngIf"],[1,"find-expert__content"],["class","list-page-header__title list-page-header__title-not-auth",4,"ngIf"],["class","list-page-header",4,"ngIf"],[3,"isFullHeight","selectLead"],[3,"selectedLead",4,"ngIf"],[1,"dashboard-aside"],[1,"list-page-header__title","list-page-header__title-not-auth"],[1,"list-page-header"],["class","list-page-header__left",4,"ngIf"],["class","offers-req-connects white-block",4,"ngIf"],[1,"list-page-header__left"],[1,"list-page-header__title"],[1,"list-page-header__text"],[1,"offers-req-connects","white-block"],[1,"offers-req-connects__info"],[1,"offers-req-connects__title"],[1,"offers-req-connects__value"],["name","connect"],["ui-flat-button","","color","primary",3,"routerLink"],[3,"selectedLead"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e.YNc(3,Zn,2,0,"aside",3),e.TgZ(4,"div",4),e.YNc(5,Hn,2,1,"h5",5),e.YNc(6,qn,3,2,"header",6),e.TgZ(7,"app-house",7),e.NdJ("selectLead",function(a){return o.onSelectLead(a)}),e.qZA(),e.YNc(8,En,1,1,"app-find-expert-experts",8),e.qZA()()()()),2&t&&(e.ekj("dashboard",null==o.currentUser?null:o.currentUser._id),e.Q6J("ngClass",e.WLB(14,Fn,null==o.currentUser?null:o.currentUser._id,(null==o.currentUser?null:o.currentUser._id)&&!o.isGetFreeConnects)),e.xp6(1),e.ekj("dashboard__container",null==o.currentUser?null:o.currentUser._id),e.xp6(1),e.ekj("dashboard__row",null==o.currentUser?null:o.currentUser._id),e.xp6(1),e.Q6J("ngIf",null==o.currentUser?null:o.currentUser._id),e.xp6(1),e.ekj("dashboard__content",null==o.currentUser?null:o.currentUser._id),e.xp6(1),e.Q6J("ngIf",!(null!=o.currentUser&&o.currentUser._id)),e.xp6(1),e.Q6J("ngIf",null==o.currentUser?null:o.currentUser._id),e.xp6(1),e.Q6J("isFullHeight",(null==o.currentUser?null:o.currentUser._id)&&!o.isGetFreeConnects),e.xp6(1),e.Q6J("ngIf",!(null!=o.currentUser&&o.currentUser._id)||(null==o.currentUser?null:o.currentUser._id)&&o.isGetFreeConnects))},dependencies:[l.mk,l.O5,u.rH,C.H,b.z,ie.l,Rt,kn],styles:[".find-expert[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]:not(.dashboard__container):not(.relinking__container){max-width:870px}.find-expert[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]:not(.dashboard__container):not(.relinking__container)     .expert-big{padding:16px}.find-expert[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]:not(.dashboard__container):not(.relinking__container)     .expert-big-left{width:calc(100% - 165px)}.find-expert[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]:not(.dashboard__container):not(.relinking__container)     .expert-big-right{width:165px}.find-expert[_ngcontent-%COMP%]     .address-info.relative{position:relative!important;margin-bottom:20px}.find-expert[_ngcontent-%COMP%]     .address-info__compensator{display:none}.find-expert[_ngcontent-%COMP%]     .no-address{margin-bottom:40px}.list-page-header__title-not-auth[_ngcontent-%COMP%]{font-size:24px;margin-bottom:32px;margin-top:16px}
1@media screen and (max-width: 1199px){.find-expert__content[_ngcontent-%COMP%]{padding:40px 0}}@media screen and (max-width: 991px){.find-expert[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]:not(.dashboard__container){max-width:720px}}@media screen and (max-width: 767px){.find-expert__content[_ngcontent-%COMP%]{padding:0 0 24px}.find-expert--not-full[_ngcontent-%COMP%]{background:none}.find-expert--not-full[_ngcontent-%COMP%]   .dashboard-aside[_ngcontent-%COMP%], .find-expert--not-full[_ngcontent-%COMP%]   .list-page-header[_ngcontent-%COMP%]{display:none}.find-expert--not-full[_ngcontent-%COMP%]   .find-expert__content[_ngcontent-%COMP%]{padding:0}  .address-info{width:100vw!important;margin-left:calc(50% - 50vw)}}.list-page-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between}.offers-req-connects[_ngcontent-%COMP%]{flex-shrink:0;margin:0 0 0 20px;padding:12px 18px;display:flex}.offers-req-connects__title[_ngcontent-%COMP%]{text-align:center;color:var(--color-primary);font-size:14px;font-weight:700;line-height:1.6}.offers-req-connects__value[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;color:#4d5563;font-size:16px;font-weight:700;line-height:1.5;letter-spacing:-.16px}.offers-req-connects__value[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-right:6px}.offers-req-connects[_ngcontent-%COMP%]   .ui-button[_ngcontent-%COMP%]{margin-left:12px;flex-shrink:0}@media screen and (max-width: 991px){.list-page-header[_ngcontent-%COMP%]{flex-direction:column;padding-top:40px}.list-page-header__text[_ngcontent-%COMP%]{font-size:16px}.offers-req-connects[_ngcontent-%COMP%]{width:100%;justify-content:space-between;margin:24px 0 0}}"]}),n})()}];let Jn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[u.Bz.forChild(Un),u.Bz]}),n})();var Bn=r(521),Qn=r(1127),Nn=r(7261),Dn=r(9606),zn=r(5281);let $n=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[zn.$,x.m]}),n})(),Rn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[x.m]}),n})();var Yn=r(3384),Gn=r(6472);let Vn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[l.ez]}),n})();var jn=r(1596),Wn=r(2898),Kn=r(5112),Xn=r(6263),eo=r(1642),to=r(854),no=r(1421);let oo=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[x.m,Jn,Bn.n,Qn.t,Nn.S,Dn.O,$n,Rn,Yn.R,Gn.JX,Vn,jn.$v,Wn.G,Kn.H,to.n,no.k,Xn.Q,eo._]}),n})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.