PageSourceSearch

https://brafford-photography.web.app/3045.106a1ffcab26631c.js

js brafford-photography.web.app collected 2026-10-03 12:19:23 UTC 80,800 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktonomo=self.webpackChunktonomo||[]).push([[3045],{83045:(ei,de,l)=>{l.r(de),l.d(de,{BookingFeatureCheckoutModule:()=>qt});var P=l(69808),C=l(93075),J=l(79814),G=l(74202),D=l(51062),v=l(61409),$e=l(47403),pe=l(39918),K=l(96410),Ae=l(54268),X=l(70655),Be=l(15486),Ee=l(71764),Z=l.n(Ee),Ie=l(70127),Oe=(l(65881),l(96463),l(10585)),Fe=l(88514),k=l(36053),xe=l(98723),Pe=l(61737),A=l(21086),Y=l(68896),ce=l(8929),Ue=l(63527),x=l(92198),p=l(24850),U=l(75778),B=l(87545),Re=l(26582),De=l(21406),R=l(27221),ue=l(1059),me=l(5154),E=l(72986),he=l(2994),h=l(7625),ge=l(80013),$=l(658),I=l(52080),W=l(92858),Q=l(98798),b=l(24254),e=l(5e3),O=l(48966),ve=l(67656),fe=l(61432),ye=l(70949),be=l(39348),Ne=l(66809),Le=l(72751),Me=l(68566);function je(a,d){1&a&&(e.\u0275\u0275elementStart(0,"div",6),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,1,"ERROR_EMAIL")," "))}let we=(()=>{class a{constructor(i,t,o,s){this.dialogRef=i,this.authService=t,this.router=o,this.fb=s,this.destroy$=new ce.xQ,this.form=this.fb.group({email:["",[C.kI.required,b.$9f.unstrictEmailValidator]],displayName:["",[C.kI.minLength(3),C.kI.required]]}),this.submitting=!1}ngOnInit(){this.authService.authUser$.pipe((0,h.R)(this.destroy$)).subscribe(i=>{if(!i)return;this.form.patchValue({email:i.email,displayName:i.displayName});const t=this.form.get("email");t&&(i.email?t.disable():t.enable())})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}submit(){return(0,X.mG)(this,void 0,void 0,function*(){if(!this.form.invalid){this.submitting=!0;try{const i=this.form.getRawValue();yield this.authService.updateAdditionalUserData(this.form.getRawValue()),this.dialogRef.close(i)}catch(i){this.form.setErrors({error:"Failed to submit"})}finally{this.submitting=!1}}})}}return a.\u0275fac=function(i){return new(i||a)(e.\u0275\u0275directiveInject(O.so),e.\u0275\u0275directiveInject($.e80),e.\u0275\u0275directiveInject(G.F0),e.\u0275\u0275directiveInject(C.qu))},a.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["tn-user-info-dialog"]],decls:18,vars:25,consts:[[3,"closable"],[1,"mb-12",3,"formGroup"],["formControlName","displayName","type","text",3,"required","autofocus","label","placeholder"],["formControlName","email","required","","type","email",3,"label","placeholder"],["class","messages text-danger tl body pl-2",4,"ngIf"],["uiBtnSize","medium","uiBtnTheme","main",1,"w-full",3,"uiBtnLoading","disabled","click"],[1,"messages","text-danger","tl","body","pl-2"]],template:function(i,t){1&i&&(e.\u0275\u0275elementStart(0,"ui-dialog-header",0),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"mat-dialog-content")(4,"ui-form-group",1)(5,"ui-form-row"),e.\u0275\u0275element(6,"ui-input",2),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"ui-form-row"),e.\u0275\u0275element(10,"ui-input",3),e.\u0275\u0275pipe(11,"translate"),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275template(13,je,3,3,"div",4),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(14,"mat-dialog-actions")(15,"button",5),e.\u0275\u0275listener("click",function(){return t.submit()}),e.\u0275\u0275text(16),e.\u0275\u0275pipe(17,"translate"),e.\u0275\u0275elementEnd()()),2&i&&(e.\u0275\u0275property("closable",!1),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,13,"FILL_IN_YOUR_DETAILS"),"\n"),e.\u0275\u0275advance(3),e.\u0275\u0275property("formGroup",t.form),e.\u0275\u0275advance(2),e.\u0275\u0275property("required",!0)("autofocus",!0)("label",e.\u0275\u0275pipeBind1(7,15,"FULL_NAME")+"*")("placeholder",e.\u0275\u0275pipeBind1(8,17,"FULL_NAME")),e.\u0275\u0275advance(4),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(11,19,"Email")+"*")("placeholder",e.\u0275\u0275pipeBind1(12,21,"Email")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",t.form.controls.email.invalid&&t.form.controls.email.dirty),e.\u0275\u0275advance(2),e.\u0275\u0275property("uiBtnLoading",t.submitting)("disabled",!t.form.valid||t.submitting),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(17,23,"SUBMIT")," "))},directives:[ve.A,O.xY,fe.H,C.JL,C.sg,ye.L,be.a,C.JJ,C.u,C.Q7,P.NgIf,O.H8,Ne.s,Le.V,Me.T],pipes:[D.X$],encapsulation:2}),a})(),Ce=(()=>{class a{constructor(i){this.dialog=i}openDialog(){return this.ref=this.dialog.open(we,{panelClass:"app-v2",width:"400px",maxWidth:"400px",hasBackdrop:!0,disableClose:!0}),this.ref.afterClosed()}close(){this.ref&&this.ref.close()}}return a.\u0275fac=function(i){return new(i||a)(e.\u0275\u0275inject(O.uw))}
1,a.\u0275prov=e.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac}),a})();var _e=l(37841),ze=l(77655);let Ve=(()=>{class a{constructor(i,t){var o;this.dialogRef=i,this.data=t,this.phone="",this.busy=!1,this.phone=null!==(o=null==t?void 0:t.phone)&&void 0!==o?o:""}onVerifySuccess(){return(0,X.mG)(this,void 0,void 0,function*(){this.dialogRef.close({phone:this.phone})})}}return a.\u0275fac=function(i){return new(i||a)(e.\u0275\u0275directiveInject(O.so),e.\u0275\u0275directiveInject(O.WI))},a.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["tn-verify-phone-dialog"]],decls:7,vars:9,consts:[[3,"loading"],[3,"ngModel","buttonLabel","type","ngModelChange","busyChange","authSuccess"]],template:function(i,t){1&i&&(e.\u0275\u0275elementStart(0,"ui-dialog-header"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"mat-dialog-content")(4,"ui-loading-wrapper",0)(5,"ui-phone-auth-form",1),e.\u0275\u0275listener("ngModelChange",function(s){return t.phone=s})("busyChange",function(s){return t.busy=s})("authSuccess",function(){return t.onVerifySuccess()}),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd()()()),2&i&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,5,"VERIFY_PHONE_NUMBER")),e.\u0275\u0275advance(3),e.\u0275\u0275property("loading",t.busy),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",t.phone)("buttonLabel",e.\u0275\u0275pipeBind1(6,7,"VERIFY"))("type","signin"))},directives:[ve.A,O.xY,_e.G,ze.U,C.JJ,C.On],pipes:[D.X$],styles:[""],changeDetection:0}),a})(),ke=(()=>{class a{constructor(i){this.dialog=i}openDialog(i){return this.ref=this.dialog.open(Ve,{panelClass:["app-v2"],width:"400px",maxWidth:"400px",hasBackdrop:!0,disableClose:!0,data:{phone:i}}),this.ref.afterClosed()}close(){this.ref&&this.ref.close()}}return a.\u0275fac=function(i){return new(i||a)(e.\u0275\u0275inject(O.uw))},a.\u0275prov=e.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac}),a})();var He=l(22962),Ge=l(57261),Ye=l(37903),We=l(62508),Qe=l(40156),Je=l(52069),Ke=l(33626),Xe=l(60804),Ze=l(65826),qe=l(27257),et=l(60250),tt=l(66411),it=l(2591),nt=l(50257),ot=l(73065),at=l(1077),st=l(54391),rt=l(80535),lt=l(46655),dt=l(44740),pt=l(32368),ct=l(77446),ut=l(17513),mt=l(12129),ht=l(82303),gt=l(90384);function vt(a,d){if(1&a&&e.\u0275\u0275element(0,"ui-payment-error-banner",43),2&a){const i=e.\u0275\u0275nextContext();e.\u0275\u0275property("integratedPayment",i.integratedPayment)}}function ft(a,d){1&a&&e.\u0275\u0275element(0,"tn-pay-at-close-banner",44)}function yt(a,d){if(1&a){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tn-book-as-user",45),e.\u0275\u0275listener("bookAsModeChange",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().onBookAsModeChange(o)})("selectUser",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().onUserSelect(o)}),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()}if(2&a){const i=e.\u0275\u0275nextContext();e.\u0275\u0275property("bookAsMode",e.\u0275\u0275pipeBind1(1,2,i.bookAsMode$))("selectedUser",e.\u0275\u0275pipeBind1(2,4,i.selectedBookingUser$))}}function bt(a,d){if(1&a){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tn-book-as-user",46),e.\u0275\u0275listener("bookAsModeChange",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().onBookAsModeChange(o)})("selectUser",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().onUserSelect(o)}),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275pipe(4,"async"),e.\u0275\u0275elementEnd()}if(2&a){const i=e.\u0275\u0275nextContext();e.\u0275\u0275property("bookAsMode",e.\u0275\u0275pipeBind1(1,4,i.bookAsMode$))("brokerageId",e.\u0275\u0275pipeBind1(2,6,i.authUserBrokerageId$))("childBrokerageIds",e.\u0275\u0275pipeBind1(3,8,i.childUserBrokerageIds$))("selectedUser",e.\u0275\u0275pipeBind1(4,10,i.selectedBookingUser$))}}function Ct(a,d){1&a&&(e.\u0275\u0275element(0,"ui-input",54),e.\u0275\u0275pipe(1,"translate")),2&a&&e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(1,3,"PHONE")+"*")("readonly",!0)("complete",!0)}function _t(a,d){1&a&&(e.\u0275\u0275element(0,"ui-phone-input",55),e.\u0275\u0275pipe(1,"translate")),2&a&&e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(1,1,"PHONE")+"*")}function kt(a,d){1&a&&(e.\u0275\u0275elementStart(0,"ui-form-row")(1,"div",56)(2,"div",57)(3,"h4"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()()()()),2&a&&(e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,1,"AGENT_EMAIL_EXIST")))}const St=function(){return[]};function Tt(a,d){if(1&a&&(e.\u0275\u0275elementStart(0,"ui-form-group",27)(1,"ui-form-row",47),e.\u0275\u0275element(2,"ui-input",48),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275template(4,Ct,2,5,"ui-input",49),e.\u0275\u0275template(5,_t,2,3,"ui-phone-input",50),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"ui-form-row",47),e.\u0275\u0275element(7,"ui-input",51),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275element(9,"ui-input",52),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275pipe(11,"async"),e.\u0275\u0275pipe(12,"async"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(13,kt,6,3,"ui-form-row",32),e.\u0275\u0275elementStart(14,"ui-form-row"),e.\u0275\u0275element(15,"ui-chips",53),e.\u0275\u0275pipe(16,"translate"),e.\u0275\u0275elementEnd()()),2&a){const i=e.\u0275\u0275nextContext();let t,o;e.\u0275\u0275advance(2),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(3,15,"FULL_NAME")+"*")("readonly",!(null==i.bookingUser||!i.bookingUser.displayName))("complete",!(null==i.bookingUser||!i.bookingUser.displayName)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",null==i.bookingUser?null:i.bookingUser.phone),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(null!=i.bookingUser&&i.bookingUser.phone)),e.\u0275\u0275advance(2),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(8,17,"EMAIL")+"*")("readonly",!(null==i.bookingUser||!i.bookingUser.email))("complete",!(null==i.bookingUser||!i.bookingUser.email)),e.\u0275\u0275advance(2),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(10,19,"PARTNER_ID"))("readonly",null!==(t=e.\u0275\u0275pipeBind1(11,21,i.isAgentCodeReadonly$))&&void 0!==t&&t)("complete",null!==(o=e.\u0275\u0275pipeBind1(12,23,i.isAgentCodeReadonly$))&&void 0!==o&&o),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",i.emailExists),e.\u0275\u0275advance(2),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(16,25,"INCLUDE_IN_CORRESPONDENCE"))("value",i.form.value.emailList||e.\u0275\u0275pureFunction0(27,St))("chipPattern",i.emailPattern)}}function $t(a,d){1&a&&(e.\u0275\u0275element(0,"span",58),e.\u0275\u0275pipe(1,"uiSafeHtml")),2&a&&e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(1,1,d.ngIf),e.\u0275\u0275sanitizeHtml)}function At(a,d){if(1&a&&(e.\u0275\u0275elementStart(0,"a",59),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&a){const i=e.\u0275\u0275nextContext();e.\u0275\u0275property("href",e.\u0275\u0275pipeBind1(1,3,i.brandingSamplesLink$),e.\u0275\u0275sanitizeUrl)("uiCustomizableText","VIDEO_AND_WEBSITE_SAMPLES"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,5,"VIDEO_AND_WEBSITE_SAMPLES")," ")}}function Bt(a,d){if(1&a&&(e.\u0275\u0275elementStart(0,"mat-radio-button",60),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&a){const i=d.$implicit;e.\u0275\u0275property("value",i.value),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",i.name," ")}}function Et(a,d){if(1&a&&(e.\u0275\u0275element(0,"ui-input",64),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275pipe(2,"async")),2&a){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(1,4,"APARTMENT_FLOOR"))("readonly",!0)("complete",!0)("value",e.\u0275\u0275pipeBind1(2,6,i.line2$))}}function It(a,d){if(1&a&&(e.\u0275\u0275element(0,"ui-number-input",65),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275pipe(2,"uiArea"),e.\u0275\u0275pipe(3,"async")),2&a){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(1,5,"PROPERTY_AREA"))("suffix",e.\u0275\u0275pipeBind1(2,7,""))("readonly",!0)("complete",!0)("value",e.\u0275\u0275pipeBind1(3,9,i.propertySquareFootage$))}}function Ot(a,d){if(1&a&&(e.\u0275\u0275element(0,"ui-number-input",65),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275pipe(2,"uiArea"),e.\u0275\u0275pipe(3,"async")),2&a){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(1,5,"ACREAGE"))("suffix",e.\u0275\u0275pipeBind2(2,7,"","landlot"))("readonly",!0)("complete",!0)("value",e.\u0275\u0275pipeBind1(3,10,i.acreage$))}}function Ft(a,d){if(1&a&&(e.\u0275\u0275elementStart(0,"ui-form-row",61),e.\u0275\u0275template(1,Et,3,8,"ui-input",62),e.\u0275\u0275template(2,It,4,11,"ui-number-input",63),e.\u0275\u0275template(3,Ot,4,12,"ui-number-input",63),e.\u0275\u0275elementEnd()),2&a){const i=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",i.getPropertyGridColsClass()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!i.hideLine2Input),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!i.hideSqFtInput),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.showAcreageInput)}}function xt(a,d){if(1&a&&(e.\u0275\u0275elementStart(0,"ui-form-row",47),e.\u0275\u0275element(1,"ui-input",64),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"dayjsDateFormat"),e.\u0275\u0275pipe(4,"async"),e.\u0275\u0275pipe(5,"async"),e.\u0275\u0275element(6,"ui-input",64),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275pipe(8,"async"),e.\u0275\u0275elementEnd()),2&a){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(2,8,"DATE"))("readonly",!0)("complete",!0)("value",e.\u0275\u0275pipeBind3(3,10,e.\u0275\u0275pipeBind1(4,14,i.displayDate$),"MMM DD, YYYY",e.\u0275\u0275pipeBind1(5,16,i.timezone$))),e.\u0275\u0275advance(5),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(7,18,"SCHEDULED_TIME_BLOCK"))("readonly",!0)("complete",!0)("value",e.\u0275\u0275pipeBind1(8,20,i.scheduledTime$))}}function Pt(a,d){if(1&a&&(e.\u0275\u0275elementStart(0,"ui-form-row",47),e.\u0275\u0275element(1,"ui-input",64),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"dayjsDateFormat"),e.\u0275\u0275pipe(4,"async"),e.\u0275\u0275element(5,"ui-input",64),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275pipe(7,"async"),e.\u0275\u0275elementEnd()),2&a){const i=d.$implicit,t=d.index,o=e.\u0275\u0275nextContext();let s;e.\u0275\u0275advance(1),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(2,8,"DATE"))("readonly",!0)("complete",!0)("value",i?e.\u0275\u0275pipeBind3(3,10,i,"MMM DD, YYYY",e.\u0275\u0275pipeBind1(4,14,o.timezone$)):"-"),e.\u0275\u0275advance(4),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(6,16,"SCHEDULED_TIME_BLOCK"))("readonly",!0)("complete",!0)("value",null==(s=e.\u0275\u0275pipeBind1(7,18,o.scheduledSeparateTime$))?null:s[t])}}function Ut(a,d){if(1&a&&(e.\u0275\u0275elementStart(0,"ui-form-row",47),e.\u0275\u0275element(1,"ui-input",64),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"dayjsDateFormat"),e.\u0275\u0275pipe(4,"async"),e.\u0275\u0275pipe(5,"async"),e.\u0275\u0275element(6,"ui-input",64),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275pipe(8,"async"),e.\u0275\u0275elementEnd()),2&a){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(2,8,"DATE"))("readonly",!0)("complete",!0)("value",e.\u0275\u0275pipeBind3(3,10,e.\u0275\u0275pipeBind1(4,14,i.displayTwilightDate$),"MMM DD, YYYY",e.\u0275\u0275pipeBind1(5,16,i.timezone$))),e.\u0275\u0275advance(5),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(7,18,"SCHEDULED_TIME_BLOCK"))("readonly",!0)("complete",!0)("value",e.\u0275\u0275pipeBind1(8,20,i.scheduledTwilightTime$))}}const Rt=function(a,d){return{type:a,amount:d}};function Dt(a,d){if(1&a&&(e.\u0275\u0275elementStart(0,"p",71),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"uiCurrency"),e.\u0275\u0275elementEnd()),2&a){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"REQUIRE_DEPOSIT_HINT",e.\u0275\u0275pureFunction2(10,Rt,i.paymentAmount===i.invoiceAmount.toFixed(2)?e.\u0275\u0275pipeBind1(3,4,"FULL_PAYMENT"):e.\u0275\u0275pipeBind1(4,6,"DEPOSIT"),e.\u0275\u0275pipeBind1(5,8,i.paymentAmount)))," ")}}function Nt(a,d){if(1&a){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tn-payment-form",72),e.\u0275\u0275listener("togglePayment",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).bypassDeposit=!o})("selectPaymentType",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).onSelectPaymentType(o)})("selectSavedCard",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).onSelectSavedCard(o)})("setTipAmount",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).tipAmount=o}),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275pipe(4,"async"),e.\u0275\u0275pipe(5,"async"),e.\u0275\u0275pipe(6,"async"),e.\u0275\u0275pipe(7,"async"),e.\u0275\u0275pipe(8,"async"),e.\u0275\u0275pipe(9,"async"),e.\u0275\u0275pipe(10,"async"),e.\u0275\u0275elementEnd()}if(2&a){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("isEnabled",!i.bypassDeposit)("isSaveCardEnabled",!0)("enableStripe",e.\u0275\u0275pipeBind1(1,17,i.enableStripe$))("enableAch",!0!==e.\u0275\u0275pipeBind1(2,19,i.enableStripe$))("paymentsProvider",e.\u0275\u0275pipeBind1(3,21,i.paymentsProvider$))("showPayAtClose",e.\u0275\u0275pipeBind1(4,23,i.canPayAtClose$))("enableTips",e.\u0275\u0275pipeBind1(5,25,i.enableTips$))("tipOptions",e.\u0275\u0275pipeBind1(6,27,i.tipOptions$))("locationId",i.squareLocationId)("availableCredits",e.\u0275\u0275pipeBind1(7,29,i.availableCredits$))("creditsUser",e.\u0275\u0275pipeBind1(8,31,i.creditsUser$))("authUser",e.\u0275\u0275pipeBind1(9,33,i.user$))("customerUid",i.paymentCustomerUid)("isAuthUserCreditsOwner",e.\u0275\u0275pipeBind1(10,35,i.isAuthUserCreditsOwner$))("totalAmount",i.invoiceAmount)("amountToPay",i.paymentAmountNumber)("amountDue",i.paymentAmountNumber)}}function Lt(a,d){if(1&a){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tn-payment-square-card-form",73),e.\u0275\u0275listener("togglePayment",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).bypassDeposit=!o})("selectSavedCard",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).onSelectSavedCard(o)}),e.\u0275\u0275elementEnd()}if(2&a){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("isEnabled",!i.bypassDeposit)("isSaveCardEnabled",!0)("locationId",i.squareLocationId)}}function Mt(a,d){if(1&a){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tn-payment-stripe-card-form",74),e.\u0275\u0275listener("togglePayment",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).bypassDeposit=!o})("selectSavedCard",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext(2).onSelectSavedCard(o)}),e.\u0275\u0275elementEnd()}if(2&a){const i=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("isEnabled",!i.bypassDeposit)("isSaveCardEnabled",!0)}}function jt(a,d){if(1&a){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"h2",26),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,Dt,6,13,"p",66),e.\u0275\u0275elementStart(5,"tn-apply-coupon",67),e.\u0275\u0275listener("apply",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().onApplyCoupon(o)})("clear",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().onClearCoupon(o)}),e.\u0275
1\u0275pipe(6,"async"),e.\u0275\u0275pipe(7,"async"),e.\u0275\u0275pipe(8,"async"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(9,Nt,11,37,"tn-payment-form",68),e.\u0275\u0275template(10,Lt,1,3,"tn-payment-square-card-form",69),e.\u0275\u0275pipe(11,"async"),e.\u0275\u0275template(12,Mt,1,2,"tn-payment-stripe-card-form",70),e.\u0275\u0275pipe(13,"async"),e.\u0275\u0275elementContainerEnd()}if(2&a){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("uiCustomizableText","PAYMENT_DETAILS"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,9,"PAYMENT_DETAILS")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","0.00"!==i.paymentAmount),e.\u0275\u0275advance(1),e.\u0275\u0275property("coupon",e.\u0275\u0275pipeBind1(6,11,i.coupon$))("allowReferralProgram",e.\u0275\u0275pipeBind1(7,13,i.enableReferralProgram$))("referralCreditAmount",e.\u0275\u0275pipeBind1(8,15,i.referralCreditAmount$)),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf","0.00"!==i.paymentAmount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","0.00"===i.paymentAmount&&!0!==e.\u0275\u0275pipeBind1(11,17,i.enableStripe$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","0.00"===i.paymentAmount&&e.\u0275\u0275pipeBind1(13,19,i.enableStripe$))}}function wt(a,d){1&a&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"h2",26),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"p",75),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"ui-form-group",76)(8,"ui-form-row"),e.\u0275\u0275element(9,"ui-textarea",77),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("uiCustomizableText","CLIENT_PREFERENCES"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,4,"CLIENT_PREFERENCES")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("uiCustomizableText","ANYTHING_ELSE_HINT"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(6,6,"ANYTHING_ELSE_HINT")," "))}function zt(a,d){if(1&a){const i=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ui-form-group",76)(1,"ui-form-row")(2,"tn-booking-user-autocomplete",78),e.\u0275\u0275listener("search",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().onSearchMembers(o)})("selectUser",function(o){return e.\u0275\u0275restoreView(i),e.\u0275\u0275nextContext().onMemberSelect(o)}),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()()}if(2&a){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(3,4,"WHO_SPEAKING_TO"))("placeholder",e.\u0275\u0275pipeBind1(4,6,"ENTER_NAME"))("filteredUsers",i.filteredOrganizationMembers)("selectedUser",i.selectedMember)}}function Vt(a,d){1&a&&(e.\u0275\u0275elementStart(0,"div",79)(1,"mat-slide-toggle",83),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("disableRipple",!0),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,2,"SEND_CONFIRMATION_TEXT_MESSAGE")," "))}function Ht(a,d){if(1&a&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",79)(2,"mat-slide-toggle",80),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,Vt,4,4,"div",81),e.\u0275\u0275elementStart(6,"div",79)(7,"mat-slide-toggle",82),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()),2&a){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("disableRipple",!0),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,5,"SEND_CONFIRMATION_EMAIL")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",i.allowTextNotifications),e.\u0275\u0275advance(2),e.\u0275\u0275property("disableRipple",!0),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(9,7,"DONT_INVITE_TO_CALENDAR")," ")}}function Gt(a,d){1&a&&(e.\u0275\u0275element(0,"div",88),e.\u0275\u0275pipe(1,"uiSafeHtml")),2&a&&e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(1,1,d.ngIf),e.\u0275\u0275sanitizeHtml)}const Yt=function(a,d){return{termsUrl:a,companyName:d}};function Wt(a,d){if(1&a&&(e.\u0275\u0275elementStart(0,"div",84)(1,"mat-checkbox",85),e.\u0275\u0275element(2,"p",86),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,Gt,2,3,"div",87),e.\u0275\u0275pipe(5,"async"),e.\u0275\u0275elementEnd()),2&a){const i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind2(3,2,"I_AGREE_TO_TERMS",e.\u0275\u0275pureFunction2(7,Yt,i.termsUrl,i.organizationName)),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(5,5,i.termsOfServiceDescription$))}}const Qt=function(a){return{processing:a}},Jt=function(){return["Admin"]},Se=function(){return["Admin","Contractor","Staff"]};function Te(a){const t=(0,X._T)(a,["order_name","packages"]);return JSON.stringify(t)}const Zt=[{path:"",pathMatch:"full",component:(()=>{class a{constructor(i,t,o,s,c,u,y,f,T,_,N,L,M,j,w,z,V,H,q,ee,te,ie,ne,oe,ae,se){this.route=i,this.authService=t,this.router=o,this.fb=s,this.bookingFacade=c,this.bookingOrderFacade=u,this.bookingPackagesFacade=y,this.bookingSolutionsFacade=f,this.paymentsSquareFacade=T,this.paymentsTitusFacade=_,this.paymentsStripeFacade=N,this.alertDialogService=L,this.schedulingService=M,this.appConfigService=j,this.contextService=w,this.coreAppReadApi=z,this.coreAppWriteApi=V,this.sessionRecorderService=H,this.afs=q,this.auth=ee,this.verifyPhoneDialog=te,this.userInfoDialog=ie,this.translate=ne,this.snackBar=oe,this.paymentsUserCreditsService=ae,this.brokerageNotificationDefaults=se,this.bookingFlow$=this.bookingOrderFacade.bookingFlow$,this.isPropertyBookingFlowType$=this.bookingOrderFacade.isPropertyBookingFlowType$,this.isBrandingBookingFlowType$=this.bookingOrderFacade.isBrandingBookingFlowType$,this.canPayAtClose$=this.paymentsTitusFacade.canPayAtClose$,this.paymentsProvider$=this.paymentsTitusFacade.cardPaymentsProvider$,this.bookingOrder$=this.bookingOrderFacade.bookingOrder$,this.travelFee$=this.bookingOrderFacade.travelFee$,this.bookingStep$=this.bookingOrderFacade.bookingStep$,this.bookingProgress$=this.bookingOrderFacade.bookingProgress$,this.selectedTimeslot$=this.bookingOrderFacade.selectedTimeslot$,this.separateSelectedTimeslots$=this.bookingOrderFacade.separateSelectedTimeslots$,this.twilightSelectedTimeslot$=this.bookingOrderFacade.twilightSelectedTimeslot$,this.scheduledDate$=this.bookingOrderFacade.scheduledDate$,this.scheduledSeparateDate$=this.bookingOrderFacade.scheduledSeparateDate$,this.scheduledTwilightDate$=this.bookingOrderFacade.scheduledTwilightDate$,this.scheduledTime$=this.bookingOrderFacade.scheduledTime$,this.scheduledSeparateTime$=this.bookingOrderFacade.scheduledSeparateTime$,this.scheduledTwilightTime$=this.bookingOrderFacade.scheduledTwilightTime$,this.cartSolutionIds$=this.bookingOrderFacade.cartSolutionIds$,this.guestBrokerage$=this.bookingOrderFacade.guestBrokerage$,this.reservedCalendarEvent$=this.bookingOrderFacade.reservedCalendarEvent$,this.selectedListingAgentsOption$=this.bookingOrderFacade.selectedListingAgentsOption$,this.bookAsMode$=this.bookingOrderFacade.bookAsMode$,this.submitLoading$=this.bookingOrderFacade.loading$,this.selectedPackage$=this.bookingPackagesFacade.selectedPackage$,this.solutionEntities$=this.bookingSolutionsFacade.solutionEntities$,this.selectedSolutions$=this.bookingSolutionsFacade.selectedSolutions$,this.calculatedSolutionsPrice$=this.bookingSolutionsFacade.calculatedSolutionsPrice$,this.steps$=this.bookingFacade.steps$,this.allOrderedSolutions$=this.bookingFacade.allOrderedSolutions$,this.finalPackagePrice$=this.bookingFacade.finalPackagePrice$,this.bookingDataLoading$=this.bookingFacade.loading$,this.quote$=(0,Fe.P)(()=>(0,k.aj)([this.bookingOrder$,this.bookingFlow$,this.allOrderedSolutions$,this.bookingUser$]).pipe((0,x.h)(([n,r])=>!!n&&!!r),(0,p.U)(([n,r,m,g])=>(0,v.Jf)(n,void 0,r,m,null==g?void 0:g.uid)),(0,U.x)((n,r)=>Te(n)===Te(r)),(0,B.w)(n=>this.coreAppWriteApi.quoteBooking(n).pipe((0,Re.a)(r=>r.pipe((0,De.b)((m,g)=>g<2?(0,xe.H)(500):(0,Pe._)(m)))),(0,p.U)(r=>({price:r,failed:!1,pending:!1})),(0,R.K)(()=>(0,A.of)({price:null,failed:!0,pending:!1})),(0,ue.O)({price:null,failed:!1,pending:!0}))))).pipe((0,me.d)({bufferSize:1,refCount:!0})),this.pricedQuote$=this.quote$.pipe((0,p.U)(({price:n})=>n),(0,x.h)(n=>!!n)),this.pricingReady$=this.quote$.pipe((0,p.U)(({failed:n,pending:r})=>!n&&!r),(0,ue.O)(!1),(0,U.x)(),(0,me.d)({bufferSize:1,refCount:!0})),this.discount$=this.pricedQuote$.pipe((0,p.U)(({invoice:n})=>{var r;return null!==(r=n.totalDiscount)&&void 0!==r?r:null})),this.taxAmount$=this.pricedQuote$.pipe((0,p.U)(({invoice:n})=>n.totalTaxAmount)),this.transactionFeeAmount$=this.pricedQuote$.pipe((0,p.U)(({invoice:n})=>n.transactionFeeAmount)),this.totalPrice$=this.pricedQuote$.pipe((0,p.U)(({invoice:n})=>n.totalAmount)),this.packagePrice$=this.pricedQuote$.pipe((0,p.U)(({invoice:n})=>{var r,m;return null!==(m=null===(r=n.lineItems.find(g=>
1g.type===Q.is.Package))||void 0===r?void 0:r.unitAmount)&&void 0!==m?m:0})),this.quotedSolutionPrice$=this.pricedQuote$.pipe((0,p.U)(({invoice:n})=>n.lineItems.filter(r=>r.type===Q.is.Service).reduce((r,m)=>{var g,S;return r[null!==(g=m.id)&&void 0!==g?g:""]=null!==(S=m.unitAmount)&&void 0!==S?S:0,r},{}))),this.quotedTravelFee$=this.pricedQuote$.pipe((0,p.U)(({invoice:n})=>n.lineItems.filter(r=>r.type===Q.is.Fee).filter(r=>"flat_fee"===r.feeType).reduce((r,m)=>{var g;return r+(null!==(g=m.feeAmount)&&void 0!==g?g:0)},0))),this.paymentAmount$=this.pricedQuote$.pipe((0,p.U)(({paymentAmount:n})=>n)),this.applySalesTax$=this.bookingFlow$.pipe((0,p.U)(n=>!!(null==n?void 0:n.applySalesTax))),this.isTaxInclusive$=this.bookingFlow$.pipe((0,p.U)(n=>!!(null==n?void 0:n.isTaxInclusive))),this.salesTax$=this.bookingFlow$.pipe((0,p.U)(n=>(null==n?void 0:n.salesTax)||0)),this.transactionFee$=this.bookingFlow$.pipe((0,p.U)(n=>(null==n?void 0:n.transactionFee)||0)),this.workDays$=this.bookingOrder$.pipe((0,p.U)(n=>null==n?void 0:n.workDays)),this.listingAgentsDescription$=this.bookingFlow$.pipe((0,p.U)(n=>(null==n?void 0:n.listingAgentsDescription)||"")),this.brandingSamplesLink$=this.bookingFlow$.pipe((0,p.U)(n=>(null==n?void 0:n.brandingSamplesLink)||"")),this.hideExistingContact$=this.bookingFlow$.pipe((0,p.U)(n=>(null==n?void 0:n.hideExistingContact)||!1)),this.hideTermsOfService$=this.bookingFlow$.pipe((0,p.U)(n=>(null==n?void 0:n.hideTermsOfService)||!1)),this.termsOfServiceDescription$=this.bookingFlow$.pipe((0,p.U)(n=>(null==n?void 0:n.termsOfServiceDescription)||"")),this.enableDontInviteCustomerToCalendar$=this.bookingFlow$.pipe((0,p.U)(n=>(null==n?void 0:n.dontInviteCustomerToCalendarEvent)||!1)),this.propertyAddress$=this.bookingOrder$.pipe((0,p.U)(n=>(null==n?void 0:n.property_address)||null)),this.coupon$=this.bookingOrder$.pipe((0,p.U)(n=>null==n?void 0:n.coupon)),this.propertyFormattedAddress$=this.bookingOrder$.pipe((0,p.U)(n=>{var r;return(null===(r=null==n?void 0:n.property_address)||void 0===r?void 0:r.formatted_address)||""})),this.line2$=this.bookingOrder$.pipe((0,p.U)(n=>{var r;return(null===(r=null==n?void 0:n.property_address)||void 0===r?void 0:r.line2)||""})),this.propertySquareFootage$=this.bookingOrder$.pipe((0,p.U)(n=>(null==n?void 0:n.property_square_footage)||"")),this.acreage$=this.bookingOrder$.pipe((0,p.U)(n=>(null==n?void 0:n.acreage)||"")),this.timezone$=this.bookingOrder$.pipe((0,p.U)(n=>{var r;return(null===(r=null==n?void 0:n.property_address)||void 0===r?void 0:r.timezone)||""})),this.moveOrderToInProgress$=this.contextService.bookingConfig$.pipe((0,p.U)(n=>(null==n?void 0:n.moveOrderToInProgress)||!1)),this.enableStripe$=this.contextService.bookingConfig$.pipe((0,E.q)(1),(0,p.U)(n=>(null==n?void 0:n.enableStripe)||!1),(0,he.b)(n=>this.enableStripe=n)),this.enableTips$=this.contextService.bookingConfig$.pipe((0,p.U)(n=>!!(null==n?void 0:n.enableTipCollection))),this.tipOptions$=this.contextService.bookingConfig$.pipe((0,p.U)(n=>null==n?void 0:n.suggestedTipOptions)),this.enableReferralProgram$=this.contextService.bookingConfig$.pipe((0,p.U)(n=>null==n?void 0:n.enableReferralProgram)),this.referralCreditAmount$=this.contextService.bookingConfig$.pipe((0,p.U)(n=>{var r;return(null===(r=null==n?void 0:n.referralProgramSettings)||void 0===r?void 0:r.referralCreditAmount)||0})),this.selectedListingAgents$=this.bookingOrderFacade.listingAgents$.pipe((0,he.b)(n=>{this.selectedListingAgents=null!=n?n:[]})),this.bookingUser$=(0,k.aj)([this.bookingOrderFacade.bookingUser$,this.auth.user$]).pipe((0,B.w)(([n,r])=>{var m;return(null===(m=null==r?void 0:r.brokerage_obj)||void 0===m?void 0:m.id)?this.authService.userBrokerage$.pipe((0,p.U)(g=>({bookingUser:n,currentUser:r,brokerage:g})),(0,R.K)(()=>Y.E)):(0,A.of)({bookingUser:n,currentUser:r,brokerage:null})}),(0,p.U)(({bookingUser:n,currentUser:r,brokerage:m})=>{var g,S;const F=["Admin","Contractor","Staff"].includes(null!==(g=null==r?void 0:r.permissions)&&void 0!==g?g:""),le=!!(null===(S=null==m?void 0:m.managers)||void 0===S?void 0:S[r.uid])||!this.appConfigService.bookAsByManagers;return F||m&&le?n||{uid:this.afs.createId(),isAnonymous:!0,referralCode:(0,b.lJ1)()}:r})),this.user$=this.auth.user$,this.creditsUser$=this.paymentsUserCreditsService.creditsOwner$,this.availableCredits$=this.paymentsUserCreditsService.availableCredits$,this.isAuthUserCreditsOwner$=this.paymentsUserCreditsService.isAuthUserCreditsOwner$,this.displayDate$=(0,k.aj)([this.selectedTimeslot$,this.scheduledDate$,this.timezone$]).pipe((0,p.U)(([n,r,m])=>(null==n?void 0:n.start)||r&&Z().tz(1e3*+r,m).add(12,"hour").unix())),this.displaySeparateDate$=(0,k.aj)([this.separateSelectedTimeslots$,this.scheduledSeparateDate$,this.timezone$]).pipe((0,p.U)(([n,r,m])=>null==n?void 0:n.map((g,S)=>{const F=null==r?void 0:r[S];return(null==g?void 0:g.start)||F&&Z().tz(1e3*+F,m).add(12,"hour").unix()}))),this.displayTwilightDate$=(0,k.aj)([this.twilightSelectedTimeslot$,this.scheduledTwilightDate$,this.timezone$]).pipe((0,p.U)(([n,r,m])=>(null==n?void 0:n.start)||r&&Z().tz(1e3*+r,m).add(12,"hour").unix())),this.predefinedAgentCode$=(0,k.aj)([this.bookingUser$,this.guestBrokerage$]).pipe((0,p.U)(([n,r])=>(null==r?void 0:r.agentCode)||(null==n?void 0:n.agentCode))),this.isAgentCodeReadonly$=this.predefinedAgentCode$.pipe((0,p.U)(n=>!!n)),this.loading$=(0,k.aj)([this.bookingFacade.loading$,this.paymentsSquareFacade.loading$,this.paymentsStripeFacade.loading$]).pipe((0,p.U)(n=>n.some(r=>r))),this.submitDisabled$=(0,k.aj)([this.loading$,this.pricingReady$]).pipe((0,p.U)(([n,r])=>n||!r)),this.accountLoading$=this.authService.isAccountLoading$,this.accountStatusMsg$=this.authService.createAccountStatusMessage$,this.isPaymentAvailable$=(0,k.aj)([this.bookingFlow$,this.paymentAmount$,this.coupon$]).pipe((0,p.U)(([n,r,m])=>!!(null==n?void 0:n.integratedPayment)&&!(null==m?void 0:m.bypassDeposit)&&"0.00"!==r)),this.authUserBrokerageId$=this.authService.userBrokerageId$,this.childUserBrokerageIds$=this.authService.userChildBrokerages$.pipe((0,p.U)(n=>n.map(r=>r.id))),this.allowBookAsBrokerage$=this.auth.user$.pipe((0,B.w)(n=>{var r;return(null===(r=null==n?void 0:n.brokerage_obj)||void 0===r?void 0:r.id)?this.authService.userBrokerage$.pipe((0,p.U)(g=>{var S,F;const re=!["Admin","Contractor","Staff"].includes(null==n?void 0:n.permissions),le=!!(null===(S=null==g?void 0:g.managers)||void 0===S?void 0:S[n.uid])||!this.appConfigService.bookAsByManagers;return re&&!!(null===(F=null==n?void 0:n.brokerage_obj)||void 0===F?void 0:F.id)&&le}),(0,R.K)(()=>Y.E)):(0,A.of)(null)})),this.selectedBookingUser$=this.bookingUser$.pipe((0,p.U)(n=>(null==n?void 0:n.email)?n:null)),this.enableStripe=!1,this.emailExists=!1,this.bookingFlow=null,this.allOrderedSolutions=[],this.currentUser=null,this.bookingUser=null,this.bookAsMode=v.AE.E
1xisting,this.selectedBookingUser=null,this.coupon=null,this.members=["none"],this.preferredContactMethods="",this.organizationMembers=[],this.filteredOrganizationMembers=[],this.selectedMember=null,this.selectedListingAgents=[],this.formattedAddress="",this.selectedPackage=null,this.selectedPackageName="",this.bypassDeposit=!1,this.tipAmount=0,this.invoiceAmount=0,this.paymentAmount="0.00",this.pricingReady=!1,this.paymentAmountNumber=0,this.salesTax=0,this.squareLocationId=null,this.paymentType=W.XL.Card,this.selectedSavedCardId="",this.listingAgentOptional=!1,this.integratedPayment=!1,this.lockFilesUntilPaid=!1,this.hideDeliveryPreviewSection=!1,this.reservedCalendarEvent=null,this.propertyAddress=null,this.isPaymentAvailable=!1,this.hideTermsOfService=!1,this.moveOrderToInProgress=!1,this.hideLine2Input=!1,this.hideSqFtInput=!1,this.hideClientPreferences=!1,this.showAcreageInput=!1,this.emailPattern=/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/,this.selectedListingAgentsOption=v.CT.ForCurrentUser,this.listingAgentsOptions=[{value:v.CT.ForCurrentUser,name:this.translate.instant("LISTING_AGENTS_CURRENT_USER")},{value:v.CT.CoListing,name:this.translate.instant("LISTING_AGENTS_CO_LISTING")},{value:v.CT.ForAnAgent,name:this.translate.instant("LISTING_AGENTS_FOR_AN_AGENT")}],this.submitLoading=!1,this.redirectingToTitus=!1,this.destroy$=new ce.xQ,this.initForm(),this.initSubscriptions()}onBeforeUnload(i){this.canDeactivate()||(i.preventDefault(),i.returnValue="")}get isStandalone(){return this.route.snapshot.data.isStandalone}get currentUrl(){return this.router.url}get flowSlug(){return this.route.snapshot.params.flow}get queryParams(){return this.route.snapshot.queryParams}get organizationName(){return this.appConfigService.name}get termsUrl(){return this.appConfigService.termsUrl}get allowTextNotifications(){return this.appConfigService.allowTextNotifications}get isTitusPayment(){return(0,I.EU)(this.paymentType,this.paymentsTitusFacade.cardPaymentsProvider)}get willCollectPayment(){return this.isPaymentAvailable&&!this.bypassDeposit}get submitButtonText(){return this.willCollectPayment&&this.isTitusPayment?"PROCEED_TO_PAYMENT":"SUBMIT_ORDER"}get paymentCustomerUid(){var i,t;const o=null===(i=this.bookingUser)||void 0===i?void 0:i.uid,s=null===(t=this.currentUser)||void 0===t?void 0:t.uid;return o&&s&&s!==o?o:null}ngOnInit(){this.bookingOrderFacade.submittedInvoice$.pipe((0,x.h)(i=>!!i),(0,h.R)(this.destroy$)).subscribe(i=>this.redirectToTitus(i)),this.pricingReady$.pipe((0,h.R)(this.destroy$)).subscribe(i=>this.pricingReady=i),this.quote$.pipe((0,p.U)(({failed:i})=>i),(0,U.x)(),(0,x.h)(Boolean),(0,h.R)(this.destroy$)).subscribe(()=>{this.alertDialogService.alert({message:[this.translate.instant("ERROR_OCCURRED"),this.translate.instant("ERROR_PRICE_UNAVAILABLE")]})}),this.isBrandingBookingFlowType$.pipe((0,h.R)(this.destroy$)).subscribe(i=>{this.bookingOrderFacade.updateBookingStep(i?v.HZ.Checkout:v.$e.Checkout)}),this.bookingUser$.pipe((0,h.R)(this.destroy$)).subscribe(i=>{i?this.paymentsUserCreditsService.resolveCreditsOwner(i.uid):this.paymentsUserCreditsService.resetAvailableCredits()}),this.paymentsUserCreditsService.creditsOwner$.pipe((0,h.R)(this.destroy$)).subscribe(i=>{this.bookingOrderFacade.setCreditOwnerId(null==i?void 0:i.uid)}),this.bookingFacade.getBookingData(this.flowSlug),this.getOrganizationMembers(),this.checkTimeslotAvailability(),this.initAuth()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.verifyPhoneDialog.close(),this.userInfoDialog.close()}canDeactivate(){return this.redirectingToTitus||!this.submitLoading}initAuth(){this.authService.isLoggedIn$.pipe((0,E.q)(1),(0,x.h)(i=>!i),(0,B.w)(()=>this.verifyPhoneDialog.openDialog().pipe((0,E.q)(1),(0,h.R)(this.destroy$))),(0,h.R)(this.destroy$)).subscribe(i=>{i||this.onReturn()}),this.authService.user$.pipe((0,x.h)(i=>Boolean(i)),(0,x.h)(i=>!i.createAccountStatus||i.createAccountStatus===W.ys.DONE||i.createAccountStatus===W.ys.ERROR),(0,E.q)(1),(0,h.R)(this.destroy$)).subscribe(i=>{(!(null==i?void 0:i.email)||!(null==i?void 0:i.displayName))&&this.userInfoDialog.openDialog()})}initSubscriptions(){var i;this.bookingFlow$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{this.bookingFlow=t;const o=(null==t?void 0:t.applySalesTax)||!1;this.listingAgentOptional=(null==t?void 0:t.listingAgentOptional)||!1,this.salesTax=o&&(null==t?void 0:t.salesTax)||0,this.integratedPayment=(null==t?void 0:t.integratedPayment)||!1,this.lockFilesUntilPaid=(null==t?void 0:t.lockFilesUntilPaid)||!1,this.hideDeliveryPreviewSection=(null==t?void 0:t.hideDeliveryPreviewSection)||!1,this.squareLocationId=(null==t?void 0:t.squareLocationId)||"",this.hideLine2Input=(null==t?void 0:t.hideLine2Input)||!1,this.hideSqFtInput=(null==t?void 0:t.hideSqFtInput)||!1,this.hideClientPreferences=(null==t?void 0:t.hideClientPreferences)||!1,this.showAcreageInput=(null==t?void 0:t.showAcreageInput)||!1}),this.bookAsMode$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{this.bookAsMode=t}),this.authService.user$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{this.currentUser=t}),this.bookingOrder$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{var o,s,c;this.form.pristine&&(null===(o=this.form.get("orderNotes"))||void 0===o||o.setValue((null==t?void 0:t.order_notes)||(null===(s=this.bookingUser)||void 0===s?void 0:s.orderNotes)||"")),this.selectedMember=(null==t?void 0:t.existing_contact)&&this.organizationMembers.find(u=>
1u.displayName===(null==t?void 0:t.existing_contact))||null,this.formattedAddress=(null===(c=null==t?void 0:t.property_address)||void 0===c?void 0:c.formatted_address)||"",this.coupon=(null==t?void 0:t.coupon)||null}),this.selectedPackage$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{this.selectedPackage=t,this.selectedPackageName=(null==t?void 0:t.name)||""}),(0,k.aj)([this.getListingAgentsUser(),this.selectedListingAgentsOption$]).pipe((0,B.w)(([t,o])=>o===v.CT.ForCurrentUser?(0,A.of)(t?[(0,b.evI)(t)]:[]):o===v.CT.ForAnAgent?(0,A.of)([]):(null==t?void 0:t.uid)?this.coreAppReadApi.getLastUsedListingAgents(t.uid).pipe((0,B.w)(s=>{const c=s.filter(u=>u.uid!==t.uid).map(u=>u.uid);return this.coreAppReadApi.getUsersByIds(c).pipe((0,p.U)(u=>{const y=u.filter(Boolean).map(f=>{const T=s.find(_=>_.uid===(null==f?void 0:f.uid))||{};return Object.assign(Object.assign({},T),(0,b.evI)(f))});return[(0,b.evI)(t)].concat(y)}))}),(0,R.K)(()=>Y.E)):(0,A.of)([])),(0,h.R)(this.destroy$)).subscribe(t=>{this.onListingAgentsChange(t)}),this.bookingUser$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{var o,s,c,u,y,f;const T=(null===(o=null==t?void 0:t.emailList)||void 0===o?void 0:o.map(_=>_.value).filter(_=>"[email protected]"!==_).filter(_=>(0,Be.Jh)(_)))||[];null===(s=this.form.get("displayName"))||void 0===s||s.setValue((null==t?void 0:t.displayName)||""),null===(c=this.form.get("phone"))||void 0===c||c.setValue((null==t?void 0:t.phone)||""),null===(u=this.form.get("email"))||void 0===u||u.setValue((null==t?void 0:t.email)||""),null===(y=this.form.get("orderNotes"))||void 0===y||y.setValue((null==t?void 0:t.orderNotes)||""),null===(f=this.form.get("emailList"))||void 0===f||f.setValue(T),this.bookingUser=t,this.preferredContactMethods=(0,b.xbz)(null==t?void 0:t.preferredContactMethods)}),this.selectedBookingUser$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{this.selectedBookingUser=t}),this.predefinedAgentCode$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{var o;null===(o=this.form.get("agentCode"))||void 0===o||o.setValue(t||"")}),(0,k.aj)([this.bookingUser$,this.bookingOrder$]).subscribe(([t,o])=>{const u=((null==t?void 0:t.dedicatedMembers)?Object.keys(t.dedicatedMembers):[]).concat((null==o?void 0:o.members)&&"none"!==o.members[0]?o.members:[]);this.members=u.length>0?u:["none"]}),this.allOrderedSolutions$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{this.allOrderedSolutions=t}),this.totalPrice$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{this.invoiceAmount=t}),this.paymentAmount$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{this.paymentAmount=t,this.paymentAmountNumber=Number.isNaN(parseFloat(t))?0:parseFloat(t)}),(0,k.aj)([this.bookingUser$,this.bookingFlow$]).pipe((0,p.U)(([t,o])=>{var s;return{brokerageId:null===(s=null==t?void 0:t.brokerage_obj)||void 0===s?void 0:s.id,disableConfirmationEmail:!!(null==o?void 0:o.disableConfirmationEmail)}}),(0,U.x)((t,o)=>t.brokerageId===o.brokerageId&&t.disableConfirmationEmail===o.disableConfirmationEmail),(0,B.w)(({brokerageId:t,disableConfirmationEmail:o})=>(0,Ue.D)(this.brokerageNotificationDefaults.isAgentEnabledMany(t,["bookingConfirmationEmail","bookingConfirmationText"])).pipe((0,p.U)(([s,c])=>({sendConfirmationEmail:s&&!o,sendConfirmationTextMessage:c})))),(0,h.R)(this.destroy$)).subscribe(t=>{this.form.patchValue(t)}),this.enableDontInviteCustomerToCalendar$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{var o;null===(o=this.form.get("dontInviteCustomer"))||void 0===o||o.setValue(t)}),this.reservedCalendarEvent$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{this.reservedCalendarEvent=t}),this.propertyAddress$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{this.propertyAddress=t}),this.isPaymentAvailable$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{this.isPaymentAvailable=t}),this.hideTermsOfService$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{this.hideTermsOfService=t}),this.selectedListingAgentsOption$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{this.selectedListingAgentsOption=t}),null===(i=this.form.get("email"))||void 0===i||i.valueChanges.pipe((0,ge.b)(500),(0,U.x)(),(0,p.U)(t=>null==t?void 0:t.trim()),(0,B.w)(t=>{var o;return t&&(null===(o=this.form.get("email"))||void 0===o?void 0:o.valid)&&!this.selectedBookingUser?this.coreAppReadApi.isEmailTaken(t).pipe((0,R.K)(()=>Y.E)):(0,A.of)(!1)}),(0,h.R)(this.destroy$)).subscribe(t=>{this.emailExists=t}),this.moveOrderToInProgress$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{this.moveOrderToInProgress=t}),this.submitLoading$.pipe((0,h.R)(this.destroy$)).subscribe(t=>{this.submitLoading=t})}initForm(){this.form=this.fb.group({displayName:["",b.$9f.required],phone:["",b.$9f.required],email:["",[b.$9f.required,b.$9f.unstrictEmailValidator]],emailList:[],agentCode:"",orderNotes:"",sendConfirmationEmail
1:!0,sendConfirmationTextMessage:!1,dontInviteCustomer:!1,agreeToTerms:!1})}onListingAgentsOptionChange(i){this.bookingOrderFacade.updateSelectedListingAgentsOption(i),this.bookingOrderFacade.storeBookingOrderState()}onListingAgentsChange(i){this.bookingOrderFacade.updateBookingOrder({listingAgents:i}),this.bookingOrderFacade.storeBookingOrderState()}isFormInvalid(){return this.form.invalid||this.emailExists}isAddRemoveAgentsEnabled(){return this.selectedListingAgentsOption!==v.CT.ForCurrentUser}isContactFormShown(){return this.bookAsMode===v.AE.New||!!this.selectedBookingUser}checkForm(){this.form.markAllAsTouched()}onBookAsModeChange(i){this.bookingOrderFacade.updateBookAsMode(i)}onUserSelect(i){var t,o,s,c;null===(t=this.form.get("email"))||void 0===t||t.reset(),null===(o=this.form.get("email"))||void 0===o||o.markAsPristine(),null===(s=this.form.get("email"))||void 0===s||s.markAsUntouched(),this.emailExists=!1,this.bookingOrderFacade.updateBookingUser(i),this.bookingOrderFacade.storeBookingOrderState();const u=null!==(c=null==i?void 0:i.uid)&&void 0!==c?c:"";this.selectedPackage&&this.bookingPackagesFacade.getBookingPackages(u),this.bookingSolutionsFacade.getBookingSolutions(u),this.bookingFacade.applyUserBrokerageDefaultCoupon(i)}onSearchMembers(i){this.filteredOrganizationMembers=this.organizationMembers.filter(t=>!i||t.displayName.toLowerCase().includes(i.toLowerCase()))}onMemberSelect(i){var t;this.form.markAsDirty(),this.bookingOrderFacade.updateBookingOrder({existing_contact:(null==i?void 0:i.displayName)||"",order_notes:null===(t=this.form.get("orderNotes"))||void 0===t?void 0:t.value}),this.bookingOrderFacade.storeBookingOrderState()}onSelectPaymentType(i){this.paymentType=i}onSelectSavedCard(i){this.selectedSavedCardId=i}onApplyCoupon(i){this.bookingFacade.applyCoupon(i)}onClearCoupon(i){this.bookingFacade.clearCoupon(i)}onReturn(){this.bookingFacade.navigateToPrevStep(this.queryParams)}onSubmit(){var i,t,o,s,c,u,y;if(!this.pricingReady)return void this.alertDialogService.alert({message:[this.translate.instant("ERROR_OCCURRED"),this.translate.instant("ERROR_PRICE_UNAVAILABLE")]});if(this.checkForm(),null===(i=this.currentUser)||void 0===i?void 0:i.blockBooking)return void this.router.navigate([""]);const f=null===(t=this.paymentFormComp)||void 0===t?void 0:t.creditsForm;(null===(o=null==f?void 0:f.get("useCredits"))||void 0===o?void 0:o.value)&&(null===(s=null==f?void 0:f.get("creditsToPay"))||void 0===s?void 0:s.invalid)?this.alertDialogService.alert({message:[this.translate.instant("ERROR_OCCURRED"),this.translate.instant("ERROR_CREDIT_VALUE")]}).subscribe(()=>(0,b.eqR)(".booking-scroll-container","#creditsToPay")):this.bookAsMode!==v.AE.Existing||this.selectedBookingUser?this.isFormInvalid()?this.alertDialogService.alert({message:[this.translate.instant("ERROR_OCCURRED"),this.translate.instant("ERROR_REQUIRED")]}).subscribe(()=>(0,b.eqR)(".booking-scroll-container")):this.listingAgentOptional||0!==this.selectedListingAgents.length?this.hideTermsOfService||(null===(c=this.form.get("agreeToTerms"))||void 0===c?void 0:c.value)?((null===(u=this.bookingUser)||void 0===u?void 0:u.uid)&&this.selectedListingAgentsOption===v.CT.CoListing&&this.coreAppWriteApi.setLastUsedListingAgents(this.bookingUser.uid,this.selectedListingAgents.filter(T=>{var _;return T.uid!==(null===(_=this.bookingUser)||void 0===_?void 0:_.uid)})),this.bookingFacade.checkCouponValidity(this.coupon,(null===(y=this.bookingUser)||void 0===y?void 0:y.uid)||"").then(T=>T&&this.checkTimeslotAvailabilityAndProceed())):this.alertDialogService.alert({message:[this.translate.instant("ERROR_OCCURRED"),this.translate.instant("ERROR_TERMS")]}).subscribe(()=>(0,b.eqR)(".booking-scroll-container",".agree-to-terms")):this.alertDialogService.alert({message:[this.translate.instant("ERROR_OCCURRED"),this.translate.instant("ERROR_LISTING_AGENT")]}).subscribe(()=>{(0,b.eqR)(".booking-scroll-container",".listing-agents-header")}):this.alertDialogService.alert({message:[this.translate.instant("ERROR_OCCURRED"),this.translate.instant("ERROR_CUSTOMER")]}).subscribe(()=>(0,b.eqR)(".booking-scroll-container","tn-book-as-user"))}updateOrderAndProceed(){var i,t,o,s,c,u,y,f,T,_,N,L,M,j,w,z,V;const H=(null===(i=this.form.get("displayName"))||void 0===i?void 0:i.value)||"",q=`${this.formattedAddress} - ${H}`,ee=((null===(t=this.form.get("emailList"))||void 0===t?void 0:t.value)||[]).join(", "),te=null===(o=this.form.get("sendConfirmationEmail"))||void 0===o?void 0:o.value,ie=null===(s=this.form.get("sendConfirmationTextMessage"))||void 0===s?void 0:s.value,
1ne=null===(c=this.form.get("dontInviteCustomer"))||void 0===c?void 0:c.value,oe=this.bypassDeposit?0:(null===(f=null===(y=null===(u=this.paymentFormComp)||void 0===u?void 0:u.creditsForm)||void 0===y?void 0:y.get("creditsToPay"))||void 0===f?void 0:f.value)||0,ae=this.allOrderedSolutions.find(m=>m.enableWebsite),se=[this.selectedPackageName,this.formattedAddress,H].filter(Boolean).join(" - "),n={customerUid:(null===(T=this.bookingUser)||void 0===T?void 0:T.uid)||"",bookingFlow:{id:(null===(_=this.bookingFlow)||void 0===_?void 0:_.id)||"",name:(null===(N=this.bookingFlow)||void 0===N?void 0:N.name)||"",type:(0,b.WuM)(this.bookingFlow)},order_name:q,client_full_name:H,billed_to_name:(null===(L=this.bookingUser)||void 0===L?void 0:L.billedToName)||"",contact_notes:ee,calendarEvent:null,existing_contact:(null===(M=this.selectedMember)||void 0===M?void 0:M.displayName)||"",email:null===(j=this.form.get("email"))||void 0===j?void 0:j.value,phone_number:null===(w=this.form.get("phone"))||void 0===w?void 0:w.value,preferred_contact:this.preferredContactMethods,members:this.members,isWebsiteEnabled:!!ae,brokerage_code:null===(z=this.form.get("agentCode"))||void 0===z?void 0:z.value,order_notes:null===(V=this.form.get("orderNotes"))||void 0===V?void 0:V.value,packages:se,salesTax:this.salesTax,listingAgents:this.selectedListingAgents,dateCreated:Ie.Z.firestore.FieldValue.serverTimestamp(),deliverable_link:"",invoice_link:"",hideIntegratedPayment:!this.integratedPayment,invoice_amount:this.invoiceAmount,orderStatus:"pending",accountingSyncStatus:Q.mM.UNSYNCED,lockFilesUntilPaid:this.lockFilesUntilPaid,hideDeliveryPreviewSection:this.hideDeliveryPreviewSection},r={orderId:this.afs.createId(),user:this.bookingUser,selectedPackage:this.selectedPackage,solutions:this.allOrderedSolutions,moveOrderToInProgress:this.moveOrderToInProgress,reservedCalendarEvent:this.reservedCalendarEvent,sendConfirmationEmail:te,sendConfirmationTextMessage:ie,dontInviteCustomer:ne,bypassDeposit:this.bypassDeposit,tipAmount:this.tipAmount,paymentAmount:this.paymentAmount,creditsToPay:oe,squareLocationId:this.squareLocationId,enableStripe:this.enableStripe,description:n.packages,isStandalone:this.isStandalone};this.bookingOrderFacade.updateBookingOrder(n),this.bookingOrderFacade.storeBookingOrderState(),this.willCollectPayment?this.payAndSubmit(r):this.bookingOrderFacade.submitBookingOrder(r)}onStepSelect(i){this.bookingFacade.navigateToStep(i,this.queryParams)}onEditAddress(){this.bookingFacade.navigateToStep(v.$e.PropertyDetails,this.queryParams)}getPropertyGridColsClass(){const i=[!this.hideLine2Input,!this.hideSqFtInput,this.showAcreageInput].filter(Boolean).length;return i>0?`sm:grid-cols-${i}`:"hidden"}clearOrderSubmissionLoading(){this.bookingOrderFacade.setLoading(!1),this.snackBar.dismiss()}payAndSubmit(i){this.isTitusPayment?this.submitAndRedirectToTitus(i):this.enableStripe?this.getPaymentIntentAndSubmit(i):this.getTokenAndSubmit(i)}submitAndRedirectToTitus(i){var t;this.pendingTitusCheckout={project:this.buildTitusProject(),externalCustomerId:null===(t=this.bookingUser)||void 0===t?void 0:t.uid},this.bookingOrderFacade.submitBookingOrder(Object.assign(Object.assign({},i),{moveOrderToInProgress:!1,deferSuccessNavigation:!0}))}redirectToTitus({orderId:i,amountDue:t,depositAmount:o}){var s,c;this.bookingOrderFacade.clearSubmittedInvoice();const u=(0,I.MC)(null===(c=null===(s=this.pendingTitusCheckout)||void 0===s?void 0:s.project)||void 0===c?void 0:c.preferredPaymentMethod,{amountDue:t,depositAmount:o});u<=0?this.handleTitusCheckoutError(i):(this.redirectingToTitus=!0,this.paymentsTitusFacade.createCheckout(Object.assign(Object.assign({invoiceId:i,orderId:i,amount:u},this.pendingTitusCheckout),{returnPath:`/order-status/${i}`})).pipe((0,E.q)(1),(0,h.R)(this.destroy$)).subscribe({next:({checkoutUrl:y})=>this.paymentsTitusFacade.redirectToCheckout(y),error:()=>this.handleTitusCheckoutError(i)}))}buildTitusProject(){const i=this.propertyAddress,t=this.bookingUser;return{preferredPaymentMethod:(0,I.xI)(this.paymentType),address:{addressLine1:(null==i?void 0:i.street)||"",addressLine2:(null==i?void 0:i.line2)||"",city:(null==i?void 0:i.city)||"",state:(null==i?void 0:i.state)||"",zip:(null==i?void 0:i.zipcode)||""},contact:(null==t?void 0:t.displayName)||(null==t?void 0:t.email)||(null==t?void 0:t.phone)?Object.assign(Object.assign({},this.splitDisplayName(t.displayName)),{workEmail:t.email,phone:t.phone}):void 0}}splitDisplayName(i){const{firstName:t,middleName:o,lastName:s}=(0,Oe.parseName)(i||"");
1return{firstName:[t,o].filter(Boolean).join(" ")||void 0,lastName:s||void 0}}handleTitusCheckoutError(i){this.redirectingToTitus=!1,this.clearOrderSubmissionLoading(),this.alertDialogService.alert({message:[this.translate.instant("TITUS_CHECKOUT_ERROR")]}).subscribe(()=>this.router.navigate(["/order-status",i]))}getTokenAndSubmit(i){const t=parseFloat(i.paymentAmount);"0.00"===this.paymentAmount||t&&(i.creditsToPay!==t||i.tipAmount)?this.paymentsSquareFacade.getToken(this.paymentAmount).then(o=>{var s;this.paymentType!==W.XL.Ach?"OK"===(null==o?void 0:o.status)&&o.token?(i.token="0.00"===this.paymentAmount?void 0:o.token,this.bookingOrderFacade.submitBookingOrder(i)):(this.clearOrderSubmissionLoading(),this.alertDialogService.alert({message:[this.translate.instant("ERROR_OCCURRED"),(null===(s=null==o?void 0:o.errors)||void 0===s?void 0:s.length)?o.errors[0].message:this.translate.instant("ERROR_CONTACT_SUPPORT")]}).subscribe(()=>(0,b.eqR)(".booking-scroll-container",".sq-error, .ng-invalid.ng-touched"))):(0,k.aj)([this.paymentsSquareFacade.token$,this.paymentsSquareFacade.locationId$]).pipe((0,E.q)(1)).subscribe(([c,u])=>{c?(i.token="0.00"===this.paymentAmount?void 0:c,i.squareLocationId=u,this.bookingOrderFacade.submitBookingOrder(i)):this.clearOrderSubmissionLoading()})}):this.bookingOrderFacade.submitBookingOrder(Object.assign(Object.assign({},i),{payWithCreditsOnly:!0}))}getPaymentIntentAndSubmit(i){const t=parseFloat(i.paymentAmount);t&&(i.creditsToPay!==t||i.tipAmount)?this.paymentsStripeFacade.createPaymentIntent(i.orderId,t+i.tipAmount-i.creditsToPay,i.description).toPromise().then(o=>{i.paymentIntent=o,this.bookingOrderFacade.submitBookingOrder(i)},o=>{var s;this.bookingOrderFacade.setLoading(!1),this.snackBar.dismiss(),this.alertDialogService.alert({message:[this.translate.instant("ERROR_OCCURRED"),(null===(s=o.error)||void 0===s?void 0:s.message)||o.message]}),console.log(o)}):this.bookingOrderFacade.submitBookingOrder(i)}checkTimeslotAvailability(){(0,k.aj)([this.bookingFacade.checkTimeslotAvailability(),this.bookingFacade.checkTwilightTimeslotAvailability()]).pipe((0,E.q)(1)).subscribe(([i,t])=>{(!i||!t)&&this.resetExpiredTimeslots()})}checkTimeslotAvailabilityAndProceed(){var i,t,o;this.sessionRecorderService.track("Attempt Submit Order",{client_full_name:null===(i=this.bookingUser)||void 0===i?void 0:i.displayName,email:null===(t=this.bookingUser)||void 0===t?void 0:t.email,property_address:JSON.stringify(this.propertyAddress),uid:null===(o=this.bookingUser)||void 0===o?void 0:o.uid}),this.bookingOrderFacade.setLoading(!0),this.snackBar.open(this.translate.instant("ORDER_IS_PROCESSING"),"",{duration:1/0,verticalPosition:"bottom",horizontalPosition:"center"}),(0,k.aj)([this.bookingFacade.checkTimeslotAvailability(),this.bookingFacade.checkTwilightTimeslotAvailability()]).pipe((0,E.q)(1),(0,R.K)(()=>(this.alertDialogService.alert({message:[this.translate.instant("ERROR_OCCURRED"),this.translate.instant("ERROR_CONTACT_SUPPORT")]}),(0,A.of)([null,null])))).subscribe(([s,c])=>{s&&c?this.updateOrderAndProceed():(this.bookingOrderFacade.setLoading(!1),this.snackBar.dismiss()),(!1===s||!1===c)&&this.resetExpiredTimeslots()})}resetExpiredTimeslots(){this.schedulingService.showExpiredTimeslotAlert().subscribe(()=>{this.bookingOrderFacade.updateBookingOrder({date:0,scheduled_time:"",travels:[]}),this.bookingOrderFacade.updateSelectedTimeslot(null),this.bookingOrderFacade.updateTwilightSelectedTimeslot(null),this.bookingOrderFacade.updateScheduledDate(0),this.bookingOrderFacade.updateScheduledTwilightDate(0),this.bookingOrderFacade.updateScheduledTime(""),this.bookingOrderFacade.updateScheduledTwilightTime(""),this.bookingFacade.navigateToStep(v.$e.Scheduling)})}getOrganizationMembers(){this.bookingFacade.getOrganizationMembers().subscribe(i=>{this.organizationMembers=i})}getListingAgentsUser(){const i=this.form.get("displayName"),t=this.form.get("email"),o=this.form.get("phone");return i&&t&&o?(0,k.aj)([this.bookingUser$,i.valueChanges,t.valueChanges,o.valueChanges]).pipe((0,ge.b)(500),(0,U.x)(),(0,p.U)(([s,c,u,y])=>c&&u&&y?Object.assign(Object.assign({},s),{displayName:c,email:u,phone:y}):null)):(0,A.of)(null)}}return a.\u0275fac=function(i){return new(i||a)(e.\u0275\u0275directiveInject(G.gz),e.\u0275\u0275directiveInject($.e80),e.\u0275\u0275directiveInject(G.F0),e.\u0275\u0275directiveInject(C.qu),e.\u0275\u0275directiveInject(v.ge),e.\u0275\u0275directiveInject(v.YY),e.\u0275\u0275directiveInject(v.Ac),e.\u0275\u0275directiveInject(v.Re),e.\u0275\u0275directiveInject(I.nk),e.\u0275\u0275directiveInject(I.tX),e.\u0275\u0275directiveInject(I.YH),e.\u0275\u0275directiveInject(K.CtT),e.\u0275\u0275directiveInject($.X$O),e.\u0275\u0275directiveInject($._ZM),e.\u0275\u0275directiveInject($.ObY),e.\u0275\u0275directiveInject($.wul),e.\u0275\u0275directiveInject($.FJ4),e.\u0275\u0275directiveInject($.PjM),e.\u0275\u0275directiveInject(He.ST),e.\u0275\u0275directiveInject($.XPL),e.\u0275\u0275directiveInject(ke),e.\u0275\u0275directiveInject(Ce),e.\u0275\u0275directiveInject(D.sK),e.\u0275\u0275directiveInject(Ge.ux),e.\u0275\u0275directiveInject(I.W1),e.\u0275\u0275directiveInject($.p_o))}
1,a.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["tn-booking-feature-checkout"]],viewQuery:function(i,t){if(1&i&&e.\u0275\u0275viewQuery(pe.TS,5),2&i){let o;e.\u0275\u0275queryRefresh(o=e.\u0275\u0275loadQuery())&&(t.paymentFormComp=o.first)}},hostBindings:function(i,t){1&i&&e.\u0275\u0275listener("beforeunload",function(s){return t.onBeforeUnload(s)},!1,e.\u0275\u0275resolveWindow)},features:[e.\u0275\u0275ProvidersFeature([ke,Ce,I.W1])],decls:106,vars:193,consts:[[3,"loading","loadingMessage"],[1,"booking-scroll-container","h-full","overflow-auto",3,"ngClass"],["scrollContainer",""],[1,"mb-32",3,"title","organizationName","bookingFlow"],["uiSticky","",1,"sm:px-16",3,"classWhenSticky","triggerOn","scrollContainer"],[1,"bg-white","tabs-wrap"],[3,"steps","currentStep","progress","selectStep"],["id","sticky-trigger",1,"relative"],[1,"sm:px-16","pb-48","bg-gray-5"],[1,"w-full","min-h-full","px-8","sm:px-0","bg-white"],[3,"integratedPayment",4,"uiHasPermissions"],["class","banner-container pt-44",4,"ngIf"],[1,"flex","flex-col","sm:flex-row","justify-center","py-24"],[1,"w-full","justify-self-end","items-container",3,"formGroup"],[1,"pl-12",3,"uiCustomizableText"],["class","mt-12",3,"bookAsMode","selectedUser","bookAsModeChange","selectUser",4,"uiHasPermissions"],["class","mt-12",3,"bookAsMode","brokerageId","childBrokerageIds","selectedUser","bookAsModeChange","selectUser",4,"ngIf"],["class","mt-12",4,"ngIf"],[1,"pl-12","pt-24","listing-agents-header",3,"uiCustomizableText"],[1,"pl-12","pr-8","pt-min","text-14","text-gray-50","text-justify","leading-5"],["class","fr-formatted",3,"innerHTML",4,"ngIf"],["target","_blank",3,"href","uiCustomizableText",4,"ngIf"],[1,"mt-16"],[3,"value","change"],["class","pl-min pr-12 pt-8 w-full",3,"value",4,"ngFor","ngForOf"],[1,"block","mt-16",3,"authUser","agents","addEnabled","removeEnabled","updateLastUsedListingAgents","agentsChange"],[1,"pl-12","pt-24",3,"uiCustomizableText"],[1,"mt-12"],[3,"label","readonly","complete","value","title"],[3,"ngClass",4,"ngIf"],["class","sm:grid-cols-2",4,"ngIf"],["class","sm:grid-cols-2",4,"ngFor","ngForOf"],[4,"ngIf"],["class","mt-12 mb-24",4,"ngIf"],[4,"uiHasPermissions"],["class","checkbox-wrap agree-to-terms",4,"ngIf"],[1,"w-full","order-details-container"],["orderDetailsScrollContainer",""],["id","sticky-order-details-trigger",1,"relative"],["uiSticky","",1,"sm:ml-16",3,"classWhenSticky","top","zIndex","triggerOn","scrollContainer"],[1,"pl-12","hidden","sm:block"],[1,"mt-12",3,"proceedButtonText","allowAddress","allowReferralProgram","referralCreditAmount","propertyAddress","package","solutions","packagePrice","solutionPrice","totalPrice","travelFee","transactionFee","transactionFeeAmount","applySalesTax","isTaxInclusive","salesTax","taxAmount","discount","coupon","workDays","isProceedButtonDisabled","showPayAtClose","applyCoupon","clearCoupon","proceed","editAddress"],[3,"nextButtonText","isPrevDisabled","isNextDisabled","prev","next"],[3,"integratedPayment"],[1,"banner-container","pt-44"],[1,"mt-12",3,"bookAsMode","selectedUser","bookAsModeChange","selectUser"],[1,"mt-12",3,"bookAsMode","brokerageId","childBrokerageIds","selectedUser","bookAsModeChange","selectUser"],[1,"sm:grid-cols-2"],["formControlName","displayName","placeholder","Jane Doe",3,"label","readonly","complete"],["formControlName","phone",3,"label","readonly","complete",4,"ngIf"],["formControlName","phone",3,"label",4,"ngIf"],["formControlName","email","placeholder","[email protected]",3,"label","readonly","complete"],["formControlName","agentCode",3,"label","readonly","complete"],["formControlName","emailList","placeholder","[email protected]",3,"label","value","chipPattern"],["formControlName","phone",3,"label","readonly","complete"],["formControlName","phone",3,"label"],[1,"grid","gap-4","sm:grid-cols-4","p-min","bg-white","rounded"],[1,"sm:col-span-3","p-min","text-12","leading-4","text-red-50"],[1,"fr-formatted",3,"innerHTML"],["target","_blank",3,"href","uiCustomizableText"],[1,"pl-min","pr-12","pt-8","w-full",3,"value"],[3,"ngClass"],[3,"label","readonly","complete","value",4,"ngIf"],["mask","separator.2",3,"label","suffix","readonly","complete","value",4,"ngIf"],[3,"label","readonly","complete","value"],["mask","separator.2",3,"label","suffix","readonly","complete","value"],["class","pl-12 pt-min text-14 text-gray-50 leading-5",4,"ngIf"],[1,"mt-12",3,"coupon","allowReferralProgram","referralCreditAmount","apply","clear"],["class","mt-12",3,"isEnabled","isSaveCardEnabled","enableStripe","enableAch","paymentsProvider","showPayAtClose","enableTips","tipOptions","locationId","availableCredits","creditsUser","authUser","customerUid","isAuthUserCreditsOwner","totalAmount","amountToPay","amountDue","togglePayment","selectPaymentType","selectSavedCard","setTipAmount",4,"ngIf"],["class","mt-12",3,"isEnabled","isSaveCardEnabled","locationId","togglePayment","selectSavedCard",4,"ngIf"],["class","mt-12",3,"isEnabled","isSaveCardEnabled","togglePayment","selectSavedCard",4,"ngIf"],[1,"pl-12","pt-min","text-14","text-gray-50","leading-5"],[1,"mt-12",3,"isEnabled","isSaveCardEnabled","enableStripe","enableAch","paymentsProvider","showPayAtClose","enableTips","tipOptions","locationId","availableCredits","creditsUser","authUser","customerUid","isAuthUserCreditsOwner","totalAmount","amountToPay","amountDue","togglePayment","selectPaymentType","selectSavedCard","setTipAmount"],[1,"mt-12",3,"isEnabled","isSaveCardEnabled","locationId","togglePayment","selectSavedCard"],[1,"mt-12",3,"isEnabled","isSaveCardEnabled","togglePayment","selectSavedCard"],[1,"pl-12","pt-min","text-14","text-gray-50","leading-5",3,"uiCustomizableText"],[1,"mt-12","mb-24"],["formControlName","orderNotes"],[3,"label","placeholder","filteredUsers","selectedUser","search","selectUser"],[1,"toggle-wrap"],["formControlName","sendConfirmationEmail","color","primary",1,"mat-slide-toggle-v2",3,"disableRipple"],["class","toggle-wrap",4,"ngIf"],["formControlName","dontInviteCustomer","color","primary",1,"mat-slide-toggle-v2",3,"disableRipple"],["formControlName","sendConfirmationTextMessage","color","primary",1,"mat-slide-toggle-v2",3,"disableRipple"],[1,"checkbox-wrap","agree-to-terms"],["formControlName","agreeToTerms",1,"ml-8","my-min"],[3,"innerHTML"],["class","pl-32 pr-8 overflow-y-scroll terms-of-service py-8 mb-8 fr-formatted",3,"innerHTML",4,"ngIf"],[1,"pl-32","pr-8","overflow-y-scroll","terms-of-service","py-8","mb-8","fr-formatted",3,"innerHTML"]],template:function(i,t){if(1&i&&(e.\u0275\u0275elementStart(0,"ui-loading-wrapper",0),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275elementStart(4,"div",1,2),e.\u0275\u0275pipe(6,"async"),e.\u0275\u0275element(7,"tn-booking-header",3),e.\u0275\u0275pipe(8,"async"),e.\u0275\u0275elementStart(9,"div",4)(10,"div",5)(11,"ui-stepper-tabs",6),e.\u0275\u0275listener("selectStep",function(s){return t.onStepSelect(s)}),e.\u0275\u0275pipe(12,"async"),e.\u0275\u0275pipe(13,"async"),e.\u0275\u0275pipe(14,"async"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275element(15,"div",7),e.\u0275\u0275elementStart(16,"div",8)(17,"div",9),e.\u0275\u0275template(18,vt,1,1,"ui-payment-error-banner",10),e.\u0275\u0275template(19,ft,1,0,"tn-pay-at-close-banner",11),e.\u0275\u0275pipe(20,"async"),e.\u0275\u0275elementStart(21,"div",12)(22,"div",13)(23,"h2",14),e.\u0275\u0275text(24),e.\u0275\u0275pipe(25,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(26,yt,3,6,"tn-book-as-user",15),e.\u0275\u0275template(27,bt,5,12,"tn-book-as-user",16),e.\u0275\u0275pipe(28,"async"),e.\u0275\u0275template(29,Tt,17,28,"ui-form-group",17),e.\u0275\u0275elementStart(30,"h2",18),e.\u0275\u0275text(31),e.\u0275\u0275pipe(32,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(33,"p",19),e.\u0275\u0275template(34,$t,2,3,"span",20),e.\u0275\u0275pipe(35,"async"),e.\u0275\u0275template(36,At,4,7,"a",21),e.\u0275\u0275pipe(37,"async"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(38,"ui-form-group",22)(39,"ui-form-row")(40,"mat-radio-group",23),e.\u0275\u0275listener("change",function(s){return t.onListingAgentsOptionChange(s.value)}),e.\u0275\u0275pipe(41,"async"),e.\u0275\u0275template(42,Bt,2,2,"mat-radio-button",24),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(43,"ui-listing-agents-list",25),e.\u0275\u0275listener("agentsC
1hange",function(s){return t.onListingAgentsChange(s)}),e.\u0275\u0275pipe(44,"async"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(45,"h2",26),e.\u0275\u0275text(46),e.\u0275\u0275pipe(47,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(48,"ui-form-group",27)(49,"ui-form-row"),e.\u0275\u0275element(50,"ui-input",28),e.\u0275\u0275pipe(51,"async"),e.\u0275\u0275pipe(52,"translate"),e.\u0275\u0275pipe(53,"translate"),e.\u0275\u0275pipe(54,"async"),e.\u0275\u0275pipe(55,"async"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(56,Ft,4,4,"ui-form-row",29),e.\u0275\u0275pipe(57,"async"),e.\u0275\u0275template(58,xt,9,22,"ui-form-row",30),e.\u0275\u0275pipe(59,"async"),e.\u0275\u0275template(60,Pt,8,20,"ui-form-row",31),e.\u0275\u0275pipe(61,"async"),e.\u0275\u0275template(62,Ut,9,22,"ui-form-row",30),e.\u0275\u0275pipe(63,"async"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(64,jt,14,21,"ng-container",32),e.\u0275\u0275pipe(65,"async"),e.\u0275\u0275template(66,wt,10,8,"ng-container",32),e.\u0275\u0275template(67,zt,5,8,"ui-form-group",33),e.\u0275\u0275pipe(68,"async"),e.\u0275\u0275template(69,Ht,10,9,"ng-container",34),e.\u0275\u0275template(70,Wt,6,10,"div",35),e.\u0275\u0275pipe(71,"async"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(72,"div",36,37),e.\u0275\u0275element(74,"div",38),e.\u0275\u0275elementStart(75,"div",39)(76,"h2",40),e.\u0275\u0275text(77),e.\u0275\u0275pipe(78,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(79,"tn-order-details",41),e.\u0275\u0275listener("applyCoupon",function(s){return t.onApplyCoupon(s)})("clearCoupon",function(s){return t.onClearCoupon(s)})("proceed",function(){return t.onSubmit()})("editAddress",function(){return t.onEditAddress()}),e.\u0275\u0275pipe(80,"translate"),e.\u0275\u0275pipe(81,"async"),e.\u0275\u0275pipe(82,"async"),e.\u0275\u0275pipe(83,"async"),e.\u0275\u0275pipe(84,"async"),e.\u0275\u0275pipe(85,"async"),e.\u0275\u0275pipe(86,"async"),e.\u0275\u0275pipe(87,"async"),e.\u0275\u0275pipe(88,"async"),e.\u0275\u0275pipe(89,"async"),e.\u0275\u0275pipe(90,"async"),e.\u0275\u0275pipe(91,"async"),e.\u0275\u0275pipe(92,"async"),e.\u0275\u0275pipe(93,"async"),e.\u0275\u0275pipe(94,"async"),e.\u0275\u0275pipe(95,"async"),e.\u0275\u0275pipe(96,"async"),e.\u0275\u0275pipe(97,"async"),e.\u0275\u0275pipe(98,"async"),e.\u0275\u0275pipe(99,"async"),e.\u0275\u0275pipe(100,"async"),e.\u0275\u0275pipe(101,"async"),e.\u0275\u0275elementEnd()()()()()()(),e.\u0275\u0275elementStart(102,"tn-booking-footer",42),e.\u0275\u0275listener("prev",function(){return t.onReturn()})("next",function(){return t.onSubmit()}),e.\u0275\u0275pipe(103,"translate"),e.\u0275\u0275pipe(104,"async"),e.\u0275\u0275pipe(105,"async"),e.\u0275\u0275elementEnd()()),2&i){const o=e.\u0275\u0275reference(5),s=e.\u0275\u0275reference(73);e.\u0275\u0275property("loading",t.redirectingToTitus||e.\u0275\u0275pipeBind1(1,78,t.accountLoading$))("loadingMessage",t.redirectingToTitus?e.\u0275\u0275pipeBind1(2,80,"TITUS_REDIRECT_LOADING"):e.\u0275\u0275pipeBind1(3,82,t.accountStatusMsg$)),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(188,Qt,e.\u0275\u0275pipeBind1(6,84,t.bookingDataLoading$))),e.\u0275\u0275advance(3),e.\u0275\u0275property("title","ORDER_INFO")("organizationName",t.organizationName)("bookingFlow",e.\u0275\u0275pipeBind1(8,86,t.bookingFlow$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("classWhenSticky","sticky-tabs")("triggerOn","sticky-trigger")("scrollContainer",o),e.\u0275\u0275advance(2),e.\u0275\u0275property("steps",e.\u0275\u0275pipeBind1(12,88,t.steps$))("currentStep",e.\u0275\u0275pipeBind1(13,90,t.bookingStep$))("progress",e.\u0275\u0275pipeBind1(14,92,t.bookingProgress$)),e.\u0275\u0275advance(7),e.\u0275\u0275property("uiHasPermissions",e.\u0275\u0275pureFunction0(190,Jt)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(20,94,t.canPayAtClose$)),e.\u0275\u0275advance(3),e.\u0275\u0275property("formGroup",t.form),e.\u0275\u0275advance(1),e.\u0275\u0275property("uiCustomizableText","ADD_CONTACT"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(25,96,"ADD_CONTACT")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("uiHasPermissions",e.\u0275\u0275pureFunction0(191,Se)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(28,98,t.allowBookAsBrokerage$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.isContactFormShown()),e.\u0275\u0275advance(1),e.\u0275\u0275property("uiCustomizableText","LISTING_AGENTS_BRANDING"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(32,100,"LISTING_AGENTS_BRANDING")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(35,102,t.listingAgentsDescription$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(37,104,t.brandingSamplesLink$)),e.\u0275\u0275advance(4),e.\u0275\u0275property("value",e.\u0275\u0275pipeBind1(41,106,t.selectedListingAgentsOption$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.listingAgentsOptions),e.\u0275\u0275advance(1),e.\u0275\u0275property("authUser",t.currentUser)("agents",e.\u0275\u0275pipeBind1(44,108,t.selectedListingAgents$))("addEnabled",t.isAddRemoveAgentsEnabled())("removeEnabled",t.isAddRemoveAgentsEnabled())("updateLastUsedListingAgents",!!t.selectedBookingUser),e.\u0275\u0275advance(2),e.\u0275\u0275property("uiCustomizableText","CONFIRMED_ADDRESS_AND_DATA"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(47,110,"CONFIRMED_ADDRESS_AND_DATA")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("label",e.\u0275\u0275pipeBind1(51,112,t.isPropertyBookingFlowType$)?e.\u0275\u0275pipeBind1(52,114,"PROPERTY_ADDRESS"):e.\u0275\u0275pipeBind1(53,116,"PHOTOSHOOT_ADDRESS"))("readonly",!0)("complete",!0)("value",e.\u0275\u0275pipeBind1(54,118,t.propertyFormattedAddress$))("title",e.\u0275\u0275pipeBind1(55,120,t.propertyFormattedAddress$)),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(57,122,t.isPropertyBookingFlowType$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(59,124,t.displayDate$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pipeBind1(61,126,t.dis
1playSeparateDate$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(63,128,t.displayTwilightDate$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(65,130,t.isPaymentAvailable$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.hideClientPreferences),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!1===e.\u0275\u0275pipeBind1(68,132,t.hideExistingContact$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("uiHasPermissions",e.\u0275\u0275pureFunction0(192,Se)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!1===e.\u0275\u0275pipeBind1(71,134,t.hideTermsOfService$)),e.\u0275\u0275advance(5),e.\u0275\u0275property("classWhenSticky","sticky-order-details")("top",64)("zIndex",9)("triggerOn","sticky-order-details-trigger")("scrollContainer",s),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(78,136,"ORDER_DETAILS")),e.\u0275\u0275advance(2),e.\u0275\u0275property("proceedButtonText",e.\u0275\u0275pipeBind1(80,138,"SUBMIT_ORDER"))("allowAddress",!1===e.\u0275\u0275pipeBind1(81,140,t.isBrandingBookingFlowType$))("allowReferralProgram",e.\u0275\u0275pipeBind1(82,142,t.enableReferralProgram$))("referralCreditAmount",e.\u0275\u0275pipeBind1(83,144,t.referralCreditAmount$))("propertyAddress",e.\u0275\u0275pipeBind1(84,146,t.propertyAddress$))("package",e.\u0275\u0275pipeBind1(85,148,t.selectedPackage$))("solutions",e.\u0275\u0275pipeBind1(86,150,t.selectedSolutions$))("packagePrice",e.\u0275\u0275pipeBind1(87,152,t.packagePrice$))("solutionPrice",e.\u0275\u0275pipeBind1(88,154,t.quotedSolutionPrice$))("totalPrice",e.\u0275\u0275pipeBind1(89,156,t.totalPrice$))("travelFee",e.\u0275\u0275pipeBind1(90,158,t.quotedTravelFee$))("transactionFee",e.\u0275\u0275pipeBind1(91,160,t.transactionFee$))("transactionFeeAmount",e.\u0275\u0275pipeBind1(92,162,t.transactionFeeAmount$))("applySalesTax",e.\u0275\u0275pipeBind1(93,164,t.applySalesTax$))("isTaxInclusive",e.\u0275\u0275pipeBind1(94,166,t.isTaxInclusive$))("salesTax",e.\u0275\u0275pipeBind1(95,168,t.salesTax$))("taxAmount",e.\u0275\u0275pipeBind1(96,170,t.taxAmount$))("discount",e.\u0275\u0275pipeBind1(97,172,t.discount$))("coupon",e.\u0275\u0275pipeBind1(98,174,t.coupon$))("workDays",e.\u0275\u0275pipeBind1(99,176,t.workDays$))("isProceedButtonDisabled",e.\u0275\u0275pipeBind1(100,178,t.submitDisabled$))("showPayAtClose",e.\u0275\u0275pipeBind1(101,180,t.canPayAtClose$)),e.\u0275\u0275advance(23),e.\u0275\u0275property("nextButtonText",e.\u0275\u0275pipeBind1(103,182,t.submitButtonText))("isPrevDisabled",e.\u0275\u0275pipeBind1(104,184,t.loading$))("isNextDisabled",e.\u0275\u0275pipeBind1(105,186,t.submitDisabled$))}},directives:[_e.G,P.NgClass,Ye.j,We.z,Qe.v,Je.z,Ke.y,P.NgIf,Xe.g,C.JL,C.sg,Ze.v,qe.w,fe.H,ye.L,be.a,C.JJ,C.u,et.T,tt.k,J.VQ,P.NgForOf,J.U0,it.W,nt.f,ot.C,at.T,st.Y,rt.e,lt.R,dt._,pt.Rr,ct.oG,ut.n,mt.N],pipes:[P.AsyncPipe,D.X$,ht.z,b.FjN,gt.B,b._ab],styles:["[_nghost-%COMP%]{position:relative;display:block;height:100%}.toggle-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1));padding:.25rem .75rem .25rem .25rem;margin-top:1px}.checkbox-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1));padding:.25rem .75rem .25rem .25rem;margin-top:1px}[_nghost-%COMP%]     ui-phone-input label{line-height:10px!important}.terms-of-service[_ngcontent-%COMP%]{max-height:256px}"]}),a})(),canDeactivate:[v.m3]}];let qt=(()=>{class a{}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.\u0275\u0275defineNgModule({type:a}),a.\u0275inj=e.\u0275\u0275defineInjector({providers:[],imports:[[P.CommonModule,G.Bz.forChild(Zt),K.eYi,Ae.g,pe.aM,$e.HE,C.u5,K.khq,D.aw,J.Fk]]}),a})()}}]);

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.