marketplacepos 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/{chunk-YBAPXY6T.js → chunk-2RLPLX7Y.js} +1 -1
- package/Marketplace/{chunk-I7PLLVEH.js → chunk-3BUKJ3GE.js} +1 -1
- package/Marketplace/{chunk-BUG6II55.js → chunk-3HICANYR.js} +1 -1
- package/Marketplace/{chunk-V752HOUZ.js → chunk-3IPEE6XU.js} +1 -1
- package/Marketplace/{chunk-MGVAWFYU.js → chunk-3TYJJ4PH.js} +1 -1
- package/Marketplace/{chunk-KDJNHDU2.js → chunk-57VLIKXW.js} +1 -1
- package/Marketplace/{chunk-2GUSUJKR.js → chunk-5UQ6DL4O.js} +1 -1
- package/Marketplace/{chunk-W7OIIPRU.js → chunk-5YXFGJWF.js} +1 -1
- package/Marketplace/{chunk-UTSC6PL6.js → chunk-62X5EPZO.js} +1 -1
- package/Marketplace/{chunk-R2U2NYVL.js → chunk-65GLFXG6.js} +1 -1
- package/Marketplace/{chunk-3KJSV75O.js → chunk-6HV56KCT.js} +1 -1
- package/Marketplace/{chunk-2FZAKLVH.js → chunk-7ECA4R7M.js} +1 -1
- package/Marketplace/{chunk-53K2CWAN.js → chunk-BM333QLQ.js} +1 -1
- package/Marketplace/{chunk-KTPCOMZ2.js → chunk-CB4N4KBQ.js} +1 -1
- package/Marketplace/{chunk-JGYSNRH6.js → chunk-CN572N3D.js} +1 -1
- package/Marketplace/{chunk-DKPFXQNF.js → chunk-DIKDR4YZ.js} +1 -1
- package/Marketplace/{chunk-M3XCT7JY.js → chunk-DIZIHPEZ.js} +1 -1
- package/Marketplace/{chunk-SFDY7NUA.js → chunk-DM4BNQ56.js} +1 -1
- package/Marketplace/{chunk-3G5KO3TI.js → chunk-DOLAZVBK.js} +1 -1
- package/Marketplace/{chunk-CIGF5YG5.js → chunk-E2YL3IRQ.js} +1 -1
- package/Marketplace/chunk-EBCG45QS.js +1 -0
- package/Marketplace/{chunk-JWESCPR3.js → chunk-EM7B4QFY.js} +1 -1
- package/Marketplace/{chunk-IM6ZDC7I.js → chunk-ESASEBJL.js} +1 -1
- package/Marketplace/{chunk-IOUI2FZD.js → chunk-F6CH4W4K.js} +1 -1
- package/Marketplace/{chunk-WNUGQVRM.js → chunk-FBFTM65H.js} +1 -1
- package/Marketplace/{chunk-FTYEJYHR.js → chunk-FTADFHBJ.js} +1 -1
- package/Marketplace/{chunk-7ARC4G4F.js → chunk-ID64YY33.js} +1 -1
- package/Marketplace/{chunk-MIAEM23L.js → chunk-IFNRKVC7.js} +1 -1
- package/Marketplace/{chunk-QC4HQRFC.js → chunk-IQE4BJBW.js} +1 -1
- package/Marketplace/{chunk-NEAQH3FX.js → chunk-IWJP53WS.js} +1 -1
- package/Marketplace/{chunk-YK6VKTWV.js → chunk-IZUH3SMQ.js} +1 -1
- package/Marketplace/{chunk-JUIDNG6B.js → chunk-JHMIIA36.js} +1 -1
- package/Marketplace/{chunk-IPSBLHOU.js → chunk-JVBBWG5A.js} +1 -1
- package/Marketplace/{chunk-FBU5QXHN.js → chunk-JWHHOF7N.js} +1 -1
- package/Marketplace/{chunk-YS2YJHB3.js → chunk-K3FE6RKY.js} +1 -1
- package/Marketplace/chunk-KH5TJAAO.js +1 -0
- package/Marketplace/{chunk-233MWU5I.js → chunk-MH5CTSJJ.js} +2 -2
- package/Marketplace/{chunk-Q2ZCP6BL.js → chunk-MQ5HS343.js} +1 -1
- package/Marketplace/{chunk-ZVELVZIL.js → chunk-NR7MA7GM.js} +1 -1
- package/Marketplace/{chunk-MLMGMDJA.js → chunk-OJCFIUAX.js} +1 -1
- package/Marketplace/{chunk-VX5ROJLM.js → chunk-OPU2YPBG.js} +1 -1
- package/Marketplace/{chunk-ISJRZPJX.js → chunk-PB2YK3UZ.js} +1 -1
- package/Marketplace/{chunk-3ZNOGHL3.js → chunk-PBKWYSXQ.js} +1 -1
- package/Marketplace/{chunk-MBHOZDLB.js → chunk-PSCYH4CH.js} +1 -1
- package/Marketplace/{chunk-6YFZBURX.js → chunk-PX3OVSRI.js} +1 -1
- package/Marketplace/{chunk-SY5WIR62.js → chunk-Q3NI4SVW.js} +3 -3
- package/Marketplace/{chunk-35GLPUIA.js → chunk-RNJKRELB.js} +1 -1
- package/Marketplace/{chunk-V3NJFGV3.js → chunk-S3Y5M733.js} +1 -1
- package/Marketplace/{chunk-NAXDUEX4.js → chunk-SLBDXT7U.js} +1 -1
- package/Marketplace/{chunk-ZXU3FVPS.js → chunk-SS2IUYMS.js} +1 -1
- package/Marketplace/{chunk-37HLVAAU.js → chunk-TVWXXVHW.js} +1 -1
- package/Marketplace/{chunk-PUSB4EIC.js → chunk-TWJIQ2V4.js} +1 -1
- package/Marketplace/{chunk-K5FAZTRK.js → chunk-TZXECYID.js} +1 -1
- package/Marketplace/{chunk-AO2MXRCQ.js → chunk-UI3GOMJ2.js} +1 -1
- package/Marketplace/{chunk-Q6Y22NLN.js → chunk-UX7T6RMC.js} +1 -1
- package/Marketplace/{chunk-HEYRRICW.js → chunk-V3FRKQJE.js} +1 -1
- package/Marketplace/{chunk-4TY6WDXS.js → chunk-VQDYKADM.js} +1 -1
- package/Marketplace/{chunk-G4PZ5CPL.js → chunk-VZVPXWTV.js} +1 -1
- package/Marketplace/{chunk-PP4T4PLJ.js → chunk-WQRVB6GT.js} +1 -1
- package/Marketplace/{chunk-UTRK7TTD.js → chunk-X5D5XIEG.js} +1 -1
- package/Marketplace/{chunk-5LICD27P.js → chunk-XC47PR7D.js} +1 -1
- package/Marketplace/{chunk-SUY2H7ZI.js → chunk-YXUQSGJI.js} +1 -1
- package/Marketplace/{chunk-HVNMMTYL.js → chunk-ZBHZ3ASR.js} +1 -1
- package/Marketplace/{chunk-2Y66HZFD.js → chunk-ZJLKBG2A.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-ICOUGZTS.js → main-I4YQBPAL.js} +1 -1
- package/Marketplace/{styles-XDRE2JJC.css → styles-WYF4ASPA.css} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-E64JNFG7.js +0 -1
- package/Marketplace/chunk-UWU5GEHX.js +0 -1
- /package/Marketplace/{chunk-6HLIRI7N.js → chunk-4CWATSUN.js} +0 -0
- /package/Marketplace/{chunk-ZLME6FEU.js → chunk-FRY56U37.js} +0 -0
- /package/Marketplace/{chunk-6RUGKYFT.js → chunk-GLK7UGZJ.js} +0 -0
- /package/Marketplace/{chunk-V6VYUZWG.js → chunk-KIP3CH3J.js} +0 -0
- /package/Marketplace/{chunk-KPTAVWMG.js → chunk-NFCTGNSM.js} +0 -0
- /package/Marketplace/{polyfills-L2ZK4WXQ.js → polyfills-FX2Y3WMH.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as be}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-YS2YJHB3.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-ZVELVZIL.js";import{a as ue}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-7ARC4G4F.js";import{b as ke}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-3G5KO3TI.js";import{a as _e}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-KTPCOMZ2.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-YK6VKTWV.js";import{a as se}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-35GLPUIA.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-I7PLLVEH.js";import{b as Te}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-W7OIIPRU.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-ZLME6FEU.js";import{a as C}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-6HLIRI7N.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-PUSB4EIC.js";import{c as Se}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-IOUI2FZD.js";import{g as ye}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-K5FAZTRK.js";import{c as De}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-BUG6II55.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-VX5ROJLM.js";import{b as ge,c as fe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-V752HOUZ.js";import{c as Ee}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-PP4T4PLJ.js";import{b as Pe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-HVNMMTYL.js";import{h as we}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-DKPFXQNF.js";import{d as he}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-2FZAKLVH.js";import{a as g}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-G4PZ5CPL.js";import{a as ve,t as Ie,u as k,w as Oe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-IM6ZDC7I.js";import{E as xe,J as L,t as Ce,w as Me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-JWESCPR3.js";import{u as pe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-6YFZBURX.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-KPTAVWMG.js";import{$a as _,Ba as q,Cb as K,Da as Y,Db as ee,Fa as r,Ga as c,Hc as le,Ic as me,Jc as de,Ka as Z,Kc as ce,Lb as w,Lc as R,Ma as J,Oa as m,Qa as x,Ra as A,Sb as P,Ua as u,V as U,Vb as te,Xb as ie,Za as s,Zb as ne,_a as l,_b as oe,aa as f,ab as I,bb as O,bc as ae,c as z,cc as re,da as N,db as Q,ea as $,fa as h,fc as S,ga as F,hb as y,ja as H,jb as d,ka as V,ob as E,pb as p,q as j,qb as B,rb as b,sb as X,va as W,za as G}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-MGVAWFYU.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-6RUGKYFT.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:"Sync Log",Url:"/menu/sync-log",Roles:[C.orderView]},{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})(),Be=(()=>{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),B(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=E(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),B(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=E(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=E(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),y("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 Re=(()=>{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),y("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),y("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:Re,children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-IPSBLHOU.js").then(e=>e.DashboardModule),canActivate:[g],data:{title:"Dashboard"}},{path:"products",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-FTYEJYHR.js").then(e=>e.ProductModule),canActivate:[g],data:{title:"Products"}},{path:"inventory",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-2GUSUJKR.js").then(e=>e.InventoryModule),canActivate:[g],data:{title:"Inventory"}},{path:"price",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-V3NJFGV3.js").then(e=>e.PriceModule),canActivate:[g],data:{title:"Price"}},{path:"Order",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-ZXU3FVPS.js").then(e=>e.OrdersModule),canActivate:[g],data:{title:"Order"}},{path:"sync-log",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-UWU5GEHX.js").then(e=>e.ReportModule),canActivate:[g],data:{title:"Report"}},{path:"Logistic",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-UTSC6PL6.js").then(e=>e.LogisticModule),canActivate:[g],data:{title:"Logistic"}},{path:"channel",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-SY5WIR62.js").then(e=>e.ChannelsModule),canActivate:[g],data:{title:"Marketplace"}},{path:"log",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-NAXDUEX4.js").then(e=>e.LogsModule),canActivate:[g],data:{title:"Orders"}},{path:"notification",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-Q2ZCP6BL.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:[R.forChild(Qe),R]});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,ye,Ee,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,Be,fe.forChild()]});let e=i;return e})();export{xi as MenuModule};
|
|
1
|
+
import{a as be}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-K3FE6RKY.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-NR7MA7GM.js";import{a as ue}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-ID64YY33.js";import{b as ke}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-DOLAZVBK.js";import{a as _e}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-CB4N4KBQ.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-IZUH3SMQ.js";import{a as se}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-RNJKRELB.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-3BUKJ3GE.js";import{b as Te}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-5YXFGJWF.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-FRY56U37.js";import{a as C}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-4CWATSUN.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-TWJIQ2V4.js";import{c as Se}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-F6CH4W4K.js";import{g as ye}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-TZXECYID.js";import{c as De}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-3HICANYR.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-OPU2YPBG.js";import{b as ge,c as fe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-3IPEE6XU.js";import{c as Ee}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-WQRVB6GT.js";import{b as Pe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-ZBHZ3ASR.js";import{h as we}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-DIKDR4YZ.js";import{d as he}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-7ECA4R7M.js";import{a as g}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-VZVPXWTV.js";import{a as ve,t as Ie,u as k,w as Oe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-ESASEBJL.js";import{E as xe,J as L,t as Ce,w as Me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-EM7B4QFY.js";import{u as pe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-PX3OVSRI.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-NFCTGNSM.js";import{$a as _,Ba as q,Cb as K,Da as Y,Db as ee,Fa as r,Ga as c,Hc as le,Ic as me,Jc as de,Ka as Z,Kc as ce,Lb as w,Lc as R,Ma as J,Oa as m,Qa as x,Ra as A,Sb as P,Ua as u,V as U,Vb as te,Xb as ie,Za as s,Zb as ne,_a as l,_b as oe,aa as f,ab as I,bb as O,bc as ae,c as z,cc as re,da as N,db as Q,ea as $,fa as h,fc as S,ga as F,hb as y,ja as H,jb as d,ka as V,ob as E,pb as p,q as j,qb as B,rb as b,sb as X,va as W,za as G}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-3TYJJ4PH.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-GLK7UGZJ.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:"Sync Log",Url:"/menu/sync-log",Roles:[C.orderView]},{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})(),Be=(()=>{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),B(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=E(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),B(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=E(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=E(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),y("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 Re=(()=>{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),y("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),y("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:Re,children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-JVBBWG5A.js").then(e=>e.DashboardModule),canActivate:[g],data:{title:"Dashboard"}},{path:"products",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-FTADFHBJ.js").then(e=>e.ProductModule),canActivate:[g],data:{title:"Products"}},{path:"inventory",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-5UQ6DL4O.js").then(e=>e.InventoryModule),canActivate:[g],data:{title:"Inventory"}},{path:"price",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-S3Y5M733.js").then(e=>e.PriceModule),canActivate:[g],data:{title:"Price"}},{path:"Order",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-SS2IUYMS.js").then(e=>e.OrdersModule),canActivate:[g],data:{title:"Order"}},{path:"sync-log",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-EBCG45QS.js").then(e=>e.ReportModule),canActivate:[g],data:{title:"Report"}},{path:"Logistic",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-62X5EPZO.js").then(e=>e.LogisticModule),canActivate:[g],data:{title:"Logistic"}},{path:"channel",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-Q3NI4SVW.js").then(e=>e.ChannelsModule),canActivate:[g],data:{title:"Marketplace"}},{path:"log",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-SLBDXT7U.js").then(e=>e.LogsModule),canActivate:[g],data:{title:"Orders"}},{path:"notification",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-MQ5HS343.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:[R.forChild(Qe),R]});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,ye,Ee,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,Be,fe.forChild()]});let e=i;return e})();export{xi as MenuModule};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as S,e as g}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.
|
|
1
|
+
import{b as S,e as g}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-OPU2YPBG.js";import{c as h}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-NFCTGNSM.js";import{$ as f,E as c,X as o,ca as d,o as i}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-3TYJJ4PH.js";var E=(()=>{let l=class l{constructor(e,t){this.httpService=e,this.toastrService=t}loader(e=h.GuidEMpty){return this.httpService.post("/api/product/Load",{ID:e})}LoadInPOS(e=h.GuidEMpty){return this.httpService.post("/api/product/LoadInPOS",{ID:e})}filterChannelByTypeId(e,t){return e.filter(a=>t.findIndex(s=>a.TypeID==s)!==-1)}getProductStatistic(){return this.httpService.post("/api/product/ProductStatistic",{})}getTotalProductLive(e){let t={ID:e};return this.httpService.post("/api/product/TotalProductLive",t)}clearCacheChannel(e){let t={ID:e};return this.httpService.post("/api/Channel/ClearCacheChannel",t)}uploadSingleProduct(e,t){let a={Channel:t,Products:e};return this.httpService.post("api/product/UploadMultipleChannel",a).pipe(o(s=>{this.showToastrSuccessUploadSingle(s,e[0])}),c(s=>(this.showToastErrorUploadSingle(s,e[0]),i(()=>new Error(s)))))}uploadMultipleProduct(e,t){let a={Channel:t,Products:e};return this.httpService.post("api/product/UploadMultipleProductAndMultipleChannel",a).pipe(o(s=>{this.showToastrUploadMultiple(s.Message)}),c(s=>(this.showToastrUploadMultiple(s.error?.Message),i(()=>new Error(s)))))}uploadNotInChannel(e,t){let a={Products:e,Channel:t};return this.httpService.post("/api/product/UploadProductNotInChannelToChannel",a).pipe(o(s=>{this.showToastrUploadMultiple(s)}),c(s=>(this.showToastrUploadMultiple(s.error?.Message),i(()=>new Error(s)))))}scanSingle(e,t){let a={ID:e,SKU:t};return this.httpService.post("/api/product/ScanSingle",a)}scanNotInChannel(e){let t={ID:e};return this.httpService.post("/api/product/ScanNotinChannel",t)}findAllSoldInChannel(e){return this.httpService.post("/api/product/GetSoldInChannel",e)}scanAll(e,t,a,s=!1){let n={ID:e,ScanFull:t,UpdatedProduct:a,Async:s};return this.httpService.post("/api/product/ScanOptimized",n)}scanCompareToPos(e){return this.httpService.post("/api/product/CompareMarketplaceToPOS",e)}getVariantCodesProduct(e){return e.Variants.map(a=>a.Code)}downloadMultipleProduct(e){let t=e.map(a=>({ChannelItemID:a.ChannelItemID,ChannelID:a.ChannelID}));return this.httpService.post("/api/product/DownloadMultipleProductFromChannel",t).pipe(o(a=>{this.toastrService.success(`${a.Count} products downloaded to POS`,"Download Complete")}))}downloadProduct(e){let t={ChannelItemID:e.ChannelItemID,ChannelID:e.ChannelID};return this.httpService.post("/api/product/DownloadProductFromChannel",t).pipe(o(()=>{this.toastrService.success("Product successfully downloaded to POS","Download Complete")}))}getVariantCodesProducts(e=[]){let t=[];return e.forEach(a=>{a.Variants.forEach(s=>{t=[...t,s.Code]})}),t}filterUnselectedChannel(e,t){let a=[];e.forEach(n=>{a=[...a,...n.Channel]});let s;if(!a||a.length==0)s=t;else{let n=[];s=t.filter(r=>(n=a.filter(p=>p.ChannelID==r.ID),n.length!==e.length))}return s}findChannelById(e,t){return t.find(a=>a.ID==e)}sortChannel(e=[]){return e.sort((t,a)=>t.TypeID<a.TypeID?1:t.TypeID===a.TypeID?0:-1)}hasSelection(e=[]){return this.selectedProduct(e).length>0}selectedProduct(e=[]){return e.filter(t=>t.selected)}hasSelectionVariant(e){return this.selectedVariantProduct(e).length>0}selectedVariantProduct(e){let t=[];return e.forEach(a=>{t=[...t,...a.Variants!=null?a.Variants.filter(s=>s.selected):""]}),t}getChannelProduct(e){let t=e.Variants,a=[];for(let s of t)if(s.Channel!=null)for(let n of s.Channel)a.filter(r=>r.ChannelID==n.ChannelID).length==0&&a.push(n);return this.sortChannel(a)}successToastrScanAllProduct(e,t,a){if(a){let s=e?.NotInPOS?.Product?e?.NotInPOS?.Product:0,n=e?.InChannel?.Product?e?.InChannel?.Product:0;this.toastrService.success(`
|
|
2
2
|
${s+n} found in ${t.Name} </br>
|
|
3
3
|
(${n} In POS + ${s} Not In Pos)
|
|
4
4
|
`,"Scan Complete!",{enableHtml:!0})}else{let s=e.InChannel?e.InChannel.Product:0;this.toastrService.success(`${s} product updates in ${t.Name} </br>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as I,I as B,aa as q,b as g,ba as M,c as y,ca as v,fa as k,fc as P,gc as E,m,r as C,ua as O}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.
|
|
1
|
+
import{$ as I,I as B,aa as q,b as g,ba as M,c as y,ca as v,fa as k,fc as P,gc as E,m,r as C,ua as O}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-3TYJJ4PH.js";import{h as b}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-GLK7UGZJ.js";function f(a,u,e,o){return new Promise((t,r)=>{a||r("IndexedDB not available");let n=a.open(u,e),i;n.onsuccess=c=>{i=n.result,t(i)},n.onerror=c=>{r(`IndexedDB error: ${n.error}`)},typeof o=="function"&&(n.onupgradeneeded=c=>{o(c,i)})})}function A(a,u,e,o,t){if(!a)return;let r=a.open(u,e);r.onupgradeneeded=n=>{let i=n.target.result;o.forEach(s=>{if(!i.objectStoreNames.contains(s.store)){let h=i.createObjectStore(s.store,s.storeConfig);s.storeSchema.forEach(d=>{h.createIndex(d.name,d.keypath,d.options)})}});let c=t&&t();c&&Object.keys(c).map(s=>parseInt(s,10)).filter(s=>s>n.oldVersion).sort((s,h)=>s-h).forEach(s=>{c[s](i,r.transaction)}),i.close()},r.onsuccess=n=>{n.target.result.close()}}function R(a,u,e){if(!a||!u||!e)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new g(o=>{try{let t=u+1,r=indexedDB.open(a,t);r.onupgradeneeded=n=>{let i=n.target.result;i.deleteObjectStore(e),i.close(),console.log("onupgradeneeded"),o.next(!0),o.complete()},r.onerror=n=>o.error(n)}catch(t){o.error(t)}})}function V(a,u){return a.objectStoreNames.contains(u)}function S(a,u,e){a||e("You need to use the openDatabase function to create a database before you query it!"),V(a,u)||e(`objectStore does not exists: ${u}`)}function p(a,u){let e=a.transaction(u.storeName,u.dbMode);return e.onerror=u.error,e.onabort=u.abort,e}function j(a,u,e,o){return{storeName:u,dbMode:a,error:t=>{e(t)},abort:t=>{e(t)}}}var x=function(a){return a.readonly="readonly",a.readwrite="readwrite",a}(x||{}),K=new M(null),_=(()=>{class a{constructor(e,o){if(this.dbConfig=e,this.platformId=o,!e.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if(!e.version)throw new Error("NgxIndexedDB: Please, provide the db version in the configuration");this.isBrowser=E(this.platformId),this.isBrowser&&(this.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,A(this.indexedDB,e.name,e.version,e.objectStoresMeta,e.migrationFactory),f(this.indexedDB,e.name).then(t=>{t.version!==e.version&&(this.dbConfig.version=t.version)}))}createObjectStore(e,o){let t=[e];A(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,t,o)}add(e,o,t){return new g(r=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{let c=p(n,j(x.readwrite,e,h=>r.error(h))).objectStore(e),s=t?c.add(o,t):c.add(o);s.onsuccess=h=>b(this,null,function*(){let d=h.target.result,l=c.get(d);l.onsuccess=w=>{r.next(w.target.result),r.complete()}})}).catch(n=>r.error(n))})}bulkAdd(e,o){let t=new Promise((r,n)=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{let s=p(i,j(x.readwrite,e,r,n)).objectStore(e),h=o.map(d=>new Promise((l,w)=>{let D=d.key;delete d.key;let $=D?s.add(d,D):s.add(d);$.onsuccess=T=>{let F=T.target.result;l(F)}}));r(Promise.all(h))}).catch(i=>n(i))});return m(t)}bulkDelete(e,o){let t=o.map(r=>new Promise((n,i)=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(c=>{let s=p(c,j(x.readwrite,e,i,n));s.objectStore(e).delete(r),s.oncomplete=()=>{this.getAll(e).pipe(B(1)).subscribe(d=>{n(d)})}}).catch(c=>i(c))}));return m(Promise.all(t))}getByKey(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{let c=p(r,j(x.readonly,e,t.error)).objectStore(e).get(o);c.onsuccess=s=>{t.next(s.target.result),t.complete()},c.onerror=s=>{t.error(s)}}).catch(r=>t.error(r))})}bulkGet(e,o){let t=o.map(r=>this.getByKey(e,r));return new g(r=>{C(t).subscribe(n=>{r.next(n),r.complete()})})}getByID(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{S(r,e,s=>t.error(s));let c=p(r,j(x.readonly,e,t.error,t.next)).objectStore(e).get(o);c.onsuccess=s=>{t.next(s.target.result)}}).catch(r=>t.error(r))})}getByIndex(e,o,t){return new g(r=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{S(n,e,d=>r.error(d));let h=p(n,j(x.readonly,e,r.error)).objectStore(e).index(o).get(t);h.onsuccess=d=>{r.next(d.target.result),r.complete()}}).catch(n=>r.error(n))})}getAll(e){return new g(o=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(t=>{S(t,e,c=>o.error(c));let i=p(t,j(x.readonly,e,o.error,o.next)).objectStore(e).getAll();i.onerror=c=>{o.error(c)},i.onsuccess=({target:{result:c}})=>{o.next(c),o.complete()}}).catch(t=>o.error(t))})}update(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{S(r,e,s=>t.error(s));let i=p(r,j(x.readwrite,e,s=>t.error(s))).objectStore(e),c=i.put(o);c.onsuccess=s=>b(this,null,function*(){let h=s.target.result,d=i.get(h);d.onsuccess=l=>{t.next(l.target.result),t.complete()}})}).catch(r=>t.error(r))})}delete(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{S(r,e,c=>t.error(c));let n=p(r,j(x.readwrite,e,c=>t.error(c)));n.objectStore(e).delete(o),n.oncomplete=()=>{this.getAll(e).pipe(B(1)).subscribe(c=>{t.next(c),t.complete()})}}).catch(r=>t.error(r))})}deleteByKey(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{S(r,e,c=>t.error(c));let n=p(r,j(x.readwrite,e,c=>t.error(c))),i=n.objectStore(e);n.oncomplete=()=>{t.next(!0),t.complete()},i.delete(o)}).catch(r=>t.error(r))})}clear(e){return new g(o=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(t=>{S(t,e,i=>o.error(i));let r=p(t,j(x.readwrite,e,i=>o.error(i)));r.objectStore(e).clear(),r.oncomplete=()=>{o.next(!0),o.complete()}}).catch(t=>o.error(t))})}deleteDatabase(){return new g(e=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>b(this,null,function*(){yield o.close();let t=this.indexedDB.deleteDatabase(this.dbConfig.name);t.onsuccess=()=>{e.next(!0),e.complete()},t.onerror=r=>e.error(r),t.onblocked=()=>{throw new Error("Unable to delete database because it's blocked")}})).catch(o=>e.error(o))})}openCursor(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{S(r,e,s=>t.error(s));let i=p(r,j(x.readonly,e,t.error)).objectStore(e),c=o===void 0?i.openCursor():i.openCursor(o);c.onsuccess=s=>{t.next(s),t.complete()}}).catch(r=>t.error(r))})}openCursorByIndex(e,o,t,r=x.readonly){let n=new y;return f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{S(i,e,l=>{n.error(l)});let d=p(i,j(r,e,l=>{n.error(l)},()=>{n.next()})).objectStore(e).index(o).openCursor(t);d.onsuccess=l=>{n.next(l)}}).catch(i=>n.error(i)),n}getAllByIndex(e,o,t){let r=[];return new g(n=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{S(i,e,l=>n.error(l));let d=p(i,j(x.readonly,e,n.error)).objectStore(e).index(o).openCursor(t);d.onsuccess=l=>{let w=l.target.result;w?(r.push(w.value),w.continue()):(n.next(r),n.complete())}}).catch(i=>n.error(i))})}getAllKeysByIndex(e,o,t){let r=[];return new g(n=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(i=>{S(i,e,l=>n.error(l));let d=p(i,j(x.readonly,e,n.error)).objectStore(e).index(o).openKeyCursor(t);d.onsuccess=l=>{let w=l.target.result;w?(r.push({primaryKey:w.primaryKey,key:w.key}),w.continue()):(n.next(r),n.complete())}}).catch(i=>n.error(i))})}count(e,o){return new g(t=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(r=>{S(r,e,s=>t.error(s));let c=p(r,j(x.readonly,e,t.error)).objectStore(e).count(o);c.onerror=s=>t.error(s),c.onsuccess=s=>{t.next(s.target.result),t.complete()}}).catch(r=>t.error(r))})}countByIndex(e,o,t){return new g(r=>{f(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{S(n,e,d=>r.error(d));let h=p(n,j(x.readonly,e,r.error)).objectStore(e).index(o).count(t);h.onerror=d=>r.error(d),h.onsuccess=d=>{r.next(d.target.result),r.complete()}}).catch(n=>r.error(n))})}deleteObjectStore(e){return R(this.dbConfig.name,++this.dbConfig.version,e)}}return a.\u0275fac=function(e){return new(e||a)(v(K),v(O))},a.\u0275prov=I({token:a,factory:a.\u0275fac}),a})(),W=(()=>{class a{static forRoot(e){return{ngModule:a,providers:[_,{provide:K,useValue:e}]}}}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=k({type:a}),a.\u0275inj=q({imports:[[P]]}),a})();export{_ as a,W as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as st,H as ct,I as dt,J as ht,K as R,P as lt,a as P,t as nt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-JWESCPR3.js";import{b as g,c as at}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-KPTAVWMG.js";import{$ as F,$a as w,A as j,Ac as rt,Ba as K,Bc as ot,Fa as m,Ga as d,Ia as W,Ja as q,La as E,Na as H,Oa as p,Qa as O,Ua as G,Va as J,Za as _,_a as S,aa as D,ba as B,c as M,db as Q,ea as C,fa as A,fc as it,ga as Y,hb as N,ia as L,ja as T,jb as y,ka as k,kb as X,lb as Z,pa as z,pb as tt,qa as U,qb as et,sc as u,tc as h,wc as a,xc as s,yc as b,za as $,zc as c}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.0/Marketplace/chunk-MGVAWFYU.js";var ut=["mat-sort-header",""];function gt(r,e){if(r&1){let n=Q();_(0,"div",3),N("@arrowPosition.start",function(){T(n);let i=y();return k(i._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){T(n);let i=y();return k(i._disableViewStateAnimation=!1)}),w(1,"div",4),_(2,"div",5),w(3,"div",6)(4,"div",7)(5,"div",8),S()()}if(r&2){let n=y();p("@arrowOpacity",n._getArrowViewState())("@arrowPosition",n._getArrowViewState())("@allowChildren",n._getArrowDirectionState()),m(2),p("@indicator",n._getArrowDirectionState()),m(1),p("@leftPointer",n._getArrowDirectionState()),m(1),p("@rightPointer",n._getArrowDirectionState())}}var St=["*"];var ft=new B("MAT_SORT_DEFAULT_OPTIONS"),vt=lt(R(class{})),wt=(()=>{let e=class e extends vt{get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=P(t)}constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new M,this.start="asc",this._direction="",this.sortChange=new q}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let i=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=bt(t.start||this.start,i),l=o.indexOf(this.direction)+1;return l>=o.length&&(l=0),o[l]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}};e.\u0275fac=function(i){return new(i||e)(d(ft,8))},e.\u0275dir=Y({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[E,L]});let r=e;return r})();function bt(r,e){let n=["asc","desc"];return r=="desc"&&n.reverse(),e||n.push(""),n}var f=dt.ENTERING+" "+ct.STANDARD_CURVE,v={indicator:u("indicator",[s("active-asc, asc",a({transform:"translateY(0px)"})),s("active-desc, desc",a({transform:"translateY(10px)"})),c("active-asc <=> active-desc",h(f))]),leftPointer:u("leftPointer",[s("active-asc, asc",a({transform:"rotate(-45deg)"})),s("active-desc, desc",a({transform:"rotate(45deg)"})),c("active-asc <=> active-desc",h(f))]),rightPointer:u("rightPointer",[s("active-asc, asc",a({transform:"rotate(45deg)"})),s("active-desc, desc",a({transform:"rotate(-45deg)"})),c("active-asc <=> active-desc",h(f))]),arrowOpacity:u("arrowOpacity",[s("desc-to-active, asc-to-active, active",a({opacity:1})),s("desc-to-hint, asc-to-hint, hint",a({opacity:.54})),s("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",a({opacity:0})),c("* => asc, * => desc, * => active, * => hint, * => void",h("0ms")),c("* <=> *",h(f))]),arrowPosition:u("arrowPosition",[c("* => desc-to-hint, * => desc-to-active",h(f,b([a({transform:"translateY(-25%)"}),a({transform:"translateY(0)"})]))),c("* => hint-to-desc, * => active-to-desc",h(f,b([a({transform:"translateY(0)"}),a({transform:"translateY(25%)"})]))),c("* => asc-to-hint, * => asc-to-active",h(f,b([a({transform:"translateY(25%)"}),a({transform:"translateY(0)"})]))),c("* => hint-to-asc, * => active-to-asc",h(f,b([a({transform:"translateY(0)"}),a({transform:"translateY(-25%)"})]))),s("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",a({transform:"translateY(0)"})),s("hint-to-desc, active-to-desc, desc",a({transform:"translateY(-25%)"})),s("hint-to-asc, active-to-asc, asc",a({transform:"translateY(25%)"}))]),allowChildren:u("allowChildren",[c("* <=> *",[ot("@*",rt(),{optional:!0})])])},I=(()=>{let e=class e{constructor(){this.changes=new M}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();function Dt(r){return r||new I}var Ct={provide:I,deps:[[new z,new U,I]],useFactory:Dt},At=R(class{}),Lt=(()=>{let e=class e extends At{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=P(t)}constructor(t,i,o,l,x,pt,_t,V){super(),this._intl=t,this._changeDetectorRef=i,this._sort=o,this._columnDef=l,this._focusMonitor=x,this._elementRef=pt,this._ariaDescriber=_t,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",V?.arrowPosition&&(this.arrowPosition=V?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let i=!!t;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){!this._isDisabled()&&(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}_handleStateChanges(){this._rerenderSubscription=j(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(i){return new(i||e)(d(I),d(W),d(wt,8),d("MAT_SORT_HEADER_COLUMN_DEF",8),d(st),d(K),d(nt,8),d(ft,8))},e.\u0275cmp=C({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,o){i&1&&N("click",function(){return o._handleClick()})("keydown",function(x){return o._handleKeydown(x)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),i&2&&(H("aria-sort",o._getAriaSortAttribute()),O("mat-sort-header-disabled",o._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[E],attrs:ut,ngContentSelectors:St,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(i,o){i&1&&(X(),_(0,"div",0)(1,"div",1),Z(2),S(),G(3,gt,6,6,"div",2),S()),i&2&&(O("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),H("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),J(3,o._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[v.indicator,v.leftPointer,v.rightPointer,v.arrowOpacity,v.arrowPosition,v.allowChildren]},changeDetection:0});let r=e;return r})(),zt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=A({type:e}),e.\u0275inj=D({providers:[Ct],imports:[ht]});let r=e;return r})();var Gt=(()=>{let e=class e{set typeId(t){this.channelLogo=at.getChannelLogoByTypeId(t),this.initChannelName(t)}constructor(){}initChannelName(t){switch(t){case g.Tokopedia:this.channelName="Tokopedia";break;case g.Tiktok:this.channelName="Tiktok";break;case g.WooCommerce:this.channelName="WooCommerce";break;case g.ShopeeV2:this.channelName="Shopee";break;case g.Lazada:this.channelName="Lazada";break;case g.KalCare:this.channelName="Kalcare";break}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=C({type:e,selectors:[["app-channel-logo"]],inputs:{typeId:"typeId"},decls:4,vars:2,consts:[[1,"d-flex","align-items-center"],[2,"width","20px",3,"src"],[1,"ms-3","fw-normal"]],template:function(i,o){i&1&&(_(0,"div",0),w(1,"img",1),_(2,"span",2),tt(3),S()()),i&2&&(m(1),p("src",o.channelLogo,$),m(2),et(o.channelName))}});let r=e;return r})();var te=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=A({type:e}),e.\u0275inj=D({imports:[it]});let r=e;return r})();export{wt as a,Lt as b,zt as c,Gt as d,te as e};
|
|
1
|
+
import{C as st,H as ct,I as dt,J as ht,K as R,P as lt,a as P,t as nt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-EM7B4QFY.js";import{b as g,c as at}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-NFCTGNSM.js";import{$ as F,$a as w,A as j,Ac as rt,Ba as K,Bc as ot,Fa as m,Ga as d,Ia as W,Ja as q,La as E,Na as H,Oa as p,Qa as O,Ua as G,Va as J,Za as _,_a as S,aa as D,ba as B,c as M,db as Q,ea as C,fa as A,fc as it,ga as Y,hb as N,ia as L,ja as T,jb as y,ka as k,kb as X,lb as Z,pa as z,pb as tt,qa as U,qb as et,sc as u,tc as h,wc as a,xc as s,yc as b,za as $,zc as c}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.1/Marketplace/chunk-3TYJJ4PH.js";var ut=["mat-sort-header",""];function gt(r,e){if(r&1){let n=Q();_(0,"div",3),N("@arrowPosition.start",function(){T(n);let i=y();return k(i._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){T(n);let i=y();return k(i._disableViewStateAnimation=!1)}),w(1,"div",4),_(2,"div",5),w(3,"div",6)(4,"div",7)(5,"div",8),S()()}if(r&2){let n=y();p("@arrowOpacity",n._getArrowViewState())("@arrowPosition",n._getArrowViewState())("@allowChildren",n._getArrowDirectionState()),m(2),p("@indicator",n._getArrowDirectionState()),m(1),p("@leftPointer",n._getArrowDirectionState()),m(1),p("@rightPointer",n._getArrowDirectionState())}}var St=["*"];var ft=new B("MAT_SORT_DEFAULT_OPTIONS"),vt=lt(R(class{})),wt=(()=>{let e=class e extends vt{get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=P(t)}constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new M,this.start="asc",this._direction="",this.sortChange=new q}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let i=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=bt(t.start||this.start,i),l=o.indexOf(this.direction)+1;return l>=o.length&&(l=0),o[l]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}};e.\u0275fac=function(i){return new(i||e)(d(ft,8))},e.\u0275dir=Y({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[E,L]});let r=e;return r})();function bt(r,e){let n=["asc","desc"];return r=="desc"&&n.reverse(),e||n.push(""),n}var f=dt.ENTERING+" "+ct.STANDARD_CURVE,v={indicator:u("indicator",[s("active-asc, asc",a({transform:"translateY(0px)"})),s("active-desc, desc",a({transform:"translateY(10px)"})),c("active-asc <=> active-desc",h(f))]),leftPointer:u("leftPointer",[s("active-asc, asc",a({transform:"rotate(-45deg)"})),s("active-desc, desc",a({transform:"rotate(45deg)"})),c("active-asc <=> active-desc",h(f))]),rightPointer:u("rightPointer",[s("active-asc, asc",a({transform:"rotate(45deg)"})),s("active-desc, desc",a({transform:"rotate(-45deg)"})),c("active-asc <=> active-desc",h(f))]),arrowOpacity:u("arrowOpacity",[s("desc-to-active, asc-to-active, active",a({opacity:1})),s("desc-to-hint, asc-to-hint, hint",a({opacity:.54})),s("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",a({opacity:0})),c("* => asc, * => desc, * => active, * => hint, * => void",h("0ms")),c("* <=> *",h(f))]),arrowPosition:u("arrowPosition",[c("* => desc-to-hint, * => desc-to-active",h(f,b([a({transform:"translateY(-25%)"}),a({transform:"translateY(0)"})]))),c("* => hint-to-desc, * => active-to-desc",h(f,b([a({transform:"translateY(0)"}),a({transform:"translateY(25%)"})]))),c("* => asc-to-hint, * => asc-to-active",h(f,b([a({transform:"translateY(25%)"}),a({transform:"translateY(0)"})]))),c("* => hint-to-asc, * => active-to-asc",h(f,b([a({transform:"translateY(0)"}),a({transform:"translateY(-25%)"})]))),s("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",a({transform:"translateY(0)"})),s("hint-to-desc, active-to-desc, desc",a({transform:"translateY(-25%)"})),s("hint-to-asc, active-to-asc, asc",a({transform:"translateY(25%)"}))]),allowChildren:u("allowChildren",[c("* <=> *",[ot("@*",rt(),{optional:!0})])])},I=(()=>{let e=class e{constructor(){this.changes=new M}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();function Dt(r){return r||new I}var Ct={provide:I,deps:[[new z,new U,I]],useFactory:Dt},At=R(class{}),Lt=(()=>{let e=class e extends At{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=P(t)}constructor(t,i,o,l,x,pt,_t,V){super(),this._intl=t,this._changeDetectorRef=i,this._sort=o,this._columnDef=l,this._focusMonitor=x,this._elementRef=pt,this._ariaDescriber=_t,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",V?.arrowPosition&&(this.arrowPosition=V?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let i=!!t;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){!this._isDisabled()&&(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}_handleStateChanges(){this._rerenderSubscription=j(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(i){return new(i||e)(d(I),d(W),d(wt,8),d("MAT_SORT_HEADER_COLUMN_DEF",8),d(st),d(K),d(nt,8),d(ft,8))},e.\u0275cmp=C({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,o){i&1&&N("click",function(){return o._handleClick()})("keydown",function(x){return o._handleKeydown(x)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),i&2&&(H("aria-sort",o._getAriaSortAttribute()),O("mat-sort-header-disabled",o._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[E],attrs:ut,ngContentSelectors:St,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(i,o){i&1&&(X(),_(0,"div",0)(1,"div",1),Z(2),S(),G(3,gt,6,6,"div",2),S()),i&2&&(O("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),H("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),J(3,o._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[v.indicator,v.leftPointer,v.rightPointer,v.arrowOpacity,v.arrowPosition,v.allowChildren]},changeDetection:0});let r=e;return r})(),zt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=A({type:e}),e.\u0275inj=D({providers:[Ct],imports:[ht]});let r=e;return r})();var Gt=(()=>{let e=class e{set typeId(t){this.channelLogo=at.getChannelLogoByTypeId(t),this.initChannelName(t)}constructor(){}initChannelName(t){switch(t){case g.Tokopedia:this.channelName="Tokopedia";break;case g.Tiktok:this.channelName="Tiktok";break;case g.WooCommerce:this.channelName="WooCommerce";break;case g.ShopeeV2:this.channelName="Shopee";break;case g.Lazada:this.channelName="Lazada";break;case g.KalCare:this.channelName="Kalcare";break}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=C({type:e,selectors:[["app-channel-logo"]],inputs:{typeId:"typeId"},decls:4,vars:2,consts:[[1,"d-flex","align-items-center"],[2,"width","20px",3,"src"],[1,"ms-3","fw-normal"]],template:function(i,o){i&1&&(_(0,"div",0),w(1,"img",1),_(2,"span",2),tt(3),S()()),i&2&&(m(1),p("src",o.channelLogo,$),m(2),et(o.channelName))}});let r=e;return r})();var te=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=A({type:e}),e.\u0275inj=D({imports:[it]});let r=e;return r})();export{wt as a,Lt as b,zt as c,Gt as d,te as e};
|