marketplacepos 5.33.6 → 5.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/3rdpartylicenses.txt +134 -8
- package/Marketplace/chunk-23MIIDCT.js +2 -0
- package/Marketplace/chunk-2NECQ3RY.js +2 -0
- package/Marketplace/chunk-2NNAGGBO.js +1 -0
- package/Marketplace/chunk-2UUIV6C6.js +5 -0
- package/Marketplace/chunk-3ENIRM66.js +5 -0
- package/Marketplace/chunk-3NMGN7IE.js +2 -0
- package/Marketplace/chunk-3RK6DDJD.js +0 -0
- package/Marketplace/chunk-4BGF3NRH.js +3 -0
- package/Marketplace/chunk-4JRXTPAH.js +1 -0
- package/Marketplace/chunk-4RAOUTR2.js +5 -0
- package/Marketplace/chunk-4W7MIJDZ.js +1 -0
- package/Marketplace/chunk-52GRE6TF.js +2 -0
- package/Marketplace/chunk-5BTJTFLF.js +1 -0
- package/Marketplace/chunk-5UHZLNDT.js +1 -0
- package/Marketplace/chunk-5WNSX64O.js +1 -0
- package/Marketplace/chunk-5Z63CRGG.js +2 -0
- package/Marketplace/chunk-67USXWWF.js +1 -0
- package/Marketplace/chunk-6A4PYMCJ.js +1 -0
- package/Marketplace/chunk-6HVHZ3HN.js +1 -0
- package/Marketplace/chunk-72FE5Z4G.js +1 -0
- package/Marketplace/chunk-77IUCPIQ.js +1 -0
- package/Marketplace/chunk-7M4RYU7S.js +1 -0
- package/Marketplace/chunk-A7DI24YW.js +1 -0
- package/Marketplace/chunk-A7OUQFDG.js +1 -0
- package/Marketplace/chunk-AFMNWVBL.js +1 -0
- package/Marketplace/chunk-AI4XRCAL.js +1 -0
- package/Marketplace/chunk-AKJ4I7KF.js +3 -0
- package/Marketplace/chunk-ARIW575T.js +1 -0
- package/Marketplace/chunk-B6POIFQM.js +2 -0
- package/Marketplace/chunk-BQF5RWPV.js +2 -0
- package/Marketplace/chunk-BSATGCWC.js +2 -0
- package/Marketplace/chunk-C5XCTKZE.js +1 -0
- package/Marketplace/chunk-CYE5UD3J.js +5 -0
- package/Marketplace/chunk-DG3PIXFJ.js +1 -0
- package/Marketplace/chunk-E24BKGBJ.js +2 -0
- package/Marketplace/chunk-EIQCOZF5.js +7 -0
- package/Marketplace/chunk-EQ2ZKEVE.js +2 -0
- package/Marketplace/chunk-EQD3IUMF.js +1 -0
- package/Marketplace/chunk-EXFL3GUX.js +7 -0
- package/Marketplace/chunk-G43OSTZO.js +447 -0
- package/Marketplace/chunk-GA6G4Z77.js +15 -0
- package/Marketplace/chunk-GPIRHHPK.js +1 -0
- package/Marketplace/chunk-GYCAKLC6.js +1 -0
- package/Marketplace/chunk-HA5WIDED.js +1 -0
- package/Marketplace/chunk-HCQAPBYU.js +1 -0
- package/Marketplace/chunk-HI5IBYKT.js +1 -0
- package/Marketplace/chunk-HPS3WVU5.js +2 -0
- package/Marketplace/chunk-IIJMZKPL.js +1 -0
- package/Marketplace/chunk-IVX7QWP7.js +1 -0
- package/Marketplace/chunk-JP37GIKN.js +153 -0
- package/Marketplace/chunk-JSPVOV7M.js +1 -0
- package/Marketplace/chunk-K2H6WANG.js +1 -0
- package/Marketplace/chunk-K5CKXDIJ.js +2 -0
- package/Marketplace/chunk-K5XRGNWG.js +1 -0
- package/Marketplace/chunk-K7B23YKD.js +1 -0
- package/Marketplace/chunk-KRF4H3V6.js +1 -0
- package/Marketplace/chunk-KVZLHAO2.js +1 -0
- package/Marketplace/chunk-L6W6BJ3T.js +1 -0
- package/Marketplace/chunk-MA6JA5OR.js +93 -0
- package/Marketplace/chunk-MFPHDR5E.js +8 -0
- package/Marketplace/chunk-MS4AQ6UA.js +0 -0
- package/Marketplace/chunk-NHCDFSJ3.js +1 -0
- package/Marketplace/chunk-OBN6RKRH.js +2 -0
- package/Marketplace/chunk-OM7KOQLP.js +2 -0
- package/Marketplace/chunk-ONK4P7TL.js +1 -0
- package/Marketplace/chunk-ORPJLSXE.js +2 -0
- package/Marketplace/chunk-OS53H77X.js +193 -0
- package/Marketplace/chunk-OSQRMWJL.js +1 -0
- package/Marketplace/chunk-OVYL7SOO.js +4 -0
- package/Marketplace/chunk-OZ5LRIS3.js +1 -0
- package/Marketplace/chunk-PF4F4EAR.js +1 -0
- package/Marketplace/chunk-QA5IF5NA.js +1 -0
- package/Marketplace/chunk-QBCQRDML.js +1 -0
- package/Marketplace/chunk-QM6YBW4M.js +1525 -0
- package/Marketplace/chunk-R5IDWUP6.js +1 -0
- package/Marketplace/chunk-R6B6DIG3.js +1 -0
- package/Marketplace/chunk-RNWWVG3M.js +2 -0
- package/Marketplace/chunk-SD7UKXTX.js +1 -0
- package/Marketplace/chunk-SDUUFQUI.js +1 -0
- package/Marketplace/chunk-T7KM2WP6.js +1 -0
- package/Marketplace/chunk-TAMPHFXZ.js +1 -0
- package/Marketplace/chunk-TJG4JC6V.js +1181 -0
- package/Marketplace/chunk-TTAS23MO.js +2 -0
- package/Marketplace/chunk-TWEQ54JW.js +316 -0
- package/Marketplace/chunk-TY4H2W6F.js +2 -0
- package/Marketplace/chunk-TY7ZWITQ.js +1 -0
- package/Marketplace/chunk-TYHYQW6K.js +1 -0
- package/Marketplace/chunk-U3DTDPXT.js +1 -0
- package/Marketplace/chunk-U72SVWV5.js +1 -0
- package/Marketplace/chunk-ULOZVW2M.js +1 -0
- package/Marketplace/chunk-UOAYF4SW.js +5 -0
- package/Marketplace/chunk-V5WYSCVT.js +21 -0
- package/Marketplace/chunk-VAPIXIJ3.js +3 -0
- package/Marketplace/chunk-VKJAFLQ6.js +5 -0
- package/Marketplace/chunk-VOISFPEM.js +10 -0
- package/Marketplace/chunk-VUOTF3QO.js +1 -0
- package/Marketplace/{chunk-LUY3WZJE.js → chunk-VYKDVKG3.js} +3 -3
- package/Marketplace/chunk-W6T7TOHE.js +1 -0
- package/Marketplace/chunk-WMO2ROK4.js +1 -0
- package/Marketplace/{chunk-DVSSWF73.js → chunk-WNAVUGZ4.js} +3 -3
- package/Marketplace/{chunk-MEZONX3R.js → chunk-WQ6TZ4KW.js} +2 -2
- package/Marketplace/chunk-WYOXUN3H.js +2 -0
- package/Marketplace/chunk-X2LEVILZ.js +2 -0
- package/Marketplace/chunk-XJZCXXLP.js +2 -0
- package/Marketplace/chunk-XOT2SZPE.js +4 -0
- package/Marketplace/chunk-XR4JKTPA.js +1 -0
- package/Marketplace/chunk-YQSHLQDX.js +2 -0
- package/Marketplace/chunk-YYT4FHFC.js +1 -0
- package/Marketplace/index.html +3 -3
- package/Marketplace/main-QED4DWNH.js +1 -0
- package/Marketplace/polyfills-BUUDEW7V.js +2 -0
- package/Marketplace/prerendered-routes.json +3 -0
- package/Marketplace/scripts-BTEOQWVQ.js +5 -0
- package/Marketplace/styles-6IZYQNTO.css +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-35ZJOM7R.js +0 -1
- package/Marketplace/chunk-3LR4RLA6.js +0 -1
- package/Marketplace/chunk-3VZ6KYT3.js +0 -1
- package/Marketplace/chunk-46AOM3SM.js +0 -149
- package/Marketplace/chunk-47DMD3UG.js +0 -1
- package/Marketplace/chunk-4LFFAE2I.js +0 -1
- package/Marketplace/chunk-4LJDBY23.js +0 -1
- package/Marketplace/chunk-5JOW2QWK.js +0 -1
- package/Marketplace/chunk-5QZJUGAK.js +0 -1
- package/Marketplace/chunk-5VEPYUMQ.js +0 -2
- package/Marketplace/chunk-6U6JR5K6.js +0 -1
- package/Marketplace/chunk-6XIV3N7A.js +0 -93
- package/Marketplace/chunk-7LZ5ZSXM.js +0 -1
- package/Marketplace/chunk-7XUSMPAA.js +0 -1
- package/Marketplace/chunk-ADRVUMMW.js +0 -1
- package/Marketplace/chunk-AVNOI4Y2.js +0 -1
- package/Marketplace/chunk-AY4VWXDL.js +0 -1
- package/Marketplace/chunk-B2TH5YJH.js +0 -1142
- package/Marketplace/chunk-B3Z4Y52F.js +0 -1
- package/Marketplace/chunk-BO4PPSB5.js +0 -2
- package/Marketplace/chunk-BQ7NR3ET.js +0 -1
- package/Marketplace/chunk-BSN7ZAXG.js +0 -1
- package/Marketplace/chunk-CCXKODFV.js +0 -2
- package/Marketplace/chunk-CHERUPSJ.js +0 -1
- package/Marketplace/chunk-DGTMJB7Z.js +0 -1
- package/Marketplace/chunk-E3NPUJ23.js +0 -1
- package/Marketplace/chunk-E5GGIVK7.js +0 -1
- package/Marketplace/chunk-EMRL2DRQ.js +0 -1
- package/Marketplace/chunk-ETIHJ2QJ.js +0 -5
- package/Marketplace/chunk-EWJNZRII.js +0 -2
- package/Marketplace/chunk-F4WIW6HA.js +0 -1
- package/Marketplace/chunk-FB7QYHI7.js +0 -1
- package/Marketplace/chunk-FGPSBTFS.js +0 -3
- package/Marketplace/chunk-FKBNEPRA.js +0 -1
- package/Marketplace/chunk-FMV4LYKN.js +0 -1
- package/Marketplace/chunk-GCKSYCMI.js +0 -5
- package/Marketplace/chunk-GDQPP6MM.js +0 -1
- package/Marketplace/chunk-GNOSNGXM.js +0 -1
- package/Marketplace/chunk-HCDKYABV.js +0 -4
- package/Marketplace/chunk-HOHB4BIE.js +0 -1
- package/Marketplace/chunk-HSUYXU5C.js +0 -1
- package/Marketplace/chunk-HUUFOAKH.js +0 -1
- package/Marketplace/chunk-HXJF7C6Q.js +0 -1
- package/Marketplace/chunk-IJYSJN63.js +0 -443
- package/Marketplace/chunk-ILVEM7H5.js +0 -1
- package/Marketplace/chunk-J5D7PMX5.js +0 -2
- package/Marketplace/chunk-JXTGH22T.js +0 -1
- package/Marketplace/chunk-KAEUZC2Y.js +0 -1
- package/Marketplace/chunk-KCDL7SWP.js +0 -7
- package/Marketplace/chunk-KLG2P4J4.js +0 -1
- package/Marketplace/chunk-LEOQKCKW.js +0 -1
- package/Marketplace/chunk-M6K3R3ZQ.js +0 -1
- package/Marketplace/chunk-MN4BQ6VT.js +0 -1
- package/Marketplace/chunk-MSYSBH4C.js +0 -1494
- package/Marketplace/chunk-MY4B7K3R.js +0 -4
- package/Marketplace/chunk-N6IHFFFZ.js +0 -1
- package/Marketplace/chunk-O434S2MH.js +0 -2
- package/Marketplace/chunk-O4CRP4WO.js +0 -1
- package/Marketplace/chunk-O4ZSBRQO.js +0 -1
- package/Marketplace/chunk-O6NLLXKW.js +0 -1
- package/Marketplace/chunk-O7PVQC3K.js +0 -5
- package/Marketplace/chunk-OSA3WANL.js +0 -1
- package/Marketplace/chunk-OULUJ2IO.js +0 -189
- package/Marketplace/chunk-OVEJFFL6.js +0 -2
- package/Marketplace/chunk-OVYVCRNO.js +0 -1
- package/Marketplace/chunk-P5UOWO2P.js +0 -1
- package/Marketplace/chunk-PD4CUVAW.js +0 -1
- package/Marketplace/chunk-PIHADVVG.js +0 -1
- package/Marketplace/chunk-PP67QRRR.js +0 -5
- package/Marketplace/chunk-PQDPS2ID.js +0 -7
- package/Marketplace/chunk-QCYSUORC.js +0 -1
- package/Marketplace/chunk-QGVD6MF4.js +0 -1
- package/Marketplace/chunk-QP6O4KGV.js +0 -1
- package/Marketplace/chunk-RENQ3YZH.js +0 -1
- package/Marketplace/chunk-RVHCRVAI.js +0 -1
- package/Marketplace/chunk-RWIG5PXY.js +0 -8
- package/Marketplace/chunk-S2Z3ZGU7.js +0 -1
- package/Marketplace/chunk-S3BJOZBZ.js +0 -1
- package/Marketplace/chunk-TPGBOTD4.js +0 -1
- package/Marketplace/chunk-UMNGKENU.js +0 -1
- package/Marketplace/chunk-URCHO4IV.js +0 -1
- package/Marketplace/chunk-VGQPVJLJ.js +0 -1
- package/Marketplace/chunk-W54HCF5A.js +0 -1
- package/Marketplace/chunk-WT6W7RAQ.js +0 -1
- package/Marketplace/chunk-WWMZFSXS.js +0 -10
- package/Marketplace/chunk-X2TVRY2Z.js +0 -1
- package/Marketplace/chunk-X5Q6FPWS.js +0 -315
- package/Marketplace/chunk-XBOLFSWC.js +0 -1
- package/Marketplace/chunk-XJE5DG3A.js +0 -1
- package/Marketplace/chunk-YYWSBXIP.js +0 -1
- package/Marketplace/chunk-ZF3G3Y3J.js +0 -4
- package/Marketplace/chunk-ZQWAIH5X.js +0 -7
- package/Marketplace/main-CJOPMVHC.js +0 -1
- package/Marketplace/polyfills-MH5IBZ74.js +0 -2
- package/Marketplace/scripts-TB7H6DN4.js +0 -5
- package/Marketplace/styles-VNC3CHFK.css +0 -1
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import{a as ge,b as ue}from"./chunk-IJYSJN63.js";import{a as fe}from"./chunk-46AOM3SM.js";import{Y as ce,Z as T,da as de}from"./chunk-OULUJ2IO.js";import{e as re}from"./chunk-E3NPUJ23.js";import{t as se,u as pe}from"./chunk-HUUFOAKH.js";import{a as oe,h as le,m as ie,y as ne}from"./chunk-BSN7ZAXG.js";import{b as u,c as r}from"./chunk-47DMD3UG.js";import{$b as Y,Ca as P,Cd as L,Da as h,Ea as b,Eb as m,Gb as C,Gc as X,Ha as k,Hc as Z,Ib as W,Jc as ee,Nb as G,Pa as z,Sb as y,Tb as _,Xb as N,Yb as R,Z as F,aa as f,bc as s,cc as J,dc as U,ea as p,g as d,ia as E,ja as v,jb as M,ka as V,mc as D,nc as $,pa as g,pc as H,q as c,rc as q,sc as K,ta as S,tc as Q,ua as j,uc as w,vc as x,xb as I,xd as te,yd as ae,zb as B}from"./chunk-PQDPS2ID.js";var be=(()=>{let l=class l{constructor(){this.httpService=g(re),this.shopeeCategories=new d({data:[],isFirstLoad:!1}),this.tiktokCategories=new d({data:[],isFirstLoad:!1}),this.lazadaCategories=new d({data:[],isFirstLoad:!1}),this.tokopediaCategories=new d({data:[],isFirstLoad:!1}),this.wooCommerceCategories=new d({data:[],isFirstLoad:!1})}getCategories(t,a){switch(t){case u.Shopee:return this.shopeeCategories.asObservable().pipe(f(o=>o.isFirstLoad?c(o.data):this.getShopeeCategories(a)));case u.Tiktok:return this.tiktokCategories.asObservable().pipe(f(o=>o.isFirstLoad?c(o.data):this.getTiktokCategories(a)));case u.Lazada:return this.lazadaCategories.asObservable().pipe(f(o=>o.isFirstLoad?c(o.data):this.getLazadaCategories(a)));case u.Tokopedia:return this.tokopediaCategories.asObservable().pipe(f(o=>o.isFirstLoad?c(o.data):this.getTokopediaCategories(a)));case u.WooCommerce:return this.wooCommerceCategories.asObservable().pipe(f(o=>o.isFirstLoad?c(o.data):this.getWooCommerceCategories(a)));default:return c([])}}getShopeeCategories(t){return this.httpService.get("api/product/shopee/GetCategories",[{key:"ID",value:t}]).pipe(p(o=>{let n={data:o,isFirstLoad:!0};this.shopeeCategories.next(n)}))}getTiktokCategories(t){return this.httpService.get("api/product/tiktok/GetCategories",[{key:"ID",value:t}]).pipe(p(o=>{let n={data:o,isFirstLoad:!0};this.tiktokCategories.next(n)}))}getLazadaCategories(t){return this.httpService.get("api/product/lazada/GetCategories",[{key:"ID",value:t}]).pipe(p(o=>{let n={data:o,isFirstLoad:!0};this.lazadaCategories.next(n)}))}getTokopediaCategories(t){return this.httpService.get("api/product/tokopedia/GetCategories",[{key:"ID",value:t}]).pipe(p(o=>{let n={data:o,isFirstLoad:!0};this.tokopediaCategories.next(n)}))}getWooCommerceCategories(t){return this.httpService.get("api/product/woo/GetCategories",[{key:"ID",value:t}]).pipe(p(o=>{let n={data:o,isFirstLoad:!0};this.wooCommerceCategories.next(n)}))}searchByIdWithParentDFS(t,a){let o=[...t];for(;o.length>0;){let n=o.pop();if(n.id===JSON.stringify(a))return n;if(n.children&&n.children.length>0)for(let O of n.children)O.parent=n,o.push(O)}return null}searchSelectAbleNode(t){let a=null;if(t.selectable)return t;let o=t.children?t.children:[];if(o.length==0)return t;for(let n of o){if(n.children.length==0&&n.selectable)return n;if(a=this.searchSelectAbleNode(n),a)return a}return a}generateCategoryLabel(t){let a="";return t?a=r.getLabelPathTree(t):a="Select a Category",a}};l.\u0275fac=function(a){return new(a||l)},l.\u0275prov=v({token:l,factory:l.\u0275fac,providedIn:"root"});let e=l;return e})();var ye=({dt:e})=>`
|
|
2
|
-
.p-floatlabel {
|
|
3
|
-
display: block;
|
|
4
|
-
position: relative;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.p-floatlabel label {
|
|
8
|
-
position: absolute;
|
|
9
|
-
pointer-events: none;
|
|
10
|
-
top: 50%;
|
|
11
|
-
transform: translateY(-50%);
|
|
12
|
-
transition-property: all;
|
|
13
|
-
transition-timing-function: ease;
|
|
14
|
-
line-height: 1;
|
|
15
|
-
font-weight: ${e("floatlabel.font.weight")};
|
|
16
|
-
inset-inline-start: ${e("floatlabel.position.x")};
|
|
17
|
-
color: ${e("floatlabel.color")};
|
|
18
|
-
transition-duration: ${e("floatlabel.transition.duration")};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.p-floatlabel:has(.p-textarea) label {
|
|
22
|
-
top: ${e("floatlabel.position.y")};
|
|
23
|
-
transform: translateY(0);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.p-floatlabel:has(.p-inputicon:first-child) label {
|
|
27
|
-
inset-inline-start: calc((${e("form.field.padding.x")} * 2) + ${e("icon.size")});
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.p-floatlabel:has(.ng-invalid.ng-dirty) label {
|
|
31
|
-
color: ${e("floatlabel.invalid.color")};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.p-floatlabel:has(input:focus) label,
|
|
35
|
-
.p-floatlabel:has(input.p-filled) label,
|
|
36
|
-
.p-floatlabel:has(input:-webkit-autofill) label,
|
|
37
|
-
.p-floatlabel:has(textarea:focus) label,
|
|
38
|
-
.p-floatlabel:has(textarea.p-filled) label,
|
|
39
|
-
.p-floatlabel:has(.p-inputwrapper-focus) label,
|
|
40
|
-
.p-floatlabel:has(.p-inputwrapper-filled) label {
|
|
41
|
-
top: ${e("floatlabel.over.active.top")};
|
|
42
|
-
transform: translateY(0);
|
|
43
|
-
font-size: ${e("floatlabel.active.font.size")};
|
|
44
|
-
font-weight: ${e("floatlabel.label.active.font.weight")};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.p-floatlabel:has(input.p-filled) label,
|
|
48
|
-
.p-floatlabel:has(textarea.p-filled) label,
|
|
49
|
-
.p-floatlabel:has(.p-inputwrapper-filled) label {
|
|
50
|
-
color: ${e("floatlabel.active.color")};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.p-floatlabel:has(input:focus) label,
|
|
54
|
-
.p-floatlabel:has(input:-webkit-autofill) label,
|
|
55
|
-
.p-floatlabel:has(textarea:focus) label,
|
|
56
|
-
.p-floatlabel:has(.p-inputwrapper-focus) label {
|
|
57
|
-
color: ${e("floatlabel.focus.color")};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.p-floatlabel-in .p-inputtext,
|
|
61
|
-
.p-floatlabel-in .p-textarea,
|
|
62
|
-
.p-floatlabel-in .p-select-label,
|
|
63
|
-
.p-floatlabel-in .p-multiselect-label-container,
|
|
64
|
-
.p-floatlabel-in .p-autocomplete-input-multiple,
|
|
65
|
-
.p-floatlabel-in .p-cascadeselect-label,
|
|
66
|
-
.p-floatlabel-in .p-treeselect-label {
|
|
67
|
-
padding-top: ${e("floatlabel.in.input.padding.top")};
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.p-floatlabel-in:has(input:focus) label,
|
|
71
|
-
.p-floatlabel-in:has(input.p-filled) label,
|
|
72
|
-
.p-floatlabel-in:has(input:-webkit-autofill) label,
|
|
73
|
-
.p-floatlabel-in:has(textarea:focus) label,
|
|
74
|
-
.p-floatlabel-in:has(textarea.p-filled) label,
|
|
75
|
-
.p-floatlabel-in:has(.p-inputwrapper-focus) label,
|
|
76
|
-
.p-floatlabel-in:has(.p-inputwrapper-filled) label {
|
|
77
|
-
top: ${e("floatlabel.in.active.top")};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.p-floatlabel-on:has(input:focus) label,
|
|
81
|
-
.p-floatlabel-on:has(input.p-filled) label,
|
|
82
|
-
.p-floatlabel-on:has(input:-webkit-autofill) label,
|
|
83
|
-
.p-floatlabel-on:has(textarea:focus) label,
|
|
84
|
-
.p-floatlabel-on:has(textarea.p-filled) label,
|
|
85
|
-
.p-floatlabel-on:has(.p-inputwrapper-focus) label,
|
|
86
|
-
.p-floatlabel-on:has(.p-inputwrapper-filled) label {
|
|
87
|
-
top: 0;
|
|
88
|
-
transform: translateY(-50%);
|
|
89
|
-
border-radius: ${e("floatlabel.on.border.radius")};
|
|
90
|
-
background: ${e("floatlabel.on.active.background")};
|
|
91
|
-
padding: ${e("floatlabel.on.active.padding")};
|
|
92
|
-
}
|
|
93
|
-
`,ve={root:({instance:e,props:l})=>["p-floatlabel",{"p-floatlabel-over":l.variant==="over","p-floatlabel-on":l.variant==="on","p-floatlabel-in":l.variant==="in"}]},me=(()=>{class e extends de{name="floatlabel";theme=ye;classes=ve;static \u0275fac=(()=>{let i;return function(a){return(i||(i=k(e)))(a||e)}})();static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})();var Se=["*"],A=(()=>{class e extends fe{_componentStyle=g(me);variant="over";static \u0275fac=(()=>{let i;return function(a){return(i||(i=k(e)))(a||e)}})();static \u0275cmp=S({type:e,selectors:[["p-floatlabel"],["p-floatLabel"],["p-float-label"]],hostVars:8,hostBindings:function(t,a){t&2&&W("p-floatlabel",!0)("p-floatlabel-over",a.variant==="over")("p-floatlabel-on",a.variant==="on")("p-floatlabel-in",a.variant==="in")},inputs:{variant:"variant"},standalone:!0,features:[w([me]),B,x],ngContentSelectors:Se,decls:1,vars:0,template:function(t,a){t&1&&(J(),U(0))},dependencies:[L,T],encapsulation:2,changeDetection:0})}return e})(),Ce=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=j({type:e});static \u0275inj=V({imports:[A,T,T]})}return e})();function we(e,l){e&1&&N(0)}function xe(e,l){if(e&1&&(y(0,"p-floatLabel",1),m(1,we,1,0,"ng-container",2),y(2,"label",3),$(3,"Category"),_()()),e&2){s();let i=D(3);M(),C("ngTemplateOutlet",i)}}function Le(e,l){e&1&&N(0)}function Te(e,l){if(e&1&&m(0,Le,1,0,"ng-container",2),e&2){s();let i=D(3);C("ngTemplateOutlet",i)}}function Fe(e,l){if(e&1&&(y(0,"div",6),$(1),_()),e&2){let i=s(2);C("matTooltip",i.selectedCategoryLabel()),M(),H(" ",i.selectedCategoryLabel()," ")}}function ke(e,l){if(e&1){let i=R();y(0,"p-treeSelect",4),X(1,"async"),Q("ngModelChange",function(a){h(i);let o=s();return K(o.selectedNode,a)||(o.selectedNode=a),b(a)}),Y("click",function(){h(i);let a=s();return b(a.onClickSelect())})("onNodeSelect",function(a){h(i);let o=s();return b(o.onNodeSelect(a))})("onClear",function(){h(i);let a=s();return b(a.onNodeUnselect())}),m(2,Fe,2,2,"ng-template",5),_()}if(e&2){let i=s();q("ngModel",i.selectedNode),C("filter",!0)("options",Z(1,5,i.categories$))("showClear",i.showClear)("disabled",i.disabled)}}var dt=(()=>{let l=class l{constructor(){this.categoryService=g(be),this.showClear=!1,this.showLabel=!1,this.disabled=!1,this.selectedCategory=new z,this.selectedCategoryLabel=I("Select a Category"),this.selectedNode=I(null),this.onChange=t=>{},this.onTouched=()=>{}}ngOnChanges(t){let a=t?.categoryId?.previousValue,o=t?.categoryId?.currentValue;r.IsEmpty(a)&&r.IsNotEmpty(o)&&this.initCategories(),r.IsEmpty(o)&&r.IsNotEmpty(a)&&this.generateCategoryLabel(null)}initCategories(){this.categories$=this.categoryService.getCategories(this.channelType,this.channelId).pipe(p(t=>this.setDefaultCategory(t)),F(1))}setDefaultCategory(t){try{let a=this.categoryService.searchByIdWithParentDFS(t,this.categoryId);a&&(this.generateCategoryLabel(a),this.selectedNode.set(a))}catch(a){console.error(a)}}onClickSelect(){this.disabled==!1&&(this.categories$=this.categoryService.getCategories(this.channelType,this.channelId).pipe(F(1)))}onNodeSelect(t){let a=this.categoryService.searchSelectAbleNode(t.node);this.selectedCategoryLabel.set(r.getLabelPathTree(a));let o=parseInt(a.id);this.onChange(o),this.selectedCategory.emit(o)}onNodeUnselect(){this.selectedCategoryLabel.set("Select a Category"),this.selectedCategory.emit(null)}generateCategoryLabel(t){t?this.selectedCategoryLabel.set(r.getLabelPathTree(t)):this.selectedCategoryLabel.set("Select a Category")}writeValue(t){r.IsNotEmpty(t)&&(this.categoryId=t,this.initCategories())}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}};l.\u0275fac=function(a){return new(a||l)},l.\u0275cmp=S({type:l,selectors:[["app-channel-category-select"]],inputs:{channelId:"channelId",channelType:"channelType",categoryId:"categoryId",showClear:"showClear",showLabel:"showLabel",disabled:"disabled"},outputs:{selectedCategory:"selectedCategory"},standalone:!0,features:[w([{provide:oe,useExisting:E(()=>l),multi:!0}]),P,x],decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","containerStyleClass","w-100","placeholder","Select a Category","id","selectCategory","inputId","selectCategory",3,"ngModelChange","click","onNodeSelect","onClear","ngModel","filter","options","showClear","disabled"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(a,o){a&1&&m(0,xe,4,1,"p-floatLabel",1)(1,Te,1,1,"ng-container")(2,ke,3,7,"ng-template",null,0,ee),a&2&&G(o.showLabel?0:1)},dependencies:[L,te,ae,ue,ge,ce,pe,se,ne,le,ie,Ce,A],styles:[".p-overlay.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]});let e=l;return e})();export{be as a,dt as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as j}from"./chunk-JXTGH22T.js";import{b as A,c as D,i as P,j as R}from"./chunk-BO4PPSB5.js";import{h as U,m as V}from"./chunk-BSN7ZAXG.js";import{$b as _,Da as m,Ea as d,Eb as M,Gb as h,Nb as y,Ob as w,Qb as v,Rb as S,Sb as o,Tb as c,Ub as x,Yb as g,bc as k,gb as u,jb as r,kb as p,nc as C,oc as I,rc as O,sc as T,ta as f,tc as b}from"./chunk-PQDPS2ID.js";function E(l,i){if(l&1){let a=g();o(0,"span")(1,"mat-checkbox",4),_("change",function(e){m(a);let t=k();return d(t.onSelectAll(e==null?null:e.checked))}),o(2,"h5",5),C(3,"Select All"),c()()()}}function F(l,i){if(l&1){let a=g();o(0,"li")(1,"mat-checkbox",6),b("ngModelChange",function(e){let t=m(a).$implicit;return T(t.selected,e)||(t.selected=e),d(e)}),o(2,"div",7),x(3,"img",8),o(4,"h5",9),C(5),c()()()()}if(l&2){let a=i.$implicit;r(),O("ngModel",a.selected),r(2),h("src",a.Img,u),r(2),I(a.Name)}}var H=(()=>{let i=class i{constructor(n,e){this.data=n,this.dialogRef=e,this.selectedItems=this.data.selectedItems,this.channels=this.data.channels}ngOnInit(){this.initModalConfig()}initModalConfig(){let n=this.data.title?this.data.title:"Updating Inventory";this.modalConfig=new P,this.modalConfig.title=n}onSelectAll(n){this.channels=this.channels.map(e=>(e.selected=n,e))}onOk(){this.dialogRef.close(this.channels)}onClose(){this.dialogRef.close()}getSelectedChannel(){return this.channels.filter(n=>n.selected)}};i.\u0275fac=function(e){return new(e||i)(p(D),p(A))},i.\u0275cmp=f({type:i,selectors:[["app-modal-update-channels"]],decls:7,vars:3,consts:[[3,"onOk","onClose","onCancel","dynamicValidated","config"],["content",""],[2,"overflow-y","auto","max-height","28rem"],[1,"no-bullet",2,"margin-bottom","0px !important","overflow","hidden"],["color","primary",1,"me-6",3,"change"],[1,"fw-light"],["color","primary",3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center"],[1,"channelLogo-md",3,"src"],[1,"fw-light","ms-2","my-auto"]],template:function(e,t){if(e&1&&(o(0,"modal-material",0),_("onOk",function(){return t.onOk()})("onClose",function(){return t.onClose()})("onCancel",function(){return t.onClose()}),o(1,"div",1)(2,"div",2),M(3,E,4,0,"span"),o(4,"ul",3),v(5,F,6,3,"li",null,w),c()()()()),e&2){let s;h("dynamicValidated",((s=t.getSelectedChannel())==null?null:s.length)>0)("config",t.modalConfig),r(3),y((t.channels==null?null:t.channels.length)>1?3:-1),r(2),S(t.channels)}},dependencies:[U,V,j,R],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]});let l=i;return l})();export{H as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as rt}from"./chunk-BVIRHZTZ.js";import{a as bt}from"./chunk-GCKSYCMI.js";import{c as xt}from"./chunk-ADRVUMMW.js";import{g as Ct}from"./chunk-HCDKYABV.js";import{e as st}from"./chunk-E3NPUJ23.js";import{b as ut,c as gt,g as ht,i as ft,j as _t}from"./chunk-BO4PPSB5.js";import{t as pt,u as dt}from"./chunk-HUUFOAKH.js";import{c as it,h as nt,m as ot,y as at}from"./chunk-BSN7ZAXG.js";import{b as lt,d as mt,f as ct}from"./chunk-47DMD3UG.js";import{$b as x,Bd as O,Cd as B,Da as d,Ea as u,Eb as g,G as U,Gb as h,Gc as I,Hc as y,Jc as j,K as z,Ma as f,Nb as v,Pa as M,Sb as l,Tb as m,Ub as $,Vb as T,Wb as w,X as J,Xb as Q,Yb as _,Z as W,bc as c,ca as Y,dd as D,ea as k,f as A,fa as H,g as G,ja as q,jb as r,kb as S,mc as V,nc as p,oa as K,oc as N,pc as F,rc as X,sc as Z,ta as E,tc as tt,v as P,vc as L,vd as R,xb as C,xd as et}from"./chunk-PQDPS2ID.js";function Tt(i,n){i&1&&Q(0)}function wt(i,n){if(i&1&&(T(0),g(1,Tt,1,0,"ng-container",5),w()),i&2){c(2);let a=V(4);r(),h("ngTemplateOutlet",a)}}function Nt(i,n){if(i&1&&(l(0,"div",6)(1,"label"),p(2,"Editing Data"),m(),l(3,"div")(4,"span"),p(5),I(6,"number"),m()()()),i&2){let a=c(2);r(5),N(y(6,1,a.value))}}function It(i,n){if(i&1&&(T(0),g(1,wt,2,1,"ng-container",4)(2,Nt,7,3,"ng-template",null,1,j),w()),i&2){let a=V(3),t=c();r(),h("ngIf",t.hasPriceEdit)("ngIfElse",a)}}function yt(i,n){if(i&1){let a=_();l(0,"div",7)(1,"input",8),tt("ngModelChange",function(e){d(a);let o=c();return Z(o.value,e)||(o.value=e),u(e)}),m(),l(2,"label",9),p(3),m()()}if(i&2){let a=c();r(),X("ngModel",a.value),h("max",a.maxEditInventory),r(2),N(a.item.Table)}}var qt=(()=>{let n=class n{constructor(t,e,o){this.dialogRef=t,this.item=e,this.permissionService=o,this.maxEditInventory=1e5,this.permissionService.hasPermission(rt.price).then(s=>this.hasPriceEdit=s)}ngOnInit(){this.selectedChannel=this.item.Variant.Channel.find(t=>t.ChannelID==this.item.ChannelID),this.selectedChannel.ID=this.item.Variant.ID,this.selectedChannel.Sku=this.item.Variant.Code,this.item.Table=="inventory"?(this.value=this.selectedChannel.Inventory,this.maxEditInventory=this.selectedChannel?.TypeID==lt.Tokopedia?1e5:null):this.item.Table=="price"&&(this.value=this.selectedChannel.Price,this.maxEditInventory=null),this.selectedChannel.ItemName=this.item.Name,this.selectedChannel.VarName=this.item.Variant.Model,this.initModalConfig()}initModalConfig(){let t=this.item.Table=="inventory"?"Update Inventory":"Update Price";this.modalConfig=new ft,this.modalConfig.title=`${t} ${this.item?.Name} in ${this.selectedChannel?.Title}`}onSubmit(){this.item.Table=="inventory"?this.selectedChannel.Inventory=this.value:this.item.Table=="price"&&(this.selectedChannel.Price=this.value),this.dialogRef.close(this.selectedChannel)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(e){return new(e||n)(S(ut),S(gt),S(mt))},n.\u0275cmp=E({type:n,selectors:[["app-table-dialog"]],standalone:!0,features:[L],decls:5,vars:4,consts:[["INVENTORY",""],["DISABLED",""],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["matTooltipPosition","above","matTooltip","Cannot edit Unit Price because you dont have access ProductEditor role",1,"info-label-group","mt-3",2,"background","#e9ecef","opacity","1"],[1,"form-label-group","mt-3"],["type","text","name","edit","autoNum","",1,"form-control",3,"ngModelChange","ngModel","max"],["for","edit",1,"text-capitalize"]],template:function(e,o){if(e&1){let s=_();l(0,"modal-material",2),x("onClose",function(){return d(s),u(o.onClose())})("onCancel",function(){return d(s),u(o.onClose())})("onOk",function(){return d(s),u(o.onSubmit())}),l(1,"div",3),g(2,It,4,2,"ng-container",4)(3,yt,4,3,"ng-template",null,0,j),m()()}if(e&2){let s=V(4);h("dynamicValidated",o.value)("config",o.modalConfig),r(2),h("ngIf",o.item.Table=="price")("ngIfElse",s)}},dependencies:[B,R,et,O,ht,Ct,xt,bt,_t,at,it,nt,ot,ct,dt,pt],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem}.mat-dialog-content[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem;margin-left:.5rem;margin-right:.5rem}.font-lg[_ngcontent-%COMP%]{font-size:large}.font-lgr[_ngcontent-%COMP%]{font-size:larger}"]});let i=n;return i})();function Dt(i,n){if(i&1){let a=_();l(0,"span",6),x("click",function(){d(a);let e=c();return u(e.onGetRowCount())}),l(1,"i",7),p(2,"?"),m()()}}function Et(i,n){if(i&1&&(T(0),l(1,"span"),p(2),I(3,"number"),m(),w()),i&2){let a=c();r(2),N(y(3,1,a.rowCount()))}}function Mt(i,n){if(i&1){let a=_();l(0,"a",10),x("click",function(){d(a);let e=c(2);return u(e.onNextPage())}),$(1,"i",11),p(2," Next"),m()}}function St(i,n){if(i&1){let a=_();l(0,"a",12),x("click",function(){d(a);let e=c(2);return u(e.onLastPage())}),$(1,"i",13),p(2," Last"),m()}}function Vt(i,n){if(i&1&&(l(0,"div",5),g(1,Mt,3,0,"a",8)(2,St,3,0,"a",9),m()),i&2){let a=c();r(),v(a.disableNextButton()&&!a.goToLastPage()?1:-1),r(),v(a.disableNextButton()&&!a.goToLastPage()?2:-1)}}var ee=(()=>{let n=class n{constructor(){this.totalData=f(0),this.rowCount=f(),this.pageNumber=f(),this.disableNextButton=f(),this.goToLastPage=f(),this.hideCount=f(),this.nextPage=new M,this.lastPage=new M,this.getRowCount=new M}onNextPage(){this.nextPage.emit()}onLastPage(){this.lastPage.emit()}onGetRowCount(){this.getRowCount.emit()}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=E({type:n,selectors:[["infinite-paginator"]],inputs:{totalData:[1,"totalData"],rowCount:[1,"rowCount"],pageNumber:[1,"pageNumber"],disableNextButton:[1,"disableNextButton"],goToLastPage:[1,"goToLastPage"],hideCount:[1,"hideCount"]},outputs:{nextPage:"onNextPage",lastPage:"onLastPage",getRowCount:"onGetRowCount"},standalone:!0,features:[L],decls:9,vars:7,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[4,"ngIf"],[1,"btn-group"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary","border-start-0"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary","border-start-0",3,"click"],[1,"fas","fa-share"]],template:function(e,o){e&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),p(3),I(4,"number"),g(5,Dt,3,0,"span",3)(6,Et,4,3,"ng-container",4),p(7),m()(),g(8,Vt,3,2,"div",5),m()),e&2&&(r(3),F(" Showing 1 - ",y(4,5,o.totalData())," of "),r(2),v(o.hideCount()?5:-1),r(),h("ngIf",!o.hideCount()&&o.rowCount()),r(),F(" records ~ ",o.pageNumber()," Page "),r(),v(o.totalData()>0?8:-1))},dependencies:[B,R,O]});let i=n;return i})();var le=(()=>{let n=class n{constructor(t){this.http=t,this.pagination$=new G(null),this._pageNumber=C(1),this.pageNumber=D(()=>this._pageNumber()),this._hideCount=C(!0),this.hideCount=D(()=>this._hideCount()),this._disableNextButton=C(!0),this.disableNextButton=D(()=>this._disableNextButton()),this._goToLastPage=C(!1),this.isLastPage=D(()=>this._goToLastPage()),this.totalData=C(0),this.destroy$=new A,this.data$=this.paginationFunction()}onNextPage(t){t.PageNumber+=1,this.pagination$.next(t)}setPageNumberFooter(t){this._pageNumber.set(t.PageNumber)}setPaginationButtonState(t,e){e==0?this._disableNextButton.set(!0):this._disableNextButton.set(!(e<t.RowCount*t.PageNumber))}reloadPagination(t){t.PageNumber=1,this.pagination$.next(t),this._hideCount.set(!0),this._goToLastPage.set(!1)}onLastPage(t={}){let e=JSON.parse(JSON.stringify(t));this.totalRowCount$=this.http.post(`/api/${this.fethRowCountEndpoint}`,e).pipe(P(o=>o.Total),k(o=>{this._hideCount.set(!1),e.RowCount=o,e.PageNumber=1,this.pagination$.next(e),this._goToLastPage.set(!0)}))}paginationFunction(){return this.pagination$.pipe(Y(this.destroy$),U(t=>t!=null),z(t=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(t)).pipe(P(e=>e.Data?e.Data:[]))),H(this.pagination$),J((t,e)=>{let[o,s]=t,[b]=e;return s.PageNumber==1?[b,s]:[o.concat(b),s]}),k(([t,e])=>{this.setPageNumberFooter(e);let o=this.calculateProductLength(t);this.totalData.set(o),this.setPaginationButtonState(e,o)}),P(([t])=>t),W())}getRowCount(t){this._hideCount.set(!1),this.totalRowCount$=this.http.post(`/API/${this.fethRowCountEndpoint}`,t).pipe(P(e=>e.Total))}calculateProductLength(t=[]){return t.reduce((o,s)=>o+(s.Variants?.length?s.Variants?.length:0),0)}};n.\u0275fac=function(e){return new(e||n)(K(st))},n.\u0275prov=q({token:n,factory:n.\u0275fac});let i=n;return i})();export{qt as a,ee as b,le as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as U,d as Z,g as C}from"./chunk-HCDKYABV.js";import{K as w,L as z,Q as q,a as _,e as I,h as p,i as M,j as V}from"./chunk-E5GGIVK7.js";import{e as j,g as P,k as O,p as B}from"./chunk-BSN7ZAXG.js";import{$b as b,Ca as F,Fb as k,Ib as L,Na as x,Zb as N,f as c,ja as T,ka as u,kb as r,m as S,ma as A,oa as y,sb as f,ua as m,uc as D,va as E}from"./chunk-PQDPS2ID.js";var $=V({passive:!0}),K=(()=>{let i=class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return S;let t=I(e),s=this._monitoredElements.get(t);if(s)return s.subject;let o=new c,a="cdk-text-field-autofilled",d=l=>{l.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(a)?(t.classList.add(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(a)&&(t.classList.remove(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",d,$),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:o,unlisten:()=>{t.removeEventListener("animationstart",d,$)}}),o}stopMonitoring(e){let t=I(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}};i.\u0275fac=function(t){return new(t||i)(y(p),y(f))},i.\u0275prov=T({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();var W=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({});let n=i;return n})();var ee=new A("MAT_INPUT_VALUE_ACCESSOR"),te=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ie=0,we=(()=>{let i=class i{get disabled(){return this._disabled}set disabled(e){this._disabled=_(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(j.required)??!1}set required(e){this._required=_(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&M().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=_(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,s,o,a,d,l,Y,G,H){this._elementRef=e,this._platform=t,this.ngControl=s,this._autofillMonitor=Y,this._formField=H,this._uid=`mat-input-${ie++}`,this.focused=!1,this.stateChanges=new c,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(v=>M().has(v)),this._iOSKeyupListener=v=>{let h=v.target;!h.value&&h.selectionStart===0&&h.selectionEnd===0&&(h.setSelectionRange(1,1),h.setSelectionRange(0,0))};let g=this._elementRef.nativeElement,R=g.nodeName.toLowerCase();this._inputValueAccessor=l||g,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&G.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new z(d,s,a,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=R==="select",this._isTextarea=R==="textarea",this._isInFormField=!!H,this._isNativeSelect&&(this.controlType=g.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){te.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}};i.\u0275fac=function(t){return new(t||i)(r(x),r(p),r(P,10),r(O,8),r(B,8),r(q),r(ee,10),r(K),r(f),r(Z,8))},i.\u0275dir=E({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(t,s){t&1&&b("focus",function(){return s._focusChanged(!0)})("blur",function(){return s._focusChanged(!1)})("input",function(){return s._onInput()}),t&2&&(N("id",s.id)("disabled",s.disabled)("required",s.required),k("name",s.name||null)("readonly",s.readonly&&!s._isNativeSelect||null)("aria-invalid",s.empty&&s.required?null:s.errorState)("aria-required",s.required)("id",s.id),L("mat-input-server",s._isServer)("mat-mdc-form-field-textarea-control",s._isInFormField&&s._isTextarea)("mat-mdc-form-field-input-control",s._isInFormField)("mdc-text-field__input",s._isInFormField)("mat-mdc-native-select-inline",s._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[D([{provide:U,useExisting:i}]),F]});let n=i;return n})(),Ce=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({imports:[w,C,C,W,w]});let n=i;return n})();export{ee as a,we as b,Ce as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as v,b}from"./chunk-X2TVRY2Z.js";import{a as r}from"./chunk-5QZJUGAK.js";import"./chunk-ZF3G3Y3J.js";import"./chunk-E3NPUJ23.js";import"./chunk-KCDL7SWP.js";import"./chunk-HUUFOAKH.js";import"./chunk-E5GGIVK7.js";import"./chunk-47DMD3UG.js";import{n as h,r as i}from"./chunk-OVEJFFL6.js";import{Cd as o,Gb as u,Sb as d,Tb as C,Ub as a,jb as s,ka as l,ta as m,ua as c,vc as f}from"./chunk-PQDPS2ID.js";import"./chunk-GNOSNGXM.js";var T=(()=>{let e=class e{constructor(){this.priceTabs=[{Title:"Single Channel Comparison",Url:"/menu/price/SingleChannel"},{Title:"Multi Channel Comparison",Url:"/menu/price/pos"},{Title:"Custom Channel Price",Url:"/menu/price/OutletPrice"}]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=m({type:e,selectors:[["app-price"]],standalone:!0,features:[f],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(n,g){n&1&&(d(0,"nav",0)(1,"div",1)(2,"div"),a(3,"nav-tab",2),C()()(),a(4,"router-outlet")),n&2&&(s(3),u("Tabs",g.priceTabs))},dependencies:[o,b,v,i,h],encapsulation:2});let t=e;return t})();var P=[{path:"",component:T,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-HOHB4BIE.js").then(t=>t.PricePosChannelComponent)},canActivate:[r],data:{title:"Global Price Comparison"}},{path:"OutletPrice",loadComponent(){return import("./chunk-MN4BQ6VT.js").then(t=>t.CustomChannelPriceComponent)},canActivate:[r],data:{title:"Outlet Price Comparison"}},{path:"SingleChannel",loadComponent(){return import("./chunk-PIHADVVG.js").then(t=>t.PriceSingleChannelComponent)},canActivate:[r],data:{title:"Price Single Channel Comparison"}}]}],D=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[o,i.forChild(P)]});let t=e;return t})();export{D as PriceRoutingModule};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Be}from"./chunk-XBOLFSWC.js";import{a as X}from"./chunk-J5D7PMX5.js";import"./chunk-6U6JR5K6.js";import{a as Z}from"./chunk-RENQ3YZH.js";import{a as ke,b as Ve}from"./chunk-X2TVRY2Z.js";import"./chunk-MY4B7K3R.js";import"./chunk-P5UOWO2P.js";import"./chunk-FGPSBTFS.js";import"./chunk-ADRVUMMW.js";import{a as Q,b as We}from"./chunk-WT6W7RAQ.js";import"./chunk-BQ7NR3ET.js";import{a as B}from"./chunk-5QZJUGAK.js";import"./chunk-FMV4LYKN.js";import"./chunk-HCDKYABV.js";import{a as me,b as pe,d as ce,e as Ne}from"./chunk-CCXKODFV.js";import{j as de}from"./chunk-ZF3G3Y3J.js";import{e as M}from"./chunk-E3NPUJ23.js";import"./chunk-KCDL7SWP.js";import{m as R,n as Oe}from"./chunk-BO4PPSB5.js";import{t as Pe,u as Le}from"./chunk-HUUFOAKH.js";import"./chunk-E5GGIVK7.js";import{c as oe,h as ae,m as le,o as se,t as Te,u as De,y as Me,z as Re}from"./chunk-BSN7ZAXG.js";import{c as W}from"./chunk-47DMD3UG.js";import{m as A,n as Ee,p as L,r as fe}from"./chunk-OVEJFFL6.js";import{$b as I,Ad as j,Cd as he,Da as g,Ea as h,Eb as v,Gb as c,Gc as _,Hc as O,Ic as E,Jc as Y,Kb as we,Sb as t,Tb as i,Ub as P,Vb as q,Wb as G,Yb as N,Z as be,bc as y,ea as xe,gb as z,ja as ue,jb as l,ka as ne,kb as f,mc as U,nc as n,oa as ye,oc as p,pc as V,rc as C,sc as S,sd as ge,ta as w,tc as b,ua as re,ud as K,v as Se,vd as T,wc as J,xc as F,yd as Ie,zd as D}from"./chunk-PQDPS2ID.js";import"./chunk-GNOSNGXM.js";var Ae=(()=>{let o=class o{constructor(){this.ObjectlogTabs=[{Title:"Sync Order",Url:"/menu/log/order"},{Title:"Inventory Sync ",Url:"/menu/log/inventory"},{Title:"Channel Webhook",Url:"/menu/log/rawlog"},{Title:"Channel Webhook Exception ",Url:"/menu/log/exception"},{Title:"Authorization Log ",Url:"/menu/log/authorization-log"}]}};o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=w({type:o,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(a,e){a&1&&(t(0,"nav",0)(1,"div",1)(2,"div"),P(3,"nav-tab",2),i()()(),P(4,"router-outlet")),a&2&&(l(3),c("Tabs",e.ObjectlogTabs))},dependencies:[Ee,ke]});let r=o;return r})();var $=(()=>{let o=class o{constructor(){}get Data(){return this._Data}set Data(d){this._Data=d}Fill(d){return this._Data.find(a=>a._id==d)}};o.\u0275fac=function(a){return new(a||o)},o.\u0275prov=ue({token:o,factory:o.\u0275fac,providedIn:"root"});let r=o;return r})();var it=()=>["/menu/log/order/detail-user"],nt=r=>({ID:r}),rt=r=>({"bg-warning":r});function ot(r,o){if(r&1&&(t(0,"span",22),P(1,"img",23),i(),n(2)),r&2){let s=o.item;l(),c("src",s.Img,z)("alt",s.Name),l(),V(" ",s.Name," ")}}function at(r,o){r&1&&(t(0,"th",27)(1,"span",33),n(2," Response Body Warning "),i()())}function lt(r,o){r&1&&(t(0,"th")(1,"span",33),n(2," Number Override "),i()())}function st(r,o){if(r&1&&(t(0,"td",27)(1,"span",36),n(2),i()()),r&2){let s=y().$implicit;l(),c("ngClass",F(2,rt,s.responseBodyWarning!=null)),l(),p(s.responseBodyWarning)}}function dt(r,o){if(r&1&&(t(0,"td"),n(1),i()),r&2){let s=y().$implicit;l(),V(" ",s.ResponseBodyWarningReference," ")}}function mt(r,o){if(r&1&&(t(0,"tr")(1,"td")(2,"a",34),n(3),_(4,"date"),i()(),t(5,"td"),n(6),i(),t(7,"td"),n(8),i(),t(9,"td"),n(10),i(),t(11,"td",27)(12,"span",35),n(13),i()(),v(14,st,3,4,"td",29)(15,dt,2,1,"td",30),i()),r&2){let s=o.$implicit,d=y(2);l(2),c("routerLink",J(14,it))("queryParams",F(15,nt,s.ID)),l(),V(" ",E(4,11,s.Created,"dd MMM yyyy HH:mm:ss")," "),l(3),p(s.MarketTypeString),l(2),p(s.POSActionTypeString),l(2),p(s.Number),l(2),we(s.ResponseCode===200||s.ResponseCode===202?"bg-success":"bg-warning"),l(),V(" ",s.ResponseCode," "),l(),c("ngIf",d.responseBodyWarningVisible),l(),c("ngIf",d.responseBodyWarningVisible)}}function pt(r,o){if(r&1){let s=N();q(0),t(1,"div",24)(2,"table",25)(3,"thead")(4,"tr",26)(5,"th"),n(6,"Date"),i(),t(7,"th"),n(8,"Channel"),i(),t(9,"th"),n(10,"Actions"),i(),t(11,"th"),n(12,"Number"),i(),t(13,"th",27)(14,"span",28),n(15," Response Code "),i()(),v(16,at,3,0,"th",29)(17,lt,3,0,"th",30),i()(),t(18,"tbody"),v(19,mt,16,17,"tr",31),i()(),t(20,"mat-paginator",32),I("page",function(a){g(s);let e=y();return h(e.changePage(a))}),i()(),G()}if(r&2){let s=y();l(16),c("ngIf",s.responseBodyWarningVisible),l(),c("ngIf",s.responseBodyWarningVisible),l(2),c("ngForOf",s.Result),l(),c("length",s.paginationTotal)("pageSize",s.paginationPageSize)("pageIndex",(s.filter==null?null:s.filter.PageNumber)==0?0:(s.filter==null?null:s.filter.PageNumber)-1)}}function ct(r,o){r&1&&(t(0,"div",37),P(1,"app-empty-state"),i())}var He=(()=>{let o=class o{constructor(d,a,e,u){this.http=d,this._RawLogService=a,this.route=e,this.authService=u,this.Result=Array(),this.filter={RowCount:20,Number:"",PageNumber:1,ActionType:"",ChannelID:"",StatusCode:"",From:"",To:"",responseBodyWarning:""},this.responseBodyWarningVisible=!1,this.channelOptions=this.authService.getChannels()}ngOnInit(){this.route.queryParams.subscribe(d=>{this.responseCode=d.responseCode,this.responseCode!=null?this.Load(d):this.Load()})}Load(d={}){this.http.post("/api/OrdersLoader/Get",d).subscribe(a=>{this.filter=a.Filter,this.ActionTypeList=a.Options.ActionTypeList,this.Get()})}Get(d){this.filter.Number=d,this.http.post("/api/Orders/Get",this.filter).subscribe(a=>{this._RawLogService.Data=a.hits,this.Result=Array();for(let e of a.hits){e._source.log.responseBodyWarning!=null&&(this.responseBodyWarningVisible=!0);let u={ID:e._id,Created:e._source["@timestamp_received"],shopId:e._source.shopId,MarketTypeString:e._source.log.type,POSActionTypeString:e._source.message,Number:e._source.log.number,ResponseCode:e._source.log.responseCode,responseBodyWarning:e._source.log.responseBodyWarning,ResponseBodyWarningReference:e._source.log.ResponseBodyWarningReference};this.Result.push(u)}this.paginationTotal=a.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}changePage(d){this.filter.PageNumber=d.pageIndex+1,this.Get()}};o.\u0275fac=function(a){return new(a||o)(f(M),f($),f(A),f(de))},o.\u0275cmp=w({type:o,selectors:[["app-order"]],decls:43,vars:15,consts:[["EMPTY_STATE",""],["headerTitle","Order Log","searchBoxPlaceHolder","Invoice Number..",3,"textChange","onSubmit","text"],[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"],["bindLabel","Value","name","ActionType","bindValue","Key","placeholder","Action Type",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","text","name","StatusCode",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","text","name","responseBodyWarning","list","listresponseBodyWarning",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["id","listresponseBodyWarning"],["value","number-override"],["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"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[1,"text-center"],["matTooltip","Http Status Code from developer.dealpos.com."],["class","text-center",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],["matTooltip","ex: when payload.Number != response.Number value will be number-override"],[3,"routerLink","queryParams"],[1,"text-white","p-2","rounded","response-desc"],[1,"text-white","p-2","rounded","response-desc",3,"ngClass"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,e){if(a&1){let u=N();t(0,"mainpanel",1),b("textChange",function(m){return g(u),S(e.Number,m)||(e.Number=m),h(m)}),I("onSubmit",function(m){return g(u),h(e.Get(m))}),t(1,"filters")(2,"div")(3,"label",2),n(4,"Channel"),i(),t(5,"ng-select",3),b("ngModelChange",function(m){return g(u),S(e.filter.ChannelID,m)||(e.filter.ChannelID=m),h(m)}),v(6,ot,3,3,"ng-template",4),i()(),t(7,"div",5)(8,"label",2),n(9,"Action"),i(),t(10,"ng-select",6),b("ngModelChange",function(m){return g(u),S(e.filter.ActionType,m)||(e.filter.ActionType=m),h(m)}),i()(),t(11,"div",5)(12,"label",7),n(13,"From/To"),i(),t(14,"div",8)(15,"datepicker",9),b("dateChange",function(m){return g(u),S(e.filter.From,m)||(e.filter.From=m),h(m)}),i()(),t(16,"div")(17,"datepicker",10),b("dateChange",function(m){return g(u),S(e.filter.To,m)||(e.filter.To=m),h(m)}),i()()(),t(18,"div",5)(19,"label",11),n(20,"Response Code"),i(),t(21,"input",12),b("ngModelChange",function(m){return g(u),S(e.filter.StatusCode,m)||(e.filter.StatusCode=m),h(m)}),i()(),t(22,"div",5)(23,"label",11),n(24,"Response Body Warning"),i(),t(25,"input",13),b("ngModelChange",function(m){return g(u),S(e.filter.responseBodyWarning,m)||(e.filter.responseBodyWarning=m),h(m)}),i(),t(26,"datalist",14),P(27,"option",15),i()(),t(28,"div",5)(29,"label",11),n(30,"Page Number"),i(),t(31,"input",16),b("ngModelChange",function(m){return g(u),S(e.filter.PageNumber,m)||(e.filter.PageNumber=m),h(m)}),i()(),t(32,"div",5)(33,"label",11),n(34,"Page Size"),i(),t(35,"input",17),b("ngModelChange",function(m){return g(u),S(e.filter.RowCount,m)||(e.filter.RowCount=m),h(m)}),i()()(),t(36,"content")(37,"div",18)(38,"div",19)(39,"div",20),v(40,pt,21,6,"ng-container",21)(41,ct,2,0,"ng-template",null,0,Y),i()()()()()}if(a&2){let u=U(42);C("text",e.Number),l(5),c("clearable",!0)("items",e.channelOptions),C("ngModel",e.filter.ChannelID),l(5),c("clearable",!0)("items",e.ActionTypeList),C("ngModel",e.filter.ActionType),l(5),C("date",e.filter.From),l(2),C("date",e.filter.To),l(4),C("ngModel",e.filter.StatusCode),l(4),C("ngModel",e.filter.responseBodyWarning),l(6),C("ngModel",e.filter.PageNumber),l(4),C("ngModel",e.filter.RowCount),l(5),c("ngIf",(e.Result==null?null:e.Result.length)>0)("ngIfElse",u)}},dependencies:[ge,K,T,Te,De,oe,se,ae,le,L,R,Q,ce,me,pe,X,Z,Pe,D]});let r=o;return r})();var ut=r=>({"bg-gradient-warning":r}),gt=()=>["/menu/log/inventory/sync-inventory/detail"],ht=r=>({ID:r});function ft(r,o){if(r&1&&(t(0,"span",19),P(1,"img",20),i(),n(2)),r&2){let s=o.item;l(),c("src",s.Img,z)("alt",s.Name),l(),V(" ",s.Name," ")}}function vt(r,o){if(r&1&&(t(0,"tr",26)(1,"td")(2,"a",27),n(3),_(4,"date"),i()(),t(5,"td"),n(6),i(),t(7,"td"),n(8),i(),t(9,"td"),n(10),i(),t(11,"td"),n(12),i()()),r&2){let s=o.$implicit;c("ngClass",F(11,ut,s.ResponseCode==400)),l(2),c("routerLink",J(13,gt))("queryParams",F(14,ht,s.ID)),l(),V(" ",E(4,8,s.Created,"dd MMM yyyy HH:mm")," "),l(3),p(s.channelName),l(2),p(s.Sku),l(2),p(s.Stock),l(2),p(s.ResponseCode)}}function yt(r,o){if(r&1){let s=N();q(0),t(1,"div",21)(2,"table",22)(3,"thead")(4,"tr",23)(5,"th"),n(6,"Created"),i(),t(7,"th"),n(8,"Channel"),i(),t(9,"th"),n(10,"SKU"),i(),t(11,"th"),n(12,"Stock"),i(),t(13,"th"),n(14,"Response code"),i()()(),t(15,"tbody"),v(16,vt,13,16,"tr",24),i()(),t(17,"mat-paginator",25),I("page",function(a){g(s);let e=y();return h(e.changePage(a))}),i()(),G()}if(r&2){let s=y();l(16),c("ngForOf",s.Result),l(),c("length",s.paginationTotal)("pageSize",s.paginationPageSize)("pageIndex",(s.filter==null?null:s.filter.PageNumber)==0?0:(s.filter==null?null:s.filter.PageNumber)-1)}}function _t(r,o){r&1&&(t(0,"div",28),P(1,"app-empty-state"),i())}var ze=(()=>{let o=class o{constructor(d,a,e){this.http=d,this._RawLogService=a,this.authService=e,this.Result=Array(),this.filter={PageNumber:0,RowCount:20,Sku:null,ChannelID:"",StatusCode:"",From:"",To:""},this.Load(),this.channelOptions=this.authService.getChannels()}Load(){this.http.post("/api/OrdersLoader/Get",{}).subscribe(d=>{this.filter=d.Filter,this.ActionTypeList=d.Options.ActionTypeList,this.Get()})}Get(d){d!=null&&(this.filter.Sku=d),this.http.post("api/Inventory/GetLog",this.filter).subscribe(a=>{this._RawLogService.Data=a.hits,this.Result=Array();for(let e of a.hits){let u={ID:e._source.log.id,Created:e._source["@timestamp_received"],channelName:e._source.log.channelName,Sku:e._source.log.sku,Stock:e._source.log.stock,ResponseCode:e._source.log.responseCode};this.Result.push(u)}this.paginationTotal=a.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}changePage(d){this.filter.PageNumber=d.pageIndex+1,this.Get()}};o.\u0275fac=function(a){return new(a||o)(f(M),f($),f(de))},o.\u0275cmp=w({type:o,selectors:[["app-inventory-log"]],decls:33,vars:10,consts:[["EMPTY_STATE",""],["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"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[3,"ngClass"],[3,"routerLink","queryParams"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,e){if(a&1){let u=N();t(0,"mainpanel",1),b("textChange",function(m){return g(u),S(e.filter.Sku,m)||(e.filter.Sku=m),h(m)}),I("onSubmit",function(m){return g(u),h(e.Get(m))}),t(1,"actions")(2,"a",2),n(3," Order Inventory Sync Job "),i()(),t(4,"filters")(5,"div",3)(6,"div")(7,"label",4),n(8,"Channel"),i(),t(9,"ng-select",5),b("ngModelChange",function(m){return g(u),S(e.filter.ChannelID,m)||(e.filter.ChannelID=m),h(m)}),v(10,ft,3,3,"ng-template",6),i()(),t(11,"div",7)(12,"label",8),n(13,"From/To"),i(),t(14,"div",9)(15,"datepicker",10),b("dateChange",function(m){return g(u),S(e.filter.From,m)||(e.filter.From=m),h(m)}),i()(),t(16,"div")(17,"datepicker",11),b("dateChange",function(m){return g(u),S(e.filter.To,m)||(e.filter.To=m),h(m)}),i()()(),t(18,"div",7)(19,"label",12),n(20,"Page Number"),i(),t(21,"input",13),b("ngModelChange",function(m){return g(u),S(e.filter.PageNumber,m)||(e.filter.PageNumber=m),h(m)}),i()(),t(22,"div",7)(23,"label",12),n(24,"Page Size"),i(),t(25,"input",14),b("ngModelChange",function(m){return g(u),S(e.filter.RowCount,m)||(e.filter.RowCount=m),h(m)}),i()()()(),t(26,"content")(27,"div",15)(28,"div",16)(29,"div",17),v(30,yt,18,4,"ng-container",18)(31,_t,2,0,"ng-template",null,0,Y),i()()()()()}if(a&2){let u=U(32);C("text",e.filter.Sku),l(9),c("clearable",!0)("items",e.channelOptions),C("ngModel",e.filter.ChannelID),l(6),C("date",e.filter.From),l(2),C("date",e.filter.To),l(4),C("ngModel",e.filter.PageNumber),l(4),C("ngModel",e.filter.RowCount),l(5),c("ngIf",(e.Result==null?null:e.Result.length)>0)("ngIfElse",u)}},dependencies:[ge,K,T,oe,se,ae,le,L,R,Q,ce,me,pe,X,Z,D]});let r=o;return r})();var Ct=()=>["/menu/log/rawlog/detail"],St=r=>({ID:r});function bt(r,o){if(r&1&&(t(0,"span",17),P(1,"img",18),i(),n(2)),r&2){let s=o.item;l(),c("src",s.Img,z)("alt",s.Name),l(),V(" ",s.Name," ")}}function xt(r,o){if(r&1&&(t(0,"tr")(1,"td")(2,"a",25),n(3),_(4,"date"),i()(),t(5,"td"),n(6),i(),t(7,"td"),n(8),i(),t(9,"td"),n(10),i()()),r&2){let s=o.$implicit;l(2),c("routerLink",J(9,Ct))("queryParams",F(10,St,s.id)),l(),V(" ",E(4,6,s.Created,"dd MMM yyyy HH:mm:ss")," "),l(3),p(s.type),l(2),p(s.number),l(2),p(s.message)}}function wt(r,o){if(r&1){let s=N();q(0),t(1,"div",19)(2,"table",20)(3,"thead",21)(4,"tr")(5,"th",22),n(6,"Date"),i(),t(7,"th"),n(8,"Type"),i(),t(9,"th"),n(10,"Number"),i(),t(11,"th"),n(12,"Message"),i()()(),t(13,"tbody"),v(14,xt,11,12,"tr",23),i()(),t(15,"mat-paginator",24),I("page",function(a){g(s);let e=y();return h(e.changePage(a))}),i()(),G()}if(r&2){let s=y();l(14),c("ngForOf",s.Result),l(),c("length",s.paginationTotal)("pageSize",s.paginationPageSize)("pageIndex",(s.filter==null?null:s.filter.PageNumber)==0?0:(s.filter==null?null:s.filter.PageNumber)-1)}}function It(r,o){r&1&&(t(0,"div",26),P(1,"app-empty-state"),i())}var Ue=(()=>{let o=class o{constructor(d,a,e){this.http=d,this._RawLogService=a,this.authService=e,this.Result=Array(),this.filter={RowCount:20,Number:"",PageNumber:1,ActionType:"",ChannelID:"",StatusCode:"",From:"",To:""},this.list=[],this.Types=[{Key:0,Value:"Shopee"},{Key:1,Value:"Tokopedia"}],this.channelOptions=this.authService.getChannels()}ngOnInit(){this.Load()}Load(d={}){this.http.post("/api/OrdersLoader/Get",d).subscribe(a=>{this.filter=a.Filter,this.ActionTypeList=a.Options.ActionTypeList,this.Get()})}Get(d){this.filter.Number=d,this.http.post("api/Orders/GetRawLog",this.filter).subscribe(a=>{this._RawLogService.Data=a.hits,this.Result=Array();for(let e of a.hits){let u={id:e._id,message:e._source.message,responseCode:e._source.log.responseCode,processTypeString:e._source.log.processType,type:e._source.log.type,number:e._source.log.number,Created:e._source["@timestamp_received"]};this.Result.push(u)}this.paginationTotal=a.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}changePage(d){this.filter.PageNumber=d.pageIndex+1,this.Get()}};o.\u0275fac=function(a){return new(a||o)(f(M),f($),f(de))},o.\u0275cmp=w({type:o,selectors:[["app-raw-log"]],decls:29,vars:10,consts:[["EMPTY_STATE",""],["headerTitle","Channel Webhook Log","searchBoxPlaceHolder","Invoice Number..",3,"textChange","onSubmit","text"],[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"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table"],[1,"thead-light"],[2,"width","200px"],[4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[3,"routerLink","queryParams"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,e){if(a&1){let u=N();t(0,"mainpanel",1),b("textChange",function(m){return g(u),S(e.filter.Number,m)||(e.filter.Number=m),h(m)}),I("onSubmit",function(m){return g(u),h(e.Get(m))}),t(1,"filters")(2,"div")(3,"label",2),n(4,"Channel"),i(),t(5,"ng-select",3),b("ngModelChange",function(m){return g(u),S(e.filter.ChannelID,m)||(e.filter.ChannelID=m),h(m)}),v(6,bt,3,3,"ng-template",4),i()(),t(7,"div",5)(8,"label",6),n(9,"From/To"),i(),t(10,"div",7)(11,"datepicker",8),b("dateChange",function(m){return g(u),S(e.filter.From,m)||(e.filter.From=m),h(m)}),i()(),t(12,"div")(13,"datepicker",9),b("dateChange",function(m){return g(u),S(e.filter.To,m)||(e.filter.To=m),h(m)}),i()()(),t(14,"div",5)(15,"label",10),n(16,"Page Number"),i(),t(17,"input",11),b("ngModelChange",function(m){return g(u),S(e.filter.PageNumber,m)||(e.filter.PageNumber=m),h(m)}),i()(),t(18,"div",5)(19,"label",10),n(20,"Page Size"),i(),t(21,"input",12),b("ngModelChange",function(m){return g(u),S(e.filter.RowCount,m)||(e.filter.RowCount=m),h(m)}),i()()(),t(22,"content")(23,"div",13)(24,"div",14)(25,"div",15),v(26,wt,16,4,"ng-container",16)(27,It,2,0,"ng-template",null,0,Y),i()()()()()}if(a&2){let u=U(28);C("text",e.filter.Number),l(5),c("clearable",!0)("items",e.channelOptions),C("ngModel",e.filter.ChannelID),l(6),C("date",e.filter.From),l(2),C("date",e.filter.To),l(4),C("ngModel",e.filter.PageNumber),l(4),C("ngModel",e.filter.RowCount),l(5),c("ngIf",(e.Result==null?null:e.Result.length)>0)("ngIfElse",u)}},dependencies:[K,T,oe,se,ae,le,L,R,Q,ce,me,pe,X,Z,D]});let r=o;return r})();function Et(r,o){if(r&1&&(t(0,"div",9)(1,"div",10)(2,"label"),n(3,"Process Code"),i(),t(4,"div")(5,"span"),n(6),i()()()()),r&2){let s=y();l(6),p(s.ProcessedCode)}}function Tt(r,o){if(r&1){let s=N();t(0,"a",16),I("click",function(){g(s);let a=y();return h(a.Retry())}),n(1,"Retry"),i()}}var Je=(()=>{let o=class o{constructor(d,a){this.route=d,this.http=a,this.ProcessDuration=0,this.request="",this.response="",this.route.queryParams.subscribe(e=>{this.ID=e.ID,this.Load()})}Retry(){var d={Number:this.Number,ShopID:this.shopId};this.http.post("/api/Orders/Retry",d).subscribe(a=>{alert(JSON.stringify(a))})}Load(){var d={ID:this.ID};this.http.post("/api/Orders/GetDetailChannelWebhook",d).subscribe(a=>{for(let e of a.hits)this.Number=e._source.log.number,this.MarketTypeString=e._source.log.type,this.ResponseCode=e._source.log.responseCode,this.POSActionTypeString=e._source.message,this.ProcessDuration=0,this.Created=e._source["@timestamp_received"],this.request=W.IsNotEmpty(e._source?.log?.request)?JSON.parse(e._source.log?.request):"",this.response=W.IsNotEmpty(e._source?.log?.response)?JSON.parse(e._source.log?.response):"",this.shopId=e._source.shopId,this.ProcessedCode=e._source.log.processedCode})}};o.\u0275fac=function(a){return new(a||o)(f(A),f(M))},o.\u0275cmp=w({type:o,selectors:[["app-raw-detail"]],decls:83,vars:21,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/order",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],["class","col-sm-6",4,"ngIf"],[1,"row","mt-2"],[1,"form-group"],[1,"float-right"],["role","button","class","btn btn-success btn-fill btn-lg me-3",3,"click",4,"ngIf"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3",3,"click"]],template:function(a,e){a&1&&(t(0,"mainpanel",0)(1,"actions")(2,"a",1),n(3,"Back"),i()(),t(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),n(11,"General"),i()(),t(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),n(17,"Date"),i(),t(18,"div")(19,"span"),n(20),_(21,"date"),i()()()(),t(22,"div",9)(23,"div",10)(24,"label"),n(25,"Number"),i(),t(26,"div")(27,"span"),n(28),i()()()(),t(29,"div",9)(30,"div",10)(31,"label"),n(32,"Type"),i(),t(33,"div")(34,"span"),n(35),i()()()(),t(36,"div",9)(37,"div",10)(38,"label"),n(39,"Response Code"),i(),t(40,"div")(41,"span"),n(42),i()()()(),t(43,"div",9)(44,"div",10)(45,"label"),n(46,"ShopID"),i(),t(47,"div")(48,"span"),n(49),i()()()(),v(50,Et,7,1,"div",11),t(51,"div",9)(52,"div",10)(53,"label"),n(54,"Action"),i(),t(55,"div")(56,"span"),n(57),i()()()()()()()()(),t(58,"div",12)(59,"div",9)(60,"div",5)(61,"div",6)(62,"h5"),n(63,"Request"),i()(),t(64,"div",7)(65,"div",4)(66,"div",13)(67,"pre"),n(68),_(69,"json"),i()()(),t(70,"actions",14),v(71,Tt,2,0,"a",15),i()()()(),t(72,"div",9)(73,"div",5)(74,"div",6)(75,"h5"),n(76,"Response"),i()(),t(77,"div",7)(78,"div",4)(79,"div",13)(80,"pre"),n(81),_(82,"json"),i()()()()()()()()()()),a&2&&(c("headerTitle","Order #"+e.Number)("pageData","Orders Detail ")("hideSearchBox",!0)("hideSearchDropdown",!0),l(20),p(E(21,14,e.Created,"dd MMM yyyy HH:mm:ss")),l(8),p(e.Number),l(7),p(e.MarketTypeString),l(7),p(e.ResponseCode),l(7),p(e.shopId),l(),c("ngIf",e.ProcessedCode!=null),l(7),p(e.POSActionTypeString),l(11),p(O(69,17,e.request)),l(3),c("ngIf",e.ResponseCode!="200"&&e.ResponseCode!="201"),l(10),p(O(82,19,e.response)))},dependencies:[T,L,R,j,D]});let r=o;return r})();function Dt(r,o){if(r&1&&(t(0,"div",10)(1,"div",7)(2,"div",8)(3,"h5"),n(4,"General"),i()(),t(5,"div",9)(6,"div",3)(7,"div",6)(8,"div",12)(9,"label"),n(10,"Date"),i(),t(11,"div")(12,"span"),n(13),_(14,"date"),i()()()(),t(15,"div",6)(16,"div",12)(17,"label"),n(18,"SKU"),i(),t(19,"div")(20,"span"),n(21),i()()()(),t(22,"div",6)(23,"div",12)(24,"label"),n(25,"Channel"),i(),t(26,"div")(27,"span"),n(28),i()()()(),t(29,"div",6)(30,"div",12)(31,"label"),n(32,"Response Code"),i(),t(33,"div")(34,"span"),n(35),i()()()()()()()()),r&2){let s=y();l(13),p(E(14,4,s.data.Created,"dd MMM yyyy")),l(8),p(s.data.Sku),l(7),p(s.data.ChannelName),l(7),p(s.data.ResponseCode)}}var Ye=(()=>{let o=class o{constructor(d,a,e){this.route=d,this.http=a,this._RawLogService=e,this.data={Created:"",Sku:"",ChannelName:"",ResponseCode:""},this.route.queryParams.subscribe(u=>{this.ID=u.ID,this.Load()})}ngOnInit(){}Load(){var d={ID:this.ID};this.http.post("/api/Inventory/GetInventoryLogDeatil",d).subscribe(a=>{this.data.Created=a.hits[0]._source["@timestamp_received"],this.data.Sku=a.hits[0]._source.log.sku,this.data.ChannelName=a.hits[0]._source.log.channelName,this.data.ResponseCode=a.hits[0]._source.log.responseCode,this.request=W.IsNotEmpty(a.hits[0]?._source.log?.request)?JSON.parse(a.hits[0]?._source?.log?.request):"",this.response=a.hits[0]._source.log.response})}};o.\u0275fac=function(a){return new(a||o)(f(A),f(M),f($))},o.\u0275cmp=w({type:o,selectors:[["app-inventory-detail"]],decls:30,vars:7,consts:[["headerTitle","Product Inventory Sync Detail",3,"hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/inventory/sync-inventory",1,"btn","btn-secondary","btn-fill","btn-lg","me-2"],[1,"container-fluid","mt-3"],[1,"row"],["class","col-sm-12",4,"ngIf"],[1,"row","mt-2"],[1,"col-sm-6"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group"],[1,"info-label-group"]],template:function(a,e){a&1&&(t(0,"mainpanel",0)(1,"actions")(2,"a",1),n(3,"Back"),i()(),t(4,"content")(5,"div",2)(6,"div",3),v(7,Dt,36,7,"div",4),i(),t(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"h5"),n(13,"Request"),i()(),t(14,"div",9)(15,"div",10)(16,"div",11)(17,"pre"),n(18),_(19,"json"),i()()()()()(),t(20,"div",6)(21,"div",7)(22,"div",8)(23,"h5"),n(24,"Response"),i()(),t(25,"div",9)(26,"div",10)(27,"div",11)(28,"pre"),n(29),i()()()()()()()()()()),a&2&&(c("hideSearchBox",!0)("hideSearchDropdown",!0),l(7),c("ngIf",e.data),l(11),p(O(19,5,e.request)),l(11),p(e.response))},dependencies:[T,L,R,j,D]});let r=o;return r})();function Mt(r,o){if(r&1&&(t(0,"div",9)(1,"div",10)(2,"label"),n(3,"Process Code"),i(),t(4,"div")(5,"span"),n(6),i()()()()),r&2){let s=y();l(6),p(s.ProcessedCode)}}function Rt(r,o){if(r&1){let s=N();t(0,"a",16),I("click",function(){g(s);let a=y();return h(a.Retry())}),n(1,"Retry"),i()}}var Ke=(()=>{let o=class o{constructor(d,a){this.route=d,this.http=a,this.ProcessDuration=0,this.request="",this.response="",this.route.queryParams.subscribe(e=>{this.ID=e.ID,this.Load()})}Retry(){var d={Number:this.Number,ShopID:this.shopId};this.http.post("/api/Orders/Retry",d).subscribe(a=>{alert(JSON.stringify(a))})}Load(){var d={ID:this.ID};this.http.post("/api/Orders/GetDetailChannelWebhook",d).subscribe(a=>{for(let e of a.hits)this.Number=e._source.log.number,this.MarketTypeString=e._source.log.type,this.ResponseCode=e._source.log.responseCode,this.POSActionTypeString=e._source.message,this.ProcessDuration=0,this.Created=e._source["@timestamp_received"],this.request=W.IsNotEmpty(e._source?.log?.request)?JSON.parse(e._source.log?.request):"",this.response=W.IsNotEmpty(e._source?.log?.response)?JSON.parse(e._source.log?.response):"",this.shopId=e._source.shopId,this.ProcessedCode=e._source.log.processedCode})}};o.\u0275fac=function(a){return new(a||o)(f(A),f(M))},o.\u0275cmp=w({type:o,selectors:[["app-orderdetail"]],decls:83,vars:21,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/order",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],["class","col-sm-6",4,"ngIf"],[1,"row","mt-2"],[1,"form-group"],[1,"float-right"],["role","button","class","btn btn-success btn-fill btn-lg me-3",3,"click",4,"ngIf"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3",3,"click"]],template:function(a,e){a&1&&(t(0,"mainpanel",0)(1,"actions")(2,"a",1),n(3,"Back"),i()(),t(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),n(11,"General"),i()(),t(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),n(17,"Date"),i(),t(18,"div")(19,"span"),n(20),_(21,"date"),i()()()(),t(22,"div",9)(23,"div",10)(24,"label"),n(25,"Number"),i(),t(26,"div")(27,"span"),n(28),i()()()(),t(29,"div",9)(30,"div",10)(31,"label"),n(32,"Type"),i(),t(33,"div")(34,"span"),n(35),i()()()(),t(36,"div",9)(37,"div",10)(38,"label"),n(39,"Response Code"),i(),t(40,"div")(41,"span"),n(42),i()()()(),t(43,"div",9)(44,"div",10)(45,"label"),n(46,"ShopID"),i(),t(47,"div")(48,"span"),n(49),i()()()(),v(50,Mt,7,1,"div",11),t(51,"div",9)(52,"div",10)(53,"label"),n(54,"Action"),i(),t(55,"div")(56,"span"),n(57),i()()()()()()()()(),t(58,"div",12)(59,"div",9)(60,"div",5)(61,"div",6)(62,"h5"),n(63,"Request"),i()(),t(64,"div",7)(65,"div",4)(66,"div",13)(67,"pre"),n(68),_(69,"json"),i()()(),t(70,"actions",14),v(71,Rt,2,0,"a",15),i()()()(),t(72,"div",9)(73,"div",5)(74,"div",6)(75,"h5"),n(76,"Response"),i()(),t(77,"div",7)(78,"div",4)(79,"div",13)(80,"pre"),n(81),_(82,"json"),i()()()()()()()()()()),a&2&&(c("headerTitle","Order #"+e.Number)("pageData","Orders Detail ")("hideSearchBox",!0)("hideSearchDropdown",!0),l(20),p(E(21,14,e.Created,"dd MMM yyyy HH:mm:ss")),l(8),p(e.Number),l(7),p(e.MarketTypeString),l(7),p(e.ResponseCode),l(7),p(e.shopId),l(),c("ngIf",e.ProcessedCode!=null),l(7),p(e.POSActionTypeString),l(11),p(O(69,17,e.request)),l(3),c("ngIf",e.ResponseCode!="200"&&e.ResponseCode!="201"),l(10),p(O(82,19,e.response)))},dependencies:[T,L,R,j,D]});let r=o;return r})();var Nt=()=>["/menu/log/exception/detail"],Pt=r=>({ID:r});function Lt(r,o){if(r&1&&(t(0,"tr")(1,"td",12),P(2,"img",13),i(),t(3,"td"),n(4),_(5,"date"),i(),t(6,"td")(7,"a",14),n(8),i()(),t(9,"td")(10,"div",15),n(11),i(),t(12,"div"),n(13),i()()()),r&2){let s=o.$implicit;l(2),c("src",s.logo,z),l(2),p(E(5,7,s.date,"dd-MM-yyyy hh:mm:ss")),l(3),c("routerLink",J(10,Nt))("queryParams",F(11,Pt,s.id)),l(),V(" ",s.number," "),l(3),p(s.message),l(2),p(s.stackTrace)}}function Ot(r,o){if(r&1){let s=N();q(0),t(1,"mat-paginator",16),I("page",function(a){g(s);let e=y(2);return h(e.onPaginationChange(a))}),i(),G()}if(r&2){let s=y(2);l(),c("length",s.pageTotal)("pageSize",s.pageSize)("pageIndex",(s.filter==null?null:s.filter.PageNumber)==0?0:(s.filter==null?null:s.filter.PageNumber)-1)}}function kt(r,o){if(r&1&&(q(0),t(1,"div",6)(2,"table",7)(3,"thead")(4,"tr",8)(5,"th"),n(6,"Channel"),i(),t(7,"th",9),n(8,"Date"),i(),t(9,"th"),n(10,"Number"),i(),t(11,"th"),n(12,"Exception"),i()()(),t(13,"tbody"),v(14,Lt,14,13,"tr",10),i()(),v(15,Ot,2,3,"ng-container",11),i(),G()),r&2){let s=y();l(14),c("ngForOf",s.exceptions),l(),c("ngIf",(s.exceptions==null?null:s.exceptions.length)>0)}}function Vt(r,o){r&1&&(t(0,"div",17),P(1,"app-empty-state"),i())}var Ze=(()=>{let o=class o{constructor(d){this.http=d,this.exceptions=[],this.filter={RowCount:50,PageNumber:1},this.getData()}getData(){this.http.post("/api/Orders/GetExceptionList",this.filter).subscribe(d=>{this.exceptions=d.hits.map(a=>({id:a._id,logo:W.getChannelLogoByName(a._source.error?.Type),number:a._source.error.number,date:a._source["@timestamp_received"],stackTrace:a._source.error.stackTrace,message:a._source.message,requestJSON:a._source?.error?.requestJSON})),this.pageTotal=d.total.value,this.pageSize=this.filter.RowCount>this.pageTotal?this.pageTotal:this.filter.RowCount})}onPaginationChange(d){this.filter.PageNumber=d.pageIndex+1,this.getData()}};o.\u0275fac=function(a){return new(a||o)(f(M))},o.\u0275cmp=w({type:o,selectors:[["app-exception-log"]],decls:8,vars:2,consts:[["EMPTY_STATE",""],["headerTitle","Exception Log","searchBoxPlaceHolder","Enter Number...","hideSearchBox","true","hideSearchDropdown","true"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[2,"width","140px"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"text-center"],[2,"width","25px",3,"src"],[3,"routerLink","queryParams"],[1,"fw-bold"],[3,"page","length","pageSize","pageIndex"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,e){if(a&1&&(t(0,"mainpanel",1)(1,"content")(2,"div",2)(3,"div",3)(4,"div",4),v(5,kt,16,2,"ng-container",5)(6,Vt,2,0,"ng-template",null,0,Y),i()()()()()),a&2){let u=U(7);l(5),c("ngIf",e.exceptions.length>0)("ngIfElse",u)}},dependencies:[K,T,L,R,Q,Z,D]});let r=o;return r})();var Qe=(()=>{let o=class o{constructor(d){this.httpService=d}getExceptionDetail(d){return this.httpService.post("/api/Orders/GetDetailException",{ID:d}).pipe(Se(e=>e?.hits[0]?._source))}};o.\u0275fac=function(a){return new(a||o)(ye(M))},o.\u0275prov=ue({token:o,factory:o.\u0275fac,providedIn:"root"});let r=o;return r})();function Bt(r,o){if(r&1&&(t(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"h5"),n(6,"General"),i()(),t(7,"div",7)(8,"div",8)(9,"div",9)(10,"div",10)(11,"label"),n(12,"Date"),i(),t(13,"div")(14,"span"),n(15),_(16,"date"),i()()()(),t(17,"div",9)(18,"div",10)(19,"label"),n(20,"Number"),i(),t(21,"div")(22,"span"),n(23),i()()()(),t(24,"div",9)(25,"div",10)(26,"label"),n(27,"Type"),i(),t(28,"div")(29,"span"),n(30),i()()()(),t(31,"div",9)(32,"div",10)(33,"label"),n(34,"ShopID"),i(),t(35,"div")(36,"span"),n(37),i()()()()()()()()(),t(38,"div",11)(39,"div",9)(40,"div",5)(41,"div",6)(42,"h5"),n(43,"Request"),i()(),t(44,"div",7)(45,"div",12)(46,"div",13)(47,"pre"),n(48),_(49,"json"),i()()()()()(),t(50,"div",9)(51,"div",5)(52,"div",6)(53,"h5"),n(54,"Exception"),i()(),t(55,"div",7)(56,"div",14)(57,"div",13)(58,"div",15),n(59),i(),t(60,"pre"),n(61),i()()()()()()()()),r&2){let s=o.ngIf;l(15),p(E(16,7,s["@timestamp"],"dd MMM yyyy HH:mm:ss")),l(8),p(s==null||s.error==null?null:s.error.number),l(7),p(s==null||s.error==null?null:s.error.Type),l(7),p(s==null?null:s.shopId),l(11),p(O(49,10,s==null||s.error==null?null:s.error.requestJSON)),l(11),p(s==null?null:s.message),l(2),p(s==null||s.error==null?null:s.error.stackTrace)}}var Xe=(()=>{let o=class o{constructor(d,a){this.activatedRoute=d,this.exceptionService=a,this.invoiceNumber=""}ngOnInit(){let d=this.activatedRoute.snapshot.queryParams;this.getExceptionDetail(d?.ID)}getExceptionDetail(d){this.exceptionDetail$=this.exceptionService.getExceptionDetail(d).pipe(xe(a=>{this.invoiceNumber=a?.error?.number}),be(1))}};o.\u0275fac=function(a){return new(a||o)(f(A),f(Qe))},o.\u0275cmp=w({type:o,selectors:[["app-exception-detail"]],decls:4,vars:6,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["class","container-fluid mt-3",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-2"],[1,"col-sm-12"],[1,"form-group"],[1,"col-sm-12","mt-2"],[1,"fw-bold"]],template:function(a,e){a&1&&(t(0,"mainpanel",0)(1,"content"),v(2,Bt,62,12,"div",1),_(3,"async"),i()()),a&2&&(c("headerTitle","Order #"+e.invoiceNumber)("hideSearchBox",!0)("hideSearchDropdown",!0),l(2),c("ngIf",O(3,4,e.exceptionDetail$)))},dependencies:[T,R,Ie,j,D]});let r=o;return r})();function At(r,o){if(r&1&&(t(0,"div",9)(1,"div",10)(2,"label"),n(3,"Process Code"),i(),t(4,"div")(5,"span"),n(6),i()()()()),r&2){let s=y();l(6),p(s.ProcessedCode)}}function Ft(r,o){if(r&1){let s=N();t(0,"a",16),I("click",function(){g(s);let a=y();return h(a.Retry())}),n(1,"Retry"),i()}}var $e=(()=>{let o=class o{constructor(d,a){this.route=d,this.http=a,this.ProcessDuration=0,this.request="",this.response="",this.route.queryParams.subscribe(e=>{this.ID=e.ID,this.Load()})}Retry(){var d={Number:this.Number,ShopID:this.shopId};this.http.post("/api/Orders/Retry",d).subscribe(a=>{alert(JSON.stringify(a))})}Load(){var d={ID:this.ID};this.http.post("/api/Orders/GetDetailSyncOrder",d).subscribe(a=>{for(let e of a.hits)this.Number=e._source.log.number,this.MarketTypeString=e._source.log.type,this.ResponseCode=e._source.log.responseCode,this.POSActionTypeString=e._source.message,this.ProcessDuration=0,this.Created=e._source["@timestamp_received"],this.request=W.IsNotEmpty(e._source?.log?.request)?JSON.parse(e._source.log?.request):"",this.response=W.IsNotEmpty(e._source?.log?.response)?JSON.parse(e._source.log?.response):"",this.shopId=e._source.shopId,this.ProcessedCode=e._source.log.processedCode})}};o.\u0275fac=function(a){return new(a||o)(f(A),f(M))},o.\u0275cmp=w({type:o,selectors:[["app-orderdetail-user"]],decls:83,vars:21,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/order",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],["class","col-sm-6",4,"ngIf"],[1,"row","mt-2"],[1,"form-group"],[1,"float-right"],["role","button","class","btn btn-success btn-fill btn-lg me-3",3,"click",4,"ngIf"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3",3,"click"]],template:function(a,e){a&1&&(t(0,"mainpanel",0)(1,"actions")(2,"a",1),n(3,"Back"),i()(),t(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),n(11,"General"),i()(),t(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),n(17,"Date"),i(),t(18,"div")(19,"span"),n(20),_(21,"date"),i()()()(),t(22,"div",9)(23,"div",10)(24,"label"),n(25,"Number"),i(),t(26,"div")(27,"span"),n(28),i()()()(),t(29,"div",9)(30,"div",10)(31,"label"),n(32,"Type"),i(),t(33,"div")(34,"span"),n(35),i()()()(),t(36,"div",9)(37,"div",10)(38,"label"),n(39,"Response Code"),i(),t(40,"div")(41,"span"),n(42),i()()()(),t(43,"div",9)(44,"div",10)(45,"label"),n(46,"ShopID"),i(),t(47,"div")(48,"span"),n(49),i()()()(),v(50,At,7,1,"div",11),t(51,"div",9)(52,"div",10)(53,"label"),n(54,"Action"),i(),t(55,"div")(56,"span"),n(57),i()()()()()()()()(),t(58,"div",12)(59,"div",9)(60,"div",5)(61,"div",6)(62,"h5"),n(63,"Request"),i()(),t(64,"div",7)(65,"div",4)(66,"div",13)(67,"pre"),n(68),_(69,"json"),i()()(),t(70,"actions",14),v(71,Ft,2,0,"a",15),i()()()(),t(72,"div",9)(73,"div",5)(74,"div",6)(75,"h5"),n(76,"Response"),i()(),t(77,"div",7)(78,"div",4)(79,"div",13)(80,"pre"),n(81),_(82,"json"),i()()()()()()()()()()),a&2&&(c("headerTitle","Order #"+e.Number)("pageData","Orders Detail ")("hideSearchBox",!0)("hideSearchDropdown",!0),l(20),p(E(21,14,e.Created,"dd MMM yyyy HH:mm:ss")),l(8),p(e.Number),l(7),p(e.MarketTypeString),l(7),p(e.ResponseCode),l(7),p(e.shopId),l(),c("ngIf",e.ProcessedCode!=null),l(7),p(e.POSActionTypeString),l(11),p(O(69,17,e.request)),l(3),c("ngIf",e.ResponseCode!="200"&&e.ResponseCode!="201"),l(10),p(O(82,19,e.response)))},dependencies:[T,L,R,j,D]});let r=o;return r})();var jt=[{path:"",component:Ae,children:[{path:"",redirectTo:"order",pathMatch:"full"},{path:"order",component:He,canActivate:[B],data:{title:"Order Log"}},{path:"inventory/sync-inventory",component:ze,canActivate:[B],data:{title:"Product Inventory Sync"}},{path:"rawlog",component:Ue,canActivate:[B],data:{title:"Raw Log"}},{path:"rawlog/detail",component:Je,canActivate:[B],data:{title:"Raw Log Detail"}},{path:"inventory/sync-inventory/detail",component:Ye,canActivate:[B],data:{title:"Product Inventory Sync Detail"}},{path:"order/detail",component:Ke,canActivate:[B],data:{title:"Order Details"}},{path:"order/detail-user",component:$e,canActivate:[B],data:{title:"Order User Details"}},{path:"exception",component:Ze,canActivate:[B],data:{title:"Exception Log"}},{path:"exception/detail",component:Xe,canActivate:[B],data:{title:"Exception Log Detail"}},{path:"inventory",loadComponent:()=>import("./chunk-QGVD6MF4.js").then(r=>r.InventoryAsyncLogComponent),canActivate:[B],data:{title:"Product Inventory Sync"}},{path:"inventory/detail",loadComponent:()=>import("./chunk-KAEUZC2Y.js").then(r=>r.InventoryAsyncDetailComponent),canActivate:[B],data:{title:"Product Inventory Sync Detail"}},{path:"authorization-log",loadComponent(){return import("./chunk-QCYSUORC.js").then(r=>r.ChannelLogComponent)},canActivate:[B],data:{title:"Authorization Log"}}]}],et=(()=>{let o=class o{};o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=re({type:o}),o.\u0275inj=ne({imports:[he,fe.forChild(jt)]});let r=o;return r})();var tt=(()=>{let o=class o{};o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=re({type:o}),o.\u0275inj=ne({});let r=o;return r})();var on=(()=>{let o=class o{};o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=re({type:o}),o.\u0275inj=ne({imports:[he,Me,Re,et,fe,Oe,tt,We,Ne,Ve,X,Le,Be]});let r=o;return r})();export{on as LogsModule};
|