marketplacepos 3.4.2 → 3.5.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.
- package/Marketplace/3rdpartylicenses.txt +5 -0
- package/Marketplace/{chunk-VJLQRARA.js → chunk-475WOA53.js} +1 -1
- package/Marketplace/chunk-4KXF5ZA2.js +1 -0
- package/Marketplace/{chunk-CVIYGYJG.js → chunk-4PT4476L.js} +1 -1
- package/Marketplace/{chunk-VLWVI7LT.js → chunk-4TMYOD6O.js} +1 -1
- package/Marketplace/{chunk-4ZIFLVEZ.js → chunk-5ANLTFUN.js} +1 -1
- package/Marketplace/{chunk-LHYUY4OW.js → chunk-5XDVKUH7.js} +1 -1
- package/Marketplace/{chunk-NLUIK3SD.js → chunk-5ZN2BVWB.js} +1 -1
- package/Marketplace/chunk-7K45EX2D.js +1 -0
- package/Marketplace/{chunk-WT7HH4UV.js → chunk-AFXFMUBY.js} +1 -1
- package/Marketplace/{chunk-JD4NX6LL.js → chunk-AG7HK2U3.js} +1 -1
- package/Marketplace/{chunk-APSB364O.js → chunk-APUQGD5I.js} +1 -1
- package/Marketplace/{chunk-OGA3XTQE.js → chunk-BHYFVY4A.js} +1 -1
- package/Marketplace/{chunk-HMATF4RH.js → chunk-BZKS3OOQ.js} +1 -1
- package/Marketplace/{chunk-Y4RCGXQK.js → chunk-DLMJHJC2.js} +1 -1
- package/Marketplace/{chunk-FJAD3LVA.js → chunk-E6VM4GK2.js} +1 -1
- package/Marketplace/{chunk-3FA5VSAY.js → chunk-EI6G5GIB.js} +1 -1
- package/Marketplace/{chunk-PASXSTSS.js → chunk-GSRXSBIM.js} +1 -1
- package/Marketplace/{chunk-XG47KOUR.js → chunk-GYBKA75Z.js} +1 -1
- package/Marketplace/{chunk-45BCCCD5.js → chunk-H6D6Q2L2.js} +1 -1
- package/Marketplace/{chunk-WL3GCHJ5.js → chunk-HI7WYFPY.js} +1 -1
- package/Marketplace/{chunk-2PR23CRN.js → chunk-HUCFUCCO.js} +1 -1
- package/Marketplace/{chunk-EIQQEQMI.js → chunk-IEBL2FLF.js} +1 -1
- package/Marketplace/{chunk-NQ5YXCPF.js → chunk-IHM35ILL.js} +1 -1
- package/Marketplace/{chunk-DH7A3MMY.js → chunk-IM76S6ZZ.js} +1 -1
- package/Marketplace/{chunk-HIQEVY5J.js → chunk-IMXSLLAA.js} +1 -1
- package/Marketplace/chunk-IU6HPLQ3.js +1 -0
- package/Marketplace/{chunk-EGVKBYT5.js → chunk-J6UEWWQX.js} +1 -1
- package/Marketplace/{chunk-OHLIZGJ7.js → chunk-JF3MRSX7.js} +1 -1
- package/Marketplace/{chunk-XNEL4SD6.js → chunk-KKKJRBXL.js} +1 -1
- package/Marketplace/{chunk-QZHSCJJ5.js → chunk-KRXW5FTG.js} +1 -1
- package/Marketplace/{chunk-I5WJTOZD.js → chunk-L5URITG7.js} +1 -1
- package/Marketplace/{chunk-BJCKTMTZ.js → chunk-LBMDUJHZ.js} +1 -1
- package/Marketplace/{chunk-JDAC3DI7.js → chunk-LDVARU5U.js} +1 -1
- package/Marketplace/{chunk-CB54UHPH.js → chunk-LWKBNKVO.js} +1 -1
- package/Marketplace/{chunk-LUN7S6P4.js → chunk-MGOWDXUM.js} +1 -1
- package/Marketplace/{chunk-WAE5XPQ6.js → chunk-MZEDRDUX.js} +1 -1
- package/Marketplace/{chunk-KHQYY4CP.js → chunk-NB75ACST.js} +1 -1
- package/Marketplace/{chunk-QXKJ6AH2.js → chunk-NLTXIY5M.js} +1 -1
- package/Marketplace/{chunk-CNK2ETMZ.js → chunk-NWCS6OKR.js} +1 -1
- package/Marketplace/{chunk-H5BAFHZZ.js → chunk-OULCNSCZ.js} +1 -1
- package/Marketplace/{chunk-X6OLODND.js → chunk-OVPZBBEC.js} +2 -2
- package/Marketplace/{chunk-TKW6MA5X.js → chunk-OYMJWISR.js} +1 -1
- package/Marketplace/{chunk-CAF3EESF.js → chunk-PFX4CZVM.js} +1 -1
- package/Marketplace/{chunk-4FIQ677Y.js → chunk-Q5ZWBTZ2.js} +1 -1
- package/Marketplace/{chunk-5LIHLHZ2.js → chunk-QKOBK5RO.js} +1 -1
- package/Marketplace/{chunk-IKBHUDBF.js → chunk-RKNA2RX4.js} +1 -1
- package/Marketplace/chunk-RPMRAFUY.js +39 -0
- package/Marketplace/{chunk-RUG3NZNS.js → chunk-RWEMXJWP.js} +1 -1
- package/Marketplace/{chunk-WGNBD2TG.js → chunk-RWRP376T.js} +5 -5
- package/Marketplace/{chunk-Q27U6EXR.js → chunk-TP2HONHJ.js} +1 -1
- package/Marketplace/{chunk-KS42UW22.js → chunk-TRRI6HFB.js} +1 -1
- package/Marketplace/{chunk-7O2LUPOW.js → chunk-UCSWGVFE.js} +1 -1
- package/Marketplace/{chunk-QA6BHZKW.js → chunk-UFNZF4K5.js} +1 -1
- package/Marketplace/{chunk-MPXURNR4.js → chunk-URBKK5K6.js} +1 -1
- package/Marketplace/{chunk-6H6S75XM.js → chunk-USCL6HQE.js} +1 -1
- package/Marketplace/{chunk-CLLCMDP4.js → chunk-WB4KZY2I.js} +1 -1
- package/Marketplace/{chunk-TEIBLAW7.js → chunk-XEVR4BVC.js} +2 -2
- package/Marketplace/{chunk-ENUKURHL.js → chunk-XTLLDXB7.js} +1 -1
- package/Marketplace/{chunk-HO6I7ZN6.js → chunk-Y2IG7JAU.js} +1 -1
- package/Marketplace/{chunk-GPNYP6CI.js → chunk-YIPITET7.js} +1 -1
- package/Marketplace/{chunk-TFM4P7KH.js → chunk-YN7U2IRK.js} +1 -1
- package/Marketplace/{chunk-LC5NUVMA.js → chunk-ZJHL6VDX.js} +1 -1
- package/Marketplace/{chunk-EBAG6BIX.js → chunk-ZP6L6END.js} +1 -1
- package/Marketplace/{chunk-DANZQU6U.js → chunk-ZPR2KAKZ.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-MTBOIFWC.js → main-WKNVNRPA.js} +1 -1
- package/Marketplace/media/color-3LUHUBGQ.png +0 -0
- package/Marketplace/media/hue-RMMBQOAC.png +0 -0
- package/Marketplace/styles-ISUUHHCL.css +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-ANO5F2BV.js +0 -8
- package/Marketplace/chunk-FWUAZZDI.js +0 -1
- package/Marketplace/chunk-JIRDXTRJ.js +0 -1
- package/Marketplace/chunk-TZO7ICWB.js +0 -1
- package/Marketplace/styles-JRURH5LL.css +0 -1
- /package/Marketplace/{chunk-7G5B67SI.js → chunk-F7MYTDP3.js} +0 -0
- /package/Marketplace/{chunk-SZQIM5RM.js → chunk-GV43X5PS.js} +0 -0
- /package/Marketplace/{chunk-4YO3BZ5L.js → chunk-KSBVZVMH.js} +0 -0
- /package/Marketplace/{chunk-DILTMQOY.js → chunk-NXHVARCF.js} +0 -0
- /package/Marketplace/{chunk-HPDCVTZM.js → chunk-OKO7WTOG.js} +0 -0
- /package/Marketplace/{polyfills-WRDNL3NI.js → polyfills-STQSWRUI.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as lt,$a as G,E as rt,Ea as a,Fa as C,Ja as L,Ma as O,Na as r,Nb as R,Oa as D,Qa as v,Ta as A,Tb as J,Ya as p,Yb as Y,Za as g,_ as I,_a as M,aa as ct,ab as $,b as nt,ba as f,c as _,ca as w,cb as U,da as P,ea as ut,eb as mt,gb as H,hc as ft,ia as V,ib as u,j as ot,ja as z,ob as T,oc as vt,p as at,qa as ht,qb as b,qc as gt,ra as E,rc as K,tb as q,uc as N,vc as j,wa as dt,xa as Z,xc as Q,za as pt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-WGNBD2TG.js";import{a as d,b as y}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-HPDCVTZM.js";var Tt=["toast-component",""];function xt(s,n){if(s&1){let e=U();p(0,"button",5),H("click",function(){V(e);let i=u();return z(i.remove())}),p(1,"span",6),T(2,"\xD7"),g()()}}function Ot(s,n){if(s&1&&(G(0),T(1),$()),s&2){let e=u(2);a(1),b("[",e.duplicatesCount+1,"]")}}function Dt(s,n){if(s&1&&(p(0,"div"),T(1),A(2,Ot,2,1,"ng-container",4),g()),s&2){let e=u();v(e.options.titleClass),O("aria-label",e.title),a(1),b(" ",e.title," "),a(1),r("ngIf",e.duplicatesCount)}}function At(s,n){if(s&1&&M(0,"div",7),s&2){let e=u();v(e.options.messageClass),r("innerHTML",e.message,Z)}}function Mt(s,n){if(s&1&&(p(0,"div",8),T(1),g()),s&2){let e=u();v(e.options.messageClass),O("aria-label",e.message),a(1),b(" ",e.message," ")}}function Ht(s,n){if(s&1&&(p(0,"div"),M(1,"div",9),g()),s&2){let e=u();a(1),D("width",e.width+"%")}}function Et(s,n){if(s&1){let e=U();p(0,"button",5),H("click",function(){V(e);let i=u();return z(i.remove())}),p(1,"span",6),T(2,"\xD7"),g()()}}function Rt(s,n){if(s&1&&(G(0),T(1),$()),s&2){let e=u(2);a(1),b("[",e.duplicatesCount+1,"]")}}function Nt(s,n){if(s&1&&(p(0,"div"),T(1),A(2,Rt,2,1,"ng-container",4),g()),s&2){let e=u();v(e.options.titleClass),O("aria-label",e.title),a(1),b(" ",e.title," "),a(1),r("ngIf",e.duplicatesCount)}}function jt(s,n){if(s&1&&M(0,"div",7),s&2){let e=u();v(e.options.messageClass),r("innerHTML",e.message,Z)}}function St(s,n){if(s&1&&(p(0,"div",8),T(1),g()),s&2){let e=u();v(e.options.messageClass),O("aria-label",e.message),a(1),b(" ",e.message," ")}}function Bt(s,n){if(s&1&&(p(0,"div"),M(1,"div",9),g()),s&2){let e=u();a(1),D("width",e.width+"%")}}var W=class{_attachedHost;component;viewContainerRef;injector;constructor(n,e){this.component=n,this.injector=e}attach(n,e){return this._attachedHost=n,n.attach(this,e)}detach(){let n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},X=class{_attachedPortal;_disposeFn;attach(n,e){return this._attachedPortal=n,this.attachComponentPortal(n,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}},tt=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new _;_activate=new _;_manualClose=new _;_resetTimeout=new _;_countDuplicate=new _;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,e){n&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}},x=class{toastId;config;message;title;toastType;toastRef;_onTap=new _;_onAction=new _;constructor(n,e,t,i,o,h){this.toastId=n,this.config=e,this.message=t,this.title=i,this.toastType=o,this.toastRef=h,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}},_t={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},Ct=new ct("ToastConfig"),et=class extends X{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,e,t){super(),this._hostDomElement=n,this._componentFactoryResolver=e,this._appRef=t}attachComponentPortal(n,e){let t=this._componentFactoryResolver.resolveComponentFactory(n.component),i;return i=t.create(n.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},Ft=(()=>{class s{_document=w(J);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}static \u0275fac=function(t){return new(t||s)};static \u0275prov=I({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),it=class{_portalHost;constructor(n){this._portalHost=n}attach(n,e=!0){return this._portalHost.attach(n,e)}detach(){return this._portalHost.detach()}},kt=(()=>{class s{_overlayContainer=w(Ft);_componentFactoryResolver=w(pt);_appRef=w(R);_document=w(J);_paneElements=new Map;create(e,t){return this._createOverlayRef(this.getPaneElement(e,t))}getPaneElement(e="",t){return this._paneElements.get(t)||this._paneElements.set(t,{}),this._paneElements.get(t)[e]||(this._paneElements.get(t)[e]=this._createPaneElement(e,t)),this._paneElements.get(t)[e]}_createPaneElement(e,t){let i=this._document.createElement("div");return i.id="toast-container",i.classList.add(e),i.classList.add("toast-container"),t?t.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(e){return new et(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new it(this._createPortalHost(e))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=I({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),S=(()=>{class s{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(e,t,i,o,h){this.overlay=t,this._injector=i,this.sanitizer=o,this.ngZone=h,this.toastrConfig=d(d({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=d(d({},e.default.iconClasses),e.config.iconClasses))}show(e,t,i={},o=""){return this._preBuildNotification(o,e,t,this.applyConfig(i))}success(e,t,i={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,e,t,this.applyConfig(i))}error(e,t,i={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,e,t,this.applyConfig(i))}info(e,t,i={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,e,t,this.applyConfig(i))}warning(e,t,i={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,e,t,this.applyConfig(i))}clear(e){for(let t of this.toasts)if(e!==void 0){if(t.toastId===e){t.toastRef.manualClose();return}}else t.toastRef.manualClose()}remove(e){let t=this._findToast(e);if(!t||(t.activeToast.toastRef.close(),this.toasts.splice(t.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(e="",t="",i,o){let{includeTitleDuplicates:h}=this.toastrConfig;for(let l of this.toasts){let c=h&&l.title===e;if((!h||c)&&l.message===t)return l.toastRef.onDuplicate(i,o),l}return null}applyConfig(e={}){return d(d({},this.toastrConfig),e)}_findToast(e){for(let t=0;t<this.toasts.length;t++)if(this.toasts[t].toastId===e)return{index:t,activeToast:this.toasts[t]};return null}_preBuildNotification(e,t,i,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(e,t,i,o)):this._buildNotification(e,t,i,o)}_buildNotification(e,t,i,o){if(!o.toastComponent)throw new Error("toastComponent required");let h=this.findDuplicate(i,t,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||t)&&this.toastrConfig.preventDuplicates&&h!==null)return h;this.previousToastMessage=t;let l=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(l=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let c=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let B=t;t&&o.enableHtml&&(B=this.sanitizer.sanitize(dt.HTML,t));let m=new tt(c),F=new x(this.index,o,B,i,e,m),bt=[{provide:x,useValue:F}],yt=E.create({providers:bt,parent:this._injector}),It=new W(o.toastComponent,yt),st=c.attach(It,o.newestOnTop);m.componentInstance=st.instance;let k={toastId:this.index,title:i||"",message:t||"",toastRef:m,onShown:m.afterActivate(),onHidden:m.afterClosed(),onTap:F.onTap(),onAction:F.onAction(),portal:st};return l||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{k.toastRef.activate()})),this.toasts.push(k),k}static \u0275fac=function(t){return new(t||s)(f(Ct),f(kt),f(E),f(vt),f(L))};static \u0275prov=I({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Pt=(()=>{class s{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if(this.state.value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(e,t,i){this.toastrService=e,this.toastPackage=t,this.ngZone=i,this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=`${t.toastType} ${t.config.toastClass}`,this.sub=t.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=t.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=t.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=t.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=y(d({},this.state),{value:"active"}),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width===0||this.width===100||!this.options.timeOut)return;let e=new Date().getTime(),t=this.hideTime-e;this.width=t/this.options.timeOut*100,this.options.progressAnimation==="increasing"&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=y(d({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state.value!=="removed"&&(clearTimeout(this.timeout),this.state=y(d({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state.value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state.value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state.value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,t){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),t)):this.timeout=setTimeout(()=>e(),t)}outsideInterval(e,t){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),t)):this.intervalId=setInterval(()=>e(),t)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}static \u0275fac=function(t){return new(t||s)(C(S),C(x),C(L))};static \u0275cmp=P({type:s,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,i){t&1&&H("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),t&2&&(mt("@flyInOut",i.state),v(i.toastClasses),D("display",i.displayStyle))},standalone:!0,features:[q],attrs:Tt,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(t,i){t&1&&A(0,xt,3,0,"button",0)(1,Dt,3,5,"div",1)(2,At,1,3,"div",2)(3,Mt,2,4,"div",3)(4,Ht,2,2,"div",4),t&2&&(r("ngIf",i.options.closeButton),a(1),r("ngIf",i.title),a(1),r("ngIf",i.message&&i.options.enableHtml),a(1),r("ngIf",i.message&&!i.options.enableHtml),a(1),r("ngIf",i.options.progressBar))},dependencies:[Y],encapsulation:2,data:{animation:[gt("flyInOut",[j("inactive",N({opacity:0})),j("active",N({opacity:1})),j("removed",N({opacity:0})),Q("inactive => active",K("{{ easeTime }}ms {{ easing }}")),Q("active => removed",K("{{ easeTime }}ms {{ easing }}"))])]}})}return s})(),Vt=y(d({},_t),{toastComponent:Pt}),zt=(s={})=>ht([{provide:Ct,useValue:{default:Vt,config:s}}]),ne=(()=>{class s{static forRoot(e={}){return{ngModule:s,providers:[zt(e)]}}static \u0275fac=function(t){return new(t||s)};static \u0275mod=ut({type:s});static \u0275inj=lt({})}return s})();var Zt=(()=>{class s{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";get displayStyle(){return this.state==="inactive"?"none":null}state="inactive";timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(e,t,i){this.toastrService=e,this.toastPackage=t,this.appRef=i,this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=`${t.toastType} ${t.config.toastClass}`,this.sub=t.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=t.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=t.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=t.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width===0||this.width===100||!this.options.timeOut)return;let e=new Date().getTime(),t=this.hideTime-e;this.width=t/this.options.timeOut*100,this.options.progressAnimation==="increasing"&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state!=="removed"&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(t){return new(t||s)(C(S),C(x),C(R))};static \u0275cmp=P({type:s,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(t,i){t&1&&H("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),t&2&&(v(i.toastClasses),D("display",i.displayStyle))},standalone:!0,features:[q],attrs:Tt,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(t,i){t&1&&A(0,Et,3,0,"button",0)(1,Nt,3,5,"div",1)(2,jt,1,3,"div",2)(3,St,2,4,"div",3)(4,Bt,2,2,"div",4),t&2&&(r("ngIf",i.options.closeButton),a(1),r("ngIf",i.title),a(1),r("ngIf",i.message&&i.options.enableHtml),a(1),r("ngIf",i.message&&!i.options.enableHtml),a(1),r("ngIf",i.options.progressBar))},dependencies:[Y],encapsulation:2})}return s})(),oe=y(d({},_t),{toastComponent:Zt});var ue=(()=>{let n=class n{constructor(t,i){this.http=t,this.toastr=i}get(t){return this.http.get(t).pipe(rt(i=>{let o=this.errorMessageHandling(i);return this.toastr.error(o.message!=""?o.message:"An unknown error has occured!",o.header),ot}))}post(t,i,o={},h=1e5){return new nt(l=>{this.http.post(t,i,o).pipe(at(h)).subscribe({next:c=>{l.next(c),l.complete()},error:c=>{if(c.status==200)l.next(c.error.text),l.complete();else{if(!this.unauthorizedErrorHandling(c)&&!Array.isArray(c?.error?.Message)){let m=this.errorMessageHandling(c);this.toastr.error(m.message!=""?m.message:"An unknown error has occured!",m.header,{enableHtml:!0})}l.error(c)}}})})}unauthorizedErrorHandling(t){let i=!1;return t.status==401&&(localStorage.getItem("Token")?window.location.href="/A/Unauthorized/Main/Unauthorized":window.location.href="/",i=!0),i}errorMessageHandling(t){let i="API Error",o="Exception Message";return t.error?(i="API Error - "+t.status,t.error.Message&&(t.error.Message.indexOf("Message")!=-1?o=JSON.parse(t.error.Message).Message:o=t.error.Message)):t.message&&(i="API Error - "+t.name,o=t.message),{header:i,message:o}}};n.\u0275fac=function(i){return new(i||n)(f(ft),f(S))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"});let s=n;return s})();export{x as a,S as b,Pt as c,ne as d,ue as e};
|
|
1
|
+
import{$ as lt,$a as G,E as rt,Ea as a,Fa as C,Ja as L,Ma as O,Na as r,Oa as D,Ob as R,Qa as v,Ta as A,Ub as J,Ya as p,Za as g,Zb as Y,_ as I,_a as M,aa as ct,ab as $,b as nt,ba as f,c as _,ca as w,cb as U,da as P,ea as ut,eb as mt,gb as H,ia as V,ib as u,ic as ft,j as ot,ja as z,ob as T,p as at,pc as vt,qa as ht,qb as b,ra as E,rc as gt,sc as K,tb as q,vc as N,wa as dt,wc as j,xa as Z,yc as Q,za as pt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-RWRP376T.js";import{a as d,b as y}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-OKO7WTOG.js";var Tt=["toast-component",""];function xt(s,n){if(s&1){let e=U();p(0,"button",5),H("click",function(){V(e);let i=u();return z(i.remove())}),p(1,"span",6),T(2,"\xD7"),g()()}}function Ot(s,n){if(s&1&&(G(0),T(1),$()),s&2){let e=u(2);a(1),b("[",e.duplicatesCount+1,"]")}}function Dt(s,n){if(s&1&&(p(0,"div"),T(1),A(2,Ot,2,1,"ng-container",4),g()),s&2){let e=u();v(e.options.titleClass),O("aria-label",e.title),a(1),b(" ",e.title," "),a(1),r("ngIf",e.duplicatesCount)}}function At(s,n){if(s&1&&M(0,"div",7),s&2){let e=u();v(e.options.messageClass),r("innerHTML",e.message,Z)}}function Mt(s,n){if(s&1&&(p(0,"div",8),T(1),g()),s&2){let e=u();v(e.options.messageClass),O("aria-label",e.message),a(1),b(" ",e.message," ")}}function Ht(s,n){if(s&1&&(p(0,"div"),M(1,"div",9),g()),s&2){let e=u();a(1),D("width",e.width+"%")}}function Et(s,n){if(s&1){let e=U();p(0,"button",5),H("click",function(){V(e);let i=u();return z(i.remove())}),p(1,"span",6),T(2,"\xD7"),g()()}}function Rt(s,n){if(s&1&&(G(0),T(1),$()),s&2){let e=u(2);a(1),b("[",e.duplicatesCount+1,"]")}}function Nt(s,n){if(s&1&&(p(0,"div"),T(1),A(2,Rt,2,1,"ng-container",4),g()),s&2){let e=u();v(e.options.titleClass),O("aria-label",e.title),a(1),b(" ",e.title," "),a(1),r("ngIf",e.duplicatesCount)}}function jt(s,n){if(s&1&&M(0,"div",7),s&2){let e=u();v(e.options.messageClass),r("innerHTML",e.message,Z)}}function St(s,n){if(s&1&&(p(0,"div",8),T(1),g()),s&2){let e=u();v(e.options.messageClass),O("aria-label",e.message),a(1),b(" ",e.message," ")}}function Bt(s,n){if(s&1&&(p(0,"div"),M(1,"div",9),g()),s&2){let e=u();a(1),D("width",e.width+"%")}}var W=class{_attachedHost;component;viewContainerRef;injector;constructor(n,e){this.component=n,this.injector=e}attach(n,e){return this._attachedHost=n,n.attach(this,e)}detach(){let n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},X=class{_attachedPortal;_disposeFn;attach(n,e){return this._attachedPortal=n,this.attachComponentPortal(n,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}},tt=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new _;_activate=new _;_manualClose=new _;_resetTimeout=new _;_countDuplicate=new _;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,e){n&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}},x=class{toastId;config;message;title;toastType;toastRef;_onTap=new _;_onAction=new _;constructor(n,e,t,i,o,h){this.toastId=n,this.config=e,this.message=t,this.title=i,this.toastType=o,this.toastRef=h,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}},_t={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},Ct=new ct("ToastConfig"),et=class extends X{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,e,t){super(),this._hostDomElement=n,this._componentFactoryResolver=e,this._appRef=t}attachComponentPortal(n,e){let t=this._componentFactoryResolver.resolveComponentFactory(n.component),i;return i=t.create(n.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},Ft=(()=>{class s{_document=w(J);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}static \u0275fac=function(t){return new(t||s)};static \u0275prov=I({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),it=class{_portalHost;constructor(n){this._portalHost=n}attach(n,e=!0){return this._portalHost.attach(n,e)}detach(){return this._portalHost.detach()}},kt=(()=>{class s{_overlayContainer=w(Ft);_componentFactoryResolver=w(pt);_appRef=w(R);_document=w(J);_paneElements=new Map;create(e,t){return this._createOverlayRef(this.getPaneElement(e,t))}getPaneElement(e="",t){return this._paneElements.get(t)||this._paneElements.set(t,{}),this._paneElements.get(t)[e]||(this._paneElements.get(t)[e]=this._createPaneElement(e,t)),this._paneElements.get(t)[e]}_createPaneElement(e,t){let i=this._document.createElement("div");return i.id="toast-container",i.classList.add(e),i.classList.add("toast-container"),t?t.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(e){return new et(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new it(this._createPortalHost(e))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=I({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),S=(()=>{class s{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(e,t,i,o,h){this.overlay=t,this._injector=i,this.sanitizer=o,this.ngZone=h,this.toastrConfig=d(d({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=d(d({},e.default.iconClasses),e.config.iconClasses))}show(e,t,i={},o=""){return this._preBuildNotification(o,e,t,this.applyConfig(i))}success(e,t,i={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,e,t,this.applyConfig(i))}error(e,t,i={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,e,t,this.applyConfig(i))}info(e,t,i={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,e,t,this.applyConfig(i))}warning(e,t,i={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,e,t,this.applyConfig(i))}clear(e){for(let t of this.toasts)if(e!==void 0){if(t.toastId===e){t.toastRef.manualClose();return}}else t.toastRef.manualClose()}remove(e){let t=this._findToast(e);if(!t||(t.activeToast.toastRef.close(),this.toasts.splice(t.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(e="",t="",i,o){let{includeTitleDuplicates:h}=this.toastrConfig;for(let l of this.toasts){let c=h&&l.title===e;if((!h||c)&&l.message===t)return l.toastRef.onDuplicate(i,o),l}return null}applyConfig(e={}){return d(d({},this.toastrConfig),e)}_findToast(e){for(let t=0;t<this.toasts.length;t++)if(this.toasts[t].toastId===e)return{index:t,activeToast:this.toasts[t]};return null}_preBuildNotification(e,t,i,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(e,t,i,o)):this._buildNotification(e,t,i,o)}_buildNotification(e,t,i,o){if(!o.toastComponent)throw new Error("toastComponent required");let h=this.findDuplicate(i,t,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||t)&&this.toastrConfig.preventDuplicates&&h!==null)return h;this.previousToastMessage=t;let l=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(l=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let c=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let B=t;t&&o.enableHtml&&(B=this.sanitizer.sanitize(dt.HTML,t));let m=new tt(c),F=new x(this.index,o,B,i,e,m),bt=[{provide:x,useValue:F}],yt=E.create({providers:bt,parent:this._injector}),It=new W(o.toastComponent,yt),st=c.attach(It,o.newestOnTop);m.componentInstance=st.instance;let k={toastId:this.index,title:i||"",message:t||"",toastRef:m,onShown:m.afterActivate(),onHidden:m.afterClosed(),onTap:F.onTap(),onAction:F.onAction(),portal:st};return l||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{k.toastRef.activate()})),this.toasts.push(k),k}static \u0275fac=function(t){return new(t||s)(f(Ct),f(kt),f(E),f(vt),f(L))};static \u0275prov=I({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Pt=(()=>{class s{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if(this.state.value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(e,t,i){this.toastrService=e,this.toastPackage=t,this.ngZone=i,this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=`${t.toastType} ${t.config.toastClass}`,this.sub=t.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=t.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=t.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=t.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=y(d({},this.state),{value:"active"}),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width===0||this.width===100||!this.options.timeOut)return;let e=new Date().getTime(),t=this.hideTime-e;this.width=t/this.options.timeOut*100,this.options.progressAnimation==="increasing"&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=y(d({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state.value!=="removed"&&(clearTimeout(this.timeout),this.state=y(d({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state.value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state.value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state.value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,t){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),t)):this.timeout=setTimeout(()=>e(),t)}outsideInterval(e,t){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),t)):this.intervalId=setInterval(()=>e(),t)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}static \u0275fac=function(t){return new(t||s)(C(S),C(x),C(L))};static \u0275cmp=P({type:s,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,i){t&1&&H("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),t&2&&(mt("@flyInOut",i.state),v(i.toastClasses),D("display",i.displayStyle))},standalone:!0,features:[q],attrs:Tt,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(t,i){t&1&&A(0,xt,3,0,"button",0)(1,Dt,3,5,"div",1)(2,At,1,3,"div",2)(3,Mt,2,4,"div",3)(4,Ht,2,2,"div",4),t&2&&(r("ngIf",i.options.closeButton),a(1),r("ngIf",i.title),a(1),r("ngIf",i.message&&i.options.enableHtml),a(1),r("ngIf",i.message&&!i.options.enableHtml),a(1),r("ngIf",i.options.progressBar))},dependencies:[Y],encapsulation:2,data:{animation:[gt("flyInOut",[j("inactive",N({opacity:0})),j("active",N({opacity:1})),j("removed",N({opacity:0})),Q("inactive => active",K("{{ easeTime }}ms {{ easing }}")),Q("active => removed",K("{{ easeTime }}ms {{ easing }}"))])]}})}return s})(),Vt=y(d({},_t),{toastComponent:Pt}),zt=(s={})=>ht([{provide:Ct,useValue:{default:Vt,config:s}}]),ne=(()=>{class s{static forRoot(e={}){return{ngModule:s,providers:[zt(e)]}}static \u0275fac=function(t){return new(t||s)};static \u0275mod=ut({type:s});static \u0275inj=lt({})}return s})();var Zt=(()=>{class s{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";get displayStyle(){return this.state==="inactive"?"none":null}state="inactive";timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(e,t,i){this.toastrService=e,this.toastPackage=t,this.appRef=i,this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=`${t.toastType} ${t.config.toastClass}`,this.sub=t.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=t.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=t.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=t.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width===0||this.width===100||!this.options.timeOut)return;let e=new Date().getTime(),t=this.hideTime-e;this.width=t/this.options.timeOut*100,this.options.progressAnimation==="increasing"&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state!=="removed"&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(t){return new(t||s)(C(S),C(x),C(R))};static \u0275cmp=P({type:s,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(t,i){t&1&&H("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),t&2&&(v(i.toastClasses),D("display",i.displayStyle))},standalone:!0,features:[q],attrs:Tt,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(t,i){t&1&&A(0,Et,3,0,"button",0)(1,Nt,3,5,"div",1)(2,jt,1,3,"div",2)(3,St,2,4,"div",3)(4,Bt,2,2,"div",4),t&2&&(r("ngIf",i.options.closeButton),a(1),r("ngIf",i.title),a(1),r("ngIf",i.message&&i.options.enableHtml),a(1),r("ngIf",i.message&&!i.options.enableHtml),a(1),r("ngIf",i.options.progressBar))},dependencies:[Y],encapsulation:2})}return s})(),oe=y(d({},_t),{toastComponent:Zt});var ue=(()=>{let n=class n{constructor(t,i){this.http=t,this.toastr=i}get(t){return this.http.get(t).pipe(rt(i=>{let o=this.errorMessageHandling(i);return this.toastr.error(o.message!=""?o.message:"An unknown error has occured!",o.header),ot}))}post(t,i,o={},h=1e5){return new nt(l=>{this.http.post(t,i,o).pipe(at(h)).subscribe({next:c=>{l.next(c),l.complete()},error:c=>{if(c.status==200)l.next(c.error.text),l.complete();else{if(!this.unauthorizedErrorHandling(c)&&!Array.isArray(c?.error?.Message)){let m=this.errorMessageHandling(c);this.toastr.error(m.message!=""?m.message:"An unknown error has occured!",m.header,{enableHtml:!0})}l.error(c)}}})})}unauthorizedErrorHandling(t){let i=!1;return t.status==401&&(localStorage.getItem("Token")?window.location.href="/A/Unauthorized/Main/Unauthorized":window.location.href="/",i=!0),i}errorMessageHandling(t){let i="API Error",o="Exception Message";return t.error?(i="API Error - "+t.status,t.error.Message&&(t.error.Message.indexOf("Message")!=-1?o=JSON.parse(t.error.Message).Message:o=t.error.Message)):t.message&&(i="API Error - "+t.name,o=t.message),{header:i,message:o}}};n.\u0275fac=function(i){return new(i||n)(f(ft),f(S))},n.\u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"});let s=n;return s})();export{x as a,S as b,Pt as c,ne as d,ue as e};
|
package/Marketplace/index.html
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
<script>
|
|
18
18
|
(function () { var w = window; var ic = w.Intercom; if (typeof ic === "function") { ic('reattach_activator'); ic('update', w.intercomSettings); } else { var d = document; var i = function () { i.c(arguments); }; i.q = []; i.c = function (args) { i.q.push(args); }; w.Intercom = i; var l = function () { var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://widget.intercom.io/widget/xv1oomgl'; var x = d.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); }; if (w.attachEvent) { w.attachEvent('onload', l); } else { w.addEventListener('load', l, false); } } })();
|
|
19
19
|
</script>
|
|
20
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.
|
|
20
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/styles-ISUUHHCL.css"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-OYMJWISR.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-4PT4476L.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-XEVR4BVC.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-AG7HK2U3.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-L5URITG7.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-IEBL2FLF.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-ZPR2KAKZ.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-DLMJHJC2.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-NWCS6OKR.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-GV43X5PS.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-RWRP376T.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-OKO7WTOG.js"></head>
|
|
21
21
|
<body>
|
|
22
22
|
<app-root></app-root>
|
|
23
|
-
<script src="https://cdn.jsdelivr.net/npm/marketplacepos@3.
|
|
23
|
+
<script src="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/polyfills-STQSWRUI.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/scripts-M46NWPTC.js" defer></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/main-WKNVNRPA.js" type="module"></script></body>
|
|
24
24
|
</html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as F}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-TKW6MA5X.js";import{b as Be}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-CVIYGYJG.js";import{a as Ie,b as we,c as Fe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-TEIBLAW7.js";import{a as xe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-JD4NX6LL.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-I5WJTOZD.js";import{c as Te}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-EIQQEQMI.js";import{a as _e,b as ve,c as ye,d as Pe,e as Me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-DANZQU6U.js";import{f as He}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-Y4RCGXQK.js";import{p as Re}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-CNK2ETMZ.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-SZQIM5RM.js";import{$ as _,$b as ue,A as J,Ab as se,B as N,Bb as ae,C as Z,Dc as Oe,Ea as i,Ec as Se,Fa as f,Fc as De,G as E,Gc as T,J as K,Jc as Y,Ka as m,L as Q,Ma as $,Mb as ce,Na as a,Oa as s,Pa as b,Qa as D,S as L,Ta as y,Vb as le,W as ee,Wb as de,Ya as d,Yb as I,Za as p,Zb as pe,_ as P,_a as c,ba as S,bb as oe,cb as q,da as g,dc as ge,e as B,ea as v,fa as te,gb as A,ia as j,ib as l,ic as w,ja as U,jc as me,lc as fe,ma as k,mc as ke,nc as be,ob as M,pb as ie,q as R,qb as re,qc as Ce,rc as V,s as X,uc as C,vb as x,vc as he,wc as W,xa as ne,xc as G,y as H}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-WGNBD2TG.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-HPDCVTZM.js";function ze(e,o){e&1&&oe(0)}function Xe(e,o){if(e&1&&c(0,"sk-cube-grid",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}function Je(e,o){if(e&1&&c(0,"sk-chasing-dots",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}function Ze(e,o){if(e&1&&c(0,"sk-double-bounce",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}function Ke(e,o){if(e&1&&c(0,"sk-rotating-plane",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}function Qe(e,o){if(e&1&&c(0,"sk-spinner-pulse",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}function et(e,o){if(e&1&&c(0,"sk-three-bounce",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}function tt(e,o){if(e&1&&c(0,"sk-wandering-cubes",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}function nt(e,o){if(e&1&&c(0,"sk-wave",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}var ot=e=>({"background-color":e});function it(e,o){if(e&1&&(d(0,"div",1),y(1,ze,1,0,"ng-container",2)(2,Xe,1,1,"sk-cube-grid",3)(3,Je,1,1,"sk-chasing-dots",3)(4,Ze,1,1,"sk-double-bounce",3)(5,Ke,1,1,"sk-rotating-plane",3)(6,Qe,1,1,"sk-spinner-pulse",3)(7,et,1,1,"sk-three-bounce",3)(8,tt,1,1,"sk-wandering-cubes",3)(9,nt,1,1,"sk-wave",3),p()),e&2){let t=l();s("opacity",t.opacity),b("backdrop",t.backdrop),a("ngStyle",x(14,ot,t.backdrop?t.backdropBackgroundColor:"transparent")),i(1),a("ngComponentOutlet",t.entryComponent),i(1),a("ngIf",t.spinner===t.spinkit.skCubeGrid),i(1),a("ngIf",t.spinner===t.spinkit.skChasingDots),i(1),a("ngIf",t.spinner===t.spinkit.skDoubleBounce),i(1),a("ngIf",t.spinner===t.spinkit.skRotatingPlane),i(1),a("ngIf",t.spinner===t.spinkit.skSpinnerPulse),i(1),a("ngIf",t.spinner===t.spinkit.skThreeBounce),i(1),a("ngIf",t.spinner===t.spinkit.skWanderingCubes),i(1),a("ngIf",t.spinner===t.spinkit.skWave)}}var h=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=te({type:e,inputs:{backgroundColor:"backgroundColor"}}),e})(),rt=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-chasing-dots"]],features:[m],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(t,n){t&1&&(d(0,"div",0),c(1,"div",1)(2,"div",2),p()),t&2&&(b("colored",!n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),e})(),st=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-cube-grid"]],features:[m],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(t,n){t&1&&(d(0,"div",0),c(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),p()),t&2&&(b("colored",!n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]}),e})(),at=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-double-bounce"]],features:[m],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(t,n){t&1&&(d(0,"div",0),c(1,"div",1)(2,"div",2),p()),t&2&&(b("colored",!n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),e})(),ct=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-rotating-plane"]],features:[m],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(t,n){t&1&&c(0,"div",0),t&2&&s("background-color",n.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),e})(),lt=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-spinner-pulse"]],features:[m],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(t,n){t&1&&c(0,"div",0),t&2&&s("background-color",n.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),e})(),dt=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-three-bounce"]],features:[m],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(t,n){t&1&&(d(0,"div",0),c(1,"div",1)(2,"div",2)(3,"div",3),p()),t&2&&(b("colored",!n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),e})(),pt=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-wandering-cubes"]],features:[m],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(t,n){t&1&&(d(0,"div",0),c(1,"div",1)(2,"div",2),p()),t&2&&(b("colored",!n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]}),e})(),ut=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-wave"]],features:[m],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(t,n){t&1&&(d(0,"div",0),c(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),p()),t&2&&(b("colored",!n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),e})(),Ne={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};var z=(()=>{class e{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new B(1),this._filteredUrlPatterns=[],this._filteredMethods=[],this._filteredHeaders=[],this._forceByPass=!1}get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequests(){return this._pendingRequests}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(t){this._filteredMethods=t}set filteredHeaders(t){this._filteredHeaders=t}set forceByPass(t){this._forceByPass=t}shouldBypassUrl(t){return this._filteredUrlPatterns.some(n=>n.test(t))}shouldBypassMethod(t){return this._filteredMethods.some(n=>n.toUpperCase()===t.method.toUpperCase())}shouldBypassHeader(t){return this._filteredHeaders.some(n=>t.headers.has(n))}shouldBypass(t){return this._forceByPass||this.shouldBypassUrl(t.urlWithParams)||this.shouldBypassMethod(t)||this.shouldBypassHeader(t)}intercept(t,n){let r=this.shouldBypass(t);return r||(this._pendingRequests++,this._pendingRequests===1&&this._pendingRequestsStatus$.next(!0)),n.handle(t).pipe(Q(()=>{r||(this._pendingRequests--,this._pendingRequests===0&&this._pendingRequestsStatus$.next(!1))}))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),gt=[{provide:w,useExisting:z,multi:!0}],mt=(()=>{class e{constructor(t){this.pendingRequestsInterceptor=t,this._visibility$=new B(1)}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptor.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptor.forceByPass=!1}}return e.\u0275fac=function(t){return new(t||e)(S(z))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ee=(()=>{class e{constructor(t,n){this.pendingRequestsInterceptor=t,this.spinnerVisibility=n,this.spinkit=Ne,this.visibleUntil=Date.now(),this.backdrop=!0,this.debounceDelay=0,this.entryComponent=null,this.extraDuration=0,this.filteredHeaders=[],this.filteredMethods=[],this.filteredUrlPatterns=[],this.minDuration=0,this.opacity=".7",this.backdropBackgroundColor="#f1f1f1",this.spinner=Ne.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){let[t,n]=Z(this.pendingRequestsInterceptor.pendingRequestsStatus$,r=>r);this.isVisible$=J(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe(L(()=>t.pipe(E(()=>H(this.debounceDelay))))),t.pipe(L(()=>n.pipe(E(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(K(),ee(r=>this.updateExpirationDelay(r)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(t=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(t)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(t){t&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return H(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return e.\u0275fac=function(t){return new(t||e)(f(z),f(mt))},e.\u0275cmp=g({type:e,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(t,n){t&1&&(y(0,it,10,16,"div",0),se(1,"async")),t&2&&a("ngIf",ae(1,1,n.isVisible$))},dependencies:[de,I,pe,st,rt,at,ct,lt,dt,pt,ut,ue],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]}),e})(),Le=(()=>{class e{static forRoot(){return{ngModule:e,providers:[gt]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=v({type:e}),e.\u0275inj=_({imports:[ge]}),e})();var kt=[{path:"",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-ENUKURHL.js").then(e=>e.LoginModule)},{path:"menu",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-RUG3NZNS.js").then(e=>e.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}],je=(()=>{let o=class o{};o.\u0275fac=function(r){return new(r||o)},o.\u0275mod=v({type:o}),o.\u0275inj=_({imports:[Y.forRoot(kt,{}),Y]});let e=o;return e})();var Ue=(()=>{let o=class o{constructor(n,r,u){this._router=n,this.titleService=r,this.activatedRoute=u}ngOnInit(){this.overrideDateToJsonFunction(),this._router.events.pipe(N(n=>n instanceof Oe)).pipe(R(()=>this.activatedRoute),R(n=>{for(;n.firstChild;)n=n.firstChild;return n}),N(n=>n.outlet==="primary"),X(n=>n.data)).subscribe(n=>{let r=" | Marketplace";n.title=="Dealpos x Marketplace"&&(r=""),this.titleService.setTitle(n.title+r)})}overrideDateToJsonFunction(){Date.prototype.toJSON=function(){return this.getFullYear()+"-"+n(this.getMonth()+1)+"-"+n(this.getDate())+"T"+n(this.getHours())+":"+n(this.getMinutes())+":"+n(this.getSeconds())+".000"};function n(r){return r<10?"0"+r:r}}};o.\u0275fac=function(r){return new(r||o)(f(T),f(be),f(Se))},o.\u0275cmp=g({type:o,selectors:[["app-root"]],decls:2,vars:0,template:function(r,u){r&1&&c(0,"router-outlet")(1,"ng-http-loader")},dependencies:[De,Ee]});let e=o;return e})();var $e=(()=>{let o=class o{constructor(n){this._router=n}intercept(n,r){let u=JSON.parse(window.localStorage.getItem("user")),We=new Date;if(u!=null){let Ge=new Date(u.Token.expiredAt);We<Ge?n=n.clone({setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${u.Token.access_token}`}}):n=n.clone({setHeaders:{"Content-Type":"application/json"}})}else n=n.clone({setHeaders:{"Content-Type":"application/json"}});return r.handle(n)}};o.\u0275fac=function(r){return new(r||o)(S(T))},o.\u0275prov=P({token:o,factory:o.\u0275fac});let e=o;return e})();var ht=["custom-toast-component",""];function _t(e,o){if(e&1){let t=q();d(0,"a",10),A("click",function(){j(t);let r=l(2);return U(r.remove())}),M(1," x "),p()}}function vt(e,o){if(e&1&&(d(0,"div",6)(1,"div",7)(2,"div")(3,"h4"),M(4),p()()(),d(5,"div",8),y(6,_t,2,0,"a",9),p()()),e&2){let t=l();s("display",t.state.value==="inactive"?"none":""),i(2),D(t.options.titleClass),$("aria-label",t.title),i(2),ie(t.title),i(2),a("ngIf",t.options.closeButton)}}var qe=e=>({notitle:e});function yt(e,o){if(e&1&&c(0,"div",11),e&2){let t=l();D(t.options.messageClass),a("ngClass",x(4,qe,t.title==null))("innerHTML",t.message,ne)}}function Pt(e,o){if(e&1&&(d(0,"div",12),M(1),p()),e&2){let t=l();D(t.options.messageClass),a("ngClass",x(5,qe,t.title==null)),$("aria-label",t.message),i(1),re(" ",t.message," ")}}function Mt(e,o){if(e&1){let t=q();d(0,"a",10),A("click",function(){j(t);let r=l();return U(r.remove())}),M(1," x "),p()}}function xt(e,o){if(e&1&&(d(0,"div"),c(1,"div",13),p()),e&2){let t=l();i(1),s("width",t.width+"%")}}var Ae=(()=>{let o=class o extends ye{constructor(n,r){super(n,r),this.toastrService=n,this.toastPackage=r}ngOnInit(){}action(n){return n.stopPropagation(),this.toastPackage.triggerAction(),!1}};o.\u0275fac=function(r){return new(r||o)(f(ve),f(_e))},o.\u0275cmp=g({type:o,selectors:[["","custom-toast-component",""]],features:[m],attrs:ht,decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","toast-body","role","alert","aria-live","polite",3,"ngClass","class","innerHTML",4,"ngIf"],["class","toast-body","role","alert","aria-live","polite",3,"ngClass","class",4,"ngIf"],["class","btn toast-close-button btn-sm ",3,"click",4,"ngIf"],[4,"ngIf"],[1,"row","toast-header"],[1,"col-9","g-0"],[1,"col-auto","mt-5","pe-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"toast-body",3,"ngClass","innerHTML"],["role","alert","aria-live","polite",1,"toast-body",3,"ngClass"],[1,"toast-progress"]],template:function(r,u){r&1&&(d(0,"div",0),y(1,vt,7,7,"div",1)(2,yt,1,6,"div",2)(3,Pt,2,7,"div",3)(4,Mt,2,0,"a",4)(5,xt,2,2,"div",5),p()),r&2&&(i(1),a("ngIf",u.title),i(1),a("ngIf",u.message&&u.options.enableHtml),i(1),a("ngIf",u.message&&!u.options.enableHtml),i(1),a("ngIf",u.options.closeButton&&u.title==null),i(1),a("ngIf",u.options.progressBar))},dependencies:[le,I],styles:["[_nghost-%COMP%]{background-color:#fff;position:relative;overflow:hidden;margin:0 0 6px;width:300px;border-radius:3px;color:#141414;pointer-events:all;cursor:pointer}.toast-success[_nghost-%COMP%]{border:1.8px solid rgb(81,163,81)}.toast-info[_nghost-%COMP%]{border:1.8px solid rgb(47,150,180)}.toast-error[_nghost-%COMP%]{border:1.8px solid rgb(189,54,47)}.toast-warning[_nghost-%COMP%]{border:1.8px solid rgb(248,148,6)}.toast-case[_ngcontent-%COMP%]{margin-left:0}.toast-header[_ngcontent-%COMP%]{background-clip:padding-box;border-bottom:solid;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right:0;margin-left:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding-top:.6rem}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button-custom[_ngcontent-%COMP%]{right:.2em!important;top:-1.3em!important}.toast-close-button-notitle[_ngcontent-%COMP%]{right:.1em!important;top:-1.3em!important}"],data:{animation:[Ce("flyInOut",[he("inactive",C({opacity:0})),G("inactive => active",V("400ms ease-out",W([C({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),C({transform:"skewX(20deg)",opacity:1}),C({transform:"skewX(-5deg)",opacity:1}),C({transform:"none",opacity:1})]))),G("active => removed",V("400ms ease-out",W([C({opacity:1}),C({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}});let e=o;return e})();var Ot={name:"MarketplaceDB",version:1,objectStoresMeta:[{store:"Categories",storeConfig:{keyPath:null,autoIncrement:!1},storeSchema:[]}]},Ve=(()=>{let o=class o{};o.\u0275fac=function(r){return new(r||o)},o.\u0275mod=v({type:o,bootstrap:[Ue]}),o.\u0275inj=_({providers:[{provide:w,useClass:$e,multi:!0},{provide:He,useValue:{subscriptSizing:"dynamic"}},Me,xe,{provide:ce,useFactory:n=>function(){n.loadPermissions()},deps:[Fe],multi:!0}],imports:[ke,je,Re,Pe.forRoot({toastComponent:Ae,positionClass:"toast-bottom-right",closeButton:!0}),me,Be.forRoot(Ot),Le.forRoot(),Ie.initializeApp(F.firebaseConfig),we,Te.forRoot()]});let e=o;return e})();F.production&&void 0;fe().bootstrapModule(Ve).catch(e=>console.error(e));
|
|
1
|
+
import{a as F}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-OYMJWISR.js";import{b as Be}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-4PT4476L.js";import{a as Ie,b as we,c as Fe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-XEVR4BVC.js";import{a as xe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-AG7HK2U3.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-L5URITG7.js";import{c as Te}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-IEBL2FLF.js";import{a as _e,b as ve,c as ye,d as Pe,e as Me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-ZPR2KAKZ.js";import{f as He}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-DLMJHJC2.js";import{p as Re}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-NWCS6OKR.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-GV43X5PS.js";import{$ as _,A as J,B as N,Bb as se,C as Z,Cb as ae,Ea as i,Ec as Oe,Fa as f,Fc as Se,G as E,Gc as De,Hc as T,J as K,Ka as m,Kc as Y,L as Q,Ma as $,Na as a,Nb as ce,Oa as s,Pa as b,Qa as D,S as L,Ta as y,W as ee,Wb as le,Xb as de,Ya as d,Za as p,Zb as I,_ as P,_a as c,_b as pe,ac as ue,ba as S,bb as oe,cb as q,da as g,e as B,ea as v,ec as ge,fa as te,gb as A,ia as j,ib as l,ja as U,jc as w,kc as me,ma as k,mc as fe,nc as ke,ob as M,oc as be,pb as ie,q as R,qb as re,rc as Ce,s as X,sc as V,vb as x,vc as C,wc as he,xa as ne,xc as W,y as H,yc as G}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-RWRP376T.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-OKO7WTOG.js";function ze(e,o){e&1&&oe(0)}function Xe(e,o){if(e&1&&c(0,"sk-cube-grid",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}function Je(e,o){if(e&1&&c(0,"sk-chasing-dots",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}function Ze(e,o){if(e&1&&c(0,"sk-double-bounce",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}function Ke(e,o){if(e&1&&c(0,"sk-rotating-plane",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}function Qe(e,o){if(e&1&&c(0,"sk-spinner-pulse",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}function et(e,o){if(e&1&&c(0,"sk-three-bounce",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}function tt(e,o){if(e&1&&c(0,"sk-wandering-cubes",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}function nt(e,o){if(e&1&&c(0,"sk-wave",4),e&2){let t=l(2);a("backgroundColor",t.backgroundColor)}}var ot=e=>({"background-color":e});function it(e,o){if(e&1&&(d(0,"div",1),y(1,ze,1,0,"ng-container",2)(2,Xe,1,1,"sk-cube-grid",3)(3,Je,1,1,"sk-chasing-dots",3)(4,Ze,1,1,"sk-double-bounce",3)(5,Ke,1,1,"sk-rotating-plane",3)(6,Qe,1,1,"sk-spinner-pulse",3)(7,et,1,1,"sk-three-bounce",3)(8,tt,1,1,"sk-wandering-cubes",3)(9,nt,1,1,"sk-wave",3),p()),e&2){let t=l();s("opacity",t.opacity),b("backdrop",t.backdrop),a("ngStyle",x(14,ot,t.backdrop?t.backdropBackgroundColor:"transparent")),i(1),a("ngComponentOutlet",t.entryComponent),i(1),a("ngIf",t.spinner===t.spinkit.skCubeGrid),i(1),a("ngIf",t.spinner===t.spinkit.skChasingDots),i(1),a("ngIf",t.spinner===t.spinkit.skDoubleBounce),i(1),a("ngIf",t.spinner===t.spinkit.skRotatingPlane),i(1),a("ngIf",t.spinner===t.spinkit.skSpinnerPulse),i(1),a("ngIf",t.spinner===t.spinkit.skThreeBounce),i(1),a("ngIf",t.spinner===t.spinkit.skWanderingCubes),i(1),a("ngIf",t.spinner===t.spinkit.skWave)}}var h=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=te({type:e,inputs:{backgroundColor:"backgroundColor"}}),e})(),rt=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-chasing-dots"]],features:[m],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(t,n){t&1&&(d(0,"div",0),c(1,"div",1)(2,"div",2),p()),t&2&&(b("colored",!n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),e})(),st=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-cube-grid"]],features:[m],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(t,n){t&1&&(d(0,"div",0),c(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),p()),t&2&&(b("colored",!n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]}),e})(),at=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-double-bounce"]],features:[m],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(t,n){t&1&&(d(0,"div",0),c(1,"div",1)(2,"div",2),p()),t&2&&(b("colored",!n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),e})(),ct=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-rotating-plane"]],features:[m],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(t,n){t&1&&c(0,"div",0),t&2&&s("background-color",n.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),e})(),lt=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-spinner-pulse"]],features:[m],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(t,n){t&1&&c(0,"div",0),t&2&&s("background-color",n.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),e})(),dt=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-three-bounce"]],features:[m],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(t,n){t&1&&(d(0,"div",0),c(1,"div",1)(2,"div",2)(3,"div",3),p()),t&2&&(b("colored",!n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),e})(),pt=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-wandering-cubes"]],features:[m],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(t,n){t&1&&(d(0,"div",0),c(1,"div",1)(2,"div",2),p()),t&2&&(b("colored",!n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]}),e})(),ut=(()=>{class e extends h{}return e.\u0275fac=(()=>{let o;return function(n){return(o||(o=k(e)))(n||e)}})(),e.\u0275cmp=g({type:e,selectors:[["sk-wave"]],features:[m],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(t,n){t&1&&(d(0,"div",0),c(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),p()),t&2&&(b("colored",!n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor),i(1),s("background-color",n.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),e})(),Ne={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};var z=(()=>{class e{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new B(1),this._filteredUrlPatterns=[],this._filteredMethods=[],this._filteredHeaders=[],this._forceByPass=!1}get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequests(){return this._pendingRequests}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(t){this._filteredMethods=t}set filteredHeaders(t){this._filteredHeaders=t}set forceByPass(t){this._forceByPass=t}shouldBypassUrl(t){return this._filteredUrlPatterns.some(n=>n.test(t))}shouldBypassMethod(t){return this._filteredMethods.some(n=>n.toUpperCase()===t.method.toUpperCase())}shouldBypassHeader(t){return this._filteredHeaders.some(n=>t.headers.has(n))}shouldBypass(t){return this._forceByPass||this.shouldBypassUrl(t.urlWithParams)||this.shouldBypassMethod(t)||this.shouldBypassHeader(t)}intercept(t,n){let r=this.shouldBypass(t);return r||(this._pendingRequests++,this._pendingRequests===1&&this._pendingRequestsStatus$.next(!0)),n.handle(t).pipe(Q(()=>{r||(this._pendingRequests--,this._pendingRequests===0&&this._pendingRequestsStatus$.next(!1))}))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),gt=[{provide:w,useExisting:z,multi:!0}],mt=(()=>{class e{constructor(t){this.pendingRequestsInterceptor=t,this._visibility$=new B(1)}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptor.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptor.forceByPass=!1}}return e.\u0275fac=function(t){return new(t||e)(S(z))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ee=(()=>{class e{constructor(t,n){this.pendingRequestsInterceptor=t,this.spinnerVisibility=n,this.spinkit=Ne,this.visibleUntil=Date.now(),this.backdrop=!0,this.debounceDelay=0,this.entryComponent=null,this.extraDuration=0,this.filteredHeaders=[],this.filteredMethods=[],this.filteredUrlPatterns=[],this.minDuration=0,this.opacity=".7",this.backdropBackgroundColor="#f1f1f1",this.spinner=Ne.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){let[t,n]=Z(this.pendingRequestsInterceptor.pendingRequestsStatus$,r=>r);this.isVisible$=J(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe(L(()=>t.pipe(E(()=>H(this.debounceDelay))))),t.pipe(L(()=>n.pipe(E(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(K(),ee(r=>this.updateExpirationDelay(r)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(t=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(t)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(t){t&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return H(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return e.\u0275fac=function(t){return new(t||e)(f(z),f(mt))},e.\u0275cmp=g({type:e,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(t,n){t&1&&(y(0,it,10,16,"div",0),se(1,"async")),t&2&&a("ngIf",ae(1,1,n.isVisible$))},dependencies:[de,I,pe,st,rt,at,ct,lt,dt,pt,ut,ue],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]}),e})(),Le=(()=>{class e{static forRoot(){return{ngModule:e,providers:[gt]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=v({type:e}),e.\u0275inj=_({imports:[ge]}),e})();var kt=[{path:"",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-XTLLDXB7.js").then(e=>e.LoginModule)},{path:"menu",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-RWEMXJWP.js").then(e=>e.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}],je=(()=>{let o=class o{};o.\u0275fac=function(r){return new(r||o)},o.\u0275mod=v({type:o}),o.\u0275inj=_({imports:[Y.forRoot(kt,{}),Y]});let e=o;return e})();var Ue=(()=>{let o=class o{constructor(n,r,u){this._router=n,this.titleService=r,this.activatedRoute=u}ngOnInit(){this.overrideDateToJsonFunction(),this._router.events.pipe(N(n=>n instanceof Oe)).pipe(R(()=>this.activatedRoute),R(n=>{for(;n.firstChild;)n=n.firstChild;return n}),N(n=>n.outlet==="primary"),X(n=>n.data)).subscribe(n=>{let r=" | Marketplace";n.title=="Dealpos x Marketplace"&&(r=""),this.titleService.setTitle(n.title+r)})}overrideDateToJsonFunction(){Date.prototype.toJSON=function(){return this.getFullYear()+"-"+n(this.getMonth()+1)+"-"+n(this.getDate())+"T"+n(this.getHours())+":"+n(this.getMinutes())+":"+n(this.getSeconds())+".000"};function n(r){return r<10?"0"+r:r}}};o.\u0275fac=function(r){return new(r||o)(f(T),f(be),f(Se))},o.\u0275cmp=g({type:o,selectors:[["app-root"]],decls:2,vars:0,template:function(r,u){r&1&&c(0,"router-outlet")(1,"ng-http-loader")},dependencies:[De,Ee]});let e=o;return e})();var $e=(()=>{let o=class o{constructor(n){this._router=n}intercept(n,r){let u=JSON.parse(window.localStorage.getItem("user")),We=new Date;if(u!=null){let Ge=new Date(u.Token.expiredAt);We<Ge?n=n.clone({setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${u.Token.access_token}`}}):n=n.clone({setHeaders:{"Content-Type":"application/json"}})}else n=n.clone({setHeaders:{"Content-Type":"application/json"}});return r.handle(n)}};o.\u0275fac=function(r){return new(r||o)(S(T))},o.\u0275prov=P({token:o,factory:o.\u0275fac});let e=o;return e})();var ht=["custom-toast-component",""];function _t(e,o){if(e&1){let t=q();d(0,"a",10),A("click",function(){j(t);let r=l(2);return U(r.remove())}),M(1," x "),p()}}function vt(e,o){if(e&1&&(d(0,"div",6)(1,"div",7)(2,"div")(3,"h4"),M(4),p()()(),d(5,"div",8),y(6,_t,2,0,"a",9),p()()),e&2){let t=l();s("display",t.state.value==="inactive"?"none":""),i(2),D(t.options.titleClass),$("aria-label",t.title),i(2),ie(t.title),i(2),a("ngIf",t.options.closeButton)}}var qe=e=>({notitle:e});function yt(e,o){if(e&1&&c(0,"div",11),e&2){let t=l();D(t.options.messageClass),a("ngClass",x(4,qe,t.title==null))("innerHTML",t.message,ne)}}function Pt(e,o){if(e&1&&(d(0,"div",12),M(1),p()),e&2){let t=l();D(t.options.messageClass),a("ngClass",x(5,qe,t.title==null)),$("aria-label",t.message),i(1),re(" ",t.message," ")}}function Mt(e,o){if(e&1){let t=q();d(0,"a",10),A("click",function(){j(t);let r=l();return U(r.remove())}),M(1," x "),p()}}function xt(e,o){if(e&1&&(d(0,"div"),c(1,"div",13),p()),e&2){let t=l();i(1),s("width",t.width+"%")}}var Ae=(()=>{let o=class o extends ye{constructor(n,r){super(n,r),this.toastrService=n,this.toastPackage=r}ngOnInit(){}action(n){return n.stopPropagation(),this.toastPackage.triggerAction(),!1}};o.\u0275fac=function(r){return new(r||o)(f(ve),f(_e))},o.\u0275cmp=g({type:o,selectors:[["","custom-toast-component",""]],features:[m],attrs:ht,decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","toast-body","role","alert","aria-live","polite",3,"ngClass","class","innerHTML",4,"ngIf"],["class","toast-body","role","alert","aria-live","polite",3,"ngClass","class",4,"ngIf"],["class","btn toast-close-button btn-sm ",3,"click",4,"ngIf"],[4,"ngIf"],[1,"row","toast-header"],[1,"col-9","g-0"],[1,"col-auto","mt-5","pe-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"toast-body",3,"ngClass","innerHTML"],["role","alert","aria-live","polite",1,"toast-body",3,"ngClass"],[1,"toast-progress"]],template:function(r,u){r&1&&(d(0,"div",0),y(1,vt,7,7,"div",1)(2,yt,1,6,"div",2)(3,Pt,2,7,"div",3)(4,Mt,2,0,"a",4)(5,xt,2,2,"div",5),p()),r&2&&(i(1),a("ngIf",u.title),i(1),a("ngIf",u.message&&u.options.enableHtml),i(1),a("ngIf",u.message&&!u.options.enableHtml),i(1),a("ngIf",u.options.closeButton&&u.title==null),i(1),a("ngIf",u.options.progressBar))},dependencies:[le,I],styles:["[_nghost-%COMP%]{background-color:#fff;position:relative;overflow:hidden;margin:0 0 6px;width:300px;border-radius:3px;color:#141414;pointer-events:all;cursor:pointer}.toast-success[_nghost-%COMP%]{border:1.8px solid rgb(81,163,81)}.toast-info[_nghost-%COMP%]{border:1.8px solid rgb(47,150,180)}.toast-error[_nghost-%COMP%]{border:1.8px solid rgb(189,54,47)}.toast-warning[_nghost-%COMP%]{border:1.8px solid rgb(248,148,6)}.toast-case[_ngcontent-%COMP%]{margin-left:0}.toast-header[_ngcontent-%COMP%]{background-clip:padding-box;border-bottom:solid;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right:0;margin-left:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding-top:.6rem}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button-custom[_ngcontent-%COMP%]{right:.2em!important;top:-1.3em!important}.toast-close-button-notitle[_ngcontent-%COMP%]{right:.1em!important;top:-1.3em!important}"],data:{animation:[Ce("flyInOut",[he("inactive",C({opacity:0})),G("inactive => active",V("400ms ease-out",W([C({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),C({transform:"skewX(20deg)",opacity:1}),C({transform:"skewX(-5deg)",opacity:1}),C({transform:"none",opacity:1})]))),G("active => removed",V("400ms ease-out",W([C({opacity:1}),C({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}});let e=o;return e})();var Ot={name:"MarketplaceDB",version:1,objectStoresMeta:[{store:"Categories",storeConfig:{keyPath:null,autoIncrement:!1},storeSchema:[]}]},Ve=(()=>{let o=class o{};o.\u0275fac=function(r){return new(r||o)},o.\u0275mod=v({type:o,bootstrap:[Ue]}),o.\u0275inj=_({providers:[{provide:w,useClass:$e,multi:!0},{provide:He,useValue:{subscriptSizing:"dynamic"}},Me,xe,{provide:ce,useFactory:n=>function(){n.loadPermissions()},deps:[Fe],multi:!0}],imports:[ke,je,Re,Pe.forRoot({toastComponent:Ae,positionClass:"toast-bottom-right",closeButton:!0}),me,Be.forRoot(Ot),Le.forRoot(),Ie.initializeApp(F.firebaseConfig),we,Te.forRoot()]});let e=o;return e})();F.production&&void 0;fe().bootstrapModule(Ve).catch(e=>console.error(e));
|
|
Binary file
|
|
Binary file
|