marketplacepos 3.19.0 → 3.19.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-FXSAT7QD.js → chunk-25L5GT35.js} +1 -1
- package/Marketplace/chunk-2ORPFPW3.js +1 -0
- package/Marketplace/{chunk-H7PPNAHJ.js → chunk-3VPZUSG2.js} +1 -1
- package/Marketplace/{chunk-LDQFATAB.js → chunk-5DRMEYTQ.js} +1 -1
- package/Marketplace/{chunk-DS2GU2CN.js → chunk-5HQAX7EA.js} +1 -1
- package/Marketplace/{chunk-JIBUH2RU.js → chunk-BLKYALQN.js} +1 -1
- package/Marketplace/{chunk-626K5IHH.js → chunk-CCEWQRYY.js} +1 -1
- package/Marketplace/{chunk-DSIVJYMI.js → chunk-D2WUVZXY.js} +1 -1
- package/Marketplace/{chunk-LDUXYVRJ.js → chunk-E32WLDEK.js} +1 -1
- package/Marketplace/{chunk-ULQRFCCE.js → chunk-FLVJYLMP.js} +1 -1
- package/Marketplace/{chunk-VVBW74PO.js → chunk-G2QVHX6W.js} +1 -1
- package/Marketplace/{chunk-DBJI2JPD.js → chunk-GKUGDFJC.js} +1 -1
- package/Marketplace/{chunk-LE57WB57.js → chunk-KPLNKQV4.js} +1 -1
- package/Marketplace/{chunk-PMMMRQTF.js → chunk-LFL23QXM.js} +1 -1
- package/Marketplace/{chunk-KG4XWHUW.js → chunk-LPBB2OY2.js} +1 -1
- package/Marketplace/chunk-LV34VUJQ.js +1 -0
- package/Marketplace/{chunk-ILWNPZBQ.js → chunk-MVPEM37R.js} +1 -1
- package/Marketplace/{chunk-GXTFTALU.js → chunk-MY7ARTXO.js} +1 -1
- package/Marketplace/{chunk-NW6ISHTY.js → chunk-NHI2FPN6.js} +1 -1
- package/Marketplace/chunk-O6R5T3KF.js +1 -0
- package/Marketplace/{chunk-XUJOOOT7.js → chunk-OQJWOWTI.js} +1 -1
- package/Marketplace/{chunk-AKJ4XG6V.js → chunk-OWN37Y3R.js} +1 -1
- package/Marketplace/chunk-PDJC7ISZ.js +2 -0
- package/Marketplace/chunk-SA6XH3LZ.js +1 -0
- package/Marketplace/{chunk-CDMK5VJH.js → chunk-SAEXEG4F.js} +1 -1
- package/Marketplace/{chunk-7M25O454.js → chunk-SB2DYZXB.js} +1 -1
- package/Marketplace/{chunk-QZM3EEDZ.js → chunk-WQY67NR3.js} +1 -1
- package/Marketplace/{chunk-CU5GN2LS.js → chunk-XGSCK5UN.js} +1 -1
- package/Marketplace/{chunk-ZDLDOZUM.js → chunk-XOR54KJS.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-GCBPO674.js → main-F2YQJBAZ.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-EJ55MBM5.js +0 -2
- package/Marketplace/chunk-P3AZ2BMM.js +0 -1
- package/Marketplace/chunk-RA4WGOOW.js +0 -1
- package/Marketplace/chunk-T2C7GSKK.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as u}from"./chunk-K6H25CD6.js";import{a as f}from"./chunk-
|
|
1
|
+
import{b as u}from"./chunk-K6H25CD6.js";import{a as f}from"./chunk-GKUGDFJC.js";import"./chunk-5HQAX7EA.js";import"./chunk-NVF24LK5.js";import"./chunk-KCDL7SWP.js";import{n as l}from"./chunk-3XWOT6GZ.js";import"./chunk-CTKEWRX4.js";import"./chunk-GXHE2CDH.js";import{y as d}from"./chunk-O5MOPAT5.js";import"./chunk-X4WLRMDP.js";import{Dc as n,Vc as c,Zc as m,aa as r,ga as s,ha as i,nb as a}from"./chunk-HSFUKC7R.js";import"./chunk-GNOSNGXM.js";var M=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s({type:t,selectors:[["app-report"]],decls:1,vars:0,template:function(e,O){e&1&&a(0,"router-outlet")},dependencies:[c],styles:["ul[_ngcontent-%COMP%] > li.dropdown-item[_ngcontent-%COMP%]{font-size:.6875rem!important}"]});let o=t;return o})();var y=[{path:"",component:M,children:[{path:"",redirectTo:"order",pathMatch:"full"},{path:"order",loadChildren:()=>import("./chunk-XOR54KJS.js").then(o=>o.OrderModule),canActivate:[f]}]}],C=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i({type:t}),t.\u0275inj=r({imports:[n,m.forChild(y)]});let o=t;return o})();var b=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i({type:t}),t.\u0275inj=r({imports:[n,u,C,d,l,m]});let o=t;return o})();export{b as ReportModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as H}from"./chunk-LV34VUJQ.js";import{a as V,b as G}from"./chunk-6UK5EDKC.js";import{g as q}from"./chunk-NEQN5BMS.js";import{k as A}from"./chunk-3XWOT6GZ.js";import{t as $,u as j}from"./chunk-CTKEWRX4.js";import{a as U,h as W,m as F,y as I}from"./chunk-O5MOPAT5.js";import{b as a,c as r}from"./chunk-X4WLRMDP.js";import{$a as m,$b as z,Dc as D,Ia as p,Ib as C,Kb as v,Mb as L,Nb as B,Ob as P,Pb as E,Q as b,Qb as x,Ua as d,Za as f,_ as T,_b as O,da as h,ga as _,gb as N,lb as u,mb as c,q as S,ub as y,wa as w,wb as M,xa as g,za as k,zc as R}from"./chunk-HSFUKC7R.js";function Q(s,n){if(s&1&&(u(0,"div",4),C(1),c()),s&2){let J=M();p(),v(" ",J.selectedCategoryLabel()," ")}}function X(s,n){s&1&&(u(0,"label",3),C(1,"Channel"),c())}var fe=(()=>{let n=class n{constructor(){this.multiwarehousTreeService=h(H),this.destroyRef=h(w),this.selectedCategoryLabel=d("Select a Channel"),this.disabled=d(!1),this.selectedNode=d(null),this.multiple=g(!1),this.floatingLabel=g(!1),this.onChannelChange=new k,this.channels$=this.multiwarehousTreeService.getChannelTree$().pipe(S(e=>e.map(t=>{t.children=t.children.map(i=>(i.icon="fa-solid fa-warehouse",i));let o=this.getChannelType(t.typeid);return t.icon=`custom-icon-${o}`,t.expandedIcon=null,t.collapsedIcon=null,t.styleClass=`custom-icon-${o}`,t.logo=r.getChannelLogoByTypeId(t.typeId),t})),b(1)),this.htmlBody=document.querySelector("body"),this.onChange=e=>{},this.onTouched=()=>{}}getChannelType(e){switch(e){case a.Tokopedia:return"tokopedia";case a.Shopee:return"shopee";case a.Lazada:return"lazada";case a.Shopify:return"shopify";case a.WooCommerce:return"woocommerce";case a.Tiktok:return"tiktok"}}initSelectedNode(e){this.channels$.pipe(A(this.destroyRef)).subscribe(t=>{if(this.multiple()){let o=[];for(let i of e){let l=r.searchByIdWithParentDFS(t,i),K=Object.assign({},l);o.push(K)}this.selectedNode.set(o),this.emitMultipleNodes()}else{let o=r.searchByIdWithParentDFS(t,e),i=Object.assign({},o);this.selectedNode.set(i),this.emitSingleNode(i)}})}onNodeSelect(e){let t=Object.assign({},e.node);this.multiple()?this.emitMultipleNodes():this.emitSingleNode(t)}emitMultipleNodes(){let e=Object.assign([],this.selectedNode()),t=e.map(o=>o.id);this.onChange(t),this.onChannelChange.emit(e),this.generateLabel()}emitSingleNode(e){this.onChange(e.id),this.onChannelChange.emit(e),this.generateLabel()}onNodeUnSelect(e){if(this.multiple()){let t=e.node;this.selectedNode.update(o=>o.filter(i=>i.id!==t.id)),this.emitMultipleNodes(),this.generateLabel()}}generateLabel(){let e="Select a Channel";if(this.multiple()){e="";for(let t of this.selectedNode())e+=r.getLabelPathTree(t)+", ";this.selectedCategoryLabel.set(e)}else{let t=this.selectedNode();t?(e=r.getLabelPathTree(t),this.selectedCategoryLabel.set(e)):this.selectedCategoryLabel.set(e)}}onClear(){this.onChange(null)}onClick(){let e=this.getBodyTop(),t=document.querySelector(".p-overlay.p-component"),o=e+t.getBoundingClientRect().top,i=t.getAttribute("style")||"";t.setAttribute("style",`${i} top: ${o+e}px;`)}getBodyTop(){return this.htmlBody.getBoundingClientRect().top*-1}writeValue(e){r.IsNotEmpty(e)&&this.initSelectedNode(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled.set(e)}};n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=_({type:n,selectors:[["multiwarehouse-tree-select"]],inputs:{multiple:[1,"multiple"],floatingLabel:[1,"floatingLabel"]},outputs:{onChannelChange:"onChannelChange"},standalone:!0,features:[E([{provide:U,useExisting:T(()=>n),multi:!0}]),x],decls:5,vars:8,consts:[["matTooltipPosition","above",1,"p-float-label",3,"matTooltip"],["appendTo","body","containerStyleClass","w-100","id","selectChannel",1,"multiwarehouse-select",3,"click","ngModelChange","onNodeSelect","onClear","onNodeUnselect","filter","options","ngModel","selectionMode"],["pTemplate","value","type","default"],["for","selectChannel"],["matTooltipPosition","above"]],template:function(t,o){t&1&&(u(0,"span",0)(1,"p-treeSelect",1),O(2,"async"),y("click",function(){return o.onClick()}),P("ngModelChange",function(l){return B(o.selectedNode,l)||(o.selectedNode=l),l}),y("onNodeSelect",function(l){return o.onNodeSelect(l)})("onClear",function(){return o.onClear()})("onNodeUnselect",function(l){return o.onNodeUnSelect(l)}),f(3,Q,2,1,"ng-template",2),c(),f(4,X,2,0,"label",3),c()),t&2&&(m("matTooltip",o.selectedCategoryLabel()),p(),m("filter",!0)("options",z(2,6,o.channels$)),L("ngModel",o.selectedNode),m("selectionMode",o.multiple()?"multiple":"single"),p(3),N(o.floatingLabel()?4:-1))},dependencies:[D,R,G,V,q,I,W,F,j,$],styles:["[_nghost-%COMP%] .p-treeselect{width:100%;display:inline-flex;border:1px solid #ced4da;font-size:.875rem!important} .p-element .p-icon-wrapper{width:14px} .p-float-label .multiwarehouse-select .p-treeselect{padding:7px!important;min-height:.6rem!important} .custom-icon-tokopedia .p-treenode-icon, .custom-icon-shopee .p-treenode-icon, .custom-icon-woocommerce .p-treenode-icon, .custom-icon-lazada .p-treenode-icon, .custom-icon-tiktok .p-treenode-icon, .custom-icon-shopify .p-treenode-icon{background-size:contain;background-repeat:no-repeat;width:20px;height:20px;display:inline-block} .custom-icon-tokopedia .p-treenode-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png)} .custom-icon-woocommerce .p-treenode-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp)} .custom-icon-shopee .p-treenode-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png)} .custom-icon-tiktok .p-treenode-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png)} .custom-icon-lazada .p-treenode-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/v1680681836/icons/marketplace_icons/Lazadanew.png)} .custom-icon-shopify .p-treenode-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/v1707987435/icons/marketplace_icons/shopify.png)} .custom-icon-shopee .fa-warehouse.p-treenode-icon, .custom-icon-tiktok .fa-warehouse.p-treenode-icon, .custom-icon-tokopedia .fa-warehouse.p-treenode-icon, .custom-icon-lazada .fa-warehouse.p-treenode-icon, .custom-icon-shopify .fa-warehouse.p-treenode-icon, .custom-icon-woocommerce .fa-warehouse.p-treenode-icon{background-image:none!important;display:inline-block!important}"]});let s=n;return s})();export{fe as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ue}from"./chunk-PBJG5QAA.js";import"./chunk-6U6JR5K6.js";import{a as Mi}from"./chunk-BVIRHZTZ.js";import{a as be,b as xe,c as Yi}from"./chunk-CHPESC5O.js";import{a as Se}from"./chunk-4URWFKAM.js";import{b as nn}from"./chunk-FMYZSZEX.js";import"./chunk-GP6U42SV.js";import"./chunk-W3POM6UQ.js";import{a as rn,b as on,c as ln,d as sn,e as pn,f as cn,g as dn}from"./chunk-KGSUB5OH.js";import"./chunk-XNGU3O4O.js";import{a as ji,b as Ui}from"./chunk-K6H25CD6.js";import"./chunk-3TNPJNQS.js";import{a as Be,b as mn,c as Ct,d as un,e as hn,f as _n,g as Rt,h as vt,i as De,k as b,l as gn,m as rt,n as Qt,o as Jt,p as Ht,q as fn,r as Cn,s as Xt,t as Wt,u as vn}from"./chunk-NEQN5BMS.js";import{a as yn,b as bn}from"./chunk-4QK7Y7R2.js";import{a as we,b as zi}from"./chunk-KRKQFGMS.js";import{f as Qi,g as Ji,h as Xi,i as en,j as tn}from"./chunk-44IWQ2WK.js";import{a as Zi}from"./chunk-WVKDNFEM.js";import"./chunk-73DE2GZF.js";import{a as me}from"./chunk-I7OLAB5O.js";import{b as an}from"./chunk-VZHIFACR.js";import{b as qi}from"./chunk-4YCZLOHQ.js";import{a as Gi,b as Ki,c as $i}from"./chunk-RVVTVU4B.js";import{a as Ae}from"./chunk-
|
|
1
|
+
import{a as ue}from"./chunk-PBJG5QAA.js";import"./chunk-6U6JR5K6.js";import{a as Mi}from"./chunk-BVIRHZTZ.js";import{a as be,b as xe,c as Yi}from"./chunk-CHPESC5O.js";import{a as Se}from"./chunk-4URWFKAM.js";import{b as nn}from"./chunk-FMYZSZEX.js";import"./chunk-GP6U42SV.js";import"./chunk-W3POM6UQ.js";import{a as rn,b as on,c as ln,d as sn,e as pn,f as cn,g as dn}from"./chunk-KGSUB5OH.js";import"./chunk-XNGU3O4O.js";import{a as ji,b as Ui}from"./chunk-K6H25CD6.js";import"./chunk-3TNPJNQS.js";import{a as Be,b as mn,c as Ct,d as un,e as hn,f as _n,g as Rt,h as vt,i as De,k as b,l as gn,m as rt,n as Qt,o as Jt,p as Ht,q as fn,r as Cn,s as Xt,t as Wt,u as vn}from"./chunk-NEQN5BMS.js";import{a as yn,b as bn}from"./chunk-4QK7Y7R2.js";import{a as we,b as zi}from"./chunk-KRKQFGMS.js";import{f as Qi,g as Ji,h as Xi,i as en,j as tn}from"./chunk-44IWQ2WK.js";import{a as Zi}from"./chunk-WVKDNFEM.js";import"./chunk-73DE2GZF.js";import{a as me}from"./chunk-I7OLAB5O.js";import{b as an}from"./chunk-VZHIFACR.js";import{b as qi}from"./chunk-4YCZLOHQ.js";import{a as Gi,b as Ki,c as $i}from"./chunk-RVVTVU4B.js";import{a as Ae}from"./chunk-GKUGDFJC.js";import"./chunk-M4JG6342.js";import"./chunk-6NTRXLMW.js";import{a as ve,b as ye,c as Vi,d as de,e as Oi}from"./chunk-ACYUSHMS.js";import{f as Pe,g as ce}from"./chunk-5HQAX7EA.js";import{b as nt,e as q}from"./chunk-NVF24LK5.js";import"./chunk-KCDL7SWP.js";import{b as Ai,d as at,e as Bi,f as Ri,g as Hi,m as re,n as Wi}from"./chunk-3XWOT6GZ.js";import{t as Fi,u as Li}from"./chunk-CTKEWRX4.js";import{P as Ni}from"./chunk-GXHE2CDH.js";import{a as Ii,b as At,c as pe,h as ee,m as te,o as Ce,y as Bt}from"./chunk-O5MOPAT5.js";import{b as F,c as A}from"./chunk-X4WLRMDP.js";import{$ as He,$a as m,$b as z,Ab as xi,Ac as G,B as mi,Bb as Mt,Cb as Et,Cc as se,Db as Ke,Dc as Ee,Eb as $e,Ha as j,Hb as Y,Ia as s,Ib as c,Ja as w,Jb as y,Kb as k,Lb as wi,Mb as I,Nb as M,Oa as fi,Ob as E,Pa as Ci,Pb as Pt,Q as Ge,Qb as ge,Rb as le,Sb as ne,T as ui,Tb as J,Ua as vi,Uc as Ft,Vc as ki,Wa as tt,Wb as Si,X as Xe,Xb as Ti,Xc as fe,Ya as ht,Za as f,Zc as Lt,_ as hi,_a as B,_b as N,aa as We,ab as yi,ac as X,ad as Ei,bb as kt,bc as ae,bd as gt,ca as Ie,db as _e,ed as qe,fd as Pi,ga as L,gb as Zt,ha as Ye,hd as ft,ia as _i,jc as Di,kc as O,lb as r,lc as Me,mb as o,na as gi,nb as C,oa as h,ob as S,pa as _,pb as T,q as ie,qa as Fe,qb as Le,ra as qt,rb as D,rc as Vt,sa as et,tc as ze,ub as v,vc as $,w as di,wb as p,wc as U,xb as It,xc as Ot,ya as ut,yb as _t,yc as Nt,za as Q,zb as bi,zc as it}from"./chunk-HSFUKC7R.js";import{a as pi,b as ci}from"./chunk-GNOSNGXM.js";var xn=(()=>{let l=class l{constructor(){this.ObjectOrderTabs=[{Title:"1 - New Order",Url:"/menu/Order/new",Permissions:[]},{Title:"2 - Ready to Ship",Url:"/menu/Order/ready_to_ship",Permissions:[]},{Title:"3 - Shipped",Url:"/menu/Order/Shipped",Permissions:[]},{Title:"4 - Completed",Url:"/menu/Order/Delivered",Permissions:[]},{Title:"All",Url:"/menu/Order/All",Permissions:[]},{Title:"99 - Cancelled",Url:"/menu/Order/Cancelled",Permissions:[]},{Title:"Download",Url:"/menu/Order/Download",Permissions:[Mi.downloadOrder]}]}ngOnInit(){}};l.\u0275fac=function(i){return new(i||l)},l.\u0275cmp=L({type:l,selectors:[["app-orders"]],decls:5,vars:2,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs","usePermissions"]],template:function(i,n){i&1&&(r(0,"nav",0)(1,"div",1)(2,"div"),C(3,"nav-tab",2),o()()(),C(4,"router-outlet")),i&2&&(s(3),m("Tabs",n.ObjectOrderTabs)("usePermissions",!0))},dependencies:[ji,ki]});let a=l;return a})();var wn=(()=>{let l=class l{constructor(){}convertToCSV(t,i){let n;if(typeof t=="string")n=t;else{var d=typeof t=="object"?t:JSON.parse(t);n=this.transformToCSVStringFormat(d)}this.downloadCSV(n,i)}transformToCSVStringFormat(t){if(!t||!t.length)return;let i=",",n=Object.keys(t[0]);return t.map(g=>n.map(u=>{let x=g[u]===null||g[u]===void 0?"":g[u];return x=x instanceof Date?x.toLocaleString():x.toString().replace(/"/g,'""'),x.search(/("|,|\n)/g)>=0&&(x=`"${x}"`),x}).join(i)).join(`
|
|
2
2
|
`)}downloadCSV(t,i){var n=new Blob([t],{type:"text/csv;charset=utf8;"}),d=document.createElement("a");d.setAttribute("href",window.URL.createObjectURL(n)),d.setAttribute("download",i),document.body.appendChild(d),d.click(),document.body.removeChild(d)}};l.\u0275fac=function(i){return new(i||l)},l.\u0275prov=He({token:l,factory:l.\u0275fac,providedIn:"root"});let a=l;return a})();var ot=(()=>{let l=class l{constructor(t,i){this.http=t,this.exportService=i}loadInitialPage(){return this.http.post("/api/ordersLoader/GetOrder",{})}getNewOrders(t){return this.http.post("/api/orders/GetNewOrder",t).pipe(ie(i=>i.Data))}getTotalNewOrders(t,i,n){let d={ListChannelID:t,From:i,To:n};return this.http.post("/api/orders/GetCountNewOrder",d).pipe(ie(g=>g.Count))}exportOrders(t,i){return this.http.post("api/Orders/ExportOrder",t).pipe(Xe(n=>{this.exportService.convertToCSV(n,i)}))}};l.\u0275fac=function(i){return new(i||l)(Ie(q),Ie(wn))},l.\u0275prov=He({token:l,factory:l.\u0275fac});let a=l;return a})();var Yt=(()=>{let l=class l{constructor(t,i){this.http=t,this.toastr=i}acceptTokopediaOrders(t){return this.http.post("/api/Orders/AcceptOrderTokopedia",t).pipe(Xe(i=>{this.tokopediaAcceptOrderHandler(i)}))}tokopediaAcceptOrderHandler(t){let i=t.filter(d=>d.Status==!1),n=t.filter(d=>d.Status==!0);if(i.length==0&&n.length>0){let d=`<ol>${this.generateSuccessMessage(n)}</ol>`;this.toastr.success(d,"Success",{enableHtml:!0})}else if(i.length>0&&n.length>0){let d=`<ol>
|
|
3
3
|
${this.generateSuccessMessage(n)}
|
|
4
4
|
${this.generateErrorMessage(i)}
|