dealposbarcode 26.1.0 → 26.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- import{l as Ue}from"./chunk-Z3B3WOTF.js";import{$b as Fe,Ac as J,Bb as de,C as P,Ca as $,Cb as G,D as Me,Da as z,Db as xe,H as F,J as Pe,K as H,Ma as W,Ob as Be,Q as se,Qb as Ne,Ra as le,S as Ae,Vc as j,Wc as x,Xc as ue,ac as Le,ba as Re,c as Te,ca as C,da as Ie,ea as oe,ed as Q,f as M,k as Ee,ka as T,la as L,ld as q,na as re,nb as B,nc as $e,ob as k,oc as Ge,p as ne,pa as u,pb as ce,qb as ke,qc as je,rc as He,sa as ae,sc as Ve,v as ie,xa as I,ya as V,yc as K,za as U}from"./chunk-JCQ56J6G.js";import{a as l,b as h,g as p,h as E,i as R,j as Ce}from"./chunk-7RSU6VFI.js";var at=["*"];var lt=["dialog"];var We={animation:!0,transitionTimerDelayMs:5},Ke=(()=>{let e=class e{constructor(){this.animation=We.animation}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ct(n){let{transitionDelay:e,transitionDuration:o}=window.getComputedStyle(n),t=parseFloat(e),i=parseFloat(o);return(t+i)*1e3}function Je(n){return typeof n=="string"}function fe(n){return n!=null}function dt(n){return n&&n.then}function _e(n){return(n||document.body).getBoundingClientRect()}function ut(n){return e=>new Te(o=>{let t=r=>n.run(()=>o.next(r)),i=r=>n.run(()=>o.error(r)),s=()=>n.run(()=>o.complete());return e.subscribe({next:t,error:i,complete:s})})}var ht=()=>{},{transitionTimerDelayMs:pt}=We,Y=new Map,A=(n,e,o,t)=>{let i=t.context||{},s=Y.get(e);if(s)switch(t.runningTransition){case"continue":return Ee;case"stop":n.run(()=>s.transition$.complete()),i=Object.assign(s.context,i),Y.delete(e)}let r=o(e,t.animation,i)||ht;if(!t.animation||window.getComputedStyle(e).transitionProperty==="none")return n.run(()=>r()),ne(void 0).pipe(ut(n));let a=new M,d=new M,y=a.pipe(Ae(!0));Y.set(e,{transition$:a,complete:()=>{d.next(),d.complete()},context:i});let c=ct(e);return n.runOutsideAngular(()=>{let g=P(e,"transitionend").pipe(C(y),F(({target:_})=>_===e)),f=Me(c+pt).pipe(C(y));Pe(f,g,d).pipe(C(y)).subscribe(()=>{Y.delete(e),n.run(()=>{r(),a.next(),a.complete()})})}),a.asObservable()};function ft(n,e){if(typeof navigator>"u")return"0px";let{classList:o}=n,t=o.contains("show");t||o.add("show"),n.style[e]="";let i=n.getBoundingClientRect()[e]+"px";return t||o.remove("show"),i}var _t=(n,e,o)=>{let{direction:t,maxSize:i,dimension:s}=o,{classList:r}=n;function a(){r.add("collapse"),t==="show"?r.add("show"):r.remove("show")}if(!e){a();return}return i||(i=ft(n,s),o.maxSize=i,n.style[s]=t!=="show"?i:"0px",r.remove("collapse","collapsing","show"),_e(n),r.add("collapsing")),n.style[s]=t==="show"?i:"0px",()=>{a(),r.remove("collapsing"),n.style[s]=""}},gt=(()=>{let e=class e{constructor(){this._ngbConfig=u(Ke),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),pi=(()=>{let e=class e{constructor(){this._config=u(gt),this._element=u(W),this._zone=u(k),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new B,this.horizontal=this._config.horizontal,this.shown=new B,this.hidden=new B}set collapsed(t){this._isCollapsed!==t&&(this._isCollapsed=t,this._afterInit&&this._runTransitionWithEvents(t,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(t=this._isCollapsed){this.collapsed=!t,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(t,i){return A(this._zone,this._element.nativeElement,_t,{animation:i,runningTransition:"stop",context:{direction:t?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(t,i){this._runTransition(t,i).subscribe(()=>{t?this.hidden.emit():this.shown.emit()})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=xe({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(i,s){i&2&&K("collapse-horizontal",s.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"]});let n=e;return n})();var fi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=G({type:e}),e.\u0275inj=L({});let n=e;return n})();var _i=(()=>{let n=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,e=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(n()||e()):!1})();var mt=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Qe(n){let e=Array.from(n.querySelectorAll(mt)).filter(o=>o.tabIndex!==-1);return[e[0],e[e.length-1]]}var yt=(n,e,o,t=!1)=>{n.runOutsideAngular(()=>{let i=P(e,"focusin").pipe(C(o),ie(s=>s.target));P(e,"keydown").pipe(C(o),F(s=>s.key==="Tab"),oe(i)).subscribe(([s,r])=>{let[a,d]=Qe(e);(r===a||r===e)&&s.shiftKey&&(d.focus(),s.preventDefault()),r===d&&!s.shiftKey&&(a.focus(),s.preventDefault())}),t&&P(e,"click").pipe(C(o),oe(i),ie(s=>s[1])).subscribe(s=>s.focus())})};var gi=new Date(1882,10,12),mi=new Date(2174,10,25);var yi=1e3*60*60*24;var ge=1080,vt=24*ge,bt=12*ge+793,vi=29*vt+bt,bi=11*ge+204;var Di=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=G({type:e}),e.\u0275inj=L({});let n=e;return n})();var wi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=G({type:e}),e.\u0275inj=L({});let n=e;return n})(),Dt=(()=>{let e=class e{constructor(){this._ngbConfig=u(Ke),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0,this.role="dialog"}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),N=class{constructor(e,o,t){this.nodes=e,this.viewRef=o,this.componentRef=t}};var wt=(()=>{let e=class e{constructor(){this._document=u(V)}hide(){let t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,s=i.style,{overflow:r,paddingRight:a}=s;if(t>0){let d=parseFloat(window.getComputedStyle(i).paddingRight);s.paddingRight=`${d+t}px`}return s.overflow="hidden",()=>{t>0&&(s.paddingRight=a),s.overflow=r}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),St=["animation","backdropClass"],Ot=(()=>{let e=class e{constructor(){this._nativeElement=u(W).nativeElement,this._zone=u(k),this._injector=u(I),this._cdRef=u(Q)}ngOnInit(){ce({mixedReadWrite:()=>A(this._zone,this._nativeElement,(t,i)=>{i&&_e(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})},{injector:this._injector})}hide(){return A(this._zone,this._nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}updateOptions(t){St.forEach(i=>{fe(t[i])&&(this[i]=t[i])}),this._cdRef.markForCheck()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=de({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(i,s){i&2&&(J("modal-backdrop"+(s.backdropClass?" "+s.backdropClass:"")),K("show",!s.animation)("fade",s.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(i,s){},encapsulation:2});let n=e;return n})(),Z=class{update(e){}close(e){}dismiss(e){}},he=class{update(e){this._windowCmptRef.instance.updateOptions(e),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._backdropCmptRef.instance.updateOptions(e)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(C(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(C(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(e,o,t,i){this._windowCmptRef=e,this._contentRef=o,this._backdropCmptRef=t,this._beforeDismiss=i,this._closed=new M,this._dismissed=new M,this._hidden=new M,e.instance.dismissEvent.subscribe(s=>{this.dismiss(s)}),this.result=new Promise((s,r)=>{this._resolve=s,this._reject=r}),this.result.then(null,()=>{})}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(e);else{let o=this._beforeDismiss();dt(o)?o.then(t=>{t!==!1&&this._dismiss(e)},()=>{}):o!==!1&&this._dismiss(e)}}_removeModalElements(){let e=this._windowCmptRef.instance.hide(),o=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ne(void 0);e.subscribe(()=>{let{nativeElement:t}=this._windowCmptRef.location;t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),o.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:t}=this._backdropCmptRef.location;t.parentNode.removeChild(t),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),H(e,o).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},pe=(function(n){return n[n.BACKDROP_CLICK=0]="BACKDROP_CLICK",n[n.ESC=1]="ESC",n})(pe||{}),Ct=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","role","scrollable","size","windowClass","modalDialogClass"],Tt=(()=>{let e=class e{constructor(){this._document=u(V),this._elRef=u(W),this._zone=u(k),this._injector=u(I),this._cdRef=u(Q),this._closed$=new M,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.role="dialog",this.dismissEvent=new B,this.shown=new M,this.hidden=new M}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":Je(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,ce({mixedReadWrite:()=>this._show()},{injector:this._injector})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:t}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=A(this._zone,t,()=>t.classList.remove("show"),i),r=A(this._zone,this._dialogEl.nativeElement,()=>{},i),a=H(s,r);return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}updateOptions(t){Ct.forEach(i=>{fe(t[i])&&(this[i]=t[i])}),this._cdRef.markForCheck()}_show(){let t={animation:this.animation,runningTransition:"continue"},i=A(this._zone,this._elRef.nativeElement,(r,a)=>{a&&_e(r),r.classList.add("show")},t),s=A(this._zone,this._dialogEl.nativeElement,()=>{},t);H(i,s).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{P(t,"keydown").pipe(C(this._closed$),F(s=>s.key==="Escape")).subscribe(s=>{this.keyboard?requestAnimationFrame(()=>{s.defaultPrevented||this._zone.run(()=>this.dismiss(pe.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let i=!1;P(this._dialogEl.nativeElement,"mousedown").pipe(C(this._closed$),Ie(()=>i=!1),Re(()=>P(t,"mouseup").pipe(C(this._closed$),se(1))),F(({target:s})=>t===s)).subscribe(()=>{i=!0}),P(t,"click").pipe(C(this._closed$)).subscribe(({target:s})=>{t===s&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!i&&this._zone.run(()=>this.dismiss(pe.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){let i=t.querySelector("[ngbAutofocus]"),s=Qe(t)[0];(i||s||t).focus()}}_restoreFocus(){let t=this._document.body,i=this._elWithFocus,s;i&&i.focus&&t.contains(i)?s=i:s=t,this._zone.runOutsideAngular(()=>{setTimeout(()=>s.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&A(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=de({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(i,s){if(i&1&&je(lt,7),i&2){let r;He(r=Ve())&&(s._dialogEl=r.first)}},hostAttrs:["tabindex","-1"],hostVars:8,hostBindings:function(i,s){i&2&&(Ne("aria-modal",!0)("aria-labelledby",s.ariaLabelledBy)("aria-describedby",s.ariaDescribedBy)("role",s.role),J("modal d-block"+(s.windowClass?" "+s.windowClass:"")),K("fade",s.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",role:"role",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:at,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(i,s){i&1&&($e(),Fe(0,"div",1,0)(2,"div",2),Ge(3),Le()()),i&2&&J("modal-dialog"+(s.size?" modal-"+s.size:"")+(s.centered?" modal-dialog-centered":"")+s.fullscreenClass+(s.scrollable?" modal-dialog-scrollable":"")+(s.modalDialogClass?" "+s.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}
2
- `],encapsulation:2});let n=e;return n})(),Et=(()=>{let e=class e{constructor(){this._applicationRef=u(Be),this._injector=u(I),this._environmentInjector=u(ae),this._document=u(V),this._scrollBar=u(wt),this._activeWindowCmptHasChanged=new M,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new B;let t=u(k);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let i=this._windowCmpts[this._windowCmpts.length-1];yt(t,i.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(i.location.nativeElement)}})}_restoreScrollBar(){let t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,i,s){let r=s.container instanceof HTMLElement?s.container:fe(s.container)?this._document.querySelector(s.container):this._document.body;if(!r)throw new Error(`The specified modal container "${s.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let a=new Z;t=s.injector||t;let d=t.get(ae,null)||this._environmentInjector,y=this._getContentRef(t,d,i,a,s),c=s.backdrop!==!1?this._attachBackdrop(r):void 0,g=this._attachWindowComponent(r,y.nodes),f=new he(g,y,c,s.beforeDismiss);return this._registerModalRef(f),this._registerWindowCmpt(g),f.hidden.pipe(se(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=_=>{f.close(_)},a.dismiss=_=>{f.dismiss(_)},a.update=_=>{f.update(_)},f.update(s),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),c&&c.instance&&c.changeDetectorRef.detectChanges(),g.changeDetectorRef.detectChanges(),f}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(i=>i.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t){let i=q(Ot,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_attachWindowComponent(t,i){let s=q(Tt,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(s.hostView),t.appendChild(s.location.nativeElement),s}_getContentRef(t,i,s,r,a){return s?s instanceof ke?this._createFromTemplateRef(s,r):Je(s)?this._createFromString(s):this._createFromComponent(t,i,s,r,a):new N([])}_createFromTemplateRef(t,i){let s={$implicit:i,close(a){i.close(a)},dismiss(a){i.dismiss(a)}},r=t.createEmbeddedView(s);return this._applicationRef.attachView(r),new N([r.rootNodes],r)}_createFromString(t){let i=this._document.createTextNode(`${t}`);return new N([[i]])}_createFromComponent(t,i,s,r,a){let d=I.create({providers:[{provide:Z,useValue:r}],parent:t}),y=q(s,{environmentInjector:i,elementInjector:d}),c=y.location.nativeElement;return a.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(y.hostView),new N([[c]],y.hostView,y)}_setAriaHidden(t){let i=t.parentElement;i&&t!==this._document.body&&(Array.from(i.children).forEach(s=>{s!==t&&s.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,i)=>{t?i.setAttribute("aria-hidden",t):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){let i=()=>{let s=this._modalRefs.indexOf(t);s>-1&&(this._modalRefs.splice(s,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(i,i)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{let i=this._windowCmpts.indexOf(t);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Si=(()=>{let e=class e{constructor(){this._injector=u(I),this._modalStack=u(Et),this._config=u(Dt)}open(t,i={}){let s=l(h(l({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._injector,t,s)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Oi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=G({type:e}),e.\u0275inj=L({});let n=e;return n})();var qe=Symbol("");function Ye(n){return new Proxy(n,{has(e,o){return!!this.get(e,o,void 0)},get(e,o){let t=j(e);return!At(t)||!(o in t)?($(e[o])&&e[o][qe]&&delete e[o],e[o]):($(e[o])||(Object.defineProperty(e,o,{value:x(()=>e()[o]),configurable:!0}),e[o][qe]=!0),Ye(e[o]))}})}var Pt=[WeakSet,WeakMap,Promise,Date,Error,RegExp,ArrayBuffer,DataView,Function];function At(n){if(n===null||typeof n!="object"||Rt(n))return!1;let e=Object.getPrototypeOf(n);if(e===Object.prototype)return!0;for(;e&&e!==Object.prototype;){if(Pt.includes(e.constructor))return!1;e=Object.getPrototypeOf(e)}return e===Object.prototype}function Rt(n){return typeof n?.[Symbol.iterator]=="function"}var It=new WeakMap,w=Symbol("");function S(n,...e){let o=j(()=>X(n)),t=e.reduce((r,a)=>l(l({},r),typeof a=="function"?a(r):a),o),i=n[w],s=Reflect.ownKeys(n[w]);for(let r of Reflect.ownKeys(t))if(s.includes(r)){let a=r;o[a]!==t[a]&&i[a].set(t[a])}xt(n)}function X(n){let e=n[w];return Reflect.ownKeys(n[w]).reduce((o,t)=>{let i=e[t]();return h(l({},o),{[t]:i})},{})}function kt(n){return It.get(n[w])||[]}function xt(n){let e=kt(n);for(let o of e){let t=j(()=>X(n));o(t)}}function Ze(...n){let e=[...n],o=typeof e[0]=="function"?{}:e.shift(),t=e;return(()=>{class s{constructor(){let a=t.reduce((m,D)=>D(m),Bt()),{stateSignals:d,props:y,methods:c,hooks:g}=a,f=l(l(l({},d),y),c);this[w]=a[w];for(let m of Reflect.ownKeys(f))this[m]=f[m];let{onInit:_,onDestroy:v}=g;_&&_(),v&&u(U).onDestroy(v)}static \u0275fac=function(d){return new(d||s)};static \u0275prov=T({token:s,factory:s.\u0275fac,providedIn:o.providedIn||null})}return s})()}function Bt(){return{[w]:{},stateSignals:{},props:{},methods:{},hooks:{}}}function me(...n){let e=typeof n[0]=="function"?n:n.slice(1);return o=>e.reduce((t,i)=>i(t),o)}function Xe(n){return e=>{let o=n(l(l(l({[w]:e[w]},e.stateSignals),e.props),e.methods));return h(l({},e),{props:l(l({},e.props),o)})}}function ye(n){return Xe(e=>{let o=n(e);return Reflect.ownKeys(o).reduce((i,s)=>{let r=o[s];return h(l({},i),{[s]:$(r)?r:x(r)})},{})})}function et(n){return e=>{let o=l(l(l({[w]:e[w]},e.stateSignals),e.props),e.methods),t=typeof n=="function"?n(o):n,i=(s,r)=>r?()=>{s&&s(),r(o)}:s;return h(l({},e),{hooks:{onInit:i(e.hooks.onInit,t.onInit),onDestroy:i(e.hooks.onDestroy,t.onDestroy)}})}}function ee(n){return e=>{let o=n(l(l(l({[w]:e[w]},e.stateSignals),e.props),e.methods));return h(l({},e),{methods:l(l({},e.methods),o)})}}function te(n){return e=>{let o=typeof n=="function"?n():n,t=Reflect.ownKeys(o),i=e[w],s={};for(let r of t)i[r]=z(o[r]),s[r]=Ye(i[r]);return h(l({},e),{stateSignals:l(l({},e.stateSignals),s)})}}var ji=Symbol("DEVTOOLS_FEATURE");var Nt=new re("ReduxDevtoolsConfig"),Ft=(()=>{var e,o,t;let i=class i{constructor(){E(this,e,z({}));E(this,o);E(this,t,ue(()=>{if(p(this,o)===void 0)throw new Error("no callback function defined");let r=p(this,e).call(this),a=Object.entries(r).reduce((d,[y,c])=>h(l({},d),{[y]:X(c)}),{});p(this,o).call(this,a)}))}get stores(){return p(this,e).call(this)}track(r,a){p(this,e).update(d=>h(l({},d),{[r]:a}))}onChange(r){R(this,o,r)}removeStore(r){p(this,e).update(a=>Object.entries(a).reduce((d,[y,c])=>(y!==r&&(d[y]=c),d),{}))}notifyRenamedStore(r){p(this,e).call(this)[r]&&p(this,e).update(a=>l({},a))}};e=new WeakMap,o=new WeakMap,t=new WeakMap,i.\u0275fac=function(a){return new(a||i)},i.\u0275prov=T({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})(),ve=new Set,tt={send:()=>{}},nt=(()=>{var e,o,t,i,s,r,a;let d=class d{constructor(){E(this,e,{});E(this,o,Ue(u(le)));E(this,t,[]);E(this,i,l({name:"NgRx SignalStore"},u(Nt,{optional:!0})));E(this,s,{});E(this,r,1);E(this,a,u(k).runOutsideAngular(()=>p(this,o)&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__.connect(p(this,i)):tt));p(this,o)}ngOnDestroy(){ve.clear()}syncToDevTools(c){let g=Object.entries(c).reduce((v,[m,D])=>{let{options:O,name:rt}=p(this,e)[m];return v[rt]=O.map(D),v},{});R(this,s,l(l({},p(this,s)),g));let f=Array.from(ve),_=f.length?f.join(", "):"Store Update";ve.clear(),p(this,a).send({type:_},p(this,s))}getNextId(){return String(Ce(this,r)._++)}addStore(c,g,f,_){let v=g,m=Object.values(p(this,e)).map(O=>O.name);if(m.includes(v)&&!_.indexNames)throw new Error(`An instance of the store ${v} already exists. Enable automatic indexing via withDevTools('${v}', { indexNames: true }), or rename it upon instantiation.`);for(let O=1;m.includes(v);O++)v=`${g}-${O}`;p(this,e)[c]={name:v,options:_};let D=_.tracker;p(this,t).includes(D)||p(this,t).push(D),D.onChange(O=>this.syncToDevTools(O)),D.track(c,f)}removeStore(c){let g=p(this,e)[c].name;R(this,e,Object.entries(p(this,e)).reduce((f,[_,v])=>(_!==c&&(f[_]=v),f),{})),R(this,s,Object.entries(p(this,s)).reduce((f,[_,v])=>(_!==g&&(f[_]=v),f),{}));for(let f of p(this,t))f.removeStore(c)}renameStore(c,g){let f=p(this,e)[c];if(!f)return;let _=f.name;if(_===g)return;if(Object.entries(p(this,e)).filter(([m])=>m!==c).map(([,m])=>m.name).includes(g))throw new Error(`NgRx Toolkit/DevTools: cannot rename from ${_} to ${g}. ${g} is already assigned to another SignalStore instance.`);R(this,e,Object.entries(p(this,e)).reduce((m,[D,O])=>(D===c?m[D]=h(l({},O),{name:g}):m[D]=O,m),{})),R(this,s,Object.entries(p(this,s)).reduce((m,[D,O])=>(D!==_&&(m[D]=O),m),{})),p(this,t).forEach(m=>m.notifyRenamedStore(c))}};e=new WeakMap,o=new WeakMap,t=new WeakMap,i=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap,d.\u0275fac=function(g){return new(g||d)},d.\u0275prov=T({token:d,factory:d.\u0275fac,providedIn:"root"});let n=d;return n})(),Lt="___renameDevtoolsName",be="___uniqueDevtoolsId";function it(n,...e){return me(ee(()=>{let o=u(nt),t=o.getNextId();return{[Lt]:i=>{o.renameStore(t,i)},[be]:()=>t}}),et(o=>{let t=u(nt),i=String(o[be]());return{onInit(){let s=String(o[be]()),r={indexNames:!e.some(a=>a.indexNames===!1),map:e.find(a=>a.map)?.map??(a=>a),tracker:u(e.find(a=>a.tracker)?.tracker||Ft)};t.addStore(s,n,o,r)},onDestroy(){t.removeStore(i)}}}))}var Hi=Symbol("SYNC_STATUS");var Vi=me(te({}));var $t="00000000-0000-0000-0000-000000000000";var b=[];for(let n=0;n<256;++n)b.push((n+256).toString(16).slice(1));function st(n,e=0){return(b[n[e+0]]+b[n[e+1]]+b[n[e+2]]+b[n[e+3]]+"-"+b[n[e+4]]+b[n[e+5]]+"-"+b[n[e+6]]+b[n[e+7]]+"-"+b[n[e+8]]+b[n[e+9]]+"-"+b[n[e+10]]+b[n[e+11]]+b[n[e+12]]+b[n[e+13]]+b[n[e+14]]+b[n[e+15]]).toLowerCase()}var De,Gt=new Uint8Array(16);function we(){if(!De){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");De=crypto.getRandomValues.bind(crypto)}return De(Gt)}var jt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Se={randomUUID:jt};function Ht(n,e,o){n=n||{};let t=n.random??n.rng?.()??we();if(t.length<16)throw new Error("Random bytes length must be >= 16");if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,e){if(o=o||0,o<0||o+16>e.length)throw new RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`);for(let i=0;i<16;++i)e[o+i]=t[i];return e}return st(t)}function Vt(n,e,o){return Se.randomUUID&&!e&&!n?Se.randomUUID():Ht(n,e,o)}var Oe=Vt;var ot={layoutOptions:{theme:"light",dir:"ltr",layout:"vertical",sidebartype:"full",sidebarpos:"fixed",headerpos:"fixed",boxed:"full",navbarbg:"skin6",sidebarbg:"skin6",logobg:"skin6",active:1,tabStatus:"justify",isCollapsed:!1,innerWidth:window.innerWidth,defaultSidebar:"full",showSettings:!1,showMobileMenu:!1,expandLogo:!1},profileTemplate:null,priceLabelTemplate:null,outlets:null,taxs:null,currentStep:1,product:null,cartItemsMap:new Map},as=Ze({providedIn:"root"},it("appStore"),te(ot),ye(n=>{let e=x(()=>Array.from(n.cartItemsMap().values()).map(t=>{let i=t.promotion?.UnitPrice??t.outletPrice?.Price??(t.unitPrice!==t.product.UnitPrice?t.unitPrice:t.product.UnitPrice);return h(l({},t),{unitPrice:t.unitPrice,effectiveUnitPrice:i})})),o=x(()=>Array.from(n.cartItemsMap().values()).flatMap(t=>{let i=t.promotion?.UnitPrice??t.outletPrice?.Price??(t.unitPrice!==t.product.UnitPrice?t.unitPrice:t.product.UnitPrice);return Array.from({length:t.quantity},()=>({id:Oe(),product:t.product,promotion:t.promotion,outletPrice:t.outletPrice,unitPrice:t.unitPrice,effectiveUnitPrice:i}))}));return{cartItems:e,flattenedCartUnits:o}}),ee(n=>({updateLayoutOptions(e){S(n,o=>h(l({},o),{layoutOptions:e}))},updateProfileTemplate(e){S(n,o=>h(l({},o),{profileTemplate:e}))},updatePriceLabelTemplate(e){S(n,o=>h(l({},o),{priceLabelTemplate:e}))},updateOutlets(e){S(n,o=>h(l({},o),{outlets:e}))},updateTaxes(e){S(n,o=>h(l({},o),{taxs:e}))},updateCurrentStep(e){S(n,o=>h(l({},o),{currentStep:e}))},updateProduct(e){S(n,o=>h(l({},o),{product:e}))},addProductToCart(e,o,t,i=1,s=0){S(n,r=>{let a=e.ID,y=(r.cartItemsMap.get(a)?.quantity??0)+i;if(y<=0){let c=new Map(r.cartItemsMap);return c.delete(a),h(l({},r),{cartItemsMap:c})}else{let c=new Map(r.cartItemsMap);return c.set(a,{product:e,promotion:o,outletPrice:t,quantity:y,unitPrice:s}),h(l({},r),{cartItemsMap:c})}})},updateCartItemQuantity(e,o,t,i){S(n,s=>{if(o<=0){let d=new Map(s.cartItemsMap);return d.delete(e),h(l({},s),{cartItemsMap:d})}let r=s.cartItemsMap.get(e);if(!r)return s;let a=new Map(s.cartItemsMap);return a.set(e,h(l({},r),{quantity:o,promotion:t,outletPrice:i})),h(l({},s),{cartItemsMap:a})})},removeProductFromCart(e){S(n,o=>{if(!o.cartItemsMap.has(e))return o;let t=new Map(o.cartItemsMap);return t.delete(e),h(l({},o),{cartItemsMap:t})})},clearCartItems(){S(n,e=>h(l({},e),{cartItemsMap:new Map}))},clearAll(){S(n,()=>l({},ot))}})));export{pi as a,fi as b,Di as c,wi as d,Z as e,Si as f,Oi as g,$t as h,as as i};
1
+ import{l as Ue}from"./chunk-Z3B3WOTF.js";import{$b as Fe,Ac as J,Bb as de,C as P,Ca as $,Cb as G,D as Me,Da as z,Db as xe,H as F,J as Pe,K as H,Ma as W,Ob as Be,Q as se,Qb as Ne,Ra as le,S as Ae,Vc as j,Wc as x,Xc as ue,ac as Le,ba as Re,c as Te,ca as C,da as Ie,ea as oe,ed as Q,f as M,k as Ee,ka as T,la as L,ld as q,na as re,nb as B,nc as $e,ob as k,oc as Ge,p as ne,pa as d,pb as ce,qb as ke,qc as je,rc as He,sa as ae,sc as Ve,v as ie,xa as I,ya as V,yc as K,za as U}from"./chunk-JCQ56J6G.js";import{a as l,b as h,g as p,h as E,i as R,j as Ce}from"./chunk-7RSU6VFI.js";var at=["*"];var lt=["dialog"];var We={animation:!0,transitionTimerDelayMs:5},Ke=(()=>{let e=class e{constructor(){this.animation=We.animation}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ct(n){let{transitionDelay:e,transitionDuration:o}=window.getComputedStyle(n),t=parseFloat(e),i=parseFloat(o);return(t+i)*1e3}function Je(n){return typeof n=="string"}function fe(n){return n!=null}function dt(n){return n&&n.then}function _e(n){return(n||document.body).getBoundingClientRect()}function ut(n){return e=>new Te(o=>{let t=r=>n.run(()=>o.next(r)),i=r=>n.run(()=>o.error(r)),s=()=>n.run(()=>o.complete());return e.subscribe({next:t,error:i,complete:s})})}var ht=()=>{},{transitionTimerDelayMs:pt}=We,Y=new Map,A=(n,e,o,t)=>{let i=t.context||{},s=Y.get(e);if(s)switch(t.runningTransition){case"continue":return Ee;case"stop":n.run(()=>s.transition$.complete()),i=Object.assign(s.context,i),Y.delete(e)}let r=o(e,t.animation,i)||ht;if(!t.animation||window.getComputedStyle(e).transitionProperty==="none")return n.run(()=>r()),ne(void 0).pipe(ut(n));let a=new M,c=new M,m=a.pipe(Ae(!0));Y.set(e,{transition$:a,complete:()=>{c.next(),c.complete()},context:i});let u=ct(e);return n.runOutsideAngular(()=>{let g=P(e,"transitionend").pipe(C(m),F(({target:_})=>_===e)),f=Me(u+pt).pipe(C(m));Pe(f,g,c).pipe(C(m)).subscribe(()=>{Y.delete(e),n.run(()=>{r(),a.next(),a.complete()})})}),a.asObservable()};function ft(n,e){if(typeof navigator>"u")return"0px";let{classList:o}=n,t=o.contains("show");t||o.add("show"),n.style[e]="";let i=n.getBoundingClientRect()[e]+"px";return t||o.remove("show"),i}var _t=(n,e,o)=>{let{direction:t,maxSize:i,dimension:s}=o,{classList:r}=n;function a(){r.add("collapse"),t==="show"?r.add("show"):r.remove("show")}if(!e){a();return}return i||(i=ft(n,s),o.maxSize=i,n.style[s]=t!=="show"?i:"0px",r.remove("collapse","collapsing","show"),_e(n),r.add("collapsing")),n.style[s]=t==="show"?i:"0px",()=>{a(),r.remove("collapsing"),n.style[s]=""}},gt=(()=>{let e=class e{constructor(){this._ngbConfig=d(Ke),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),pi=(()=>{let e=class e{constructor(){this._config=d(gt),this._element=d(W),this._zone=d(k),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new B,this.horizontal=this._config.horizontal,this.shown=new B,this.hidden=new B}set collapsed(t){this._isCollapsed!==t&&(this._isCollapsed=t,this._afterInit&&this._runTransitionWithEvents(t,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(t=this._isCollapsed){this.collapsed=!t,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(t,i){return A(this._zone,this._element.nativeElement,_t,{animation:i,runningTransition:"stop",context:{direction:t?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(t,i){this._runTransition(t,i).subscribe(()=>{t?this.hidden.emit():this.shown.emit()})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=xe({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(i,s){i&2&&K("collapse-horizontal",s.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"]});let n=e;return n})();var fi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=G({type:e}),e.\u0275inj=L({});let n=e;return n})();var _i=(()=>{let n=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,e=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(n()||e()):!1})();var mt=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Qe(n){let e=Array.from(n.querySelectorAll(mt)).filter(o=>o.tabIndex!==-1);return[e[0],e[e.length-1]]}var yt=(n,e,o,t=!1)=>{n.runOutsideAngular(()=>{let i=P(e,"focusin").pipe(C(o),ie(s=>s.target));P(e,"keydown").pipe(C(o),F(s=>s.key==="Tab"),oe(i)).subscribe(([s,r])=>{let[a,c]=Qe(e);(r===a||r===e)&&s.shiftKey&&(c.focus(),s.preventDefault()),r===c&&!s.shiftKey&&(a.focus(),s.preventDefault())}),t&&P(e,"click").pipe(C(o),oe(i),ie(s=>s[1])).subscribe(s=>s.focus())})};var gi=new Date(1882,10,12),mi=new Date(2174,10,25);var yi=1e3*60*60*24;var ge=1080,vt=24*ge,bt=12*ge+793,vi=29*vt+bt,bi=11*ge+204;var Di=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=G({type:e}),e.\u0275inj=L({});let n=e;return n})();var wi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=G({type:e}),e.\u0275inj=L({});let n=e;return n})(),Dt=(()=>{let e=class e{constructor(){this._ngbConfig=d(Ke),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0,this.role="dialog"}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),N=class{constructor(e,o,t){this.nodes=e,this.viewRef=o,this.componentRef=t}};var wt=(()=>{let e=class e{constructor(){this._document=d(V)}hide(){let t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,s=i.style,{overflow:r,paddingRight:a}=s;if(t>0){let c=parseFloat(window.getComputedStyle(i).paddingRight);s.paddingRight=`${c+t}px`}return s.overflow="hidden",()=>{t>0&&(s.paddingRight=a),s.overflow=r}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),St=["animation","backdropClass"],Ot=(()=>{let e=class e{constructor(){this._nativeElement=d(W).nativeElement,this._zone=d(k),this._injector=d(I),this._cdRef=d(Q)}ngOnInit(){ce({mixedReadWrite:()=>A(this._zone,this._nativeElement,(t,i)=>{i&&_e(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})},{injector:this._injector})}hide(){return A(this._zone,this._nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}updateOptions(t){St.forEach(i=>{fe(t[i])&&(this[i]=t[i])}),this._cdRef.markForCheck()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=de({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(i,s){i&2&&(J("modal-backdrop"+(s.backdropClass?" "+s.backdropClass:"")),K("show",!s.animation)("fade",s.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(i,s){},encapsulation:2});let n=e;return n})(),Z=class{update(e){}close(e){}dismiss(e){}},he=class{update(e){this._windowCmptRef.instance.updateOptions(e),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._backdropCmptRef.instance.updateOptions(e)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(C(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(C(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(e,o,t,i){this._windowCmptRef=e,this._contentRef=o,this._backdropCmptRef=t,this._beforeDismiss=i,this._closed=new M,this._dismissed=new M,this._hidden=new M,e.instance.dismissEvent.subscribe(s=>{this.dismiss(s)}),this.result=new Promise((s,r)=>{this._resolve=s,this._reject=r}),this.result.then(null,()=>{})}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(e);else{let o=this._beforeDismiss();dt(o)?o.then(t=>{t!==!1&&this._dismiss(e)},()=>{}):o!==!1&&this._dismiss(e)}}_removeModalElements(){let e=this._windowCmptRef.instance.hide(),o=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ne(void 0);e.subscribe(()=>{let{nativeElement:t}=this._windowCmptRef.location;t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),o.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:t}=this._backdropCmptRef.location;t.parentNode.removeChild(t),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),H(e,o).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},pe=(function(n){return n[n.BACKDROP_CLICK=0]="BACKDROP_CLICK",n[n.ESC=1]="ESC",n})(pe||{}),Ct=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","role","scrollable","size","windowClass","modalDialogClass"],Tt=(()=>{let e=class e{constructor(){this._document=d(V),this._elRef=d(W),this._zone=d(k),this._injector=d(I),this._cdRef=d(Q),this._closed$=new M,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.role="dialog",this.dismissEvent=new B,this.shown=new M,this.hidden=new M}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":Je(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,ce({mixedReadWrite:()=>this._show()},{injector:this._injector})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:t}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=A(this._zone,t,()=>t.classList.remove("show"),i),r=A(this._zone,this._dialogEl.nativeElement,()=>{},i),a=H(s,r);return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}updateOptions(t){Ct.forEach(i=>{fe(t[i])&&(this[i]=t[i])}),this._cdRef.markForCheck()}_show(){let t={animation:this.animation,runningTransition:"continue"},i=A(this._zone,this._elRef.nativeElement,(r,a)=>{a&&_e(r),r.classList.add("show")},t),s=A(this._zone,this._dialogEl.nativeElement,()=>{},t);H(i,s).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{P(t,"keydown").pipe(C(this._closed$),F(s=>s.key==="Escape")).subscribe(s=>{this.keyboard?requestAnimationFrame(()=>{s.defaultPrevented||this._zone.run(()=>this.dismiss(pe.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let i=!1;P(this._dialogEl.nativeElement,"mousedown").pipe(C(this._closed$),Ie(()=>i=!1),Re(()=>P(t,"mouseup").pipe(C(this._closed$),se(1))),F(({target:s})=>t===s)).subscribe(()=>{i=!0}),P(t,"click").pipe(C(this._closed$)).subscribe(({target:s})=>{t===s&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!i&&this._zone.run(()=>this.dismiss(pe.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){let i=t.querySelector("[ngbAutofocus]"),s=Qe(t)[0];(i||s||t).focus()}}_restoreFocus(){let t=this._document.body,i=this._elWithFocus,s;i&&i.focus&&t.contains(i)?s=i:s=t,this._zone.runOutsideAngular(()=>{setTimeout(()=>s.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&A(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=de({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(i,s){if(i&1&&je(lt,7),i&2){let r;He(r=Ve())&&(s._dialogEl=r.first)}},hostAttrs:["tabindex","-1"],hostVars:8,hostBindings:function(i,s){i&2&&(Ne("aria-modal",!0)("aria-labelledby",s.ariaLabelledBy)("aria-describedby",s.ariaDescribedBy)("role",s.role),J("modal d-block"+(s.windowClass?" "+s.windowClass:"")),K("fade",s.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",role:"role",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:at,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(i,s){i&1&&($e(),Fe(0,"div",1,0)(2,"div",2),Ge(3),Le()()),i&2&&J("modal-dialog"+(s.size?" modal-"+s.size:"")+(s.centered?" modal-dialog-centered":"")+s.fullscreenClass+(s.scrollable?" modal-dialog-scrollable":"")+(s.modalDialogClass?" "+s.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}
2
+ `],encapsulation:2});let n=e;return n})(),Et=(()=>{let e=class e{constructor(){this._applicationRef=d(Be),this._injector=d(I),this._environmentInjector=d(ae),this._document=d(V),this._scrollBar=d(wt),this._activeWindowCmptHasChanged=new M,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new B;let t=d(k);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let i=this._windowCmpts[this._windowCmpts.length-1];yt(t,i.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(i.location.nativeElement)}})}_restoreScrollBar(){let t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,i,s){let r=s.container instanceof HTMLElement?s.container:fe(s.container)?this._document.querySelector(s.container):this._document.body;if(!r)throw new Error(`The specified modal container "${s.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let a=new Z;t=s.injector||t;let c=t.get(ae,null)||this._environmentInjector,m=this._getContentRef(t,c,i,a,s),u=s.backdrop!==!1?this._attachBackdrop(r):void 0,g=this._attachWindowComponent(r,m.nodes),f=new he(g,m,u,s.beforeDismiss);return this._registerModalRef(f),this._registerWindowCmpt(g),f.hidden.pipe(se(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=_=>{f.close(_)},a.dismiss=_=>{f.dismiss(_)},a.update=_=>{f.update(_)},f.update(s),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),u&&u.instance&&u.changeDetectorRef.detectChanges(),g.changeDetectorRef.detectChanges(),f}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(i=>i.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t){let i=q(Ot,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_attachWindowComponent(t,i){let s=q(Tt,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(s.hostView),t.appendChild(s.location.nativeElement),s}_getContentRef(t,i,s,r,a){return s?s instanceof ke?this._createFromTemplateRef(s,r):Je(s)?this._createFromString(s):this._createFromComponent(t,i,s,r,a):new N([])}_createFromTemplateRef(t,i){let s={$implicit:i,close(a){i.close(a)},dismiss(a){i.dismiss(a)}},r=t.createEmbeddedView(s);return this._applicationRef.attachView(r),new N([r.rootNodes],r)}_createFromString(t){let i=this._document.createTextNode(`${t}`);return new N([[i]])}_createFromComponent(t,i,s,r,a){let c=I.create({providers:[{provide:Z,useValue:r}],parent:t}),m=q(s,{environmentInjector:i,elementInjector:c}),u=m.location.nativeElement;return a.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(m.hostView),new N([[u]],m.hostView,m)}_setAriaHidden(t){let i=t.parentElement;i&&t!==this._document.body&&(Array.from(i.children).forEach(s=>{s!==t&&s.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,i)=>{t?i.setAttribute("aria-hidden",t):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){let i=()=>{let s=this._modalRefs.indexOf(t);s>-1&&(this._modalRefs.splice(s,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(i,i)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{let i=this._windowCmpts.indexOf(t);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Si=(()=>{let e=class e{constructor(){this._injector=d(I),this._modalStack=d(Et),this._config=d(Dt)}open(t,i={}){let s=l(h(l({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._injector,t,s)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Oi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=G({type:e}),e.\u0275inj=L({});let n=e;return n})();var qe=Symbol("");function Ye(n){return new Proxy(n,{has(e,o){return!!this.get(e,o,void 0)},get(e,o){let t=j(e);return!At(t)||!(o in t)?($(e[o])&&e[o][qe]&&delete e[o],e[o]):($(e[o])||(Object.defineProperty(e,o,{value:x(()=>e()[o]),configurable:!0}),e[o][qe]=!0),Ye(e[o]))}})}var Pt=[WeakSet,WeakMap,Promise,Date,Error,RegExp,ArrayBuffer,DataView,Function];function At(n){if(n===null||typeof n!="object"||Rt(n))return!1;let e=Object.getPrototypeOf(n);if(e===Object.prototype)return!0;for(;e&&e!==Object.prototype;){if(Pt.includes(e.constructor))return!1;e=Object.getPrototypeOf(e)}return e===Object.prototype}function Rt(n){return typeof n?.[Symbol.iterator]=="function"}var It=new WeakMap,w=Symbol("");function S(n,...e){let o=j(()=>X(n)),t=e.reduce((r,a)=>l(l({},r),typeof a=="function"?a(r):a),o),i=n[w],s=Reflect.ownKeys(n[w]);for(let r of Reflect.ownKeys(t))if(s.includes(r)){let a=r;o[a]!==t[a]&&i[a].set(t[a])}xt(n)}function X(n){let e=n[w];return Reflect.ownKeys(n[w]).reduce((o,t)=>{let i=e[t]();return h(l({},o),{[t]:i})},{})}function kt(n){return It.get(n[w])||[]}function xt(n){let e=kt(n);for(let o of e){let t=j(()=>X(n));o(t)}}function Ze(...n){let e=[...n],o=typeof e[0]=="function"?{}:e.shift(),t=e;return(()=>{class s{constructor(){let a=t.reduce((y,D)=>D(y),Bt()),{stateSignals:c,props:m,methods:u,hooks:g}=a,f=l(l(l({},c),m),u);this[w]=a[w];for(let y of Reflect.ownKeys(f))this[y]=f[y];let{onInit:_,onDestroy:v}=g;_&&_(),v&&d(U).onDestroy(v)}static \u0275fac=function(c){return new(c||s)};static \u0275prov=T({token:s,factory:s.\u0275fac,providedIn:o.providedIn||null})}return s})()}function Bt(){return{[w]:{},stateSignals:{},props:{},methods:{},hooks:{}}}function me(...n){let e=typeof n[0]=="function"?n:n.slice(1);return o=>e.reduce((t,i)=>i(t),o)}function Xe(n){return e=>{let o=n(l(l(l({[w]:e[w]},e.stateSignals),e.props),e.methods));return h(l({},e),{props:l(l({},e.props),o)})}}function ye(n){return Xe(e=>{let o=n(e);return Reflect.ownKeys(o).reduce((i,s)=>{let r=o[s];return h(l({},i),{[s]:$(r)?r:x(r)})},{})})}function et(n){return e=>{let o=l(l(l({[w]:e[w]},e.stateSignals),e.props),e.methods),t=typeof n=="function"?n(o):n,i=(s,r)=>r?()=>{s&&s(),r(o)}:s;return h(l({},e),{hooks:{onInit:i(e.hooks.onInit,t.onInit),onDestroy:i(e.hooks.onDestroy,t.onDestroy)}})}}function ee(n){return e=>{let o=n(l(l(l({[w]:e[w]},e.stateSignals),e.props),e.methods));return h(l({},e),{methods:l(l({},e.methods),o)})}}function te(n){return e=>{let o=typeof n=="function"?n():n,t=Reflect.ownKeys(o),i=e[w],s={};for(let r of t)i[r]=z(o[r]),s[r]=Ye(i[r]);return h(l({},e),{stateSignals:l(l({},e.stateSignals),s)})}}var ji=Symbol("DEVTOOLS_FEATURE");var Nt=new re("ReduxDevtoolsConfig"),Ft=(()=>{var e,o,t;let i=class i{constructor(){E(this,e,z({}));E(this,o);E(this,t,ue(()=>{if(p(this,o)===void 0)throw new Error("no callback function defined");let r=p(this,e).call(this),a=Object.entries(r).reduce((c,[m,u])=>h(l({},c),{[m]:X(u)}),{});p(this,o).call(this,a)}))}get stores(){return p(this,e).call(this)}track(r,a){p(this,e).update(c=>h(l({},c),{[r]:a}))}onChange(r){R(this,o,r)}removeStore(r){p(this,e).update(a=>Object.entries(a).reduce((c,[m,u])=>(m!==r&&(c[m]=u),c),{}))}notifyRenamedStore(r){p(this,e).call(this)[r]&&p(this,e).update(a=>l({},a))}};e=new WeakMap,o=new WeakMap,t=new WeakMap,i.\u0275fac=function(a){return new(a||i)},i.\u0275prov=T({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})(),ve=new Set,tt={send:()=>{}},nt=(()=>{var e,o,t,i,s,r,a;let c=class c{constructor(){E(this,e,{});E(this,o,Ue(d(le)));E(this,t,[]);E(this,i,l({name:"NgRx SignalStore"},d(Nt,{optional:!0})));E(this,s,{});E(this,r,1);E(this,a,d(k).runOutsideAngular(()=>p(this,o)&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__.connect(p(this,i)):tt));p(this,o)}ngOnDestroy(){ve.clear()}syncToDevTools(u){let g=Object.entries(u).reduce((v,[y,D])=>{let{options:O,name:rt}=p(this,e)[y];return v[rt]=O.map(D),v},{});R(this,s,l(l({},p(this,s)),g));let f=Array.from(ve),_=f.length?f.join(", "):"Store Update";ve.clear(),p(this,a).send({type:_},p(this,s))}getNextId(){return String(Ce(this,r)._++)}addStore(u,g,f,_){let v=g,y=Object.values(p(this,e)).map(O=>O.name);if(y.includes(v)&&!_.indexNames)throw new Error(`An instance of the store ${v} already exists. Enable automatic indexing via withDevTools('${v}', { indexNames: true }), or rename it upon instantiation.`);for(let O=1;y.includes(v);O++)v=`${g}-${O}`;p(this,e)[u]={name:v,options:_};let D=_.tracker;p(this,t).includes(D)||p(this,t).push(D),D.onChange(O=>this.syncToDevTools(O)),D.track(u,f)}removeStore(u){let g=p(this,e)[u].name;R(this,e,Object.entries(p(this,e)).reduce((f,[_,v])=>(_!==u&&(f[_]=v),f),{})),R(this,s,Object.entries(p(this,s)).reduce((f,[_,v])=>(_!==g&&(f[_]=v),f),{}));for(let f of p(this,t))f.removeStore(u)}renameStore(u,g){let f=p(this,e)[u];if(!f)return;let _=f.name;if(_===g)return;if(Object.entries(p(this,e)).filter(([y])=>y!==u).map(([,y])=>y.name).includes(g))throw new Error(`NgRx Toolkit/DevTools: cannot rename from ${_} to ${g}. ${g} is already assigned to another SignalStore instance.`);R(this,e,Object.entries(p(this,e)).reduce((y,[D,O])=>(D===u?y[D]=h(l({},O),{name:g}):y[D]=O,y),{})),R(this,s,Object.entries(p(this,s)).reduce((y,[D,O])=>(D!==_&&(y[D]=O),y),{})),p(this,t).forEach(y=>y.notifyRenamedStore(u))}};e=new WeakMap,o=new WeakMap,t=new WeakMap,i=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap,c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=T({token:c,factory:c.\u0275fac,providedIn:"root"});let n=c;return n})(),Lt="___renameDevtoolsName",be="___uniqueDevtoolsId";function it(n,...e){return me(ee(()=>{let o=d(nt),t=o.getNextId();return{[Lt]:i=>{o.renameStore(t,i)},[be]:()=>t}}),et(o=>{let t=d(nt),i=String(o[be]());return{onInit(){let s=String(o[be]()),r={indexNames:!e.some(a=>a.indexNames===!1),map:e.find(a=>a.map)?.map??(a=>a),tracker:d(e.find(a=>a.tracker)?.tracker||Ft)};t.addStore(s,n,o,r)},onDestroy(){t.removeStore(i)}}}))}var Hi=Symbol("SYNC_STATUS");var Vi=me(te({}));var $t="00000000-0000-0000-0000-000000000000";var b=[];for(let n=0;n<256;++n)b.push((n+256).toString(16).slice(1));function st(n,e=0){return(b[n[e+0]]+b[n[e+1]]+b[n[e+2]]+b[n[e+3]]+"-"+b[n[e+4]]+b[n[e+5]]+"-"+b[n[e+6]]+b[n[e+7]]+"-"+b[n[e+8]]+b[n[e+9]]+"-"+b[n[e+10]]+b[n[e+11]]+b[n[e+12]]+b[n[e+13]]+b[n[e+14]]+b[n[e+15]]).toLowerCase()}var De,Gt=new Uint8Array(16);function we(){if(!De){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");De=crypto.getRandomValues.bind(crypto)}return De(Gt)}var jt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Se={randomUUID:jt};function Ht(n,e,o){n=n||{};let t=n.random??n.rng?.()??we();if(t.length<16)throw new Error("Random bytes length must be >= 16");if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,e){if(o=o||0,o<0||o+16>e.length)throw new RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`);for(let i=0;i<16;++i)e[o+i]=t[i];return e}return st(t)}function Vt(n,e,o){return Se.randomUUID&&!e&&!n?Se.randomUUID():Ht(n,e,o)}var Oe=Vt;var ot={layoutOptions:{theme:"light",dir:"ltr",layout:"vertical",sidebartype:"full",sidebarpos:"fixed",headerpos:"fixed",boxed:"full",navbarbg:"skin6",sidebarbg:"skin6",logobg:"skin6",active:1,tabStatus:"justify",isCollapsed:!1,innerWidth:window.innerWidth,defaultSidebar:"full",showSettings:!1,showMobileMenu:!1,expandLogo:!1},profileTemplate:null,priceLabelTemplate:null,outlets:null,taxs:null,currentStep:1,product:null,cartItemsMap:new Map},as=Ze({providedIn:"root"},it("appStore"),te(ot),ye(n=>{let e=x(()=>Array.from(n.cartItemsMap().values()).map(t=>{let i=t.promotion?t.product.UnitPrice:t.outletPrice?.Price??t.unitPrice??t.product.UnitPrice,s=t.promotion?.UnitPrice??t.outletPrice?.Price??i;return h(l({},t),{baseUnitPrice:i,effectiveUnitPrice:s})})),o=x(()=>Array.from(n.cartItemsMap().values()).flatMap(t=>{let i=t.promotion?t.product.UnitPrice:t.outletPrice?.Price??t.unitPrice,s=t.promotion?.UnitPrice??t.outletPrice?.Price??i;return Array.from({length:t.quantity},()=>({id:Oe(),product:t.product,promotion:t.promotion,outletPrice:t.outletPrice,unitPrice:i,effectiveUnitPrice:s}))}));return{cartItems:e,flattenedCartUnits:o}}),ee(n=>({updateLayoutOptions(e){S(n,o=>h(l({},o),{layoutOptions:e}))},updateProfileTemplate(e){S(n,o=>h(l({},o),{profileTemplate:e}))},updatePriceLabelTemplate(e){S(n,o=>h(l({},o),{priceLabelTemplate:e}))},updateOutlets(e){S(n,o=>h(l({},o),{outlets:e}))},updateTaxes(e){S(n,o=>h(l({},o),{taxs:e}))},updateCurrentStep(e){S(n,o=>h(l({},o),{currentStep:e}))},updateProduct(e){S(n,o=>h(l({},o),{product:e}))},addProductToCart(e,o,t,i=1,s){S(n,r=>{let a=e.ID,m=(r.cartItemsMap.get(a)?.quantity??0)+i;if(m<=0){let g=new Map(r.cartItemsMap);return g.delete(a),h(l({},r),{cartItemsMap:g})}let u=new Map(r.cartItemsMap);return u.set(a,{product:e,promotion:o,outletPrice:t,quantity:m,unitPrice:s}),h(l({},r),{cartItemsMap:u})})},updateCartItemQuantity(e,o,t,i,s){S(n,r=>{if(o<=0){let m=new Map(r.cartItemsMap);return m.delete(e),h(l({},r),{cartItemsMap:m})}let a=r.cartItemsMap.get(e);if(!a)return r;let c=new Map(r.cartItemsMap);return c.set(e,l(l(l(h(l({},a),{quantity:o}),t!==void 0&&{promotion:t}),i!==void 0&&{outletPrice:i}),s!==void 0&&{unitPrice:s})),h(l({},r),{cartItemsMap:c})})},removeProductFromCart(e){S(n,o=>{if(!o.cartItemsMap.has(e))return o;let t=new Map(o.cartItemsMap);return t.delete(e),h(l({},o),{cartItemsMap:t})})},clearCartItems(){S(n,e=>h(l({},e),{cartItemsMap:new Map}))},clearAll(){S(n,()=>l({},ot))}})));export{pi as a,fi as b,Di as c,wi as d,Z as e,Si as f,Oi as g,$t as h,as as i};
@@ -0,0 +1,194 @@
1
+ import{a as vt,b as _t,c as xt,d as yt,e as Se,f as St,g as Tt,h as wt,i as Mt}from"./chunk-ZQPG32YM.js";import{$ as dt,Aa as x,Ba as _e,Da as ft,E as pt,Ea as ht,Ga as xe,H as at,La as gt,M as Ce,P as lt,Pa as bt,Va as Ct,W as Fe,_ as st,oa as ct,p as rt,ra as ut,sa as ve,va as mt,wa as Z,ya as q,za as U}from"./chunk-7PT4SS5X.js";import{b as ye}from"./chunk-JMQFG4UA.js";import{d as ot,i as be}from"./chunk-3KPLVT7B.js";import{A as tt,K as ue,O as me,P as fe,W as he,X as ge,a as Qe,aa as it,ba as nt,ca as z,d as Je,e as Ke,f as Xe,i as Ye,k as de,l as ce,la as K,y as et}from"./chunk-Z3B3WOTF.js";import{Ac as N,B as Be,Bb as b,Bc as l,Cb as oe,Cc as $e,Da as k,Dc as O,Fb as L,Fc as Ge,Gb as H,Gc as ze,H as De,Hb as _,Hc as Ze,Jc as G,Ka as w,Kc as qe,L as ie,Lc as ae,Oc as V,Pc as F,Qb as Le,R as Pe,Rb as I,Sb as D,Sc as M,Vb as He,Wb as je,Wc as J,Xb as f,Yb as o,Zb as p,Zc as le,_b as c,_c as B,cc as re,da as T,dc as pe,fc as S,hb as Ae,ib as m,id as se,jd as Ue,ka as A,kc as C,la as ne,mc as d,na as W,nb as Ee,nc as j,ob as We,oc as R,p as te,pa as u,pc as Ne,rc as Oe,sc as Ve,ua as h,va as g,wc as Re,zc as $}from"./chunk-JCQ56J6G.js";import{a as E,b as Y,l as ee}from"./chunk-7RSU6VFI.js";var kt=`
2
+ .p-popover {
3
+ margin-block-start: dt('popover.gutter');
4
+ background: dt('popover.background');
5
+ color: dt('popover.color');
6
+ border: 1px solid dt('popover.border.color');
7
+ border-radius: dt('popover.border.radius');
8
+ box-shadow: dt('popover.shadow');
9
+ will-change: transform;
10
+ }
11
+
12
+ .p-popover-content {
13
+ padding: dt('popover.content.padding');
14
+ }
15
+
16
+ .p-popover-flipped {
17
+ margin-block-start: calc(dt('popover.gutter') * -1);
18
+ margin-block-end: dt('popover.gutter');
19
+ }
20
+
21
+ .p-popover:after,
22
+ .p-popover:before {
23
+ bottom: 100%;
24
+ left: calc(dt('popover.arrow.offset') + dt('popover.arrow.left'));
25
+ content: ' ';
26
+ height: 0;
27
+ width: 0;
28
+ position: absolute;
29
+ pointer-events: none;
30
+ }
31
+
32
+ .p-popover:after {
33
+ border-width: calc(dt('popover.gutter') - 2px);
34
+ margin-left: calc(-1 * (dt('popover.gutter') - 2px));
35
+ border-style: solid;
36
+ border-color: transparent;
37
+ border-bottom-color: dt('popover.background');
38
+ }
39
+
40
+ .p-popover:before {
41
+ border-width: dt('popover.gutter');
42
+ margin-left: calc(-1 * dt('popover.gutter'));
43
+ border-style: solid;
44
+ border-color: transparent;
45
+ border-bottom-color: dt('popover.border.color');
46
+ }
47
+
48
+ .p-popover-flipped:after,
49
+ .p-popover-flipped:before {
50
+ bottom: auto;
51
+ top: 100%;
52
+ }
53
+
54
+ .p-popover.p-popover-flipped:after {
55
+ border-bottom-color: transparent;
56
+ border-top-color: dt('popover.background');
57
+ }
58
+
59
+ .p-popover.p-popover-flipped:before {
60
+ border-bottom-color: transparent;
61
+ border-top-color: dt('popover.border.color');
62
+ }
63
+ `;var Rt=["content"],$t=["*"],Gt=t=>({closeCallback:t});function zt(t,r){}function Zt(t,r){t&1&&_(0,zt,0,0,"ng-template")}function qt(t,r){if(t&1){let e=S();o(0,"div",1),C("click",function(i){h(e);let a=d();return g(a.onOverlayClick(i))})("pMotionOnEnter",function(i){h(e);let a=d();return g(a.onAnimationStart(i))})("pMotionOnAfterLeave",function(){h(e);let i=d();return g(i.onAnimationEnd())}),o(1,"div",2),C("click",function(i){h(e);let a=d();return g(a.onContentClick(i))})("mousedown",function(i){h(e);let a=d();return g(a.onContentClick(i))}),R(2),_(3,Zt,1,0,null,3),p()()}if(t&2){let e=d();$(e.sx("root")),N(e.cn(e.cx("root"),e.styleClass)),f("pBind",e.ptm("root"))("ngStyle",e.style)("pMotion",e.overlayVisible)("pMotionAppear",!0)("pMotionOptions",e.computedMotionOptions()),Le("aria-modal",e.overlayVisible)("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy),m(),N(e.cx("content")),f("pBind",e.ptm("content")),m(2),f("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",ae(17,Gt,e.onCloseClick.bind(e)))}}var Ut={root:()=>({position:"absolute"})},Qt={root:"p-popover p-component",content:"p-popover-content"},It=(()=>{class t extends Z{name="popover";style=kt;classes=Qt;inlineStyles=Ut;static \u0275fac=(()=>{let e;return function(i){return(e||(e=w(t)))(i||t)}})();static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),Dt=new W("POPOVER_INSTANCE"),Jt=(()=>{class t extends U{$pcPopover=u(Dt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=u(x,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}ariaLabel;ariaLabelledBy;dismissable=!0;style;styleClass;appendTo=B("body");autoZIndex=!0;ariaCloseLabel;baseZIndex=0;focusOnShow=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";motionOptions=B(void 0);computedMotionOptions=J(()=>E(E({},this.ptm("motion")),this.motionOptions()));onShow=new Ee;onHide=new Ee;$appendTo=J(()=>this.appendTo()||this.config.overlayAppendTo());container;overlayVisible=!1;render=!1;selfClick=!1;documentClickListener;target;willHide;scrollHandler;documentResizeListener;contentTemplate;templates;_contentTemplate;destroyCallback;overlayEventListener;overlaySubscription;_componentStyle=u(It);zone=u(We);overlayService=u(ct);onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break}})}bindDocumentClickListener(){if(ce(this.platformId)&&!this.documentClickListener){let e=st()?"touchstart":"click",n=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(n,e,i=>{this.dismissable&&(!this.container?.contains(i.target)&&this.target!==i.target&&!this.target.contains(i.target)&&!this.selfClick&&this.hide(),this.selfClick=!1,this.cd.markForCheck())})}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}toggle(e,n){this.overlayVisible?(this.hasTargetChanged(e,n)&&(this.destroyCallback=()=>{this.show(null,n||e.currentTarget||e.target)}),this.hide()):this.show(e,n)}show(e,n){n&&e&&e.stopPropagation(),this.container&&!this.overlayVisible&&(this.container=null),this.target=n||e.currentTarget||e.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}onContentClick(e){let n=e.target;this.selfClick=e.offsetX<n.clientWidth&&e.offsetY<n.clientHeight}hasTargetChanged(e,n){return this.target!=null&&this.target!==(n||e.currentTarget||e.target)}appendOverlay(){this.$appendTo()&&this.$appendTo()!=="self"&&(this.$appendTo()==="body"?Ce(this.document.body,this.container):Ce(this.$appendTo(),this.container))}restoreAppend(){this.container&&this.$appendTo()&&this.$appendTo()!=="self"&&Ce(this.el.nativeElement,this.container)}setZIndex(){this.autoZIndex&&xe.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay)}align(){if(this.target&&this.container){at(this.container,this.target,!1);let e=Fe(this.container),n=Fe(this.target),i=this.document.defaultView?.getComputedStyle(this.container).getPropertyValue("border-radius"),a=0;e.left<n.left&&(a=n.left-e.left-parseFloat(i)*2),this.container.style.setProperty(mt("popover.arrow.left").name,`${a}px`),e.top<n.top&&(this.container.setAttribute("data-p-popover-flipped","true"),!this.$unstyled()&&pt(this.container,"p-popover-flipped"))}}onAnimationStart(e){this.container=e.element,this.container?.setAttribute(this.$attrSelector,""),this.appendOverlay(),this.align(),this.setZIndex(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.focusOnShow&&this.focus(),this.overlayEventListener=n=>{this.container&&this.container.contains(n.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener),this.onShow.emit(null)}onAnimationEnd(){this.overlayVisible||(this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.autoZIndex&&xe.clear(this.container),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1,this.container=null)}focus(){let e=lt(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onCloseClick(e){this.hide(),e.preventDefault()}onEscapeKeydown(e){this.hide()}onWindowResize(){this.overlayVisible&&!dt()&&this.hide()}bindDocumentResizeListener(){if(ce(this.platformId)&&!this.documentResizeListener){let e=this.document.defaultView;this.documentResizeListener=this.renderer.listen(e,"resize",this.onWindowResize.bind(this))}}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){ce(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new gt(this.target,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener())}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onContainerDestroy(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}onDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&xe.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=w(t)))(i||t)}})();static \u0275cmp=b({type:t,selectors:[["p-popover"]],contentQueries:function(n,i,a){if(n&1&&(Ne(a,Rt,4),Ne(a,ut,4)),n&2){let s;Oe(s=Ve())&&(i.contentTemplate=s.first),Oe(s=Ve())&&(i.templates=s)}},hostBindings:function(n,i){n&1&&C("keydown.escape",function(s){return i.onEscapeKeydown(s)},Ae)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",dismissable:[2,"dismissable","dismissable",se],style:"style",styleClass:"styleClass",appendTo:[1,"appendTo"],autoZIndex:[2,"autoZIndex","autoZIndex",se],ariaCloseLabel:"ariaCloseLabel",baseZIndex:[2,"baseZIndex","baseZIndex",Ue],focusOnShow:[2,"focusOnShow","focusOnShow",se],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",motionOptions:[1,"motionOptions"]},outputs:{onShow:"onShow",onHide:"onHide"},features:[G([It,{provide:Dt,useExisting:t},{provide:q,useExisting:t}]),H([x]),L],ngContentSelectors:$t,decls:1,vars:1,consts:[["role","dialog","pMotionName","p-anchored-overlay",3,"pBind","class","style","ngStyle","pMotion","pMotionAppear","pMotionOptions"],["role","dialog","pMotionName","p-anchored-overlay",3,"click","pMotionOnEnter","pMotionOnAfterLeave","pBind","ngStyle","pMotion","pMotionAppear","pMotionOptions"],[3,"click","mousedown","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){n&1&&(j(),I(0,qt,4,19,"div",0)),n&2&&D(i.render?0:-1)},dependencies:[de,Xe,Ke,ve,x,ht,ft],encapsulation:2,changeDetection:0})}return t})(),Et=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=oe({type:t});static \u0275inj=ne({imports:[Jt,ve,ve]})}return t})();var Te=(t,r=96)=>Math.floor(r/2.54*t),we=(t,r=96)=>Math.floor(t/r*2.54);var Nt=`
64
+ .p-inputgroup,
65
+ .p-inputgroup .p-iconfield,
66
+ .p-inputgroup .p-floatlabel,
67
+ .p-inputgroup .p-iftalabel {
68
+ display: flex;
69
+ align-items: stretch;
70
+ width: 100%;
71
+ }
72
+
73
+ .p-inputgroup .p-inputtext,
74
+ .p-inputgroup .p-inputwrapper {
75
+ flex: 1 1 auto;
76
+ width: 1%;
77
+ }
78
+
79
+ .p-inputgroupaddon {
80
+ display: flex;
81
+ align-items: center;
82
+ justify-content: center;
83
+ padding: dt('inputgroup.addon.padding');
84
+ background: dt('inputgroup.addon.background');
85
+ color: dt('inputgroup.addon.color');
86
+ border-block-start: 1px solid dt('inputgroup.addon.border.color');
87
+ border-block-end: 1px solid dt('inputgroup.addon.border.color');
88
+ min-width: dt('inputgroup.addon.min.width');
89
+ }
90
+
91
+ .p-inputgroupaddon:first-child,
92
+ .p-inputgroupaddon + .p-inputgroupaddon {
93
+ border-inline-start: 1px solid dt('inputgroup.addon.border.color');
94
+ }
95
+
96
+ .p-inputgroupaddon:last-child {
97
+ border-inline-end: 1px solid dt('inputgroup.addon.border.color');
98
+ }
99
+
100
+ .p-inputgroupaddon:has(.p-button) {
101
+ padding: 0;
102
+ overflow: hidden;
103
+ }
104
+
105
+ .p-inputgroupaddon .p-button {
106
+ border-radius: 0;
107
+ }
108
+
109
+ .p-inputgroup > .p-component,
110
+ .p-inputgroup > .p-inputwrapper > .p-component,
111
+ .p-inputgroup > .p-iconfield > .p-component,
112
+ .p-inputgroup > .p-floatlabel > .p-component,
113
+ .p-inputgroup > .p-floatlabel > .p-inputwrapper > .p-component,
114
+ .p-inputgroup > .p-iftalabel > .p-component,
115
+ .p-inputgroup > .p-iftalabel > .p-inputwrapper > .p-component {
116
+ border-radius: 0;
117
+ margin: 0;
118
+ }
119
+
120
+ .p-inputgroupaddon:first-child,
121
+ .p-inputgroup > .p-component:first-child,
122
+ .p-inputgroup > .p-inputwrapper:first-child > .p-component,
123
+ .p-inputgroup > .p-iconfield:first-child > .p-component,
124
+ .p-inputgroup > .p-floatlabel:first-child > .p-component,
125
+ .p-inputgroup > .p-floatlabel:first-child > .p-inputwrapper > .p-component,
126
+ .p-inputgroup > .p-iftalabel:first-child > .p-component,
127
+ .p-inputgroup > .p-iftalabel:first-child > .p-inputwrapper > .p-component {
128
+ border-start-start-radius: dt('inputgroup.addon.border.radius');
129
+ border-end-start-radius: dt('inputgroup.addon.border.radius');
130
+ }
131
+
132
+ .p-inputgroupaddon:last-child,
133
+ .p-inputgroup > .p-component:last-child,
134
+ .p-inputgroup > .p-inputwrapper:last-child > .p-component,
135
+ .p-inputgroup > .p-iconfield:last-child > .p-component,
136
+ .p-inputgroup > .p-floatlabel:last-child > .p-component,
137
+ .p-inputgroup > .p-floatlabel:last-child > .p-inputwrapper > .p-component,
138
+ .p-inputgroup > .p-iftalabel:last-child > .p-component,
139
+ .p-inputgroup > .p-iftalabel:last-child > .p-inputwrapper > .p-component {
140
+ border-start-end-radius: dt('inputgroup.addon.border.radius');
141
+ border-end-end-radius: dt('inputgroup.addon.border.radius');
142
+ }
143
+
144
+ .p-inputgroup .p-component:focus,
145
+ .p-inputgroup .p-component.p-focus,
146
+ .p-inputgroup .p-inputwrapper-focus,
147
+ .p-inputgroup .p-component:focus ~ label,
148
+ .p-inputgroup .p-component.p-focus ~ label,
149
+ .p-inputgroup .p-inputwrapper-focus ~ label {
150
+ z-index: 1;
151
+ }
152
+
153
+ .p-inputgroup > .p-button:not(.p-button-icon-only) {
154
+ width: auto;
155
+ }
156
+
157
+ .p-inputgroup .p-iconfield + .p-iconfield .p-inputtext {
158
+ border-inline-start: 0;
159
+ }
160
+ `;var Kt=["*"],Xt=`
161
+ ${Nt}
162
+
163
+ /*For PrimeNG*/
164
+
165
+ .p-inputgroup > .p-component,
166
+ .p-inputgroup > .p-inputwrapper > .p-component,
167
+ .p-inputgroup:first-child > p-button > .p-button,
168
+ .p-inputgroup > .p-floatlabel > .p-component,
169
+ .p-inputgroup > .p-floatlabel > .p-inputwrapper > .p-component,
170
+ .p-inputgroup > .p-iftalabel > .p-component,
171
+ .p-inputgroup > .p-iftalabel > .p-inputwrapper > .p-component {
172
+ border-radius: 0;
173
+ margin: 0;
174
+ }
175
+
176
+ .p-inputgroup p-button:first-child,
177
+ .p-inputgroup p-button:last-child {
178
+ display: inline-flex;
179
+ }
180
+
181
+ .p-inputgroup:has(> p-button:first-child) .p-button {
182
+ border-start-start-radius: dt('inputgroup.addon.border.radius');
183
+ border-end-start-radius: dt('inputgroup.addon.border.radius');
184
+ }
185
+
186
+ .p-inputgroup:has(> p-button:last-child) .p-button {
187
+ border-start-end-radius: dt('inputgroup.addon.border.radius');
188
+ border-end-end-radius: dt('inputgroup.addon.border.radius');
189
+ }
190
+
191
+ .p-inputgroup > p-inputmask > .p-inputtext {
192
+ width: 100%;
193
+ }
194
+ `,Yt={root:({instance:t})=>["p-inputgroup",{"p-inputgroup-fluid":t.fluid}]},Ot=(()=>{class t extends Z{name="inputgroup";style=Xt;classes=Yt;static \u0275fac=(()=>{let e;return function(i){return(e||(e=w(t)))(i||t)}})();static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})();var Vt=new W("INPUTGROUP_INSTANCE"),Me=(()=>{class t extends U{_componentStyle=u(Ot);$pcInputGroup=u(Vt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=u(x,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass;static \u0275fac=(()=>{let e;return function(i){return(e||(e=w(t)))(i||t)}})();static \u0275cmp=b({type:t,selectors:[["p-inputgroup"],["p-inputGroup"],["p-input-group"]],hostVars:2,hostBindings:function(n,i){n&2&&N(i.cn(i.cx("root"),i.styleClass))},inputs:{styleClass:"styleClass"},features:[G([Ot,{provide:Vt,useExisting:t},{provide:q,useExisting:t}]),H([x]),L],ngContentSelectors:Kt,decls:1,vars:0,template:function(n,i){n&1&&(j(),R(0))},dependencies:[_e],encapsulation:2})}return t})();var ei=["*"],ti={root:"p-inputgroupaddon"},Ft=(()=>{class t extends Z{name="inputgroupaddon";classes=ti;static \u0275fac=(()=>{let e;return function(i){return(e||(e=w(t)))(i||t)}})();static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),Bt=new W("INPUTGROUPADDON_INSTANCE"),ke=(()=>{class t extends U{_componentStyle=u(Ft);$pcInputGroupAddon=u(Bt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=u(x,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}style;styleClass;get hostStyle(){return this.style}static \u0275fac=(()=>{let e;return function(i){return(e||(e=w(t)))(i||t)}})();static \u0275cmp=b({type:t,selectors:[["p-inputgroup-addon"],["p-inputGroupAddon"]],hostVars:4,hostBindings:function(n,i){n&2&&($(i.hostStyle),N(i.cn(i.cx("root"),i.styleClass)))},inputs:{style:"style",styleClass:"styleClass"},features:[G([Ft,{provide:Bt,useExisting:t},{provide:q,useExisting:t}]),H([x]),L],ngContentSelectors:ei,decls:1,vars:0,template:function(n,i){n&1&&(j(),R(0))},dependencies:[_e],encapsulation:2})}return t})();var At=(()=>{let r=class r{constructor(){this.form=B(),this.onSubmit=le()}onSubmitHandler(){this.onSubmit.emit(this.form().getRawValue())}};r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=b({type:r,selectors:[["app-dialog-form-create"]],inputs:{form:[1,"form"]},outputs:{onSubmit:"onSubmit"},decls:57,vars:1,consts:[[1,"row","row-gap-2",3,"formGroup"],[1,"col-12"],[1,"form-group"],["for","",1,"fs-3","fw-semibold"],["formControlName","name","type","text","pInputText","",1,"form-control"],[1,"col-6"],["formControlName","paperWidthCM","pInputText",""],["formControlName","paperWidth","pInputText",""],["formControlName","stickerWidthCM","pInputText",""],["formControlName","stickerWidth","pInputText",""],["formControlName","stickerHeightCM","pInputText",""],["formControlName","stickerHeight","pInputText",""]],template:function(i,a){i&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),l(4,"Label Name"),p(),c(5,"input",4),p()(),o(6,"div",5)(7,"div",2)(8,"label",3),l(9,"Paper Width"),p(),o(10,"p-inputgroup"),c(11,"input",6),o(12,"p-inputgroup-addon")(13,"span"),l(14,"cm"),p()()()()(),o(15,"div",5)(16,"div",2),c(17,"label",3),o(18,"p-inputgroup"),c(19,"input",7),o(20,"p-inputgroup-addon")(21,"span"),l(22,"px"),p()()()()(),o(23,"div",5)(24,"div",2)(25,"label",3),l(26,"Sticker Width"),p(),o(27,"p-inputgroup"),c(28,"input",8),o(29,"p-inputgroup-addon")(30,"span"),l(31,"cm"),p()()()()(),o(32,"div",5)(33,"div",2),c(34,"label",3),o(35,"p-inputgroup"),c(36,"input",9),o(37,"p-inputgroup-addon")(38,"span"),l(39,"px"),p()()()()(),o(40,"div",5)(41,"div",2)(42,"label",3),l(43,"Sticker Height"),p(),o(44,"p-inputgroup"),c(45,"input",10),o(46,"p-inputgroup-addon")(47,"span"),l(48,"cm"),p()()()()(),o(49,"div",5)(50,"div",2),c(51,"label",3),o(52,"p-inputgroup"),c(53,"input",11),o(54,"p-inputgroup-addon")(55,"span"),l(56,"px"),p()()()()()()),i&2&&f("formGroup",a.form())},dependencies:[z,ue,me,fe,he,ge,Me,ke,Se],encapsulation:2});let t=r;return t})();var Wt=(()=>{let r=class r{constructor(){this.form=B(),this.onSubmit=le()}onSubmitHandler(){this.onSubmit.emit(this.form().getRawValue())}};r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=b({type:r,selectors:[["app-dialog-form-edit"]],inputs:{form:[1,"form"]},outputs:{onSubmit:"onSubmit"},decls:57,vars:1,consts:[[1,"row","row-gap-2",3,"formGroup"],[1,"col-12"],[1,"form-group"],["for","",1,"fs-3","fw-semibold"],["formControlName","name","type","text","pInputText","",1,"form-control"],[1,"col-6"],["formControlName","paperWidthCM","pInputText",""],["formControlName","paperWidth","pInputText",""],["formControlName","stickerWidthCM","pInputText",""],["formControlName","stickerWidth","pInputText",""],["formControlName","stickerHeightCM","pInputText",""],["formControlName","stickerHeight","pInputText",""]],template:function(i,a){i&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),l(4,"Label Name"),p(),c(5,"input",4),p()(),o(6,"div",5)(7,"div",2)(8,"label",3),l(9,"Paper Width"),p(),o(10,"p-inputgroup"),c(11,"input",6),o(12,"p-inputgroup-addon")(13,"span"),l(14,"cm"),p()()()()(),o(15,"div",5)(16,"div",2),c(17,"label",3),o(18,"p-inputgroup"),c(19,"input",7),o(20,"p-inputgroup-addon")(21,"span"),l(22,"px"),p()()()()(),o(23,"div",5)(24,"div",2)(25,"label",3),l(26,"Sticker Width"),p(),o(27,"p-inputgroup"),c(28,"input",8),o(29,"p-inputgroup-addon")(30,"span"),l(31,"cm"),p()()()()(),o(32,"div",5)(33,"div",2),c(34,"label",3),o(35,"p-inputgroup"),c(36,"input",9),o(37,"p-inputgroup-addon")(38,"span"),l(39,"px"),p()()()()(),o(40,"div",5)(41,"div",2)(42,"label",3),l(43,"Sticker Height"),p(),o(44,"p-inputgroup"),c(45,"input",10),o(46,"p-inputgroup-addon")(47,"span"),l(48,"cm"),p()()()()(),o(49,"div",5)(50,"div",2),c(51,"label",3),o(52,"p-inputgroup"),c(53,"input",11),o(54,"p-inputgroup-addon")(55,"span"),l(56,"px"),p()()()()()()),i&2&&f("formGroup",a.form())},dependencies:[z,ue,me,fe,he,ge,Se,Me,ke],encapsulation:2});let t=r;return t})();var ni=()=>({width:"35rem"}),oi=t=>({"border border-primary":t}),ri=(t,r)=>r.ID;function pi(t,r){if(t&1){let e=S();o(0,"div",8)(1,"p-button",9),C("click",function(){h(e);let i=d();return g(i.openCreate())}),p()()}}function ai(t,r){if(t&1){let e=S();o(0,"input",22),C("change",function(){h(e);let i=d(2).$implicit,a=d(2);return g(a.onSelectionChange(i.ID))}),p()}if(t&2){let e=d(2).$implicit,n=d(2);f("value",e.ID)("checked",n.selectedTemplateId()===e.ID)}}function li(t,r){if(t&1&&(o(0,"div",19)(1,"div",20)(2,"span"),l(3),p()(),o(4,"div",16),I(5,ai,1,2,"input",21),p()()),t&2){let e=d().$implicit,n=d(2);m(3),$e(e.ConfigObject.Name),m(2),D(n.selectedTemplateId()===e.ID?5:-1)}}function si(t,r){if(t&1&&(re(0),o(1,"span"),l(2),V(3,"number"),p(),o(4,"span"),l(5,"/"),p(),pe()),t&2){let e=d().$implicit;m(2),O("",F(3,1,e.ConfigObject.PaperWidthCM),"cm")}}function di(t,r){if(t&1&&(re(0),o(1,"span"),l(2),V(3,"number"),p(),o(4,"span"),l(5,"/"),p(),pe()),t&2){let e=d().$implicit;m(2),O("",F(3,1,e.ConfigObject.StickerWidthCM),"cm")}}function ci(t,r){if(t&1&&(re(0),o(1,"span"),l(2),V(3,"number"),p(),o(4,"span"),l(5,"/"),p(),pe()),t&2){let e=d().$implicit;m(2),O("",F(3,1,e.ConfigObject.StickerHeightCM),"cm")}}function ui(t,r){if(t&1){let e=S();o(0,"div",23)(1,"p-button",24),C("onClick",function(i){h(e);let a=Re(3),s=d().$implicit,v=d(2);return g(v.onMenuToggle(i,a,s.ID))}),p(),c(2,"p-menu",25,4),p()}if(t&2){let e=d(3);m(),f("outlined",!0),m(),f("model",e.menuItems())("popup",!0)}}function mi(t,r){if(t&1){let e=S();o(0,"div",12)(1,"p-card",13),C("click",function(){let i=h(e).$implicit,a=d(2);return g(a.onSelectionChange(i.ID))}),_(2,li,6,2,"ng-template",null,3,M),o(4,"div",14)(5,"div",15),l(6,"Paper Width"),p(),o(7,"div",16)(8,"div",17),_(9,si,6,3,"ng-container",18),o(10,"span"),l(11),V(12,"number"),p()()()(),o(13,"div",14)(14,"div",15),l(15,"Sticker Width"),p(),o(16,"div",16)(17,"div",17),_(18,di,6,3,"ng-container",18),o(19,"span"),l(20),V(21,"number"),p()()()(),o(22,"div",14)(23,"div",15),l(24,"Sticker Height"),p(),o(25,"div",16)(26,"div",17),_(27,ci,6,3,"ng-container",18),o(28,"span"),l(29),V(30,"number"),p()()()(),_(31,ui,4,3,"ng-template",null,2,M),p()()}if(t&2){let e=r.$implicit,n=d(2);m(),f("ngClass",ae(13,oi,n.selectedTemplateId()===e.ID)),m(8),f("ngIf",e.ConfigObject.PaperWidthCM),m(2),O("",F(12,7,e.ConfigObject.PaperWidth),"px"),m(7),f("ngIf",e.ConfigObject.StickerWidthCM),m(2),O("",F(21,9,e.ConfigObject.StickerWidth),"px"),m(7),f("ngIf",e.ConfigObject.StickerHeightCM),m(2),O("",F(30,11,e.ConfigObject.StickerHeight),"px")}}function fi(t,r){if(t&1&&(o(0,"p-card",10)(1,"div",11),He(2,mi,33,15,"div",12,ri),p()()),t&2){let e=d();m(2),je(e.profileTemplates())}}function hi(t,r){if(t&1){let e=S();o(0,"div",26)(1,"p-button",27),C("onClick",function(){h(e);let i=d();return g(i.onNextStep())}),p()()}if(t&2){let e=d();m(),f("disabled",!e.hasSelectedTemplate())}}function gi(t,r){if(t&1){let e=S();o(0,"app-dialog-form-edit",28),C("onSubmit",function(i){h(e);let a=d();return g(a.onDialogFormEdit(i))}),p()}if(t&2){let e=d();f("form",e.form)}}function bi(t,r){if(t&1){let e=S();o(0,"app-dialog-form-create",28),C("onSubmit",function(i){h(e);let a=d();return g(a.onDialogFormCreate(i))}),p()}if(t&2){let e=d();f("form",e.form)}}function Ci(t,r){if(t&1){let e=S();o(0,"p-button",29),C("onClick",function(){h(e);let i=d();return g(i.closeDialog())}),p(),o(1,"p-button",30),C("onClick",function(){h(e);let i=d();return g(i.onSubmit())}),p()}}var Lt=(()=>{let r=class r{constructor(){this.templateService=u(_t),this.appStore=u(be),this.profileTemplates=k(null),this.fb=u(it),this.router=u(tt),this.route=u(et),this.selectedTemplateId=k(null),this.profileTemplateDefault=k(null),this.dialogVisible=k(!1),this.dialogMode=k(null),this.menuItems=k([]),this.isPatching=k(!1),this.isFirstRun=!0,this.hasSelectedTemplate=J(()=>this.selectedTemplateId()!=null)}initDialogState(){this.route.queryParamMap.pipe(T(n=>{let i=n.get("dialog"),a=n.get("id");if(i==="create"){this.dialogMode.update(s=>"create"),this.dialogVisible.update(s=>!0),this.selectedTemplateId.update(s=>null),this.form.reset();return}if(i==="edit"&&a){this.dialogMode.update(s=>"edit"),this.dialogVisible.update(s=>!0),this.selectedTemplateId.update(s=>a),this.handleTemplateEdit(a);return}this.dialogVisible.update(s=>!1),this.dialogMode.update(s=>null),this.selectedTemplateId.update(s=>null)})).subscribe()}ngOnInit(){this.closeDialog(),this.initForm(),this.loadData(),this.initMenuItems(),this.initDialogState(),this.templateService.getDefaultPaperTemplate().pipe(ye("Default template loaded"),T(n=>this.profileTemplateDefault.update(i=>n))).subscribe(),this.linkControls(this.form.controls.paperWidth,this.form.controls.paperWidthCM,we,Te),this.linkControls(this.form.controls.stickerWidth,this.form.controls.stickerWidthCM,we,Te),this.linkControls(this.form.controls.stickerHeight,this.form.controls.stickerHeightCM,we,Te)}ngAfterViewInit(){let n=localStorage.getItem(K.SelectedProfileTemplate);if(n)try{let i=JSON.parse(n);i?.ID!=null&&(this.selectedTemplateId.set(i.ID),this.appStore.updateProfileTemplate(i))}catch(i){console.warn("Failed to parse selected profile template from localStorage",i),localStorage.removeItem(K.SelectedProfileTemplate)}}onDialogFormEdit(n){Object.assign(this.form.value,n)}onDialogFormCreate(n){Object.assign(this.form.value,n)}initMenuItems(){this.menuItems.update(n=>[...n,{label:"Edit",command:i=>{this.openEdit(i.item.id)}},{label:"Copy",command:i=>{this.onCopyTemplate(i.item.id)}},{label:"Delete",command:i=>{this.onDeleteTemplate(i.item.id)}}])}handleTemplateEdit(n){this.templateService.getPaperTemplatesById(n).pipe(T(({ConfigObject:{Name:i,PaperWidth:a,PaperWidthCM:s,StickerWidth:v,StickerWidthCM:y,StickerHeight:X,StickerHeightCM:P}})=>{this.isPatching.update(Ie=>!0),this.form.patchValue({name:i,paperWidth:a,paperWidthCM:s,stickerWidth:v,stickerWidthCM:y,stickerHeight:X,stickerHeightCM:P}),this.isPatching.update(Ie=>!1)})).subscribe()}linkControls(n,i,a,s){n.valueChanges.pipe(Pe(),De(()=>!this.isPatching()),T(v=>{if(v!=null){let y=a(v);i.setValue(y,{emitEvent:!1})}})).subscribe(),i.valueChanges.pipe(Pe(),De(()=>!this.isPatching()),T(v=>{if(v!=null){let y=s(v);n.setValue(y,{emitEvent:!1})}})).subscribe()}loadData(){let n=`https://${localStorage.getItem(K.Host)}/`;Be({templates:this.templateService.getBarcodeTemplate().pipe(ie(i=>(console.error("Failed to load templates:",i),te([])))),outlets:this.templateService.getListOutlet(n).pipe(ie(i=>(console.error("Failed to load outlets:",i),te([])))),taxes:this.templateService.getListTax(n).pipe(ie(i=>(console.error("Failed to load taxes:",i),te([]))))}).pipe(T(({templates:i,outlets:a,taxes:s})=>{this.appStore.updateOutlets(a),this.appStore.updateTaxes(s),this.profileTemplates.set(i)}),ye("All template data loaded (even if some failed)")).subscribe()}onMenuToggle(n,i,a){n.stopPropagation(),i.toggle(n),this.menuItems().forEach(s=>s.id=a)}initForm(){this.form=this.fb.group({paperWidthCM:void 0,name:this.fb.control(null),paperWidth:this.fb.control(null),stickerWidth:this.fb.control(null),stickerWidthCM:this.fb.control(null),stickerHeight:this.fb.control(null),stickerHeightCM:this.fb.control(null)})}onSelectionChange(n){return ee(this,null,function*(){this.selectedTemplateId.update(i=>n)})}onSubmit(){if(this.form.invalid){this.form.markAllAsTouched();return}let{name:n,paperWidth:i,paperWidthCM:a,stickerWidth:s,stickerWidthCM:v,stickerHeight:y,stickerHeightCM:X}=this.form.value;if(this.route.snapshot.queryParamMap.has("id")){let P=this.profileTemplates().findIndex(Ht=>Ht.ID===this.route.snapshot.queryParamMap.get("id"));if(P===-1)return;let Ie=Y(E({},this.profileTemplates()[P]),{ConfigObject:Y(E({},this.profileTemplates()[P].ConfigObject),{Name:n,PaperWidth:+i,PaperWidthCM:+a,StickerWidth:+s,StickerWidthCM:+v,StickerHeight:+y,StickerHeightCM:+X})});this.templateService.updatePaperTemplate(this.route.snapshot.queryParamMap.get("id"),Ie).pipe(T(()=>ee(this,null,function*(){this.loadData(),this.closeDialog()}))).subscribe()}else{let P={ConfigObject:Y(E({},this.profileTemplateDefault()),{Name:n,PaperWidth:+i,PaperWidthCM:+a,StickerWidth:+s,StickerWidthCM:+v,StickerHeight:+y,StickerHeightCM:+X})};this.templateService.savePaperTemplate(P).pipe(ye("Template saved"),T(()=>ee(this,null,function*(){this.loadData(),this.closeDialog()}))).subscribe()}}openCreate(){this.router.navigate([],{queryParams:{dialog:"create"},queryParamsHandling:"merge"})}openEdit(n){this.router.navigate([],{queryParams:{dialog:"edit",id:n},queryParamsHandling:"merge"})}closeDialog(){this.router.navigate([],{queryParams:{},replaceUrl:!0})}onDeleteTemplate(n){this.templateService.deletePaperTemplate(n).pipe(T(()=>{this.loadData()})).subscribe(),setTimeout(()=>{document.querySelector(".p-menu-overlay")?.remove()},100)}onCopyTemplate(n){this.templateService.copyPaperTemplate(n).pipe(T(()=>{this.loadData()})).subscribe(),setTimeout(()=>{document.querySelector(".p-menu-overlay")?.remove()},100)}onPreviousStep(){this.appStore.updateCurrentStep(this.appStore.currentStep()-1)}onNextStep(){this.appStore.updateCurrentStep(this.appStore.currentStep()+1);let n=this.profileTemplates().find(i=>i.ID===this.selectedTemplateId());this.appStore.updateProfileTemplate(n),localStorage.setItem(K.SelectedProfileTemplate,JSON.stringify(n))}};r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=b({type:r,selectors:[["app-choose-profile-template"]],decls:12,vars:9,consts:[["actionButton",""],["content",""],["footer",""],["title",""],["menu",""],["pageTitle","Choose Paper Template"],["appendTo","body",3,"visibleChange","closable","header","modal","visible"],[3,"form"],[1,"d-flex","gap-2","justify-content-end","align-items-center"],["label","Add",3,"click"],[1,"p-2","m-3"],[1,"row","row-gap-4"],[1,"col-12","col-md-6","col-lg-4","col-xl-3"],[3,"click","ngClass"],[1,"row","fs-3"],[1,"col"],[1,"col","d-flex","justify-content-end"],[1,"d-flex","gap-2"],[4,"ngIf"],[1,"row"],[1,"col-10"],["type","radio","name","selectedCategory",1,"p-radiobutton-box",3,"value","checked"],["type","radio","name","selectedCategory",1,"p-radiobutton-box",3,"change","value","checked"],[1,"d-flex","justify-content-end","border-top","py-2"],["icon","fa-solid fa-ellipsis","severity","secondary","styleClass","py-1",1,"fs-2",3,"onClick","outlined"],["appendTo","body",3,"model","popup"],[1,"d-flex","justify-content-end","gap-2","py-2","px-3"],["label","Next","severity","info",3,"onClick","disabled"],[3,"onSubmit","form"],["label","Cancel","severity","secondary",3,"onClick"],["label","Save","severity","secondary",3,"onClick"]],template:function(i,a){if(i&1){let s=S();o(0,"app-main-panel",5),_(1,pi,2,0,"ng-template",null,0,M)(3,fi,4,0,"ng-template",null,1,M)(5,hi,2,1,"ng-template",null,2,M),p(),o(7,"p-dialog",6),Ze("visibleChange",function(y){return h(s),ze(a.dialogVisible,y)||(a.dialogVisible=y),g(y)}),I(8,gi,1,1,"app-dialog-form-edit",7),I(9,bi,1,1,"app-dialog-form-create",7),_(10,Ci,2,0,"ng-template",null,2,M),p()}i&2&&(m(7),$(qe(8,ni)),f("closable",!1)("header",a.dialogMode()=="create"?"Create New Label":"Edit New Label")("modal",!0),Ge("visible",a.dialogVisible),m(),D(a.dialogMode()=="edit"?8:-1),m(),D(a.dialogMode()=="create"?9:-1))},dependencies:[vt,z,ot,de,Qe,Je,xt,Ct,Et,yt,bt,nt,At,Wt,Ye],styles:['[_nghost-%COMP%]{display:block;height:100%}input[type=radio][_ngcontent-%COMP%]{appearance:none;width:18px;height:18px;border:2px solid #ced4da;border-radius:50%;outline:none;cursor:pointer;position:relative}input[type=radio][_ngcontent-%COMP%]:checked{border-color:#3b82f6}input[type=radio][_ngcontent-%COMP%]:checked:after{content:"";position:absolute;top:50%;left:50%;width:8px;height:8px;background:#3b82f6;border-radius:50%;transform:translate(-50%,-50%)}'],changeDetection:0});let t=r;return t})();function vi(t,r){t&1&&c(0,"app-choose-profile-template")}function _i(t,r){t&1&&c(0,"choose-product")}function xi(t,r){if(t&1&&c(0,"app-barcode-preview",1),t&2){let e=r.$implicit;f("cartItems",e)}}function yi(t,r){t&1&&(o(0,"app-customize-label"),_(1,xi,1,1,"ng-template",null,0,M),p())}function Si(t,r){t&1&&c(0,"app-print-preview")}var Co=(()=>{let r=class r{constructor(){this.storeService=u(rt),this.appStore=u(be)}get cartItems(){return this.appStore.flattenedCartUnits()}};r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=b({type:r,selectors:[["app-barcode-wrapper"]],decls:4,vars:1,consts:[["content",""],["previewMode","single",3,"cartItems"]],template:function(i,a){if(i&1&&I(0,vi,1,0,"app-choose-profile-template")(1,_i,1,0,"choose-product")(2,yi,3,0,"app-customize-label")(3,Si,1,0,"app-print-preview"),i&2){let s;D((s=a.appStore.currentStep())===1?0:s===2?1:s===3?2:s===4?3:-1)}},dependencies:[Lt,St,Tt,wt,Mt],encapsulation:2});let t=r;return t})();export{Co as BarcodeWrapperComponent};
@@ -1 +1 @@
1
- import"./chunk-7RSU6VFI.js";var e=[{path:"",children:[{path:"v2/print-mode",loadComponent:()=>import("./chunk-CQL43DMM.js").then(o=>o.PrintModeSelectorComponent)},{path:"",children:[{path:"barcode",loadComponent:()=>import("./chunk-66XEEZ6W.js").then(o=>o.BarcodeWrapperComponent)},{path:"price-label",loadComponent:()=>import("./chunk-SMR7YI5J.js").then(o=>o.PriceLabelWrapperComponent)}]}]}];export{e as dashboardRoutes};
1
+ import"./chunk-7RSU6VFI.js";var e=[{path:"",children:[{path:"v2/print-mode",loadComponent:()=>import("./chunk-Z7JGEKOM.js").then(o=>o.PrintModeSelectorComponent)},{path:"",children:[{path:"barcode",loadComponent:()=>import("./chunk-5KWDVSO6.js").then(o=>o.BarcodeWrapperComponent)},{path:"price-label",loadComponent:()=>import("./chunk-PN5S3LIV.js").then(o=>o.PriceLabelWrapperComponent)}]}]}];export{e as dashboardRoutes};
@@ -1 +1 @@
1
- var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},version:"26.1.0"};export{e as a};
1
+ var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},version:"26.1.1"};export{e as a};