dealposbarcode 26.4.2 → 26.4.3
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.
- package/{chunk-GMOHNLLM.js → chunk-32RUK2T5.js} +1 -1
- package/{chunk-JICYLOOO.js → chunk-4DRTDHRE.js} +1 -1
- package/{chunk-ZQF4J35F.js → chunk-C2DXV7EV.js} +1 -1
- package/{chunk-US5V2O4J.js → chunk-F5KS2P5L.js} +1 -1
- package/chunk-LHCYMCO6.js +1 -0
- package/{chunk-5L565USQ.js → chunk-N65KHPS3.js} +1 -1
- package/{chunk-6YHELCHZ.js → chunk-OCL2QAWG.js} +1 -1
- package/{chunk-E3QK3ODC.js → chunk-OWXXWW2X.js} +24 -24
- package/{chunk-S3GMQLAP.js → chunk-QLK4C7FF.js} +1 -1
- package/index.html +2 -2
- package/{main-AFTQPQ3A.js → main-X3GFE3YS.js} +2 -2
- package/ngsw.json +22 -22
- package/package.json +1 -1
- package/chunk-HNED55G6.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as U,e as V}from"./chunk-
|
|
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-
|
|
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-
|
|
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};
|