marketplacepos 26.26.0 → 26.26.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-76L5J5VS.js → chunk-24JNSQE3.js} +1 -1
- package/Marketplace/{chunk-Y3C4XFNC.js → chunk-27QGJRWO.js} +1 -1
- package/Marketplace/{chunk-AQHIJCBA.js → chunk-3CGYCY7J.js} +1 -1
- package/Marketplace/{chunk-OPQ5F4KL.js → chunk-3D2K3N7B.js} +1 -1
- package/Marketplace/{chunk-WIJXVRR7.js → chunk-3DKJ7AB4.js} +1 -1
- package/Marketplace/{chunk-KEWMW42S.js → chunk-3FFHVVJD.js} +1 -1
- package/Marketplace/{chunk-7EKMHOIS.js → chunk-3U57ENY4.js} +1 -1
- package/Marketplace/{chunk-K7GKYS4V.js → chunk-4EQIDZSW.js} +1 -1
- package/Marketplace/{chunk-O5ZDGFSS.js → chunk-5G3SOTMW.js} +1 -1
- package/Marketplace/{chunk-SSNJVWLC.js → chunk-5K6V2ZLH.js} +1 -1
- package/Marketplace/{chunk-2NXHDVMU.js → chunk-6NC6RN2H.js} +1 -1
- package/Marketplace/{chunk-DCLGPLVP.js → chunk-6TV22UB5.js} +1 -1
- package/Marketplace/{chunk-OE5B6FJP.js → chunk-6VQ4UZHF.js} +1 -1
- package/Marketplace/{chunk-E3YNHJ5K.js → chunk-AKGBV73W.js} +1 -1
- package/Marketplace/{chunk-7LJVQ3PR.js → chunk-ARQHKGJ7.js} +1 -1
- package/Marketplace/{chunk-WA4G7HII.js → chunk-CEQHHV7X.js} +1 -1
- package/Marketplace/{chunk-VKLH6F7O.js → chunk-CKMDDDQH.js} +1 -1
- package/Marketplace/{chunk-TCNDVA6S.js → chunk-CZRBNNGF.js} +1 -1
- package/Marketplace/{chunk-TSBDKSW3.js → chunk-E3SJ6BC5.js} +1 -1
- package/Marketplace/{chunk-MPCSCQVK.js → chunk-EQYJIMJ5.js} +1 -1
- package/Marketplace/{chunk-T7W7AYMK.js → chunk-FP7C5XYP.js} +1 -1
- package/Marketplace/{chunk-IKVUTHAO.js → chunk-G3LSB3HQ.js} +1 -1
- package/Marketplace/{chunk-BDQ4CBXC.js → chunk-GAXXSWBS.js} +1 -1
- package/Marketplace/{chunk-UWD2FHXK.js → chunk-GJ6JB63X.js} +1 -1
- package/Marketplace/{chunk-XXDAYWFJ.js → chunk-GT2QKLB4.js} +1 -1
- package/Marketplace/{chunk-GAVLRG4D.js → chunk-GXSFZXHZ.js} +1 -1
- package/Marketplace/{chunk-LWDLX2VL.js → chunk-H23KBYTO.js} +1 -1
- package/Marketplace/{chunk-6XB4CMAT.js → chunk-HUFK46IK.js} +1 -1
- package/Marketplace/{chunk-TVDWPMIH.js → chunk-HYBEFK4S.js} +1 -1
- package/Marketplace/{chunk-LA2MZPCY.js → chunk-JOGBI2SA.js} +1 -1
- package/Marketplace/{chunk-7LMLPKX5.js → chunk-JQDNWZTJ.js} +1 -1
- package/Marketplace/{chunk-NG4GMTOZ.js → chunk-K3VA4ROF.js} +1 -1
- package/Marketplace/{chunk-6WM2SWBG.js → chunk-K3VUM6YM.js} +1 -1
- package/Marketplace/{chunk-C6KJCWU4.js → chunk-KZHDSV4P.js} +1 -1
- package/Marketplace/{chunk-DI6ZCRNT.js → chunk-LRB64NEN.js} +1 -1
- package/Marketplace/{chunk-L4NWLKSB.js → chunk-LVGWG4MZ.js} +1 -1
- package/Marketplace/{chunk-CZ3VFAB5.js → chunk-MC4F5NDL.js} +1 -1
- package/Marketplace/{chunk-IFJOFBGT.js → chunk-MIOXW5XE.js} +1 -1
- package/Marketplace/{chunk-MEMVRZYW.js → chunk-MJQOG5XU.js} +1 -1
- package/Marketplace/{chunk-OUDWTRBQ.js → chunk-N2OPWZCU.js} +1 -1
- package/Marketplace/{chunk-UGSYT3NP.js → chunk-O7YZKCKY.js} +2 -2
- package/Marketplace/{chunk-7OE6AKRK.js → chunk-PGSLKFYO.js} +1 -1
- package/Marketplace/{chunk-ZFJRIOOO.js → chunk-PH3GLNOR.js} +1 -1
- package/Marketplace/{chunk-6U2AKSU5.js → chunk-Q27NRFPT.js} +1 -1
- package/Marketplace/{chunk-6MGWOV5M.js → chunk-QSFUCVL2.js} +1 -1
- package/Marketplace/{chunk-Z5X6KXNK.js → chunk-RFEF7H7V.js} +1 -1
- package/Marketplace/{chunk-UBYGOWJM.js → chunk-RHKWMIKP.js} +1 -1
- package/Marketplace/{chunk-A3ITOAAM.js → chunk-SL2PSZRS.js} +1 -1
- package/Marketplace/{chunk-T7Z7B6EJ.js → chunk-SYRFTBNP.js} +1 -1
- package/Marketplace/{chunk-PV5EGEIY.js → chunk-TFDHSBTR.js} +1 -1
- package/Marketplace/{chunk-T3GJY3UG.js → chunk-TYZ4337M.js} +1 -1
- package/Marketplace/{chunk-EI3WKQQL.js → chunk-VC2EGFG4.js} +1 -1
- package/Marketplace/{chunk-HHC6VK4C.js → chunk-W4MWTHWE.js} +1 -1
- package/Marketplace/{chunk-MBHSOG7Q.js → chunk-WLSDANQB.js} +1 -1
- package/Marketplace/{chunk-L7RL5FTD.js → chunk-WRFXAYX5.js} +1 -1
- package/Marketplace/{chunk-L2ATCDBD.js → chunk-YAEHR342.js} +1 -1
- package/Marketplace/{chunk-AASW6PZJ.js → chunk-Z3GUFYL5.js} +1 -1
- package/Marketplace/{chunk-GTLOGZP3.js → chunk-ZRRCHDOG.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-DISUIUIE.js → main-KIFH45ES.js} +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-66YHNWRR.js";var o=[{path:"",loadComponent(){return import("./chunk-6SCWPWLK.js").then(t=>t.OrdersV2Component)},children:[{path:"to-ship",loadComponent(){return import("./chunk-
|
|
1
|
+
import"./chunk-66YHNWRR.js";var o=[{path:"",loadComponent(){return import("./chunk-6SCWPWLK.js").then(t=>t.OrdersV2Component)},children:[{path:"to-ship",loadComponent(){return import("./chunk-3D2K3N7B.js").then(t=>t.ReadyToShipComponent)},title:"To Ship"},{path:"awaiting-collection",loadComponent(){return import("./chunk-K3VUM6YM.js").then(t=>t.AwaitingCollectionComponent)},title:"Awaiting Collection"},{path:"shipped",loadComponent(){return import("./chunk-3DKJ7AB4.js").then(t=>t.ShippedComponent)},title:"Shipped"},{path:"completed",loadComponent(){return import("./chunk-W4MWTHWE.js").then(t=>t.CompletedComponent)},title:"Completed"},{path:"all",loadComponent(){return import("./chunk-TYZ4337M.js").then(t=>t.AllComponent)},title:"All Orders"},{path:"cancelled",loadComponent(){return import("./chunk-6TV22UB5.js").then(t=>t.CancelledComponent)},title:"Cancelled"},{path:"download",loadComponent(){return import("./chunk-FP7C5XYP.js").then(t=>t.DownloadV2Component)},title:"Download"},{path:"log",loadComponent(){return import("./chunk-EQYJIMJ5.js").then(t=>t.DownloadOrderLogComponent)},title:"Download Log"},{path:"log/detail",loadComponent(){return import("./chunk-GLL2GK36.js").then(t=>t.DownloadOrderDetailComponent)},title:"Download Log Detail"},{path:"",pathMatch:"full",redirectTo:"to-ship"}]}];export{o as routes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-3FFHVVJD.js";import{a as d}from"./chunk-N5UVIRO3.js";import"./chunk-MWUZF6ZW.js";import"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import"./chunk-PH3GLNOR.js";import"./chunk-MVOOS53M.js";import"./chunk-QXRG5XYP.js";import"./chunk-5XPG2TEC.js";import"./chunk-I4MUFYEG.js";import"./chunk-NNVT5X6O.js";import"./chunk-EISQQYRT.js";import"./chunk-34FX4M3J.js";import"./chunk-M5YUVUTR.js";import{c as m}from"./chunk-RRBAJSPM.js";import"./chunk-D7WVAWLI.js";import"./chunk-MLQKT6FW.js";import"./chunk-ASFPLYOZ.js";import{Eb as i,Ga as a,ic as l,jc as p,kc as c,lc as o,mb as r}from"./chunk-KCXC4XYC.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var h=(()=>{class t{constructor(){this.ObjectlogTabs=a([{Title:"Channel Push Log Exception",Url:"/menu/log/exception"},{Title:"Channel Push Log",Url:"/menu/log/rawlog"},{Title:"POS Sync Order Log",Url:"/menu/log/order"},{Title:"Inventory Sync ",Url:"/menu/log/inventory"},{Title:"Authorization Log ",Url:"/menu/log/authorization-log"},{Title:"Flush Cache ",Url:"/menu/log/flush-cache"}])}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=i({type:t,selectors:[["app-logs"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(n,s){n&1&&(p(0,"nav",0)(1,"div",1)(2,"div"),o(3,"nav-tab",2),c()()(),o(4,"router-outlet")),n&2&&(r(3),l("Tabs",s.ObjectlogTabs()))},dependencies:[d,m],encapsulation:2,changeDetection:0})}}return t})();var T=[{path:"",component:h,children:[{path:"",redirectTo:"exception",pathMatch:"full"},{path:"order",loadComponent(){return import("./chunk-RHKWMIKP.js").then(t=>t.OrderComponent)},canActivate:[e],data:{title:"Order Log"}},{path:"inventory/sync-inventory",loadComponent(){return import("./chunk-6VQ4UZHF.js").then(t=>t.InventoryLogComponent)},canActivate:[e],data:{title:"Product Inventory Sync"}},{path:"rawlog",loadComponent(){return import("./chunk-KZHDSV4P.js").then(t=>t.RawLogComponent)},canActivate:[e],data:{title:"Raw Log"}},{path:"rawlog/detail",loadComponent(){return import("./chunk-NYZCZKVR.js").then(t=>t.RawDetailComponent)},canActivate:[e],data:{title:"Raw Log Detail"}},{path:"inventory/sync-inventory/detail",loadComponent(){return import("./chunk-XDMW4WCU.js").then(t=>t.InventoryDetailComponent)},canActivate:[e],data:{title:"Product Inventory Sync Detail"}},{path:"order/detail",loadComponent(){return import("./chunk-35NXZ6CO.js").then(t=>t.OrderdetailComponent)},canActivate:[e],data:{title:"Order Details"}},{path:"order/detail-user",loadComponent(){return import("./chunk-GDXMRTPG.js").then(t=>t.OrderdetailUserComponent)},canActivate:[e],data:{title:"Order User Details"}},{path:"exception",loadComponent(){return import("./chunk-WLSDANQB.js").then(t=>t.ExceptionLogComponent)},canActivate:[e],data:{title:"Exception Log"}},{path:"exception/detail",loadComponent(){return import("./chunk-N2OPWZCU.js").then(t=>t.ExceptionDetailComponent)},canActivate:[e],data:{title:"Exception Log Detail"}},{path:"inventory",loadComponent:()=>import("./chunk-2IHYISMS.js").then(t=>t.InventoryAsyncLogComponent),canActivate:[e],data:{title:"Product Inventory Sync"}},{path:"inventory/detail",loadComponent:()=>import("./chunk-TD3AK63C.js").then(t=>t.InventoryAsyncDetailComponent),canActivate:[e],data:{title:"Product Inventory Sync Detail"}},{path:"authorization-log",loadComponent(){return import("./chunk-VC2EGFG4.js").then(t=>t.ChannelLogComponent)},canActivate:[e],data:{title:"Authorization Log"}},{path:"flush-cache",loadComponent(){return import("./chunk-WMHHX2LJ.js").then(t=>t.FlushCacheComponent)},canActivate:[e],data:{title:"Flush Cache"}}]}];export{T as routes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-3FFHVVJD.js";import{a as m}from"./chunk-N5UVIRO3.js";import"./chunk-MWUZF6ZW.js";import"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import"./chunk-PH3GLNOR.js";import"./chunk-MVOOS53M.js";import"./chunk-QXRG5XYP.js";import"./chunk-5XPG2TEC.js";import"./chunk-I4MUFYEG.js";import"./chunk-NNVT5X6O.js";import"./chunk-EISQQYRT.js";import"./chunk-34FX4M3J.js";import"./chunk-M5YUVUTR.js";import{c as i}from"./chunk-RRBAJSPM.js";import"./chunk-D7WVAWLI.js";import"./chunk-MLQKT6FW.js";import"./chunk-ASFPLYOZ.js";import{Eb as a,ic as l,jc as p,kc as c,lc as o,mb as r}from"./chunk-KCXC4XYC.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var g=(()=>{class n{constructor(){this.channelTabs=[{Title:"Channel",Url:"/menu/channel/marketplace"},{Title:"POS",Url:"/menu/channel/pos"}]}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=a({type:n,selectors:[["app-channels"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(e,u){e&1&&(p(0,"nav",0)(1,"div",1)(2,"div"),o(3,"nav-tab",2),c()()(),o(4,"router-outlet")),e&2&&(r(3),l("Tabs",u.channelTabs))},dependencies:[m,i],styles:[".form-label-group[_ngcontent-%COMP%]{position:relative;margin-bottom:1rem}.form-label-group[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-radius:.25rem!important;border-color:#c8d3df}.form-label-group[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus{border:solid 1.5px #1A73E8!important}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{width:auto;position:absolute;top:1.125rem;left:.75rem;display:block;margin-bottom:0;line-height:1.5;color:#ccc;pointer-events:none;cursor:text;border:1px solid transparent;border-radius:.25rem;transition:all .1s ease-in-out;font-size:.875rem}.form-label-group[_ngcontent-%COMP%] > textarea[_ngcontent-%COMP%]{padding:.75rem;color:#343434;resize:both;font-size:.875rem;border-radius:.25rem;border-color:#c8d3df}.form-label-group[_ngcontent-%COMP%] > textarea[_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%]{top:.9375rem}.form-label-group[_ngcontent-%COMP%] > textarea[_ngcontent-%COMP%]:focus{border:solid 1.5px #1A73E8!important}.form-label-group[_ngcontent-%COMP%] > textarea[_ngcontent-%COMP%]:focus ~ label[_ngcontent-%COMP%]{top:1rem;left:.78125rem}.form-label-group[_ngcontent-%COMP%] > ng-select[_ngcontent-%COMP%] .ng-select-container{min-height:3.625rem;border-color:#c8d3df;box-shadow:none}.form-label-group[_ngcontent-%COMP%] > ng-select[_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%]{display:inline-block;top:-.625rem;background-color:#fff;font-size:.75rem!important;color:#9da2a6;padding:0 .25rem;z-index:1002;left:.5rem}.form-label-group.multiple[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%] .ng-input{padding-left:.25rem!important}.form-label-group.multiple[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%] .ng-placeholder{top:18px!important}.form-label-group.radio[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;border-radius:.25rem!important;border:solid 1px #c8d3df}.form-label-group.radio[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:.75rem!important;top:-10px!important;padding:0 .25rem;left:.5rem}.form-label-group.empty[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%]{display:none}.form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder, .form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-ms-input-placeholder, .form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-ms-input-placeholder, .form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder, .form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder, .form-label-group[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::-webkit-input-placeholder, .form-label-group[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:-ms-input-placeholder, .form-label-group[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::-ms-input-placeholder, .form-label-group[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::-moz-placeholder, .form-label-group[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::placeholder{color:transparent}.form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:placeholder-shown) ~ label[_ngcontent-%COMP%], .form-label-group[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:not(:placeholder-shown) ~ label[_ngcontent-%COMP%]{background-color:#fff;font-size:.75rem!important;color:#9da2a6;top:-10px!important;padding:0 .25rem;left:.5rem}.form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:placeholder-shown):focus ~ label[_ngcontent-%COMP%], .form-label-group[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:not(:placeholder-shown):focus ~ label[_ngcontent-%COMP%]{color:#3f8aec}.form-label-group[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%] .ng-placeholder{padding-left:.25rem;color:#ccc!important;font-size:.875rem}.form-label-group[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%] .ng-has-value .ng-value{padding-left:.25rem;font-size:.875rem}.form-label-group[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%] .ng-value-container{overflow:initial!important}.form-label-group[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%] .ng-input{top:auto!important;padding-left:.875rem!important;font-size:.875rem}"]})}}return n})();var b=[{path:"",component:g,children:[{path:"",redirectTo:"marketplace",pathMatch:"full"},{path:"marketplace",loadComponent(){return import("./chunk-G3YBC4DU.js").then(n=>n.MarketplaceComponent)},canActivate:[t],data:{title:"List"}},{path:"marketplace/form",loadComponent(){return import("./chunk-5PZK3DVD.js").then(n=>n.MarketplaceFormComponent)},canActivate:[t],data:{title:"Add new Channel"}},{path:"marketplace/view",loadComponent(){return import("./chunk-BHYA4FRV.js").then(n=>n.MarketplaceViewComponent)},canActivate:[t],data:{title:"Marketplace View"}},{path:"marketplace/add",loadComponent(){return import("./chunk-57KM76KQ.js").then(n=>n.MarketplaceAddComponent)},canActivate:[t],data:{title:"Marketplace Add"}},{path:"pos",loadComponent(){return import("./chunk-5CFGYX3G.js").then(n=>n.PosComponent)},canActivate:[t],data:{title:"POS"}},{path:"pos/edit",loadComponent(){return import("./chunk-F3FRYUZS.js").then(n=>n.EditComponent)},canActivate:[t],data:{title:"POS Edit"}}]}];export{b as routes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ge,b as Ce}from"./chunk-Y7VFQ376.js";import{a as pe,b as ce,c as ue}from"./chunk-CKU644YK.js";import{a as he}from"./chunk-A3ITOAAM.js";import{a as O}from"./chunk-HDI4BETR.js";import{a as _e}from"./chunk-4MYXPN55.js";import"./chunk-LCIOJHJ4.js";import"./chunk-FDYHLFQ3.js";import{a as me}from"./chunk-7LJVQ3PR.js";import"./chunk-GK6WYUPQ.js";import"./chunk-WXZ5XRM6.js";import"./chunk-BDUUVK5L.js";import"./chunk-L2ENNT5V.js";import{a as de}from"./chunk-ZA4X34GE.js";import"./chunk-IFFI5CMD.js";import{a as se}from"./chunk-OJ4GCASY.js";import"./chunk-RVHJIVQ5.js";import"./chunk-MKENTZJA.js";import"./chunk-V3PUPGL5.js";import"./chunk-2SCD4QZY.js";import"./chunk-K227XGG2.js";import"./chunk-PRLMMKRO.js";import"./chunk-MMGI42DQ.js";import"./chunk-2QRSAAJG.js";import"./chunk-ACIMXBIC.js";import"./chunk-3ANHDTTL.js";import"./chunk-YYY663CV.js";import"./chunk-N77J6LFN.js";import"./chunk-TRTDBHQI.js";import{b as ae}from"./chunk-5DRZPE5O.js";import"./chunk-MZRZ7VV3.js";import"./chunk-M65GNQVQ.js";import{a as le}from"./chunk-MWUZF6ZW.js";import"./chunk-GF2RVIIT.js";import"./chunk-ITKXL7DT.js";import"./chunk-4AL6NJY5.js";import"./chunk-YOYMZEPB.js";import"./chunk-56UGSRXX.js";import"./chunk-UB22GZAR.js";import"./chunk-F7RHG53H.js";import"./chunk-X22WXNSF.js";import"./chunk-P6EDV7BS.js";import"./chunk-TVKTNDDY.js";import"./chunk-DGB7L5EQ.js";import"./chunk-7YP3O2JY.js";import"./chunk-BKB3Y5UC.js";import"./chunk-TPJEJZPT.js";import"./chunk-ISRTMJUH.js";import"./chunk-2VWSIT3Y.js";import"./chunk-2PONPJQD.js";import{b as re}from"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import"./chunk-ZFJRIOOO.js";import"./chunk-MVOOS53M.js";import"./chunk-QXRG5XYP.js";import"./chunk-5XPG2TEC.js";import"./chunk-I4MUFYEG.js";import{b as X}from"./chunk-NNVT5X6O.js";import{A as oe,b as Z,c as ee,h as te,m as ie,o as ne}from"./chunk-P6BSXX22.js";import"./chunk-EISQQYRT.js";import"./chunk-34FX4M3J.js";import{b as Y}from"./chunk-M5YUVUTR.js";import"./chunk-RRBAJSPM.js";import"./chunk-D7WVAWLI.js";import{B as J,D as K}from"./chunk-MLQKT6FW.js";import"./chunk-ASFPLYOZ.js";import{$c as j,Dc as D,Eb as P,Ec as L,Fc as A,Ga as T,Nc as z,Oc as s,Pc as v,Qc as b,Sc as B,Tc as H,Uc as W,Vc as $,Wc as Q,Xc as R,bc as f,bd as q,dc as S,ec as N,gc as k,hc as I,ic as p,jc as t,kb as F,kc as n,kd as w,lc as h,ld as E,mb as l,md as U,na as x,sc as y,sd as G,ua as d,va as m,xc as _,zc as c}from"./chunk-KCXC4XYC.js";import"./chunk-WFMAM73Y.js";import{a as M,b as V}from"./chunk-66YHNWRR.js";var fe=["contextMenu"],Se=r=>({"td-cell-hover":r});function ye(r,g){if(r&1){let e=y();t(0,"button",20),_("click",function(){d(e);let i=c();return m(i.setMultipleFulfillment())}),s(1," Set Fulfillment "),n()}}function ve(r,g){if(r&1&&h(0,"variants-dropdown",38),r&2){let e=c().$implicit;p("variants",e==null?null:e.Variants)}}function be(r,g){if(r&1&&h(0,"variant-with-image",39),r&2){let e=c().$implicit;p("variant",e==null?null:e.Variants[0])}}function xe(r,g){if(r&1&&(t(0,"span"),s(1),n()),r&2){let e=c().$implicit;l(),b("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Te(r,g){if(r&1){let e=y();t(0,"div",41)(1,"button",45),_("click",function(){d(e);let i=c().$implicit,a=c(2);return m(a.refreshShippingAndRefNumber(i))}),h(2,"i",46),n()()}}function we(r,g){if(r&1){let e=y();t(0,"button",47),_("click",function(){d(e);let i=c().$implicit,a=c(2);return m(a.onSetFulfillment(i))}),s(1," Set Fulfillment "),n()}}function Me(r,g){if(r&1){let e=y();t(0,"tr")(1,"td")(2,"input",30),W("ngModelChange",function(i){let a=d(e).$implicit;return H(a.selected,i)||(a.selected=i),m(i)}),_("ngModelChange",function(){d(e);let i=c(2),a=R(0);return m(i.onSelectOrder(a))}),n()(),t(3,"td")(4,"div",31),h(5,"img",32),w(6,"channelImage"),t(7,"div",33)(8,"div"),s(9),n(),t(10,"small",34)(11,"span"),s(12),n()()()()(),t(13,"td")(14,"div",35)(15,"div"),h(16,"order-link",36),n(),t(17,"small"),s(18),w(19,"date"),n(),h(20,"br"),t(21,"small"),h(22,"i",37),s(23),n()()(),t(24,"td"),f(25,ve,1,1,"variants-dropdown",38)(26,be,1,1,"variant-with-image",39),n(),t(27,"td",40),s(28),w(29,"number"),n(),t(30,"td",41)(31,"div",42)(32,"div",35)(33,"div",43)(34,"span"),s(35),n(),f(36,xe,2,1,"span"),n(),t(37,"small"),s(38),n()(),f(39,Te,3,0,"div",41),n()(),t(40,"td",41),f(41,we,2,0,"button",44),n()()}if(r&2){let e=g.$implicit,o=c(2);l(2),B("ngModel",e.selected),p("disabled",o.selectedChannelType()!=null&&o.selectedChannelType()!=e.MarketType),l(3),p("src",E(6,18,e==null?null:e.MarketType),F)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(4),v(e.Outlet),l(3),v(e.ChannelName),l(4),p("order",e),l(2),b(" ",U(19,20,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(5),b(" ",e.Customer," "),l(),z(q(25,Se,(e.Variants==null?null:e.Variants.length)>1)),l(),S((e.Variants==null?null:e.Variants.length)>1?25:26),l(3),v(E(29,23,e.Amount)),l(7),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),S(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?36:-1),l(2),b(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," "),l(),S(!(e.LogisticService!=null&&e.LogisticService.Name)||!e.ReferenceNumber?39:-1),l(2),S((e==null?null:e.MarketType)!=o.channelType.WooCommerce?41:-1)}}function Ve(r,g){if(r&1){let e=y();t(0,"div",17)(1,"table",21)(2,"thead",22)(3,"tr",23),h(4,"th",24),t(5,"th",25),s(6,"Outlet"),n(),t(7,"th",25),s(8,"Number"),n(),t(9,"th"),s(10,"Items"),n(),t(11,"th",26),s(12,"Amount"),n(),t(13,"th",27),s(14,"Shipping"),n(),h(15,"th",28),n()(),t(16,"tbody"),k(17,Me,42,27,"tr",null,N),n()(),t(19,"app-custom-paginator",29),_("next",function(){d(e);let i=c();return m(i.initReadyToShip())})("previous",function(){d(e);let i=c();return m(i.initReadyToShip())}),n()()}if(r&2){let e=c(),o=R(0);l(17),I(o),l(2),p("filter",e.filter())("totaldata",o==null?null:o.length)}}function Re(r,g){r&1&&(t(0,"div",18),h(1,"app-empty-state"),n())}var et=(()=>{class r{constructor(){this.toastr=x(Y),this.orderService=x(O),this.fulfillmentService=x(ge),this.channelType=X,this.selectedOrders=T([]),this.selectedChannelType=G(()=>{let e=null;return this.selectedOrders().length>0&&(e=this.selectedOrders()[0].MarketType),e}),this.readyToShip=T([]),this.filter=T({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null}),this.contextMenuItems=[{id:"refresh",label:"Refresh Shipping",icon:"fa-solid fa-arrows-rotate"}]}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:e=>{this.initFromDate(e)},error:e=>{console.error("Error fetching default date:",e),this.initFromDate(null)}})}initFromDate(e){this.filter.update(o=>V(M({},o),{From:e})),this.initReadyToShip()}initReadyToShip(){this.orderService.getReadyToShipOrders(this.filter()).subscribe(e=>{this.readyToShip.set(e),this.selectedOrders.set([])})}onFilterPropertyChange(e,o){this.filter.update(i=>V(M({},i),{[e]:o}))}onSetFulfillment(e){this.fulfillmentService.setFulfillmentOrder(e).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}refreshShippingAndRefNumber(e){this.orderService.refreshShippingCourier(e.ShopID,e.Number).subscribe(()=>{this.toastr.success("Shipping courier and reference number refreshed","Success"),this.initReadyToShip()})}setMultipleFulfillment(){this.fulfillmentService.setFulfillmentMultipleOrders(this.selectedOrders()).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}onSelectOrder(e){let o=e.filter(i=>i.selected);this.selectedOrders.set(o)}onMouseHover(e,o){(!o.LogisticService?.Name||!o.ReferenceNumber)&&this.contextMenuEl.show(e,o)}onSelectContextItem(e){e.item?.id==="refresh"&&this.refreshShippingAndRefNumber(e.data)}static{this.\u0275fac=function(o){return new(o||r)}}static{this.\u0275cmp=P({type:r,selectors:[["app-ready-to-ship"]],viewQuery:function(o,i){if(o&1&&D(fe,5),o&2){let a;L(a=A())&&(i.contextMenuEl=a.first)}},features:[j([O])],decls:36,vars:11,consts:[["contextMenu",""],["headerTitle","To Ship","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"btn","btn-outline-secondary","shadow","rounded"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[3,"onSelectItem","items"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","5px"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","80px"],[2,"width","150px"],["rowCountApi","/api/orders/toshipcount",3,"next","previous","filter","totaldata"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[1,"fa-solid","fa-user"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"actions-cell"],[1,"d-flex","align-items-center","gap-6"],[1,"d-flex","align-items-end","gap-2"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem"],["matTooltip","Retrieve shipping courier and reference number",1,"btn","btn-icon-only",3,"click"],[1,"fa-solid","fa-arrows-rotate","fs-6"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem",3,"click"]],template:function(o,i){if(o&1){let a=y();$(0),t(1,"mainpanel",1),_("onSubmit",function(){return d(a),m(i.initReadyToShip())})("textChange",function(u){return d(a),m(i.onFilterPropertyChange("Number",u))}),t(2,"actions"),f(3,ye,2,0,"button",2),t(4,"a",3),h(5,"i",4),t(6,"span"),s(7,"Order Fulfillment Display"),n()()(),t(8,"filters")(9,"div")(10,"label",5),s(11,"Channel"),n(),t(12,"app-channel-options-v2",6),_("ngModelChange",function(u){return d(a),m(i.onFilterPropertyChange("ListChannelID",u))}),n()(),t(13,"div",7)(14,"label",5),s(15,"From/To"),n(),t(16,"div",8)(17,"datepicker",9),_("dateChange",function(u){return d(a),m(i.onFilterPropertyChange("From",u))}),n()(),t(18,"div")(19,"datepicker",10),_("dateChange",function(u){return d(a),m(i.onFilterPropertyChange("To",u))}),n()()(),t(20,"div",7)(21,"label",11),s(22,"Page Number"),n(),t(23,"input",12),_("ngModelChange",function(u){return d(a),m(i.onFilterPropertyChange("PageNumber",+u))}),n()(),t(24,"div",7)(25,"label",11),s(26,"Page Size"),n(),t(27,"input",13),_("ngModelChange",function(u){return d(a),m(i.onFilterPropertyChange("PageSize",+u))}),n()()(),t(28,"content")(29,"div",14)(30,"div",15)(31,"div",16),f(32,Ve,20,2,"div",17)(33,Re,2,0,"div",18),n()()()()(),t(34,"app-context-menu",19,0),_("onSelectItem",function(u){return d(a),m(i.onSelectContextItem(u))}),n()}if(o&2){let a=Q(i.readyToShip());l(),p("text",i.filter().Number),l(2),S(i.selectedOrders().length>0?3:-1),l(9),p("multiple",!0)("ngModel",i.filter().ListChannelID),l(5),p("date",i.filter().From),l(2),p("date",i.filter().To),l(4),p("ngModel",i.filter().PageNumber),l(4),p("ngModel",i.filter().PageSize),l(5),S(a.length>0?32:33),l(2),p("items",i.contextMenuItems)}},dependencies:[ae,se,de,oe,ee,ne,Z,te,ie,ce,ue,_e,he,le,re,Ce,me,pe,J,K],styles:[".actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{opacity:0;visibility:hidden;transition:opacity .12s ease-in-out}tr[_ngcontent-%COMP%]:hover .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], div[_ngcontent-%COMP%]:hover.actions-cell .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:hover .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:focus-within .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:focus{opacity:1;visibility:visible}"],changeDetection:0})}}return r})();export{et as ReadyToShipComponent};
|
|
1
|
+
import{a as ge,b as Ce}from"./chunk-Y7VFQ376.js";import{a as pe,b as ce,c as ue}from"./chunk-CKU644YK.js";import{a as he}from"./chunk-SL2PSZRS.js";import{a as O}from"./chunk-HDI4BETR.js";import{a as _e}from"./chunk-4MYXPN55.js";import"./chunk-LCIOJHJ4.js";import"./chunk-FDYHLFQ3.js";import{a as me}from"./chunk-ARQHKGJ7.js";import"./chunk-GK6WYUPQ.js";import"./chunk-WXZ5XRM6.js";import"./chunk-BDUUVK5L.js";import"./chunk-L2ENNT5V.js";import{a as de}from"./chunk-ZA4X34GE.js";import"./chunk-IFFI5CMD.js";import{a as se}from"./chunk-OJ4GCASY.js";import"./chunk-RVHJIVQ5.js";import"./chunk-MKENTZJA.js";import"./chunk-V3PUPGL5.js";import"./chunk-2SCD4QZY.js";import"./chunk-K227XGG2.js";import"./chunk-PRLMMKRO.js";import"./chunk-MMGI42DQ.js";import"./chunk-2QRSAAJG.js";import"./chunk-ACIMXBIC.js";import"./chunk-3ANHDTTL.js";import"./chunk-YYY663CV.js";import"./chunk-N77J6LFN.js";import"./chunk-TRTDBHQI.js";import{b as ae}from"./chunk-5DRZPE5O.js";import"./chunk-MZRZ7VV3.js";import"./chunk-M65GNQVQ.js";import{a as le}from"./chunk-MWUZF6ZW.js";import"./chunk-GF2RVIIT.js";import"./chunk-ITKXL7DT.js";import"./chunk-4AL6NJY5.js";import"./chunk-YOYMZEPB.js";import"./chunk-56UGSRXX.js";import"./chunk-UB22GZAR.js";import"./chunk-F7RHG53H.js";import"./chunk-X22WXNSF.js";import"./chunk-P6EDV7BS.js";import"./chunk-TVKTNDDY.js";import"./chunk-DGB7L5EQ.js";import"./chunk-7YP3O2JY.js";import"./chunk-BKB3Y5UC.js";import"./chunk-TPJEJZPT.js";import"./chunk-ISRTMJUH.js";import"./chunk-2VWSIT3Y.js";import"./chunk-2PONPJQD.js";import{b as re}from"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import"./chunk-PH3GLNOR.js";import"./chunk-MVOOS53M.js";import"./chunk-QXRG5XYP.js";import"./chunk-5XPG2TEC.js";import"./chunk-I4MUFYEG.js";import{b as X}from"./chunk-NNVT5X6O.js";import{A as oe,b as Z,c as ee,h as te,m as ie,o as ne}from"./chunk-P6BSXX22.js";import"./chunk-EISQQYRT.js";import"./chunk-34FX4M3J.js";import{b as Y}from"./chunk-M5YUVUTR.js";import"./chunk-RRBAJSPM.js";import"./chunk-D7WVAWLI.js";import{B as J,D as K}from"./chunk-MLQKT6FW.js";import"./chunk-ASFPLYOZ.js";import{$c as j,Dc as D,Eb as P,Ec as L,Fc as A,Ga as T,Nc as z,Oc as s,Pc as v,Qc as b,Sc as B,Tc as H,Uc as W,Vc as $,Wc as Q,Xc as R,bc as f,bd as q,dc as S,ec as N,gc as k,hc as I,ic as p,jc as t,kb as F,kc as n,kd as w,lc as h,ld as E,mb as l,md as U,na as x,sc as y,sd as G,ua as d,va as m,xc as _,zc as c}from"./chunk-KCXC4XYC.js";import"./chunk-WFMAM73Y.js";import{a as M,b as V}from"./chunk-66YHNWRR.js";var fe=["contextMenu"],Se=r=>({"td-cell-hover":r});function ye(r,g){if(r&1){let e=y();t(0,"button",20),_("click",function(){d(e);let i=c();return m(i.setMultipleFulfillment())}),s(1," Set Fulfillment "),n()}}function ve(r,g){if(r&1&&h(0,"variants-dropdown",38),r&2){let e=c().$implicit;p("variants",e==null?null:e.Variants)}}function be(r,g){if(r&1&&h(0,"variant-with-image",39),r&2){let e=c().$implicit;p("variant",e==null?null:e.Variants[0])}}function xe(r,g){if(r&1&&(t(0,"span"),s(1),n()),r&2){let e=c().$implicit;l(),b("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Te(r,g){if(r&1){let e=y();t(0,"div",41)(1,"button",45),_("click",function(){d(e);let i=c().$implicit,a=c(2);return m(a.refreshShippingAndRefNumber(i))}),h(2,"i",46),n()()}}function we(r,g){if(r&1){let e=y();t(0,"button",47),_("click",function(){d(e);let i=c().$implicit,a=c(2);return m(a.onSetFulfillment(i))}),s(1," Set Fulfillment "),n()}}function Me(r,g){if(r&1){let e=y();t(0,"tr")(1,"td")(2,"input",30),W("ngModelChange",function(i){let a=d(e).$implicit;return H(a.selected,i)||(a.selected=i),m(i)}),_("ngModelChange",function(){d(e);let i=c(2),a=R(0);return m(i.onSelectOrder(a))}),n()(),t(3,"td")(4,"div",31),h(5,"img",32),w(6,"channelImage"),t(7,"div",33)(8,"div"),s(9),n(),t(10,"small",34)(11,"span"),s(12),n()()()()(),t(13,"td")(14,"div",35)(15,"div"),h(16,"order-link",36),n(),t(17,"small"),s(18),w(19,"date"),n(),h(20,"br"),t(21,"small"),h(22,"i",37),s(23),n()()(),t(24,"td"),f(25,ve,1,1,"variants-dropdown",38)(26,be,1,1,"variant-with-image",39),n(),t(27,"td",40),s(28),w(29,"number"),n(),t(30,"td",41)(31,"div",42)(32,"div",35)(33,"div",43)(34,"span"),s(35),n(),f(36,xe,2,1,"span"),n(),t(37,"small"),s(38),n()(),f(39,Te,3,0,"div",41),n()(),t(40,"td",41),f(41,we,2,0,"button",44),n()()}if(r&2){let e=g.$implicit,o=c(2);l(2),B("ngModel",e.selected),p("disabled",o.selectedChannelType()!=null&&o.selectedChannelType()!=e.MarketType),l(3),p("src",E(6,18,e==null?null:e.MarketType),F)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(4),v(e.Outlet),l(3),v(e.ChannelName),l(4),p("order",e),l(2),b(" ",U(19,20,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(5),b(" ",e.Customer," "),l(),z(q(25,Se,(e.Variants==null?null:e.Variants.length)>1)),l(),S((e.Variants==null?null:e.Variants.length)>1?25:26),l(3),v(E(29,23,e.Amount)),l(7),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),S(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?36:-1),l(2),b(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," "),l(),S(!(e.LogisticService!=null&&e.LogisticService.Name)||!e.ReferenceNumber?39:-1),l(2),S((e==null?null:e.MarketType)!=o.channelType.WooCommerce?41:-1)}}function Ve(r,g){if(r&1){let e=y();t(0,"div",17)(1,"table",21)(2,"thead",22)(3,"tr",23),h(4,"th",24),t(5,"th",25),s(6,"Outlet"),n(),t(7,"th",25),s(8,"Number"),n(),t(9,"th"),s(10,"Items"),n(),t(11,"th",26),s(12,"Amount"),n(),t(13,"th",27),s(14,"Shipping"),n(),h(15,"th",28),n()(),t(16,"tbody"),k(17,Me,42,27,"tr",null,N),n()(),t(19,"app-custom-paginator",29),_("next",function(){d(e);let i=c();return m(i.initReadyToShip())})("previous",function(){d(e);let i=c();return m(i.initReadyToShip())}),n()()}if(r&2){let e=c(),o=R(0);l(17),I(o),l(2),p("filter",e.filter())("totaldata",o==null?null:o.length)}}function Re(r,g){r&1&&(t(0,"div",18),h(1,"app-empty-state"),n())}var et=(()=>{class r{constructor(){this.toastr=x(Y),this.orderService=x(O),this.fulfillmentService=x(ge),this.channelType=X,this.selectedOrders=T([]),this.selectedChannelType=G(()=>{let e=null;return this.selectedOrders().length>0&&(e=this.selectedOrders()[0].MarketType),e}),this.readyToShip=T([]),this.filter=T({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null}),this.contextMenuItems=[{id:"refresh",label:"Refresh Shipping",icon:"fa-solid fa-arrows-rotate"}]}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:e=>{this.initFromDate(e)},error:e=>{console.error("Error fetching default date:",e),this.initFromDate(null)}})}initFromDate(e){this.filter.update(o=>V(M({},o),{From:e})),this.initReadyToShip()}initReadyToShip(){this.orderService.getReadyToShipOrders(this.filter()).subscribe(e=>{this.readyToShip.set(e),this.selectedOrders.set([])})}onFilterPropertyChange(e,o){this.filter.update(i=>V(M({},i),{[e]:o}))}onSetFulfillment(e){this.fulfillmentService.setFulfillmentOrder(e).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}refreshShippingAndRefNumber(e){this.orderService.refreshShippingCourier(e.ShopID,e.Number).subscribe(()=>{this.toastr.success("Shipping courier and reference number refreshed","Success"),this.initReadyToShip()})}setMultipleFulfillment(){this.fulfillmentService.setFulfillmentMultipleOrders(this.selectedOrders()).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}onSelectOrder(e){let o=e.filter(i=>i.selected);this.selectedOrders.set(o)}onMouseHover(e,o){(!o.LogisticService?.Name||!o.ReferenceNumber)&&this.contextMenuEl.show(e,o)}onSelectContextItem(e){e.item?.id==="refresh"&&this.refreshShippingAndRefNumber(e.data)}static{this.\u0275fac=function(o){return new(o||r)}}static{this.\u0275cmp=P({type:r,selectors:[["app-ready-to-ship"]],viewQuery:function(o,i){if(o&1&&D(fe,5),o&2){let a;L(a=A())&&(i.contextMenuEl=a.first)}},features:[j([O])],decls:36,vars:11,consts:[["contextMenu",""],["headerTitle","To Ship","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"btn","btn-outline-secondary","shadow","rounded"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[3,"onSelectItem","items"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","5px"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","80px"],[2,"width","150px"],["rowCountApi","/api/orders/toshipcount",3,"next","previous","filter","totaldata"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[1,"fa-solid","fa-user"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"actions-cell"],[1,"d-flex","align-items-center","gap-6"],[1,"d-flex","align-items-end","gap-2"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem"],["matTooltip","Retrieve shipping courier and reference number",1,"btn","btn-icon-only",3,"click"],[1,"fa-solid","fa-arrows-rotate","fs-6"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem",3,"click"]],template:function(o,i){if(o&1){let a=y();$(0),t(1,"mainpanel",1),_("onSubmit",function(){return d(a),m(i.initReadyToShip())})("textChange",function(u){return d(a),m(i.onFilterPropertyChange("Number",u))}),t(2,"actions"),f(3,ye,2,0,"button",2),t(4,"a",3),h(5,"i",4),t(6,"span"),s(7,"Order Fulfillment Display"),n()()(),t(8,"filters")(9,"div")(10,"label",5),s(11,"Channel"),n(),t(12,"app-channel-options-v2",6),_("ngModelChange",function(u){return d(a),m(i.onFilterPropertyChange("ListChannelID",u))}),n()(),t(13,"div",7)(14,"label",5),s(15,"From/To"),n(),t(16,"div",8)(17,"datepicker",9),_("dateChange",function(u){return d(a),m(i.onFilterPropertyChange("From",u))}),n()(),t(18,"div")(19,"datepicker",10),_("dateChange",function(u){return d(a),m(i.onFilterPropertyChange("To",u))}),n()()(),t(20,"div",7)(21,"label",11),s(22,"Page Number"),n(),t(23,"input",12),_("ngModelChange",function(u){return d(a),m(i.onFilterPropertyChange("PageNumber",+u))}),n()(),t(24,"div",7)(25,"label",11),s(26,"Page Size"),n(),t(27,"input",13),_("ngModelChange",function(u){return d(a),m(i.onFilterPropertyChange("PageSize",+u))}),n()()(),t(28,"content")(29,"div",14)(30,"div",15)(31,"div",16),f(32,Ve,20,2,"div",17)(33,Re,2,0,"div",18),n()()()()(),t(34,"app-context-menu",19,0),_("onSelectItem",function(u){return d(a),m(i.onSelectContextItem(u))}),n()}if(o&2){let a=Q(i.readyToShip());l(),p("text",i.filter().Number),l(2),S(i.selectedOrders().length>0?3:-1),l(9),p("multiple",!0)("ngModel",i.filter().ListChannelID),l(5),p("date",i.filter().From),l(2),p("date",i.filter().To),l(4),p("ngModel",i.filter().PageNumber),l(4),p("ngModel",i.filter().PageSize),l(5),S(a.length>0?32:33),l(2),p("items",i.contextMenuItems)}},dependencies:[ae,se,de,oe,ee,ne,Z,te,ie,ce,ue,_e,he,le,re,Ce,me,pe,J,K],styles:[".actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{opacity:0;visibility:hidden;transition:opacity .12s ease-in-out}tr[_ngcontent-%COMP%]:hover .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], div[_ngcontent-%COMP%]:hover.actions-cell .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:hover .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:focus-within .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:focus{opacity:1;visibility:visible}"],changeDetection:0})}}return r})();export{et as ReadyToShipComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as oe,b as le,c as pe}from"./chunk-CKU644YK.js";import{a as me}from"./chunk-
|
|
1
|
+
import{a as oe,b as le,c as pe}from"./chunk-CKU644YK.js";import{a as me}from"./chunk-SL2PSZRS.js";import{a as T}from"./chunk-HDI4BETR.js";import{a as de}from"./chunk-4MYXPN55.js";import{a as ae}from"./chunk-ARQHKGJ7.js";import"./chunk-GK6WYUPQ.js";import"./chunk-WXZ5XRM6.js";import"./chunk-BDUUVK5L.js";import"./chunk-L2ENNT5V.js";import{a as re}from"./chunk-ZA4X34GE.js";import"./chunk-IFFI5CMD.js";import{a as ne}from"./chunk-OJ4GCASY.js";import"./chunk-RVHJIVQ5.js";import"./chunk-MKENTZJA.js";import"./chunk-V3PUPGL5.js";import"./chunk-2SCD4QZY.js";import"./chunk-K227XGG2.js";import"./chunk-PRLMMKRO.js";import"./chunk-MMGI42DQ.js";import"./chunk-2QRSAAJG.js";import"./chunk-ACIMXBIC.js";import"./chunk-3ANHDTTL.js";import"./chunk-YYY663CV.js";import"./chunk-N77J6LFN.js";import{b as ie}from"./chunk-5DRZPE5O.js";import"./chunk-MZRZ7VV3.js";import"./chunk-M65GNQVQ.js";import{a as te}from"./chunk-MWUZF6ZW.js";import"./chunk-GF2RVIIT.js";import"./chunk-ITKXL7DT.js";import"./chunk-4AL6NJY5.js";import"./chunk-YOYMZEPB.js";import"./chunk-56UGSRXX.js";import"./chunk-UB22GZAR.js";import"./chunk-F7RHG53H.js";import"./chunk-X22WXNSF.js";import"./chunk-P6EDV7BS.js";import"./chunk-TVKTNDDY.js";import"./chunk-DGB7L5EQ.js";import"./chunk-7YP3O2JY.js";import"./chunk-BKB3Y5UC.js";import"./chunk-TPJEJZPT.js";import"./chunk-ISRTMJUH.js";import"./chunk-2VWSIT3Y.js";import"./chunk-2PONPJQD.js";import{b as ee}from"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import"./chunk-PH3GLNOR.js";import"./chunk-MVOOS53M.js";import"./chunk-QXRG5XYP.js";import"./chunk-5XPG2TEC.js";import"./chunk-I4MUFYEG.js";import"./chunk-NNVT5X6O.js";import{A as $,c as Q,h as X,m as Y,o as Z}from"./chunk-P6BSXX22.js";import"./chunk-EISQQYRT.js";import"./chunk-34FX4M3J.js";import"./chunk-M5YUVUTR.js";import"./chunk-RRBAJSPM.js";import"./chunk-D7WVAWLI.js";import{B as J,D as K,z as G}from"./chunk-MLQKT6FW.js";import"./chunk-ASFPLYOZ.js";import{$c as H,Eb as W,Ga as O,Nc as k,Oc as l,Pc as v,Qc as w,Sc as h,Tc as g,Uc as f,Vc as z,Wc as A,Xc as R,ad as j,bc as y,bd as U,dc as b,ec as D,gc as I,hc as B,ic as u,jc as t,kb as F,kc as i,kd as x,lc as c,ld as V,mb as o,md as q,na as N,sc as E,ua as d,va as m,xc as M,zc as _}from"./chunk-KCXC4XYC.js";import"./chunk-WFMAM73Y.js";import{a as P,b as L}from"./chunk-66YHNWRR.js";var se=()=>[],ce=r=>({"td-cell-hover":r});function ue(r,S){if(r&1&&c(0,"variants-dropdown",31),r&2){let e=_().$implicit;u("variants",e==null?null:e.Variants)}}function _e(r,S){if(r&1&&c(0,"variant-with-image",32),r&2){let e=_().$implicit;u("variant",e==null?null:e.Variants[0])}}function he(r,S){if(r&1&&(t(0,"span"),l(1),i()),r&2){let e=_().$implicit;o(),w("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function ge(r,S){if(r&1&&(t(0,"tr")(1,"td")(2,"div",24),c(3,"img",25),x(4,"channelImage"),t(5,"div",26)(6,"div"),l(7),i(),t(8,"small",27)(9,"span"),l(10),i()()()()(),t(11,"td")(12,"div",28)(13,"div"),c(14,"order-link",29),i(),t(15,"small"),l(16),x(17,"date"),i(),c(18,"br"),t(19,"small"),c(20,"i",30),l(21),i()()(),t(22,"td"),y(23,ue,1,1,"variants-dropdown",31)(24,_e,1,1,"variant-with-image",32),i(),t(25,"td",33),l(26),x(27,"number"),i(),t(28,"td")(29,"div",28)(30,"div",34)(31,"span"),l(32),i(),y(33,he,2,1,"span"),i(),t(34,"small"),l(35),i()()()()),r&2){let e=S.$implicit;o(3),u("src",V(4,14,e==null?null:e.MarketType),F)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),o(4),v(e.Outlet),o(3),v(e.ChannelName),o(4),u("order",e),o(2),w(" ",q(17,16,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),o(5),w(" ",e.Customer," "),o(),k(U(21,ce,(e.Variants==null?null:e.Variants.length)>1)),o(),b((e.Variants==null?null:e.Variants.length)>1?23:24),o(3),v(V(27,19,e.Amount)),o(6),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),o(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?33:-1),o(2),w(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function fe(r,S){if(r&1){let e=E();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),l(5,"Outlet"),i(),t(6,"th",20),l(7,"Number"),i(),t(8,"th"),l(9,"Items"),i(),t(10,"th",21),l(11,"Amount"),i(),t(12,"th",22),l(13,"Shipping"),i()()(),t(14,"tbody"),I(15,ge,36,23,"tr",null,D),i()(),t(17,"app-custom-paginator",23),M("next",function(){d(e);let n=_();return m(n.initShippedOrders())})("previous",function(){d(e);let n=_();return m(n.initShippedOrders())}),i()()}if(r&2){let e=_(),p=R(0);o(15),B(p),o(2),u("filter",e.filter())("totaldata",p==null?null:p.length)}}function Se(r,S){r&1&&(t(0,"div",16),c(1,"app-empty-state"),i())}var ke=(()=>{class r{constructor(){this.orderService=N(T),this.filter=O({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:e=>{this.initFromDate(e)},error:e=>{console.error("Error fetching default date:",e),this.initFromDate(null)}})}initFromDate(e){this.filter.update(p=>L(P({},p),{From:e})),this.initShippedOrders()}initShippedOrders(){this.shippedOrders$=this.orderService.getShippedOrders(this.filter())}static{this.\u0275fac=function(p){return new(p||r)}}static{this.\u0275cmp=W({type:r,selectors:[["app-shipped"]],features:[H([T])],decls:34,vars:12,consts:[["headerTitle","Shipped","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","80px"],["rowCountApi","/api/orders/shippedcount",3,"next","previous","filter","totaldata"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[1,"fa-solid","fa-user"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"d-flex","align-items-end","gap-2"]],template:function(p,n){if(p&1){let s=E();z(0),x(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return d(s),m(n.initShippedOrders())}),f("textChange",function(a){return d(s),g(n.filter().Number,a)||(n.filter().Number=a),m(a)}),t(3,"actions")(4,"a",1),c(5,"i",2),t(6,"span"),l(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),l(11,"Channel"),i(),t(12,"app-channel-options-v2",4),f("ngModelChange",function(a){return d(s),g(n.filter().ListChannelID,a)||(n.filter().ListChannelID=a),m(a)}),i()(),t(13,"div",5)(14,"label",3),l(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),f("dateChange",function(a){return d(s),g(n.filter().From,a)||(n.filter().From=a),m(a)}),i()(),t(18,"div")(19,"datepicker",8),f("dateChange",function(a){return d(s),g(n.filter().To,a)||(n.filter().To=a),m(a)}),i()()(),t(20,"div",5)(21,"label",9),l(22,"Page Number"),i(),t(23,"input",10),f("ngModelChange",function(a){return d(s),g(n.filter().PageNumber,a)||(n.filter().PageNumber=a),m(a)}),i()(),t(24,"div",5)(25,"label",9),l(26,"Page Size"),i(),t(27,"input",11),f("ngModelChange",function(a){return d(s),g(n.filter().PageSize,a)||(n.filter().PageSize=a),m(a)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),y(32,fe,18,2,"div",15)(33,Se,2,0,"div",16),i()()()()()}if(p&2){let s=A(V(1,8,n.shippedOrders$)||j(11,se));o(2),h("text",n.filter().Number),o(10),u("multiple",!0),h("ngModel",n.filter().ListChannelID),o(5),h("date",n.filter().From),o(2),h("date",n.filter().To),o(4),h("ngModel",n.filter().PageNumber),o(4),h("ngModel",n.filter().PageSize),o(5),b(s.length>0?32:33)}},dependencies:[ie,ne,re,$,Q,Z,X,Y,le,pe,de,te,ee,me,ae,oe,G,J,K],encapsulation:2})}}return r})();export{ke as ShippedComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as u}from"./chunk-
|
|
1
|
+
import{h as u}from"./chunk-PH3GLNOR.js";import{a as p}from"./chunk-I4MUFYEG.js";import{b as c}from"./chunk-M5YUVUTR.js";import{d as l}from"./chunk-RRBAJSPM.js";import{ia as a,ma as t}from"./chunk-KCXC4XYC.js";var S=(()=>{class e{constructor(o,i,r,s){this.toastr=o,this.authService=i,this.router=r,this.permissionService=s}canActivate(o,i){let r=JSON.parse(window.localStorage.getItem("user")),s=new Date,n=!1;if(r!=null){let h=new Date(r?.Token?.expiredAt);s<h?n=!0:(this.authService.logout(),this.onTokenExpired())}else this.router.navigate([""]),this.onTokenExpired();return n}onTokenExpired(){this.toastr.error("Your session has expired. Please login again.","Session Expired")}static{this.\u0275fac=function(i){return new(i||e)(t(c),t(u),t(l),t(p))}}static{this.\u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{S as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Ot}from"./chunk-
|
|
1
|
+
import{a as Ot}from"./chunk-ARQHKGJ7.js";import"./chunk-GK6WYUPQ.js";import"./chunk-WXZ5XRM6.js";import{a as yt,b as Tt}from"./chunk-BDUUVK5L.js";import"./chunk-L2ENNT5V.js";import{a as It}from"./chunk-CJTVOKLJ.js";import{a as wt}from"./chunk-OJ4GCASY.js";import"./chunk-RVHJIVQ5.js";import{a as ht}from"./chunk-MKENTZJA.js";import{a as Ct}from"./chunk-V3PUPGL5.js";import{c as gt,e as bt,g as vt}from"./chunk-2SCD4QZY.js";import{a as mt,d as _t,e as ft,i as xt}from"./chunk-K227XGG2.js";import"./chunk-PRLMMKRO.js";import"./chunk-MMGI42DQ.js";import"./chunk-2QRSAAJG.js";import{a as U}from"./chunk-ACIMXBIC.js";import"./chunk-3ANHDTTL.js";import"./chunk-YYY663CV.js";import{b as tt,c as ct,e as ie,f as dt}from"./chunk-N77J6LFN.js";import{e as ut}from"./chunk-TRTDBHQI.js";import{a as pt,b as st}from"./chunk-5DRZPE5O.js";import"./chunk-MZRZ7VV3.js";import"./chunk-M65GNQVQ.js";import"./chunk-MWUZF6ZW.js";import{Aa as lt,V as Te,Y as te,Z as q,_ as H,aa as Oe,oa as it,ra as nt,sa as ue,ta as ot,v as de,w as P}from"./chunk-2VWSIT3Y.js";import"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import{h as et}from"./chunk-PH3GLNOR.js";import"./chunk-MVOOS53M.js";import"./chunk-QXRG5XYP.js";import{a as we}from"./chunk-5XPG2TEC.js";import"./chunk-I4MUFYEG.js";import"./chunk-NNVT5X6O.js";import{A as G,a as at,c as rt,h as me,m as he}from"./chunk-P6BSXX22.js";import{c as Ye}from"./chunk-EISQQYRT.js";import"./chunk-34FX4M3J.js";import{e as ce}from"./chunk-M5YUVUTR.js";import"./chunk-RRBAJSPM.js";import"./chunk-D7WVAWLI.js";import{D as Xe,F as se,r as re,t as je,u as We,x as Ze,y as Je,z as pe}from"./chunk-MLQKT6FW.js";import"./chunk-ASFPLYOZ.js";import{$c as Ge,Ca as S,Cc as ze,Da as ke,Dc as Ne,Eb as D,Ec as C,Fb as Le,Fc as v,Ga as w,Hd as y,Ib as Be,Id as N,Ja as Ae,Jb as Fe,Jc as ve,Ka as Pe,Kb as h,Kc as Re,Mc as le,Na as De,Nc as b,Oc as f,Pc as X,Qc as A,Rc as qe,Sc as K,Tc as $,Uc as z,V as Se,Vc as He,Xb as I,aa as j,ad as Qe,bc as Z,bd as V,cd as ae,dc as J,dd as Ie,e as be,ec as Ue,gc as Ke,ha as Ve,hc as $e,ia as ne,ic as p,ja as Me,jc as c,kb as oe,kc as d,kd as L,la as Ee,lc as T,ld as B,mb as s,na as O,o as Q,od as F,pc as E,qc as k,rc as M,sc as x,sd as R,t as xe,ua as u,va as m,vd as Y,wa as W,wd as ee,xb as Ce,xc as g,zc as a}from"./chunk-KCXC4XYC.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var St=`
|
|
2
2
|
.p-autocomplete {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as q}from"./chunk-WDIDEDCE.js";import{a as z}from"./chunk-
|
|
1
|
+
import{a as q}from"./chunk-WDIDEDCE.js";import{a as z}from"./chunk-ARQHKGJ7.js";import"./chunk-GK6WYUPQ.js";import"./chunk-WXZ5XRM6.js";import"./chunk-BDUUVK5L.js";import"./chunk-L2ENNT5V.js";import{a as j}from"./chunk-ZA4X34GE.js";import{a as Z}from"./chunk-IFFI5CMD.js";import"./chunk-RVHJIVQ5.js";import"./chunk-MKENTZJA.js";import"./chunk-V3PUPGL5.js";import"./chunk-2SCD4QZY.js";import"./chunk-K227XGG2.js";import"./chunk-PRLMMKRO.js";import"./chunk-MMGI42DQ.js";import"./chunk-2QRSAAJG.js";import"./chunk-ACIMXBIC.js";import"./chunk-3ANHDTTL.js";import"./chunk-YYY663CV.js";import"./chunk-N77J6LFN.js";import{b as H}from"./chunk-5DRZPE5O.js";import"./chunk-MZRZ7VV3.js";import"./chunk-M65GNQVQ.js";import"./chunk-MWUZF6ZW.js";import"./chunk-2VWSIT3Y.js";import"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import"./chunk-PH3GLNOR.js";import"./chunk-MVOOS53M.js";import"./chunk-QXRG5XYP.js";import{a as y}from"./chunk-5XPG2TEC.js";import"./chunk-I4MUFYEG.js";import"./chunk-NNVT5X6O.js";import{A as G,h as W,m as $}from"./chunk-P6BSXX22.js";import"./chunk-EISQQYRT.js";import"./chunk-34FX4M3J.js";import{e as R}from"./chunk-M5YUVUTR.js";import{e as F,g as O}from"./chunk-RRBAJSPM.js";import"./chunk-D7WVAWLI.js";import{D as N,z as A}from"./chunk-MLQKT6FW.js";import"./chunk-ASFPLYOZ.js";import{Eb as M,Ga as V,Oc as a,Pc as g,Sc as K,Tc as T,Uc as P,V as D,Vc as B,bc as k,dc as U,ec as I,gc as E,hc as L,ic as d,jc as e,kb as b,kc as t,kd as w,lc as c,ld as v,mb as l,na as f,sc as x,ua as m,va as u,xc as S,zc as _}from"./chunk-KCXC4XYC.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function J(o,h){if(o&1){let i=x();e(0,"img",21),S("click",function(r){m(i);let n=_().$implicit,s=_();return u(s.onZoomImage(r,n==null?null:n.ImageUrl))}),t()}if(o&2){let i=_().$implicit;d("src",i==null?null:i.ThumbnailUrl,b)}}function Q(o,h){o&1&&c(0,"img",17)}function X(o,h){if(o&1&&(e(0,"tr")(1,"td")(2,"div",15),k(3,J,1,1,"img",16)(4,Q,1,0,"img",17),t()(),e(5,"td"),a(6),t(),e(7,"td"),a(8),t(),e(9,"td")(10,"div",18),c(11,"app-channel-logo",19),e(12,"span"),a(13),t()()(),e(14,"td",20),a(15),w(16,"number"),t()()),o&2){let i=h.$implicit;l(3),U(i.ImageUrl?3:4),l(3),g(i.Name),l(2),g(i.SKU),l(3),d("typeId",i.TypeID),l(2),g(i.ChannelName),l(2),g(v(16,6,i.Count))}}var he=(()=>{class o{constructor(){this.httpService=f(R),this.biggerPictureService=f(Z),this.filter=V({PageNumber:1,RowCount:20,ListChannelID:[]}),this.rowCountApi=y.GetMultilistingSKUCount,this.initMultipleListingSKU()}initMultipleListingSKU(){this.multipleListingSKU$=this.httpService.post(y.GetMultiListingSKU,this.filter()).pipe(D(1))}onZoomImage(i,p){this.biggerPictureService.openBiggerPicture(i,p)}static{this.\u0275fac=function(p){return new(p||o)}}static{this.\u0275cmp=M({type:o,selectors:[["app-duplicate-sku-v2"]],decls:33,vars:8,consts:[["headerTitle","Duplicate SKU","description","SKU(s) which is listed more than one time (one to many)",3,"onSubmit","hideSearchBox"],["routerLink","/menu/products/status/duplicate-sku",1,"d-flex","align-items-center","gap-2","btn","btn-outline-secondary","btn-lg"],[1,"fa-solid","fa-credit-card"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"container-fluid"],[1,"row","mt-6"],[1,"col-12"],[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","40px"],[2,"width","200px"],[2,"width","250px"],[1,"text-end",2,"width","50px"],[3,"next","previous","filter","totaldata","rowCountApi"],[2,"padding-right","0px"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded",2,"max-width","40px"],[1,"d-flex","align-items-center"],[3,"typeId"],[1,"text-end"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"click","src"]],template:function(p,r){if(p&1){let n=x();B(0),w(1,"async"),e(2,"mainpanel",0),S("onSubmit",function(){return m(n),u(r.initMultipleListingSKU())}),e(3,"actions")(4,"a",1),c(5,"i",2),e(6,"span"),a(7,"Card View"),t()()(),e(8,"filters")(9,"div")(10,"label",3),a(11,"Channel"),t(),e(12,"app-channel-options-v2",4),P("ngModelChange",function(C){return m(n),T(r.filter().ListChannelID,C)||(r.filter().ListChannelID=C),u(C)}),t()()(),e(13,"content")(14,"div",5)(15,"div",6)(16,"div",7)(17,"table",8)(18,"thead",9)(19,"tr"),c(20,"th",10),e(21,"th"),a(22,"Product"),t(),e(23,"th",11),a(24,"SKU"),t(),e(25,"th",12),a(26,"Channel"),t(),e(27,"th",13),a(28,"Count"),t()()(),e(29,"tbody"),E(30,X,17,8,"tr",null,I),t()(),e(32,"app-custom-paginator",14),S("next",function(){return m(n),u(r.initMultipleListingSKU())})("previous",function(){return m(n),u(r.initMultipleListingSKU())}),t()()()()()()}if(p&2){let n=v(1,6,r.multipleListingSKU$);l(2),d("hideSearchBox",!0),l(10),d("multiple",!0),K("ngModel",r.filter().ListChannelID),l(18),L(n==null?null:n.Data),l(2),d("filter",r.filter())("totaldata",n==null||n.Data==null?null:n.Data.length)("rowCountApi",r.rowCountApi)}},dependencies:[H,j,O,F,q,z,G,W,$,A,N],encapsulation:2,changeDetection:0})}}return o})();export{he as DuplicateSkuV2Component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as F}from"./chunk-
|
|
1
|
+
import{a as F}from"./chunk-ARQHKGJ7.js";import"./chunk-GK6WYUPQ.js";import"./chunk-WXZ5XRM6.js";import"./chunk-BDUUVK5L.js";import"./chunk-L2ENNT5V.js";import"./chunk-RVHJIVQ5.js";import"./chunk-MKENTZJA.js";import"./chunk-V3PUPGL5.js";import"./chunk-2SCD4QZY.js";import"./chunk-K227XGG2.js";import"./chunk-PRLMMKRO.js";import"./chunk-MMGI42DQ.js";import"./chunk-2QRSAAJG.js";import"./chunk-ACIMXBIC.js";import"./chunk-3ANHDTTL.js";import"./chunk-YYY663CV.js";import"./chunk-N77J6LFN.js";import{e as z}from"./chunk-TRTDBHQI.js";import{b as j}from"./chunk-5DRZPE5O.js";import"./chunk-MZRZ7VV3.js";import"./chunk-M65GNQVQ.js";import"./chunk-MWUZF6ZW.js";import"./chunk-2VWSIT3Y.js";import"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import"./chunk-PH3GLNOR.js";import"./chunk-MVOOS53M.js";import"./chunk-QXRG5XYP.js";import{a as D}from"./chunk-5XPG2TEC.js";import"./chunk-I4MUFYEG.js";import"./chunk-NNVT5X6O.js";import{A as B,c as k,h as I,m as R}from"./chunk-P6BSXX22.js";import"./chunk-EISQQYRT.js";import"./chunk-34FX4M3J.js";import{b as E,e as V}from"./chunk-M5YUVUTR.js";import"./chunk-RRBAJSPM.js";import"./chunk-D7WVAWLI.js";import{C as T,z as L}from"./chunk-MLQKT6FW.js";import"./chunk-ASFPLYOZ.js";import{Eb as x,Ga as f,Oc as n,Pc as P,V as v,Vc as N,Wc as A,Xc as C,bc as w,dc as O,ic as s,jc as e,kc as t,kd as _,lc as M,ld as b,mb as d,na as u,sc as S,ua as p,va as c,xc as g,zc as y}from"./chunk-KCXC4XYC.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function J(i,H){if(i&1&&(e(0,"pre",21),n(1),_(2,"json"),t()),i&2){y();let r=C(25);d(),P(b(2,1,r))}}function $(i,H){i&1&&(e(0,"p",22),n(1," Your data will be shown here once it's available "),t())}var ae=(()=>{class i{constructor(){this.httpService=u(V),this.toastr=u(E),this.selectedChannel=f(null),this.orderNumber=f(null)}fetchLog(){if(!this.selectedChannel()||!this.orderNumber()){this.toastr.warning("Please select a channel and enter an order number","Warning");return}this.orderLog$=this.httpService.post(D.GetOrderApiLog,{ChannelID:this.selectedChannel(),OrderNumber:this.orderNumber()}).pipe(v(1))}copyToClipboard(r){if(!r)return;let l=typeof r=="string"?r:JSON.stringify(r,null,2);navigator.clipboard.writeText(l),this.toastr.success("Copied to clipboard!","Success")}static{this.\u0275fac=function(l){return new(l||i)}}static{this.\u0275cmp=x({type:i,selectors:[["app-order-api"]],decls:40,vars:9,consts:[["headerTitle","Origin Order Api",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-success","btn-fill","me-3",3,"click"],[1,"fa","fa-search"],[1,"container-fluid","mt-8","px-10"],[1,"row"],[1,"col-7"],[1,"d-flex","align-items-center"],[1,"w-75"],[1,"mb-0","text-muted","fst-italic"],[1,"w-100"],[3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center","mt-3"],["type","text","placeholder","Order Number or Invoice Number",1,"form-control","rounded-1",2,"height","40px",3,"ngModelChange","ngModel"],[1,"row","mt-6"],[1,"col-12"],[1,"card"],[1,"card-header","d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click","disabled"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group","position-relative"],["id","orderLogText"],[1,"text-center","my-12","text-muted"]],template:function(l,o){if(l&1){let a=S();e(0,"mainpanel",0)(1,"actions")(2,"button",1),g("click",function(){return p(a),c(o.fetchLog())}),M(3,"i",2),n(4," Search "),t()(),e(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h6"),n(12,"Channel"),t(),e(13,"p",8),n(14," View logs related to Order API activities. "),t()(),e(15,"div",9)(16,"app-channel-options-v2",10),g("ngModelChange",function(m){return p(a),c(o.selectedChannel.set(m))}),t()()(),e(17,"div",11)(18,"div",7)(19,"h6"),n(20,"Order Number"),t(),e(21,"p",8),n(22," Order or Invoice number from Channel. "),t()(),e(23,"div",9)(24,"input",12),g("ngModelChange",function(m){return p(a),c(o.orderNumber.set(m))}),t()()()()(),N(25),_(26,"async"),e(27,"div",13)(28,"div",14)(29,"div",15)(30,"div",16)(31,"h5"),n(32,"Response"),t(),e(33,"button",17),g("click",function(){p(a);let m=C(25);return c(o.copyToClipboard(m))}),n(34," Copy "),t()(),e(35,"div",18)(36,"div",19)(37,"div",20),w(38,J,3,3,"pre",21)(39,$,2,0,"p",22),t()()()()()()()()()}if(l&2){s("hideSearchBox",!0)("hideSearchDropdown",!0),d(16),s("ngModel",o.selectedChannel()),d(8),s("ngModel",o.orderNumber()),d();let a=A(b(26,6,o.orderLog$));d(8),s("disabled",!a),d(5),O(a?38:39)}},dependencies:[j,z,B,k,I,R,F,L,T],styles:["@media(max-width:767.98px){.container-fluid[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.row[_ngcontent-%COMP%]{flex-direction:column!important;margin-left:0!important;margin-right:0!important}.col-7[_ngcontent-%COMP%], .col-12[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important;padding-left:0!important;padding-right:0!important}.d-flex[_ngcontent-%COMP%]{flex-direction:column!important;align-items:stretch!important;gap:1rem}.w-75[_ngcontent-%COMP%], .w-100[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important}.card[_ngcontent-%COMP%]{margin-top:1rem!important}.card-header[_ngcontent-%COMP%]{flex-direction:column!important;align-items:flex-start!important;gap:.5rem}.btn[_ngcontent-%COMP%]{width:100%;margin-bottom:.5rem}input.form-control[_ngcontent-%COMP%]{width:100%;min-width:0}pre#orderLogText[_ngcontent-%COMP%]{font-size:.95rem;word-break:break-all;white-space:pre-wrap}}@media(max-width:400px){.card-header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:1rem}pre#orderLogText[_ngcontent-%COMP%]{font-size:.85rem}}"],changeDetection:0})}}return i})();export{ae as OrderApiComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-3FFHVVJD.js";import{a as v}from"./chunk-YCWTJUQA.js";import{a as u}from"./chunk-N5UVIRO3.js";import"./chunk-MWUZF6ZW.js";import"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import"./chunk-PH3GLNOR.js";import"./chunk-MVOOS53M.js";import"./chunk-QXRG5XYP.js";import"./chunk-5XPG2TEC.js";import"./chunk-I4MUFYEG.js";import"./chunk-NNVT5X6O.js";import"./chunk-EISQQYRT.js";import"./chunk-34FX4M3J.js";import"./chunk-M5YUVUTR.js";import{c as s,g as c}from"./chunk-RRBAJSPM.js";import"./chunk-D7WVAWLI.js";import"./chunk-MLQKT6FW.js";import"./chunk-ASFPLYOZ.js";import{$c as l,Eb as a,ic as i,jc as m,kc as p,lc as o,mb as r}from"./chunk-KCXC4XYC.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var d=(()=>{class e{constructor(){this.inventoryTabs=[{Title:"Single Channel Comparison",Url:"/menu/inventory/bychannel"},{Title:"Multi Channel Comparison",Url:"/menu/inventory/pos"},{Title:"Different Inventory",Url:"/menu/inventory/channel_summary"}]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=a({type:e,selectors:[["app-inventory"]],features:[l([v])],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(n,y){n&1&&(m(0,"nav",0)(1,"div",1)(2,"div"),o(3,"nav-tab",2),p()()(),o(4,"router-outlet")),n&2&&(r(3),i("Tabs",y.inventoryTabs))},dependencies:[u,c,s],encapsulation:2})}}return e})();var A=[{path:"",component:d,children:[{path:"",redirectTo:"bychannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-CKMDDDQH.js").then(e=>e.MultiChannelComparison)},canActivate:[t],data:{title:"Inventory Comparison"}},{path:"bychannel",loadComponent(){return import("./chunk-TFDHSBTR.js").then(e=>e.SingleChannelComparisonComponent)},canActivate:[t],data:{title:"Inventory Comparison"}},{path:"channel_summary",loadComponent(){return import("./chunk-LRB64NEN.js").then(e=>e.ChannelSummaryComponent)},canActivate:[t],data:{title:"Different Inventory"}}]}];export{A as routes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-3FFHVVJD.js";import{a as s}from"./chunk-N5UVIRO3.js";import"./chunk-MWUZF6ZW.js";import"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import"./chunk-PH3GLNOR.js";import"./chunk-MVOOS53M.js";import"./chunk-QXRG5XYP.js";import"./chunk-5XPG2TEC.js";import"./chunk-I4MUFYEG.js";import"./chunk-NNVT5X6O.js";import"./chunk-EISQQYRT.js";import"./chunk-34FX4M3J.js";import"./chunk-M5YUVUTR.js";import{c as m,g as c}from"./chunk-RRBAJSPM.js";import"./chunk-D7WVAWLI.js";import"./chunk-MLQKT6FW.js";import"./chunk-ASFPLYOZ.js";import{Eb as i,ic as r,jc as p,kc as l,lc as o,mb as a}from"./chunk-KCXC4XYC.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var u=(()=>{class e{constructor(){this.priceTabs=[{Title:"Single Channel Comparison",Url:"/menu/price/SingleChannel"},{Title:"Multi Channel Comparison",Url:"/menu/price/pos"},{Title:"Multi Channel Row Comparison",Url:"/menu/price/update"}]}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=i({type:e,selectors:[["app-price"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(t,C){t&1&&(p(0,"nav",0)(1,"div",1)(2,"div"),o(3,"nav-tab",2),l()()(),o(4,"router-outlet")),t&2&&(a(3),r("Tabs",C.priceTabs))},dependencies:[s,c,m],encapsulation:2,changeDetection:0})}}return e})();var S=[{path:"",component:u,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-MIOXW5XE.js").then(e=>e.PricePosChannelComponent)},canActivate:[n],data:{title:"Global Price Comparison"}},{path:"SingleChannel",loadComponent(){return import("./chunk-MC4F5NDL.js").then(e=>e.PriceSingleChannelComponent)},canActivate:[n],data:{title:"Price Single Channel Comparison"}},{path:"update",loadComponent(){return import("./chunk-3U57ENY4.js").then(e=>e.PriceUpdateComponent)},canActivate:[n],data:{title:"Multi Channel Row Comparison"}}]}];export{S as routes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as re}from"./chunk-
|
|
1
|
+
import{a as re}from"./chunk-SL2PSZRS.js";import{a as E}from"./chunk-HDI4BETR.js";import{a as ne}from"./chunk-4MYXPN55.js";import{a as ie}from"./chunk-WDIDEDCE.js";import{a as te}from"./chunk-ARQHKGJ7.js";import"./chunk-GK6WYUPQ.js";import"./chunk-WXZ5XRM6.js";import"./chunk-BDUUVK5L.js";import"./chunk-L2ENNT5V.js";import{a as ee}from"./chunk-ZA4X34GE.js";import{a as $}from"./chunk-OJ4GCASY.js";import"./chunk-RVHJIVQ5.js";import"./chunk-MKENTZJA.js";import"./chunk-V3PUPGL5.js";import"./chunk-2SCD4QZY.js";import"./chunk-K227XGG2.js";import"./chunk-PRLMMKRO.js";import"./chunk-MMGI42DQ.js";import"./chunk-2QRSAAJG.js";import"./chunk-ACIMXBIC.js";import"./chunk-3ANHDTTL.js";import"./chunk-YYY663CV.js";import"./chunk-N77J6LFN.js";import{b as Z}from"./chunk-5DRZPE5O.js";import"./chunk-MZRZ7VV3.js";import"./chunk-M65GNQVQ.js";import{a as Y}from"./chunk-MWUZF6ZW.js";import"./chunk-GF2RVIIT.js";import"./chunk-ITKXL7DT.js";import"./chunk-4AL6NJY5.js";import"./chunk-YOYMZEPB.js";import"./chunk-56UGSRXX.js";import"./chunk-UB22GZAR.js";import"./chunk-F7RHG53H.js";import"./chunk-X22WXNSF.js";import"./chunk-P6EDV7BS.js";import"./chunk-TVKTNDDY.js";import"./chunk-DGB7L5EQ.js";import"./chunk-7YP3O2JY.js";import"./chunk-BKB3Y5UC.js";import"./chunk-TPJEJZPT.js";import"./chunk-ISRTMJUH.js";import"./chunk-2VWSIT3Y.js";import"./chunk-2PONPJQD.js";import{b as X}from"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import"./chunk-PH3GLNOR.js";import"./chunk-MVOOS53M.js";import"./chunk-QXRG5XYP.js";import"./chunk-5XPG2TEC.js";import"./chunk-I4MUFYEG.js";import"./chunk-NNVT5X6O.js";import{A as U,c as G,h as J,m as K,o as Q}from"./chunk-P6BSXX22.js";import"./chunk-EISQQYRT.js";import"./chunk-34FX4M3J.js";import"./chunk-M5YUVUTR.js";import"./chunk-RRBAJSPM.js";import"./chunk-D7WVAWLI.js";import{B as j,D as q,z as R}from"./chunk-MLQKT6FW.js";import"./chunk-ASFPLYOZ.js";import{$c as z,Eb as D,Ga as O,Oc as l,Pc as h,Sc as c,Tc as u,Uc as C,V,Vc as I,Wc as k,Xc as A,bc as W,dc as F,ec as N,gc as L,hc as B,ic as g,jc as e,kc as t,kd as w,lc as _,ld as x,mb as a,md as H,na as P,sc as b,ua as p,va as s,xc as v,zc as y}from"./chunk-KCXC4XYC.js";import"./chunk-WFMAM73Y.js";import{a as M,b as T}from"./chunk-66YHNWRR.js";function ae(d,S){if(d&1&&(e(0,"tr")(1,"td"),l(2),t(),e(3,"td"),_(4,"order-link",26),t(),e(5,"td"),l(6),t(),e(7,"td"),l(8),w(9,"number"),t(),e(10,"td"),l(11),w(12,"date"),t(),e(13,"td"),_(14,"app-channel-logo",27),t()()),d&2){let r=S.$implicit;a(2),h(r.Outlet),a(2),g("order",r),a(2),h(r.Customer),a(2),h(x(9,6,r.Amount)),a(3),h(H(12,8,r.Created,"dd MMM yyyy HH:mm")),a(3),g("typeId",r==null?null:r.TypeID)}}function le(d,S){if(d&1){let r=b();e(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),l(5,"Outlet"),t(),e(6,"th",21),l(7,"Order number"),t(),e(8,"th"),l(9,"Customer"),t(),e(10,"th",22),l(11,"Amount"),t(),e(12,"th",23),l(13," Created On "),t(),e(14,"th",24),l(15,"Channel"),t()()(),e(16,"tbody"),L(17,ae,15,11,"tr",null,N),t()(),e(19,"app-custom-paginator",25),v("next",function(){p(r);let i=y();return s(i.initCancelledOrders())})("previous",function(){p(r);let i=y();return s(i.initCancelledOrders())}),t()()}if(d&2){let r=y(),o=A(0);a(17),B(o),a(2),g("filter",r.filter())("totaldata",o==null?null:o.length)("paginationTotal",o==null?null:o.length)("hasClicked",!0)("nextButtonAlwaysVisible",!0)}}function oe(d,S){d&1&&(e(0,"div",16),_(1,"app-empty-state"),t())}var Te=(()=>{class d{constructor(){this.orderService=P(E),this.filter=O({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:r=>{this.initFromDate(r)},error:r=>{console.error("Error fetching default date:",r),this.initFromDate(null)}})}initFromDate(r){this.filter.update(o=>T(M({},o),{From:r})),this.initCancelledOrders()}initCancelledOrders(){this.cancelledOrders$=this.orderService.getCancelledOrders(this.filter()).pipe(V(1))}static{this.\u0275fac=function(o){return new(o||d)}}static{this.\u0275cmp=D({type:d,selectors:[["app-cancelled"]],features:[z([E])],decls:34,vars:11,consts:[["headerTitle","Cancelled","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","120px"],[2,"width","220px"],[2,"width","100px"],["mat-sort-header","created",2,"width","130px"],[2,"width","130px"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked","nextButtonAlwaysVisible"],[3,"order"],[3,"typeId"]],template:function(o,i){if(o&1){let m=b();I(0),w(1,"async"),e(2,"mainpanel",0),v("onSubmit",function(){return p(m),s(i.initCancelledOrders())}),C("textChange",function(n){return p(m),u(i.filter().Number,n)||(i.filter().Number=n),s(n)}),e(3,"actions")(4,"a",1),_(5,"i",2),e(6,"span"),l(7,"Order Fulfillment Display"),t()()(),e(8,"filters")(9,"div")(10,"label",3),l(11,"Channel"),t(),e(12,"app-channel-options-v2",4),C("ngModelChange",function(n){return p(m),u(i.filter().ListChannelID,n)||(i.filter().ListChannelID=n),s(n)}),t()(),e(13,"div",5)(14,"label",3),l(15,"From/To"),t(),e(16,"div",6)(17,"datepicker",7),C("dateChange",function(n){return p(m),u(i.filter().From,n)||(i.filter().From=n),s(n)}),t()(),e(18,"div")(19,"datepicker",8),C("dateChange",function(n){return p(m),u(i.filter().To,n)||(i.filter().To=n),s(n)}),t()()(),e(20,"div",5)(21,"label",9),l(22,"Page Number"),t(),e(23,"input",10),C("ngModelChange",function(n){return p(m),u(i.filter().PageNumber,n)||(i.filter().PageNumber=n),s(n)}),t()(),e(24,"div",5)(25,"label",9),l(26,"Page Size"),t(),e(27,"input",11),C("ngModelChange",function(n){return p(m),u(i.filter().PageSize,n)||(i.filter().PageSize=n),s(n)}),t()()(),e(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),W(32,le,20,5,"div",15)(33,oe,2,0,"div",16),t()()()()()}if(o&2){let m=k(x(1,8,i.cancelledOrders$));a(2),c("text",i.filter().Number),a(10),g("multiple",!0),c("ngModel",i.filter().ListChannelID),a(5),c("date",i.filter().From),a(2),c("date",i.filter().To),a(4),c("ngModel",i.filter().PageNumber),a(4),c("ngModel",i.filter().PageSize),a(5),F((m==null?null:m.length)>0?32:33)}},dependencies:[Z,$,ee,U,G,Q,J,K,ne,Y,X,re,ie,te,R,j,q],encapsulation:2,changeDetection:0})}}return d})();export{Te as CancelledComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ne}from"./chunk-ODLKDM5E.js";import{a as te}from"./chunk-7OQSPY2H.js";import{a as ee}from"./chunk-4MYXPN55.js";import"./chunk-HH4B5NMB.js";import"./chunk-DBO3A6IW.js";import{a as $}from"./chunk-OJ4GCASY.js";import"./chunk-ACIMXBIC.js";import{a as X,b as Y,d as Z}from"./chunk-TRTDBHQI.js";import{b as Q}from"./chunk-5DRZPE5O.js";import"./chunk-MZRZ7VV3.js";import"./chunk-M65GNQVQ.js";import"./chunk-MWUZF6ZW.js";import"./chunk-GF2RVIIT.js";import"./chunk-ITKXL7DT.js";import"./chunk-4AL6NJY5.js";import"./chunk-YOYMZEPB.js";import"./chunk-56UGSRXX.js";import"./chunk-UB22GZAR.js";import"./chunk-F7RHG53H.js";import"./chunk-X22WXNSF.js";import"./chunk-P6EDV7BS.js";import"./chunk-TVKTNDDY.js";import"./chunk-DGB7L5EQ.js";import"./chunk-7YP3O2JY.js";import"./chunk-BKB3Y5UC.js";import"./chunk-TPJEJZPT.js";import"./chunk-ISRTMJUH.js";import"./chunk-2PONPJQD.js";import"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import{h as U}from"./chunk-
|
|
1
|
+
import{a as ne}from"./chunk-ODLKDM5E.js";import{a as te}from"./chunk-7OQSPY2H.js";import{a as ee}from"./chunk-4MYXPN55.js";import"./chunk-HH4B5NMB.js";import"./chunk-DBO3A6IW.js";import{a as $}from"./chunk-OJ4GCASY.js";import"./chunk-ACIMXBIC.js";import{a as X,b as Y,d as Z}from"./chunk-TRTDBHQI.js";import{b as Q}from"./chunk-5DRZPE5O.js";import"./chunk-MZRZ7VV3.js";import"./chunk-M65GNQVQ.js";import"./chunk-MWUZF6ZW.js";import"./chunk-GF2RVIIT.js";import"./chunk-ITKXL7DT.js";import"./chunk-4AL6NJY5.js";import"./chunk-YOYMZEPB.js";import"./chunk-56UGSRXX.js";import"./chunk-UB22GZAR.js";import"./chunk-F7RHG53H.js";import"./chunk-X22WXNSF.js";import"./chunk-P6EDV7BS.js";import"./chunk-TVKTNDDY.js";import"./chunk-DGB7L5EQ.js";import"./chunk-7YP3O2JY.js";import"./chunk-BKB3Y5UC.js";import"./chunk-TPJEJZPT.js";import"./chunk-ISRTMJUH.js";import"./chunk-2PONPJQD.js";import"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import{h as U}from"./chunk-PH3GLNOR.js";import"./chunk-MVOOS53M.js";import"./chunk-QXRG5XYP.js";import"./chunk-5XPG2TEC.js";import"./chunk-I4MUFYEG.js";import"./chunk-NNVT5X6O.js";import{A as J,c as W,h as j,m as q,o as K}from"./chunk-P6BSXX22.js";import"./chunk-EISQQYRT.js";import"./chunk-34FX4M3J.js";import{e as H}from"./chunk-M5YUVUTR.js";import{e as B}from"./chunk-RRBAJSPM.js";import"./chunk-D7WVAWLI.js";import{B as V}from"./chunk-MLQKT6FW.js";import"./chunk-ASFPLYOZ.js";import{Eb as T,Ga as s,Kb as L,Lc as P,Oc as p,Pc as h,Qc as S,Sc as R,Tc as k,Uc as F,ad as O,bc as M,bd as z,dc as N,fc as x,gc as E,hc as w,ic as d,jc as t,kb as I,kc as n,kd as A,lc as C,mb as m,md as G,na as v,sc as D,ua as y,va as b,xc as g,zc as f}from"./chunk-KCXC4XYC.js";import"./chunk-WFMAM73Y.js";import{a as u,b as _}from"./chunk-66YHNWRR.js";var ie=()=>["/menu/log/inventory/sync-inventory/detail"],oe=a=>({ID:a});function ae(a,c){if(a&1&&(t(0,"span",19),C(1,"img",20),n(),p(2)),a&2){let e=c.item;m(),d("src",e.Img,I)("alt",e.Name),m(),S(" ",e.Name," ")}}function re(a,c){if(a&1&&(t(0,"tr")(1,"td")(2,"a",25),p(3),A(4,"date"),n()(),t(5,"td"),p(6),n(),t(7,"td"),p(8),n(),t(9,"td"),p(10),n(),t(11,"td"),p(12),n()()),a&2){let e=c.$implicit;P("bg-gradient-warning",e.ResponseCode==400),m(2),d("routerLink",O(12,ie))("queryParams",z(13,oe,e.ID)),m(),S(" ",G(4,9,e.Created,"dd MMM yyyy HH:mm")," "),m(3),h(e.channelName),m(2),h(e.Sku),m(2),h(e.Stock),m(2),h(e.ResponseCode)}}function le(a,c){if(a&1){let e=D();t(0,"div",17)(1,"table",21)(2,"thead")(3,"tr",22)(4,"th"),p(5,"Created"),n(),t(6,"th"),p(7,"Channel"),n(),t(8,"th"),p(9,"SKU"),n(),t(10,"th"),p(11,"Stock"),n(),t(12,"th"),p(13,"Response code"),n()()(),t(14,"tbody"),E(15,re,13,15,"tr",23,x),n()(),t(17,"mat-paginator",24),g("page",function(i){y(e);let o=f();return b(o.changePage(i))}),n()()}if(a&2){let e=f();m(15),w(e.Result()),m(2),d("length",e.paginationTotal())("pageSize",e.paginationPageSize())("pageIndex",e.filter().PageNumber==0?0:e.filter().PageNumber-1)}}function me(a,c){a&1&&(t(0,"div",18),C(1,"app-empty-state"),n())}var Me=(()=>{class a{constructor(){this.http=v(H),this._RawLogService=v(ne),this.authService=v(U),this.Result=s([]),this.filter=s({PageNumber:0,RowCount:20,Sku:null,ChannelID:"",StatusCode:"",From:"",To:""}),this.ActionTypeList=s(null),this.paginationTotal=s(0),this.paginationPageSize=s(0),this.channelOptions=s(this.authService.getChannels()),this.Number=s(null),this.Load()}Load(){this.http.post("/api/OrdersLoader/Get",{}).subscribe(e=>{this.filter.update(r=>u(u({},r),e.Filter)),this.ActionTypeList.set(e.Options.ActionTypeList),this.Get()})}Get(e){e!=null&&this.filter.update(r=>_(u({},r),{Sku:e})),this.http.post("api/Inventory/GetLog",this.filter()).subscribe(r=>{this._RawLogService.Data=r.hits;let i=[];for(let o of r.hits){let l={ID:o._source.log.id,Created:o._source["@timestamp_received"],channelName:o._source.log.channelName,Sku:o._source.log.sku,Stock:o._source.log.stock,ResponseCode:o._source.log.responseCode};i.push(l)}this.Result.set(i),this.paginationTotal.set(r.total.value),this.paginationPageSize.set(this.filter().RowCount>this.paginationTotal()?this.paginationTotal():this.filter().RowCount)})}changePage(e){this.filter.update(r=>_(u({},r),{PageNumber:e.pageIndex+1})),this.Get()}updateFilter(e,r){this.filter.update(i=>_(u({},i),{[e]:r}))}static{this.\u0275fac=function(r){return new(r||a)}}static{this.\u0275cmp=T({type:a,selectors:[["app-inventory-log"]],decls:32,vars:9,consts:[["headerTitle","Channel Inventory Sync","searchBoxPlaceHolder","Enter SKU...",3,"textChange","onSubmit","text"],["role","button","routerLink","/menu/log/inventory",1,"btn","btn-success"],["container",""],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","RowCount",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table","table-hover"],[1,"table-light"],[3,"bg-gradient-warning"],[3,"page","length","pageSize","pageIndex"],[3,"routerLink","queryParams"]],template:function(r,i){if(r&1&&(t(0,"mainpanel",0),F("textChange",function(l){return k(i.filter().Sku,l)||(i.filter().Sku=l),l}),g("onSubmit",function(l){return i.Get(l)}),t(1,"actions")(2,"a",1),p(3," Order Inventory Sync Job "),n()(),t(4,"filters")(5,"div",2)(6,"div")(7,"label",3),p(8,"Channel"),n(),t(9,"ng-select",4),g("ngModelChange",function(l){return i.updateFilter("ChannelID",l)}),L(10,ae,3,3,"ng-template",5),n()(),t(11,"div",6)(12,"label",7),p(13,"From/To"),n(),t(14,"div",8)(15,"datepicker",9),g("dateChange",function(l){return i.updateFilter("From",l)}),n()(),t(16,"div")(17,"datepicker",10),g("dateChange",function(l){return i.updateFilter("To",l)}),n()()(),t(18,"div",6)(19,"label",11),p(20,"Page Number"),n(),t(21,"input",12),g("ngModelChange",function(l){return i.updateFilter("PageNumber",l)}),n()(),t(22,"div",6)(23,"label",11),p(24,"Page Size"),n(),t(25,"input",13),g("ngModelChange",function(l){return i.updateFilter("RowCount",l)}),n()()()(),t(26,"content")(27,"div",14)(28,"div",15)(29,"div",16),M(30,le,18,3,"div",17)(31,me,2,0,"div",18),n()()()()()),r&2){let o;R("text",i.filter().Sku),m(9),d("clearable",!0)("items",i.channelOptions())("ngModel",i.filter().ChannelID),m(6),d("date",i.filter().From),m(2),d("date",i.filter().To),m(4),d("ngModel",i.filter().PageNumber),m(4),d("ngModel",i.filter().RowCount),m(5),N(((o=i.Result())==null?null:o.length)>0?30:31)}},dependencies:[Q,B,Z,J,W,K,j,q,X,Y,ee,te,$,V],encapsulation:2})}}return a})();export{Me as InventoryLogComponent};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as z,b as q,c as J,d as K,e as Q,f as X}from"./chunk-DR6WXVOU.js";import{b as G}from"./chunk-5DRZPE5O.js";import"./chunk-MZRZ7VV3.js";import"./chunk-M65GNQVQ.js";import"./chunk-MWUZF6ZW.js";import"./chunk-SHS3ZU2J.js";import"./chunk-7YP3O2JY.js";import"./chunk-TPJEJZPT.js";import"./chunk-ISRTMJUH.js";import"./chunk-2PONPJQD.js";import"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import{h as F}from"./chunk-
|
|
1
|
+
import{a as z,b as q,c as J,d as K,e as Q,f as X}from"./chunk-DR6WXVOU.js";import{b as G}from"./chunk-5DRZPE5O.js";import"./chunk-MZRZ7VV3.js";import"./chunk-M65GNQVQ.js";import"./chunk-MWUZF6ZW.js";import"./chunk-SHS3ZU2J.js";import"./chunk-7YP3O2JY.js";import"./chunk-TPJEJZPT.js";import"./chunk-ISRTMJUH.js";import"./chunk-2PONPJQD.js";import"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import{h as F}from"./chunk-PH3GLNOR.js";import"./chunk-MVOOS53M.js";import"./chunk-QXRG5XYP.js";import"./chunk-5XPG2TEC.js";import"./chunk-I4MUFYEG.js";import"./chunk-NNVT5X6O.js";import{A as j,c as H,h as $,m as W}from"./chunk-P6BSXX22.js";import"./chunk-EISQQYRT.js";import"./chunk-34FX4M3J.js";import{e as A}from"./chunk-M5YUVUTR.js";import"./chunk-RRBAJSPM.js";import"./chunk-D7WVAWLI.js";import"./chunk-MLQKT6FW.js";import"./chunk-ASFPLYOZ.js";import{$c as P,Eb as E,Ga as b,Jc as w,Kb as x,Kc as R,Oc as l,Pc as V,bc as y,dc as v,fc as D,gc as T,hc as N,ia as I,ic as m,jb as B,jc as o,kc as r,lc as g,mb as p,mc as h,na as S,nc as C,oc as M,sc as _,tc as L,ua as d,va as u,vd as O,wd as U,xc as f,zc as c}from"./chunk-KCXC4XYC.js";import"./chunk-WFMAM73Y.js";import{a as k}from"./chunk-66YHNWRR.js";var Z=(()=>{class e{constructor(){this.httpService=S(A)}download(t){return this.httpService.post("/api/Product/downloadurl",t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ne(e,s){if(e&1&&(h(0,"th"),l(1),C()),e&2){let t=s.$implicit;p(),V(t.column)}}function ie(e,s){if(e&1&&(h(0,"td"),M(1,"span",4),C()),e&2){let t=s.$implicit,n=c().$implicit;p(),L("innerHTML",n[t.prop],B)}}function oe(e,s){if(e&1&&(h(0,"tr"),T(1,ie,2,1,"td",null,D),C()),e&2){let t=s.$implicit,n=c();R("background-color",t.Status>200?"#F4D6D5":"#DEE9C9"),p(),N(n.configs())}}var ee=(()=>{class e{constructor(){this.configs=U([]),this.data=U([]),this.status=U(void 0),this.eventClose=O({alias:"onClose"})}onClose(){this.eventClose.emit()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=E({type:e,selectors:[["app-response-api-list"]],inputs:{configs:[1,"configs"],data:[1,"data"],status:[1,"status"]},outputs:{eventClose:"onClose"},decls:9,vars:0,consts:[[1,"table-responsive"],[1,"table"],[1,"thead-light"],[3,"background-color"],[3,"innerHTML"]],template:function(n,i){n&1&&(h(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr"),T(4,ne,2,1,"th",null,D),C()(),h(6,"tbody"),T(7,oe,3,2,"tr",3,D),C()()()),n&2&&(p(4),N(i.configs()),p(3),N(i.data()))},encapsulation:2,changeDetection:0})}}return e})();function re(e,s){if(e&1){let t=_();o(0,"button",17),f("click",function(){d(t);let i=c(),a=w(11);return u(i.onNewStepperState(a))}),g(1,"i",18),l(2," New "),r()}}function ae(e,s){if(e&1){let t=_();o(0,"button",17),f("click",function(){d(t),c();let i=w(11);return u(i.previous())}),l(1," Back "),r()}}function le(e,s){if(e&1){let t=_();o(0,"button",19),f("click",function(){d(t);let i=c(),a=w(11);return u(i.onStepperNext(a))}),l(1," Next "),r()}}function se(e,s){if(e&1){let t=_();o(0,"button",20),f("click",function(){d(t);let i=c(),a=w(11);return u(i.onSubmit(a))}),l(1," Download "),r()}if(e&2){let t=c();m("disabled",!t.urls)}}function pe(e,s){e&1&&(g(0,"i",21),o(1,"span"),l(2,"Instruction"),r())}function ce(e,s){e&1&&(o(0,"div",22)(1,"div",23)(2,"div",24)(3,"h4",25),l(4,"Note"),r()(),o(5,"div",26)(6,"ol",27)(7,"li"),l(8," Use this form to Download Products from Tokopedia using product URL "),r(),o(9,"li"),l(10," Copy Product URL from "),o(11,"a",28),l(12,"https://seller.tokopedia.com/ "),r(),l(13," and paste in this form "),r(),o(14,"li"),l(15," Use New Line when you want to input several product URLs "),r()()()()())}function me(e,s){e&1&&(g(0,"i",29),o(1,"span"),l(2,"Download"),r())}function de(e,s){if(e&1){let t=_();o(0,"div",22)(1,"textarea",30),f("ngModelChange",function(i){d(t);let a=c();return u(a.urls.set(i))}),r()()}if(e&2){let t=c();p(),m("placeholder",t.urlPlaceholder)("ngModel",t.urls())}}function ue(e,s){e&1&&(g(0,"i",31),o(1,"span"),l(2,"Finish"),r())}function _e(e,s){if(e&1&&(o(0,"div",22),g(1,"app-response-api-list",32),r()),e&2){let t=c();p(),m("data",t.downloadResponses())("configs",t.configs)}}function fe(e,s){e&1&&(o(0,"h6"),l(1,"1"),r())}function ge(e,s){e&1&&(o(0,"h6"),l(1,"2"),r())}function he(e,s){e&1&&(o(0,"h6"),l(1,"3"),r())}var Fe=(()=>{class e{constructor(){this.downloadService=S(Z),this.authService=S(F),this.urls=b(null),this.configs=[{column:"Url",prop:"URL"},{column:"POS",prop:"Name"},{column:"Exception",prop:"Message"}],this.downloadResponses=b([]),this.stepperState=b("DOWNLOAD"),this.urlPlaceholder=`https://tokopedia.com/tokoriyanadi/kaos-polos-biru
|
|
2
2
|
https://tokopedia.com/tokoriyanadi/Celana-Chinos-Coklat`,this.currentDomain=b(this.authService.getDomain())}onStepperChange(t){this.stepperState.set(t.selectedStep.state)}onSubmit(t){let i=(this.urls()??"").split(/\r?\n/).filter(a=>a.trim());this.downloadService.download(i).subscribe(a=>{this.downloadResponses.set(a),this.mappingLinkToProduct(),this.onStepperNext(t)})}mappingLinkToProduct(){let t=this.currentDomain(),n=this.downloadResponses().map(i=>{let a=k({},i);return a.Name=a?.Name?`<a href="${t}/menu/Products/Catalog/Products/Info?ID=${a.ID}" target="_blank">${a?.Name}</a>`:"-",a});this.downloadResponses.set(n)}onNewStepperState(t){this.downloadResponses.set([]),this.urls.set(null),this.stepperState.set("DOWNLOAD"),t.reset(),this.onStepperNext(t)}onStepperNext(t){t.selected.completed=!0,t.next()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=E({type:e,selectors:[["app-by-url"]],features:[P([{provide:z,useValue:{displayDefaultIndicatorType:!1}}])],decls:24,vars:11,consts:[["stepper",""],["headerTitle","Tokopedia - Product Download By Url",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-outline-secondary","btn-fill","btn-lg"],["type","button",1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-3"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","text-white","ms-3",3,"disabled"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],["linear","",1,"stepper-downloadByUrl",3,"selectionChange","selectedIndex"],["state","GUIDE",3,"editable","completed"],["matStepLabel",""],["matStepContent",""],["state","DOWNLOAD",3,"editable","completed"],["state","FINISH"],["matStepperIcon","GUIDE"],["matStepperIcon","DOWNLOAD"],["matStepperIcon","FINISH"],[1,"btn","btn-outline-secondary","btn-fill","btn-lg",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt","me-2"],["type","button",1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-3",3,"click"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","text-white","ms-3",3,"click","disabled"],[1,"fa-solid","fa-info","me-3"],[1,"mt-8"],[1,"card","border","w-50"],[1,"card-header","py-6"],[1,"text-primary"],[1,"card-body",2,"padding-left","0px"],[1,"mt-6"],["href","https://seller.tokopedia.com","target","_blank"],[1,"fa-solid","fa-download","me-3"],["name","url","cols","30","rows","25",1,"form-control",3,"ngModelChange","placeholder","ngModel"],[1,"fa-sharp","fa-solid","fa-flag","me-3"],["status","error",3,"data","configs"]],template:function(n,i){if(n&1){let a=_();o(0,"mainpanel",1)(1,"actions"),y(2,re,3,0,"button",2),y(3,ae,2,0,"button",2),y(4,le,2,0,"button",3),y(5,se,2,1,"button",4),r(),o(6,"content")(7,"div",5)(8,"div",6)(9,"div",7)(10,"mat-stepper",8,0),f("selectionChange",function(te){return d(a),u(i.onStepperChange(te))}),o(12,"mat-step",9),x(13,pe,3,0,"ng-template",10)(14,ce,16,0,"ng-template",11),r(),o(15,"mat-step",12),x(16,me,3,0,"ng-template",10)(17,de,2,2,"ng-template",11),r(),o(18,"mat-step",13),x(19,ue,3,0,"ng-template",10)(20,_e,2,2,"ng-template",11),r(),x(21,fe,2,0,"ng-template",14)(22,ge,2,0,"ng-template",15)(23,he,2,0,"ng-template",16),r()()()()()()}n&2&&(m("hideSearchBox",!0)("hideSearchDropdown",!0),p(2),v(i.stepperState()=="FINISH"?2:-1),p(),v(i.stepperState()=="DOWNLOAD"?3:-1),p(),v(i.stepperState()=="GUIDE"?4:-1),p(),v(i.stepperState()=="DOWNLOAD"?5:-1),p(5),m("selectedIndex",1),p(2),m("editable",i.stepperState()!="FINISH")("completed",!0),p(3),m("editable",i.stepperState()!="FINISH")("completed",!1))},dependencies:[G,X,Q,q,K,j,H,$,W,ee,J],styles:[`@import"https://fonts.googleapis.com/icon?family=Material+Icons";.card-header{background-color:#00000008}mat-stepper.stepper-downloadByUrl>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container{position:relative;width:60%;left:18%}
|
|
3
3
|
`],encapsulation:2,changeDetection:0})}}return e})();export{Fe as ByUrlComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as J,b as K}from"./chunk-GK6WYUPQ.js";import{b as R}from"./chunk-WXZ5XRM6.js";import{a as q,b as H}from"./chunk-L2ENNT5V.js";import{a as z}from"./chunk-RVHJIVQ5.js";import{b as U,c as j}from"./chunk-MKENTZJA.js";import{a as B}from"./chunk-ACIMXBIC.js";import{ra as F}from"./chunk-2VWSIT3Y.js";import{h as E}from"./chunk-
|
|
1
|
+
import{a as J,b as K}from"./chunk-GK6WYUPQ.js";import{b as R}from"./chunk-WXZ5XRM6.js";import{a as q,b as H}from"./chunk-L2ENNT5V.js";import{a as z}from"./chunk-RVHJIVQ5.js";import{b as U,c as j}from"./chunk-MKENTZJA.js";import{a as B}from"./chunk-ACIMXBIC.js";import{ra as F}from"./chunk-2VWSIT3Y.js";import{h as E}from"./chunk-PH3GLNOR.js";import{b as N}from"./chunk-NNVT5X6O.js";import{A,a as W,h as P,m as G}from"./chunk-P6BSXX22.js";import{$c as L,Eb as T,Ga as y,Jb as v,Kb as M,Oc as _,Pc as g,Sc as f,Tc as x,Uc as S,bc as D,dc as I,ic as r,jc as p,kb as V,kc as m,lc as b,mb as d,na as O,od as k,sc as C,ua as a,va as s,wd as h,xc as u,zc as o}from"./chunk-KCXC4XYC.js";function Q(l,c){if(l&1){let e=C();p(0,"div",7)(1,"p-checkbox",8),S("ngModelChange",function(t){let n=a(e).$implicit;return x(n.selected,t)||(n.selected=t),s(t)}),u("ngModelChange",function(t){let n=a(e).$implicit,w=o(2);return s(w.onGroupSelect(t,n))}),m(),b(2,"img",9),p(3,"span"),_(4),m()()}if(l&2){let e=c.$implicit;d(),r("binary",!0),f("ngModel",e.selected),d(),r("src",e.img,V),d(2),g(e.label)}}function X(l,c){if(l&1&&(p(0,"div"),_(1),m()),l&2){let e=c.$implicit;d(),g(e.Name)}}function Y(l,c){if(l&1){let e=C();p(0,"p-multiselect",5,0),u("click",function(){a(e);let t=o();return s(t.onClickSelect())}),S("ngModelChange",function(t){a(e);let n=o();return x(n.selectedChannels,t)||(n.selectedChannels=t),s(t)}),u("ngModelChange",function(t){a(e);let n=o();return s(n.onChannelChange(t))})("onClear",function(){a(e);let t=o();return s(t.onClearSelectedChannel())}),M(2,Q,5,4,"ng-template",null,1,k)(4,X,2,1,"ng-template",6),m()}if(l&2){let e=o();r("options",e.multiselectOptions())("placeholder",e.placeholder()),f("ngModel",e.selectedChannels),r("showClear",e.clearable())("autofocusFilter",!0)("maxSelectedLabels",e.maxSelectedLabels())("group",!0)}}function Z(l,c){if(l&1&&(p(0,"div",11),b(1,"img",12),p(2,"div"),_(3),m()()),l&2){let e=c.$implicit;d(),r("src",e.logo,V),d(2),g(e.Name)}}function $(l,c){if(l&1){let e=C();p(0,"p-select",10,2),u("click",function(){a(e);let t=o();return s(t.onClickSelect())}),S("ngModelChange",function(t){a(e);let n=o();return x(n.selectedChannels,t)||(n.selectedChannels=t),s(t)}),u("ngModelChange",function(t){a(e);let n=o();return s(n.onChannelChange(t))}),M(2,Z,4,2,"ng-template",6),m()}if(l&2){let e=o();r("options",e.options())("placeholder",e.placeholder()),f("ngModel",e.selectedChannels),r("showClear",e.clearable())("autofocusFilter",!0)("filter",!0)}}var fe=(()=>{class l extends z{constructor(){super(),this.authService=O(E),this.multiple=h(!1),this.clearable=h(!0),this.placeholder=h("Select Channels"),this.options=y(this.authService.getChannels()),this.maxSelectedLabels=h(6),this.multiselectOptions=y([]),this.onChange=e=>{},this.initMultiSelectOptions()}initMultiSelectOptions(){let e=this.authService.getChannels(),i=[];e.forEach(t=>{let n=i.find(w=>w.value===t.TypeID);n?n.items.push(t):(n={label:N[t.TypeID],selected:!1,img:t.Img,value:t.TypeID,items:[t]},i.push(n))}),this.multiselectOptions.set(i)}onGroupSelect(e,i){this.selectedChannels=this.selectedChannels?this.selectedChannels:[];let t=i.items.map(n=>n.ID);e?this.selectedChannels=[...this.selectedChannels,...t.filter(n=>!this.selectedChannels.includes(n))]:this.selectedChannels=this.selectedChannels.filter(n=>!t.includes(n)),this.onChange(this.selectedChannels)}onChannelChange(e){this.multiple()?e=e||[]:e=e||B.GuidEmpty,this.checkSelectedGroup(),this.onChange(e)}checkSelectedGroup(){this.multiselectOptions.update(e=>(e.forEach(i=>{let t=i.items.map(n=>n.ID);i.selected=t.every(n=>this.selectedChannels.includes(n))}),e))}onClearSelectedChannel(){this.multiselectOptions.update(e=>(e.forEach(i=>{i.selected=!1}),e)),this.onChange([])}onClickSelect(){this.initTopPosition(),setTimeout(()=>{this.adjustOverlayPosition()},0)}writeValue(e){this.selectedChannels=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}setDisabledState(e){}static{this.\u0275fac=function(i){return new(i||l)}}static{this.\u0275cmp=T({type:l,selectors:[["app-channel-options-v2"]],inputs:{multiple:[1,"multiple"],clearable:[1,"clearable"],placeholder:[1,"placeholder"],maxSelectedLabels:[1,"maxSelectedLabels"]},features:[L([{provide:W,multi:!0,useExisting:l}]),v],decls:2,vars:1,consts:[["multiSelect",""],["group",""],["select",""],["optionLabel","Name","optionValue","ID","display","chip","id","multiSelect","appendTo","body",1,"w-100",2,"--p-multiselect-padding-y","12px",3,"options","placeholder","ngModel","showClear","autofocusFilter","maxSelectedLabels","group"],["optionLabel","Name","optionValue","ID","appendTo","body",1,"w-100",2,"--p-select-padding-y","12px",3,"options","placeholder","ngModel","showClear","autofocusFilter","filter"],["optionLabel","Name","optionValue","ID","display","chip","id","multiSelect","appendTo","body",1,"w-100",2,"--p-multiselect-padding-y","12px",3,"click","ngModelChange","onClear","options","placeholder","ngModel","showClear","autofocusFilter","maxSelectedLabels","group"],["pTemplate","item"],[1,"flex","items-center"],[1,"me-3",3,"ngModelChange","binary","ngModel"],[1,"me-2",2,"width","18px",3,"src"],["optionLabel","Name","optionValue","ID","appendTo","body",1,"w-100",2,"--p-select-padding-y","12px",3,"click","ngModelChange","options","placeholder","ngModel","showClear","autofocusFilter","filter"],[1,"d-flex","align-items-center","gap-2"],[2,"width","18px",3,"src"]],template:function(i,t){i&1&&D(0,Y,5,7,"p-multiselect",3)(1,$,3,6,"p-select",4),i&2&&I(t.multiple()?0:1)},dependencies:[K,J,F,R,A,P,G,j,U,H,q],styles:["li.p-multiselect-option{margin-left:30px}"],changeDetection:0})}}return l})();export{fe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-FMBMH35C.js";import"./chunk-4VNQYYVV.js";import{a as n}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-FMBMH35C.js";import"./chunk-4VNQYYVV.js";import{a as n}from"./chunk-3FFHVVJD.js";import{a as u}from"./chunk-N5UVIRO3.js";import"./chunk-M65GNQVQ.js";import"./chunk-MWUZF6ZW.js";import"./chunk-BQCLUDBO.js";import"./chunk-TM7PL3CC.js";import"./chunk-PH3GLNOR.js";import"./chunk-MVOOS53M.js";import"./chunk-QXRG5XYP.js";import"./chunk-5XPG2TEC.js";import"./chunk-I4MUFYEG.js";import"./chunk-NNVT5X6O.js";import"./chunk-EISQQYRT.js";import"./chunk-34FX4M3J.js";import"./chunk-M5YUVUTR.js";import{c as s}from"./chunk-RRBAJSPM.js";import"./chunk-D7WVAWLI.js";import"./chunk-MLQKT6FW.js";import"./chunk-ASFPLYOZ.js";import{Eb as r,ic as c,jc as l,kc as p,lc as a,mb as i}from"./chunk-KCXC4XYC.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var d=(()=>{class t{constructor(){this.productTabs=[{Title:"Sold in Channel",Url:"/menu/products/status/sold-in-channel",Description:"SKU has been mapped between dealpos and marketplace"},{Title:"Not in POS",Url:"/menu/products/status/not-in-pos",Description:"SKU sold in Marketplace but not exist in DEALPOS"},{Title:"Not in Channel",Url:"/menu/products/status/not-in-channel",Description:"SKU has not been sold on one of channels"},{Title:"In POS",Url:"/menu/products/status/in-pos",Description:"All products which is already available in POS"},{Title:"Multiple Listing",Url:"/menu/products/status/duplicate-sku",Description:"SKU(s) which is listed more than one time (one to many)"},{Title:"Channel Statistic",Url:"/menu/products/status/channel-statistic",Description:"Product statistic from each channel obtained from the last product scan"},{Title:"Scan History",Url:"/menu/products/status/notificationV2",Description:"Scan results for each channel, including product counts and synchronization status"}]}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=r({type:t,selectors:[["app-status"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid","d-flex","align-items-center","justify-content-between"],[3,"Tabs"]],template:function(o,h){o&1&&(l(0,"nav",0)(1,"div",1)(2,"div"),a(3,"nav-tab",2),p()()(),a(4,"router-outlet")),o&2&&(i(3),c("Tabs",h.productTabs))},dependencies:[u,s],encapsulation:2})}}return t})();var T=[{component:d,path:"",children:[{path:"",redirectTo:"sold-in-channel",pathMatch:"full"},{path:"in-pos",loadComponent(){return import("./chunk-LVGWG4MZ.js").then(t=>t.InPosComponent)},canActivate:[n,e],data:{title:"Products in POS"}},{path:"sold-in-channel",loadComponent(){return import("./chunk-JOGBI2SA.js").then(t=>t.SoldInChannelComponent)},canActivate:[n,e],data:{title:"Products Sold in Channel"}},{path:"not-in-channel",loadComponent(){return import("./chunk-CZRBNNGF.js").then(t=>t.NotInChannelComponent)},canActivate:[n,e],data:{title:"Products not in Channel"}},{path:"not-in-pos",loadComponent(){return import("./chunk-HUFK46IK.js").then(t=>t.NotInPosComponent)},canActivate:[n,e],data:{title:"Products not in POS"}},{path:"duplicate-sku",loadComponent(){return import("./chunk-Q27NRFPT.js").then(t=>t.DuplicateSkuComponent)},canActivate:[n,e],data:{title:"Duplicate Sku in Channel"}},{path:"duplicate-sku/table",loadComponent(){return import("./chunk-4EQIDZSW.js").then(t=>t.DuplicateSkuV2Component)},canActivate:[n,e],data:{title:"Duplicate Sku in Channel"}},{path:"channel-statistic",loadComponent(){return import("./chunk-SYRFTBNP.js").then(t=>t.ChannelStatisticComponent)},canActivate:[n,e],data:{title:"Channel Statistic"}},{path:"notification",loadComponent(){return import("./chunk-HYBEFK4S.js").then(t=>t.NotificationComponent)},canActivate:[n,e],data:{title:"Notification"}},{path:"notificationV2",loadComponent(){return import("./chunk-QSFUCVL2.js").then(t=>t.NotificationV2Component)},canActivate:[n,e],data:{title:"Notification"}},{path:"notificationV2/detailV2",loadComponent(){return import("./chunk-6ZIP2KDD.js").then(t=>t.DetailComponent)},canActivate:[n,e],data:{title:"Notification Detail"}},{path:"notification/detail",loadComponent(){return import("./chunk-K3VA4ROF.js").then(t=>t.DetailComponent)},canActivate:[n,e],data:{title:"Notification Detail"}}]}];export{T as routes};
|