dealposbarcode 1.8.4 → 25.39.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,4 +1,4 @@
1
- import{a as Ss,b as Ls,c as Im}from"./chunk-BVFPFG2Y.js";import{a as js,b as $i,c as Di,d as Hs}from"./chunk-WV652PSI.js";import{a as Vc}from"./chunk-Y7ZU5TZX.js";import{$ as Em,B as kt,C as Vt,D as Es,F as Is,G as Ds,H as Ui,I as gt,J as bt,K as Br,L as ks,M as Ts,N as Ms,O as Os,P as Fs,Q as As,S as Cm,T as Sm,U as Rs,V as Bs,W as Ns,Y as zs,Z as Pm,a as Pi,aa as zr,b as xs,d as Cs,da as Wi,ia as $c,ja as Dm,k as vm,l as Vi,n as Ei,o as _m,q as ym,r as Rt,s as Dt,t as wm,u as Rr,v as ht,w as mt,x as xm,y as ft,z as Ps}from"./chunk-AJDEWWQT.js";import{$a as fs,$b as ce,$c as Hc,Aa as Ge,Ab as W,Ac as dm,Ad as et,Bc as pm,C as wt,Ca as U,Cb as ci,Cc as um,Cd as bm,D as us,Da as O,Dc as di,Ea as Fc,Eb as gs,Ec as fe,Fa as Ac,Fc as He,Gb as To,Gc as Fo,H as Hi,Ha as pe,Hb as kn,I as qe,Ia as _e,Id as Ao,J as em,Ja as Ve,Jb as zc,Jc as Je,Jd as $n,Ka as ms,Kb as B,Kc as pi,Kd as Ro,Lb as cm,Lc as Si,M as tm,Mb as Ci,Mc as jc,Md as Ii,N as im,Nc as we,Nd as sn,O as nm,Oa as sm,Ob as Lt,P as Hn,Pd as Nr,Qd as Uc,Ra as $t,Rb as H,Rd as Wc,S as Vn,Sa as X,Sb as Lc,Ta as K,Tb as Mo,U as at,Ua as Rc,Ub as $e,Uc as hm,Va as Bc,Vb as C,Wa as Ye,Wb as Oo,Xa as Ct,Xb as Ze,Xc as It,Y as Mc,Yb as rn,Z as En,Za as je,Zb as bs,Zc as xt,_a as Ue,_c as mm,a as _,aa as Pr,ab as ko,ac as kr,ad as fm,b as k,bb as Ce,bc as Tn,bd as an,c as Cr,ca as In,cb as Dn,cc as St,d as q,dc as Pt,e as Ne,ea as rm,ec as h,fa as Do,fc as m,g as j,gb as Nc,gc as J,h as Sr,ha as om,hb as Ir,hc as vs,hd as ze,i as cs,ib as lm,ic as _s,j as ds,jc as on,k as ps,kc as Se,l as ei,lc as Tr,md as ys,n as Ft,na as am,nc as N,oa as Oc,oc as S,od as Mn,pa as hs,pc as jt,q as Te,qa as Ai,qc as At,qd as Mr,r as Io,ra as nn,sa as ti,sb as Dr,sc as Et,ta as Ee,tc as ut,ub as Un,uc as Fe,ud as Or,vc as Ae,vd as Fr,wa as Er,wc as Wn,xa as be,xc as b,xd as ws,ya as ve,yc as P,yd as Ar,zb as f,zc as Ht,zd as gm}from"./chunk-PNNBJ4WR.js";var of=q((pA,rf)=>{var s1=4,l1=.001,c1=1e-7,d1=10,Vo=11,Ks=1/(Vo-1),p1=typeof Float32Array=="function";function Jm(i,t){return 1-3*t+3*i}function ef(i,t){return 3*t-6*i}function tf(i){return 3*i}function Qs(i,t,e){return((Jm(t,e)*i+ef(t,e))*i+tf(t))*i}function nf(i,t,e){return 3*Jm(t,e)*i*i+2*ef(t,e)*i+tf(t)}function u1(i,t,e,n,r){var o,a,s=0;do a=t+(e-t)/2,o=Qs(a,n,r)-i,o>0?e=a:t=a;while(Math.abs(o)>c1&&++s<d1);return a}function h1(i,t,e,n){for(var r=0;r<s1;++r){var o=nf(t,e,n);if(o===0)return t;var a=Qs(t,e,n)-i;t-=a/o}return t}function m1(i){return i}rf.exports=function(t,e,n,r){if(!(0<=t&&t<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===r)return m1;for(var o=p1?new Float32Array(Vo):new Array(Vo),a=0;a<Vo;++a)o[a]=Qs(a*Ks,t,n);function s(l){for(var c=0,d=1,p=Vo-1;d!==p&&o[d]<=l;++d)c+=Ks;--d;var v=(l-o[d])/(o[d+1]-o[d]),g=c+v*Ks,w=nf(g,t,n);return w>=l1?h1(l,g,t,n):w===0?g:u1(l,c,c+Ks,t,n)}return function(c){return c===0?0:c===1?1:Qs(s(c),e,r)}}});var Cg=q((nz,xg)=>{xg.exports=function(){var t={},e=t._fns={};t.emit=function(a,s,l,c,d,p,v){var g=n(a);g.length&&r(a,g,[s,l,c,d,p,v])},t.on=function(a,s){e[a]||(e[a]=[]),e[a].push(s)},t.once=function(a,s){function l(){s.apply(this,arguments),t.off(a,l)}this.on(a,l)},t.off=function(a,s){var l=[];if(a&&s){var c=this._fns[a],d=0,p=c?c.length:0;for(d;d<p;d++)c[d]!==s&&l.push(c[d])}l.length?this._fns[a]=l:delete this._fns[a]};function n(o){var a=e[o]?e[o]:[],s=o.indexOf(":"),l=s===-1?[o]:[o.substring(0,s),o.substring(s+1)],c=Object.keys(e),d=0,p=c.length;for(d;d<p;d++){var v=c[d];if(v==="*"&&(a=a.concat(e[v])),l.length===2&&l[0]===v){a=a.concat(e[v]);break}}return a}function r(o,a,s){var l=0,c=a.length;for(l;l<c&&a[l];l++)a[l].event=o,a[l].apply(a[l],s)}return t}});var wl=q((oz,Sg)=>{function cC(i){var t=typeof i;return i!=null&&(t=="object"||t=="function")}Sg.exports=cC});var Eg=q((az,Pg)=>{var dC=typeof global=="object"&&global&&global.Object===Object&&global;Pg.exports=dC});var Ld=q((sz,Ig)=>{var pC=Eg(),uC=typeof self=="object"&&self&&self.Object===Object&&self,hC=pC||uC||Function("return this")();Ig.exports=hC});var kg=q((lz,Dg)=>{var mC=Ld(),fC=function(){return mC.Date.now()};Dg.exports=fC});var Mg=q((cz,Tg)=>{var gC=/\s/;function bC(i){for(var t=i.length;t--&&gC.test(i.charAt(t)););return t}Tg.exports=bC});var Fg=q((dz,Og)=>{var vC=Mg(),_C=/^\s+/;function yC(i){return i&&i.slice(0,vC(i)+1).replace(_C,"")}Og.exports=yC});var jd=q((pz,Ag)=>{var wC=Ld(),xC=wC.Symbol;Ag.exports=xC});var zg=q((uz,Ng)=>{var Rg=jd(),Bg=Object.prototype,CC=Bg.hasOwnProperty,SC=Bg.toString,ia=Rg?Rg.toStringTag:void 0;function PC(i){var t=CC.call(i,ia),e=i[ia];try{i[ia]=void 0;var n=!0}catch{}var r=SC.call(i);return n&&(t?i[ia]=e:delete i[ia]),r}Ng.exports=PC});var jg=q((hz,Lg)=>{var EC=Object.prototype,IC=EC.toString;function DC(i){return IC.call(i)}Lg.exports=DC});var Wg=q((mz,Ug)=>{var Hg=jd(),kC=zg(),TC=jg(),MC="[object Null]",OC="[object Undefined]",Vg=Hg?Hg.toStringTag:void 0;function FC(i){return i==null?i===void 0?OC:MC:Vg&&Vg in Object(i)?kC(i):TC(i)}Ug.exports=FC});var qg=q((fz,$g)=>{function AC(i){return i!=null&&typeof i=="object"}$g.exports=AC});var Yg=q((gz,Gg)=>{var RC=Wg(),BC=qg(),NC="[object Symbol]";function zC(i){return typeof i=="symbol"||BC(i)&&RC(i)==NC}Gg.exports=zC});var Zg=q((bz,Qg)=>{var LC=Fg(),Xg=wl(),jC=Yg(),Kg=NaN,HC=/^[-+]0x[0-9a-f]+$/i,VC=/^0b[01]+$/i,UC=/^0o[0-7]+$/i,WC=parseInt;function $C(i){if(typeof i=="number")return i;if(jC(i))return Kg;if(Xg(i)){var t=typeof i.valueOf=="function"?i.valueOf():i;i=Xg(t)?t+"":t}if(typeof i!="string")return i===0?i:+i;i=LC(i);var e=VC.test(i);return e||UC.test(i)?WC(i.slice(2),e?2:8):HC.test(i)?Kg:+i}Qg.exports=$C});var Vd=q((vz,e0)=>{var qC=wl(),Hd=kg(),Jg=Zg(),GC="Expected a function",YC=Math.max,XC=Math.min;function KC(i,t,e){var n,r,o,a,s,l,c=0,d=!1,p=!1,v=!0;if(typeof i!="function")throw new TypeError(GC);t=Jg(t)||0,qC(e)&&(d=!!e.leading,p="maxWait"in e,o=p?YC(Jg(e.maxWait)||0,t):o,v="trailing"in e?!!e.trailing:v);function g(y){var x=n,D=r;return n=r=void 0,c=y,a=i.apply(D,x),a}function w(y){return c=y,s=setTimeout(F,t),d?g(y):a}function E(y){var x=y-l,D=y-c,z=t-x;return p?XC(z,o-D):z}function L(y){var x=y-l,D=y-c;return l===void 0||x>=t||x<0||p&&D>=o}function F(){var y=Hd();if(L(y))return G(y);s=setTimeout(F,E(y))}function G(y){return s=void 0,v&&n?g(y):(n=r=void 0,a)}function he(){s!==void 0&&clearTimeout(s),c=0,n=l=r=s=void 0}function me(){return s===void 0?a:G(Hd())}function ae(){var y=Hd(),x=L(y);if(n=arguments,r=this,l=y,x){if(s===void 0)return w(l);if(p)return clearTimeout(s),s=setTimeout(F,t),g(l)}return s===void 0&&(s=setTimeout(F,t)),a}return ae.cancel=he,ae.flush=me,ae}e0.exports=KC});var i0=q((_z,t0)=>{var QC=Vd(),ZC=wl(),JC="Expected a function";function eS(i,t,e){var n=!0,r=!0;if(typeof i!="function")throw new TypeError(JC);return ZC(e)&&(n="leading"in e?!!e.leading:n,r="trailing"in e?!!e.trailing:r),QC(i,t,{leading:n,maxWait:t,trailing:r})}t0.exports=eS});var ra=q((Rz,c0)=>{"use strict";c0.exports=function(t){if(typeof t!="number"||Number.isNaN(t))throw new TypeError(`Expected a number, got ${typeof t}`);let e=t<0,n=Math.abs(t);if(e&&(n=-n),n===0)return"0 B";let r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.min(Math.floor(Math.log(n)/Math.log(1024)),r.length-1),a=Number(n/1024**o),s=r[o];return`${a>=10||a%1===0?Math.round(a):a.toFixed(1)} ${s}`}});var u0=q((Bz,p0)=>{"use strict";function d0(i,t){this.text=i=i||"",this.hasWild=~i.indexOf("*"),this.separator=t,this.parts=i.split(t)}d0.prototype.match=function(i){var t=!0,e=this.parts,n,r=e.length,o;if(typeof i=="string"||i instanceof String)if(!this.hasWild&&this.text!=i)t=!1;else{for(o=(i||"").split(this.separator),n=0;t&&n<r;n++)e[n]!=="*"&&(n<o.length?t=e[n]===o[n]:t=!1);t=t&&o}else if(typeof i.splice=="function")for(t=[],n=i.length;n--;)this.match(i[n])&&(t[t.length]=i[n]);else if(typeof i=="object"){t={};for(var a in i)this.match(a)&&(t[a]=i[a])}return t};p0.exports=function(i,t,e){var n=new d0(i,e||/[\/\.]/);return typeof t<"u"?n.match(t):n}});var m0=q((Nz,h0)=>{var aS=u0(),sS=/[\/\+\.]/;h0.exports=function(i,t){function e(n){var r=aS(n,i,sS);return r&&r.length>=2}return t?e(t.split(";")[0]):e}});var Gt=q((v4,Al)=>{(function(){"use strict";var i={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(r=n(r,e(a)))}return r}function e(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var a in r)i.call(r,a)&&r[a]&&(o=n(o,a));return o}function n(r,o){return o?r?r+" "+o:r+o:r}typeof Al<"u"&&Al.exports?(t.default=t,Al.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var Rb=q((C8,Gp)=>{"use strict";var BP=Object.prototype.hasOwnProperty,Xt="~";function Aa(){}Object.create&&(Aa.prototype=Object.create(null),new Aa().__proto__||(Xt=!1));function NP(i,t,e){this.fn=i,this.context=t,this.once=e||!1}function Ab(i,t,e,n,r){if(typeof e!="function")throw new TypeError("The listener must be a function");var o=new NP(e,n||i,r),a=Xt?Xt+t:t;return i._events[a]?i._events[a].fn?i._events[a]=[i._events[a],o]:i._events[a].push(o):(i._events[a]=o,i._eventsCount++),i}function Jl(i,t){--i._eventsCount===0?i._events=new Aa:delete i._events[t]}function Ut(){this._events=new Aa,this._eventsCount=0}Ut.prototype.eventNames=function(){var t=[],e,n;if(this._eventsCount===0)return t;for(n in e=this._events)BP.call(e,n)&&t.push(Xt?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(e)):t};Ut.prototype.listeners=function(t){var e=Xt?Xt+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a};Ut.prototype.listenerCount=function(t){var e=Xt?Xt+t:t,n=this._events[e];return n?n.fn?1:n.length:0};Ut.prototype.emit=function(t,e,n,r,o,a){var s=Xt?Xt+t:t;if(!this._events[s])return!1;var l=this._events[s],c=arguments.length,d,p;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,r),!0;case 5:return l.fn.call(l.context,e,n,r,o),!0;case 6:return l.fn.call(l.context,e,n,r,o,a),!0}for(p=1,d=new Array(c-1);p<c;p++)d[p-1]=arguments[p];l.fn.apply(l.context,d)}else{var v=l.length,g;for(p=0;p<v;p++)switch(l[p].once&&this.removeListener(t,l[p].fn,void 0,!0),c){case 1:l[p].fn.call(l[p].context);break;case 2:l[p].fn.call(l[p].context,e);break;case 3:l[p].fn.call(l[p].context,e,n);break;case 4:l[p].fn.call(l[p].context,e,n,r);break;default:if(!d)for(g=1,d=new Array(c-1);g<c;g++)d[g-1]=arguments[g];l[p].fn.apply(l[p].context,d)}}return!0};Ut.prototype.on=function(t,e,n){return Ab(this,t,e,n,!1)};Ut.prototype.once=function(t,e,n){return Ab(this,t,e,n,!0)};Ut.prototype.removeListener=function(t,e,n,r){var o=Xt?Xt+t:t;if(!this._events[o])return this;if(!e)return Jl(this,o),this;var a=this._events[o];if(a.fn)a.fn===e&&(!r||a.once)&&(!n||a.context===n)&&Jl(this,o);else{for(var s=0,l=[],c=a.length;s<c;s++)(a[s].fn!==e||r&&!a[s].once||n&&a[s].context!==n)&&l.push(a[s]);l.length?this._events[o]=l.length===1?l[0]:l:Jl(this,o)}return this};Ut.prototype.removeAllListeners=function(t){var e;return t?(e=Xt?Xt+t:t,this._events[e]&&Jl(this,e)):(this._events=new Aa,this._eventsCount=0),this};Ut.prototype.off=Ut.prototype.removeListener;Ut.prototype.addListener=Ut.prototype.on;Ut.prefixed=Xt;Ut.EventEmitter=Ut;typeof Gp<"u"&&(Gp.exports=Ut)});var Sv=q((Du,ku)=>{(function(i,t){typeof Du=="object"&&typeof ku<"u"?ku.exports=t():typeof define=="function"&&define.amd?define(t):(i=typeof globalThis<"u"?globalThis:i||self,i.Compressor=t())})(Du,function(){"use strict";function i(A,I){var T=Object.keys(A);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(A);I&&(M=M.filter(function(R){return Object.getOwnPropertyDescriptor(A,R).enumerable})),T.push.apply(T,M)}return T}function t(A){for(var I=1;I<arguments.length;I++){var T=arguments[I]!=null?arguments[I]:{};I%2?i(Object(T),!0).forEach(function(M){o(A,M,T[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(T)):i(Object(T)).forEach(function(M){Object.defineProperty(A,M,Object.getOwnPropertyDescriptor(T,M))})}return A}function e(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function n(A,I){for(var T=0;T<I.length;T++){var M=I[T];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(A,l(M.key),M)}}function r(A,I,T){return I&&n(A.prototype,I),T&&n(A,T),Object.defineProperty(A,"prototype",{writable:!1}),A}function o(A,I,T){return I=l(I),I in A?Object.defineProperty(A,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):A[I]=T,A}function a(){return a=Object.assign?Object.assign.bind():function(A){for(var I=1;I<arguments.length;I++){var T=arguments[I];for(var M in T)Object.prototype.hasOwnProperty.call(T,M)&&(A[M]=T[M])}return A},a.apply(this,arguments)}function s(A,I){if(typeof A!="object"||A===null)return A;var T=A[Symbol.toPrimitive];if(T!==void 0){var M=T.call(A,I||"default");if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(I==="string"?String:Number)(A)}function l(A){var I=s(A,"string");return typeof I=="symbol"?I:String(I)}var c={exports:{}};(function(A){typeof window>"u"||function(I){var T=I.HTMLCanvasElement&&I.HTMLCanvasElement.prototype,M=I.Blob&&function(){try{return!!new Blob}catch{return!1}}(),R=M&&I.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch{return!1}}(),Y=I.BlobBuilder||I.WebKitBlobBuilder||I.MozBlobBuilder||I.MSBlobBuilder,le=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,Z=(M||Y)&&I.atob&&I.ArrayBuffer&&I.Uint8Array&&function(Q){var te,de,ue,Pe,re,oe,De,ke,Zt;if(te=Q.match(le),!te)throw new Error("invalid data URI");for(de=te[2]?te[1]:"text/plain"+(te[3]||";charset=US-ASCII"),ue=!!te[4],Pe=Q.slice(te[0].length),ue?re=atob(Pe):re=decodeURIComponent(Pe),oe=new ArrayBuffer(re.length),De=new Uint8Array(oe),ke=0;ke<re.length;ke+=1)De[ke]=re.charCodeAt(ke);return M?new Blob([R?De:oe],{type:de}):(Zt=new Y,Zt.append(oe),Zt.getBlob(de))};I.HTMLCanvasElement&&!T.toBlob&&(T.mozGetAsFile?T.toBlob=function(Q,te,de){var ue=this;setTimeout(function(){de&&T.toDataURL&&Z?Q(Z(ue.toDataURL(te,de))):Q(ue.mozGetAsFile("blob",te))})}:T.toDataURL&&Z&&(T.msToBlob?T.toBlob=function(Q,te,de){var ue=this;setTimeout(function(){(te&&te!=="image/png"||de)&&T.toDataURL&&Z?Q(Z(ue.toDataURL(te,de))):Q(ue.msToBlob(te))})}:T.toBlob=function(Q,te,de){var ue=this;setTimeout(function(){Q(Z(ue.toDataURL(te,de)))})})),A.exports?A.exports=Z:I.dataURLtoBlob=Z}(window)})(c);var d=c.exports,p=function(I){return typeof Blob>"u"?!1:I instanceof Blob||Object.prototype.toString.call(I)==="[object Blob]"},v={strict:!0,checkOrientation:!0,retainExif:!1,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},g=typeof window<"u"&&typeof window.document<"u",w=g?window:{},E=function(I){return I>0&&I<1/0},L=Array.prototype.slice;function F(A){return Array.from?Array.from(A):L.call(A)}var G=/^image\/.+$/;function he(A){return G.test(A)}function me(A){var I=he(A)?A.substr(6):"";return I==="jpeg"&&(I="jpg"),".".concat(I)}var ae=String.fromCharCode;function y(A,I,T){var M="",R;for(T+=I,R=I;R<T;R+=1)M+=ae(A.getUint8(R));return M}var x=w.btoa;function D(A,I){for(var T=[],M=8192,R=new Uint8Array(A);R.length>0;)T.push(ae.apply(null,F(R.subarray(0,M)))),R=R.subarray(M);return"data:".concat(I,";base64,").concat(x(T.join("")))}function z(A){var I=new DataView(A),T;try{var M,R,Y;if(I.getUint8(0)===255&&I.getUint8(1)===216)for(var le=I.byteLength,Z=2;Z+1<le;){if(I.getUint8(Z)===255&&I.getUint8(Z+1)===225){R=Z;break}Z+=1}if(R){var Q=R+4,te=R+10;if(y(I,Q,4)==="Exif"){var de=I.getUint16(te);if(M=de===18761,(M||de===19789)&&I.getUint16(te+2,M)===42){var ue=I.getUint32(te+4,M);ue>=8&&(Y=te+ue)}}}if(Y){var Pe=I.getUint16(Y,M),re,oe;for(oe=0;oe<Pe;oe+=1)if(re=Y+oe*12+2,I.getUint16(re,M)===274){re+=8,T=I.getUint16(re,M),I.setUint16(re,1,M);break}}}catch{T=1}return T}function V(A){var I=0,T=1,M=1;switch(A){case 2:T=-1;break;case 3:I=-180;break;case 4:M=-1;break;case 5:I=90,M=-1;break;case 6:I=90;break;case 7:I=90,T=-1;break;case 8:I=-90;break}return{rotate:I,scaleX:T,scaleY:M}}var ie=/\.\d*(?:0|9){12}\d*$/;function Ie(A){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return ie.test(A)?Math.round(A*I)/I:A}function it(A){var I=A.aspectRatio,T=A.height,M=A.width,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none",Y=E(M),le=E(T);if(Y&&le){var Z=T*I;(R==="contain"||R==="none")&&Z>M||R==="cover"&&Z<M?T=M/I:M=T*I}else Y?T=M/I:le&&(M=T*I);return{width:M,height:T}}function Be(A){for(var I=F(new Uint8Array(A)),T=I.length,M=[],R=0;R+3<T;){var Y=I[R],le=I[R+1];if(Y===255&&le===218)break;if(Y===255&&le===216)R+=2;else{var Z=I[R+2]*256+I[R+3],Q=R+Z+2,te=I.slice(R,Q);M.push(te),R=Q}}return M.reduce(function(de,ue){return ue[0]===255&&ue[1]===225?de.concat(ue):de},[])}function Oe(A,I){var T=F(new Uint8Array(A));if(T[2]!==255||T[3]!==224)return A;var M=T[4]*256+T[5],R=[255,216].concat(I,T.slice(4+M));return new Uint8Array(R)}var ne=w.ArrayBuffer,nt=w.FileReader,se=w.URL||w.webkitURL,ai=/\.\w+$/,xe=w.Compressor,ee=function(){function A(I,T){e(this,A),this.file=I,this.exif=[],this.image=new Image,this.options=t(t({},v),T),this.aborted=!1,this.result=null,this.init()}return r(A,[{key:"init",value:function(){var T=this,M=this.file,R=this.options;if(!p(M)){this.fail(new Error("The first argument must be a File or Blob object."));return}var Y=M.type;if(!he(Y)){this.fail(new Error("The first argument must be an image File or Blob object."));return}if(!se||!nt){this.fail(new Error("The current browser does not support image compression."));return}ne||(R.checkOrientation=!1,R.retainExif=!1);var le=Y==="image/jpeg",Z=le&&R.checkOrientation,Q=le&&R.retainExif;if(se&&!Z&&!Q)this.load({url:se.createObjectURL(M)});else{var te=new nt;this.reader=te,te.onload=function(de){var ue=de.target,Pe=ue.result,re={},oe=1;Z&&(oe=z(Pe),oe>1&&a(re,V(oe))),Q&&(T.exif=Be(Pe)),Z||Q?!se||oe>1?re.url=D(Pe,Y):re.url=se.createObjectURL(M):re.url=Pe,T.load(re)},te.onabort=function(){T.fail(new Error("Aborted to read the image with FileReader."))},te.onerror=function(){T.fail(new Error("Failed to read the image with FileReader."))},te.onloadend=function(){T.reader=null},Z||Q?te.readAsArrayBuffer(M):te.readAsDataURL(M)}}},{key:"load",value:function(T){var M=this,R=this.file,Y=this.image;Y.onload=function(){M.draw(t(t({},T),{},{naturalWidth:Y.naturalWidth,naturalHeight:Y.naturalHeight}))},Y.onabort=function(){M.fail(new Error("Aborted to load the image."))},Y.onerror=function(){M.fail(new Error("Failed to load the image."))},w.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(w.navigator.userAgent)&&(Y.crossOrigin="anonymous"),Y.alt=R.name,Y.src=T.url}},{key:"draw",value:function(T){var M=this,R=T.naturalWidth,Y=T.naturalHeight,le=T.rotate,Z=le===void 0?0:le,Q=T.scaleX,te=Q===void 0?1:Q,de=T.scaleY,ue=de===void 0?1:de,Pe=this.file,re=this.image,oe=this.options,De=document.createElement("canvas"),ke=De.getContext("2d"),Zt=Math.abs(Z)%180===90,si=(oe.resize==="contain"||oe.resize==="cover")&&E(oe.width)&&E(oe.height),ot=Math.max(oe.maxWidth,0)||1/0,Jt=Math.max(oe.maxHeight,0)||1/0,We=Math.max(oe.minWidth,0)||0,Mt=Math.max(oe.minHeight,0)||0,Ot=R/Y,Ke=oe.width,yt=oe.height;if(Zt){var tn=[Jt,ot];ot=tn[0],Jt=tn[1];var li=[Mt,We];We=li[0],Mt=li[1];var Pn=[yt,Ke];Ke=Pn[0],yt=Pn[1]}si&&(Ot=Ke/yt);var So=it({aspectRatio:Ot,width:ot,height:Jt},"contain");ot=So.width,Jt=So.height;var jh=it({aspectRatio:Ot,width:We,height:Mt},"cover");if(We=jh.width,Mt=jh.height,si){var Hh=it({aspectRatio:Ot,width:Ke,height:yt},oe.resize);Ke=Hh.width,yt=Hh.height}else{var Vh=it({aspectRatio:Ot,width:Ke,height:yt}),Uh=Vh.width;Ke=Uh===void 0?R:Uh;var Wh=Vh.height;yt=Wh===void 0?Y:Wh}Ke=Math.floor(Ie(Math.min(Math.max(Ke,We),ot))),yt=Math.floor(Ie(Math.min(Math.max(yt,Mt),Jt)));var dy=-Ke/2,py=-yt/2,uy=Ke,hy=yt,Ic=[];if(si){var $h=0,qh=0,Dc=R,kc=Y,Gh=it({aspectRatio:Ot,width:R,height:Y},{contain:"cover",cover:"contain"}[oe.resize]);Dc=Gh.width,kc=Gh.height,$h=(R-Dc)/2,qh=(Y-kc)/2,Ic.push($h,qh,Dc,kc)}if(Ic.push(dy,py,uy,hy),Zt){var Yh=[yt,Ke];Ke=Yh[0],yt=Yh[1]}De.width=Ke,De.height=yt,he(oe.mimeType)||(oe.mimeType=Pe.type);var Xh="transparent";Pe.size>oe.convertSize&&oe.convertTypes.indexOf(oe.mimeType)>=0&&(oe.mimeType="image/jpeg");var Kh=oe.mimeType==="image/jpeg";if(Kh&&(Xh="#fff"),ke.fillStyle=Xh,ke.fillRect(0,0,Ke,yt),oe.beforeDraw&&oe.beforeDraw.call(this,ke,De),!this.aborted&&(ke.save(),ke.translate(Ke/2,yt/2),ke.rotate(Z*Math.PI/180),ke.scale(te,ue),ke.drawImage.apply(ke,[re].concat(Ic)),ke.restore(),oe.drew&&oe.drew.call(this,ke,De),!this.aborted)){var Qh=function(Po){if(!M.aborted){var Zh=function(Eo){return M.done({naturalWidth:R,naturalHeight:Y,result:Eo})};if(Po&&Kh&&oe.retainExif&&M.exif&&M.exif.length>0){var Jh=function(Eo){return Zh(d(D(Oe(Eo,M.exif),oe.mimeType)))};if(Po.arrayBuffer)Po.arrayBuffer().then(Jh).catch(function(){M.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var xr=new nt;M.reader=xr,xr.onload=function(Tc){var Eo=Tc.target;Jh(Eo.result)},xr.onabort=function(){M.fail(new Error("Aborted to read the compressed image with FileReader."))},xr.onerror=function(){M.fail(new Error("Failed to read the compressed image with FileReader."))},xr.onloadend=function(){M.reader=null},xr.readAsArrayBuffer(Po)}}else Zh(Po)}};De.toBlob?De.toBlob(Qh,oe.mimeType,oe.quality):Qh(d(De.toDataURL(oe.mimeType,oe.quality)))}}},{key:"done",value:function(T){var M=T.naturalWidth,R=T.naturalHeight,Y=T.result,le=this.file,Z=this.image,Q=this.options;if(se&&Z.src.indexOf("blob:")===0&&se.revokeObjectURL(Z.src),Y)if(Q.strict&&!Q.retainExif&&Y.size>le.size&&Q.mimeType===le.type&&!(Q.width>M||Q.height>R||Q.minWidth>M||Q.minHeight>R||Q.maxWidth<M||Q.maxHeight<R))Y=le;else{var te=new Date;Y.lastModified=te.getTime(),Y.lastModifiedDate=te,Y.name=le.name,Y.name&&Y.type!==le.type&&(Y.name=Y.name.replace(ai,me(Y.type)))}else Y=le;this.result=Y,Q.success&&Q.success.call(this,Y)}},{key:"fail",value:function(T){var M=this.options;if(M.error)M.error.call(this,T);else throw T}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=xe,A}},{key:"setDefaults",value:function(T){a(v,T)}}]),A}();return ee})});var Dv=q((Mu,Ou)=>{((i,t)=>{typeof define=="function"&&define.amd?define([],t):typeof Ou=="object"&&typeof Mu<"u"?Ou.exports=t():i.Papa=t()})(Mu,function i(){var t=typeof self<"u"?self:typeof window<"u"?window:t!==void 0?t:{},e,n=!t.document&&!!t.postMessage,r=t.IS_PAPA_WORKER||!1,o={},a=0,s={};function l(y){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(x){var D=he(x);D.chunkSize=parseInt(D.chunkSize),x.step||x.chunk||(D.chunkSize=null),this._handle=new g(D),(this._handle.streamer=this)._config=D}.call(this,y),this.parseChunk=function(x,D){var z=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<z){let ie=this._config.newline;ie||(V=this._config.quoteChar||'"',ie=this._handle.guessLineEndings(x,V)),x=[...x.split(ie).slice(z)].join(ie)}this.isFirstChunk&&ae(this._config.beforeFirstChunk)&&(V=this._config.beforeFirstChunk(x))!==void 0&&(x=V),this.isFirstChunk=!1,this._halted=!1;var z=this._partialLine+x,V=(this._partialLine="",this._handle.parse(z,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(x=V.meta.cursor,z=(this._finished||(this._partialLine=z.substring(x-this._baseIndex),this._baseIndex=x),V&&V.data&&(this._rowCount+=V.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),r)t.postMessage({results:V,workerId:s.WORKER_ID,finished:z});else if(ae(this._config.chunk)&&!D){if(this._config.chunk(V,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=V=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(V.data),this._completeResults.errors=this._completeResults.errors.concat(V.errors),this._completeResults.meta=V.meta),this._completed||!z||!ae(this._config.complete)||V&&V.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),z||V&&V.meta.paused||this._nextChunk(),V}this._halted=!0},this._sendError=function(x){ae(this._config.error)?this._config.error(x):r&&this._config.error&&t.postMessage({workerId:s.WORKER_ID,error:x,finished:!1})}}function c(y){var x;(y=y||{}).chunkSize||(y.chunkSize=s.RemoteChunkSize),l.call(this,y),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(D){this._input=D,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(x=new XMLHttpRequest,this._config.withCredentials&&(x.withCredentials=this._config.withCredentials),n||(x.onload=me(this._chunkLoaded,this),x.onerror=me(this._chunkError,this)),x.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var D,z=this._config.downloadRequestHeaders;for(D in z)x.setRequestHeader(D,z[D])}var V;this._config.chunkSize&&(V=this._start+this._config.chunkSize-1,x.setRequestHeader("Range","bytes="+this._start+"-"+V));try{x.send(this._config.downloadRequestBody)}catch(ie){this._chunkError(ie.message)}n&&x.status===0&&this._chunkError()}},this._chunkLoaded=function(){x.readyState===4&&(x.status<200||400<=x.status?this._chunkError():(this._start+=this._config.chunkSize||x.responseText.length,this._finished=!this._config.chunkSize||this._start>=(D=>(D=D.getResponseHeader("Content-Range"))!==null?parseInt(D.substring(D.lastIndexOf("/")+1)):-1)(x),this.parseChunk(x.responseText)))},this._chunkError=function(D){D=x.statusText||D,this._sendError(new Error(D))}}function d(y){(y=y||{}).chunkSize||(y.chunkSize=s.LocalChunkSize),l.call(this,y);var x,D,z=typeof FileReader<"u";this.stream=function(V){this._input=V,D=V.slice||V.webkitSlice||V.mozSlice,z?((x=new FileReader).onload=me(this._chunkLoaded,this),x.onerror=me(this._chunkError,this)):x=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var V=this._input,ie=(this._config.chunkSize&&(ie=Math.min(this._start+this._config.chunkSize,this._input.size),V=D.call(V,this._start,ie)),x.readAsText(V,this._config.encoding));z||this._chunkLoaded({target:{result:ie}})},this._chunkLoaded=function(V){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(V.target.result)},this._chunkError=function(){this._sendError(x.error)}}function p(y){var x;l.call(this,y=y||{}),this.stream=function(D){return x=D,this._nextChunk()},this._nextChunk=function(){var D,z;if(!this._finished)return D=this._config.chunkSize,x=D?(z=x.substring(0,D),x.substring(D)):(z=x,""),this._finished=!x,this.parseChunk(z)}}function v(y){l.call(this,y=y||{});var x=[],D=!0,z=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(V){this._input=V,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){z&&x.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),x.length?this.parseChunk(x.shift()):D=!0},this._streamData=me(function(V){try{x.push(typeof V=="string"?V:V.toString(this._config.encoding)),D&&(D=!1,this._checkIsFinished(),this.parseChunk(x.shift()))}catch(ie){this._streamError(ie)}},this),this._streamError=me(function(V){this._streamCleanUp(),this._sendError(V)},this),this._streamEnd=me(function(){this._streamCleanUp(),z=!0,this._streamData("")},this),this._streamCleanUp=me(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function g(y){var x,D,z,V,ie=Math.pow(2,53),Ie=-ie,it=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Be=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Oe=this,ne=0,nt=0,se=!1,ai=!1,xe=[],ee={data:[],errors:[],meta:{}};function A(R){return y.skipEmptyLines==="greedy"?R.join("").trim()==="":R.length===1&&R[0].length===0}function I(){if(ee&&z&&(M("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),z=!1),y.skipEmptyLines&&(ee.data=ee.data.filter(function(Q){return!A(Q)})),T()){let Q=function(te,de){ae(y.transformHeader)&&(te=y.transformHeader(te,de)),xe.push(te)};var Z=Q;if(ee)if(Array.isArray(ee.data[0])){for(var R=0;T()&&R<ee.data.length;R++)ee.data[R].forEach(Q);ee.data.splice(0,1)}else ee.data.forEach(Q)}function Y(Q,te){for(var de=y.header?{}:[],ue=0;ue<Q.length;ue++){var Pe=ue,re=Q[ue],re=((oe,De)=>(ke=>(y.dynamicTypingFunction&&y.dynamicTyping[ke]===void 0&&(y.dynamicTyping[ke]=y.dynamicTypingFunction(ke)),(y.dynamicTyping[ke]||y.dynamicTyping)===!0))(oe)?De==="true"||De==="TRUE"||De!=="false"&&De!=="FALSE"&&((ke=>{if(it.test(ke)&&(ke=parseFloat(ke),Ie<ke&&ke<ie))return 1})(De)?parseFloat(De):Be.test(De)?new Date(De):De===""?null:De):De)(Pe=y.header?ue>=xe.length?"__parsed_extra":xe[ue]:Pe,re=y.transform?y.transform(re,Pe):re);Pe==="__parsed_extra"?(de[Pe]=de[Pe]||[],de[Pe].push(re)):de[Pe]=re}return y.header&&(ue>xe.length?M("FieldMismatch","TooManyFields","Too many fields: expected "+xe.length+" fields but parsed "+ue,nt+te):ue<xe.length&&M("FieldMismatch","TooFewFields","Too few fields: expected "+xe.length+" fields but parsed "+ue,nt+te)),de}var le;ee&&(y.header||y.dynamicTyping||y.transform)&&(le=1,!ee.data.length||Array.isArray(ee.data[0])?(ee.data=ee.data.map(Y),le=ee.data.length):ee.data=Y(ee.data,0),y.header&&ee.meta&&(ee.meta.fields=xe),nt+=le)}function T(){return y.header&&xe.length===0}function M(R,Y,le,Z){R={type:R,code:Y,message:le},Z!==void 0&&(R.row=Z),ee.errors.push(R)}ae(y.step)&&(V=y.step,y.step=function(R){ee=R,T()?I():(I(),ee.data.length!==0&&(ne+=R.data.length,y.preview&&ne>y.preview?D.abort():(ee.data=ee.data[0],V(ee,Oe))))}),this.parse=function(R,Y,le){var Z=y.quoteChar||'"',Z=(y.newline||(y.newline=this.guessLineEndings(R,Z)),z=!1,y.delimiter?ae(y.delimiter)&&(y.delimiter=y.delimiter(R),ee.meta.delimiter=y.delimiter):((Z=((Q,te,de,ue,Pe)=>{var re,oe,De,ke;Pe=Pe||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var Zt=0;Zt<Pe.length;Zt++){for(var si,ot=Pe[Zt],Jt=0,We=0,Mt=0,Ot=(De=void 0,new E({comments:ue,delimiter:ot,newline:te,preview:10}).parse(Q)),Ke=0;Ke<Ot.data.length;Ke++)de&&A(Ot.data[Ke])?Mt++:(si=Ot.data[Ke].length,We+=si,De===void 0?De=si:0<si&&(Jt+=Math.abs(si-De),De=si));0<Ot.data.length&&(We/=Ot.data.length-Mt),(oe===void 0||Jt<=oe)&&(ke===void 0||ke<We)&&1.99<We&&(oe=Jt,re=ot,ke=We)}return{successful:!!(y.delimiter=re),bestDelimiter:re}})(R,y.newline,y.skipEmptyLines,y.comments,y.delimitersToGuess)).successful?y.delimiter=Z.bestDelimiter:(z=!0,y.delimiter=s.DefaultDelimiter),ee.meta.delimiter=y.delimiter),he(y));return y.preview&&y.header&&Z.preview++,x=R,D=new E(Z),ee=D.parse(x,Y,le),I(),se?{meta:{paused:!0}}:ee||{meta:{paused:!1}}},this.paused=function(){return se},this.pause=function(){se=!0,D.abort(),x=ae(y.chunk)?"":x.substring(D.getCharIndex())},this.resume=function(){Oe.streamer._halted?(se=!1,Oe.streamer.parseChunk(x,!0)):setTimeout(Oe.resume,3)},this.aborted=function(){return ai},this.abort=function(){ai=!0,D.abort(),ee.meta.aborted=!0,ae(y.complete)&&y.complete(ee),x=""},this.guessLineEndings=function(Q,Z){Q=Q.substring(0,1048576);var Z=new RegExp(w(Z)+"([^]*?)"+w(Z),"gm"),le=(Q=Q.replace(Z,"")).split("\r"),Z=Q.split(`
1
+ import{a as Ss,b as Ls,c as Im}from"./chunk-BVFPFG2Y.js";import{a as js,b as $i,c as Di,d as Hs}from"./chunk-WV652PSI.js";import{a as Vc}from"./chunk-LNBGLQGG.js";import{$ as Em,B as kt,C as Vt,D as Es,F as Is,G as Ds,H as Ui,I as gt,J as bt,K as Br,L as ks,M as Ts,N as Ms,O as Os,P as Fs,Q as As,S as Cm,T as Sm,U as Rs,V as Bs,W as Ns,Y as zs,Z as Pm,a as Pi,aa as zr,b as xs,d as Cs,da as Wi,ia as $c,ja as Dm,k as vm,l as Vi,n as Ei,o as _m,q as ym,r as Rt,s as Dt,t as wm,u as Rr,v as ht,w as mt,x as xm,y as ft,z as Ps}from"./chunk-AJDEWWQT.js";import{$a as fs,$b as ce,$c as Hc,Aa as Ge,Ab as W,Ac as dm,Ad as et,Bc as pm,C as wt,Ca as U,Cb as ci,Cc as um,Cd as bm,D as us,Da as O,Dc as di,Ea as Fc,Eb as gs,Ec as fe,Fa as Ac,Fc as He,Gb as To,Gc as Fo,H as Hi,Ha as pe,Hb as kn,I as qe,Ia as _e,Id as Ao,J as em,Ja as Ve,Jb as zc,Jc as Je,Jd as $n,Ka as ms,Kb as B,Kc as pi,Kd as Ro,Lb as cm,Lc as Si,M as tm,Mb as Ci,Mc as jc,Md as Ii,N as im,Nc as we,Nd as sn,O as nm,Oa as sm,Ob as Lt,P as Hn,Pd as Nr,Qd as Uc,Ra as $t,Rb as H,Rd as Wc,S as Vn,Sa as X,Sb as Lc,Ta as K,Tb as Mo,U as at,Ua as Rc,Ub as $e,Uc as hm,Va as Bc,Vb as C,Wa as Ye,Wb as Oo,Xa as Ct,Xb as Ze,Xc as It,Y as Mc,Yb as rn,Z as En,Za as je,Zb as bs,Zc as xt,_a as Ue,_c as mm,a as _,aa as Pr,ab as ko,ac as kr,ad as fm,b as k,bb as Ce,bc as Tn,bd as an,c as Cr,ca as In,cb as Dn,cc as St,d as q,dc as Pt,e as Ne,ea as rm,ec as h,fa as Do,fc as m,g as j,gb as Nc,gc as J,h as Sr,ha as om,hb as Ir,hc as vs,hd as ze,i as cs,ib as lm,ic as _s,j as ds,jc as on,k as ps,kc as Se,l as ei,lc as Tr,md as ys,n as Ft,na as am,nc as N,oa as Oc,oc as S,od as Mn,pa as hs,pc as jt,q as Te,qa as Ai,qc as At,qd as Mr,r as Io,ra as nn,sa as ti,sb as Dr,sc as Et,ta as Ee,tc as ut,ub as Un,uc as Fe,ud as Or,vc as Ae,vd as Fr,wa as Er,wc as Wn,xa as be,xc as b,xd as ws,ya as ve,yc as P,yd as Ar,zb as f,zc as Ht,zd as gm}from"./chunk-PNNBJ4WR.js";var of=q((pA,rf)=>{var s1=4,l1=.001,c1=1e-7,d1=10,Vo=11,Ks=1/(Vo-1),p1=typeof Float32Array=="function";function Jm(i,t){return 1-3*t+3*i}function ef(i,t){return 3*t-6*i}function tf(i){return 3*i}function Qs(i,t,e){return((Jm(t,e)*i+ef(t,e))*i+tf(t))*i}function nf(i,t,e){return 3*Jm(t,e)*i*i+2*ef(t,e)*i+tf(t)}function u1(i,t,e,n,r){var o,a,s=0;do a=t+(e-t)/2,o=Qs(a,n,r)-i,o>0?e=a:t=a;while(Math.abs(o)>c1&&++s<d1);return a}function h1(i,t,e,n){for(var r=0;r<s1;++r){var o=nf(t,e,n);if(o===0)return t;var a=Qs(t,e,n)-i;t-=a/o}return t}function m1(i){return i}rf.exports=function(t,e,n,r){if(!(0<=t&&t<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===r)return m1;for(var o=p1?new Float32Array(Vo):new Array(Vo),a=0;a<Vo;++a)o[a]=Qs(a*Ks,t,n);function s(l){for(var c=0,d=1,p=Vo-1;d!==p&&o[d]<=l;++d)c+=Ks;--d;var v=(l-o[d])/(o[d+1]-o[d]),g=c+v*Ks,w=nf(g,t,n);return w>=l1?h1(l,g,t,n):w===0?g:u1(l,c,c+Ks,t,n)}return function(c){return c===0?0:c===1?1:Qs(s(c),e,r)}}});var Cg=q((nz,xg)=>{xg.exports=function(){var t={},e=t._fns={};t.emit=function(a,s,l,c,d,p,v){var g=n(a);g.length&&r(a,g,[s,l,c,d,p,v])},t.on=function(a,s){e[a]||(e[a]=[]),e[a].push(s)},t.once=function(a,s){function l(){s.apply(this,arguments),t.off(a,l)}this.on(a,l)},t.off=function(a,s){var l=[];if(a&&s){var c=this._fns[a],d=0,p=c?c.length:0;for(d;d<p;d++)c[d]!==s&&l.push(c[d])}l.length?this._fns[a]=l:delete this._fns[a]};function n(o){var a=e[o]?e[o]:[],s=o.indexOf(":"),l=s===-1?[o]:[o.substring(0,s),o.substring(s+1)],c=Object.keys(e),d=0,p=c.length;for(d;d<p;d++){var v=c[d];if(v==="*"&&(a=a.concat(e[v])),l.length===2&&l[0]===v){a=a.concat(e[v]);break}}return a}function r(o,a,s){var l=0,c=a.length;for(l;l<c&&a[l];l++)a[l].event=o,a[l].apply(a[l],s)}return t}});var wl=q((oz,Sg)=>{function cC(i){var t=typeof i;return i!=null&&(t=="object"||t=="function")}Sg.exports=cC});var Eg=q((az,Pg)=>{var dC=typeof global=="object"&&global&&global.Object===Object&&global;Pg.exports=dC});var Ld=q((sz,Ig)=>{var pC=Eg(),uC=typeof self=="object"&&self&&self.Object===Object&&self,hC=pC||uC||Function("return this")();Ig.exports=hC});var kg=q((lz,Dg)=>{var mC=Ld(),fC=function(){return mC.Date.now()};Dg.exports=fC});var Mg=q((cz,Tg)=>{var gC=/\s/;function bC(i){for(var t=i.length;t--&&gC.test(i.charAt(t)););return t}Tg.exports=bC});var Fg=q((dz,Og)=>{var vC=Mg(),_C=/^\s+/;function yC(i){return i&&i.slice(0,vC(i)+1).replace(_C,"")}Og.exports=yC});var jd=q((pz,Ag)=>{var wC=Ld(),xC=wC.Symbol;Ag.exports=xC});var zg=q((uz,Ng)=>{var Rg=jd(),Bg=Object.prototype,CC=Bg.hasOwnProperty,SC=Bg.toString,ia=Rg?Rg.toStringTag:void 0;function PC(i){var t=CC.call(i,ia),e=i[ia];try{i[ia]=void 0;var n=!0}catch{}var r=SC.call(i);return n&&(t?i[ia]=e:delete i[ia]),r}Ng.exports=PC});var jg=q((hz,Lg)=>{var EC=Object.prototype,IC=EC.toString;function DC(i){return IC.call(i)}Lg.exports=DC});var Wg=q((mz,Ug)=>{var Hg=jd(),kC=zg(),TC=jg(),MC="[object Null]",OC="[object Undefined]",Vg=Hg?Hg.toStringTag:void 0;function FC(i){return i==null?i===void 0?OC:MC:Vg&&Vg in Object(i)?kC(i):TC(i)}Ug.exports=FC});var qg=q((fz,$g)=>{function AC(i){return i!=null&&typeof i=="object"}$g.exports=AC});var Yg=q((gz,Gg)=>{var RC=Wg(),BC=qg(),NC="[object Symbol]";function zC(i){return typeof i=="symbol"||BC(i)&&RC(i)==NC}Gg.exports=zC});var Zg=q((bz,Qg)=>{var LC=Fg(),Xg=wl(),jC=Yg(),Kg=NaN,HC=/^[-+]0x[0-9a-f]+$/i,VC=/^0b[01]+$/i,UC=/^0o[0-7]+$/i,WC=parseInt;function $C(i){if(typeof i=="number")return i;if(jC(i))return Kg;if(Xg(i)){var t=typeof i.valueOf=="function"?i.valueOf():i;i=Xg(t)?t+"":t}if(typeof i!="string")return i===0?i:+i;i=LC(i);var e=VC.test(i);return e||UC.test(i)?WC(i.slice(2),e?2:8):HC.test(i)?Kg:+i}Qg.exports=$C});var Vd=q((vz,e0)=>{var qC=wl(),Hd=kg(),Jg=Zg(),GC="Expected a function",YC=Math.max,XC=Math.min;function KC(i,t,e){var n,r,o,a,s,l,c=0,d=!1,p=!1,v=!0;if(typeof i!="function")throw new TypeError(GC);t=Jg(t)||0,qC(e)&&(d=!!e.leading,p="maxWait"in e,o=p?YC(Jg(e.maxWait)||0,t):o,v="trailing"in e?!!e.trailing:v);function g(y){var x=n,D=r;return n=r=void 0,c=y,a=i.apply(D,x),a}function w(y){return c=y,s=setTimeout(F,t),d?g(y):a}function E(y){var x=y-l,D=y-c,z=t-x;return p?XC(z,o-D):z}function L(y){var x=y-l,D=y-c;return l===void 0||x>=t||x<0||p&&D>=o}function F(){var y=Hd();if(L(y))return G(y);s=setTimeout(F,E(y))}function G(y){return s=void 0,v&&n?g(y):(n=r=void 0,a)}function he(){s!==void 0&&clearTimeout(s),c=0,n=l=r=s=void 0}function me(){return s===void 0?a:G(Hd())}function ae(){var y=Hd(),x=L(y);if(n=arguments,r=this,l=y,x){if(s===void 0)return w(l);if(p)return clearTimeout(s),s=setTimeout(F,t),g(l)}return s===void 0&&(s=setTimeout(F,t)),a}return ae.cancel=he,ae.flush=me,ae}e0.exports=KC});var i0=q((_z,t0)=>{var QC=Vd(),ZC=wl(),JC="Expected a function";function eS(i,t,e){var n=!0,r=!0;if(typeof i!="function")throw new TypeError(JC);return ZC(e)&&(n="leading"in e?!!e.leading:n,r="trailing"in e?!!e.trailing:r),QC(i,t,{leading:n,maxWait:t,trailing:r})}t0.exports=eS});var ra=q((Rz,c0)=>{"use strict";c0.exports=function(t){if(typeof t!="number"||Number.isNaN(t))throw new TypeError(`Expected a number, got ${typeof t}`);let e=t<0,n=Math.abs(t);if(e&&(n=-n),n===0)return"0 B";let r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.min(Math.floor(Math.log(n)/Math.log(1024)),r.length-1),a=Number(n/1024**o),s=r[o];return`${a>=10||a%1===0?Math.round(a):a.toFixed(1)} ${s}`}});var u0=q((Bz,p0)=>{"use strict";function d0(i,t){this.text=i=i||"",this.hasWild=~i.indexOf("*"),this.separator=t,this.parts=i.split(t)}d0.prototype.match=function(i){var t=!0,e=this.parts,n,r=e.length,o;if(typeof i=="string"||i instanceof String)if(!this.hasWild&&this.text!=i)t=!1;else{for(o=(i||"").split(this.separator),n=0;t&&n<r;n++)e[n]!=="*"&&(n<o.length?t=e[n]===o[n]:t=!1);t=t&&o}else if(typeof i.splice=="function")for(t=[],n=i.length;n--;)this.match(i[n])&&(t[t.length]=i[n]);else if(typeof i=="object"){t={};for(var a in i)this.match(a)&&(t[a]=i[a])}return t};p0.exports=function(i,t,e){var n=new d0(i,e||/[\/\.]/);return typeof t<"u"?n.match(t):n}});var m0=q((Nz,h0)=>{var aS=u0(),sS=/[\/\+\.]/;h0.exports=function(i,t){function e(n){var r=aS(n,i,sS);return r&&r.length>=2}return t?e(t.split(";")[0]):e}});var Gt=q((v4,Al)=>{(function(){"use strict";var i={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(r=n(r,e(a)))}return r}function e(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var a in r)i.call(r,a)&&r[a]&&(o=n(o,a));return o}function n(r,o){return o?r?r+" "+o:r+o:r}typeof Al<"u"&&Al.exports?(t.default=t,Al.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var Rb=q((C8,Gp)=>{"use strict";var BP=Object.prototype.hasOwnProperty,Xt="~";function Aa(){}Object.create&&(Aa.prototype=Object.create(null),new Aa().__proto__||(Xt=!1));function NP(i,t,e){this.fn=i,this.context=t,this.once=e||!1}function Ab(i,t,e,n,r){if(typeof e!="function")throw new TypeError("The listener must be a function");var o=new NP(e,n||i,r),a=Xt?Xt+t:t;return i._events[a]?i._events[a].fn?i._events[a]=[i._events[a],o]:i._events[a].push(o):(i._events[a]=o,i._eventsCount++),i}function Jl(i,t){--i._eventsCount===0?i._events=new Aa:delete i._events[t]}function Ut(){this._events=new Aa,this._eventsCount=0}Ut.prototype.eventNames=function(){var t=[],e,n;if(this._eventsCount===0)return t;for(n in e=this._events)BP.call(e,n)&&t.push(Xt?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(e)):t};Ut.prototype.listeners=function(t){var e=Xt?Xt+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a};Ut.prototype.listenerCount=function(t){var e=Xt?Xt+t:t,n=this._events[e];return n?n.fn?1:n.length:0};Ut.prototype.emit=function(t,e,n,r,o,a){var s=Xt?Xt+t:t;if(!this._events[s])return!1;var l=this._events[s],c=arguments.length,d,p;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,r),!0;case 5:return l.fn.call(l.context,e,n,r,o),!0;case 6:return l.fn.call(l.context,e,n,r,o,a),!0}for(p=1,d=new Array(c-1);p<c;p++)d[p-1]=arguments[p];l.fn.apply(l.context,d)}else{var v=l.length,g;for(p=0;p<v;p++)switch(l[p].once&&this.removeListener(t,l[p].fn,void 0,!0),c){case 1:l[p].fn.call(l[p].context);break;case 2:l[p].fn.call(l[p].context,e);break;case 3:l[p].fn.call(l[p].context,e,n);break;case 4:l[p].fn.call(l[p].context,e,n,r);break;default:if(!d)for(g=1,d=new Array(c-1);g<c;g++)d[g-1]=arguments[g];l[p].fn.apply(l[p].context,d)}}return!0};Ut.prototype.on=function(t,e,n){return Ab(this,t,e,n,!1)};Ut.prototype.once=function(t,e,n){return Ab(this,t,e,n,!0)};Ut.prototype.removeListener=function(t,e,n,r){var o=Xt?Xt+t:t;if(!this._events[o])return this;if(!e)return Jl(this,o),this;var a=this._events[o];if(a.fn)a.fn===e&&(!r||a.once)&&(!n||a.context===n)&&Jl(this,o);else{for(var s=0,l=[],c=a.length;s<c;s++)(a[s].fn!==e||r&&!a[s].once||n&&a[s].context!==n)&&l.push(a[s]);l.length?this._events[o]=l.length===1?l[0]:l:Jl(this,o)}return this};Ut.prototype.removeAllListeners=function(t){var e;return t?(e=Xt?Xt+t:t,this._events[e]&&Jl(this,e)):(this._events=new Aa,this._eventsCount=0),this};Ut.prototype.off=Ut.prototype.removeListener;Ut.prototype.addListener=Ut.prototype.on;Ut.prefixed=Xt;Ut.EventEmitter=Ut;typeof Gp<"u"&&(Gp.exports=Ut)});var Sv=q((Du,ku)=>{(function(i,t){typeof Du=="object"&&typeof ku<"u"?ku.exports=t():typeof define=="function"&&define.amd?define(t):(i=typeof globalThis<"u"?globalThis:i||self,i.Compressor=t())})(Du,function(){"use strict";function i(A,I){var T=Object.keys(A);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(A);I&&(M=M.filter(function(R){return Object.getOwnPropertyDescriptor(A,R).enumerable})),T.push.apply(T,M)}return T}function t(A){for(var I=1;I<arguments.length;I++){var T=arguments[I]!=null?arguments[I]:{};I%2?i(Object(T),!0).forEach(function(M){o(A,M,T[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(T)):i(Object(T)).forEach(function(M){Object.defineProperty(A,M,Object.getOwnPropertyDescriptor(T,M))})}return A}function e(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function n(A,I){for(var T=0;T<I.length;T++){var M=I[T];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(A,l(M.key),M)}}function r(A,I,T){return I&&n(A.prototype,I),T&&n(A,T),Object.defineProperty(A,"prototype",{writable:!1}),A}function o(A,I,T){return I=l(I),I in A?Object.defineProperty(A,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):A[I]=T,A}function a(){return a=Object.assign?Object.assign.bind():function(A){for(var I=1;I<arguments.length;I++){var T=arguments[I];for(var M in T)Object.prototype.hasOwnProperty.call(T,M)&&(A[M]=T[M])}return A},a.apply(this,arguments)}function s(A,I){if(typeof A!="object"||A===null)return A;var T=A[Symbol.toPrimitive];if(T!==void 0){var M=T.call(A,I||"default");if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(I==="string"?String:Number)(A)}function l(A){var I=s(A,"string");return typeof I=="symbol"?I:String(I)}var c={exports:{}};(function(A){typeof window>"u"||function(I){var T=I.HTMLCanvasElement&&I.HTMLCanvasElement.prototype,M=I.Blob&&function(){try{return!!new Blob}catch{return!1}}(),R=M&&I.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch{return!1}}(),Y=I.BlobBuilder||I.WebKitBlobBuilder||I.MozBlobBuilder||I.MSBlobBuilder,le=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,Z=(M||Y)&&I.atob&&I.ArrayBuffer&&I.Uint8Array&&function(Q){var te,de,ue,Pe,re,oe,De,ke,Zt;if(te=Q.match(le),!te)throw new Error("invalid data URI");for(de=te[2]?te[1]:"text/plain"+(te[3]||";charset=US-ASCII"),ue=!!te[4],Pe=Q.slice(te[0].length),ue?re=atob(Pe):re=decodeURIComponent(Pe),oe=new ArrayBuffer(re.length),De=new Uint8Array(oe),ke=0;ke<re.length;ke+=1)De[ke]=re.charCodeAt(ke);return M?new Blob([R?De:oe],{type:de}):(Zt=new Y,Zt.append(oe),Zt.getBlob(de))};I.HTMLCanvasElement&&!T.toBlob&&(T.mozGetAsFile?T.toBlob=function(Q,te,de){var ue=this;setTimeout(function(){de&&T.toDataURL&&Z?Q(Z(ue.toDataURL(te,de))):Q(ue.mozGetAsFile("blob",te))})}:T.toDataURL&&Z&&(T.msToBlob?T.toBlob=function(Q,te,de){var ue=this;setTimeout(function(){(te&&te!=="image/png"||de)&&T.toDataURL&&Z?Q(Z(ue.toDataURL(te,de))):Q(ue.msToBlob(te))})}:T.toBlob=function(Q,te,de){var ue=this;setTimeout(function(){Q(Z(ue.toDataURL(te,de)))})})),A.exports?A.exports=Z:I.dataURLtoBlob=Z}(window)})(c);var d=c.exports,p=function(I){return typeof Blob>"u"?!1:I instanceof Blob||Object.prototype.toString.call(I)==="[object Blob]"},v={strict:!0,checkOrientation:!0,retainExif:!1,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},g=typeof window<"u"&&typeof window.document<"u",w=g?window:{},E=function(I){return I>0&&I<1/0},L=Array.prototype.slice;function F(A){return Array.from?Array.from(A):L.call(A)}var G=/^image\/.+$/;function he(A){return G.test(A)}function me(A){var I=he(A)?A.substr(6):"";return I==="jpeg"&&(I="jpg"),".".concat(I)}var ae=String.fromCharCode;function y(A,I,T){var M="",R;for(T+=I,R=I;R<T;R+=1)M+=ae(A.getUint8(R));return M}var x=w.btoa;function D(A,I){for(var T=[],M=8192,R=new Uint8Array(A);R.length>0;)T.push(ae.apply(null,F(R.subarray(0,M)))),R=R.subarray(M);return"data:".concat(I,";base64,").concat(x(T.join("")))}function z(A){var I=new DataView(A),T;try{var M,R,Y;if(I.getUint8(0)===255&&I.getUint8(1)===216)for(var le=I.byteLength,Z=2;Z+1<le;){if(I.getUint8(Z)===255&&I.getUint8(Z+1)===225){R=Z;break}Z+=1}if(R){var Q=R+4,te=R+10;if(y(I,Q,4)==="Exif"){var de=I.getUint16(te);if(M=de===18761,(M||de===19789)&&I.getUint16(te+2,M)===42){var ue=I.getUint32(te+4,M);ue>=8&&(Y=te+ue)}}}if(Y){var Pe=I.getUint16(Y,M),re,oe;for(oe=0;oe<Pe;oe+=1)if(re=Y+oe*12+2,I.getUint16(re,M)===274){re+=8,T=I.getUint16(re,M),I.setUint16(re,1,M);break}}}catch{T=1}return T}function V(A){var I=0,T=1,M=1;switch(A){case 2:T=-1;break;case 3:I=-180;break;case 4:M=-1;break;case 5:I=90,M=-1;break;case 6:I=90;break;case 7:I=90,T=-1;break;case 8:I=-90;break}return{rotate:I,scaleX:T,scaleY:M}}var ie=/\.\d*(?:0|9){12}\d*$/;function Ie(A){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return ie.test(A)?Math.round(A*I)/I:A}function it(A){var I=A.aspectRatio,T=A.height,M=A.width,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none",Y=E(M),le=E(T);if(Y&&le){var Z=T*I;(R==="contain"||R==="none")&&Z>M||R==="cover"&&Z<M?T=M/I:M=T*I}else Y?T=M/I:le&&(M=T*I);return{width:M,height:T}}function Be(A){for(var I=F(new Uint8Array(A)),T=I.length,M=[],R=0;R+3<T;){var Y=I[R],le=I[R+1];if(Y===255&&le===218)break;if(Y===255&&le===216)R+=2;else{var Z=I[R+2]*256+I[R+3],Q=R+Z+2,te=I.slice(R,Q);M.push(te),R=Q}}return M.reduce(function(de,ue){return ue[0]===255&&ue[1]===225?de.concat(ue):de},[])}function Oe(A,I){var T=F(new Uint8Array(A));if(T[2]!==255||T[3]!==224)return A;var M=T[4]*256+T[5],R=[255,216].concat(I,T.slice(4+M));return new Uint8Array(R)}var ne=w.ArrayBuffer,nt=w.FileReader,se=w.URL||w.webkitURL,ai=/\.\w+$/,xe=w.Compressor,ee=function(){function A(I,T){e(this,A),this.file=I,this.exif=[],this.image=new Image,this.options=t(t({},v),T),this.aborted=!1,this.result=null,this.init()}return r(A,[{key:"init",value:function(){var T=this,M=this.file,R=this.options;if(!p(M)){this.fail(new Error("The first argument must be a File or Blob object."));return}var Y=M.type;if(!he(Y)){this.fail(new Error("The first argument must be an image File or Blob object."));return}if(!se||!nt){this.fail(new Error("The current browser does not support image compression."));return}ne||(R.checkOrientation=!1,R.retainExif=!1);var le=Y==="image/jpeg",Z=le&&R.checkOrientation,Q=le&&R.retainExif;if(se&&!Z&&!Q)this.load({url:se.createObjectURL(M)});else{var te=new nt;this.reader=te,te.onload=function(de){var ue=de.target,Pe=ue.result,re={},oe=1;Z&&(oe=z(Pe),oe>1&&a(re,V(oe))),Q&&(T.exif=Be(Pe)),Z||Q?!se||oe>1?re.url=D(Pe,Y):re.url=se.createObjectURL(M):re.url=Pe,T.load(re)},te.onabort=function(){T.fail(new Error("Aborted to read the image with FileReader."))},te.onerror=function(){T.fail(new Error("Failed to read the image with FileReader."))},te.onloadend=function(){T.reader=null},Z||Q?te.readAsArrayBuffer(M):te.readAsDataURL(M)}}},{key:"load",value:function(T){var M=this,R=this.file,Y=this.image;Y.onload=function(){M.draw(t(t({},T),{},{naturalWidth:Y.naturalWidth,naturalHeight:Y.naturalHeight}))},Y.onabort=function(){M.fail(new Error("Aborted to load the image."))},Y.onerror=function(){M.fail(new Error("Failed to load the image."))},w.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(w.navigator.userAgent)&&(Y.crossOrigin="anonymous"),Y.alt=R.name,Y.src=T.url}},{key:"draw",value:function(T){var M=this,R=T.naturalWidth,Y=T.naturalHeight,le=T.rotate,Z=le===void 0?0:le,Q=T.scaleX,te=Q===void 0?1:Q,de=T.scaleY,ue=de===void 0?1:de,Pe=this.file,re=this.image,oe=this.options,De=document.createElement("canvas"),ke=De.getContext("2d"),Zt=Math.abs(Z)%180===90,si=(oe.resize==="contain"||oe.resize==="cover")&&E(oe.width)&&E(oe.height),ot=Math.max(oe.maxWidth,0)||1/0,Jt=Math.max(oe.maxHeight,0)||1/0,We=Math.max(oe.minWidth,0)||0,Mt=Math.max(oe.minHeight,0)||0,Ot=R/Y,Ke=oe.width,yt=oe.height;if(Zt){var tn=[Jt,ot];ot=tn[0],Jt=tn[1];var li=[Mt,We];We=li[0],Mt=li[1];var Pn=[yt,Ke];Ke=Pn[0],yt=Pn[1]}si&&(Ot=Ke/yt);var So=it({aspectRatio:Ot,width:ot,height:Jt},"contain");ot=So.width,Jt=So.height;var jh=it({aspectRatio:Ot,width:We,height:Mt},"cover");if(We=jh.width,Mt=jh.height,si){var Hh=it({aspectRatio:Ot,width:Ke,height:yt},oe.resize);Ke=Hh.width,yt=Hh.height}else{var Vh=it({aspectRatio:Ot,width:Ke,height:yt}),Uh=Vh.width;Ke=Uh===void 0?R:Uh;var Wh=Vh.height;yt=Wh===void 0?Y:Wh}Ke=Math.floor(Ie(Math.min(Math.max(Ke,We),ot))),yt=Math.floor(Ie(Math.min(Math.max(yt,Mt),Jt)));var dy=-Ke/2,py=-yt/2,uy=Ke,hy=yt,Ic=[];if(si){var $h=0,qh=0,Dc=R,kc=Y,Gh=it({aspectRatio:Ot,width:R,height:Y},{contain:"cover",cover:"contain"}[oe.resize]);Dc=Gh.width,kc=Gh.height,$h=(R-Dc)/2,qh=(Y-kc)/2,Ic.push($h,qh,Dc,kc)}if(Ic.push(dy,py,uy,hy),Zt){var Yh=[yt,Ke];Ke=Yh[0],yt=Yh[1]}De.width=Ke,De.height=yt,he(oe.mimeType)||(oe.mimeType=Pe.type);var Xh="transparent";Pe.size>oe.convertSize&&oe.convertTypes.indexOf(oe.mimeType)>=0&&(oe.mimeType="image/jpeg");var Kh=oe.mimeType==="image/jpeg";if(Kh&&(Xh="#fff"),ke.fillStyle=Xh,ke.fillRect(0,0,Ke,yt),oe.beforeDraw&&oe.beforeDraw.call(this,ke,De),!this.aborted&&(ke.save(),ke.translate(Ke/2,yt/2),ke.rotate(Z*Math.PI/180),ke.scale(te,ue),ke.drawImage.apply(ke,[re].concat(Ic)),ke.restore(),oe.drew&&oe.drew.call(this,ke,De),!this.aborted)){var Qh=function(Po){if(!M.aborted){var Zh=function(Eo){return M.done({naturalWidth:R,naturalHeight:Y,result:Eo})};if(Po&&Kh&&oe.retainExif&&M.exif&&M.exif.length>0){var Jh=function(Eo){return Zh(d(D(Oe(Eo,M.exif),oe.mimeType)))};if(Po.arrayBuffer)Po.arrayBuffer().then(Jh).catch(function(){M.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var xr=new nt;M.reader=xr,xr.onload=function(Tc){var Eo=Tc.target;Jh(Eo.result)},xr.onabort=function(){M.fail(new Error("Aborted to read the compressed image with FileReader."))},xr.onerror=function(){M.fail(new Error("Failed to read the compressed image with FileReader."))},xr.onloadend=function(){M.reader=null},xr.readAsArrayBuffer(Po)}}else Zh(Po)}};De.toBlob?De.toBlob(Qh,oe.mimeType,oe.quality):Qh(d(De.toDataURL(oe.mimeType,oe.quality)))}}},{key:"done",value:function(T){var M=T.naturalWidth,R=T.naturalHeight,Y=T.result,le=this.file,Z=this.image,Q=this.options;if(se&&Z.src.indexOf("blob:")===0&&se.revokeObjectURL(Z.src),Y)if(Q.strict&&!Q.retainExif&&Y.size>le.size&&Q.mimeType===le.type&&!(Q.width>M||Q.height>R||Q.minWidth>M||Q.minHeight>R||Q.maxWidth<M||Q.maxHeight<R))Y=le;else{var te=new Date;Y.lastModified=te.getTime(),Y.lastModifiedDate=te,Y.name=le.name,Y.name&&Y.type!==le.type&&(Y.name=Y.name.replace(ai,me(Y.type)))}else Y=le;this.result=Y,Q.success&&Q.success.call(this,Y)}},{key:"fail",value:function(T){var M=this.options;if(M.error)M.error.call(this,T);else throw T}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=xe,A}},{key:"setDefaults",value:function(T){a(v,T)}}]),A}();return ee})});var Dv=q((Mu,Ou)=>{((i,t)=>{typeof define=="function"&&define.amd?define([],t):typeof Ou=="object"&&typeof Mu<"u"?Ou.exports=t():i.Papa=t()})(Mu,function i(){var t=typeof self<"u"?self:typeof window<"u"?window:t!==void 0?t:{},e,n=!t.document&&!!t.postMessage,r=t.IS_PAPA_WORKER||!1,o={},a=0,s={};function l(y){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(x){var D=he(x);D.chunkSize=parseInt(D.chunkSize),x.step||x.chunk||(D.chunkSize=null),this._handle=new g(D),(this._handle.streamer=this)._config=D}.call(this,y),this.parseChunk=function(x,D){var z=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<z){let ie=this._config.newline;ie||(V=this._config.quoteChar||'"',ie=this._handle.guessLineEndings(x,V)),x=[...x.split(ie).slice(z)].join(ie)}this.isFirstChunk&&ae(this._config.beforeFirstChunk)&&(V=this._config.beforeFirstChunk(x))!==void 0&&(x=V),this.isFirstChunk=!1,this._halted=!1;var z=this._partialLine+x,V=(this._partialLine="",this._handle.parse(z,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(x=V.meta.cursor,z=(this._finished||(this._partialLine=z.substring(x-this._baseIndex),this._baseIndex=x),V&&V.data&&(this._rowCount+=V.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),r)t.postMessage({results:V,workerId:s.WORKER_ID,finished:z});else if(ae(this._config.chunk)&&!D){if(this._config.chunk(V,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=V=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(V.data),this._completeResults.errors=this._completeResults.errors.concat(V.errors),this._completeResults.meta=V.meta),this._completed||!z||!ae(this._config.complete)||V&&V.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),z||V&&V.meta.paused||this._nextChunk(),V}this._halted=!0},this._sendError=function(x){ae(this._config.error)?this._config.error(x):r&&this._config.error&&t.postMessage({workerId:s.WORKER_ID,error:x,finished:!1})}}function c(y){var x;(y=y||{}).chunkSize||(y.chunkSize=s.RemoteChunkSize),l.call(this,y),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(D){this._input=D,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(x=new XMLHttpRequest,this._config.withCredentials&&(x.withCredentials=this._config.withCredentials),n||(x.onload=me(this._chunkLoaded,this),x.onerror=me(this._chunkError,this)),x.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var D,z=this._config.downloadRequestHeaders;for(D in z)x.setRequestHeader(D,z[D])}var V;this._config.chunkSize&&(V=this._start+this._config.chunkSize-1,x.setRequestHeader("Range","bytes="+this._start+"-"+V));try{x.send(this._config.downloadRequestBody)}catch(ie){this._chunkError(ie.message)}n&&x.status===0&&this._chunkError()}},this._chunkLoaded=function(){x.readyState===4&&(x.status<200||400<=x.status?this._chunkError():(this._start+=this._config.chunkSize||x.responseText.length,this._finished=!this._config.chunkSize||this._start>=(D=>(D=D.getResponseHeader("Content-Range"))!==null?parseInt(D.substring(D.lastIndexOf("/")+1)):-1)(x),this.parseChunk(x.responseText)))},this._chunkError=function(D){D=x.statusText||D,this._sendError(new Error(D))}}function d(y){(y=y||{}).chunkSize||(y.chunkSize=s.LocalChunkSize),l.call(this,y);var x,D,z=typeof FileReader<"u";this.stream=function(V){this._input=V,D=V.slice||V.webkitSlice||V.mozSlice,z?((x=new FileReader).onload=me(this._chunkLoaded,this),x.onerror=me(this._chunkError,this)):x=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var V=this._input,ie=(this._config.chunkSize&&(ie=Math.min(this._start+this._config.chunkSize,this._input.size),V=D.call(V,this._start,ie)),x.readAsText(V,this._config.encoding));z||this._chunkLoaded({target:{result:ie}})},this._chunkLoaded=function(V){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(V.target.result)},this._chunkError=function(){this._sendError(x.error)}}function p(y){var x;l.call(this,y=y||{}),this.stream=function(D){return x=D,this._nextChunk()},this._nextChunk=function(){var D,z;if(!this._finished)return D=this._config.chunkSize,x=D?(z=x.substring(0,D),x.substring(D)):(z=x,""),this._finished=!x,this.parseChunk(z)}}function v(y){l.call(this,y=y||{});var x=[],D=!0,z=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(V){this._input=V,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){z&&x.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),x.length?this.parseChunk(x.shift()):D=!0},this._streamData=me(function(V){try{x.push(typeof V=="string"?V:V.toString(this._config.encoding)),D&&(D=!1,this._checkIsFinished(),this.parseChunk(x.shift()))}catch(ie){this._streamError(ie)}},this),this._streamError=me(function(V){this._streamCleanUp(),this._sendError(V)},this),this._streamEnd=me(function(){this._streamCleanUp(),z=!0,this._streamData("")},this),this._streamCleanUp=me(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function g(y){var x,D,z,V,ie=Math.pow(2,53),Ie=-ie,it=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Be=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Oe=this,ne=0,nt=0,se=!1,ai=!1,xe=[],ee={data:[],errors:[],meta:{}};function A(R){return y.skipEmptyLines==="greedy"?R.join("").trim()==="":R.length===1&&R[0].length===0}function I(){if(ee&&z&&(M("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),z=!1),y.skipEmptyLines&&(ee.data=ee.data.filter(function(Q){return!A(Q)})),T()){let Q=function(te,de){ae(y.transformHeader)&&(te=y.transformHeader(te,de)),xe.push(te)};var Z=Q;if(ee)if(Array.isArray(ee.data[0])){for(var R=0;T()&&R<ee.data.length;R++)ee.data[R].forEach(Q);ee.data.splice(0,1)}else ee.data.forEach(Q)}function Y(Q,te){for(var de=y.header?{}:[],ue=0;ue<Q.length;ue++){var Pe=ue,re=Q[ue],re=((oe,De)=>(ke=>(y.dynamicTypingFunction&&y.dynamicTyping[ke]===void 0&&(y.dynamicTyping[ke]=y.dynamicTypingFunction(ke)),(y.dynamicTyping[ke]||y.dynamicTyping)===!0))(oe)?De==="true"||De==="TRUE"||De!=="false"&&De!=="FALSE"&&((ke=>{if(it.test(ke)&&(ke=parseFloat(ke),Ie<ke&&ke<ie))return 1})(De)?parseFloat(De):Be.test(De)?new Date(De):De===""?null:De):De)(Pe=y.header?ue>=xe.length?"__parsed_extra":xe[ue]:Pe,re=y.transform?y.transform(re,Pe):re);Pe==="__parsed_extra"?(de[Pe]=de[Pe]||[],de[Pe].push(re)):de[Pe]=re}return y.header&&(ue>xe.length?M("FieldMismatch","TooManyFields","Too many fields: expected "+xe.length+" fields but parsed "+ue,nt+te):ue<xe.length&&M("FieldMismatch","TooFewFields","Too few fields: expected "+xe.length+" fields but parsed "+ue,nt+te)),de}var le;ee&&(y.header||y.dynamicTyping||y.transform)&&(le=1,!ee.data.length||Array.isArray(ee.data[0])?(ee.data=ee.data.map(Y),le=ee.data.length):ee.data=Y(ee.data,0),y.header&&ee.meta&&(ee.meta.fields=xe),nt+=le)}function T(){return y.header&&xe.length===0}function M(R,Y,le,Z){R={type:R,code:Y,message:le},Z!==void 0&&(R.row=Z),ee.errors.push(R)}ae(y.step)&&(V=y.step,y.step=function(R){ee=R,T()?I():(I(),ee.data.length!==0&&(ne+=R.data.length,y.preview&&ne>y.preview?D.abort():(ee.data=ee.data[0],V(ee,Oe))))}),this.parse=function(R,Y,le){var Z=y.quoteChar||'"',Z=(y.newline||(y.newline=this.guessLineEndings(R,Z)),z=!1,y.delimiter?ae(y.delimiter)&&(y.delimiter=y.delimiter(R),ee.meta.delimiter=y.delimiter):((Z=((Q,te,de,ue,Pe)=>{var re,oe,De,ke;Pe=Pe||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var Zt=0;Zt<Pe.length;Zt++){for(var si,ot=Pe[Zt],Jt=0,We=0,Mt=0,Ot=(De=void 0,new E({comments:ue,delimiter:ot,newline:te,preview:10}).parse(Q)),Ke=0;Ke<Ot.data.length;Ke++)de&&A(Ot.data[Ke])?Mt++:(si=Ot.data[Ke].length,We+=si,De===void 0?De=si:0<si&&(Jt+=Math.abs(si-De),De=si));0<Ot.data.length&&(We/=Ot.data.length-Mt),(oe===void 0||Jt<=oe)&&(ke===void 0||ke<We)&&1.99<We&&(oe=Jt,re=ot,ke=We)}return{successful:!!(y.delimiter=re),bestDelimiter:re}})(R,y.newline,y.skipEmptyLines,y.comments,y.delimitersToGuess)).successful?y.delimiter=Z.bestDelimiter:(z=!0,y.delimiter=s.DefaultDelimiter),ee.meta.delimiter=y.delimiter),he(y));return y.preview&&y.header&&Z.preview++,x=R,D=new E(Z),ee=D.parse(x,Y,le),I(),se?{meta:{paused:!0}}:ee||{meta:{paused:!1}}},this.paused=function(){return se},this.pause=function(){se=!0,D.abort(),x=ae(y.chunk)?"":x.substring(D.getCharIndex())},this.resume=function(){Oe.streamer._halted?(se=!1,Oe.streamer.parseChunk(x,!0)):setTimeout(Oe.resume,3)},this.aborted=function(){return ai},this.abort=function(){ai=!0,D.abort(),ee.meta.aborted=!0,ae(y.complete)&&y.complete(ee),x=""},this.guessLineEndings=function(Q,Z){Q=Q.substring(0,1048576);var Z=new RegExp(w(Z)+"([^]*?)"+w(Z),"gm"),le=(Q=Q.replace(Z,"")).split("\r"),Z=Q.split(`
2
2
  `),Q=1<Z.length&&Z[0].length<le[0].length;if(le.length===1||Q)return`
3
3
  `;for(var te=0,de=0;de<le.length;de++)le[de][0]===`
4
4
  `&&te++;return te>=le.length/2?`\r
@@ -38,7 +38,9 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${t.byteLength}`),t.tiff&&
38
38
  display: flex;
39
39
  justify-content: center;
40
40
  padding: 0;
41
- -webkit-print-color-adjust: exact;
41
+ -webkit-print-color-adjust: exact; /* Chrome, Safari, Edge */
42
+ print-color-adjust: exact; /* Standard property (draft, mulai dipakai) */
43
+ color-adjust: exact; /* Firefox lama (deprecated) */
42
44
  }
43
45
 
44
46
  #print-wrapper {
@@ -54,9 +56,7 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${t.byteLength}`),t.tiff&&
54
56
 
55
57
  .sticker {
56
58
  width: 71mm;
57
- height: 34mm;
58
- overflow-y: hidden;
59
-
59
+ overflow: hidden;
60
60
  display: flex;
61
61
  flex-direction: column;
62
62
 
@@ -77,12 +77,16 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${t.byteLength}`),t.tiff&&
77
77
  text-decoration: line-through; /* coret Rp + angka sekaligus */
78
78
  text-decoration-thickness: 1px; /* biar tebal rapi */
79
79
  text-decoration-skip-ink: none;
80
- font-size: ${this.pxToPt(r)}px;
80
+ font-size: ${r}px;
81
+ }
82
+
83
+ .sticker > div:nth-child(1) > div:nth-child(1) > span {
84
+ font-size: ${r}px;
81
85
  }
82
86
 
83
87
 
84
88
  .sticker > div:nth-child(1) span:nth-child(2) {
85
- font-size: ${this.pxToPt(o)}px;
89
+ font-size: ${o}px;
86
90
  font-weight: 600;
87
91
  }
88
92
 
@@ -103,13 +107,13 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${t.byteLength}`),t.tiff&&
103
107
  }
104
108
 
105
109
  .sticker > div:nth-child(2) > div:nth-child(1) > span:nth-child(1) {
106
- font-size: ${this.pxToPt(p)}px;
110
+ font-size: ${p}px;
107
111
  font-weight: bold;
108
112
  margin: 0;
109
113
  padding: 0;
110
114
  }
111
115
  .sticker > div:nth-child(2) > div:nth-child(1) > span:nth-child(2) {
112
- font-size: ${this.pxToPt(n)}px;
116
+ font-size: ${n}px;
113
117
  font-weight: bold;
114
118
  margin: 0;
115
119
  padding: 0;
@@ -122,13 +126,13 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${t.byteLength}`),t.tiff&&
122
126
 
123
127
  .sticker > div:nth-child(2) > div:nth-child(2) span:nth-child(1) {
124
128
  text-align: start;
125
- font-size: ${this.pxToPt(s)}px;
129
+ font-size: ${s}px;
126
130
  font-weight: 600;
127
131
  }
128
132
 
129
133
  .sticker > div:nth-child(2) > div:nth-child(2) span:nth-child(2) {
130
134
  text-align: start;
131
- font-size: ${this.pxToPt(l)}px;
135
+ font-size: ${l}px;
132
136
  font-weight: 600;
133
137
  }
134
138
 
@@ -146,7 +150,7 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${t.byteLength}`),t.tiff&&
146
150
 
147
151
  .sticker > div:nth-child(3) > div:nth-child(1) span {
148
152
  text-decoration: none;
149
- font-size: ${this.pxToPt(c)}px;
153
+ font-size: ${c}px;
150
154
  font-weight: 600;
151
155
  }
152
156
 
@@ -159,22 +163,22 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${t.byteLength}`),t.tiff&&
159
163
  }
160
164
 
161
165
  .sticker > div:nth-child(3) > div:nth-child(2) > div:nth-child(1) {
162
- font-weight: 600;
166
+ // font-weight: 600;
163
167
  color: #fff;
164
168
  display: flex;
165
- font-size: ${this.pxToPt(a)}px;
169
+ font-size: ${a}px;
166
170
  gap: 10px;
167
171
  margin: 0;
168
172
  }
169
173
 
170
174
  .sticker > div:nth-child(3) > div:nth-child(2) > span:nth-child(2) {
171
- font-weight: 600;
175
+ // font-weight: 600;
172
176
  color: #fff;
173
- font-size: ${this.pxToPt(d)}px;
177
+ font-size: ${d}px;
174
178
  margin: 0;
175
179
 
176
180
  }
177
- `,onLoadingEnd:()=>{this.onSaveConfig()}})}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=pe({type:i,selectors:[["app-customize-label"]],contentQueries:function(n,r,o){if(n&1&&Et(o,GO,7),n&2){let a;Fe(a=Ae())&&(r.contentTemplate=a.first)}},inputs:{sidebarConfig:[1,"sidebarConfig"]},standalone:!0,features:[fe],decls:25,vars:10,consts:[["scrollContainer",""],[1,"d-flex","flex-column","gap-3","h-100"],[1,"topbar","position-static"],[1,"d-flex","top-navbar","navbar-expand-lg",3,"ngClass"],["id","navbarSupportedContent",1,"navbar-collapse","collapse","m-0",3,"ngbCollapse"],[1,"w-100","d-flex","align-items-center","px-3"],[1,"navbar-nav","float-start","me-auto","h-100","d-flex","align-items-center"],[1,"nav-item","d-none","d-lg-block"],[1,"font-robotoslab","m-0"],[1,"navbar-nav","float-end","py-2"],[1,"d-flex","gap-2"],["type","button",1,"btn","btn-outline-secondary","d-flex","gap-1","align-items-center",3,"click"],[1,"f","fas","fa-angle-left"],[1,"fs-3"],["type","button",1,"btn","btn-outline-secondary","d-flex","gap-1","align-items-center"],[1,"row","mx-2","flex-grow-1","overflow-x-auto",2,"margin-bottom","1rem"],[1,"col-lg-6","col-md-6","d-flex","justify-content-center"],[1,"card","sticky-md-top",2,"height","fit-content"],[1,"card-body","d-flex","justify-content-center","align-items-center"],["id","print-wrapper",1,"print-wrapper"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"col-lg-6","col-md-6"],[1,"f","fas","fa-angle-right"],[1,"card"],[1,"p-3"],[1,"card-title","mb-0","font-robotoslab",2,"font-size","16px"],[1,"card-body","border-top","p-1"],["ngbAccordion","",3,"closeOthers"],["ngbAccordionItem","",3,"collapsed"],["ngbAccordionHeader",""],["ngbAccordionButton",""],[1,"",2,"font-size","14px"],["ngbAccordionCollapse",""],["ngbAccordionBody","",1,"scroll-container"],[2,"font-size","14px"],[1,"table","table-bordered"],["for","hasPriceTax1",1,"fs-2","d-inline-block","text-truncate"],[1,"form-check","form-switch"],["type","input",1,"form-control","fs-2",3,"ngModelChange","ngModel","maskito"],[1,"form-text","fst-italic","fw-normal","fs-2"],["for","hasPriceTax2",1,"fs-2","d-inline-block","text-truncate"],["for","hasPriceTax3",1,"fs-2","d-inline-block","text-truncate"],["for","hasPriceTax4",1,"fs-2","d-inline-block","text-truncate"],["for","hasPriceTax5",1,"fs-2","d-inline-block","text-truncate"],["for","hasPriceTax6",1,"fs-2","d-inline-block","text-truncate"],["for","hasPriceTax7",1,"fs-2","d-inline-block","text-truncate"],["for","hasPriceTax8",1,"fs-2","d-inline-block","text-truncate"],["for","hasPriceTax9",1,"fs-2","d-inline-block","text-truncate"],["type","input",1,"form-control","fs-2",3,"ngModelChange","ngModel"]],template:function(n,r){n&1&&(h(0,"div",1)(1,"header",2)(2,"nav",3)(3,"div",4)(4,"div",5)(5,"ul",6)(6,"li",7)(7,"h3",8),b(8,"Customize Label"),m()()(),h(9,"ul",9)(10,"div",10)(11,"button",11),N("click",function(){return r.onPrevious()}),J(12,"i",12),h(13,"span",13),b(14,"Back"),m()(),H(15,XO,4,0,"button",14)(16,KO,3,0,"button",14),m()()()()()(),h(17,"div",15)(18,"div",16)(19,"div",17)(20,"div",18)(21,"div",19),H(22,QO,1,0,"ng-container",20),m()()()(),H(23,ZO,34,4,"div",21)(24,JO,127,33,"div",21),m()()),n&2&&(f(),$e("data-navbarbg",r.storeService.options().navbarbg),f(),C("ngClass",r.storeService.options().navbarbg=="skin6"?"navbar-light":"navbar-dark"),f(),C("ngbCollapse",!r.storeService.options().isCollapsed),$e("data-navbarbg",r.storeService.options().navbarbg),f(12),ce(r.sidebarConfig()==="barcode"?15:16),f(7),C("ngTemplateOutlet",r.contentTemplate)("ngTemplateOutletContext",He(8,YO,r.sidebarConfig()==="barcode"?r.storeService.expandProductItem():r.storeService.expandProductItems())),f(),ce(r.sidebarConfig()==="barcode"?23:24))},dependencies:[ks,Ms,Ts,As,Os,Fs,Pc,Br,Mn,ty,iy,ny,et,Fr,gt,ht,ft,Vt,qi],styles:[".scroll-container[_ngcontent-%COMP%]{overflow-y:auto;max-height:calc(100vh - 200px)}.print-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;gap:10px;overflow-y:auto;max-height:calc(100vh - 130px)}"],changeDetection:0})}}return i})();function eF(i,t){if(i&1&&(h(0,"div",2)(1,"span"),b(2),m(),h(3,"span"),b(4),Je(5,"number"),m()(),h(6,"span",2),b(7),Je(8,"date"),m()),i&2){let e=S();C("ngStyle",e.stickerHeaderDesc1Style),f(2),P(e.store.paperShelfLabelConfig().CurrencySymbol),f(2),P(pi(5,5,e.item.UnitPrice)),f(2),C("ngStyle",e.stickerHeaderDesc2Style),f(),Ht("sd ",Si(8,7,e.item.Promotions.ExpirationDate,"dd-MM-yyyy"),"")}}function tF(i,t){if(i&1&&(h(0,"span",2),b(1),m(),h(2,"span",2),b(3),Je(4,"number"),m()),i&2){let e=S();Oo("font-size",e.store.paperShelfLabelConfig().CurrencySymbolFontSize+"px"),C("ngStyle",e.stickerContentHeaderDesc1Style),f(),P(e.store.paperShelfLabelConfig().CurrencySymbol),f(),C("ngStyle",e.stickerContentHeaderDesc2Style),f(),P(pi(4,6,e.promotionDiscount(e.item.Promotions)))}}function iF(i,t){if(i&1&&(h(0,"span",2),b(1),m(),h(2,"span",2),b(3),Je(4,"number"),m()),i&2){let e=S();Oo("font-size",e.store.paperShelfLabelConfig().CurrencySymbolFontSize+"px"),C("ngStyle",e.stickerContentHeaderDesc1Style),f(),P(e.store.paperShelfLabelConfig().CurrencySymbol),f(),C("ngStyle",e.stickerContentHeaderDesc2Style),f(),P(pi(4,6,e.item.UnitPrice))}}function nF(i,t){i&1&&(h(0,"span"),b(1," PROMOSI "),m(),h(2,"span"),b(3," PROMOSI "),m())}var oy=(()=>{class i{constructor(){this.store=O(Re),this.item=null,this.printDate=new Date}get stickerContainerStyles(){return{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"10px",width:"100%",height:"100%"}}get stickerStyle(){return{width:"250pt",overflowY:"hidden",border:"1px solid #000",display:"flex",flexDirection:"column"}}get stickerHeaderStyle(){return{padding:"0 4px",display:"flex",justifyContent:"space-between",height:this.item.Promotions?"max-content":"20px"}}get stickerHeaderDesc1Style(){return{display:"flex",textDecoration:"line-through",fontSize:`${this.store.paperShelfLabelConfig().PromotionPriceFontSize}px`,fontWeight:"800"}}get stickerHeaderDesc2Style(){return{fontWeight:"600",fontSize:`${this.store.paperShelfLabelConfig().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.store.paperShelfLabelConfig().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.store.paperShelfLabelConfig().ProductNameFontSize}px`}}get stickerContentBodyDesc2Style(){return{textAlign:"start",fontSize:`${this.store.paperShelfLabelConfig().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.store.paperShelfLabelConfig().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.store.paperShelfLabelConfig().PromotionDescFontSize}px`}}get stickerFooterBodyDesc2Style(){return{fontSize:`${this.store.paperShelfLabelConfig().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(n){throw new Error("error: "+(n instanceof Error?n.message:String(n)))}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=pe({type:i,selectors:[["app-label-preview"]],inputs:{item:"item"},standalone:!0,features:[fe],decls:22,vars:23,consts:[["id","sticker",1,"sticker",3,"ngStyle"],["id","sticker-header",3,"ngStyle"],[3,"ngStyle"]],template:function(n,r){n&1&&(h(0,"div",0)(1,"div",1),H(2,eF,9,10),m(),h(3,"div",2)(4,"div",2),H(5,tF,5,8)(6,iF,5,8),m(),h(7,"div",2)(8,"span",2),b(9),m(),h(10,"span",2),b(11),m()()(),h(12,"div",2)(13,"div",2)(14,"span",2),b(15),Je(16,"date"),m()(),h(17,"div",2)(18,"div",2),H(19,nF,4,0),m(),h(20,"span",2),b(21),m()()()()),n&2&&(C("ngStyle",r.stickerStyle),f(),C("ngStyle",r.stickerHeaderStyle),f(),ce(r.item.Promotions?2:-1),f(),C("ngStyle",r.stickerContentStyle),f(),C("ngStyle",r.stickerContentHeaderStyle),f(),ce(r.item.Promotions?5:6),f(2),C("ngStyle",r.stickerContentBodyStyle),f(),C("ngStyle",r.stickerContentBodyDesc1Style),f(),P(r.item.Name),f(),C("ngStyle",r.stickerContentBodyDesc2Style),f(),P(r.item.Code),f(),C("ngStyle",r.stickerFooterStyle),f(),C("ngStyle",r.stickerFooterHeaderStyle),f(),C("ngStyle",r.stickerFooterHeaderDesc1Style),f(),P(Si(16,20,r.printDate,"dd-MM-yyyy")),f(2),C("ngStyle",r.stickerFooterBodyStyle),f(),C("ngStyle",r.stickerFooterBodyDesc1Style),f(),ce(r.item.Promotions?19:-1),f(),C("ngStyle",r.stickerFooterBodyDesc2Style),f(),P(r.store.paperShelfLabelConfig().CompanyNameLabel))},dependencies:[et,Or,Ar,ws],changeDetection:0})}}return i})();function rF(i,t){if(i&1&&(h(0,"ng-option",3),b(1),m()),i&2){let e=t.$implicit;C("value",e.Name),f(),P(e.Name)}}var ay=(()=>{class i{onInputHandler(e,n){switch(n){case"paperWidth":this.paperWidth.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{PaperWidth:this.paperWidth()}));break;case"stickerWidth":this.stickerWidth.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{StickerWidth:this.stickerWidth()}));break;case"stickerHeight":this.stickerHeight.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{StickerHeight:this.stickerHeight()}));break;case"barcodeHeight":this.barcodeHeight.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{BarcodeHeight:this.barcodeHeight()}));break;case"fontSize":this.fontSize.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{ProductNameFontSize:this.fontSize()}));break}}constructor(){this.options=Wt,this.storeService=O(Re),this.destroyRef=O(Ct),this.injector=O(Ye),this.paperWidth=B(0),this.stickerWidth=B(0),this.stickerHeight=B(0),this.paperSource=B(""),this.barcodeHeight=B(0),this.fontSize=B(0),this.tooltip={paperWidth:"The width of the paper",stickerWidth:"The width of the sticker",stickerHeight:"The height of the sticker",barcodeHeight:"The height of the generated barcode in pixels",fontSize:"Change all font size (except price)"}}ngOnInit(){Dt(this.storeService.paperConfiguration,{injector:this.injector}).pipe(Ee(e=>{this.paperWidth.set(e.PaperWidth),this.stickerWidth.set(e.StickerWidth),this.stickerHeight.set(e.StickerHeight),this.barcodeHeight.set(e.BarcodeHeight),this.fontSize.set(e.ProductNameFontSize)})).subscribe(),this.paperWidth.set(this.storeService.paperConfiguration().PaperWidth),this.stickerWidth.set(this.storeService.paperConfiguration().StickerWidth),this.stickerHeight.set(this.storeService.paperConfiguration().StickerHeight),this.paperSource.set(this.storeService.paperConfig().PaperFormats[0].Name),this.storeService.paperSource().length==0&&this.storeService.onChangePaperSource(this.storeService.paperConfig().PaperFormats[0].Name)}onChangePaperSource(e){let n=this.storeService.paperConfig().PaperFormats.findIndex(r=>r.Name===e);n!==-1&&(this.storeService.onChangePaperSource(this.storeService.paperConfig().PaperFormats[n].Name),this.storeService.onChangePaperConfiguration(this.storeService.paperConfig().PaperFormats[n]))}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=pe({type:i,selectors:[["app-pp-paper"]],standalone:!0,features:[fe],decls:58,vars:17,consts:[[1,"table","table-bordered"],["for","paperSource",1,"fs-2","d-inline-block","text-truncate"],["searchable","false","clearable","false","id","paperSource","name","paperSource","selecte","",1,"custom","w-100","fs-2",3,"ngModelChange","ngModel"],[3,"value"],[1,"form-text","fst-italic","fw-normal","fs-2"],["for","paperWidth",1,"fs-2","d-inline-block","text-truncate"],["id","paperWidth","name","paperWidth","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],["for","stickerWidth",1,"fs-2","d-inline-block","text-truncate"],["name","stickerWidth","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],["for","stickerHeight",1,"fs-2","d-inline-block","text-truncate"],["id","stickerHeight","name","stickerHeight","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],["for","barcode",1,"fs-2"],["id","barcodeHeight","name","barcodeHeight","type","text",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],["for","fontSize",1,"fs-2","d-inline-block","text-truncate"],["id","fontSize","name","fontSize","type","text",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"]],template:function(n,r){n&1&&(h(0,"table",0)(1,"tbody")(2,"tr")(3,"td")(4,"label",1),b(5,"Paper Source"),m()(),h(6,"td")(7,"ng-select",2),N("ngModelChange",function(a){return r.onChangePaperSource(a)}),St(8,rF,2,2,"ng-option",3,Tn),m()(),h(10,"td")(11,"span",4),b(12),m()()(),h(13,"tr")(14,"td")(15,"label",5),b(16,"Paper Width"),m()(),h(17,"td")(18,"input",6),N("ngModelChange",function(a){return r.onInputHandler(a,"paperWidth")}),m()(),h(19,"td")(20,"span",4),b(21),m()()(),h(22,"tr")(23,"td")(24,"label",7),b(25,"Sticker Width"),m()(),h(26,"td")(27,"input",8),N("ngModelChange",function(a){return r.onInputHandler(a,"stickerWidth")}),m()(),h(28,"td")(29,"span",4),b(30),m()()(),h(31,"tr")(32,"th")(33,"label",9),b(34,"Sticker Height"),m()(),h(35,"td")(36,"input",10),N("ngModelChange",function(a){return r.onInputHandler(a,"stickerHeight")}),m()(),h(37,"td")(38,"span",4),b(39),m()()(),h(40,"tr")(41,"td")(42,"label",11),b(43,"Barcode Height"),m()(),h(44,"td")(45,"input",12),N("ngModelChange",function(a){return r.onInputHandler(a,"barcodeHeight")}),m()(),h(46,"td")(47,"span",4),b(48),m()()(),h(49,"tr")(50,"td")(51,"label",13),b(52,"Font Size"),m()(),h(53,"td")(54,"input",14),N("ngModelChange",function(a){return r.onInputHandler(a,"fontSize")}),m()(),h(55,"td")(56,"span",4),b(57),m()()()()()),n&2&&(f(7),C("ngModel",r.storeService.paperSource()),f(),Pt(r.storeService.paperConfig().PaperFormats),f(4),P(r.tooltip.paperWidth),f(6),C("maskito",r.options)("ngModel",r.paperWidth()),f(3),P(r.tooltip.paperWidth),f(6),C("maskito",r.options)("ngModel",r.stickerWidth()),f(3),P(r.tooltip.stickerWidth),f(6),C("maskito",r.options)("ngModel",r.stickerHeight()),f(3),P(r.tooltip.stickerHeight),f(6),C("maskito",r.options)("ngModel",r.barcodeHeight()),f(3),P(r.tooltip.barcodeHeight),f(6),C("maskito",r.options)("ngModel",r.fontSize()),f(3),P(r.tooltip.fontSize))},dependencies:[gt,ht,ft,Vt,bt,Di,$i,js,qi],styles:["table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{vertical-align:middle}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child{width:50%}"],changeDetection:0})}}return i})();function oF(i,t){if(i&1&&(h(0,"span",14),b(1),m()),i&2){let e=S();f(),P(e.tooltip.leftIndent)}}function aF(i,t){if(i&1&&(h(0,"span",14),b(1),m()),i&2){let e=S();f(),P(e.tooltip.topIndent)}}function sF(i,t){if(i&1&&(h(0,"span",14),b(1),m()),i&2){let e=S();f(),P(e.tooltip.rowSpacing)}}function lF(i,t){if(i&1&&(h(0,"span",14),b(1),m()),i&2){let e=S();f(),P(e.tooltip.columnSpacing)}}var sy=(()=>{class i{constructor(){this.options=Wt,this.tooltip={leftIndent:"The number of pixels appended before the first COLUMN",topIndent:"The number of pixels appended after the first ROW",rowSpacing:"The number of pixels between each ROW",columnSpacing:"The number of pixels between each COLUMN"},this.leftIndent=B(0),this.topIndent=B(0),this.rowSpacing=B(0),this.columnSpacing=B(0),this.storeService=O(Re),this.destroyRef=O(Ct),this.injector=O(Ye)}onInputHandler(e,n){switch(n){case"marginLeft":this.leftIndent.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{MarginLeft:this.leftIndent()}));break;case"marginTop":this.topIndent.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{MarginTop:this.topIndent()}));break;case"rowSpacing":this.rowSpacing.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{RowSpacing:this.rowSpacing()}));break;case"columnSpacing":this.columnSpacing.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{ColumnSpacing:this.columnSpacing()}));break}}ngOnInit(){Dt(this.storeService.paperConfiguration,{injector:this.injector}).pipe(Rt(this.destroyRef),Ee(e=>{this.leftIndent.set(e.MarginLeft),this.topIndent.set(e.MarginTop),this.rowSpacing.set(e.RowSpacing),this.columnSpacing.set(e.ColumnSpacing)})).subscribe()}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=pe({type:i,selectors:[["app-pp-spacing"]],standalone:!0,features:[fe],decls:46,vars:12,consts:[["leftIndentTemplate",""],["topIndentTemplate",""],["rowSpacingTemplate",""],["columnSpacingTemplate",""],[1,"table","table-bordered"],["for","leftIndent",1,"fs-2","d-inline-block","text-truncate"],["id","leftIndent","name","leftIndent","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],[1,"form-text","fst-italic","fs-2","fw-normal"],["for","topIndent",1,"fs-2","d-inline-block","text-truncate"],["id","topIndent","name","topIndent","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],["for","rowSpacing",1,"fs-2","d-inline-block","text-truncate"],["id","rowSpacing","name","rowSpacing","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],["for","columnSpacing",1,"fs-2","d-inline-block","text-truncate"],["id","columnSpacing","name","columnSpacing","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],[1,"fst-italic"]],template:function(n,r){if(n&1){let o=Se();h(0,"table",4)(1,"tbody")(2,"tr")(3,"td")(4,"label",5),b(5,"Left Indent"),m()(),h(6,"td")(7,"input",6),N("ngModelChange",function(s){return X(o),K(r.onInputHandler(s,"marginLeft"))}),m()(),h(8,"td")(9,"span",7),b(10),m()()(),h(11,"tr")(12,"td")(13,"label",8),b(14,"Top Indent"),m()(),h(15,"td")(16,"input",9),N("ngModelChange",function(s){return X(o),K(r.onInputHandler(s,"marginTop"))}),m()(),h(17,"td")(18,"span",7),b(19),m()()(),h(20,"tr")(21,"td")(22,"label",10),b(23,"Row Spacing"),m()(),h(24,"td")(25,"input",11),N("ngModelChange",function(s){return X(o),K(r.onInputHandler(s,"rowSpacing"))}),m()(),h(26,"td")(27,"span",7),b(28),m()()(),h(29,"tr")(30,"th")(31,"label",12),b(32,"Column Spacing"),m()(),h(33,"td")(34,"input",13),N("ngModelChange",function(s){return X(o),K(r.onInputHandler(s,"columnSpacing"))}),m()(),h(35,"td")(36,"span",7),b(37),m()()()()(),H(38,oF,2,1,"ng-template",null,0,we)(40,aF,2,1,"ng-template",null,1,we)(42,sF,2,1,"ng-template",null,2,we)(44,lF,2,1,"ng-template",null,3,we)}n&2&&(f(7),C("maskito",r.options)("ngModel",r.leftIndent()),f(3),P(r.tooltip.leftIndent),f(6),C("maskito",r.options)("ngModel",r.topIndent()),f(3),P(r.tooltip.topIndent),f(6),C("maskito",r.options)("ngModel",r.rowSpacing()),f(3),P(r.tooltip.rowSpacing),f(6),C("maskito",r.options)("ngModel",r.columnSpacing()),f(3),P(r.tooltip.columnSpacing))},dependencies:[gt,ht,ft,Vt,bt,qi,Di],styles:["table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{vertical-align:middle}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child{width:50%}"],changeDetection:0})}}return i})();function cF(i,t){if(i&1&&(h(0,"span",8),b(1),m()),i&2){let e=S();f(),P(e.tooltip.basicPriceLabel)}}function dF(i,t){if(i&1&&(h(0,"span",8),b(1),m()),i&2){let e=S();f(),P(e.tooltip.promotionPriceLabel)}}var ly=(()=>{class i{constructor(){this.tooltip={basicPriceLabel:"Custom label normal price",promotionPriceLabel:"Custom label promotion price"},this.storeService=O(Re),this.destroyRef=O(Ct),this.injector=O(Ye),this.basicPriceLabel=B(""),this.promotionPriceLabel=B(""),this.options=Wt}ngOnInit(){Dt(this.storeService.paperConfiguration,{injector:this.injector}).pipe(Rt(this.destroyRef),Ee(e=>{this.basicPriceLabel.set(e.BasicPriceLabel),this.promotionPriceLabel.set(e.PromotionPriceLabel)})).subscribe()}onInputHandler(e,n){switch(n){case"basicPriceLabel":this.basicPriceLabel.set(e),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{BasicPriceLabel:this.basicPriceLabel()}));break;case"promotionPriceLabel":this.promotionPriceLabel.set(e),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{PromotionPriceLabel:this.promotionPriceLabel()}));break}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=pe({type:i,selectors:[["app-pp-label"]],standalone:!0,features:[fe],decls:24,vars:4,consts:[["basicPriceLabelTemplate",""],["promotionPriceLabelTemplate",""],[1,"table","table-bordered"],["for","normalPrice",1,"fs-2","d-inline-block","text-truncate"],["id","normalPrice","name","basicPriceLabel","type","text",1,"form-control","fs-2",3,"ngModelChange","ngModel"],[1,"form-text","fst-italic","fs-2","fw-normal"],["for","promotionPrice",1,"fs-2","d-inline-block","text-truncate"],["id","promotionPrice","name","promotionPriceLabel","type","text",1,"form-control","fs-1",3,"ngModelChange","ngModel"],[1,"fst-italic"]],template:function(n,r){if(n&1){let o=Se();h(0,"table",2)(1,"tbody")(2,"tr")(3,"td")(4,"label",3),b(5,"Normal Price"),m()(),h(6,"td")(7,"input",4),N("ngModelChange",function(s){return X(o),K(r.onInputHandler(s,"basicPriceLabel"))}),m()(),h(8,"td")(9,"span",5),b(10),m()()(),h(11,"tr")(12,"td")(13,"label",6),b(14,"Promotion Price"),m()(),h(15,"td")(16,"input",7),N("ngModelChange",function(s){return X(o),K(r.onInputHandler(s,"promotionPriceLabel"))}),m()(),h(17,"td")(18,"span",5),b(19),m()()()()(),H(20,cF,2,1,"ng-template",null,0,we)(22,dF,2,1,"ng-template",null,1,we)}n&2&&(f(7),C("ngModel",r.basicPriceLabel()),f(3),P(r.tooltip.basicPriceLabel),f(6),C("ngModel",r.promotionPriceLabel()),f(3),P(r.tooltip.promotionPriceLabel))},dependencies:[gt,ht,ft,Vt,bt],styles:["table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{vertical-align:middle}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child{width:50%}"],changeDetection:0})}}return i})();var Lh=Ne(zh());function pF(i,t){if(i&1){let e=Se();h(0,"tr")(1,"td")(2,"label",6),b(3,"Pricebook Font Size"),m()(),h(4,"td")(5,"input",7),N("ngModelChange",function(r){X(e);let o=S();return K(o.onInputHandler(r,"pricebookFontSize"))}),m()(),h(6,"td")(7,"span",5),b(8),m()()()}if(i&2){let e=S();f(5),C("maskito",e.options)("ngModel",e.pricebookFontSize()),f(3),P(e.tooltip.pricebookFontSize)}}function uF(i,t){if(i&1&&(h(0,"span",8),b(1),m()),i&2){let e=S();f(),P(e.tooltip.pricebookFontSize)}}function hF(i,t){if(i&1&&(h(0,"span",8),b(1),m()),i&2){let e=S();f(),P(e.tooltip.fontSize)}}var cy=(()=>{class i{constructor(){this.options=Wt,this.barcodeHeight=B(0),this.fontSize=B(0),this.barcode=B(!1),this.code=B(!1),this.price=B(!1),this.name=B(!1),this.moveProductName=B(!1),this.releaseDate=B(!1),this.discountVisible=B(!1),this.pricebookPrice=B(!1),this.pricebookFontSize=B(0),this.tooltip={fontSize:"Change font size for price",pricebookFontSize:"Change font size for pricebook price"},this.storeService=O(Re),this.injector=O(Ye),this.destroyRef=O(Ct)}ngOnInit(){Dt(this.storeService.paperConfiguration,{injector:this.injector}).pipe(Rt(this.destroyRef),Ee(e=>{this.pricebookFontSize.set(e.PricebookFontSize),this.fontSize.set(e.PriceFontSize)})).subscribe()}onInputHandler(e,n){switch(console.log("value",e),n){case"pricebookFontSize":this.fontSize.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{ProductNameFontSize:this.fontSize()}));break;case"fontSize":this.fontSize.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{PriceFontSize:this.fontSize()}));break}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=pe({type:i,selectors:[["app-price-fontsize"]],standalone:!0,features:[fe],decls:16,vars:4,consts:[["pricebookFontSizeTemplate",""],["fontSizeTemplate",""],[1,"table","table-bordered"],["for","fontSize",1,"fs-2","d-inline-block","text-truncate"],["id","fontSize","name","fontSize","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],[1,"form-text","fst-italic","fs-2","fw-normal"],["for","pricebookFontSize",1,"fs-2","d-inline-block","text-truncate"],["id","pricebookFontSize","name","pricebookFontSize","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],[1,"fst-italic"]],template:function(n,r){if(n&1){let o=Se();h(0,"table",2)(1,"tbody"),H(2,pF,9,3,"tr"),h(3,"tr")(4,"td")(5,"label",3),b(6,"Font Size"),m()(),h(7,"td")(8,"input",4),N("ngModelChange",function(s){return X(o),K(r.onInputHandler(s,"fontSize"))}),m()(),h(9,"td")(10,"span",5),b(11),m()()()()(),H(12,uF,2,1,"ng-template",null,0,we)(14,hF,2,1,"ng-template",null,1,we)}n&2&&(f(2),ce(r.storeService.paperConfiguration().PricebookVisible?2:-1),f(6),C("maskito",r.options)("ngModel",r.fontSize()),f(3),P(r.tooltip.fontSize))},dependencies:[qi,et,gt,ht,ft,Vt],styles:["table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{vertical-align:middle}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child{width:50%}"]})}}return i})();function mF(i,t){i&1&&(h(0,"button",14)(1,"span",13),b(2,"Next"),m(),J(3,"i",33),m())}function fF(i,t){if(i&1){let e=Se();h(0,"button",34),N("click",function(){X(e);let r=S();return K(r.printBarcodePreview())}),h(1,"span",13),b(2,"Print"),m()()}}function gF(i,t){if(i&1&&(h(0,"div",20),J(1,"app-barcode-preview",35),m()),i&2){let e=S();f(),C("items",e.storeService.expandProductItems())}}function bF(i,t){if(i&1&&J(0,"app-label-preview",36),i&2){let e=t.$implicit;C("item",e)}}function vF(i,t){if(i&1&&(h(0,"div",21),St(1,bF,1,1,"app-label-preview",36,kr),m()),i&2){let e=S();C("ngStyle",e.stickerContainerStyles),f(),Pt(e.storeService.expandProductItems())}}var cq=(()=>{class i{constructor(){this.storeService=O(Re),this.httpService=O(Wi),this.toastr=O(zr),this.destroyRef=O(Ct),this.route=O(Vi),this.router=O(Ei),this.step=B(0)}get stickerContainerStyles(){return{display:"grid",gridTemplateColumns:`repeat(auto-fill, minmax(${this.storeService.paperConfiguration().StickerWidth}px, 1fr))`,gridTemplateRows:"auto",gap:`${this.storeService.paperConfiguration().RowSpacing}px ${this.storeService.paperConfiguration().ColumnSpacing}px`,width:`${this.storeService.paperConfiguration().PaperWidth}px`,border:"1px dashed #000",alignItems:"self-start",overflowY:"auto"}}ngOnInit(){this.route.queryParamMap.pipe(at(e=>e.has("step")),qe(e=>+e.get("step")),Ee(e=>this.step.set(e))).subscribe()}get printMode(){return localStorage.getItem("printMode")||"barcode"}onPrevious(){this.step.set(this.step()-1),this.router.navigate([],{queryParams:{step:this.step()},queryParamsHandling:"merge",relativeTo:this.route})}printPriceLabelPreview(){let e=this.storeService.paperConfiguration().StickerWidth,n=this.storeService.paperConfiguration().StickerHeight,r=this.storeService.paperConfiguration().RowSpacing,o=this.storeService.paperConfiguration().ColumnSpacing;(0,Lh.default)({printable:"priceLabel-container",type:"html",style:`
181
+ `,onLoadingEnd:()=>{this.onSaveConfig()}})}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=pe({type:i,selectors:[["app-customize-label"]],contentQueries:function(n,r,o){if(n&1&&Et(o,GO,7),n&2){let a;Fe(a=Ae())&&(r.contentTemplate=a.first)}},inputs:{sidebarConfig:[1,"sidebarConfig"]},standalone:!0,features:[fe],decls:25,vars:10,consts:[["scrollContainer",""],[1,"d-flex","flex-column","gap-3","h-100"],[1,"topbar","position-static"],[1,"d-flex","top-navbar","navbar-expand-lg",3,"ngClass"],["id","navbarSupportedContent",1,"navbar-collapse","collapse","m-0",3,"ngbCollapse"],[1,"w-100","d-flex","align-items-center","px-3"],[1,"navbar-nav","float-start","me-auto","h-100","d-flex","align-items-center"],[1,"nav-item","d-none","d-lg-block"],[1,"font-robotoslab","m-0"],[1,"navbar-nav","float-end","py-2"],[1,"d-flex","gap-2"],["type","button",1,"btn","btn-outline-secondary","d-flex","gap-1","align-items-center",3,"click"],[1,"f","fas","fa-angle-left"],[1,"fs-3"],["type","button",1,"btn","btn-outline-secondary","d-flex","gap-1","align-items-center"],[1,"row","mx-2","flex-grow-1","overflow-x-auto",2,"margin-bottom","1rem"],[1,"col-lg-6","col-md-6","d-flex","justify-content-center"],[1,"card","sticky-md-top",2,"height","fit-content"],[1,"card-body","d-flex","justify-content-center","align-items-center"],["id","print-wrapper",1,"print-wrapper"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"col-lg-6","col-md-6"],[1,"f","fas","fa-angle-right"],[1,"card"],[1,"p-3"],[1,"card-title","mb-0","font-robotoslab",2,"font-size","16px"],[1,"card-body","border-top","p-1"],["ngbAccordion","",3,"closeOthers"],["ngbAccordionItem","",3,"collapsed"],["ngbAccordionHeader",""],["ngbAccordionButton",""],[1,"",2,"font-size","14px"],["ngbAccordionCollapse",""],["ngbAccordionBody","",1,"scroll-container"],[2,"font-size","14px"],[1,"table","table-bordered"],["for","hasPriceTax1",1,"fs-2","d-inline-block","text-truncate"],[1,"form-check","form-switch"],["type","input",1,"form-control","fs-2",3,"ngModelChange","ngModel","maskito"],[1,"form-text","fst-italic","fw-normal","fs-2"],["for","hasPriceTax2",1,"fs-2","d-inline-block","text-truncate"],["for","hasPriceTax3",1,"fs-2","d-inline-block","text-truncate"],["for","hasPriceTax4",1,"fs-2","d-inline-block","text-truncate"],["for","hasPriceTax5",1,"fs-2","d-inline-block","text-truncate"],["for","hasPriceTax6",1,"fs-2","d-inline-block","text-truncate"],["for","hasPriceTax7",1,"fs-2","d-inline-block","text-truncate"],["for","hasPriceTax8",1,"fs-2","d-inline-block","text-truncate"],["for","hasPriceTax9",1,"fs-2","d-inline-block","text-truncate"],["type","input",1,"form-control","fs-2",3,"ngModelChange","ngModel"]],template:function(n,r){n&1&&(h(0,"div",1)(1,"header",2)(2,"nav",3)(3,"div",4)(4,"div",5)(5,"ul",6)(6,"li",7)(7,"h3",8),b(8,"Customize Label"),m()()(),h(9,"ul",9)(10,"div",10)(11,"button",11),N("click",function(){return r.onPrevious()}),J(12,"i",12),h(13,"span",13),b(14,"Back"),m()(),H(15,XO,4,0,"button",14)(16,KO,3,0,"button",14),m()()()()()(),h(17,"div",15)(18,"div",16)(19,"div",17)(20,"div",18)(21,"div",19),H(22,QO,1,0,"ng-container",20),m()()()(),H(23,ZO,34,4,"div",21)(24,JO,127,33,"div",21),m()()),n&2&&(f(),$e("data-navbarbg",r.storeService.options().navbarbg),f(),C("ngClass",r.storeService.options().navbarbg=="skin6"?"navbar-light":"navbar-dark"),f(),C("ngbCollapse",!r.storeService.options().isCollapsed),$e("data-navbarbg",r.storeService.options().navbarbg),f(12),ce(r.sidebarConfig()==="barcode"?15:16),f(7),C("ngTemplateOutlet",r.contentTemplate)("ngTemplateOutletContext",He(8,YO,r.sidebarConfig()==="barcode"?r.storeService.expandProductItem():r.storeService.expandProductItems())),f(),ce(r.sidebarConfig()==="barcode"?23:24))},dependencies:[ks,Ms,Ts,As,Os,Fs,Pc,Br,Mn,ty,iy,ny,et,Fr,gt,ht,ft,Vt,qi],styles:[".scroll-container[_ngcontent-%COMP%]{overflow-y:auto;max-height:calc(100vh - 200px)}.print-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;gap:10px;overflow-y:auto;max-height:calc(100vh - 130px)}"],changeDetection:0})}}return i})();function eF(i,t){if(i&1&&(h(0,"div",2)(1,"span"),b(2),m(),h(3,"span"),b(4),Je(5,"number"),m()(),h(6,"span",2),b(7),Je(8,"date"),m()),i&2){let e=S();C("ngStyle",e.stickerHeaderDesc1Style),f(2),P(e.store.paperShelfLabelConfig().CurrencySymbol),f(2),P(pi(5,5,e.item.UnitPrice)),f(2),C("ngStyle",e.stickerHeaderDesc2Style),f(),Ht("sd ",Si(8,7,e.item.Promotions.ExpirationDate,"dd-MM-yyyy"),"")}}function tF(i,t){if(i&1&&(h(0,"span",2),b(1),m(),h(2,"span",2),b(3),Je(4,"number"),m()),i&2){let e=S();Oo("font-size",e.store.paperShelfLabelConfig().CurrencySymbolFontSize+"px"),C("ngStyle",e.stickerContentHeaderDesc1Style),f(),P(e.store.paperShelfLabelConfig().CurrencySymbol),f(),C("ngStyle",e.stickerContentHeaderDesc2Style),f(),P(pi(4,6,e.promotionDiscount(e.item.Promotions)))}}function iF(i,t){if(i&1&&(h(0,"span",2),b(1),m(),h(2,"span",2),b(3),Je(4,"number"),m()),i&2){let e=S();Oo("font-size",e.store.paperShelfLabelConfig().CurrencySymbolFontSize+"px"),C("ngStyle",e.stickerContentHeaderDesc1Style),f(),P(e.store.paperShelfLabelConfig().CurrencySymbol),f(),C("ngStyle",e.stickerContentHeaderDesc2Style),f(),P(pi(4,6,e.item.UnitPrice))}}function nF(i,t){i&1&&(h(0,"span"),b(1," PROMOSI "),m(),h(2,"span"),b(3," PROMOSI "),m())}var oy=(()=>{class i{constructor(){this.store=O(Re),this.item=null,this.printDate=new Date}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.Promotions?"max-content":"20px"}}get stickerHeaderDesc1Style(){return{display:"flex",textDecoration:"line-through",fontSize:`${this.store.paperShelfLabelConfig().PromotionPriceFontSize}px`,fontWeight:"800"}}get stickerHeaderDesc2Style(){return{fontWeight:"600",fontSize:`${this.store.paperShelfLabelConfig().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.store.paperShelfLabelConfig().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.store.paperShelfLabelConfig().ProductNameFontSize}px`}}get stickerContentBodyDesc2Style(){return{textAlign:"start",fontSize:`${this.store.paperShelfLabelConfig().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.store.paperShelfLabelConfig().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.store.paperShelfLabelConfig().PromotionDescFontSize}px`}}get stickerFooterBodyDesc2Style(){return{fontSize:`${this.store.paperShelfLabelConfig().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(n){throw new Error("error: "+(n instanceof Error?n.message:String(n)))}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=pe({type:i,selectors:[["app-label-preview"]],inputs:{item:"item"},standalone:!0,features:[fe],decls:22,vars:23,consts:[["id","sticker",1,"sticker",3,"ngStyle"],["id","sticker-header",3,"ngStyle"],[3,"ngStyle"]],template:function(n,r){n&1&&(h(0,"div",0)(1,"div",1),H(2,eF,9,10),m(),h(3,"div",2)(4,"div",2),H(5,tF,5,8)(6,iF,5,8),m(),h(7,"div",2)(8,"span",2),b(9),m(),h(10,"span",2),b(11),m()()(),h(12,"div",2)(13,"div",2)(14,"span",2),b(15),Je(16,"date"),m()(),h(17,"div",2)(18,"div",2),H(19,nF,4,0),m(),h(20,"span",2),b(21),m()()()()),n&2&&(C("ngStyle",r.stickerStyle),f(),C("ngStyle",r.stickerHeaderStyle),f(),ce(r.item.Promotions?2:-1),f(),C("ngStyle",r.stickerContentStyle),f(),C("ngStyle",r.stickerContentHeaderStyle),f(),ce(r.item.Promotions?5:6),f(2),C("ngStyle",r.stickerContentBodyStyle),f(),C("ngStyle",r.stickerContentBodyDesc1Style),f(),P(r.item.Name),f(),C("ngStyle",r.stickerContentBodyDesc2Style),f(),P(r.item.Code),f(),C("ngStyle",r.stickerFooterStyle),f(),C("ngStyle",r.stickerFooterHeaderStyle),f(),C("ngStyle",r.stickerFooterHeaderDesc1Style),f(),P(Si(16,20,r.printDate,"dd-MM-yyyy")),f(2),C("ngStyle",r.stickerFooterBodyStyle),f(),C("ngStyle",r.stickerFooterBodyDesc1Style),f(),ce(r.item.Promotions?19:-1),f(),C("ngStyle",r.stickerFooterBodyDesc2Style),f(),P(r.store.paperShelfLabelConfig().CompanyNameLabel))},dependencies:[et,Or,Ar,ws],changeDetection:0})}}return i})();function rF(i,t){if(i&1&&(h(0,"ng-option",3),b(1),m()),i&2){let e=t.$implicit;C("value",e.Name),f(),P(e.Name)}}var ay=(()=>{class i{onInputHandler(e,n){switch(n){case"paperWidth":this.paperWidth.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{PaperWidth:this.paperWidth()}));break;case"stickerWidth":this.stickerWidth.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{StickerWidth:this.stickerWidth()}));break;case"stickerHeight":this.stickerHeight.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{StickerHeight:this.stickerHeight()}));break;case"barcodeHeight":this.barcodeHeight.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{BarcodeHeight:this.barcodeHeight()}));break;case"fontSize":this.fontSize.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{ProductNameFontSize:this.fontSize()}));break}}constructor(){this.options=Wt,this.storeService=O(Re),this.destroyRef=O(Ct),this.injector=O(Ye),this.paperWidth=B(0),this.stickerWidth=B(0),this.stickerHeight=B(0),this.paperSource=B(""),this.barcodeHeight=B(0),this.fontSize=B(0),this.tooltip={paperWidth:"The width of the paper",stickerWidth:"The width of the sticker",stickerHeight:"The height of the sticker",barcodeHeight:"The height of the generated barcode in pixels",fontSize:"Change all font size (except price)"}}ngOnInit(){Dt(this.storeService.paperConfiguration,{injector:this.injector}).pipe(Ee(e=>{this.paperWidth.set(e.PaperWidth),this.stickerWidth.set(e.StickerWidth),this.stickerHeight.set(e.StickerHeight),this.barcodeHeight.set(e.BarcodeHeight),this.fontSize.set(e.ProductNameFontSize)})).subscribe(),this.paperWidth.set(this.storeService.paperConfiguration().PaperWidth),this.stickerWidth.set(this.storeService.paperConfiguration().StickerWidth),this.stickerHeight.set(this.storeService.paperConfiguration().StickerHeight),this.paperSource.set(this.storeService.paperConfig().PaperFormats[0].Name),this.storeService.paperSource().length==0&&this.storeService.onChangePaperSource(this.storeService.paperConfig().PaperFormats[0].Name)}onChangePaperSource(e){let n=this.storeService.paperConfig().PaperFormats.findIndex(r=>r.Name===e);n!==-1&&(this.storeService.onChangePaperSource(this.storeService.paperConfig().PaperFormats[n].Name),this.storeService.onChangePaperConfiguration(this.storeService.paperConfig().PaperFormats[n]))}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=pe({type:i,selectors:[["app-pp-paper"]],standalone:!0,features:[fe],decls:58,vars:17,consts:[[1,"table","table-bordered"],["for","paperSource",1,"fs-2","d-inline-block","text-truncate"],["searchable","false","clearable","false","id","paperSource","name","paperSource","selecte","",1,"custom","w-100","fs-2",3,"ngModelChange","ngModel"],[3,"value"],[1,"form-text","fst-italic","fw-normal","fs-2"],["for","paperWidth",1,"fs-2","d-inline-block","text-truncate"],["id","paperWidth","name","paperWidth","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],["for","stickerWidth",1,"fs-2","d-inline-block","text-truncate"],["name","stickerWidth","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],["for","stickerHeight",1,"fs-2","d-inline-block","text-truncate"],["id","stickerHeight","name","stickerHeight","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],["for","barcode",1,"fs-2"],["id","barcodeHeight","name","barcodeHeight","type","text",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],["for","fontSize",1,"fs-2","d-inline-block","text-truncate"],["id","fontSize","name","fontSize","type","text",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"]],template:function(n,r){n&1&&(h(0,"table",0)(1,"tbody")(2,"tr")(3,"td")(4,"label",1),b(5,"Paper Source"),m()(),h(6,"td")(7,"ng-select",2),N("ngModelChange",function(a){return r.onChangePaperSource(a)}),St(8,rF,2,2,"ng-option",3,Tn),m()(),h(10,"td")(11,"span",4),b(12),m()()(),h(13,"tr")(14,"td")(15,"label",5),b(16,"Paper Width"),m()(),h(17,"td")(18,"input",6),N("ngModelChange",function(a){return r.onInputHandler(a,"paperWidth")}),m()(),h(19,"td")(20,"span",4),b(21),m()()(),h(22,"tr")(23,"td")(24,"label",7),b(25,"Sticker Width"),m()(),h(26,"td")(27,"input",8),N("ngModelChange",function(a){return r.onInputHandler(a,"stickerWidth")}),m()(),h(28,"td")(29,"span",4),b(30),m()()(),h(31,"tr")(32,"th")(33,"label",9),b(34,"Sticker Height"),m()(),h(35,"td")(36,"input",10),N("ngModelChange",function(a){return r.onInputHandler(a,"stickerHeight")}),m()(),h(37,"td")(38,"span",4),b(39),m()()(),h(40,"tr")(41,"td")(42,"label",11),b(43,"Barcode Height"),m()(),h(44,"td")(45,"input",12),N("ngModelChange",function(a){return r.onInputHandler(a,"barcodeHeight")}),m()(),h(46,"td")(47,"span",4),b(48),m()()(),h(49,"tr")(50,"td")(51,"label",13),b(52,"Font Size"),m()(),h(53,"td")(54,"input",14),N("ngModelChange",function(a){return r.onInputHandler(a,"fontSize")}),m()(),h(55,"td")(56,"span",4),b(57),m()()()()()),n&2&&(f(7),C("ngModel",r.storeService.paperSource()),f(),Pt(r.storeService.paperConfig().PaperFormats),f(4),P(r.tooltip.paperWidth),f(6),C("maskito",r.options)("ngModel",r.paperWidth()),f(3),P(r.tooltip.paperWidth),f(6),C("maskito",r.options)("ngModel",r.stickerWidth()),f(3),P(r.tooltip.stickerWidth),f(6),C("maskito",r.options)("ngModel",r.stickerHeight()),f(3),P(r.tooltip.stickerHeight),f(6),C("maskito",r.options)("ngModel",r.barcodeHeight()),f(3),P(r.tooltip.barcodeHeight),f(6),C("maskito",r.options)("ngModel",r.fontSize()),f(3),P(r.tooltip.fontSize))},dependencies:[gt,ht,ft,Vt,bt,Di,$i,js,qi],styles:["table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{vertical-align:middle}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child{width:50%}"],changeDetection:0})}}return i})();function oF(i,t){if(i&1&&(h(0,"span",14),b(1),m()),i&2){let e=S();f(),P(e.tooltip.leftIndent)}}function aF(i,t){if(i&1&&(h(0,"span",14),b(1),m()),i&2){let e=S();f(),P(e.tooltip.topIndent)}}function sF(i,t){if(i&1&&(h(0,"span",14),b(1),m()),i&2){let e=S();f(),P(e.tooltip.rowSpacing)}}function lF(i,t){if(i&1&&(h(0,"span",14),b(1),m()),i&2){let e=S();f(),P(e.tooltip.columnSpacing)}}var sy=(()=>{class i{constructor(){this.options=Wt,this.tooltip={leftIndent:"The number of pixels appended before the first COLUMN",topIndent:"The number of pixels appended after the first ROW",rowSpacing:"The number of pixels between each ROW",columnSpacing:"The number of pixels between each COLUMN"},this.leftIndent=B(0),this.topIndent=B(0),this.rowSpacing=B(0),this.columnSpacing=B(0),this.storeService=O(Re),this.destroyRef=O(Ct),this.injector=O(Ye)}onInputHandler(e,n){switch(n){case"marginLeft":this.leftIndent.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{MarginLeft:this.leftIndent()}));break;case"marginTop":this.topIndent.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{MarginTop:this.topIndent()}));break;case"rowSpacing":this.rowSpacing.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{RowSpacing:this.rowSpacing()}));break;case"columnSpacing":this.columnSpacing.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{ColumnSpacing:this.columnSpacing()}));break}}ngOnInit(){Dt(this.storeService.paperConfiguration,{injector:this.injector}).pipe(Rt(this.destroyRef),Ee(e=>{this.leftIndent.set(e.MarginLeft),this.topIndent.set(e.MarginTop),this.rowSpacing.set(e.RowSpacing),this.columnSpacing.set(e.ColumnSpacing)})).subscribe()}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=pe({type:i,selectors:[["app-pp-spacing"]],standalone:!0,features:[fe],decls:46,vars:12,consts:[["leftIndentTemplate",""],["topIndentTemplate",""],["rowSpacingTemplate",""],["columnSpacingTemplate",""],[1,"table","table-bordered"],["for","leftIndent",1,"fs-2","d-inline-block","text-truncate"],["id","leftIndent","name","leftIndent","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],[1,"form-text","fst-italic","fs-2","fw-normal"],["for","topIndent",1,"fs-2","d-inline-block","text-truncate"],["id","topIndent","name","topIndent","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],["for","rowSpacing",1,"fs-2","d-inline-block","text-truncate"],["id","rowSpacing","name","rowSpacing","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],["for","columnSpacing",1,"fs-2","d-inline-block","text-truncate"],["id","columnSpacing","name","columnSpacing","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],[1,"fst-italic"]],template:function(n,r){if(n&1){let o=Se();h(0,"table",4)(1,"tbody")(2,"tr")(3,"td")(4,"label",5),b(5,"Left Indent"),m()(),h(6,"td")(7,"input",6),N("ngModelChange",function(s){return X(o),K(r.onInputHandler(s,"marginLeft"))}),m()(),h(8,"td")(9,"span",7),b(10),m()()(),h(11,"tr")(12,"td")(13,"label",8),b(14,"Top Indent"),m()(),h(15,"td")(16,"input",9),N("ngModelChange",function(s){return X(o),K(r.onInputHandler(s,"marginTop"))}),m()(),h(17,"td")(18,"span",7),b(19),m()()(),h(20,"tr")(21,"td")(22,"label",10),b(23,"Row Spacing"),m()(),h(24,"td")(25,"input",11),N("ngModelChange",function(s){return X(o),K(r.onInputHandler(s,"rowSpacing"))}),m()(),h(26,"td")(27,"span",7),b(28),m()()(),h(29,"tr")(30,"th")(31,"label",12),b(32,"Column Spacing"),m()(),h(33,"td")(34,"input",13),N("ngModelChange",function(s){return X(o),K(r.onInputHandler(s,"columnSpacing"))}),m()(),h(35,"td")(36,"span",7),b(37),m()()()()(),H(38,oF,2,1,"ng-template",null,0,we)(40,aF,2,1,"ng-template",null,1,we)(42,sF,2,1,"ng-template",null,2,we)(44,lF,2,1,"ng-template",null,3,we)}n&2&&(f(7),C("maskito",r.options)("ngModel",r.leftIndent()),f(3),P(r.tooltip.leftIndent),f(6),C("maskito",r.options)("ngModel",r.topIndent()),f(3),P(r.tooltip.topIndent),f(6),C("maskito",r.options)("ngModel",r.rowSpacing()),f(3),P(r.tooltip.rowSpacing),f(6),C("maskito",r.options)("ngModel",r.columnSpacing()),f(3),P(r.tooltip.columnSpacing))},dependencies:[gt,ht,ft,Vt,bt,qi,Di],styles:["table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{vertical-align:middle}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child{width:50%}"],changeDetection:0})}}return i})();function cF(i,t){if(i&1&&(h(0,"span",8),b(1),m()),i&2){let e=S();f(),P(e.tooltip.basicPriceLabel)}}function dF(i,t){if(i&1&&(h(0,"span",8),b(1),m()),i&2){let e=S();f(),P(e.tooltip.promotionPriceLabel)}}var ly=(()=>{class i{constructor(){this.tooltip={basicPriceLabel:"Custom label normal price",promotionPriceLabel:"Custom label promotion price"},this.storeService=O(Re),this.destroyRef=O(Ct),this.injector=O(Ye),this.basicPriceLabel=B(""),this.promotionPriceLabel=B(""),this.options=Wt}ngOnInit(){Dt(this.storeService.paperConfiguration,{injector:this.injector}).pipe(Rt(this.destroyRef),Ee(e=>{this.basicPriceLabel.set(e.BasicPriceLabel),this.promotionPriceLabel.set(e.PromotionPriceLabel)})).subscribe()}onInputHandler(e,n){switch(n){case"basicPriceLabel":this.basicPriceLabel.set(e),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{BasicPriceLabel:this.basicPriceLabel()}));break;case"promotionPriceLabel":this.promotionPriceLabel.set(e),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{PromotionPriceLabel:this.promotionPriceLabel()}));break}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=pe({type:i,selectors:[["app-pp-label"]],standalone:!0,features:[fe],decls:24,vars:4,consts:[["basicPriceLabelTemplate",""],["promotionPriceLabelTemplate",""],[1,"table","table-bordered"],["for","normalPrice",1,"fs-2","d-inline-block","text-truncate"],["id","normalPrice","name","basicPriceLabel","type","text",1,"form-control","fs-2",3,"ngModelChange","ngModel"],[1,"form-text","fst-italic","fs-2","fw-normal"],["for","promotionPrice",1,"fs-2","d-inline-block","text-truncate"],["id","promotionPrice","name","promotionPriceLabel","type","text",1,"form-control","fs-1",3,"ngModelChange","ngModel"],[1,"fst-italic"]],template:function(n,r){if(n&1){let o=Se();h(0,"table",2)(1,"tbody")(2,"tr")(3,"td")(4,"label",3),b(5,"Normal Price"),m()(),h(6,"td")(7,"input",4),N("ngModelChange",function(s){return X(o),K(r.onInputHandler(s,"basicPriceLabel"))}),m()(),h(8,"td")(9,"span",5),b(10),m()()(),h(11,"tr")(12,"td")(13,"label",6),b(14,"Promotion Price"),m()(),h(15,"td")(16,"input",7),N("ngModelChange",function(s){return X(o),K(r.onInputHandler(s,"promotionPriceLabel"))}),m()(),h(17,"td")(18,"span",5),b(19),m()()()()(),H(20,cF,2,1,"ng-template",null,0,we)(22,dF,2,1,"ng-template",null,1,we)}n&2&&(f(7),C("ngModel",r.basicPriceLabel()),f(3),P(r.tooltip.basicPriceLabel),f(6),C("ngModel",r.promotionPriceLabel()),f(3),P(r.tooltip.promotionPriceLabel))},dependencies:[gt,ht,ft,Vt,bt],styles:["table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{vertical-align:middle}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child{width:50%}"],changeDetection:0})}}return i})();var Lh=Ne(zh());function pF(i,t){if(i&1){let e=Se();h(0,"tr")(1,"td")(2,"label",6),b(3,"Pricebook Font Size"),m()(),h(4,"td")(5,"input",7),N("ngModelChange",function(r){X(e);let o=S();return K(o.onInputHandler(r,"pricebookFontSize"))}),m()(),h(6,"td")(7,"span",5),b(8),m()()()}if(i&2){let e=S();f(5),C("maskito",e.options)("ngModel",e.pricebookFontSize()),f(3),P(e.tooltip.pricebookFontSize)}}function uF(i,t){if(i&1&&(h(0,"span",8),b(1),m()),i&2){let e=S();f(),P(e.tooltip.pricebookFontSize)}}function hF(i,t){if(i&1&&(h(0,"span",8),b(1),m()),i&2){let e=S();f(),P(e.tooltip.fontSize)}}var cy=(()=>{class i{constructor(){this.options=Wt,this.barcodeHeight=B(0),this.fontSize=B(0),this.barcode=B(!1),this.code=B(!1),this.price=B(!1),this.name=B(!1),this.moveProductName=B(!1),this.releaseDate=B(!1),this.discountVisible=B(!1),this.pricebookPrice=B(!1),this.pricebookFontSize=B(0),this.tooltip={fontSize:"Change font size for price",pricebookFontSize:"Change font size for pricebook price"},this.storeService=O(Re),this.injector=O(Ye),this.destroyRef=O(Ct)}ngOnInit(){Dt(this.storeService.paperConfiguration,{injector:this.injector}).pipe(Rt(this.destroyRef),Ee(e=>{this.pricebookFontSize.set(e.PricebookFontSize),this.fontSize.set(e.PriceFontSize)})).subscribe()}onInputHandler(e,n){switch(console.log("value",e),n){case"pricebookFontSize":this.fontSize.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{ProductNameFontSize:this.fontSize()}));break;case"fontSize":this.fontSize.set(parseFloat(e.replace("px",""))),this.storeService.onChangePaperConfiguration(k(_({},this.storeService.paperConfiguration()),{PriceFontSize:this.fontSize()}));break}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=pe({type:i,selectors:[["app-price-fontsize"]],standalone:!0,features:[fe],decls:16,vars:4,consts:[["pricebookFontSizeTemplate",""],["fontSizeTemplate",""],[1,"table","table-bordered"],["for","fontSize",1,"fs-2","d-inline-block","text-truncate"],["id","fontSize","name","fontSize","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],[1,"form-text","fst-italic","fs-2","fw-normal"],["for","pricebookFontSize",1,"fs-2","d-inline-block","text-truncate"],["id","pricebookFontSize","name","pricebookFontSize","type","text","inputmode","number",1,"form-control","fs-2",3,"ngModelChange","maskito","ngModel"],[1,"fst-italic"]],template:function(n,r){if(n&1){let o=Se();h(0,"table",2)(1,"tbody"),H(2,pF,9,3,"tr"),h(3,"tr")(4,"td")(5,"label",3),b(6,"Font Size"),m()(),h(7,"td")(8,"input",4),N("ngModelChange",function(s){return X(o),K(r.onInputHandler(s,"fontSize"))}),m()(),h(9,"td")(10,"span",5),b(11),m()()()()(),H(12,uF,2,1,"ng-template",null,0,we)(14,hF,2,1,"ng-template",null,1,we)}n&2&&(f(2),ce(r.storeService.paperConfiguration().PricebookVisible?2:-1),f(6),C("maskito",r.options)("ngModel",r.fontSize()),f(3),P(r.tooltip.fontSize))},dependencies:[qi,et,gt,ht,ft,Vt],styles:["table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{vertical-align:middle}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child{width:50%}"]})}}return i})();function mF(i,t){i&1&&(h(0,"button",14)(1,"span",13),b(2,"Next"),m(),J(3,"i",33),m())}function fF(i,t){if(i&1){let e=Se();h(0,"button",34),N("click",function(){X(e);let r=S();return K(r.printBarcodePreview())}),h(1,"span",13),b(2,"Print"),m()()}}function gF(i,t){if(i&1&&(h(0,"div",20),J(1,"app-barcode-preview",35),m()),i&2){let e=S();f(),C("items",e.storeService.expandProductItems())}}function bF(i,t){if(i&1&&J(0,"app-label-preview",36),i&2){let e=t.$implicit;C("item",e)}}function vF(i,t){if(i&1&&(h(0,"div",21),St(1,bF,1,1,"app-label-preview",36,kr),m()),i&2){let e=S();C("ngStyle",e.stickerContainerStyles),f(),Pt(e.storeService.expandProductItems())}}var cq=(()=>{class i{constructor(){this.storeService=O(Re),this.httpService=O(Wi),this.toastr=O(zr),this.destroyRef=O(Ct),this.route=O(Vi),this.router=O(Ei),this.step=B(0)}get stickerContainerStyles(){return{display:"grid",gridTemplateColumns:`repeat(auto-fill, minmax(${this.storeService.paperConfiguration().StickerWidth}px, 1fr))`,gridTemplateRows:"auto",gap:`${this.storeService.paperConfiguration().RowSpacing}px ${this.storeService.paperConfiguration().ColumnSpacing}px`,width:`${this.storeService.paperConfiguration().PaperWidth}px`,border:"1px dashed #000",alignItems:"self-start",overflowY:"auto"}}ngOnInit(){this.route.queryParamMap.pipe(at(e=>e.has("step")),qe(e=>+e.get("step")),Ee(e=>this.step.set(e))).subscribe()}get printMode(){return localStorage.getItem("printMode")||"barcode"}onPrevious(){this.step.set(this.step()-1),this.router.navigate([],{queryParams:{step:this.step()},queryParamsHandling:"merge",relativeTo:this.route})}printPriceLabelPreview(){let e=this.storeService.paperConfiguration().StickerWidth,n=this.storeService.paperConfiguration().StickerHeight,r=this.storeService.paperConfiguration().RowSpacing,o=this.storeService.paperConfiguration().ColumnSpacing;(0,Lh.default)({printable:"priceLabel-container",type:"html",style:`
178
182
  @page {
179
183
  size: ${this.storeService.paperConfiguration().PaperWidth}px auto;
180
184
  margin: 0;
@@ -1 +1 @@
1
- import{a as ne,b as ie,c as oe,d as re}from"./chunk-WV652PSI.js";import{a as A}from"./chunk-Y7ZU5TZX.js";import{A as K,D as J,F as Q,G as X,H as Y,J as ee,da as te,ja as E,n as O,v as $,w as y,y as W,z as Z}from"./chunk-AJDEWWQT.js";import{$b as v,C as U,Da as g,Ec as R,Fc as I,Ha as N,I as V,Jc as j,Kb as C,Kc as q,Rb as _,Sa as x,Ta as b,Vb as p,bc as T,cc as P,dc as L,ec as i,fc as o,gc as d,kc as w,nc as h,oc as c,od as G,q as F,qd as H,ra as D,sa as M,ub as k,wd as B,xc as l,yc as z,zb as a,zc as S}from"./chunk-PNNBJ4WR.js";var ae=n=>({"is-invalid":n});function de(n,m){if(n&1&&(i(0,"swiper-slide")(1,"div",17),d(2,"img",18),i(3,"div",19)(4,"h4",20),l(5),o(),i(6,"div",21)(7,"p",22),l(8),o()()()()()),n&2){let e=m.$implicit;a(2),p("src",e.properties.imgSrc,k),a(3),S(" ",e.properties.title," "),a(3),S(" ",e.properties.description," ")}}function me(n,m){if(n&1&&(i(0,"ng-option",33)(1,"span",35),l(2),o()()),n&2){let e=m.$implicit;p("value",e),a(2),z(e)}}function pe(n,m){if(n&1){let e=w();i(0,"div",8)(1,"div",19)(2,"h3",23),l(3," DealPOS Barcode Apps "),o(),i(4,"p",24),l(5," Print Barcode label from your product catalog "),o()(),i(6,"div",25)(7,"div",26)(8,"div",27)(9,"span",28),d(10,"i",29),o(),d(11,"input",30),i(12,"span",31)(13,"ng-select",32),P(14,me,3,2,"ng-option",33,T),o()()()()(),i(16,"button",34),h("click",function(){x(e);let r=c();return b(r.onLoginState())}),l(17," Next "),o()()}if(n&2){let e=c();a(13),p("clearable",!1),a(),L(e.domains())}}function ce(n,m){n&1&&(i(0,"span"),l(1,"Username is required."),o())}function ue(n,m){if(n&1&&(i(0,"div",47),_(1,ce,2,0,"span",63),d(2,"span"),o()),n&2){let e,t=c(2);a(),p("ngIf",(e=t.form.get("username"))==null||e.errors==null?null:e.errors.required)}}function fe(n,m){if(n&1){let e=w();i(0,"i",66),h("click",function(){x(e);let r=c(3);return b(r.passwordInputType.set("text"))}),o()}}function ge(n,m){if(n&1){let e=w();i(0,"i",67),h("click",function(){x(e);let r=c(3);return b(r.passwordInputType.set("password"))}),o()}}function _e(n,m){if(n&1&&_(0,fe,1,0,"i",64)(1,ge,1,0,"i",65),n&2){let e=c(2);v(e.passwordInputType()==="password"?0:1)}}function he(n,m){n&1&&(i(0,"span"),l(1,"Password is required."),o())}function xe(n,m){if(n&1&&(i(0,"div",47),_(1,he,2,0,"span",63),d(2,"span"),o()),n&2){let e,t=c(2);a(),p("ngIf",(e=t.form.get("password"))==null||e.errors==null?null:e.errors.required)}}function be(n,m){if(n&1){let e=w();i(0,"div",9)(1,"div",36)(2,"h3",37),l(3,"Sign in"),o(),i(4,"p",38),l(5,"to"),o(),i(6,"div",39)(7,"p",40),l(8),o(),i(9,"a",41)(10,"i",42),h("click",function(){x(e);let r=c();return b(r.onLoginState())}),o()()()(),i(11,"div",19)(12,"div",43)(13,"span",44),d(14,"i",45),o(),d(15,"input",46),o(),_(16,ue,3,1,"div",47),o(),i(17,"div",19)(18,"div",48)(19,"span",44),d(20,"i",49),o(),i(21,"div",50),_(22,_e,2,1),d(23,"input",51),o()(),_(24,xe,3,1,"div",47),i(25,"div",52)(26,"a",53),l(27,"Forgot Password?"),o()()(),i(28,"button",54),l(29," Login "),o(),i(30,"div",55)(31,"div",56),d(32,"hr",57),i(33,"p",58),l(34,"or"),o(),d(35,"hr",57),o(),i(36,"button",59),h("click",function(){x(e);let r=c();return b(r.onSigninWithGoogle())}),i(37,"div",60),d(38,"i",61),i(39,"span",62),l(40,"Sign In with Google"),o()()()()()}if(n&2){let e,t,r,u,f,s=c();a(8),S(" (",s.hostFormField," ) "),a(7),p("ngClass",I(8,ae,((e=s.form.get("username"))==null?null:e.invalid)&&!((e=s.form.get("username"))!=null&&e.untouched))),a(),v((t=s.form.get("username"))!=null&&t.invalid&&!((t=s.form.get("username"))!=null&&t.untouched)?16:-1),a(6),v((r=s.form.get("password"))!=null&&r.value.length?22:-1),a(),p("ngClass",I(10,ae,((u=s.form.get("password"))==null?null:u.invalid)&&!((u=s.form.get("password"))!=null&&u.untouched)))("type",s.passwordInputType()),a(),v((f=s.form.get("password"))!=null&&f.invalid&&!((f=s.form.get("password"))!=null&&f.untouched)?24:-1),a(2),p("href","https://"+s.host+"/ForgotPassword",k)}}var le=(()=>{class n{constructor(){this.form=new K({}),this.loginState=C("FORM_DOMAIN"),this.news$=U([]),this.domains=C([".dealpos.co.id",".dealpos.net",".dealpos.com",".dealpos.app"]),this.passwordInputType=C("password"),this.onsubmit=onsubmit,this._destroy=new F,this.authService=g(E),this.fb=g(Y),this.httpService=g(te),this.version=C(""),this.router=g(O),this.regexSanitizeHostname=/^(https?):\/\/([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/.*)?$/}get hostFormField(){let e=this.form?.get("subDomain")?.value,t=this.form?.get("domain")?.value;if(e.match(this.regexSanitizeHostname)){let r=new URL(e);return r.origin.slice(0,r.origin.indexOf(".")).concat(t)}else return e.concat(t)}get domainStorage(){let e=this.authService.getDomain(),t=e.indexOf(".");return e.substring(t,e.length)}get host(){let{subDomain:e,domain:t}=this.form.value;return e+t}ngOnInit(){this.initForm(),this.news$=this.httpService.get("v2/content?fetch=children:barcode&sort=sortOrder:asc",void 0,"https://changelog.dealpos.app/umbraco/delivery/api/").pipe(V(e=>e.items))}initForm(){let e=this.authService.getDomain(),[t,r]=e.split("."),u=localStorage.getItem("Username")??"";this.form=this.fb.group({subDomain:[t??"",y.required],domain:[e.substring(e.indexOf(".dealpos"))||this.domains()[0],y.required],username:[u,y.required],password:["",y.required]})}isValidUrl(e){try{return!!new URL(e)}catch{return!1}}onLogin(){let{subDomain:e,domain:t,username:r,password:u}=this.form.value,f="";e.match(this.regexSanitizeHostname)?f=e.replace(t,t):f=e.concat(t);let s={Host:this.isValidUrl(f)?new URL(f).hostname:f,Username:r,Password:u};this.authService.login(s).pipe(re("login"),M(this._destroy)).subscribe(()=>{this.router.navigate(["/pages/v2/print-mode"])})}onSigninWithGoogle(){let{subDomain:e,domain:t,username:r,password:u}=this.form.value;this.authService.signInWithPopup(e+t).pipe(M(this._destroy),D(()=>this.authService.redirectUrl())).subscribe()}onLoginState(){let e=this.loginState();if(e==="FORM_DOMAIN")this.loginState.set("FORM_AUTH");else if(e==="FORM_AUTH"){let t=this.form.get("subDomain").value;this.form.patchValue({subDomain:t.slice(0,t.indexOf("."))}),this.loginState.set("FORM_DOMAIN")}}ngOnDestroy(){this._destroy.next(),this._destroy.complete()}isAppVersionUpdated(){let e=localStorage.getItem("appVersion"),t=A.version;return!!(e&&t&&e.replaceAll(".","")!==t.replaceAll(".",""))}ngAfterViewInit(){this.version.set(A.version)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=N({type:n,selectors:[["app-login"]],standalone:!0,features:[R],decls:23,vars:6,consts:[[1,"container-fluid","border","my-auto","d-flex","flex-column"],[1,"flex-grow-1","d-flex","align-items-center","justify-content-center"],[1,"row",2,"background","#ffffff","max-width","57rem","border-radius","4px"],[1,"p-0","col-12","col-md-6","border-end","d-flex","flex-column","align-items-center","py-4"],[1,"font-robotoslab","fw-normal","fs-6","text-dark"],["pagination","true","pagination-clickable","true","slides-per-view","1"],[1,"p-0","col-12","col-md-6","py-4"],[1,"h-100","d-flex","flex-column","gap-4","my-2","mx-5",3,"ngSubmit","formGroup"],[1,"d-flex","flex-column","justify-content-center","gap-3","h-100",2,"margin-top","-55px"],[1,"d-flex","flex-column","gap-3"],[1,"row","d-md-flex","py-3","px-4"],[1,"col-12","col-md-6","d-flex","align-items-center","gap-2"],[1,"m-0","h-100","d-flex","align-items-center","fs-2","fw-normal"],["alt","dealpos-logo","src","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"img-fluid"],[1,"cursor-pointer","col-12","col-md-6","d-flex","justify-content-center","gap-2","justify-content-md-end","align-items-center"],["target","_blank",1,"d-flex","gap-1",3,"href"],[1,"fst-italic","m-0","fs-2","fw-normal","text-dark","cursor-pointer"],[1,"d-flex","flex-column","gap-4"],["alt","",1,"img-fluid",3,"src"],[1,"d-flex","flex-column"],[1,"text-dark",2,"font-size","16px","font-weight","700"],[1,"d-flex","flex-wrap",2,"max-width","22rem"],[1,"fw-normal","text-dark"],[1,"m-0","font-robotoslab","text-dark","fs-6"],[1,"fst-italic","fw-normal","text-secondary-emphasis",2,"font-size","11px"],[1,"row",2,"height","50px"],[1,"col-12","h-100","mb-2","mb-md-0"],[1,"input-group","mb-3","border","rounded"],[1,"input-group-text","border-0","text-dark"],[1,"fas","fa-cloud"],["id","subDomain","formControlName","subDomain","type","text","placeholder","Store Address","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","text-dark",2,"border-radius","0","font-size","14px"],[1,"input-group-text","p-0",2,"z-index","99"],["formControlName","domain",1,"custom",2,"font-size","14px",3,"clearable"],[3,"value"],["type","button",1,"btn","btn-primary","btn-lg","w-100","font-robotoslab","fs-4",3,"click"],[2,"font-size","14px"],[1,"d-flex","align-baseline","gap-2"],[1,"m-0"],[1,"m-0","d-flex","align-items-end"],[1,"d-flex"],[1,"m-0","d-flex","align-items-end","fw-bold","me-2","font-robotoslab","d-inline-block","text-primary"],["href","#",1,"pe-auto","d-flex","align-items-center"],[1,"fas","fa-edit","d-flex","align-items-center","link-primary","fs-3",3,"click"],[1,"input-group","border","rounded",2,"height","50px"],[1,"input-group-text","text-dark"],[1,"fas","fa-user"],["formControlName","username","type","text","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","text-dark",3,"ngClass"],[1,"invalid-feedback"],[1,"input-group","d-flex","border","rounded",2,"height","50px"],[1,"fas","fa-key"],[1,"position-relative","flex-grow-1","h-100"],["formControlName","password","placeholder","Password","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","h-100","text-dark",3,"ngClass","type"],[1,"w-100","d-flex","justify-content-end"],[1,"link-underline-light","fs-2","fw-normal",3,"href"],["type","submit",1,"btn","btn-primary","btn-lg","fs-4","font-robotoslab"],[1,"d-flex","flex-column","align-items-center","gap-2"],[1,"d-flex","justify-content-center","gap-2"],[2,"width","150px","border","1px solid rgba(0, 0, 0, 0.85)"],[1,"m-0",2,"line-height","30px"],["type","button",1,"btn","btn-outline-primary","btn-lg","w-100",3,"click"],[1,"h-100","d-flex","align-items-center","justify-content-center","gap-2"],[1,"fab","fa-google","fs-3"],[1,"fw-medium","fs-3"],[4,"ngIf"],[1,"fas","fa-eye","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)"],[1,"fas","fa-eye-slash","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)"],[1,"fas","fa-eye","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)",3,"click"],[1,"fas","fa-eye-slash","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)",3,"click"]],template:function(t,r){t&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),l(5,"New Features"),o(),i(6,"swiper-container",5),P(7,de,9,3,"swiper-slide",null,T),j(9,"async"),o()(),i(10,"div",6)(11,"form",7),h("ngSubmit",function(){return r.onLogin()}),_(12,pe,18,1,"div",8)(13,be,41,12,"div",9),o()()()(),i(14,"div",10)(15,"div",11)(16,"p",12),l(17," Powered by: "),o(),d(18,"img",13),o(),i(19,"div",14)(20,"a",15)(21,"span",16),l(22),o()()()()()),t&2&&(a(7),L(q(9,4,r.news$)),a(4),p("formGroup",r.form),a(),v(r.loginState()==="FORM_DOMAIN"?12:13),a(8),p("href","https://changelog.dealpos.com/?categories=cat_IOl3P9ko0ayhv&view=complete&v"+r.version().replaceAll(".",""),k),a(2),S("Version ",r.version(),""))},dependencies:[H,G,ee,J,$,W,Z,Q,X,oe,ie,ne,B],styles:[".auth-wrapper[_ngcontent-%COMP%]{min-height:100vh;position:relative}.container-fluid[_ngcontent-%COMP%]{height:100vh}.grid__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,50%);width:50vw;height:50vh;background:#fff;box-shadow:0 10px 15px -3px #0000001a;border-radius:15px;overflow:hidden}.container[_ngcontent-%COMP%]{height:400px}swiper-container[_ngcontent-%COMP%]{height:100%;width:100%}swiper-slide[_ngcontent-%COMP%]{text-align:center;font-size:12px;background:#fff;display:flex;justify-content:center;align-items:center}swiper-slide[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:250px;height:150px;object-fit:cover;margin:0 auto}.btn[_ngcontent-%COMP%]:hover{background:transparent;color:#337ab7;box-shadow:none}.invalid-feedback[_ngcontent-%COMP%]{display:block}.btn[_ngcontent-%COMP%]{padding:.8rem 0}input[_ngcontent-%COMP%]::placeholder{color:gray;font-size:15px;opacity:.8}input[_ngcontent-%COMP%]{font-size:15px;border-color:#dee2e6}.input-group-text[_ngcontent-%COMP%]{background:transparent;border:none!important}.ng-touched.ng-valid[_ngcontent-%COMP%]{border-color:#dee2e6!important}.form-control[_ngcontent-%COMP%]{border:none!important}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}[_nghost-%COMP%] .ng-select .ng-select-container{border:1px solid #e9edf2;border-radius:0!important}[_nghost-%COMP%] .ng-dropdown-panel.ng-select-bottom{border-radius:4px;overflow:hidden} .ng-select.custom{height:100%!important;border:none!important} .ng-select.custom .ng-select-container{height:100%!important;border-top:none!important;border-right:none!important;border-bottom:none!important;border-radius:4px!important}"]})}}return n})();var se=(n,m)=>{let e=g(E),t=g(O);if(e.isAuthenticated()&&!e.isTokenExpired()&&e.checkAuthKeysExists())switch(localStorage.getItem("PrintMode")){case"barcode":return t.createUrlTree(["/pages/shelf/barcode"],{queryParams:{step:0}});case"priceLabel":return t.createUrlTree(["/pages/shelf/price-label"],{queryParams:{step:0}});default:return t.createUrlTree(["/"])}return!0};var Ge=[{path:"",component:le,canActivate:[se]}];export{Ge as AUTH_ROUTES};
1
+ import{a as ne,b as ie,c as oe,d as re}from"./chunk-WV652PSI.js";import{a as A}from"./chunk-LNBGLQGG.js";import{A as K,D as J,F as Q,G as X,H as Y,J as ee,da as te,ja as E,n as O,v as $,w as y,y as W,z as Z}from"./chunk-AJDEWWQT.js";import{$b as v,C as U,Da as g,Ec as R,Fc as I,Ha as N,I as V,Jc as j,Kb as C,Kc as q,Rb as _,Sa as x,Ta as b,Vb as p,bc as T,cc as P,dc as L,ec as i,fc as o,gc as d,kc as w,nc as h,oc as c,od as G,q as F,qd as H,ra as D,sa as M,ub as k,wd as B,xc as l,yc as z,zb as a,zc as S}from"./chunk-PNNBJ4WR.js";var ae=n=>({"is-invalid":n});function de(n,m){if(n&1&&(i(0,"swiper-slide")(1,"div",17),d(2,"img",18),i(3,"div",19)(4,"h4",20),l(5),o(),i(6,"div",21)(7,"p",22),l(8),o()()()()()),n&2){let e=m.$implicit;a(2),p("src",e.properties.imgSrc,k),a(3),S(" ",e.properties.title," "),a(3),S(" ",e.properties.description," ")}}function me(n,m){if(n&1&&(i(0,"ng-option",33)(1,"span",35),l(2),o()()),n&2){let e=m.$implicit;p("value",e),a(2),z(e)}}function pe(n,m){if(n&1){let e=w();i(0,"div",8)(1,"div",19)(2,"h3",23),l(3," DealPOS Barcode Apps "),o(),i(4,"p",24),l(5," Print Barcode label from your product catalog "),o()(),i(6,"div",25)(7,"div",26)(8,"div",27)(9,"span",28),d(10,"i",29),o(),d(11,"input",30),i(12,"span",31)(13,"ng-select",32),P(14,me,3,2,"ng-option",33,T),o()()()()(),i(16,"button",34),h("click",function(){x(e);let r=c();return b(r.onLoginState())}),l(17," Next "),o()()}if(n&2){let e=c();a(13),p("clearable",!1),a(),L(e.domains())}}function ce(n,m){n&1&&(i(0,"span"),l(1,"Username is required."),o())}function ue(n,m){if(n&1&&(i(0,"div",47),_(1,ce,2,0,"span",63),d(2,"span"),o()),n&2){let e,t=c(2);a(),p("ngIf",(e=t.form.get("username"))==null||e.errors==null?null:e.errors.required)}}function fe(n,m){if(n&1){let e=w();i(0,"i",66),h("click",function(){x(e);let r=c(3);return b(r.passwordInputType.set("text"))}),o()}}function ge(n,m){if(n&1){let e=w();i(0,"i",67),h("click",function(){x(e);let r=c(3);return b(r.passwordInputType.set("password"))}),o()}}function _e(n,m){if(n&1&&_(0,fe,1,0,"i",64)(1,ge,1,0,"i",65),n&2){let e=c(2);v(e.passwordInputType()==="password"?0:1)}}function he(n,m){n&1&&(i(0,"span"),l(1,"Password is required."),o())}function xe(n,m){if(n&1&&(i(0,"div",47),_(1,he,2,0,"span",63),d(2,"span"),o()),n&2){let e,t=c(2);a(),p("ngIf",(e=t.form.get("password"))==null||e.errors==null?null:e.errors.required)}}function be(n,m){if(n&1){let e=w();i(0,"div",9)(1,"div",36)(2,"h3",37),l(3,"Sign in"),o(),i(4,"p",38),l(5,"to"),o(),i(6,"div",39)(7,"p",40),l(8),o(),i(9,"a",41)(10,"i",42),h("click",function(){x(e);let r=c();return b(r.onLoginState())}),o()()()(),i(11,"div",19)(12,"div",43)(13,"span",44),d(14,"i",45),o(),d(15,"input",46),o(),_(16,ue,3,1,"div",47),o(),i(17,"div",19)(18,"div",48)(19,"span",44),d(20,"i",49),o(),i(21,"div",50),_(22,_e,2,1),d(23,"input",51),o()(),_(24,xe,3,1,"div",47),i(25,"div",52)(26,"a",53),l(27,"Forgot Password?"),o()()(),i(28,"button",54),l(29," Login "),o(),i(30,"div",55)(31,"div",56),d(32,"hr",57),i(33,"p",58),l(34,"or"),o(),d(35,"hr",57),o(),i(36,"button",59),h("click",function(){x(e);let r=c();return b(r.onSigninWithGoogle())}),i(37,"div",60),d(38,"i",61),i(39,"span",62),l(40,"Sign In with Google"),o()()()()()}if(n&2){let e,t,r,u,f,s=c();a(8),S(" (",s.hostFormField," ) "),a(7),p("ngClass",I(8,ae,((e=s.form.get("username"))==null?null:e.invalid)&&!((e=s.form.get("username"))!=null&&e.untouched))),a(),v((t=s.form.get("username"))!=null&&t.invalid&&!((t=s.form.get("username"))!=null&&t.untouched)?16:-1),a(6),v((r=s.form.get("password"))!=null&&r.value.length?22:-1),a(),p("ngClass",I(10,ae,((u=s.form.get("password"))==null?null:u.invalid)&&!((u=s.form.get("password"))!=null&&u.untouched)))("type",s.passwordInputType()),a(),v((f=s.form.get("password"))!=null&&f.invalid&&!((f=s.form.get("password"))!=null&&f.untouched)?24:-1),a(2),p("href","https://"+s.host+"/ForgotPassword",k)}}var le=(()=>{class n{constructor(){this.form=new K({}),this.loginState=C("FORM_DOMAIN"),this.news$=U([]),this.domains=C([".dealpos.co.id",".dealpos.net",".dealpos.com",".dealpos.app"]),this.passwordInputType=C("password"),this.onsubmit=onsubmit,this._destroy=new F,this.authService=g(E),this.fb=g(Y),this.httpService=g(te),this.version=C(""),this.router=g(O),this.regexSanitizeHostname=/^(https?):\/\/([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/.*)?$/}get hostFormField(){let e=this.form?.get("subDomain")?.value,t=this.form?.get("domain")?.value;if(e.match(this.regexSanitizeHostname)){let r=new URL(e);return r.origin.slice(0,r.origin.indexOf(".")).concat(t)}else return e.concat(t)}get domainStorage(){let e=this.authService.getDomain(),t=e.indexOf(".");return e.substring(t,e.length)}get host(){let{subDomain:e,domain:t}=this.form.value;return e+t}ngOnInit(){this.initForm(),this.news$=this.httpService.get("v2/content?fetch=children:barcode&sort=sortOrder:asc",void 0,"https://changelog.dealpos.app/umbraco/delivery/api/").pipe(V(e=>e.items))}initForm(){let e=this.authService.getDomain(),[t,r]=e.split("."),u=localStorage.getItem("Username")??"";this.form=this.fb.group({subDomain:[t??"",y.required],domain:[e.substring(e.indexOf(".dealpos"))||this.domains()[0],y.required],username:[u,y.required],password:["",y.required]})}isValidUrl(e){try{return!!new URL(e)}catch{return!1}}onLogin(){let{subDomain:e,domain:t,username:r,password:u}=this.form.value,f="";e.match(this.regexSanitizeHostname)?f=e.replace(t,t):f=e.concat(t);let s={Host:this.isValidUrl(f)?new URL(f).hostname:f,Username:r,Password:u};this.authService.login(s).pipe(re("login"),M(this._destroy)).subscribe(()=>{this.router.navigate(["/pages/v2/print-mode"])})}onSigninWithGoogle(){let{subDomain:e,domain:t,username:r,password:u}=this.form.value;this.authService.signInWithPopup(e+t).pipe(M(this._destroy),D(()=>this.authService.redirectUrl())).subscribe()}onLoginState(){let e=this.loginState();if(e==="FORM_DOMAIN")this.loginState.set("FORM_AUTH");else if(e==="FORM_AUTH"){let t=this.form.get("subDomain").value;this.form.patchValue({subDomain:t.slice(0,t.indexOf("."))}),this.loginState.set("FORM_DOMAIN")}}ngOnDestroy(){this._destroy.next(),this._destroy.complete()}isAppVersionUpdated(){let e=localStorage.getItem("appVersion"),t=A.version;return!!(e&&t&&e.replaceAll(".","")!==t.replaceAll(".",""))}ngAfterViewInit(){this.version.set(A.version)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=N({type:n,selectors:[["app-login"]],standalone:!0,features:[R],decls:23,vars:6,consts:[[1,"container-fluid","border","my-auto","d-flex","flex-column"],[1,"flex-grow-1","d-flex","align-items-center","justify-content-center"],[1,"row",2,"background","#ffffff","max-width","57rem","border-radius","4px"],[1,"p-0","col-12","col-md-6","border-end","d-flex","flex-column","align-items-center","py-4"],[1,"font-robotoslab","fw-normal","fs-6","text-dark"],["pagination","true","pagination-clickable","true","slides-per-view","1"],[1,"p-0","col-12","col-md-6","py-4"],[1,"h-100","d-flex","flex-column","gap-4","my-2","mx-5",3,"ngSubmit","formGroup"],[1,"d-flex","flex-column","justify-content-center","gap-3","h-100",2,"margin-top","-55px"],[1,"d-flex","flex-column","gap-3"],[1,"row","d-md-flex","py-3","px-4"],[1,"col-12","col-md-6","d-flex","align-items-center","gap-2"],[1,"m-0","h-100","d-flex","align-items-center","fs-2","fw-normal"],["alt","dealpos-logo","src","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"img-fluid"],[1,"cursor-pointer","col-12","col-md-6","d-flex","justify-content-center","gap-2","justify-content-md-end","align-items-center"],["target","_blank",1,"d-flex","gap-1",3,"href"],[1,"fst-italic","m-0","fs-2","fw-normal","text-dark","cursor-pointer"],[1,"d-flex","flex-column","gap-4"],["alt","",1,"img-fluid",3,"src"],[1,"d-flex","flex-column"],[1,"text-dark",2,"font-size","16px","font-weight","700"],[1,"d-flex","flex-wrap",2,"max-width","22rem"],[1,"fw-normal","text-dark"],[1,"m-0","font-robotoslab","text-dark","fs-6"],[1,"fst-italic","fw-normal","text-secondary-emphasis",2,"font-size","11px"],[1,"row",2,"height","50px"],[1,"col-12","h-100","mb-2","mb-md-0"],[1,"input-group","mb-3","border","rounded"],[1,"input-group-text","border-0","text-dark"],[1,"fas","fa-cloud"],["id","subDomain","formControlName","subDomain","type","text","placeholder","Store Address","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","text-dark",2,"border-radius","0","font-size","14px"],[1,"input-group-text","p-0",2,"z-index","99"],["formControlName","domain",1,"custom",2,"font-size","14px",3,"clearable"],[3,"value"],["type","button",1,"btn","btn-primary","btn-lg","w-100","font-robotoslab","fs-4",3,"click"],[2,"font-size","14px"],[1,"d-flex","align-baseline","gap-2"],[1,"m-0"],[1,"m-0","d-flex","align-items-end"],[1,"d-flex"],[1,"m-0","d-flex","align-items-end","fw-bold","me-2","font-robotoslab","d-inline-block","text-primary"],["href","#",1,"pe-auto","d-flex","align-items-center"],[1,"fas","fa-edit","d-flex","align-items-center","link-primary","fs-3",3,"click"],[1,"input-group","border","rounded",2,"height","50px"],[1,"input-group-text","text-dark"],[1,"fas","fa-user"],["formControlName","username","type","text","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","text-dark",3,"ngClass"],[1,"invalid-feedback"],[1,"input-group","d-flex","border","rounded",2,"height","50px"],[1,"fas","fa-key"],[1,"position-relative","flex-grow-1","h-100"],["formControlName","password","placeholder","Password","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","h-100","text-dark",3,"ngClass","type"],[1,"w-100","d-flex","justify-content-end"],[1,"link-underline-light","fs-2","fw-normal",3,"href"],["type","submit",1,"btn","btn-primary","btn-lg","fs-4","font-robotoslab"],[1,"d-flex","flex-column","align-items-center","gap-2"],[1,"d-flex","justify-content-center","gap-2"],[2,"width","150px","border","1px solid rgba(0, 0, 0, 0.85)"],[1,"m-0",2,"line-height","30px"],["type","button",1,"btn","btn-outline-primary","btn-lg","w-100",3,"click"],[1,"h-100","d-flex","align-items-center","justify-content-center","gap-2"],[1,"fab","fa-google","fs-3"],[1,"fw-medium","fs-3"],[4,"ngIf"],[1,"fas","fa-eye","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)"],[1,"fas","fa-eye-slash","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)"],[1,"fas","fa-eye","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)",3,"click"],[1,"fas","fa-eye-slash","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)",3,"click"]],template:function(t,r){t&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),l(5,"New Features"),o(),i(6,"swiper-container",5),P(7,de,9,3,"swiper-slide",null,T),j(9,"async"),o()(),i(10,"div",6)(11,"form",7),h("ngSubmit",function(){return r.onLogin()}),_(12,pe,18,1,"div",8)(13,be,41,12,"div",9),o()()()(),i(14,"div",10)(15,"div",11)(16,"p",12),l(17," Powered by: "),o(),d(18,"img",13),o(),i(19,"div",14)(20,"a",15)(21,"span",16),l(22),o()()()()()),t&2&&(a(7),L(q(9,4,r.news$)),a(4),p("formGroup",r.form),a(),v(r.loginState()==="FORM_DOMAIN"?12:13),a(8),p("href","https://changelog.dealpos.com/?categories=cat_IOl3P9ko0ayhv&view=complete&v"+r.version().replaceAll(".",""),k),a(2),S("Version ",r.version(),""))},dependencies:[H,G,ee,J,$,W,Z,Q,X,oe,ie,ne,B],styles:[".auth-wrapper[_ngcontent-%COMP%]{min-height:100vh;position:relative}.container-fluid[_ngcontent-%COMP%]{height:100vh}.grid__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,50%);width:50vw;height:50vh;background:#fff;box-shadow:0 10px 15px -3px #0000001a;border-radius:15px;overflow:hidden}.container[_ngcontent-%COMP%]{height:400px}swiper-container[_ngcontent-%COMP%]{height:100%;width:100%}swiper-slide[_ngcontent-%COMP%]{text-align:center;font-size:12px;background:#fff;display:flex;justify-content:center;align-items:center}swiper-slide[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:250px;height:150px;object-fit:cover;margin:0 auto}.btn[_ngcontent-%COMP%]:hover{background:transparent;color:#337ab7;box-shadow:none}.invalid-feedback[_ngcontent-%COMP%]{display:block}.btn[_ngcontent-%COMP%]{padding:.8rem 0}input[_ngcontent-%COMP%]::placeholder{color:gray;font-size:15px;opacity:.8}input[_ngcontent-%COMP%]{font-size:15px;border-color:#dee2e6}.input-group-text[_ngcontent-%COMP%]{background:transparent;border:none!important}.ng-touched.ng-valid[_ngcontent-%COMP%]{border-color:#dee2e6!important}.form-control[_ngcontent-%COMP%]{border:none!important}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}[_nghost-%COMP%] .ng-select .ng-select-container{border:1px solid #e9edf2;border-radius:0!important}[_nghost-%COMP%] .ng-dropdown-panel.ng-select-bottom{border-radius:4px;overflow:hidden} .ng-select.custom{height:100%!important;border:none!important} .ng-select.custom .ng-select-container{height:100%!important;border-top:none!important;border-right:none!important;border-bottom:none!important;border-radius:4px!important}"]})}}return n})();var se=(n,m)=>{let e=g(E),t=g(O);if(e.isAuthenticated()&&!e.isTokenExpired()&&e.checkAuthKeysExists())switch(localStorage.getItem("PrintMode")){case"barcode":return t.createUrlTree(["/pages/shelf/barcode"],{queryParams:{step:0}});case"priceLabel":return t.createUrlTree(["/pages/shelf/price-label"],{queryParams:{step:0}});default:return t.createUrlTree(["/"])}return!0};var Ge=[{path:"",component:le,canActivate:[se]}];export{Ge as AUTH_ROUTES};
@@ -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:"1.8.4"};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.39.0"};export{e as a};
@@ -1 +1 @@
1
- import{b as N,e as $,f as z,g as A,i as k}from"./chunk-ZQG3LLIR.js";import"./chunk-BVFPFG2Y.js";import"./chunk-WV652PSI.js";import"./chunk-Y7ZU5TZX.js";import{da as H,l as I,n as B,r as q}from"./chunk-AJDEWWQT.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-PNNBJ4WR.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-GTRDHGVN.js";import"./chunk-BVFPFG2Y.js";import"./chunk-WV652PSI.js";import"./chunk-LNBGLQGG.js";import{da as H,l as I,n as B,r as q}from"./chunk-AJDEWWQT.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-PNNBJ4WR.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-ZQG3LLIR.js";import"./chunk-BVFPFG2Y.js";import"./chunk-WV652PSI.js";import"./chunk-Y7ZU5TZX.js";import{da as N,l as E,r as F}from"./chunk-AJDEWWQT.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-PNNBJ4WR.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-GTRDHGVN.js";import"./chunk-BVFPFG2Y.js";import"./chunk-WV652PSI.js";import"./chunk-LNBGLQGG.js";import{da as N,l as E,r as F}from"./chunk-AJDEWWQT.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-PNNBJ4WR.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};