dealposbarcode 25.41.0 → 25.41.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{b as N,e as $,f as z,g as A,i as k}from"./chunk-HUZ3GSHV.js";import"./chunk-3HVQWFM3.js";import"./chunk-MSLVFLMV.js";import"./chunk-ZXJAPDJT.js";import{da as H,l as I,n as B,r as q}from"./chunk-MCHSQWDB.js";import{Ad as F,C as u,Da as i,Ec as b,Ha as P,I as C,J as v,Kb as w,Nc as R,Rb as S,Vb as a,Xa as _,Z as g,a as h,b as f,ec as D,fc as T,gc as c,hc as s,ic as p,rd as x,sd as M,ta as y,td as E,zb as d}from"./chunk-YB6XMFOT.js";function L(t,m){t&1&&(s(0),c(1,"choose-product"),p())}function O(t,m){if(t&1&&c(0,"app-barcode-preview",4),t&2){let e=m.$implicit;a("items",e)}}function U(t,m){t&1&&(s(0),D(1,"app-customize-label"),S(2,O,1,1,"ng-template",null,0,R),T(),p())}function V(t,m){t&1&&(s(0),c(1,"app-print-preview"),p())}var se=(()=>{class t{constructor(){this.storeService=i(N),this.httpService=i(H),this.destroyRef=i(_),this.routes=i(I),this.router=i(B),this.step=w(0)}get printMode(){let e=this.routes.snapshot.queryParamMap.get("printMode");return console.log("printMode",e),e}ngOnInit(){this.storeService.onReset(),console.log(localStorage.getItem("Domain"))}ngAfterViewInit(){let e=this.getHostFromDomain();this.loadInitialData(e)}getHostFromDomain(){let e=localStorage.getItem("Domain");return e?this.hasProtocol(e)?new URL(e).hostname:e:null}hasProtocol(e){return/^(https?):\/\//.test(e)}loadInitialData(e){if(!e){console.warn("No domain found in localStorage");return}let o=this.httpService.post("api/Config/PaperConfig",{SubDomain:e}).pipe(g(n=>u({error:n}))),r=this.httpService.get("/API/V3/Tax",void 0,`https://${e}`).pipe(g(n=>u({error:n})));v([o,r]).pipe(q(this.destroyRef),C(([n,l])=>this.normalizeResponses(n,l)),y(({paperConfig:n,taxs:l})=>this.applyDataToStore(n,l))).subscribe()}normalizeResponses(e,o){let r=n=>n&&"error"in n;return{paperConfig:r(e)?null:e,taxs:r(o)?null:o}}applyDataToStore(e,o){e&&(this.storeService.onChangePaperConfig(f(h({},e),{PaperFormats:e.PaperFormats.map(r=>f(h({},r),{OutletID:null}))})),e.PaperFormats.length>0&&this.storeService.onChangePaperConfiguration(e.PaperFormats[0])),o&&this.storeService.onChangeTaxs(o)}onNext(){if(this.step()>=3){console.warn("Maximum step reached, cannot proceed further.");return}this.router.navigate([],{relativeTo:this.routes,queryParams:{step:this.step()+1},queryParamsHandling:"merge"})}onPrevious(){if(this.step()<=1){console.warn("Already at the first step, cannot go back.");return}this.router.navigate([],{relativeTo:this.routes,queryParams:{step:this.step()-1},queryParamsHandling:"merge"})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-shelf-barcode"]],standalone:!0,features:[b],decls:4,vars:3,consts:[["content",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"items"]],template:function(o,r){o&1&&(s(0,1),S(1,L,2,0,"ng-container",2)(2,U,4,0,"ng-container",2)(3,V,2,0,"ng-container",3),p()),o&2&&(a("ngSwitch",r.storeService.stepper$().state),d(),a("ngSwitchCase",0),d(),a("ngSwitchCase",1))},dependencies:[$,F,x,M,E,A,z,k],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{se as ShelfBarcodeComponent};
1
+ import{b as N,e as $,f as z,g as A,i as k}from"./chunk-GOX6X2HS.js";import"./chunk-3HVQWFM3.js";import"./chunk-MSLVFLMV.js";import"./chunk-ELVIF57Z.js";import{da as H,l as I,n as B,r as q}from"./chunk-MCHSQWDB.js";import{Ad as F,C as u,Da as i,Ec as b,Ha as P,I as C,J as v,Kb as w,Nc as R,Rb as S,Vb as a,Xa as _,Z as g,a as h,b as f,ec as D,fc as T,gc as c,hc as s,ic as p,rd as x,sd as M,ta as y,td as E,zb as d}from"./chunk-YB6XMFOT.js";function L(t,m){t&1&&(s(0),c(1,"choose-product"),p())}function O(t,m){if(t&1&&c(0,"app-barcode-preview",4),t&2){let e=m.$implicit;a("items",e)}}function U(t,m){t&1&&(s(0),D(1,"app-customize-label"),S(2,O,1,1,"ng-template",null,0,R),T(),p())}function V(t,m){t&1&&(s(0),c(1,"app-print-preview"),p())}var se=(()=>{class t{constructor(){this.storeService=i(N),this.httpService=i(H),this.destroyRef=i(_),this.routes=i(I),this.router=i(B),this.step=w(0)}get printMode(){let e=this.routes.snapshot.queryParamMap.get("printMode");return console.log("printMode",e),e}ngOnInit(){this.storeService.onReset(),console.log(localStorage.getItem("Domain"))}ngAfterViewInit(){let e=this.getHostFromDomain();this.loadInitialData(e)}getHostFromDomain(){let e=localStorage.getItem("Domain");return e?this.hasProtocol(e)?new URL(e).hostname:e:null}hasProtocol(e){return/^(https?):\/\//.test(e)}loadInitialData(e){if(!e){console.warn("No domain found in localStorage");return}let o=this.httpService.post("api/Config/PaperConfig",{SubDomain:e}).pipe(g(n=>u({error:n}))),r=this.httpService.get("/API/V3/Tax",void 0,`https://${e}`).pipe(g(n=>u({error:n})));v([o,r]).pipe(q(this.destroyRef),C(([n,l])=>this.normalizeResponses(n,l)),y(({paperConfig:n,taxs:l})=>this.applyDataToStore(n,l))).subscribe()}normalizeResponses(e,o){let r=n=>n&&"error"in n;return{paperConfig:r(e)?null:e,taxs:r(o)?null:o}}applyDataToStore(e,o){e&&(this.storeService.onChangePaperConfig(f(h({},e),{PaperFormats:e.PaperFormats.map(r=>f(h({},r),{OutletID:null}))})),e.PaperFormats.length>0&&this.storeService.onChangePaperConfiguration(e.PaperFormats[0])),o&&this.storeService.onChangeTaxs(o)}onNext(){if(this.step()>=3){console.warn("Maximum step reached, cannot proceed further.");return}this.router.navigate([],{relativeTo:this.routes,queryParams:{step:this.step()+1},queryParamsHandling:"merge"})}onPrevious(){if(this.step()<=1){console.warn("Already at the first step, cannot go back.");return}this.router.navigate([],{relativeTo:this.routes,queryParams:{step:this.step()-1},queryParamsHandling:"merge"})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-shelf-barcode"]],standalone:!0,features:[b],decls:4,vars:3,consts:[["content",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"items"]],template:function(o,r){o&1&&(s(0,1),S(1,L,2,0,"ng-container",2)(2,U,4,0,"ng-container",2)(3,V,2,0,"ng-container",3),p()),o&2&&(a("ngSwitch",r.storeService.stepper$().state),d(),a("ngSwitchCase",0),d(),a("ngSwitchCase",1))},dependencies:[$,F,x,M,E,A,z,k],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{se as ShelfBarcodeComponent};
@@ -1 +1 @@
1
- import{b as z,e as k,g as A,h as H,i as O}from"./chunk-HUZ3GSHV.js";import"./chunk-3HVQWFM3.js";import"./chunk-MSLVFLMV.js";import"./chunk-ZXJAPDJT.js";import{da as N,l as E,r as F}from"./chunk-MCHSQWDB.js";import{Ad as R,C as d,Da as l,Ec as T,Ha as S,I as _,J as u,Nc as I,Rb as f,Vb as a,Xa as v,Z as g,ac as b,cc as y,dc as w,ec as D,fc as L,gc as p,hc as s,ic as m,qd as P,rd as x,sd as $,ta as C,td as M,zb as c}from"./chunk-YB6XMFOT.js";function U(t,i){t&1&&(s(0),p(1,"choose-product"),m())}function V(t,i){t&1&&p(0,"div",7)}function j(t,i){if(t&1&&(p(0,"app-label-preview",5),f(1,V,1,0,"div",6)),t&2){let e=i.$implicit,n=i.$index,r=i.$count;a("item",e),c(),a("ngIf",n!==r-1)}}function q(t,i){if(t&1&&y(0,j,2,2,null,null,b),t&2){let e=i.$implicit;w(e)}}function B(t,i){t&1&&(s(0),D(1,"app-customize-label",4),f(2,q,2,0,"ng-template",null,0,I),L(),m())}function G(t,i){t&1&&(s(0),p(1,"app-print-preview"),m())}var pe=(()=>{class t{constructor(){this.store=l(z),this.httpService=l(N),this.destroyRef=l(v),this.routes=l(E)}get printMode(){let e=this.routes.snapshot.queryParamMap.get("printMode");return console.log("printMode",e),e}ngOnInit(){this.store.onReset(),console.log(localStorage.getItem("Domain"))}ngAfterViewInit(){let e=this.getHostFromDomain();this.loadInitialData(e)}getHostFromDomain(){let e=localStorage.getItem("Domain");return e?this.hasProtocol(e)?new URL(e).hostname:e:null}hasProtocol(e){return/^(https?):\/\//.test(e)}loadInitialData(e){if(!e){console.warn("No domain found in localStorage");return}let n=this.httpService.post("api/ConfigShelf/PaperConfig",{SubDomain:e}).pipe(g(o=>d({error:o}))),r=this.httpService.get("/API/V3/Tax",void 0,`https://${e}`).pipe(g(o=>d({error:o})));u([n,r]).pipe(F(this.destroyRef),_(([o,h])=>this.normalizeResponses(o,h)),C(({paperConfig:o,taxs:h})=>this.applyDataToStore(o,h))).subscribe()}normalizeResponses(e,n){let r=o=>o&&"error"in o;return{paperConfig:r(e)?null:e,taxs:r(n)?null:n}}applyDataToStore(e,n){e&&this.store.onChangeShelfLabelConfig(e),n&&this.store.onChangeTaxs(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-shelf-label"]],standalone:!0,features:[T],decls:4,vars:3,consts:[["content",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["sidebarConfig","label"],[3,"item"],["class","divider",4,"ngIf"],[1,"divider"]],template:function(n,r){n&1&&(s(0,1),f(1,U,2,0,"ng-container",2)(2,B,4,0,"ng-container",2)(3,G,2,0,"ng-container",3),m()),n&2&&(a("ngSwitch",r.store.stepper$().state),c(),a("ngSwitchCase",0),c(),a("ngSwitchCase",1))},dependencies:[k,A,O,R,P,x,$,M,H],styles:["[_nghost-%COMP%]{display:block}.divider[_ngcontent-%COMP%]{border:1px dashed #000;width:100%}"],changeDetection:0})}}return t})();export{pe as ShelfLabelComponent};
1
+ import{b as z,e as k,g as A,h as H,i as O}from"./chunk-GOX6X2HS.js";import"./chunk-3HVQWFM3.js";import"./chunk-MSLVFLMV.js";import"./chunk-ELVIF57Z.js";import{da as N,l as E,r as F}from"./chunk-MCHSQWDB.js";import{Ad as R,C as d,Da as l,Ec as T,Ha as S,I as _,J as u,Nc as I,Rb as f,Vb as a,Xa as v,Z as g,ac as b,cc as y,dc as w,ec as D,fc as L,gc as p,hc as s,ic as m,qd as P,rd as x,sd as $,ta as C,td as M,zb as c}from"./chunk-YB6XMFOT.js";function U(t,i){t&1&&(s(0),p(1,"choose-product"),m())}function V(t,i){t&1&&p(0,"div",7)}function j(t,i){if(t&1&&(p(0,"app-label-preview",5),f(1,V,1,0,"div",6)),t&2){let e=i.$implicit,n=i.$index,r=i.$count;a("item",e),c(),a("ngIf",n!==r-1)}}function q(t,i){if(t&1&&y(0,j,2,2,null,null,b),t&2){let e=i.$implicit;w(e)}}function B(t,i){t&1&&(s(0),D(1,"app-customize-label",4),f(2,q,2,0,"ng-template",null,0,I),L(),m())}function G(t,i){t&1&&(s(0),p(1,"app-print-preview"),m())}var pe=(()=>{class t{constructor(){this.store=l(z),this.httpService=l(N),this.destroyRef=l(v),this.routes=l(E)}get printMode(){let e=this.routes.snapshot.queryParamMap.get("printMode");return console.log("printMode",e),e}ngOnInit(){this.store.onReset(),console.log(localStorage.getItem("Domain"))}ngAfterViewInit(){let e=this.getHostFromDomain();this.loadInitialData(e)}getHostFromDomain(){let e=localStorage.getItem("Domain");return e?this.hasProtocol(e)?new URL(e).hostname:e:null}hasProtocol(e){return/^(https?):\/\//.test(e)}loadInitialData(e){if(!e){console.warn("No domain found in localStorage");return}let n=this.httpService.post("api/ConfigShelf/PaperConfig",{SubDomain:e}).pipe(g(o=>d({error:o}))),r=this.httpService.get("/API/V3/Tax",void 0,`https://${e}`).pipe(g(o=>d({error:o})));u([n,r]).pipe(F(this.destroyRef),_(([o,h])=>this.normalizeResponses(o,h)),C(({paperConfig:o,taxs:h})=>this.applyDataToStore(o,h))).subscribe()}normalizeResponses(e,n){let r=o=>o&&"error"in o;return{paperConfig:r(e)?null:e,taxs:r(n)?null:n}}applyDataToStore(e,n){e&&this.store.onChangeShelfLabelConfig(e),n&&this.store.onChangeTaxs(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-shelf-label"]],standalone:!0,features:[T],decls:4,vars:3,consts:[["content",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["sidebarConfig","label"],[3,"item"],["class","divider",4,"ngIf"],[1,"divider"]],template:function(n,r){n&1&&(s(0,1),f(1,U,2,0,"ng-container",2)(2,B,4,0,"ng-container",2)(3,G,2,0,"ng-container",3),m()),n&2&&(a("ngSwitch",r.store.stepper$().state),c(),a("ngSwitchCase",0),c(),a("ngSwitchCase",1))},dependencies:[k,A,O,R,P,x,$,M,H],styles:["[_nghost-%COMP%]{display:block}.divider[_ngcontent-%COMP%]{border:1px dashed #000;width:100%}"],changeDetection:0})}}return t})();export{pe as ShelfLabelComponent};
@@ -1 +1 @@
1
- var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},version:"25.41.0"};export{e as a};
1
+ var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},version:"25.41.1"};export{e as a};