marketplacepos 3.4.2 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/Marketplace/3rdpartylicenses.txt +5 -0
  2. package/Marketplace/{chunk-VJLQRARA.js → chunk-475WOA53.js} +1 -1
  3. package/Marketplace/chunk-4KXF5ZA2.js +1 -0
  4. package/Marketplace/{chunk-CVIYGYJG.js → chunk-4PT4476L.js} +1 -1
  5. package/Marketplace/{chunk-VLWVI7LT.js → chunk-4TMYOD6O.js} +1 -1
  6. package/Marketplace/{chunk-4ZIFLVEZ.js → chunk-5ANLTFUN.js} +1 -1
  7. package/Marketplace/{chunk-LHYUY4OW.js → chunk-5XDVKUH7.js} +1 -1
  8. package/Marketplace/{chunk-NLUIK3SD.js → chunk-5ZN2BVWB.js} +1 -1
  9. package/Marketplace/chunk-7K45EX2D.js +1 -0
  10. package/Marketplace/{chunk-WT7HH4UV.js → chunk-AFXFMUBY.js} +1 -1
  11. package/Marketplace/{chunk-JD4NX6LL.js → chunk-AG7HK2U3.js} +1 -1
  12. package/Marketplace/{chunk-APSB364O.js → chunk-APUQGD5I.js} +1 -1
  13. package/Marketplace/{chunk-OGA3XTQE.js → chunk-BHYFVY4A.js} +1 -1
  14. package/Marketplace/{chunk-HMATF4RH.js → chunk-BZKS3OOQ.js} +1 -1
  15. package/Marketplace/{chunk-Y4RCGXQK.js → chunk-DLMJHJC2.js} +1 -1
  16. package/Marketplace/{chunk-FJAD3LVA.js → chunk-E6VM4GK2.js} +1 -1
  17. package/Marketplace/{chunk-3FA5VSAY.js → chunk-EI6G5GIB.js} +1 -1
  18. package/Marketplace/{chunk-PASXSTSS.js → chunk-GSRXSBIM.js} +1 -1
  19. package/Marketplace/{chunk-XG47KOUR.js → chunk-GYBKA75Z.js} +1 -1
  20. package/Marketplace/{chunk-45BCCCD5.js → chunk-H6D6Q2L2.js} +1 -1
  21. package/Marketplace/{chunk-WL3GCHJ5.js → chunk-HI7WYFPY.js} +1 -1
  22. package/Marketplace/{chunk-2PR23CRN.js → chunk-HUCFUCCO.js} +1 -1
  23. package/Marketplace/{chunk-EIQQEQMI.js → chunk-IEBL2FLF.js} +1 -1
  24. package/Marketplace/{chunk-NQ5YXCPF.js → chunk-IHM35ILL.js} +1 -1
  25. package/Marketplace/{chunk-DH7A3MMY.js → chunk-IM76S6ZZ.js} +1 -1
  26. package/Marketplace/{chunk-HIQEVY5J.js → chunk-IMXSLLAA.js} +1 -1
  27. package/Marketplace/chunk-IU6HPLQ3.js +1 -0
  28. package/Marketplace/{chunk-EGVKBYT5.js → chunk-J6UEWWQX.js} +1 -1
  29. package/Marketplace/{chunk-OHLIZGJ7.js → chunk-JF3MRSX7.js} +1 -1
  30. package/Marketplace/{chunk-XNEL4SD6.js → chunk-KKKJRBXL.js} +1 -1
  31. package/Marketplace/{chunk-QZHSCJJ5.js → chunk-KRXW5FTG.js} +1 -1
  32. package/Marketplace/{chunk-I5WJTOZD.js → chunk-L5URITG7.js} +1 -1
  33. package/Marketplace/{chunk-BJCKTMTZ.js → chunk-LBMDUJHZ.js} +1 -1
  34. package/Marketplace/{chunk-JDAC3DI7.js → chunk-LDVARU5U.js} +1 -1
  35. package/Marketplace/{chunk-CB54UHPH.js → chunk-LWKBNKVO.js} +1 -1
  36. package/Marketplace/{chunk-LUN7S6P4.js → chunk-MGOWDXUM.js} +1 -1
  37. package/Marketplace/{chunk-WAE5XPQ6.js → chunk-MZEDRDUX.js} +1 -1
  38. package/Marketplace/{chunk-KHQYY4CP.js → chunk-NB75ACST.js} +1 -1
  39. package/Marketplace/{chunk-QXKJ6AH2.js → chunk-NLTXIY5M.js} +1 -1
  40. package/Marketplace/{chunk-CNK2ETMZ.js → chunk-NWCS6OKR.js} +1 -1
  41. package/Marketplace/{chunk-H5BAFHZZ.js → chunk-OULCNSCZ.js} +1 -1
  42. package/Marketplace/{chunk-X6OLODND.js → chunk-OVPZBBEC.js} +2 -2
  43. package/Marketplace/{chunk-TKW6MA5X.js → chunk-OYMJWISR.js} +1 -1
  44. package/Marketplace/{chunk-CAF3EESF.js → chunk-PFX4CZVM.js} +1 -1
  45. package/Marketplace/{chunk-4FIQ677Y.js → chunk-Q5ZWBTZ2.js} +1 -1
  46. package/Marketplace/{chunk-5LIHLHZ2.js → chunk-QKOBK5RO.js} +1 -1
  47. package/Marketplace/{chunk-IKBHUDBF.js → chunk-RKNA2RX4.js} +1 -1
  48. package/Marketplace/chunk-RPMRAFUY.js +39 -0
  49. package/Marketplace/{chunk-RUG3NZNS.js → chunk-RWEMXJWP.js} +1 -1
  50. package/Marketplace/{chunk-WGNBD2TG.js → chunk-RWRP376T.js} +5 -5
  51. package/Marketplace/{chunk-Q27U6EXR.js → chunk-TP2HONHJ.js} +1 -1
  52. package/Marketplace/{chunk-KS42UW22.js → chunk-TRRI6HFB.js} +1 -1
  53. package/Marketplace/{chunk-7O2LUPOW.js → chunk-UCSWGVFE.js} +1 -1
  54. package/Marketplace/{chunk-QA6BHZKW.js → chunk-UFNZF4K5.js} +1 -1
  55. package/Marketplace/{chunk-MPXURNR4.js → chunk-URBKK5K6.js} +1 -1
  56. package/Marketplace/{chunk-6H6S75XM.js → chunk-USCL6HQE.js} +1 -1
  57. package/Marketplace/{chunk-CLLCMDP4.js → chunk-WB4KZY2I.js} +1 -1
  58. package/Marketplace/{chunk-TEIBLAW7.js → chunk-XEVR4BVC.js} +2 -2
  59. package/Marketplace/{chunk-ENUKURHL.js → chunk-XTLLDXB7.js} +1 -1
  60. package/Marketplace/{chunk-HO6I7ZN6.js → chunk-Y2IG7JAU.js} +1 -1
  61. package/Marketplace/{chunk-GPNYP6CI.js → chunk-YIPITET7.js} +1 -1
  62. package/Marketplace/{chunk-TFM4P7KH.js → chunk-YN7U2IRK.js} +1 -1
  63. package/Marketplace/{chunk-LC5NUVMA.js → chunk-ZJHL6VDX.js} +1 -1
  64. package/Marketplace/{chunk-EBAG6BIX.js → chunk-ZP6L6END.js} +1 -1
  65. package/Marketplace/{chunk-DANZQU6U.js → chunk-ZPR2KAKZ.js} +1 -1
  66. package/Marketplace/index.html +2 -2
  67. package/Marketplace/{main-MTBOIFWC.js → main-WKNVNRPA.js} +1 -1
  68. package/Marketplace/media/color-3LUHUBGQ.png +0 -0
  69. package/Marketplace/media/hue-RMMBQOAC.png +0 -0
  70. package/Marketplace/styles-ISUUHHCL.css +1 -0
  71. package/package.json +1 -1
  72. package/Marketplace/chunk-ANO5F2BV.js +0 -8
  73. package/Marketplace/chunk-FWUAZZDI.js +0 -1
  74. package/Marketplace/chunk-JIRDXTRJ.js +0 -1
  75. package/Marketplace/chunk-TZO7ICWB.js +0 -1
  76. package/Marketplace/styles-JRURH5LL.css +0 -1
  77. /package/Marketplace/{chunk-7G5B67SI.js → chunk-F7MYTDP3.js} +0 -0
  78. /package/Marketplace/{chunk-SZQIM5RM.js → chunk-GV43X5PS.js} +0 -0
  79. /package/Marketplace/{chunk-4YO3BZ5L.js → chunk-KSBVZVMH.js} +0 -0
  80. /package/Marketplace/{chunk-DILTMQOY.js → chunk-NXHVARCF.js} +0 -0
  81. /package/Marketplace/{chunk-HPDCVTZM.js → chunk-OKO7WTOG.js} +0 -0
  82. /package/Marketplace/{polyfills-WRDNL3NI.js → polyfills-STQSWRUI.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.1/Marketplace/chunk-URBKK5K6.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-OULCNSCZ.js";import{a as ue}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-OYMJWISR.js";import{b as ke}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-OVPZBBEC.js";import{a as _e}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-HI7WYFPY.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-4PT4476L.js";import{a as se}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-AG7HK2U3.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-ZP6L6END.js";import{b as Te}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-USCL6HQE.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-F7MYTDP3.js";import{a as C}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-NXHVARCF.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-APUQGD5I.js";import{c as Se}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-H6D6Q2L2.js";import{g as Ee}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-YIPITET7.js";import{c as De}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-MGOWDXUM.js";import{b as ge,c as fe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-IEBL2FLF.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-ZPR2KAKZ.js";import{c as ye}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-ZJHL6VDX.js";import{b as Pe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-E6VM4GK2.js";import{h as we}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-DLMJHJC2.js";import{d as he}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-5XDVKUH7.js";import{a as g}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-GYBKA75Z.js";import{a as ve,t as Ie,u as k,w as Oe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-J6UEWWQX.js";import{E as xe,J as L,t as Ce,w as Me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-NWCS6OKR.js";import{u as pe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-BHYFVY4A.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-GV43X5PS.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.1/Marketplace/chunk-RWRP376T.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-OKO7WTOG.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.1/Marketplace/chunk-IHM35ILL.js").then(e=>e.DashboardModule),canActivate:[g],data:{title:"Dashboard"}},{path:"products",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-UFNZF4K5.js").then(e=>e.ProductModule),canActivate:[g],data:{title:"Products"}},{path:"inventory",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-KKKJRBXL.js").then(e=>e.InventoryModule),canActivate:[g],data:{title:"Inventory"}},{path:"price",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-LBMDUJHZ.js").then(e=>e.PriceModule),canActivate:[g],data:{title:"Price"}},{path:"Order",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-RPMRAFUY.js").then(e=>e.OrdersModule),canActivate:[g],data:{title:"Order"}},{path:"report",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-7K45EX2D.js").then(e=>e.ReportModule),canActivate:[g],data:{title:"Report"}},{path:"Logistic",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-IMXSLLAA.js").then(e=>e.LogisticModule),canActivate:[g],data:{title:"Logistic"}},{path:"channel",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-TRRI6HFB.js").then(e=>e.ChannelsModule),canActivate:[g],data:{title:"Marketplace"}},{path:"log",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-WB4KZY2I.js").then(e=>e.LogsModule),canActivate:[g],data:{title:"Orders"}},{path:"notification",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-EI6G5GIB.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};