1"use strict";(self.webpackChunktonomo=self.webpackChunktonomo||[]).push([[2591],{30511:(b,p,o)=>{o.r(p),o.d(p,{SchedulingFeatureLocationModule:()=>L});var l=o(69808),m=o(74202),u=o(47403),h=o(38612),f=o(96410),v=o(36053),F=o(24850),y=o(92198),g=o(71545),t=o(5e3),S=o(14912),x=o(58594),C=o(10594);function _(a,d){if(1&a){const e=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div",1)(2,"div",2)(3,"h2",3),t.\u0275\u0275text(4,"Location"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"tn-property-details",4,5),t.\u0275\u0275listener("manualEdit",function(r){const i=t.\u0275\u0275restoreView(e).ngIf;return t.\u0275\u0275nextContext().onManualEdit(r,i.bookingFlow)})("update",function(r){const i=t.\u0275\u0275restoreView(e).ngIf;return t.\u0275\u0275nextContext().onUpdatePropertyDetails(r,i.order,i.manualPropertyAddress)})("clear",function(){return t.\u0275\u0275restoreView(e),t.\u0275\u0275nextContext().onClearPropertyDetails()}),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(7,"tn-scheduler-flow-footer",6),t.\u0275\u0275listener("prev",function(){return t.\u0275\u0275restoreView(e),t.\u0275\u0275nextContext().onPrev()})("next",function(){return t.\u0275\u0275restoreView(e),t.\u0275\u0275nextContext().onNext()}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementContainerEnd()}if(2&a){const e=d.ngIf,n=t.\u0275\u0275reference(6);t.\u0275\u0275advance(5),t.\u0275\u0275property("bookingOrder",e.order)("manualPropertyAddress",e.manualPropertyAddress)("customLook",!1)("nextButtonShown",!1)("bookingFlow",e.bookingFlow),t.\u0275\u0275advance(2),t.\u0275\u0275property("isPrevDisabled",e.dataLoading)("isNextDisabled",e.dataLoading||!(null!=n&&n.isAddressSelected)||"branding"!==(null==e.bookingFlow?null:e.bookingFlow.type)&&!(null!=e.bookingFlow&&e.bookingFlow.hideSqFtInput)&&!(null!=n&&n.isSqFootageSelected))}}const O=[{path:"",pathMatch:"full",component:(()=>{class a{constructor(e,n,r){this.route=e,this.createOrderFacade=n,this.manualPropertyAddressDialogService=r,this.initSubscriptions()}ngOnInit(){this.createOrderFacade.updateStep(g._V.Location),this.createOrderFacade.init()}initSubscriptions(){this.vm$=(0,v.aj)([this.createOrderFacade.bookingFlow$,this.createOrderFacade.order$,this.createOrderFacade.dataLoading$,this.createOrderFacade.manualPropertyAddress$]).pipe((0,F.U)(([e,n,r,c])=>({bookingFlow:e,order:n,dataLoading:r,manualPropertyAddress:c})))}get queryParams(){return this.route.snapshot.queryParams}onManualEdit(e,n){this.manualPropertyAddressDialogService.openDialog(e,n).pipe((0,y.h)(Boolean)).subscribe(r=>{this.createOrderFacade.updateManualPropertyAddress(r),this.createOrderFacade.fetchEnergyCertificate()})}onUpdatePropertyDetails(e,n,r){var c,i;const s=null===(c=null==e?void 0:e.property_address)||void 0===c?void 0:c.formatted_address,P=Object.assign(Object.assign({},e),{order_name:s?`${s} - ${n.client_full_name}`:"Order"});this.createOrderFacade.updateOrder(P),this.createOrderFacade.updateManualPropertyAddress(r?Object.assign(Object.assign({},r),{propertySquareFootage:(null==e?void 0:e.property_square_footage)||"",acreage:(null==e?void 0:e.acreage)||"",line2:(null===(i=e.property_address)||void 0===i?void 0:i.line2)||""}):null),this.createOrderFacade.fetchEnergyCertificate()}onClearPropertyDetails(){this.createOrderFacade.resetPropertyDetails()}onPrev(){this.propertyDetails.submitPropertyDetails()&&this.createOrderFacade.createOrder()}onNext(){this.propertyDetails.submitPropertyDetails()&&this.createOrderFacade.navigateToNextStep(this.queryParams)}}return a.\u0275fac=function(e){return new(e||a)(t.\u0275\u0275directiveInject(m.gz),t.\u0275\u0275directiveInject(g.q$),t.\u0275\u0275directiveInject(u.O5))},a.\u0275cmp=t.\u0275\u0275defineComponent({type:a,selectors:[["ng-component"]],viewQuery:function(e,n){if(1&e&&t.\u0275\u0275viewQuery(u.Gx,5),2&e){let r;t.\u0275\u0275queryRefresh(r=t.\u0275\u0275loadQuery())&&(n.propertyDetails=r.first)}},decls:3,vars:3,consts:[[4,"ngIf"],[1,"order-step-container"],[1,"order-step-content"],[1,"pl-12"],[3,"bookingOrder","manualPropertyAddress","customLook","nextButtonShown","bookingFlow","manualEdit","update","clear"],["address",""],["prevButtonText","Skip & select time slot on calendar",3,"isPrevDisabled","isNextDisabled","prev","next"]],template:function(e,n){1&e&&(t.\u0275\u0275element(0,"tn-scheduler-flow-header"),t.\u0275\u0275template(1,_,8,7,"ng-container",0),t.\u0275\u0275pipe(2,"async")),2&e&&(t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(2,1,n.vm$)))},directives:[S.l,l.NgIf,x.G,C.r],pipes:[l.AsyncPipe],styles:[""]}),a})()}];let L=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.\u0275\u0275defineNgModule({type:a}),a.\u0275inj=t.\u0275\u0275defineInjector({imports:[[l.CommonModule,m.Bz.forChild(O),f.eYi,u.HE,h.vr]]}),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.