dealposbarcode 25.50.0 → 26.1.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.
Files changed (49) hide show
  1. package/assets/scss/style.scss +28 -3
  2. package/chunk-5BDSDZBJ.js +1 -0
  3. package/chunk-66XEEZ6W.js +194 -0
  4. package/chunk-6RPDTK47.js +1 -0
  5. package/chunk-7PT4SS5X.js +1127 -0
  6. package/chunk-7RSU6VFI.js +1 -0
  7. package/chunk-CQL43DMM.js +1 -0
  8. package/chunk-F55DH2GX.js +27 -0
  9. package/chunk-HRRVAKK6.js +2 -0
  10. package/chunk-IKSROKD5.css +1 -0
  11. package/chunk-JCQ56J6G.js +4 -0
  12. package/chunk-JMQFG4UA.js +1 -0
  13. package/chunk-Q4SH5RTJ.js +1848 -0
  14. package/chunk-SMR7YI5J.js +1 -0
  15. package/{chunk-UBR4JEV7.js → chunk-VMNBWQIP.js} +1 -1
  16. package/chunk-Z3B3WOTF.js +18 -0
  17. package/index.html +3 -3
  18. package/main-4BFS7RVV.css +1 -0
  19. package/main-5MCDZ3FK.js +248 -0
  20. package/ngsw-worker.js +469 -70
  21. package/ngsw.json +40 -52
  22. package/package.json +1 -1
  23. package/polyfills-DHHU6LMO.js +2 -0
  24. package/styles-XWKQSHJN.css +1 -0
  25. package/chunk-377TROCD.js +0 -1
  26. package/chunk-4CITKGGL.js +0 -1
  27. package/chunk-7V3KH6IR.js +0 -394
  28. package/chunk-CARY4E7O.js +0 -1
  29. package/chunk-D67JO2HG.css +0 -1
  30. package/chunk-G2JXUY7S.js +0 -2
  31. package/chunk-G4LJCV6B.js +0 -1
  32. package/chunk-HHB3BUIC.js +0 -1
  33. package/chunk-I535BP2A.js +0 -1
  34. package/chunk-JYD2NJXU.js +0 -1
  35. package/chunk-L2JD4R6O.js +0 -1
  36. package/chunk-LTVGOJEF.js +0 -2
  37. package/chunk-RH3ZV23S.js +0 -4
  38. package/chunk-SCXFN4EA.js +0 -1
  39. package/chunk-UE2JJIFL.js +0 -7
  40. package/chunk-WBD3XQRN.js +0 -1
  41. package/chunk-X4PZGB4F.js +0 -2
  42. package/main-J35CSAIS.css +0 -1
  43. package/main-SNJDWW52.js +0 -605
  44. package/media/data-table-2IZ2Q4SK.woff +0 -0
  45. package/media/data-table-AKMZFM4M.svg +0 -26
  46. package/media/data-table-DGQ4LQQR.eot +0 -0
  47. package/media/data-table-J6MZE774.ttf +0 -0
  48. package/polyfills-Q6W4YVDR.js +0 -2
  49. package/styles-7YJ7GGGE.css +0 -1
@@ -0,0 +1 @@
1
+ import{f as V,g as q}from"./chunk-Q4SH5RTJ.js";import{p as A}from"./chunk-7PT4SS5X.js";import"./chunk-JMQFG4UA.js";import{i as x}from"./chunk-HRRVAKK6.js";import{F as O,e as $,ga as U,h as R,i as W,k as j,y as N}from"./chunk-Z3B3WOTF.js";import{Bb as g,Bc as s,Cc as d,Dc as w,Hb as E,L as b,Oc as u,Pc as C,Qc as P,Rb as S,Sb as f,Sc as M,Vb as I,Wb as H,Xb as a,Yb as l,Zb as c,_b as k,_c as B,da as F,ib as t,mc as h,p as D,pa as y,v as T,w as L,xc as _,za as z}from"./chunk-JCQ56J6G.js";import"./chunk-7RSU6VFI.js";function K(i,r){if(i&1&&(l(0,"div",2)(1,"span"),s(2),c(),l(3,"span"),s(4),u(5,"number"),c()(),l(6,"span",2),s(7),u(8,"date"),c()),i&2){let o=h();a("ngStyle",o.stickerHeaderDesc1Style),t(2),d(o.priceLabelTemplate.CurrencySymbol),t(2),d(C(5,5,o.item().product.UnitPrice)),t(2),a("ngStyle",o.stickerHeaderDesc2Style),t(),w("sd ",P(8,7,o.item().promotion.ExpirationDate,"dd-MM-yyyy"))}}function Q(i,r){if(i&1&&(l(0,"span",2),s(1),c(),l(2,"span",2),s(3),u(4,"number"),c()),i&2){let o=h();_("font-size",o.priceLabelTemplate.CurrencySymbolFontSize+"px"),a("ngStyle",o.stickerContentHeaderDesc1Style),t(),d(o.priceLabelTemplate.CurrencySymbol),t(),a("ngStyle",o.stickerContentHeaderDesc2Style),t(),d(C(4,6,o.promotionDiscount(o.item().promotion)))}}function X(i,r){if(i&1&&(l(0,"span",2),s(1),c(),l(2,"span",2),s(3),u(4,"number"),c()),i&2){let o=h();_("font-size",o.priceLabelTemplate.CurrencySymbolFontSize+"px"),a("ngStyle",o.stickerContentHeaderDesc1Style),t(),d(o.priceLabelTemplate.CurrencySymbol),t(),a("ngStyle",o.stickerContentHeaderDesc2Style),t(),d(C(4,6,o.item().product.UnitPrice))}}function Y(i,r){i&1&&(l(0,"span"),s(1," PROMOSI "),c(),l(2,"span"),s(3," PROMOSI "),c())}var G=(()=>{let r=class r{constructor(){this.appStore=y(x),this.item=B(),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`}:{}}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(p){throw new Error("error: "+(p instanceof Error?p.message:String(p)))}}};r.\u0275fac=function(p){return new(p||r)},r.\u0275cmp=g({type:r,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(p,n){p&1&&(l(0,"div",0)(1,"div",1),S(2,K,9,10),c(),l(3,"div",2)(4,"div",2),S(5,Q,5,8)(6,X,5,8),c(),l(7,"div",2)(8,"span",2),s(9),c(),l(10,"span",2),s(11),c()()(),l(12,"div",2)(13,"div",2)(14,"span",2),s(15),u(16,"date"),c()(),l(17,"div",2)(18,"div",2),S(19,Y,4,0),c(),l(20,"span",2),s(21),c()()()()),p&2&&(a("ngStyle",n.stickerStyle),t(),a("ngStyle",n.stickerHeaderStyle),t(),f(n.item().promotion?2:-1),t(),a("ngStyle",n.stickerContentStyle),t(),a("ngStyle",n.stickerContentHeaderStyle),t(),f(n.item().promotion?5:6),t(2),a("ngStyle",n.stickerContentBodyStyle),t(),a("ngStyle",n.stickerContentBodyDesc1Style),t(),d(n.item().product.Name),t(),a("ngStyle",n.stickerContentBodyDesc2Style),t(),d(n.item().product.Code),t(),a("ngStyle",n.stickerFooterStyle),t(),a("ngStyle",n.stickerFooterHeaderStyle),t(),a("ngStyle",n.stickerFooterHeaderDesc1Style),t(),d(P(16,20,n.printDate,"dd-MM-yyyy")),t(2),a("ngStyle",n.stickerFooterBodyStyle),t(),a("ngStyle",n.stickerFooterBodyDesc1Style),t(),f(n.item().promotion?19:-1),t(),a("ngStyle",n.stickerFooterBodyDesc2Style),t(),d(n.priceLabelTemplate.CompanyNameLabel))},dependencies:[j,$,W,R],encapsulation:2,changeDetection:0});let i=r;return i})();var Z=(i,r)=>r.id;function ee(i,r){i&1&&k(0,"choose-product")}function te(i,r){if(i&1&&k(0,"app-label-preview",2),i&2){let o=r.$implicit;a("item",o)}}function ie(i,r){if(i&1&&I(0,te,1,1,"app-label-preview",2,Z),i&2){let o=r.$implicit;H(o)}}function ne(i,r){i&1&&(l(0,"app-customize-label",1),E(1,ie,2,0,"ng-template",null,0,M),c())}var _e=(()=>{let r=class r{constructor(){this.store=y(A),this.appStore=y(x),this.httpService=y(U),this.destroyRef=y(z),this.routes=y(N)}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 p=this.httpService.post("api/ConfigShelf/PaperConfig",{SubDomain:e}).pipe(b(m=>D({error:m}))),n=this.httpService.get("/API/V3/Tax",void 0,`https://${e}`).pipe(b(m=>D({error:m})));L([p,n]).pipe(O(this.destroyRef),T(([m,v])=>this.normalizeResponses(m,v)),F(({paperConfig:m,taxs:v})=>this.applyDataToStore(m,v))).subscribe()}normalizeResponses(e,p){let n=m=>m&&"error"in m;return{paperConfig:n(e)?null:e,taxs:n(p)?null:p}}applyDataToStore(e,p){e&&this.store.onChangeShelfLabelConfig(e),p&&this.store.onChangeTaxs(p)}};r.\u0275fac=function(p){return new(p||r)},r.\u0275cmp=g({type:r,selectors:[["app-price-label-wrapper"]],decls:2,vars:1,consts:[["content",""],["sidebarConfig","label"],[3,"item"]],template:function(p,n){if(p&1&&S(0,ee,1,0,"choose-product")(1,ne,3,0,"app-customize-label",1),p&2){let m;f((m=n.currentStep)===1?0:m===2?1:-1)}},dependencies:[V,q,G],styles:["[_nghost-%COMP%]{display:block;height:100%}.divider[_ngcontent-%COMP%]{border:1px dashed #000;width:100%}"],changeDetection:0});let i=r;return i})();export{_e as PriceLabelWrapperComponent};
@@ -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.50.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:"26.1.0"};export{e as a};