1"use strict";(self.webpackChunkyumapos_web_client_mobile=self.webpackChunkyumapos_web_client_mobile||[]).push([[2671],{2671(M,_,t){t.r(_),t.d(_,{DialogStoreSelectionComponent:()=>u});var o=t(85802),d=t(89079),l=t(34006),c=t(77339),E=t(59640),h=t(52906),g=t(96354),S=t(15307),D=t(28934),C=t(15011),s=t(49668),n=t(35547);let u=(()=>{class a{constructor(){this.dialogData=(0,o.WQX)(l.Vh),this.matDialogRef=(0,o.WQX)(l.CP),this.store=(0,o.WQX)(E.il),this.actions$=(0,o.WQX)(c.En),this.subSinkService=(0,o.WQX)(D.z,{self:!0}),this.tenant=(0,o.WQX)(S.$),this.tenant.bitSettingsDecoded.mainStoreMode||this.matDialogRef.afterOpened().pipe((0,d.pQ)()).subscribe(()=>{this.store.dispatch(s.b.renderStoresListForSeo())})}selectStore(i){this.tenant.bitSettingsDecoded.mainStoreMode?(this.subSinkService.sink=this.actions$.pipe((0,c.gp)(s.b.setCurrentStoreSuccess,s.b.setCurrentStoreFailure),(0,h.$)(),(0,g.T)(e=>e.type===s.b.setCurrentStoreSuccess.type)).subscribe(e=>{e&&this.matDialogRef.close({store:i})}),this.store.dispatch(s.b.setCurrentStore(i.storeId))):(this.store.dispatch(s.b.changeCurrentStore(i,this.dialogData.navigateToShopRoot)),this.matDialogRef.close({store:i}))}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275cmp=n.VBU({type:a,selectors:[["yp-dialog-store-selection"]],features:[n.Jv_([D.z])],decls:1,vars:3,consts:[[3,"storeChanged","showDialogControls","brandsSelectionIfConfigured","storeSelectionRequired"]],template:function(e,r){1&e&&(n.j41(0,"yp-store-selection",0),n.bIt("storeChanged",function(f){return r.selectStore(f)}),n.k0s()),2&e&&n.Y8G("showDialogControls",!0)("brandsSelectionIfConfigured",r.dialogData.brandsSelectionIfConfigured)("storeSelectionRequired",r.dialogData.storeSelectionRequired)},dependencies:[C.f],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.