marketplacepos 3.4.2 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/3rdpartylicenses.txt +5 -0
- package/Marketplace/{chunk-7O2LUPOW.js → chunk-266DSHGO.js} +1 -1
- package/Marketplace/{chunk-DH7A3MMY.js → chunk-2FIOSKRJ.js} +1 -1
- package/Marketplace/{chunk-I5WJTOZD.js → chunk-2NSPG6VQ.js} +1 -1
- package/Marketplace/{chunk-VJLQRARA.js → chunk-3EZXX4SY.js} +1 -1
- package/Marketplace/{chunk-KHQYY4CP.js → chunk-3H6SWWM2.js} +1 -1
- package/Marketplace/{chunk-QXKJ6AH2.js → chunk-3KDFTXQM.js} +1 -1
- package/Marketplace/{chunk-5LIHLHZ2.js → chunk-3S4B7FJG.js} +1 -1
- package/Marketplace/{chunk-IKBHUDBF.js → chunk-3URAANI6.js} +1 -1
- package/Marketplace/{chunk-CB54UHPH.js → chunk-3UYUXGVK.js} +1 -1
- package/Marketplace/{chunk-QZHSCJJ5.js → chunk-4FXEREAP.js} +1 -1
- package/Marketplace/chunk-4PPU4SZR.js +1 -0
- package/Marketplace/{chunk-X6OLODND.js → chunk-5A74K34K.js} +2 -2
- package/Marketplace/{chunk-CVIYGYJG.js → chunk-5BFBDU4Y.js} +1 -1
- package/Marketplace/{chunk-CLLCMDP4.js → chunk-5FWZE3M6.js} +1 -1
- package/Marketplace/{chunk-LUN7S6P4.js → chunk-6ORFYERF.js} +1 -1
- package/Marketplace/{chunk-BJCKTMTZ.js → chunk-6R23WA5G.js} +1 -1
- package/Marketplace/{chunk-TEIBLAW7.js → chunk-75KTCVZF.js} +2 -2
- package/Marketplace/{chunk-DANZQU6U.js → chunk-A6HOOHGI.js} +1 -1
- package/Marketplace/{chunk-6H6S75XM.js → chunk-BFSIXPYE.js} +1 -1
- package/Marketplace/{chunk-HO6I7ZN6.js → chunk-BNL5KXTW.js} +1 -1
- package/Marketplace/{chunk-GPNYP6CI.js → chunk-CGWBESJR.js} +1 -1
- package/Marketplace/chunk-CIUA5X4L.js +39 -0
- package/Marketplace/{chunk-Y4RCGXQK.js → chunk-CMHF5RTN.js} +1 -1
- package/Marketplace/{chunk-4ZIFLVEZ.js → chunk-CQY6SBLJ.js} +1 -1
- package/Marketplace/{chunk-EGVKBYT5.js → chunk-D7MTVAUX.js} +1 -1
- package/Marketplace/{chunk-LHYUY4OW.js → chunk-EV36IP6L.js} +1 -1
- package/Marketplace/chunk-F3YY7P47.js +1 -0
- package/Marketplace/{chunk-HMATF4RH.js → chunk-F55Q67A4.js} +1 -1
- package/Marketplace/{chunk-JD4NX6LL.js → chunk-FHIDET6K.js} +1 -1
- package/Marketplace/{chunk-APSB364O.js → chunk-FKBDMXZF.js} +1 -1
- package/Marketplace/{chunk-XG47KOUR.js → chunk-FVAPOGDC.js} +1 -1
- package/Marketplace/{chunk-OHLIZGJ7.js → chunk-G5PYEJ6I.js} +1 -1
- package/Marketplace/{chunk-VLWVI7LT.js → chunk-G6FQOKR3.js} +1 -1
- package/Marketplace/{chunk-EBAG6BIX.js → chunk-GJLYUWSL.js} +1 -1
- package/Marketplace/{chunk-HIQEVY5J.js → chunk-GUDIOT6F.js} +1 -1
- package/Marketplace/{chunk-3FA5VSAY.js → chunk-IHMSIZQP.js} +1 -1
- package/Marketplace/{chunk-CNK2ETMZ.js → chunk-IKMQT2F2.js} +1 -1
- package/Marketplace/{chunk-LC5NUVMA.js → chunk-KJQHDPO2.js} +1 -1
- package/Marketplace/{chunk-TKW6MA5X.js → chunk-KLMICCVJ.js} +1 -1
- package/Marketplace/{chunk-OGA3XTQE.js → chunk-KSOIRHFB.js} +1 -1
- package/Marketplace/{chunk-EIQQEQMI.js → chunk-KTTSCH5B.js} +1 -1
- package/Marketplace/{chunk-ENUKURHL.js → chunk-L73KNYMB.js} +1 -1
- package/Marketplace/{chunk-WT7HH4UV.js → chunk-LKBZC32T.js} +1 -1
- package/Marketplace/{chunk-TFM4P7KH.js → chunk-NGLKNAAE.js} +1 -1
- package/Marketplace/{chunk-KS42UW22.js → chunk-NHFS3EQL.js} +1 -1
- package/Marketplace/{chunk-FJAD3LVA.js → chunk-NVLJ23H4.js} +1 -1
- package/Marketplace/{chunk-45BCCCD5.js → chunk-NWWR3K33.js} +1 -1
- package/Marketplace/{chunk-H5BAFHZZ.js → chunk-OVHULOR3.js} +1 -1
- package/Marketplace/{chunk-PASXSTSS.js → chunk-PMCLVNMY.js} +1 -1
- package/Marketplace/{chunk-WGNBD2TG.js → chunk-QMFPH7XZ.js} +5 -5
- package/Marketplace/{chunk-WAE5XPQ6.js → chunk-QS23P4G5.js} +1 -1
- package/Marketplace/{chunk-WL3GCHJ5.js → chunk-QUDJWHMB.js} +1 -1
- package/Marketplace/{chunk-XNEL4SD6.js → chunk-R56RSI2V.js} +1 -1
- package/Marketplace/{chunk-MPXURNR4.js → chunk-RBJQ6EI6.js} +1 -1
- package/Marketplace/{chunk-2PR23CRN.js → chunk-RHYOB3FA.js} +1 -1
- package/Marketplace/{chunk-JDAC3DI7.js → chunk-SUBRCXIB.js} +1 -1
- package/Marketplace/{chunk-Q27U6EXR.js → chunk-TGSKHOI4.js} +1 -1
- package/Marketplace/{chunk-NLUIK3SD.js → chunk-TXVLR2RN.js} +1 -1
- package/Marketplace/{chunk-CAF3EESF.js → chunk-VMNROKIK.js} +1 -1
- package/Marketplace/{chunk-4FIQ677Y.js → chunk-VPHHTNUD.js} +1 -1
- package/Marketplace/chunk-VPZ3M3XI.js +1 -0
- package/Marketplace/{chunk-QA6BHZKW.js → chunk-VVGZ7KQX.js} +1 -1
- package/Marketplace/{chunk-NQ5YXCPF.js → chunk-W5JLE65X.js} +1 -1
- package/Marketplace/{chunk-RUG3NZNS.js → chunk-WX2VXA4V.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-MTBOIFWC.js → main-FFSPLMLV.js} +1 -1
- package/Marketplace/media/color-3LUHUBGQ.png +0 -0
- package/Marketplace/media/hue-RMMBQOAC.png +0 -0
- package/Marketplace/styles-VIFLB3RD.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-2IH2MGS7.js} +0 -0
- /package/Marketplace/{chunk-DILTMQOY.js → chunk-3C4XDMT2.js} +0 -0
- /package/Marketplace/{chunk-SZQIM5RM.js → chunk-GWMLSBG4.js} +0 -0
- /package/Marketplace/{chunk-4YO3BZ5L.js → chunk-MNDH6U5G.js} +0 -0
- /package/Marketplace/{chunk-HPDCVTZM.js → chunk-T6GUYLRX.js} +0 -0
- /package/Marketplace/{polyfills-WRDNL3NI.js → polyfills-HTM62PZX.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as be}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-MPXURNR4.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-H5BAFHZZ.js";import{a as ue}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-TKW6MA5X.js";import{b as ke}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-X6OLODND.js";import{a as _e}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-WL3GCHJ5.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-CVIYGYJG.js";import{a as se}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-EBAG6BIX.js";import{b as Te}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-6H6S75XM.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-7G5B67SI.js";import{a as C}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-DILTMQOY.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-APSB364O.js";import{c as Se}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-45BCCCD5.js";import{g as Ee}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-GPNYP6CI.js";import{c as De}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-LUN7S6P4.js";import{b as ge,c as fe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-EIQQEQMI.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-DANZQU6U.js";import{c as ye}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-LC5NUVMA.js";import{b as Pe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-FJAD3LVA.js";import{h as we}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-Y4RCGXQK.js";import{d as he}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-LHYUY4OW.js";import{a as g}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-XG47KOUR.js";import{a as ve,t as Ie,u as k,w as Oe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-EGVKBYT5.js";import{E as xe,J as L,t as Ce,w as Me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-CNK2ETMZ.js";import{u as pe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-OGA3XTQE.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-SZQIM5RM.js";import{$ as f,$a as I,$b as ae,Aa as q,Ab as K,Bb as ee,Ca as Y,Ea as r,Fa as c,Fc as le,Gc as me,Hc as de,Ic as ce,Ja as Z,Jb as w,Jc as B,La as J,Na as m,Pa as x,Qa as A,Qb as P,Ta as u,Tb as te,U,Vb as ie,Xb as ne,Ya as s,Yb as oe,Za as l,_a as _,ab as O,ac as re,c as z,ca as N,cb as Q,da as $,dc as S,ea as h,fa as F,gb as E,ia as H,ib as d,ja as V,nb as y,ob as p,pb as R,q as j,qb as b,rb as X,ua as W,ya as G}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";var D=class{constructor(){this.menus=[{Icon:"fa-solid fa-chart-pie",Title:"Dashboard",Url:"/menu/dashboard",Roles:[C.dashboardView]},{Icon:"fas fa-tag",Title:"Products",Url:"/menu/products",Roles:[]},{Icon:"fas fa-archive",Title:"Inventory",Url:"/menu/inventory",Roles:[]},{Icon:"fas fa-money-bill-alt",Title:"Price",Url:"/menu/price",Roles:[]},{Icon:"fas fa-shopping-cart",Title:"Order",Url:"/menu/Order",Roles:[C.orderView]},{Icon:"fas fa-clipboard-list",Title:"Report",Url:"/menu/report",Roles:[C.dashboardView]},{Icon:"fas fa-dolly",Title:"Logistic",Url:"/menu/Logistic",Roles:[]},{Icon:"fas fa-cog",Title:"Channel",Url:"/menu/channel",Roles:[C.channelView]},{Icon:"fas fa-file-alt",Title:"Logs",Url:"/menu/log",Roles:[]},{Icon:"fas fa-bell",Title:"Notification",Url:"/menu/notification",Badge:!0,Roles:[]},{Icon:"fas fa-wand-magic-sparkles",Title:"What`s New",Url:`https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete&v=${ue.version}`,ExternalLink:!0,CustomColor:"#ff2323",Badge:!0,Roles:[]}]}get getMenu(){return this.menus}};var je=0,Ne="mat-badge-content",Ae=(()=>{let i=class i{get color(){return this._color}set color(t){this._setColor(t),this._color=t}get content(){return this._content}set content(t){this._updateRenderedContent(t)}get description(){return this._description}set description(t){this._updateDescription(t)}constructor(t,n,o,v,M){this._ngZone=t,this._elementRef=n,this._ariaDescriber=o,this._renderer=v,this._animationMode=M,this._color="primary",this.overlap=!0,this.position="above after",this.size="medium",this._id=je++,this._isInitialized=!1,this._interactivityChecker=N(Me),this._document=N(te)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let t=this._renderer.createElement("span"),n="mat-badge-active";return t.setAttribute("id",`mat-badge-content-${this._id}`),t.setAttribute("aria-hidden","true"),t.classList.add(Ne),this._animationMode==="NoopAnimations"&&t.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(t),typeof requestAnimationFrame=="function"&&this._animationMode!=="NoopAnimations"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add(n)})}):t.classList.add(n),t}_updateRenderedContent(t){let n=`${t??""}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_updateDescription(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!t||this._isHostInteractive())&&this._removeInlineDescription(),this._description=t,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,t):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(t){let n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),t&&n.add(`mat-badge-${t}`)}_clearExistingBadges(){let t=this._elementRef.nativeElement.querySelectorAll(`:scope > .${Ne}`);for(let n of Array.from(t))n!==this._badgeElement&&n.remove()}};i.\u0275fac=function(n){return new(n||i)(c(Z),c(q),c(Ce),c(Y),c(W,8))},i.\u0275dir=F({type:i,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(n,o){n&2&&x("mat-badge-overlap",o.overlap)("mat-badge-above",o.isAbove())("mat-badge-below",!o.isAbove())("mat-badge-before",!o.isAfter())("mat-badge-after",o.isAfter())("mat-badge-small",o.size==="small")("mat-badge-medium",o.size==="medium")("mat-badge-large",o.size==="large")("mat-badge-hidden",o.hidden||!o.content)("mat-badge-disabled",o.disabled)},inputs:{color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap",P],disabled:["matBadgeDisabled","disabled",P],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden",P]},features:[J]});let e=i;return e})(),Re=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=h({type:i}),i.\u0275inj=f({imports:[xe,L,L]});let e=i;return e})();function $e(e,i){if(e&1&&(I(0),s(1,"p",23),p(2),l(),O()),e&2){let a=d(3).$implicit;r(2),R(a.Title)}}function Fe(e,i){if(e&1&&(s(0,"p"),p(1),l()),e&2){let a=d(3).$implicit;r(1),b("",a.Title," ")}}function He(e,i){if(e&1&&(s(0,"a",21),_(1,"i"),u(2,$e,3,1,"ng-container",18)(3,Fe,2,1,"ng-template",null,22,w),l()),e&2){let a=y(4),t=d(2).$implicit;m("href",t.Url,G),r(1),A(t.Icon),r(1),m("ngIf",t.Badge)("ngIfElse",a)}}function Ve(e,i){if(e&1&&(I(0),u(1,He,5,5,"a",20),O()),e&2){let a=d().$implicit;r(1),m("ngxPermissionsOnly",a.Roles)}}function We(e,i){if(e&1&&(I(0),s(1,"p",27),K(2,"async"),p(3),l(),O()),e&2){let a=d(3).$implicit,t=d();r(1),m("matBadgeHidden",ee(2,2,t.notifications$)==0),r(2),R(a.Title)}}function Ge(e,i){if(e&1&&(s(0,"p"),p(1),l()),e&2){let a=d(3).$implicit;r(1),b("",a.Title," ")}}function qe(e,i){if(e&1&&(s(0,"a",25),_(1,"i"),u(2,We,4,4,"ng-container",18)(3,Ge,2,1,"ng-template",null,26,w),l()),e&2){let a=y(4),t=d(2).$implicit,n=d();m("matTooltip",n.isCollapseSidebar?t.Title:"")("routerLink",t.Url),r(1),A(t.Icon),r(1),m("ngIf",t.Badge)("ngIfElse",a)}}function Ye(e,i){if(e&1&&u(0,qe,5,6,"a",24),e&2){let a=d().$implicit;m("ngxPermissionsOnly",a.Roles)}}function Ze(e,i){if(e&1&&(s(0,"li",17),u(1,Ve,2,1,"ng-container",18)(2,Ye,1,1,"ng-template",null,19,w),l()),e&2){let a=i.$implicit,t=y(3);r(1),m("ngIf",a.ExternalLink)("ngIfElse",t)}}function Je(e,i){if(e&1){let a=Q();s(0,"div",28)(1,"span"),p(2),s(3,"a",29),p(4,"this Article"),l(),p(5," to renew your ShopID! "),l(),s(6,"a",30),E("click",function(){H(a);let n=d();return V(n.CloseWarning())}),_(7,"i",31),l()()}if(e&2){let a=d();r(2),X(" Your Shopee Channel ShopID ",a.ShopID," is expired in (",a.Difference_In_Days,") days, please refer to ")}}var Be=(()=>{let i=class i{constructor(t,n,o,v,M){this._router=t,this.LocalData=n,this.toggleSidebarService=o,this.notificationService=v,this.decodeTokenService=M,this.Menu={},this.Difference_In_Days=0,this.IsExpired=!1,this.destroy$=new z,this.isCollapseSidebar=!1,this.initIntercom(),this.token=M.getParseToken(),this.storeName=this.token.StoreName,this.Menu=new D().getMenu}ngOnInit(){this.subscribeToSidebarChange(),this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotification().pipe(j(t=>t.length))}initIntercom(){var t=localStorage.getItem("Intercom"),n=JSON.parse(t);n==null?window.Intercom("boot",{app_id:"xv1oomgl"}):window.Intercom("boot",{app_id:"xv1oomgl",name:n.Name,email:n.Email,created_at:n.Created,user_hash:n.Hash})}subscribeToSidebarChange(){this.toggleSidebarService.toggleState$.pipe(U(this.destroy$)).subscribe(t=>{this.isNavOpen=t})}CloseWarning(){localStorage.removeItem("channel"),this.IsExpired=!1}user(){this._router.navigate(["/menu/users"])}LogOut(){window.Intercom("shutdown"),window.localStorage.removeItem("user"),window.localStorage.removeItem("Intercom"),window.localStorage.removeItem("channel"),window.localStorage.removeItem("ChannelByRoleUserLogin"),this.LocalData.clearDatabase(),this._router.navigate([""])}onCallapseSidebar(){this.isCollapseSidebar=!this.isCollapseSidebar,this.storeName=this.token.StoreName,this.isCollapseSidebar&&(this.storeName=this.getInitialTitle(this.token.StoreName))}getInitialTitle(t){if(t){let n,o=t.split(" ");return o.length==1?n=o[0].substring(0,2):n=o.shift().charAt(0)+o.pop().charAt(0),n}}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};i.\u0275fac=function(n){return new(n||i)(c(me),c(_e),c(ve),c(be),c(se))},i.\u0275cmp=$({type:i,selectors:[["app-menu"]],decls:23,vars:8,consts:[[1,"wrapper"],["data-color","green",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-md-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fas","cursor",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-bs-toggle","dropdown","aria-expanded","false",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center","cursor-pointer"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fas","fa-sign-out-alt"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",4,"ngFor","ngForOf"],[1,"main-panel"],["class","alert alert-warning d-flex justify-content-between text-dark","role","alert",4,"ngIf"],["routerLinkActive","active"],[4,"ngIf","ngIfElse"],["DEFAULT_ROUTE",""],["class","nav-link position-relative d-block changelog","target","_blank",3,"href",4,"ngxPermissionsOnly"],["target","_blank",1,"nav-link","position-relative","d-block","changelog",3,"href"],["NO_BADGE",""],["matBadge","!","matBadgeColor","warn","matBadgeSize","small",1,"shake-animation"],["class","nav-link position-relative d-block","matTooltipPosition","right",3,"matTooltip","routerLink",4,"ngxPermissionsOnly"],["matTooltipPosition","right",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"],["WITHOUT_BADGE",""],["matBadge","!","matBadgeColor","warn","matBadgeSize","small",1,"shake-animation",3,"matBadgeHidden"],["role","alert",1,"alert","alert-warning","d-flex","justify-content-between","text-dark"],["target","_blank","href","https://support.dealpos.com/en/articles/5334947-renew-shopee-authorization"],[1,"alert-link","text-danger",2,"cursor","pointer",3,"click"],[1,"far","fa-times-circle","fa-lg"]],template:function(n,o){n&1&&(s(0,"div",0)(1,"div",1)(2,"button",2),E("click",function(){return o.onCallapseSidebar()}),_(3,"i",3),l(),s(4,"div",4)(5,"div",5)(6,"a",6),p(7),l(),s(8,"div",7)(9,"div",8),p(10),l(),_(11,"div",9),s(12,"a",10),E("click",function(){return o.LogOut()}),_(13,"i",11),p(14,"\xA0 "),s(15,"span"),p(16," Log Out"),l()()()()(),s(17,"div",12)(18,"ul",13),u(19,Ze,4,2,"li",14),l()()(),s(20,"div",15),u(21,Je,8,2,"div",16),_(22,"router-outlet"),l()()),n&2&&(x("nav-open",o.isNavOpen),r(1),m("ngClass",o.isCollapseSidebar?"collapses":""),r(2),m("ngClass",o.isCollapseSidebar?"fa-angle-left":"fa-angle-right"),r(4),b(" ",o.storeName," "),r(3),b("",o.token==null?null:o.token.LID," "),r(9),m("ngForOf",o.Menu),r(2),m("ngIf",o.IsExpired))},dependencies:[ie,ne,oe,le,de,ce,Ie,Ae,ge,ae],styles:[".top-initial[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:initial!important}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}.full-container[_ngcontent-%COMP%]{padding-top:0!important}} p.shake-animation.mat-badge>span.mat-badge-content{animation:_ngcontent-%COMP%_shake-animation 4.72s ease infinite;font-size:12px;transform-origin:50% 50%;right:-14px!important}@keyframes _ngcontent-%COMP%_shake-animation{0%{transform:translate(0)}1.78571%{transform:translate(5px)}3.57143%{transform:translate(0)}5.35714%{transform:translate(5px)}7.14286%{transform:translate(0)}8.92857%{transform:translate(5px)}10.71429%{transform:translate(0)}to{transform:translate(0)}} .changelog:visited p.shake-animation.mat-badge>span.mat-badge-content{color:#77c425;background-color:#77c425;z-index:-1}@media print{.main-panel[_ngcontent-%COMP%]{padding:0!important}}"]});let e=i;return e})();var Qe=[{path:"",component:Be,children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-NQ5YXCPF.js").then(e=>e.DashboardModule),canActivate:[g],data:{title:"Dashboard"}},{path:"products",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-QA6BHZKW.js").then(e=>e.ProductModule),canActivate:[g],data:{title:"Products"}},{path:"inventory",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-XNEL4SD6.js").then(e=>e.InventoryModule),canActivate:[g],data:{title:"Inventory"}},{path:"price",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-BJCKTMTZ.js").then(e=>e.PriceModule),canActivate:[g],data:{title:"Price"}},{path:"Order",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-ANO5F2BV.js").then(e=>e.OrdersModule),canActivate:[g],data:{title:"Order"}},{path:"report",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-FWUAZZDI.js").then(e=>e.ReportModule),canActivate:[g],data:{title:"Report"}},{path:"Logistic",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-HIQEVY5J.js").then(e=>e.LogisticModule),canActivate:[g],data:{title:"Logistic"}},{path:"channel",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-KS42UW22.js").then(e=>e.ChannelsModule),canActivate:[g],data:{title:"Marketplace"}},{path:"log",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-CLLCMDP4.js").then(e=>e.LogsModule),canActivate:[g],data:{title:"Orders"}},{path:"notification",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-3FA5VSAY.js").then(e=>e.NotificationModule),canActivate:[g],data:{title:"Push Notification"}}]}],Le=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=h({type:i}),i.\u0275inj=f({imports:[B.forChild(Qe),B]});let e=i;return e})();var ze=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=h({type:i}),i.\u0275inj=f({imports:[S,pe,Ee,ye,De,we,Pe,Te,k,Se,ke,he]});let e=i;return e})();var xi=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=h({type:i}),i.\u0275inj=f({providers:[re],imports:[S,Le,Oe,k,ze,Re,fe.forChild()]});let e=i;return e})();export{xi as MenuModule};
|
|
1
|
+
import{a as be}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-RBJQ6EI6.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-OVHULOR3.js";import{a as ue}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KLMICCVJ.js";import{b as ke}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-5A74K34K.js";import{a as _e}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-QUDJWHMB.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-5BFBDU4Y.js";import{a as se}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-FHIDET6K.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-GJLYUWSL.js";import{b as Te}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-BFSIXPYE.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-2IH2MGS7.js";import{a as C}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-3C4XDMT2.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-FKBDMXZF.js";import{c as Se}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-NWWR3K33.js";import{g as Ee}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-CGWBESJR.js";import{c as De}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-6ORFYERF.js";import{b as ge,c as fe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KTTSCH5B.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-A6HOOHGI.js";import{c as ye}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KJQHDPO2.js";import{b as Pe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-NVLJ23H4.js";import{h as we}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-CMHF5RTN.js";import{d as he}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-EV36IP6L.js";import{a as g}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-FVAPOGDC.js";import{a as ve,t as Ie,u as k,w as Oe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-D7MTVAUX.js";import{E as xe,J as L,t as Ce,w as Me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-IKMQT2F2.js";import{u as pe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KSOIRHFB.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-GWMLSBG4.js";import{$ as f,$a as I,Aa as q,Bb as K,Ca as Y,Cb as ee,Ea as r,Fa as c,Gc as le,Hc as me,Ic as de,Ja as Z,Jc as ce,Kb as w,Kc as B,La as J,Na as m,Pa as x,Qa as A,Rb as P,Ta as u,U,Ub as te,Wb as ie,Ya as s,Yb as ne,Za as l,Zb as oe,_a as _,ab as O,ac as ae,bc as re,c as z,ca as N,cb as Q,da as $,ea as h,ec as S,fa as F,gb as E,ia as H,ib as d,ja as V,nb as y,ob as p,pb as R,q as j,qb as b,rb as X,ua as W,ya as G}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-QMFPH7XZ.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-T6GUYLRX.js";var D=class{constructor(){this.menus=[{Icon:"fa-solid fa-chart-pie",Title:"Dashboard",Url:"/menu/dashboard",Roles:[C.dashboardView]},{Icon:"fas fa-tag",Title:"Products",Url:"/menu/products",Roles:[]},{Icon:"fas fa-archive",Title:"Inventory",Url:"/menu/inventory",Roles:[]},{Icon:"fas fa-money-bill-alt",Title:"Price",Url:"/menu/price",Roles:[]},{Icon:"fas fa-shopping-cart",Title:"Order",Url:"/menu/Order",Roles:[C.orderView]},{Icon:"fas fa-clipboard-list",Title:"Report",Url:"/menu/report",Roles:[C.dashboardView]},{Icon:"fas fa-dolly",Title:"Logistic",Url:"/menu/Logistic",Roles:[]},{Icon:"fas fa-cog",Title:"Channel",Url:"/menu/channel",Roles:[C.channelView]},{Icon:"fas fa-file-alt",Title:"Logs",Url:"/menu/log",Roles:[]},{Icon:"fas fa-bell",Title:"Notification",Url:"/menu/notification",Badge:!0,Roles:[]},{Icon:"fas fa-wand-magic-sparkles",Title:"What`s New",Url:`https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete&v=${ue.version}`,ExternalLink:!0,CustomColor:"#ff2323",Badge:!0,Roles:[]}]}get getMenu(){return this.menus}};var je=0,Ne="mat-badge-content",Ae=(()=>{let i=class i{get color(){return this._color}set color(t){this._setColor(t),this._color=t}get content(){return this._content}set content(t){this._updateRenderedContent(t)}get description(){return this._description}set description(t){this._updateDescription(t)}constructor(t,n,o,v,M){this._ngZone=t,this._elementRef=n,this._ariaDescriber=o,this._renderer=v,this._animationMode=M,this._color="primary",this.overlap=!0,this.position="above after",this.size="medium",this._id=je++,this._isInitialized=!1,this._interactivityChecker=N(Me),this._document=N(te)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let t=this._renderer.createElement("span"),n="mat-badge-active";return t.setAttribute("id",`mat-badge-content-${this._id}`),t.setAttribute("aria-hidden","true"),t.classList.add(Ne),this._animationMode==="NoopAnimations"&&t.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(t),typeof requestAnimationFrame=="function"&&this._animationMode!=="NoopAnimations"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add(n)})}):t.classList.add(n),t}_updateRenderedContent(t){let n=`${t??""}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_updateDescription(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!t||this._isHostInteractive())&&this._removeInlineDescription(),this._description=t,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,t):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(t){let n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),t&&n.add(`mat-badge-${t}`)}_clearExistingBadges(){let t=this._elementRef.nativeElement.querySelectorAll(`:scope > .${Ne}`);for(let n of Array.from(t))n!==this._badgeElement&&n.remove()}};i.\u0275fac=function(n){return new(n||i)(c(Z),c(q),c(Ce),c(Y),c(W,8))},i.\u0275dir=F({type:i,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(n,o){n&2&&x("mat-badge-overlap",o.overlap)("mat-badge-above",o.isAbove())("mat-badge-below",!o.isAbove())("mat-badge-before",!o.isAfter())("mat-badge-after",o.isAfter())("mat-badge-small",o.size==="small")("mat-badge-medium",o.size==="medium")("mat-badge-large",o.size==="large")("mat-badge-hidden",o.hidden||!o.content)("mat-badge-disabled",o.disabled)},inputs:{color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap",P],disabled:["matBadgeDisabled","disabled",P],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden",P]},features:[J]});let e=i;return e})(),Re=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=h({type:i}),i.\u0275inj=f({imports:[xe,L,L]});let e=i;return e})();function $e(e,i){if(e&1&&(I(0),s(1,"p",23),p(2),l(),O()),e&2){let a=d(3).$implicit;r(2),R(a.Title)}}function Fe(e,i){if(e&1&&(s(0,"p"),p(1),l()),e&2){let a=d(3).$implicit;r(1),b("",a.Title," ")}}function He(e,i){if(e&1&&(s(0,"a",21),_(1,"i"),u(2,$e,3,1,"ng-container",18)(3,Fe,2,1,"ng-template",null,22,w),l()),e&2){let a=y(4),t=d(2).$implicit;m("href",t.Url,G),r(1),A(t.Icon),r(1),m("ngIf",t.Badge)("ngIfElse",a)}}function Ve(e,i){if(e&1&&(I(0),u(1,He,5,5,"a",20),O()),e&2){let a=d().$implicit;r(1),m("ngxPermissionsOnly",a.Roles)}}function We(e,i){if(e&1&&(I(0),s(1,"p",27),K(2,"async"),p(3),l(),O()),e&2){let a=d(3).$implicit,t=d();r(1),m("matBadgeHidden",ee(2,2,t.notifications$)==0),r(2),R(a.Title)}}function Ge(e,i){if(e&1&&(s(0,"p"),p(1),l()),e&2){let a=d(3).$implicit;r(1),b("",a.Title," ")}}function qe(e,i){if(e&1&&(s(0,"a",25),_(1,"i"),u(2,We,4,4,"ng-container",18)(3,Ge,2,1,"ng-template",null,26,w),l()),e&2){let a=y(4),t=d(2).$implicit,n=d();m("matTooltip",n.isCollapseSidebar?t.Title:"")("routerLink",t.Url),r(1),A(t.Icon),r(1),m("ngIf",t.Badge)("ngIfElse",a)}}function Ye(e,i){if(e&1&&u(0,qe,5,6,"a",24),e&2){let a=d().$implicit;m("ngxPermissionsOnly",a.Roles)}}function Ze(e,i){if(e&1&&(s(0,"li",17),u(1,Ve,2,1,"ng-container",18)(2,Ye,1,1,"ng-template",null,19,w),l()),e&2){let a=i.$implicit,t=y(3);r(1),m("ngIf",a.ExternalLink)("ngIfElse",t)}}function Je(e,i){if(e&1){let a=Q();s(0,"div",28)(1,"span"),p(2),s(3,"a",29),p(4,"this Article"),l(),p(5," to renew your ShopID! "),l(),s(6,"a",30),E("click",function(){H(a);let n=d();return V(n.CloseWarning())}),_(7,"i",31),l()()}if(e&2){let a=d();r(2),X(" Your Shopee Channel ShopID ",a.ShopID," is expired in (",a.Difference_In_Days,") days, please refer to ")}}var Be=(()=>{let i=class i{constructor(t,n,o,v,M){this._router=t,this.LocalData=n,this.toggleSidebarService=o,this.notificationService=v,this.decodeTokenService=M,this.Menu={},this.Difference_In_Days=0,this.IsExpired=!1,this.destroy$=new z,this.isCollapseSidebar=!1,this.initIntercom(),this.token=M.getParseToken(),this.storeName=this.token.StoreName,this.Menu=new D().getMenu}ngOnInit(){this.subscribeToSidebarChange(),this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotification().pipe(j(t=>t.length))}initIntercom(){var t=localStorage.getItem("Intercom"),n=JSON.parse(t);n==null?window.Intercom("boot",{app_id:"xv1oomgl"}):window.Intercom("boot",{app_id:"xv1oomgl",name:n.Name,email:n.Email,created_at:n.Created,user_hash:n.Hash})}subscribeToSidebarChange(){this.toggleSidebarService.toggleState$.pipe(U(this.destroy$)).subscribe(t=>{this.isNavOpen=t})}CloseWarning(){localStorage.removeItem("channel"),this.IsExpired=!1}user(){this._router.navigate(["/menu/users"])}LogOut(){window.Intercom("shutdown"),window.localStorage.removeItem("user"),window.localStorage.removeItem("Intercom"),window.localStorage.removeItem("channel"),window.localStorage.removeItem("ChannelByRoleUserLogin"),this.LocalData.clearDatabase(),this._router.navigate([""])}onCallapseSidebar(){this.isCollapseSidebar=!this.isCollapseSidebar,this.storeName=this.token.StoreName,this.isCollapseSidebar&&(this.storeName=this.getInitialTitle(this.token.StoreName))}getInitialTitle(t){if(t){let n,o=t.split(" ");return o.length==1?n=o[0].substring(0,2):n=o.shift().charAt(0)+o.pop().charAt(0),n}}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};i.\u0275fac=function(n){return new(n||i)(c(me),c(_e),c(ve),c(be),c(se))},i.\u0275cmp=$({type:i,selectors:[["app-menu"]],decls:23,vars:8,consts:[[1,"wrapper"],["data-color","green",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-md-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fas","cursor",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-bs-toggle","dropdown","aria-expanded","false",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center","cursor-pointer"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fas","fa-sign-out-alt"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",4,"ngFor","ngForOf"],[1,"main-panel"],["class","alert alert-warning d-flex justify-content-between text-dark","role","alert",4,"ngIf"],["routerLinkActive","active"],[4,"ngIf","ngIfElse"],["DEFAULT_ROUTE",""],["class","nav-link position-relative d-block changelog","target","_blank",3,"href",4,"ngxPermissionsOnly"],["target","_blank",1,"nav-link","position-relative","d-block","changelog",3,"href"],["NO_BADGE",""],["matBadge","!","matBadgeColor","warn","matBadgeSize","small",1,"shake-animation"],["class","nav-link position-relative d-block","matTooltipPosition","right",3,"matTooltip","routerLink",4,"ngxPermissionsOnly"],["matTooltipPosition","right",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"],["WITHOUT_BADGE",""],["matBadge","!","matBadgeColor","warn","matBadgeSize","small",1,"shake-animation",3,"matBadgeHidden"],["role","alert",1,"alert","alert-warning","d-flex","justify-content-between","text-dark"],["target","_blank","href","https://support.dealpos.com/en/articles/5334947-renew-shopee-authorization"],[1,"alert-link","text-danger",2,"cursor","pointer",3,"click"],[1,"far","fa-times-circle","fa-lg"]],template:function(n,o){n&1&&(s(0,"div",0)(1,"div",1)(2,"button",2),E("click",function(){return o.onCallapseSidebar()}),_(3,"i",3),l(),s(4,"div",4)(5,"div",5)(6,"a",6),p(7),l(),s(8,"div",7)(9,"div",8),p(10),l(),_(11,"div",9),s(12,"a",10),E("click",function(){return o.LogOut()}),_(13,"i",11),p(14,"\xA0 "),s(15,"span"),p(16," Log Out"),l()()()()(),s(17,"div",12)(18,"ul",13),u(19,Ze,4,2,"li",14),l()()(),s(20,"div",15),u(21,Je,8,2,"div",16),_(22,"router-outlet"),l()()),n&2&&(x("nav-open",o.isNavOpen),r(1),m("ngClass",o.isCollapseSidebar?"collapses":""),r(2),m("ngClass",o.isCollapseSidebar?"fa-angle-left":"fa-angle-right"),r(4),b(" ",o.storeName," "),r(3),b("",o.token==null?null:o.token.LID," "),r(9),m("ngForOf",o.Menu),r(2),m("ngIf",o.IsExpired))},dependencies:[ie,ne,oe,le,de,ce,Ie,Ae,ge,ae],styles:[".top-initial[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:initial!important}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}.full-container[_ngcontent-%COMP%]{padding-top:0!important}} p.shake-animation.mat-badge>span.mat-badge-content{animation:_ngcontent-%COMP%_shake-animation 4.72s ease infinite;font-size:12px;transform-origin:50% 50%;right:-14px!important}@keyframes _ngcontent-%COMP%_shake-animation{0%{transform:translate(0)}1.78571%{transform:translate(5px)}3.57143%{transform:translate(0)}5.35714%{transform:translate(5px)}7.14286%{transform:translate(0)}8.92857%{transform:translate(5px)}10.71429%{transform:translate(0)}to{transform:translate(0)}} .changelog:visited p.shake-animation.mat-badge>span.mat-badge-content{color:#77c425;background-color:#77c425;z-index:-1}@media print{.main-panel[_ngcontent-%COMP%]{padding:0!important}}"]});let e=i;return e})();var Qe=[{path:"",component:Be,children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-W5JLE65X.js").then(e=>e.DashboardModule),canActivate:[g],data:{title:"Dashboard"}},{path:"products",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-VVGZ7KQX.js").then(e=>e.ProductModule),canActivate:[g],data:{title:"Products"}},{path:"inventory",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-R56RSI2V.js").then(e=>e.InventoryModule),canActivate:[g],data:{title:"Inventory"}},{path:"price",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-6R23WA5G.js").then(e=>e.PriceModule),canActivate:[g],data:{title:"Price"}},{path:"Order",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-CIUA5X4L.js").then(e=>e.OrdersModule),canActivate:[g],data:{title:"Order"}},{path:"report",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-VPZ3M3XI.js").then(e=>e.ReportModule),canActivate:[g],data:{title:"Report"}},{path:"Logistic",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-GUDIOT6F.js").then(e=>e.LogisticModule),canActivate:[g],data:{title:"Logistic"}},{path:"channel",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-NHFS3EQL.js").then(e=>e.ChannelsModule),canActivate:[g],data:{title:"Marketplace"}},{path:"log",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-5FWZE3M6.js").then(e=>e.LogsModule),canActivate:[g],data:{title:"Orders"}},{path:"notification",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-IHMSIZQP.js").then(e=>e.NotificationModule),canActivate:[g],data:{title:"Push Notification"}}]}],Le=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=h({type:i}),i.\u0275inj=f({imports:[B.forChild(Qe),B]});let e=i;return e})();var ze=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=h({type:i}),i.\u0275inj=f({imports:[S,pe,Ee,ye,De,we,Pe,Te,k,Se,ke,he]});let e=i;return e})();var xi=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=h({type:i}),i.\u0275inj=f({providers:[re],imports:[S,Le,Oe,k,ze,Re,fe.forChild()]});let e=i;return e})();export{xi as MenuModule};
|
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.0/Marketplace/styles-VIFLB3RD.css"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KLMICCVJ.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-5BFBDU4Y.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-75KTCVZF.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-FHIDET6K.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-2NSPG6VQ.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KTTSCH5B.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-A6HOOHGI.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-CMHF5RTN.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-IKMQT2F2.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-GWMLSBG4.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-QMFPH7XZ.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-T6GUYLRX.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.0/Marketplace/polyfills-HTM62PZX.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/scripts-M46NWPTC.js" defer></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/main-FFSPLMLV.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.0/Marketplace/chunk-KLMICCVJ.js";import{b as Be}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-5BFBDU4Y.js";import{a as Ie,b as we,c as Fe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-75KTCVZF.js";import{a as xe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-FHIDET6K.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-2NSPG6VQ.js";import{c as Te}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KTTSCH5B.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.0/Marketplace/chunk-A6HOOHGI.js";import{f as He}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-CMHF5RTN.js";import{p as Re}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-IKMQT2F2.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-GWMLSBG4.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.0/Marketplace/chunk-QMFPH7XZ.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-T6GUYLRX.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.0/Marketplace/chunk-L73KNYMB.js").then(e=>e.LoginModule)},{path:"menu",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-WX2VXA4V.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
|