dealposbarcode 26.4.2 → 26.5.0

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{d as U,e as V}from"./chunk-E3QK3ODC.js";import"./chunk-UKYVM5IX.js";import"./chunk-NBRHZTE2.js";import{b as C}from"./chunk-HNED55G6.js";import"./chunk-D5QOHW5H.js";import{a as j}from"./chunk-KCWHXHND.js";import"./chunk-NJJZTNUV.js";import"./chunk-UQS3DAHQ.js";import"./chunk-PGAUJYBS.js";import"./chunk-EEO2HP5P.js";import{a as O}from"./chunk-CTU5AP7B.js";import"./chunk-57HSFD3N.js";import{E as N,ga as A,j as B,m as $,n as W,p as R}from"./chunk-GIG2MJLR.js";import{Ac as l,Bc as m,Cc as I,Db as z,J as b,Qb as y,Rb as S,Sc as f,Tc as h,Ub as w,Uc as _,Vb as E,Wb as r,Wc as H,Xb as a,Yb as p,Zb as D,_ as T,ad as M,gb as i,ka as d,lc as g,n as v,t as P,u as L,ua as F,wc as k,xb as u}from"./chunk-5N2PPLNS.js";import"./chunk-YGFG76LK.js";function J(t,s){if(t&1&&(a(0,"div",2)(1,"span"),l(2),p(),a(3,"span"),l(4),f(5,"number"),p()(),a(6,"span",2),l(7),f(8,"date"),p()),t&2){let e=g();r("ngStyle",e.stickerHeaderDesc1Style),i(2),m(e.priceLabelTemplate.CurrencySymbol),i(2),m(h(5,5,e.item().product.UnitPrice)),i(2),r("ngStyle",e.stickerHeaderDesc2Style),i(),I("sd ",_(8,7,e.item().promotion.ExpirationDate,"dd-MM-yyyy"))}}function K(t,s){if(t&1&&(a(0,"span",2),l(1),p(),a(2,"span",2),l(3),f(4,"number"),p()),t&2){let e=g();k("font-size",e.priceLabelTemplate.CurrencySymbolFontSize+"px"),r("ngStyle",e.stickerContentHeaderDesc1Style),i(),m(e.priceLabelTemplate.CurrencySymbol),i(),r("ngStyle",e.stickerContentHeaderDesc2Style),i(),m(h(4,6,e.promotionDiscount(e.item().promotion)))}}function Q(t,s){if(t&1&&(a(0,"span",2),l(1),p(),a(2,"span",2),l(3),f(4,"number"),p()),t&2){let e=g();k("font-size",e.priceLabelTemplate.CurrencySymbolFontSize+"px"),r("ngStyle",e.stickerContentHeaderDesc1Style),i(),m(e.priceLabelTemplate.CurrencySymbol),i(),r("ngStyle",e.stickerContentHeaderDesc2Style),i(),m(h(4,6,e.item().unitPrice))}}function X(t,s){t&1&&(a(0,"span"),l(1," PROMOSI "),p(),a(2,"span"),l(3," PROMOSI "),p())}var q=(()=>{class t{constructor(){this.appStore=d(C),this.item=M(),this.printDate=new Date}get priceLabelTemplate(){return this.appStore.priceLabelTemplate()||null}get stickerContainerStyles(){return{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"10px",width:"100%",height:"100%"}}get stickerStyle(){return{width:"71mm",overflow:"hidden",border:"1px solid #000",display:"flex",flexDirection:"column"}}get stickerHeaderStyle(){return{padding:"0 4px",display:"flex",justifyContent:"space-between",height:this.item().promotion?"max-content":"20px"}}get stickerHeaderDesc1Style(){return this.priceLabelTemplate?{fontWeight:"600",fontSize:`${this.priceLabelTemplate.PromotionDateFontSize}px`,textDecoration:this.item()?"line-through":"none"}:{}}get stickerHeaderDesc2Style(){return this.priceLabelTemplate?{fontWeight:"600",fontSize:`${this.priceLabelTemplate.PromotionDateFontSize}px`}:{}}get stickerContentStyle(){return{padding:"0 4px",display:"flex",flexDirection:"column",flex:"1 1 0"}}get stickerContentHeaderStyle(){return{display:"flex",justifyContent:"space-between",alignItems:"flex-start",lineHeight:".8"}}get stickerContentHeaderDesc1Style(){return{fontWeight:"800"}}get stickerContentHeaderDesc2Style(){return{fontSize:`${this.priceLabelTemplate.NormalFontSize}px`,margin:"0",padding:"0",fontWeight:"800"}}get stickerContentBodyStyle(){return{display:"flex",flexDirection:"column",justifyContent:"space-between",fontWeight:"600"}}get stickerContentBodyDesc1Style(){return{textAlign:"start",fontSize:`${this.priceLabelTemplate.ProductNameFontSize}px`}}get stickerContentBodyDesc2Style(){return{textAlign:"start",fontSize:`${this.priceLabelTemplate.ProductCodeFontSize}px`}}get stickerFooterStyle(){return{display:"flex",flexDirection:"column"}}get stickerFooterHeaderStyle(){return{display:"flex",justifyContent:"end",padding:"0 4px"}}get stickerFooterHeaderDesc1Style(){return{fontWeight:"600",textDecoration:"none",fontSize:`${this.priceLabelTemplate.PrintDateFontSize}px`}}get stickerFooterBodyStyle(){return{backgroundColor:"#000",color:"#fff",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"2px 6px",fontWeight:"600"}}get stickerFooterBodyDesc1Style(){return{display:"flex",gap:"10px",fontSize:`${this.priceLabelTemplate.PromotionDescFontSize}px`}}get stickerFooterBodyDesc2Style(){return{fontSize:`${this.priceLabelTemplate.StoreNameFontSize}px`}}promotionDiscount(e){try{return Object.keys(e).length?e.Discount&&e.Discount>0?e.UnitPrice-e.UnitPrice*e.Discount/100:e.UnitPrice:0}catch(o){throw new Error("error: "+(o instanceof Error?o.message:String(o)))}}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=u({type:t,selectors:[["app-label-preview"]],inputs:{item:[1,"item"]},decls:22,vars:23,consts:[["id","sticker",1,"sticker",3,"ngStyle"],["id","sticker-header",3,"ngStyle"],[3,"ngStyle"]],template:function(o,n){o&1&&(a(0,"div",0)(1,"div",1),y(2,J,9,10),p(),a(3,"div",2)(4,"div",2),y(5,K,5,8)(6,Q,5,8),p(),a(7,"div",2)(8,"span",2),l(9),p(),a(10,"span",2),l(11),p()()(),a(12,"div",2)(13,"div",2)(14,"span",2),l(15),f(16,"date"),p()(),a(17,"div",2)(18,"div",2),y(19,X,4,0),p(),a(20,"span",2),l(21),p()()()()),o&2&&(r("ngStyle",n.stickerStyle),i(),r("ngStyle",n.stickerHeaderStyle),i(),S(n.item().promotion?2:-1),i(),r("ngStyle",n.stickerContentStyle),i(),r("ngStyle",n.stickerContentHeaderStyle),i(),S(n.item().promotion?5:6),i(2),r("ngStyle",n.stickerContentBodyStyle),i(),r("ngStyle",n.stickerContentBodyDesc1Style),i(),m(n.item().product.Name),i(),r("ngStyle",n.stickerContentBodyDesc2Style),i(),m(n.item().product.Code),i(),r("ngStyle",n.stickerFooterStyle),i(),r("ngStyle",n.stickerFooterHeaderStyle),i(),r("ngStyle",n.stickerFooterHeaderDesc1Style),i(),m(_(16,20,n.printDate,"dd-MM-yyyy")),i(2),r("ngStyle",n.stickerFooterBodyStyle),i(),r("ngStyle",n.stickerFooterBodyDesc1Style),i(),S(n.item().promotion?19:-1),i(),r("ngStyle",n.stickerFooterBodyDesc2Style),i(),m(n.priceLabelTemplate.CompanyNameLabel))},dependencies:[R,B,W,$],encapsulation:2,changeDetection:0})}}return t})();var Y=(t,s)=>s.id;function Z(t,s){t&1&&D(0,"choose-product")}function ee(t,s){if(t&1&&D(0,"app-label-preview",2),t&2){let e=s.$implicit;r("item",e)}}function te(t,s){if(t&1&&w(0,ee,1,1,"app-label-preview",2,Y),t&2){let e=s.$implicit;E(e)}}function ie(t,s){t&1&&(a(0,"app-customize-label",1),z(1,te,2,0,"ng-template",null,0,H),p())}var ke=(()=>{class t{constructor(){this.store=d(O),this.appStore=d(C),this.httpService=d(A),this.destroyRef=d(F),this.routes=d(j)}get printMode(){let e=this.routes.snapshot.queryParamMap.get("printMode");return console.log("printMode",e),e}get currentStep(){return this.appStore.currentStep()}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 o=this.httpService.post("api/ConfigShelf/PaperConfig",{SubDomain:e}).pipe(b(c=>v({error:c}))),n=this.httpService.get("/API/V3/Tax",void 0,`https://${e}`).pipe(b(c=>v({error:c})));L([o,n]).pipe(N(this.destroyRef),P(([c,x])=>this.normalizeResponses(c,x)),T(({paperConfig:c,taxs:x})=>this.applyDataToStore(c,x))).subscribe()}normalizeResponses(e,o){let n=c=>c&&"error"in c;return{paperConfig:n(e)?null:e,taxs:n(o)?null:o}}applyDataToStore(e,o){e&&this.store.onChangeShelfLabelConfig(e),o&&this.store.onChangeTaxs(o)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=u({type:t,selectors:[["app-price-label-wrapper"]],decls:2,vars:1,consts:[["content",""],["sidebarConfig","label"],[3,"item"]],template:function(o,n){if(o&1&&y(0,Z,1,0,"choose-product")(1,ie,3,0,"app-customize-label",1),o&2){let c;S((c=n.currentStep)===1?0:c===2?1:-1)}},dependencies:[U,V,q],styles:["[_nghost-%COMP%]{display:block;height:100%}.divider[_ngcontent-%COMP%]{border:1px dashed #000;width:100%}"],changeDetection:0})}}return t})();export{ke as PriceLabelWrapperComponent};
1
+ import{d as U,e as V}from"./chunk-OWXXWW2X.js";import"./chunk-UKYVM5IX.js";import"./chunk-NBRHZTE2.js";import{b as C}from"./chunk-LHCYMCO6.js";import"./chunk-D5QOHW5H.js";import{a as j}from"./chunk-KCWHXHND.js";import"./chunk-NJJZTNUV.js";import"./chunk-UQS3DAHQ.js";import"./chunk-PGAUJYBS.js";import"./chunk-EEO2HP5P.js";import{a as O}from"./chunk-CTU5AP7B.js";import"./chunk-57HSFD3N.js";import{E as N,ga as A,j as B,m as $,n as W,p as R}from"./chunk-GIG2MJLR.js";import{Ac as l,Bc as m,Cc as I,Db as z,J as b,Qb as y,Rb as S,Sc as f,Tc as h,Ub as w,Uc as _,Vb as E,Wb as r,Wc as H,Xb as a,Yb as p,Zb as D,_ as T,ad as M,gb as i,ka as d,lc as g,n as v,t as P,u as L,ua as F,wc as k,xb as u}from"./chunk-5N2PPLNS.js";import"./chunk-YGFG76LK.js";function J(t,s){if(t&1&&(a(0,"div",2)(1,"span"),l(2),p(),a(3,"span"),l(4),f(5,"number"),p()(),a(6,"span",2),l(7),f(8,"date"),p()),t&2){let e=g();r("ngStyle",e.stickerHeaderDesc1Style),i(2),m(e.priceLabelTemplate.CurrencySymbol),i(2),m(h(5,5,e.item().product.UnitPrice)),i(2),r("ngStyle",e.stickerHeaderDesc2Style),i(),I("sd ",_(8,7,e.item().promotion.ExpirationDate,"dd-MM-yyyy"))}}function K(t,s){if(t&1&&(a(0,"span",2),l(1),p(),a(2,"span",2),l(3),f(4,"number"),p()),t&2){let e=g();k("font-size",e.priceLabelTemplate.CurrencySymbolFontSize+"px"),r("ngStyle",e.stickerContentHeaderDesc1Style),i(),m(e.priceLabelTemplate.CurrencySymbol),i(),r("ngStyle",e.stickerContentHeaderDesc2Style),i(),m(h(4,6,e.promotionDiscount(e.item().promotion)))}}function Q(t,s){if(t&1&&(a(0,"span",2),l(1),p(),a(2,"span",2),l(3),f(4,"number"),p()),t&2){let e=g();k("font-size",e.priceLabelTemplate.CurrencySymbolFontSize+"px"),r("ngStyle",e.stickerContentHeaderDesc1Style),i(),m(e.priceLabelTemplate.CurrencySymbol),i(),r("ngStyle",e.stickerContentHeaderDesc2Style),i(),m(h(4,6,e.item().unitPrice))}}function X(t,s){t&1&&(a(0,"span"),l(1," PROMOSI "),p(),a(2,"span"),l(3," PROMOSI "),p())}var q=(()=>{class t{constructor(){this.appStore=d(C),this.item=M(),this.printDate=new Date}get priceLabelTemplate(){return this.appStore.priceLabelTemplate()||null}get stickerContainerStyles(){return{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"10px",width:"100%",height:"100%"}}get stickerStyle(){return{width:"71mm",overflow:"hidden",border:"1px solid #000",display:"flex",flexDirection:"column"}}get stickerHeaderStyle(){return{padding:"0 4px",display:"flex",justifyContent:"space-between",height:this.item().promotion?"max-content":"20px"}}get stickerHeaderDesc1Style(){return this.priceLabelTemplate?{fontWeight:"600",fontSize:`${this.priceLabelTemplate.PromotionDateFontSize}px`,textDecoration:this.item()?"line-through":"none"}:{}}get stickerHeaderDesc2Style(){return this.priceLabelTemplate?{fontWeight:"600",fontSize:`${this.priceLabelTemplate.PromotionDateFontSize}px`}:{}}get stickerContentStyle(){return{padding:"0 4px",display:"flex",flexDirection:"column",flex:"1 1 0"}}get stickerContentHeaderStyle(){return{display:"flex",justifyContent:"space-between",alignItems:"flex-start",lineHeight:".8"}}get stickerContentHeaderDesc1Style(){return{fontWeight:"800"}}get stickerContentHeaderDesc2Style(){return{fontSize:`${this.priceLabelTemplate.NormalFontSize}px`,margin:"0",padding:"0",fontWeight:"800"}}get stickerContentBodyStyle(){return{display:"flex",flexDirection:"column",justifyContent:"space-between",fontWeight:"600"}}get stickerContentBodyDesc1Style(){return{textAlign:"start",fontSize:`${this.priceLabelTemplate.ProductNameFontSize}px`}}get stickerContentBodyDesc2Style(){return{textAlign:"start",fontSize:`${this.priceLabelTemplate.ProductCodeFontSize}px`}}get stickerFooterStyle(){return{display:"flex",flexDirection:"column"}}get stickerFooterHeaderStyle(){return{display:"flex",justifyContent:"end",padding:"0 4px"}}get stickerFooterHeaderDesc1Style(){return{fontWeight:"600",textDecoration:"none",fontSize:`${this.priceLabelTemplate.PrintDateFontSize}px`}}get stickerFooterBodyStyle(){return{backgroundColor:"#000",color:"#fff",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"2px 6px",fontWeight:"600"}}get stickerFooterBodyDesc1Style(){return{display:"flex",gap:"10px",fontSize:`${this.priceLabelTemplate.PromotionDescFontSize}px`}}get stickerFooterBodyDesc2Style(){return{fontSize:`${this.priceLabelTemplate.StoreNameFontSize}px`}}promotionDiscount(e){try{return Object.keys(e).length?e.Discount&&e.Discount>0?e.UnitPrice-e.UnitPrice*e.Discount/100:e.UnitPrice:0}catch(o){throw new Error("error: "+(o instanceof Error?o.message:String(o)))}}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=u({type:t,selectors:[["app-label-preview"]],inputs:{item:[1,"item"]},decls:22,vars:23,consts:[["id","sticker",1,"sticker",3,"ngStyle"],["id","sticker-header",3,"ngStyle"],[3,"ngStyle"]],template:function(o,n){o&1&&(a(0,"div",0)(1,"div",1),y(2,J,9,10),p(),a(3,"div",2)(4,"div",2),y(5,K,5,8)(6,Q,5,8),p(),a(7,"div",2)(8,"span",2),l(9),p(),a(10,"span",2),l(11),p()()(),a(12,"div",2)(13,"div",2)(14,"span",2),l(15),f(16,"date"),p()(),a(17,"div",2)(18,"div",2),y(19,X,4,0),p(),a(20,"span",2),l(21),p()()()()),o&2&&(r("ngStyle",n.stickerStyle),i(),r("ngStyle",n.stickerHeaderStyle),i(),S(n.item().promotion?2:-1),i(),r("ngStyle",n.stickerContentStyle),i(),r("ngStyle",n.stickerContentHeaderStyle),i(),S(n.item().promotion?5:6),i(2),r("ngStyle",n.stickerContentBodyStyle),i(),r("ngStyle",n.stickerContentBodyDesc1Style),i(),m(n.item().product.Name),i(),r("ngStyle",n.stickerContentBodyDesc2Style),i(),m(n.item().product.Code),i(),r("ngStyle",n.stickerFooterStyle),i(),r("ngStyle",n.stickerFooterHeaderStyle),i(),r("ngStyle",n.stickerFooterHeaderDesc1Style),i(),m(_(16,20,n.printDate,"dd-MM-yyyy")),i(2),r("ngStyle",n.stickerFooterBodyStyle),i(),r("ngStyle",n.stickerFooterBodyDesc1Style),i(),S(n.item().promotion?19:-1),i(),r("ngStyle",n.stickerFooterBodyDesc2Style),i(),m(n.priceLabelTemplate.CompanyNameLabel))},dependencies:[R,B,W,$],encapsulation:2,changeDetection:0})}}return t})();var Y=(t,s)=>s.id;function Z(t,s){t&1&&D(0,"choose-product")}function ee(t,s){if(t&1&&D(0,"app-label-preview",2),t&2){let e=s.$implicit;r("item",e)}}function te(t,s){if(t&1&&w(0,ee,1,1,"app-label-preview",2,Y),t&2){let e=s.$implicit;E(e)}}function ie(t,s){t&1&&(a(0,"app-customize-label",1),z(1,te,2,0,"ng-template",null,0,H),p())}var ke=(()=>{class t{constructor(){this.store=d(O),this.appStore=d(C),this.httpService=d(A),this.destroyRef=d(F),this.routes=d(j)}get printMode(){let e=this.routes.snapshot.queryParamMap.get("printMode");return console.log("printMode",e),e}get currentStep(){return this.appStore.currentStep()}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 o=this.httpService.post("api/ConfigShelf/PaperConfig",{SubDomain:e}).pipe(b(c=>v({error:c}))),n=this.httpService.get("/API/V3/Tax",void 0,`https://${e}`).pipe(b(c=>v({error:c})));L([o,n]).pipe(N(this.destroyRef),P(([c,x])=>this.normalizeResponses(c,x)),T(({paperConfig:c,taxs:x})=>this.applyDataToStore(c,x))).subscribe()}normalizeResponses(e,o){let n=c=>c&&"error"in c;return{paperConfig:n(e)?null:e,taxs:n(o)?null:o}}applyDataToStore(e,o){e&&this.store.onChangeShelfLabelConfig(e),o&&this.store.onChangeTaxs(o)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=u({type:t,selectors:[["app-price-label-wrapper"]],decls:2,vars:1,consts:[["content",""],["sidebarConfig","label"],[3,"item"]],template:function(o,n){if(o&1&&y(0,Z,1,0,"choose-product")(1,ie,3,0,"app-customize-label",1),o&2){let c;S((c=n.currentStep)===1?0:c===2?1:-1)}},dependencies:[U,V,q],styles:["[_nghost-%COMP%]{display:block;height:100%}.divider[_ngcontent-%COMP%]{border:1px dashed #000;width:100%}"],changeDetection:0})}}return t})();export{ke as PriceLabelWrapperComponent};
@@ -1,4 +1,4 @@
1
- import{a as gt}from"./chunk-CRSEQHFC.js";import{a as vt,b as xt,c as se,d as St,e as yt,f as Tt,g as kt}from"./chunk-E3QK3ODC.js";import"./chunk-UKYVM5IX.js";import"./chunk-NBRHZTE2.js";import{a as W,b as te}from"./chunk-HNED55G6.js";import"./chunk-D5QOHW5H.js";import{a as Je,c as Ke}from"./chunk-KCWHXHND.js";import"./chunk-NJJZTNUV.js";import"./chunk-UQS3DAHQ.js";import{a as re}from"./chunk-PGAUJYBS.js";import{a as ae,b as le,k as Ct,n as pe,q as _t,r as bt}from"./chunk-EEO2HP5P.js";import{F as rt,G as at,_ as lt,a as tt,ba as pt,ca as oe,d as it,fa as st,ga as ct,i as ot,ia as dt,ja as mt,ka as L,n as ie,na as ut,oa as ft,r as nt,ra as ne,ya as ht,z as xe}from"./chunk-CTU5AP7B.js";import{d as et}from"./chunk-57HSFD3N.js";import{K as J,O as K,P as X,W as Y,X as ee,aa as Xe,ba as Ye,ca as V,f as Ze,i as qe,j as Ge,k as Ue,n as Qe,p as U,q as Q}from"./chunk-GIG2MJLR.js";import{$c as q,Aa as k,Ac as p,Bb as De,Bc as He,Cb as Pe,Cc as P,Db as b,F as fe,Fc as Ae,Gc as Be,Hc as Re,Ia as Ce,J as R,Jc as je,Kc as $e,Lc as Z,Nb as Ee,O as he,Qb as M,Rb as w,Sc as E,Tc as N,Ub as Ne,Vb as Oe,Wb as s,Wc as T,Xb as n,Yb as a,Zb as d,Zc as F,_ as x,ad as O,bc as j,cc as $,ec as v,fa as ye,fb as we,ga as Te,gb as l,ia as ke,jc as _,ka as C,lc as c,ld as G,mc as Ve,md as ze,n as B,nc as Fe,oc as We,pa as h,qa as g,qc as _e,rc as be,vc as Le,wa as ge,xa as Me,xb as y,yb as Ie,yc as z,z as Se,zc as ve}from"./chunk-5N2PPLNS.js";import{a as D,b as H,h as A}from"./chunk-YGFG76LK.js";var Mt=`
1
+ import{a as gt}from"./chunk-CRSEQHFC.js";import{a as vt,b as xt,c as se,d as St,e as yt,f as Tt,g as kt}from"./chunk-OWXXWW2X.js";import"./chunk-UKYVM5IX.js";import"./chunk-NBRHZTE2.js";import{a as W,b as te}from"./chunk-LHCYMCO6.js";import"./chunk-D5QOHW5H.js";import{a as Je,c as Ke}from"./chunk-KCWHXHND.js";import"./chunk-NJJZTNUV.js";import"./chunk-UQS3DAHQ.js";import{a as re}from"./chunk-PGAUJYBS.js";import{a as ae,b as le,k as Ct,n as pe,q as _t,r as bt}from"./chunk-EEO2HP5P.js";import{F as rt,G as at,_ as lt,a as tt,ba as pt,ca as oe,d as it,fa as st,ga as ct,i as ot,ia as dt,ja as mt,ka as L,n as ie,na as ut,oa as ft,r as nt,ra as ne,ya as ht,z as xe}from"./chunk-CTU5AP7B.js";import{d as et}from"./chunk-57HSFD3N.js";import{K as J,O as K,P as X,W as Y,X as ee,aa as Xe,ba as Ye,ca as V,f as Ze,i as qe,j as Ge,k as Ue,n as Qe,p as U,q as Q}from"./chunk-GIG2MJLR.js";import{$c as q,Aa as k,Ac as p,Bb as De,Bc as He,Cb as Pe,Cc as P,Db as b,F as fe,Fc as Ae,Gc as Be,Hc as Re,Ia as Ce,J as R,Jc as je,Kc as $e,Lc as Z,Nb as Ee,O as he,Qb as M,Rb as w,Sc as E,Tc as N,Ub as Ne,Vb as Oe,Wb as s,Wc as T,Xb as n,Yb as a,Zb as d,Zc as F,_ as x,ad as O,bc as j,cc as $,ec as v,fa as ye,fb as we,ga as Te,gb as l,ia as ke,jc as _,ka as C,lc as c,ld as G,mc as Ve,md as ze,n as B,nc as Fe,oc as We,pa as h,qa as g,qc as _e,rc as be,vc as Le,wa as ge,xa as Me,xb as y,yb as Ie,yc as z,z as Se,zc as ve}from"./chunk-5N2PPLNS.js";import{a as D,b as H,h as A}from"./chunk-YGFG76LK.js";var Mt=`
2
2
  .p-popover {
3
3
  margin-block-start: dt('popover.gutter');
4
4
  background: dt('popover.background');
@@ -1 +1 @@
1
- import"./chunk-YGFG76LK.js";var e=[{path:"",children:[{path:"v2/print-mode",loadComponent:()=>import("./chunk-5L565USQ.js").then(o=>o.PrintModeSelectorComponent)},{path:"",children:[{path:"barcode",loadComponent:()=>import("./chunk-JICYLOOO.js").then(o=>o.BarcodeWrapperComponent)},{path:"price-label",loadComponent:()=>import("./chunk-GMOHNLLM.js").then(o=>o.PriceLabelWrapperComponent)},{path:"setup",children:[{path:"users",loadComponent:()=>import("./chunk-43BCQTCM.js").then(o=>o.UsersComponent)},{path:"groups",loadComponent:()=>import("./chunk-RO2KQWOI.js").then(o=>o.GroupsComponent)},{path:"credential",loadComponent:()=>import("./chunk-OTQBHQHW.js").then(o=>o.CredentialComponent)}]}]}]}];export{e as dashboardRoutes};
1
+ import"./chunk-YGFG76LK.js";var e=[{path:"",children:[{path:"v2/print-mode",loadComponent:()=>import("./chunk-N65KHPS3.js").then(o=>o.PrintModeSelectorComponent)},{path:"",children:[{path:"barcode",loadComponent:()=>import("./chunk-4DRTDHRE.js").then(o=>o.BarcodeWrapperComponent)},{path:"price-label",loadComponent:()=>import("./chunk-32RUK2T5.js").then(o=>o.PriceLabelWrapperComponent)},{path:"setup",children:[{path:"users",loadComponent:()=>import("./chunk-43BCQTCM.js").then(o=>o.UsersComponent)},{path:"groups",loadComponent:()=>import("./chunk-RO2KQWOI.js").then(o=>o.GroupsComponent)},{path:"credential",loadComponent:()=>import("./chunk-OTQBHQHW.js").then(o=>o.CredentialComponent)}]}]}]}];export{e as dashboardRoutes};
@@ -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:"26.4.2"};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:"26.5.0"};export{e as a};
@@ -0,0 +1 @@
1
+ import{i as _}from"./chunk-KCWHXHND.js";import{q as F}from"./chunk-GIG2MJLR.js";import{Aa as M,Da as E,Ea as v,Gb as w,Pa as U,Zc as h,fa as m,ia as O,ka as g,ua as x,xa as A}from"./chunk-5N2PPLNS.js";import{a as i,b as u}from"./chunk-YGFG76LK.js";var K=(function(e){return e.PosAccessToken="Vzle",e.BarcodeAccessToken="uWwO",e.TokenExpire="nTmh",e.TokenType="GSFk",e.Host="tynU",e.Username="PNQf",e.Brand="gMse",e.Roles="XfGR",e.PrintMode="JPZP",e.SelectedProfileTemplate="gTeU",e.Outlets="ehLw",e.UserRole="kYqR",e})(K||{});var V=Symbol("");function L(e){return new Proxy(e,{has(n,t){return!!this.get(n,t,void 0)},get(n,t){let r=v(n);return!ne(r)||!(t in r)?(w(n[t])&&n[t][V]&&delete n[t],n[t]):(w(n[t])||(Object.defineProperty(n,t,{value:h(()=>n()[t]),configurable:!0}),n[t][V]=!0),L(n[t]))}})}var te=[WeakSet,WeakMap,Promise,Date,Error,RegExp,ArrayBuffer,DataView,Function];function ne(e){if(e===null||typeof e!="object"||oe(e))return!1;let n=Object.getPrototypeOf(e);if(n===Object.prototype)return!0;for(;n&&n!==Object.prototype;){if(te.includes(n.constructor))return!1;n=Object.getPrototypeOf(n)}return n===Object.prototype}function oe(e){return typeof e?.[Symbol.iterator]=="function"}var re=new WeakMap,f=Symbol("");function p(e,...n){let t=v(()=>P(e)),r=n.reduce((s,c)=>i(i({},s),typeof c=="function"?c(s):c),t),o=e[f],a=Reflect.ownKeys(e[f]);for(let s of Reflect.ownKeys(r))if(a.includes(s)){let c=s;t[c]!==r[c]&&o[c].set(r[c])}se(e)}function P(e){let n=e[f];return Reflect.ownKeys(e[f]).reduce((t,r)=>{let o=n[r]();return u(i({},t),{[r]:o})},{})}function ie(e){return re.get(e[f])||[]}function se(e){let n=ie(e);for(let t of n){let r=v(()=>P(e));t(r)}}function z(...e){let n=[...e],t=typeof n[0]=="function"?{}:n.shift(),r=n;return(()=>{class a{constructor(){let c=r.reduce((b,Q)=>Q(b),ce()),{stateSignals:l,props:d,methods:y,hooks:S}=c,C=i(i(i({},l),d),y);this[f]=c[f];for(let b of Reflect.ownKeys(C))this[b]=C[b];let{onInit:T,onDestroy:$}=S;T&&T(),$&&g(x).onDestroy($)}static \u0275fac=function(l){return new(l||a)};static \u0275prov=m({token:a,factory:a.\u0275fac,providedIn:t.providedIn||null})}return a})()}function ce(){return{[f]:{},stateSignals:{},props:{},methods:{},hooks:{}}}function j(...e){let n=typeof e[0]=="function"?e:e.slice(1);return t=>n.reduce((r,o)=>o(r),t)}function W(e){return n=>{let t=e(i(i(i({[f]:n[f]},n.stateSignals),n.props),n.methods));return u(i({},n),{props:i(i({},n.props),t)})}}function k(e){return W(n=>{let t=e(n);return Reflect.ownKeys(t).reduce((o,a)=>{let s=t[a];return u(i({},o),{[a]:w(s)?s:h(s)})},{})})}function q(e){return n=>{let t=i(i(i({[f]:n[f]},n.stateSignals),n.props),n.methods),r=typeof e=="function"?e(t):e,o=(a,s)=>s?()=>{a&&a(),s(t)}:a;return u(i({},n),{hooks:{onInit:o(n.hooks.onInit,r.onInit),onDestroy:o(n.hooks.onDestroy,r.onDestroy)}})}}function D(e){return n=>{let t=e(i(i(i({[f]:n[f]},n.stateSignals),n.props),n.methods));return u(i({},n),{methods:i(i({},n.methods),t)})}}function I(e){return n=>{let t=typeof e=="function"?e():e,r=Reflect.ownKeys(t),o=n[f],a={};for(let s of r)o[s]=M(t[s]),a[s]=L(o[s]);return u(i({},n),{stateSignals:i(i({},n.stateSignals),a)})}}var ae=new O("ReduxDevtoolsConfig"),ue=(()=>{class e{#e=M({});get stores(){return this.#e()}#n;#o=E(()=>{if(this.#n===void 0)throw new Error("no callback function defined");let t=this.#e(),r=Object.entries(t).reduce((o,[a,s])=>u(i({},o),{[a]:P(s)}),{});this.#n(r)});track(t,r){this.#e.update(o=>u(i({},o),{[t]:r}))}onChange(t){this.#n=t}removeStore(t){this.#e.update(r=>Object.entries(r).reduce((o,[a,s])=>(a!==t&&(o[a]=s),o),{}))}notifyRenamedStore(t){this.#e()[t]&&this.#e.update(r=>i({},r))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),R=new Set,B={send:()=>{}},J=(()=>{class e{#e={};#n=F(g(U));#o=[];#r=i({name:"NgRx SignalStore"},g(ae,{optional:!0}));#t={};#i=1;#s=g(A).runOutsideAngular(()=>this.#n&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__.connect(this.#r):B);constructor(){this.#n}ngOnDestroy(){R.clear()}syncToDevTools(t){let r=Object.entries(t).reduce((s,[c,l])=>{let{options:d,name:y}=this.#e[c];return s[y]=d.map(l),s},{});this.#t=i(i({},this.#t),r);let o=Array.from(R),a=o.length?o.join(", "):"Store Update";R.clear(),this.#s.send({type:a},this.#t)}getNextId(){return String(this.#i++)}addStore(t,r,o,a){let s=r,c=Object.values(this.#e).map(d=>d.name);if(c.includes(s)&&!a.indexNames)throw new Error(`An instance of the store ${s} already exists. Enable automatic indexing via withDevTools('${s}', { indexNames: true }), or rename it upon instantiation.`);for(let d=1;c.includes(s);d++)s=`${r}-${d}`;this.#e[t]={name:s,options:a};let l=a.tracker;this.#o.includes(l)||this.#o.push(l),l.onChange(d=>this.syncToDevTools(d)),l.track(t,o)}removeStore(t){let r=this.#e[t].name;this.#e=Object.entries(this.#e).reduce((o,[a,s])=>(a!==t&&(o[a]=s),o),{}),this.#t=Object.entries(this.#t).reduce((o,[a,s])=>(a!==r&&(o[a]=s),o),{});for(let o of this.#o)o.removeStore(t)}renameStore(t,r){let o=this.#e[t];if(!o)return;let a=o.name;if(a===r)return;if(Object.entries(this.#e).filter(([c])=>c!==t).map(([,c])=>c.name).includes(r))throw new Error(`NgRx Toolkit/DevTools: cannot rename from ${a} to ${r}. ${r} is already assigned to another SignalStore instance.`);this.#e=Object.entries(this.#e).reduce((c,[l,d])=>(l===t?c[l]=u(i({},d),{name:r}):c[l]=d,c),{}),this.#t=Object.entries(this.#t).reduce((c,[l,d])=>(l!==a&&(c[l]=d),c),{}),this.#o.forEach(c=>c.notifyRenamedStore(t))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),le="___renameDevtoolsName",N="___uniqueDevtoolsId";function H(e,...n){return j(D(()=>{let t=g(J),r=t.getNextId();return{[le]:o=>{t.renameStore(r,o)},[N]:()=>r}}),q(t=>{let r=g(J),o=String(t[N]());return{onInit(){let a=String(t[N]()),s={indexNames:!n.some(c=>c.indexNames===!1),map:n.find(c=>c.map)?.map??(c=>c),tracker:g(n.find(c=>c.tracker)?.tracker||ue)};r.addStore(a,e,t,s)},onDestroy(){r.removeStore(o)}}}))}var Ee=j(I({}));var G={layoutOptions:{theme:"light",dir:"ltr",layout:"vertical",sidebartype:"full",sidebarpos:"fixed",headerpos:"fixed",boxed:"full",navbarbg:"skin6",sidebarbg:"skin6",logobg:"skin6",active:1,tabStatus:"justify",isCollapsed:!1,innerWidth:window.innerWidth,defaultSidebar:"full",showSettings:!1,showMobileMenu:!1,expandLogo:!1},profileTemplate:null,priceLabelTemplate:null,outlets:null,taxs:null,currentStep:1,product:null,cartItemsMap:new Map,userRole:null};function X(e){return e.unitPrice!=null?e.unitPrice:e.promotion?e.product.UnitPrice:e.outletPrice?.Price!=null?e.outletPrice.Price:e.product.UnitPrice}function Y(e,n){let t=n;return e.promotion?.Discount!=null&&(t=t*(1-e.promotion.Discount/100)),e.outletPrice?.PriceDiscount!=null&&(t=t*(1-e.outletPrice.PriceDiscount/100)),t}var $e=z({providedIn:"root"},H("appStore"),I(G),k(e=>{let n=h(()=>Array.from(e.cartItemsMap().values()).map(o=>{let a=X(o),s=o.promotion?.UnitPrice||o.outletPrice?.Price||o.unitPrice||o.product.UnitPrice,c=Y(o,s);return u(i({},o),{baseUnitPrice:a,effectiveUnitPrice:c})})),t=h(()=>Array.from(e.cartItemsMap().values()).flatMap(o=>{let a=X(o),s=o.promotion?.UnitPrice||o.outletPrice?.Price||o.unitPrice||o.product.UnitPrice,c=Y(o,s),l=e.profileTemplate()?.ConfigObject,d=l?.TaxType?.ID!=null&&e.taxs()?e.taxs().find(S=>S.ID===l.TaxType.ID)?.Rate:void 0;l?.PriceWithTax&&d!=null&&(c+=c*d/100);let y=Math.max(0,o.quantity??0);return Array.from({length:y},()=>({id:_(),product:o.product,promotion:o.promotion,outletPrice:o.outletPrice,baseUnitPrice:a,effectiveUnitPrice:c}))})),r=h(()=>e.userRole()??localStorage.getItem(K.UserRole));return{cartItems:n,flattenedCartUnits:t,userRole:r}}),D(e=>({updateLayoutOptions(n){p(e,t=>u(i({},t),{layoutOptions:n}))},updateProfileTemplate(n){p(e,t=>u(i({},t),{profileTemplate:n}))},updatePriceLabelTemplate(n){p(e,t=>u(i({},t),{priceLabelTemplate:n}))},updateOutlets(n){p(e,t=>u(i({},t),{outlets:n}))},updateTaxes(n){p(e,t=>u(i({},t),{taxs:n}))},updateCurrentStep(n){p(e,t=>u(i({},t),{currentStep:n}))},updateProduct(n){p(e,t=>u(i({},t),{product:n}))},addProductToCart(n,t,r,o=1,a){p(e,s=>{let c=n.ID,d=(s.cartItemsMap.get(c)?.quantity??0)+o;if(d<=0){let S=new Map(s.cartItemsMap);return S.delete(c),u(i({},s),{cartItemsMap:S})}let y=new Map(s.cartItemsMap);return y.set(c,{product:n,promotion:t,outletPrice:r,quantity:d,unitPrice:a,baseUnitPrice:0,effectiveUnitPrice:0}),u(i({},s),{cartItemsMap:y})})},updateCartItemQuantity(n,t,r,o,a){p(e,s=>{if(t<=0){let d=new Map(s.cartItemsMap);return d.delete(n),u(i({},s),{cartItemsMap:d})}let c=s.cartItemsMap.get(n);if(!c)return s;let l=new Map(s.cartItemsMap);return l.set(n,i(i(i(u(i({},c),{quantity:t}),r!==void 0&&{promotion:r}),o!==void 0&&{outletPrice:o}),a!==void 0&&{unitPrice:a})),u(i({},s),{cartItemsMap:l})})},removeProductFromCart(n){p(e,t=>{if(!t.cartItemsMap.has(n))return t;let r=new Map(t.cartItemsMap);return r.delete(n),u(i({},t),{cartItemsMap:r})})},clearCartItems(){p(e,n=>u(i({},n),{cartItemsMap:new Map}))},clearAll(){p(e,()=>i({},G))},updateUserRole(n){p(e,t=>u(i({},t),{userRole:n}))}})));export{K as a,$e as b};
@@ -1 +1 @@
1
- import{e as K}from"./chunk-6YHELCHZ.js";import{a as d,b as H}from"./chunk-HNED55G6.js";import{c as N,g as T}from"./chunk-KCWHXHND.js";import{d as B}from"./chunk-57HSFD3N.js";import{J as I,K as F,O as j,P as A,U,W as G,X as R,aa as z,ca as L,f as O,p as V}from"./chunk-GIG2MJLR.js";import{Aa as x,Ac as i,Bc as E,Cc as D,Lc as _,Qb as b,Rb as S,Wb as a,Xb as e,Yb as t,Zb as l,db as y,ec as P,gb as n,jc as s,ka as f,pa as m,qa as c,vc as M,xb as k}from"./chunk-5N2PPLNS.js";import"./chunk-YGFG76LK.js";var C=r=>({active:r});function q(r,w){r&1&&(e(0,"h4"),i(1," This menu is for printing barcodes that will be placed directly on your products. "),t())}function J(r,w){r&1&&(e(0,"h4"),i(1," This option is designed for printing barcodes and labels that will be displayed on the shelves where your products are stored. "),t())}function Q(r,w){r&1&&(e(0,"h4"),i(1," This option is for setting up user accounts and managing user permissions. "),t())}var de=(()=>{class r{constructor(){this.domain=x(""),this.username=x(""),this.appStore=f(H),this.router=f(N),this.fb=f(z),this.authService=f(K)}ngOnInit(){this.initForm()}ngAfterViewInit(){this.domain.set(localStorage.getItem(d.Host)),this.username.set(localStorage.getItem(d.Username))}onNext(){let h=this.form.get("printMode").value;switch(this.appStore.clearAll(),h){case 1:this.form.get("rememberMe").value&&localStorage.setItem(d.PrintMode,"barcode"),this.router.navigate(["/pages/profile-template"]);break;case 2:this.form.get("rememberMe").value&&localStorage.setItem(d.PrintMode,"priceLabel"),this.router.navigate(["/pages/price-label"]);break;case 3:this.form.get("rememberMe").value&&localStorage.setItem(d.PrintMode,"setupUsers"),this.router.navigate(["/pages/setup/users"]);break;default:console.error("Unknown print mode selected:",h)}}initForm(){this.form=this.fb.group({printMode:this.fb.control(localStorage.getItem(d.PrintMode)==="priceLabel"?2:1),rememberMe:this.fb.control(!0)})}static{this.\u0275fac=function(g){return new(g||r)}}static{this.\u0275cmp=k({type:r,selectors:[["app-print-mode-selector"]],decls:70,vars:19,consts:[["radioDefault1",""],["radioDefault2",""],["radioDefault3",""],[1,"navbar","navbar-light","bg-white","shadow-sm","px-4","py-2"],[1,"fw-normal","mt-2"],[1,"dropdown"],["type","button","id","profileMenu","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-light","rounded-circle","d-flex","align-items-center","justify-content-center",2,"width","40px","height","40px"],[1,"fa-solid","fa-user"],["aria-labelledby","profileMenu",1,"dropdown-menu","dropdown-menu-end","shadow","border-0","p-3",2,"width","250px","border-radius","1rem"],[1,"mb-2"],[1,"fw-bold","text-uppercase"],[1,"d-flex","align-items-center","mb-3"],[1,"me-3"],[1,"fa-solid","fa-user-circle","fa-3x","text-secondary"],[1,"mt-3","fw-bold"],[1,"text-muted","fw-bolder"],["rel","noopener noreferrer","target","_blank",1,"text-primary","text-decoration-none",3,"href"],[1,"dropdown-divider"],["href","javascript:void(0)",1,"btn","btn-primary","w-100","rounded-pill",3,"click"],[1,"d-flex","flex-column",2,"height","calc(100vh - 56px)"],[1,"flex-grow-1","w-100","d-flex","flex-column","justify-content-center","align-items-center","gap-4","px-3"],["id","header",1,"text-center","mb-4"],[1,"row","g-4","justify-content-center","w-100",2,"max-width","960px",3,"formGroup"],["formControlName","printMode","type","radio","name","printMode",1,"form-check-input","d-none",3,"value"],["formControlName","printMode","type","radio","name","printMode","checked","",1,"form-check-input","d-none",3,"value"],[1,"d-flex","flex-column","align-items-center","gap-4","w-100"],[1,"d-flex","gap-5","justify-content-center","flex-wrap"],[1,"card","option-card",3,"click","ngClass"],[1,"card-body","text-center"],[1,"icon-wrapper","mb-2","mt-4"],[1,"fa-solid","fa-barcode"],[1,"text-muted","mb-1"],[1,"fw-normal"],[1,"fa-solid","fa-shelves"],[1,"form-check","d-flex","justify-content-center","align-items-center","gap-2","mt-3"],["type","checkbox","formControlName","rememberMe","id","checkDefault",1,"form-check-input"],["for","checkDefault",1,"form-check-label"],[1,"mt-3"],["type","button",1,"btn","btn-primary","btn-lg","px-5","rounded-pill","shadow-lg",3,"click"]],template:function(g,o){if(g&1){let p=P();e(0,"nav",3)(1,"h2",4),i(2,"Choose Barcode Mode"),t(),e(3,"div",5)(4,"button",6),l(5,"i",7),t(),e(6,"ul",8)(7,"li",9)(8,"span",10),i(9,"User Profile"),t()(),e(10,"li",11)(11,"div",12),l(12,"i",13),t(),e(13,"div")(14,"h6",14),i(15),t(),e(16,"h6",15)(17,"a",16),i(18),t()()()(),e(19,"li"),l(20,"hr",17),t(),e(21,"li")(22,"button",18),s("click",function(){return m(p),c(o.authService.logout())}),i(23,"SIGN OUT "),t()()()()(),e(24,"div",19)(25,"main",20)(26,"div",21),b(27,q,2,0,"h4"),b(28,J,2,0,"h4"),b(29,Q,2,0,"h4"),t(),e(30,"div",22),l(31,"input",23,0)(33,"input",24,1)(35,"input",24,2),e(37,"div",25)(38,"div",26)(39,"div",27),s("click",function(){m(p);let u=M(32);return c(u.click())}),e(40,"div",28)(41,"div",29),l(42,"i",30),t(),e(43,"h6",31),i(44,"Print"),t(),e(45,"h4",32),i(46,"Product"),t()()(),e(47,"div",27),s("click",function(){m(p);let u=M(34);return c(u.click())}),e(48,"div",28)(49,"div",29),l(50,"i",33),t(),e(51,"h6",31),i(52,"Print"),t(),e(53,"h4",32),i(54,"Shelf"),t()()(),e(55,"div",27),s("click",function(){m(p);let u=M(36);return c(u.click())}),e(56,"div",28)(57,"div",29),l(58,"i",7),t(),e(59,"h6",31),i(60,"Setup"),t(),e(61,"h4",32),i(62,"Users"),t()()()(),e(63,"div",34),l(64,"input",35),e(65,"label",36),i(66,"Remember my decision"),t()(),e(67,"div",37)(68,"button",38),s("click",function(){return m(p),c(o.onNext())}),i(69," Next "),t()()()()()()}g&2&&(n(15),E(o.username()),n(2),a("href","https://"+o.domain(),y),n(),D(" ",o.domain()," "),n(9),S(o.form.get("printMode").value===1?27:-1),n(),S(o.form.get("printMode").value===2?28:-1),n(),S(o.form.get("printMode").value===3?29:-1),n(),a("formGroup",o.form),n(),a("value",1),n(2),a("value",2),n(2),a("value",3),n(4),a("ngClass",_(13,C,o.form.get("printMode").value===1)),n(8),a("ngClass",_(15,C,o.form.get("printMode").value===2)),n(8),a("ngClass",_(17,C,o.form.get("printMode").value===3)))},dependencies:[V,O,T,L,F,I,U,j,A,R,G,B],styles:["[_nghost-%COMP%]{display:block}main[_ngcontent-%COMP%]{background-color:#f5f5f5}.card[_ngcontent-%COMP%]{width:205px;height:205px;border-radius:8px;transition:transform .3s ease,border-color .3s ease}.card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:4rem}.card.active[_ngcontent-%COMP%]{border:2px solid blue;transform:scale(1.05)}.dropdown-menu[_ngcontent-%COMP%]{position:absolute;right:0}#header[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0}#header[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:nth-child(1){font-size:2rem;font-weight:500}#header[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:nth-child(2){font-size:.8rem}"],changeDetection:0})}}return r})();export{de as PrintModeSelectorComponent};
1
+ import{e as K}from"./chunk-OCL2QAWG.js";import{a as d,b as H}from"./chunk-LHCYMCO6.js";import{c as N,g as T}from"./chunk-KCWHXHND.js";import{d as B}from"./chunk-57HSFD3N.js";import{J as I,K as F,O as j,P as A,U,W as G,X as R,aa as z,ca as L,f as O,p as V}from"./chunk-GIG2MJLR.js";import{Aa as x,Ac as i,Bc as E,Cc as D,Lc as _,Qb as b,Rb as S,Wb as a,Xb as e,Yb as t,Zb as l,db as y,ec as P,gb as n,jc as s,ka as f,pa as m,qa as c,vc as M,xb as k}from"./chunk-5N2PPLNS.js";import"./chunk-YGFG76LK.js";var C=r=>({active:r});function q(r,w){r&1&&(e(0,"h4"),i(1," This menu is for printing barcodes that will be placed directly on your products. "),t())}function J(r,w){r&1&&(e(0,"h4"),i(1," This option is designed for printing barcodes and labels that will be displayed on the shelves where your products are stored. "),t())}function Q(r,w){r&1&&(e(0,"h4"),i(1," This option is for setting up user accounts and managing user permissions. "),t())}var de=(()=>{class r{constructor(){this.domain=x(""),this.username=x(""),this.appStore=f(H),this.router=f(N),this.fb=f(z),this.authService=f(K)}ngOnInit(){this.initForm()}ngAfterViewInit(){this.domain.set(localStorage.getItem(d.Host)),this.username.set(localStorage.getItem(d.Username))}onNext(){let h=this.form.get("printMode").value;switch(this.appStore.clearAll(),h){case 1:this.form.get("rememberMe").value&&localStorage.setItem(d.PrintMode,"barcode"),this.router.navigate(["/pages/profile-template"]);break;case 2:this.form.get("rememberMe").value&&localStorage.setItem(d.PrintMode,"priceLabel"),this.router.navigate(["/pages/price-label"]);break;case 3:this.form.get("rememberMe").value&&localStorage.setItem(d.PrintMode,"setupUsers"),this.router.navigate(["/pages/setup/users"]);break;default:console.error("Unknown print mode selected:",h)}}initForm(){this.form=this.fb.group({printMode:this.fb.control(localStorage.getItem(d.PrintMode)==="priceLabel"?2:1),rememberMe:this.fb.control(!0)})}static{this.\u0275fac=function(g){return new(g||r)}}static{this.\u0275cmp=k({type:r,selectors:[["app-print-mode-selector"]],decls:70,vars:19,consts:[["radioDefault1",""],["radioDefault2",""],["radioDefault3",""],[1,"navbar","navbar-light","bg-white","shadow-sm","px-4","py-2"],[1,"fw-normal","mt-2"],[1,"dropdown"],["type","button","id","profileMenu","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-light","rounded-circle","d-flex","align-items-center","justify-content-center",2,"width","40px","height","40px"],[1,"fa-solid","fa-user"],["aria-labelledby","profileMenu",1,"dropdown-menu","dropdown-menu-end","shadow","border-0","p-3",2,"width","250px","border-radius","1rem"],[1,"mb-2"],[1,"fw-bold","text-uppercase"],[1,"d-flex","align-items-center","mb-3"],[1,"me-3"],[1,"fa-solid","fa-user-circle","fa-3x","text-secondary"],[1,"mt-3","fw-bold"],[1,"text-muted","fw-bolder"],["rel","noopener noreferrer","target","_blank",1,"text-primary","text-decoration-none",3,"href"],[1,"dropdown-divider"],["href","javascript:void(0)",1,"btn","btn-primary","w-100","rounded-pill",3,"click"],[1,"d-flex","flex-column",2,"height","calc(100vh - 56px)"],[1,"flex-grow-1","w-100","d-flex","flex-column","justify-content-center","align-items-center","gap-4","px-3"],["id","header",1,"text-center","mb-4"],[1,"row","g-4","justify-content-center","w-100",2,"max-width","960px",3,"formGroup"],["formControlName","printMode","type","radio","name","printMode",1,"form-check-input","d-none",3,"value"],["formControlName","printMode","type","radio","name","printMode","checked","",1,"form-check-input","d-none",3,"value"],[1,"d-flex","flex-column","align-items-center","gap-4","w-100"],[1,"d-flex","gap-5","justify-content-center","flex-wrap"],[1,"card","option-card",3,"click","ngClass"],[1,"card-body","text-center"],[1,"icon-wrapper","mb-2","mt-4"],[1,"fa-solid","fa-barcode"],[1,"text-muted","mb-1"],[1,"fw-normal"],[1,"fa-solid","fa-shelves"],[1,"form-check","d-flex","justify-content-center","align-items-center","gap-2","mt-3"],["type","checkbox","formControlName","rememberMe","id","checkDefault",1,"form-check-input"],["for","checkDefault",1,"form-check-label"],[1,"mt-3"],["type","button",1,"btn","btn-primary","btn-lg","px-5","rounded-pill","shadow-lg",3,"click"]],template:function(g,o){if(g&1){let p=P();e(0,"nav",3)(1,"h2",4),i(2,"Choose Barcode Mode"),t(),e(3,"div",5)(4,"button",6),l(5,"i",7),t(),e(6,"ul",8)(7,"li",9)(8,"span",10),i(9,"User Profile"),t()(),e(10,"li",11)(11,"div",12),l(12,"i",13),t(),e(13,"div")(14,"h6",14),i(15),t(),e(16,"h6",15)(17,"a",16),i(18),t()()()(),e(19,"li"),l(20,"hr",17),t(),e(21,"li")(22,"button",18),s("click",function(){return m(p),c(o.authService.logout())}),i(23,"SIGN OUT "),t()()()()(),e(24,"div",19)(25,"main",20)(26,"div",21),b(27,q,2,0,"h4"),b(28,J,2,0,"h4"),b(29,Q,2,0,"h4"),t(),e(30,"div",22),l(31,"input",23,0)(33,"input",24,1)(35,"input",24,2),e(37,"div",25)(38,"div",26)(39,"div",27),s("click",function(){m(p);let u=M(32);return c(u.click())}),e(40,"div",28)(41,"div",29),l(42,"i",30),t(),e(43,"h6",31),i(44,"Print"),t(),e(45,"h4",32),i(46,"Product"),t()()(),e(47,"div",27),s("click",function(){m(p);let u=M(34);return c(u.click())}),e(48,"div",28)(49,"div",29),l(50,"i",33),t(),e(51,"h6",31),i(52,"Print"),t(),e(53,"h4",32),i(54,"Shelf"),t()()(),e(55,"div",27),s("click",function(){m(p);let u=M(36);return c(u.click())}),e(56,"div",28)(57,"div",29),l(58,"i",7),t(),e(59,"h6",31),i(60,"Setup"),t(),e(61,"h4",32),i(62,"Users"),t()()()(),e(63,"div",34),l(64,"input",35),e(65,"label",36),i(66,"Remember my decision"),t()(),e(67,"div",37)(68,"button",38),s("click",function(){return m(p),c(o.onNext())}),i(69," Next "),t()()()()()()}g&2&&(n(15),E(o.username()),n(2),a("href","https://"+o.domain(),y),n(),D(" ",o.domain()," "),n(9),S(o.form.get("printMode").value===1?27:-1),n(),S(o.form.get("printMode").value===2?28:-1),n(),S(o.form.get("printMode").value===3?29:-1),n(),a("formGroup",o.form),n(),a("value",1),n(2),a("value",2),n(2),a("value",3),n(4),a("ngClass",_(13,C,o.form.get("printMode").value===1)),n(8),a("ngClass",_(15,C,o.form.get("printMode").value===2)),n(8),a("ngClass",_(17,C,o.form.get("printMode").value===3)))},dependencies:[V,O,T,L,F,I,U,j,A,R,G,B],styles:["[_nghost-%COMP%]{display:block}main[_ngcontent-%COMP%]{background-color:#f5f5f5}.card[_ngcontent-%COMP%]{width:205px;height:205px;border-radius:8px;transition:transform .3s ease,border-color .3s ease}.card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:4rem}.card.active[_ngcontent-%COMP%]{border:2px solid blue;transform:scale(1.05)}.dropdown-menu[_ngcontent-%COMP%]{position:absolute;right:0}#header[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0}#header[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:nth-child(1){font-size:2rem;font-weight:500}#header[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:nth-child(2){font-size:.8rem}"],changeDetection:0})}}return r})();export{de as PrintModeSelectorComponent};
@@ -1,4 +1,4 @@
1
- import{a as p,b as ir}from"./chunk-HNED55G6.js";import{a as er,c as tr}from"./chunk-KCWHXHND.js";import{H as nr,ga as rr}from"./chunk-GIG2MJLR.js";import{Ca as Zn,Fa as G,J as At,Pa as Qn,V as Gn,Y as Kn,_ as se,aa as Jn,ba as Yn,c as me,d as Hn,e as Bn,fa as xe,g as jn,gd as kt,h as zn,ia as Fe,j as Me,k as yt,ka as E,l as wt,la as Ve,m as bt,n as Ue,na as Xn,oa as We,sa as $e,t as qn,xa as U}from"./chunk-5N2PPLNS.js";import{a as Wn,b as $n,g as q,h as a}from"./chunk-YGFG76LK.js";var sr=()=>{};var cr=function(n){let e=[],t=0;for(let r=0;r<n.length;r++){let i=n.charCodeAt(r);i<128?e[t++]=i:i<2048?(e[t++]=i>>6|192,e[t++]=i&63|128):(i&64512)===55296&&r+1<n.length&&(n.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(n.charCodeAt(++r)&1023),e[t++]=i>>18|240,e[t++]=i>>12&63|128,e[t++]=i>>6&63|128,e[t++]=i&63|128):(e[t++]=i>>12|224,e[t++]=i>>6&63|128,e[t++]=i&63|128)}return e},$i=function(n){let e=[],t=0,r=0;for(;t<n.length;){let i=n[t++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){let s=n[t++];e[r++]=String.fromCharCode((i&31)<<6|s&63)}else if(i>239&&i<365){let s=n[t++],o=n[t++],u=n[t++],c=((i&7)<<18|(s&63)<<12|(o&63)<<6|u&63)-65536;e[r++]=String.fromCharCode(55296+(c>>10)),e[r++]=String.fromCharCode(56320+(c&1023))}else{let s=n[t++],o=n[t++];e[r++]=String.fromCharCode((i&15)<<12|(s&63)<<6|o&63)}}return e.join("")},He={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(n,e){if(!Array.isArray(n))throw Error("encodeByteArray takes an array as a parameter");this.init_();let t=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<n.length;i+=3){let s=n[i],o=i+1<n.length,u=o?n[i+1]:0,c=i+2<n.length,l=c?n[i+2]:0,h=s>>2,m=(s&3)<<4|u>>4,d=(u&15)<<2|l>>6,g=l&63;c||(g=64,o||(d=64)),r.push(t[h],t[m],t[d],t[g])}return r.join("")},encodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(n):this.encodeByteArray(cr(n),e)},decodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(n):$i(this.decodeStringToByteArray(n,e))},decodeStringToByteArray(n,e){this.init_();let t=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<n.length;){let s=t[n.charAt(i++)],u=i<n.length?t[n.charAt(i)]:0;++i;let l=i<n.length?t[n.charAt(i)]:64;++i;let m=i<n.length?t[n.charAt(i)]:64;if(++i,s==null||u==null||l==null||m==null)throw new Rt;let d=s<<2|u>>4;if(r.push(d),l!==64){let g=u<<4&240|l>>2;if(r.push(g),m!==64){let y=l<<6&192|m;r.push(y)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let n=0;n<this.ENCODED_VALS.length;n++)this.byteToCharMap_[n]=this.ENCODED_VALS.charAt(n),this.charToByteMap_[this.byteToCharMap_[n]]=n,this.byteToCharMapWebSafe_[n]=this.ENCODED_VALS_WEBSAFE.charAt(n),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[n]]=n,n>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(n)]=n,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(n)]=n)}}},Rt=class extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}},Hi=function(n){let e=cr(n);return He.encodeByteArray(e,!0)},Ct=function(n){return Hi(n).replace(/\./g,"")},Be=function(n){try{return He.decodeString(n,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function ur(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}var Bi=()=>ur().__FIREBASE_DEFAULTS__,ji=()=>{if(typeof process>"u"||typeof process.env>"u")return;let n=process.env.__FIREBASE_DEFAULTS__;if(n)return JSON.parse(n)},zi=()=>{if(typeof document>"u")return;let n;try{n=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}let e=n&&Be(n[1]);return e&&JSON.parse(e)},Ot=()=>{try{return sr()||Bi()||ji()||zi()}catch(n){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);return}},lr=n=>{var e,t;return(t=(e=Ot())===null||e===void 0?void 0:e.emulatorHosts)===null||t===void 0?void 0:t[n]};var Nt=()=>{var n;return(n=Ot())===null||n===void 0?void 0:n.config},Dt=n=>{var e;return(e=Ot())===null||e===void 0?void 0:e[`_${n}`]};var K=class{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(t):e(t,r))}}};function _e(n){try{return(n.startsWith("http://")||n.startsWith("https://")?new URL(n).hostname:n).endsWith(".cloudworkstations.dev")}catch{return!1}}function dr(n){return a(this,null,function*(){return(yield fetch(n,{credentials:"include"})).ok})}var ge={};function qi(){let n={prod:[],emulator:[]};for(let e of Object.keys(ge))ge[e]?n.emulator.push(e):n.prod.push(e);return n}function Gi(n){let e=document.getElementById(n),t=!1;return e||(e=document.createElement("div"),e.setAttribute("id",n),t=!0),{created:t,element:e}}var or=!1;function hr(n,e){if(typeof window>"u"||typeof document>"u"||!_e(window.location.host)||ge[n]===e||ge[n]||or)return;ge[n]=e;function t(d){return`__firebase__banner__${d}`}let r="__firebase__banner",s=qi().prod.length>0;function o(){let d=document.getElementById(r);d&&d.remove()}function u(d){d.style.display="flex",d.style.background="#7faaf0",d.style.position="fixed",d.style.bottom="5px",d.style.left="5px",d.style.padding=".5em",d.style.borderRadius="5px",d.style.alignItems="center"}function c(d,g){d.setAttribute("width","24"),d.setAttribute("id",g),d.setAttribute("height","24"),d.setAttribute("viewBox","0 0 24 24"),d.setAttribute("fill","none"),d.style.marginLeft="-6px"}function l(){let d=document.createElement("span");return d.style.cursor="pointer",d.style.marginLeft="16px",d.style.fontSize="24px",d.innerHTML=" &times;",d.onclick=()=>{or=!0,o()},d}function h(d,g){d.setAttribute("id",g),d.innerText="Learn more",d.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",d.setAttribute("target","__blank"),d.style.paddingLeft="5px",d.style.textDecoration="underline"}function m(){let d=Gi(r),g=t("text"),y=document.getElementById(g)||document.createElement("span"),fe=t("learnmore"),ie=document.getElementById(fe)||document.createElement("a"),pe=t("preprendIcon"),j=document.getElementById(pe)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(d.created){let z=d.element;u(z),h(ie,fe);let Le=l();c(j,pe),z.append(j,y,ie,Le),document.body.appendChild(z)}s?(y.innerText="Preview backend disconnected.",j.innerHTML=`<g clip-path="url(#clip0_6013_33858)">
1
+ import{a as p,b as ir}from"./chunk-LHCYMCO6.js";import{a as er,c as tr}from"./chunk-KCWHXHND.js";import{H as nr,ga as rr}from"./chunk-GIG2MJLR.js";import{Ca as Zn,Fa as G,J as At,Pa as Qn,V as Gn,Y as Kn,_ as se,aa as Jn,ba as Yn,c as me,d as Hn,e as Bn,fa as xe,g as jn,gd as kt,h as zn,ia as Fe,j as Me,k as yt,ka as E,l as wt,la as Ve,m as bt,n as Ue,na as Xn,oa as We,sa as $e,t as qn,xa as U}from"./chunk-5N2PPLNS.js";import{a as Wn,b as $n,g as q,h as a}from"./chunk-YGFG76LK.js";var sr=()=>{};var cr=function(n){let e=[],t=0;for(let r=0;r<n.length;r++){let i=n.charCodeAt(r);i<128?e[t++]=i:i<2048?(e[t++]=i>>6|192,e[t++]=i&63|128):(i&64512)===55296&&r+1<n.length&&(n.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(n.charCodeAt(++r)&1023),e[t++]=i>>18|240,e[t++]=i>>12&63|128,e[t++]=i>>6&63|128,e[t++]=i&63|128):(e[t++]=i>>12|224,e[t++]=i>>6&63|128,e[t++]=i&63|128)}return e},$i=function(n){let e=[],t=0,r=0;for(;t<n.length;){let i=n[t++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){let s=n[t++];e[r++]=String.fromCharCode((i&31)<<6|s&63)}else if(i>239&&i<365){let s=n[t++],o=n[t++],u=n[t++],c=((i&7)<<18|(s&63)<<12|(o&63)<<6|u&63)-65536;e[r++]=String.fromCharCode(55296+(c>>10)),e[r++]=String.fromCharCode(56320+(c&1023))}else{let s=n[t++],o=n[t++];e[r++]=String.fromCharCode((i&15)<<12|(s&63)<<6|o&63)}}return e.join("")},He={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(n,e){if(!Array.isArray(n))throw Error("encodeByteArray takes an array as a parameter");this.init_();let t=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<n.length;i+=3){let s=n[i],o=i+1<n.length,u=o?n[i+1]:0,c=i+2<n.length,l=c?n[i+2]:0,h=s>>2,m=(s&3)<<4|u>>4,d=(u&15)<<2|l>>6,g=l&63;c||(g=64,o||(d=64)),r.push(t[h],t[m],t[d],t[g])}return r.join("")},encodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(n):this.encodeByteArray(cr(n),e)},decodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(n):$i(this.decodeStringToByteArray(n,e))},decodeStringToByteArray(n,e){this.init_();let t=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<n.length;){let s=t[n.charAt(i++)],u=i<n.length?t[n.charAt(i)]:0;++i;let l=i<n.length?t[n.charAt(i)]:64;++i;let m=i<n.length?t[n.charAt(i)]:64;if(++i,s==null||u==null||l==null||m==null)throw new Rt;let d=s<<2|u>>4;if(r.push(d),l!==64){let g=u<<4&240|l>>2;if(r.push(g),m!==64){let y=l<<6&192|m;r.push(y)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let n=0;n<this.ENCODED_VALS.length;n++)this.byteToCharMap_[n]=this.ENCODED_VALS.charAt(n),this.charToByteMap_[this.byteToCharMap_[n]]=n,this.byteToCharMapWebSafe_[n]=this.ENCODED_VALS_WEBSAFE.charAt(n),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[n]]=n,n>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(n)]=n,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(n)]=n)}}},Rt=class extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}},Hi=function(n){let e=cr(n);return He.encodeByteArray(e,!0)},Ct=function(n){return Hi(n).replace(/\./g,"")},Be=function(n){try{return He.decodeString(n,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function ur(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}var Bi=()=>ur().__FIREBASE_DEFAULTS__,ji=()=>{if(typeof process>"u"||typeof process.env>"u")return;let n=process.env.__FIREBASE_DEFAULTS__;if(n)return JSON.parse(n)},zi=()=>{if(typeof document>"u")return;let n;try{n=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}let e=n&&Be(n[1]);return e&&JSON.parse(e)},Ot=()=>{try{return sr()||Bi()||ji()||zi()}catch(n){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);return}},lr=n=>{var e,t;return(t=(e=Ot())===null||e===void 0?void 0:e.emulatorHosts)===null||t===void 0?void 0:t[n]};var Nt=()=>{var n;return(n=Ot())===null||n===void 0?void 0:n.config},Dt=n=>{var e;return(e=Ot())===null||e===void 0?void 0:e[`_${n}`]};var K=class{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(t):e(t,r))}}};function _e(n){try{return(n.startsWith("http://")||n.startsWith("https://")?new URL(n).hostname:n).endsWith(".cloudworkstations.dev")}catch{return!1}}function dr(n){return a(this,null,function*(){return(yield fetch(n,{credentials:"include"})).ok})}var ge={};function qi(){let n={prod:[],emulator:[]};for(let e of Object.keys(ge))ge[e]?n.emulator.push(e):n.prod.push(e);return n}function Gi(n){let e=document.getElementById(n),t=!1;return e||(e=document.createElement("div"),e.setAttribute("id",n),t=!0),{created:t,element:e}}var or=!1;function hr(n,e){if(typeof window>"u"||typeof document>"u"||!_e(window.location.host)||ge[n]===e||ge[n]||or)return;ge[n]=e;function t(d){return`__firebase__banner__${d}`}let r="__firebase__banner",s=qi().prod.length>0;function o(){let d=document.getElementById(r);d&&d.remove()}function u(d){d.style.display="flex",d.style.background="#7faaf0",d.style.position="fixed",d.style.bottom="5px",d.style.left="5px",d.style.padding=".5em",d.style.borderRadius="5px",d.style.alignItems="center"}function c(d,g){d.setAttribute("width","24"),d.setAttribute("id",g),d.setAttribute("height","24"),d.setAttribute("viewBox","0 0 24 24"),d.setAttribute("fill","none"),d.style.marginLeft="-6px"}function l(){let d=document.createElement("span");return d.style.cursor="pointer",d.style.marginLeft="16px",d.style.fontSize="24px",d.innerHTML=" &times;",d.onclick=()=>{or=!0,o()},d}function h(d,g){d.setAttribute("id",g),d.innerText="Learn more",d.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",d.setAttribute("target","__blank"),d.style.paddingLeft="5px",d.style.textDecoration="underline"}function m(){let d=Gi(r),g=t("text"),y=document.getElementById(g)||document.createElement("span"),fe=t("learnmore"),ie=document.getElementById(fe)||document.createElement("a"),pe=t("preprendIcon"),j=document.getElementById(pe)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(d.created){let z=d.element;u(z),h(ie,fe);let Le=l();c(j,pe),z.append(j,y,ie,Le),document.body.appendChild(z)}s?(y.innerText="Preview backend disconnected.",j.innerHTML=`<g clip-path="url(#clip0_6013_33858)">
2
2
  <path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>
3
3
  </g>
4
4
  <defs>