1"use strict";(self.webpackChunkyumapos_web_client_mobile=self.webpackChunkyumapos_web_client_mobile||[]).push([[7820],{27820(B,r,t){t.r(r),t.d(r,{DialogAddNewAddressComponent:()=>O});var m=t(60177),e=t(35547),l=t(85802),i=t(34006),p=t(9183),c=t(68018),g=t(86884),D=t(67788),f=t(13810),M=t(44162),A=t(47269),E=t(95498),u=t(7919),C=t(85988);function T(a,d){}function v(a,d){if(1&a){const s=e.RV6();e.j41(0,"yp-address-selection-yandex-maps",5),e.bIt("addressSelected",function(_){l.eBV(s);const o=e.XpG();return l.Njj(o.saveAddress(_))}),e.k0s()}if(2&a){const s=e.XpG();e.Y8G("defaultMapCenter",s.matDialogData.defaultMapCenter)("deliveryZones",s.matDialogData.deliveryZones)}}function y(a,d){if(1&a){const s=e.RV6();e.j41(0,"yp-address-selection-google-maps",5),e.bIt("addressSelected",function(_){l.eBV(s);const o=e.XpG();return l.Njj(o.saveAddress(_))}),e.k0s()}if(2&a){const s=e.XpG();e.Y8G("defaultMapCenter",s.matDialogData.defaultMapCenter)("deliveryZones",s.matDialogData.deliveryZones)}}function R(a,d){1&a&&(e.j41(0,"div",6),e.nrm(1,"yp-dialog-header"),e.j41(2,"div",7),e.nrm(3,"mat-spinner"),e.k0s()())}function P(a,d){1&a&&(e.j41(0,"div",6),e.nrm(1,"yp-dialog-header"),e.j41(2,"div",8),e.EFF(3),e.nI1(4,"translate"),e.k0s()()),2&a&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"ERRORS.MAP_UNAVAILABLE")," "))}let O=(()=>{class a{constructor(){this.matDialogData=(0,l.WQX)(i.Vh),this.matDialogRef=(0,l.WQX)(i.CP),this.authenticationService=(0,l.WQX)(D.k),(0,f.De)(!(0,m.Vy)((0,l.WQX)(e.Agw)))}saveAddress(s){this.authenticationService.addCustomerAddress(s,g.Q.fullScreen).subscribe(n=>{n.type===M.I.addCustomerAddressSuccess.type?this.matDialogRef.close({addedCustomerAddress:n.customerAddress}):this.matDialogRef.close()})}closeModal(){this.matDialogRef.close()}static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["yp-dialog-add-new-address"]],decls:9,vars:4,consts:[["yandexMapsTemplateRef",""],["googleMapsTemplateRef",""],["loadingTemplateRef",""],["errorTemplateRef",""],[3,"ypMapsLoader","yandexMapsTemplate","googleMapsTemplate","loadingTemplate","errorTemplate"],[3,"addressSelected","defaultMapCenter","deliveryZones"],[1,"h-100","d-flex","flex-column"],[1,"flex-grow-1","d-flex","flex-column","align-items-center","justify-content-center"],[1,"flex-grow-1","d-flex","flex-column","align-items-center","justify-content-center","fs-7",2,"background","var(--yp-body-bg-shift1)"]],template:function(n,_){if(1&n&&e.DNE(0,T,0,0,"ng-template",4)(1,v,1,2,"ng-template",null,0,e.C5r)(3,y,1,2,"ng-template",null,1,e.C5r)(5,R,4,0,"ng-template",null,2,e.C5r)(7,P,5,3,"ng-template",null,3,e.C5r),2&n){const o=e.sdS(2),x=e.sdS(4),h=e.sdS(6),I=e.sdS(8);e.Y8G("yandexMapsTemplate",o)("googleMapsTemplate",x)("loadingTemplate",h)("errorTemplate",I)}},dependencies:[A.M,u.M,E.s,C.B,p.LG,c.D9],encapsulation:2,changeDetection:0})}}return 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.