marketplacepos 5.46.7 → 5.48.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 +54 -2
- package/Marketplace/chunk-222IOSGU.js +2 -0
- package/Marketplace/chunk-2FSRCK7Y.js +1 -0
- package/Marketplace/chunk-2J7P6ENI.js +1 -0
- package/Marketplace/chunk-2LCP6ZFH.js +1 -0
- package/Marketplace/chunk-34UF36YY.js +1 -0
- package/Marketplace/chunk-37NOSLQL.js +2 -0
- package/Marketplace/chunk-3I2V337G.js +2 -0
- package/Marketplace/chunk-3JRUKSV3.js +251 -0
- package/Marketplace/chunk-3LU2SFN4.js +7 -0
- package/Marketplace/chunk-3WRXJBHF.js +380 -0
- package/Marketplace/chunk-3YDWTOSL.js +1 -0
- package/Marketplace/chunk-44URQXRM.js +1 -0
- package/Marketplace/chunk-465DKI6M.js +1 -0
- package/Marketplace/chunk-46IROEMV.js +2 -0
- package/Marketplace/chunk-4ILDFTIG.js +34 -0
- package/Marketplace/chunk-4R746B4G.js +1 -0
- package/Marketplace/chunk-4RG5YR7N.js +54 -0
- package/Marketplace/chunk-4RLWHMI6.js +1 -0
- package/Marketplace/chunk-4VNQYYVV.js +1 -0
- package/Marketplace/chunk-55BTWXFX.js +2 -0
- package/Marketplace/{chunk-7TI3OR34.js → chunk-56BH43Y7.js} +3 -3
- package/Marketplace/chunk-573EEV7X.js +1 -0
- package/Marketplace/chunk-5MV3UFJQ.js +88 -0
- package/Marketplace/chunk-5O33CV4F.js +7 -0
- package/Marketplace/chunk-5PMKN6PM.js +151 -0
- package/Marketplace/chunk-5S7ONNKP.js +1 -0
- package/Marketplace/chunk-5YBWBAQS.js +1 -0
- package/Marketplace/chunk-63I3I3MX.js +5 -0
- package/Marketplace/chunk-6KWG6O5L.js +2 -0
- package/Marketplace/{chunk-6L7TD5DW.js → chunk-6Q6L5NUD.js} +1 -1
- package/Marketplace/chunk-6XT3JSG5.js +1 -0
- package/Marketplace/chunk-6ZEQRKBC.js +1 -0
- package/Marketplace/chunk-74JHI4MS.js +39 -0
- package/Marketplace/chunk-76CPUGUB.js +149 -0
- package/Marketplace/chunk-7HVOZWYY.js +1 -0
- package/Marketplace/chunk-7JQEF4XX.js +1 -0
- package/Marketplace/chunk-7U32FNM2.js +2 -0
- package/Marketplace/chunk-7VRLCSNB.js +1 -0
- package/Marketplace/chunk-7Y2L4CNS.js +1 -0
- package/Marketplace/chunk-A6QXXKPR.js +1 -0
- package/Marketplace/chunk-A7YRNCQP.js +2 -0
- package/Marketplace/chunk-AFDI4TD4.js +104 -0
- package/Marketplace/chunk-AL5RTE5M.js +1 -0
- package/Marketplace/chunk-AXC6LM6T.js +1 -0
- package/Marketplace/chunk-AZOCRKXK.js +1 -0
- package/Marketplace/chunk-B4QCGMST.js +1 -0
- package/Marketplace/chunk-BHGEKKCM.js +1 -0
- package/Marketplace/chunk-BKR7YPEW.js +1 -0
- package/Marketplace/chunk-BLHKSSK6.js +1 -0
- package/Marketplace/chunk-BXOHTPGP.js +1 -0
- package/Marketplace/chunk-CEXUETT6.js +1 -0
- package/Marketplace/{chunk-RNNH3EZC.js → chunk-CM3B2UZ7.js} +1 -1
- package/Marketplace/chunk-CNTLG54D.js +1 -0
- package/Marketplace/chunk-DLXWO2XC.js +1 -0
- package/Marketplace/chunk-DPQMNLFO.js +1 -0
- package/Marketplace/chunk-DQOO5YZC.js +1 -0
- package/Marketplace/{chunk-KXU32D3B.js → chunk-DRTRU4DB.js} +1 -1
- package/Marketplace/chunk-DYQ3BWPB.js +1 -0
- package/Marketplace/chunk-E5JZCOHZ.js +1 -0
- package/Marketplace/chunk-E6AMKEQR.js +149 -0
- package/Marketplace/chunk-E7FHMF3J.js +1 -0
- package/Marketplace/chunk-EMLE4JDW.js +1 -0
- package/Marketplace/chunk-EYT2YJGK.js +1 -0
- package/Marketplace/chunk-FFTZPZOW.js +5 -0
- package/Marketplace/chunk-FHZNWINZ.js +1 -0
- package/Marketplace/{chunk-HVCIQI7B.js → chunk-FULVA6QB.js} +1 -1
- package/Marketplace/chunk-G6P2UZU4.js +1 -0
- package/Marketplace/chunk-GLMM3CVD.js +1 -0
- package/Marketplace/chunk-GQCDEPDY.js +1 -0
- package/Marketplace/chunk-GV3NEJJ6.js +2 -0
- package/Marketplace/chunk-GZLXMT7F.js +1 -0
- package/Marketplace/chunk-HERBJRWM.js +1 -0
- package/Marketplace/chunk-HG4R6CUP.js +1 -0
- package/Marketplace/chunk-HK5FXZE4.js +40 -0
- package/Marketplace/{chunk-W3JTS22H.js → chunk-HPINZVE4.js} +1 -1
- package/Marketplace/chunk-HU7LMMZJ.js +1 -0
- package/Marketplace/chunk-I3IA6MAD.js +1 -0
- package/Marketplace/chunk-IGKMJFKP.js +90 -0
- package/Marketplace/chunk-IM5M2CAI.js +1 -0
- package/Marketplace/chunk-IO2TWJDO.js +2 -0
- package/Marketplace/chunk-ISMIPSYN.js +1 -0
- package/Marketplace/chunk-ITGVXYDV.js +1 -0
- package/Marketplace/chunk-IZZQQW5G.js +5 -0
- package/Marketplace/{chunk-63ANFYRV.js → chunk-J2BPOHP6.js} +3 -3
- package/Marketplace/chunk-J5BZDPXE.js +1 -0
- package/Marketplace/chunk-J7FL3VT4.js +1 -0
- package/Marketplace/chunk-JLVWTKDH.js +1 -0
- package/Marketplace/chunk-JOKDW6WD.js +1 -0
- package/Marketplace/chunk-JUO4RKIH.js +1 -0
- package/Marketplace/chunk-KJE5GRQ4.js +1 -0
- package/Marketplace/chunk-KKB4B7FU.js +157 -0
- package/Marketplace/chunk-KWNXPX2M.js +1 -0
- package/Marketplace/chunk-L2GMXVN6.js +1 -0
- package/Marketplace/chunk-L3W6SG2T.js +1 -0
- package/Marketplace/chunk-L7WZ6U4T.js +15 -0
- package/Marketplace/chunk-LNJUGHOX.js +2 -0
- package/Marketplace/chunk-LOWGZOML.js +1 -0
- package/Marketplace/chunk-M4ZE35XK.js +61 -0
- package/Marketplace/chunk-M7U5T2ZP.js +1 -0
- package/Marketplace/chunk-MAMCOUZ6.js +1 -0
- package/Marketplace/chunk-MEER4VNV.js +1 -0
- package/Marketplace/chunk-MQXW3UAW.js +2 -0
- package/Marketplace/chunk-N26QQL77.js +1 -0
- package/Marketplace/chunk-N3WBRUNI.js +2 -0
- package/Marketplace/{chunk-JVNHFIYT.js → chunk-N5AE5WMQ.js} +1 -1
- package/Marketplace/chunk-NECWUPZQ.js +4 -0
- package/Marketplace/chunk-NLSVMXR7.js +2 -0
- package/Marketplace/chunk-NOIKC7TF.js +1 -0
- package/Marketplace/chunk-NWB7EVME.js +112 -0
- package/Marketplace/chunk-NYJPPKGX.js +1 -0
- package/Marketplace/chunk-O4HOLA7Y.js +1 -0
- package/Marketplace/chunk-ODQVHQPB.js +15 -0
- package/Marketplace/chunk-ONU4O7N2.js +2 -0
- package/Marketplace/chunk-OPXITNRF.js +1 -0
- package/Marketplace/chunk-OROFEDQN.js +5 -0
- package/Marketplace/chunk-OXWPYJNB.js +1 -0
- package/Marketplace/chunk-P6TDS7UT.js +1 -0
- package/Marketplace/chunk-PE7QBBA6.js +1 -0
- package/Marketplace/chunk-PGR6BEOA.js +1 -0
- package/Marketplace/chunk-PNUEO4J2.js +1 -0
- package/Marketplace/chunk-PQEXTCFW.js +1413 -0
- package/Marketplace/chunk-PS43OK3J.js +1 -0
- package/Marketplace/{chunk-QS22J2SC.js → chunk-PZB3GQWT.js} +2 -2
- package/Marketplace/chunk-Q2QX5AAJ.js +1130 -0
- package/Marketplace/chunk-QXRG5XYP.js +1 -0
- package/Marketplace/chunk-R6SCDZGW.js +1 -0
- package/Marketplace/chunk-RJFFTIAO.js +2 -0
- package/Marketplace/chunk-RNWHARPK.js +92 -0
- package/Marketplace/chunk-RUBV3KX2.js +149 -0
- package/Marketplace/{chunk-TGMCGROM.js → chunk-RXLMJGUY.js} +3 -3
- package/Marketplace/chunk-S32PEKW5.js +1 -0
- package/Marketplace/chunk-SILAIDPV.js +3 -0
- package/Marketplace/chunk-SJ5MC42H.js +257 -0
- package/Marketplace/chunk-SNSROU6N.js +1 -0
- package/Marketplace/chunk-SUTHLGCO.js +266 -0
- package/Marketplace/chunk-TCWEUEBR.js +264 -0
- package/Marketplace/chunk-TDCMI7YC.js +2 -0
- package/Marketplace/chunk-TUJHFVOP.js +1 -0
- package/Marketplace/chunk-UH5C5HXK.js +1 -0
- package/Marketplace/chunk-UI5ITL7Z.js +4 -0
- package/Marketplace/chunk-UNGNRJ2B.js +1 -0
- package/Marketplace/chunk-UW3UCIOY.js +10 -0
- package/Marketplace/chunk-VZSHSSQZ.js +2 -0
- package/Marketplace/chunk-W7YZT7CH.js +1 -0
- package/Marketplace/chunk-WFMAM73Y.js +1 -0
- package/Marketplace/chunk-WW7F6LSG.js +1 -0
- package/Marketplace/chunk-XBDQR2BA.js +1 -0
- package/Marketplace/chunk-XBIHN6D3.js +1 -0
- package/Marketplace/chunk-XFIUNEOU.js +1 -0
- package/Marketplace/chunk-XRLXIT7I.js +1 -0
- package/Marketplace/chunk-XUBQATMN.js +3 -0
- package/Marketplace/chunk-XW2CGM4G.js +5 -0
- package/Marketplace/chunk-Y6WFE3L2.js +1 -0
- package/Marketplace/chunk-YJTPDV4D.js +1 -0
- package/Marketplace/chunk-YKEAAH3N.js +2 -0
- package/Marketplace/chunk-YTHY4IFS.js +1 -0
- package/Marketplace/chunk-YTUPRTC2.js +1 -0
- package/Marketplace/chunk-ZAUKG4R6.js +2 -0
- package/Marketplace/chunk-ZETUYNFJ.js +1 -0
- package/Marketplace/chunk-ZS465QKM.js +2 -0
- package/Marketplace/chunk-ZSUWHVKX.js +1 -0
- package/Marketplace/chunk-ZV7EHPNJ.js +1 -0
- package/Marketplace/chunk-ZYJ6LAJ3.js +4 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-NBCLYU5Y.js +1 -0
- package/Marketplace/{polyfills-BUUDEW7V.js → polyfills-5FDKUQTZ.js} +1 -1
- package/Marketplace/scripts-2STIAS5P.js +5 -0
- package/Marketplace/styles-3SQUCHWS.css +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-25345PS7.js +0 -257
- package/Marketplace/chunk-2UIK6NRS.js +0 -1
- package/Marketplace/chunk-37MIOA6D.js +0 -1
- package/Marketplace/chunk-3DCFDJVG.js +0 -1
- package/Marketplace/chunk-3GDM5JNY.js +0 -2
- package/Marketplace/chunk-3X5SEOLP.js +0 -1
- package/Marketplace/chunk-4G7SG2H6.js +0 -1
- package/Marketplace/chunk-4NEKWRL7.js +0 -1
- package/Marketplace/chunk-4RTDKHTN.js +0 -1
- package/Marketplace/chunk-4VJ3SIJF.js +0 -1
- package/Marketplace/chunk-5CKVZBHM.js +0 -102
- package/Marketplace/chunk-5EIQGYTB.js +0 -1
- package/Marketplace/chunk-5G3N7OU5.js +0 -1
- package/Marketplace/chunk-5KNFEBH5.js +0 -1
- package/Marketplace/chunk-5PS6ZS3N.js +0 -1
- package/Marketplace/chunk-5QO5B7YG.js +0 -1
- package/Marketplace/chunk-67HPC5Y3.js +0 -2
- package/Marketplace/chunk-6H2KAYSB.js +0 -1088
- package/Marketplace/chunk-6NRH3MJL.js +0 -1
- package/Marketplace/chunk-6OMSPZZC.js +0 -2
- package/Marketplace/chunk-6QFP63YQ.js +0 -1
- package/Marketplace/chunk-7G6GQTSH.js +0 -33
- package/Marketplace/chunk-7KN3UVZI.js +0 -1
- package/Marketplace/chunk-7L3UKJDU.js +0 -1
- package/Marketplace/chunk-A6PXM4YX.js +0 -1
- package/Marketplace/chunk-ABYG6YZT.js +0 -2
- package/Marketplace/chunk-ACIMXBIC.js +0 -1
- package/Marketplace/chunk-AGURPBGY.js +0 -5
- package/Marketplace/chunk-AGZCB65X.js +0 -1
- package/Marketplace/chunk-BDBETNFT.js +0 -137
- package/Marketplace/chunk-BKRCW7SH.js +0 -79
- package/Marketplace/chunk-BMYBLBSP.js +0 -3
- package/Marketplace/chunk-BTO76EDH.js +0 -1
- package/Marketplace/chunk-BVDLO6WD.js +0 -1235
- package/Marketplace/chunk-CGOB6Y3X.js +0 -1
- package/Marketplace/chunk-CMBQCMTZ.js +0 -1
- package/Marketplace/chunk-CVM573KF.js +0 -1
- package/Marketplace/chunk-CWNZ6HAV.js +0 -1
- package/Marketplace/chunk-CYG42H2K.js +0 -1
- package/Marketplace/chunk-DAXM2MPK.js +0 -1
- package/Marketplace/chunk-DNNH5AQJ.js +0 -1
- package/Marketplace/chunk-DPAQQ77L.js +0 -222
- package/Marketplace/chunk-DXPLB6OB.js +0 -252
- package/Marketplace/chunk-EAA6S4WB.js +0 -1
- package/Marketplace/chunk-EHBCYQSG.js +0 -1
- package/Marketplace/chunk-EHUVS2VB.js +0 -1
- package/Marketplace/chunk-ERXVXBTU.js +0 -1
- package/Marketplace/chunk-EU2KAMEK.js +0 -1
- package/Marketplace/chunk-EUYQST7Q.js +0 -1
- package/Marketplace/chunk-EYONZQ2W.js +0 -1
- package/Marketplace/chunk-F2T43CJB.js +0 -51
- package/Marketplace/chunk-F2XHUFJC.js +0 -157
- package/Marketplace/chunk-F4Z47C2S.js +0 -15
- package/Marketplace/chunk-FJYAC47U.js +0 -2
- package/Marketplace/chunk-FXQKRJWU.js +0 -2
- package/Marketplace/chunk-GCECFUOP.js +0 -1
- package/Marketplace/chunk-GH5FTODR.js +0 -1
- package/Marketplace/chunk-GHVAGYK3.js +0 -2
- package/Marketplace/chunk-GJTQNOXV.js +0 -1
- package/Marketplace/chunk-GRYGUILI.js +0 -2
- package/Marketplace/chunk-GUO3DTDP.js +0 -1
- package/Marketplace/chunk-GZKOMS4T.js +0 -2
- package/Marketplace/chunk-HBVCUV6A.js +0 -7
- package/Marketplace/chunk-HERZ7KEM.js +0 -1
- package/Marketplace/chunk-HIC5QC3Y.js +0 -1
- package/Marketplace/chunk-HJXYT6MI.js +0 -4
- package/Marketplace/chunk-HZKRKNLA.js +0 -5
- package/Marketplace/chunk-IHSGQFDX.js +0 -2
- package/Marketplace/chunk-IITU3NV6.js +0 -1
- package/Marketplace/chunk-IQ3ER4NM.js +0 -1
- package/Marketplace/chunk-JAWWMIGP.js +0 -1
- package/Marketplace/chunk-JBT7GBCM.js +0 -5
- package/Marketplace/chunk-JGEU4EJT.js +0 -1
- package/Marketplace/chunk-JP6HRQLK.js +0 -2
- package/Marketplace/chunk-JZC463X6.js +0 -1
- package/Marketplace/chunk-K4NTJPH5.js +0 -1
- package/Marketplace/chunk-KS7ACI26.js +0 -10
- package/Marketplace/chunk-KSHWHTCH.js +0 -2
- package/Marketplace/chunk-KTB223SK.js +0 -1
- package/Marketplace/chunk-KWHVCPX2.js +0 -1
- package/Marketplace/chunk-LBDA5KP3.js +0 -1
- package/Marketplace/chunk-LBMUKJV5.js +0 -1
- package/Marketplace/chunk-LDL3A7NM.js +0 -1
- package/Marketplace/chunk-LETC4UBH.js +0 -1
- package/Marketplace/chunk-LVZDOEKQ.js +0 -1
- package/Marketplace/chunk-LW3PTNRL.js +0 -1
- package/Marketplace/chunk-LYCCI55Z.js +0 -1
- package/Marketplace/chunk-LYPHZP72.js +0 -2
- package/Marketplace/chunk-MAQ6FWVP.js +0 -1
- package/Marketplace/chunk-MFMD6ZSP.js +0 -234
- package/Marketplace/chunk-MFQQEEHJ.js +0 -3
- package/Marketplace/chunk-MO53T3IK.js +0 -1
- package/Marketplace/chunk-MX5SR3SR.js +0 -94
- package/Marketplace/chunk-MYPTLVUU.js +0 -1
- package/Marketplace/chunk-NAGQF4JJ.js +0 -1
- package/Marketplace/chunk-NCLAP5OW.js +0 -1
- package/Marketplace/chunk-NFGFM7TW.js +0 -1
- package/Marketplace/chunk-NNOI3AG4.js +0 -1
- package/Marketplace/chunk-NTGU2UMX.js +0 -1
- package/Marketplace/chunk-NX4WQMFK.js +0 -1
- package/Marketplace/chunk-O2YNPIYM.js +0 -5
- package/Marketplace/chunk-O3ADJ3YS.js +0 -1
- package/Marketplace/chunk-OJMQBH6T.js +0 -7
- package/Marketplace/chunk-OMPJUICC.js +0 -1
- package/Marketplace/chunk-OR6TBLPO.js +0 -33
- package/Marketplace/chunk-OXWPLJEW.js +0 -93
- package/Marketplace/chunk-OZ7LWNOK.js +0 -15
- package/Marketplace/chunk-PE5AFID4.js +0 -1
- package/Marketplace/chunk-PFY5UG5D.js +0 -4
- package/Marketplace/chunk-PHUHUFYL.js +0 -2
- package/Marketplace/chunk-PIBVGTHJ.js +0 -1
- package/Marketplace/chunk-PYXL7UF7.js +0 -2
- package/Marketplace/chunk-Q4N2QUV6.js +0 -30
- package/Marketplace/chunk-QOP7KZK7.js +0 -1
- package/Marketplace/chunk-QPLUVWFA.js +0 -158
- package/Marketplace/chunk-QW4EOJRM.js +0 -1
- package/Marketplace/chunk-QWISVEBT.js +0 -141
- package/Marketplace/chunk-R5KKW4LC.js +0 -1
- package/Marketplace/chunk-RAQRGWCZ.js +0 -2
- package/Marketplace/chunk-RC5PUUVM.js +0 -193
- package/Marketplace/chunk-RGAWEFPQ.js +0 -1
- package/Marketplace/chunk-RGY4FVTG.js +0 -1
- package/Marketplace/chunk-RHHHL4OR.js +0 -5
- package/Marketplace/chunk-S3FZRSRP.js +0 -1
- package/Marketplace/chunk-SCHKXMJN.js +0 -2
- package/Marketplace/chunk-T27ABFCP.js +0 -1
- package/Marketplace/chunk-T2OSIFLN.js +0 -78
- package/Marketplace/chunk-TLEH7QMI.js +0 -1
- package/Marketplace/chunk-TUHKMG57.js +0 -1
- package/Marketplace/chunk-U7WCPDIV.js +0 -1
- package/Marketplace/chunk-UGYIOLBR.js +0 -1
- package/Marketplace/chunk-UMP6ZMEJ.js +0 -1
- package/Marketplace/chunk-UQWB6RQP.js +0 -2
- package/Marketplace/chunk-V3USB3ZU.js +0 -1
- package/Marketplace/chunk-VFATXJRG.js +0 -1
- package/Marketplace/chunk-VLF5RZ3X.js +0 -1
- package/Marketplace/chunk-VRPKQ2HJ.js +0 -1
- package/Marketplace/chunk-W3DTXPRM.js +0 -1
- package/Marketplace/chunk-WN5DZGA4.js +0 -1
- package/Marketplace/chunk-WRJFUNM3.js +0 -1
- package/Marketplace/chunk-WUKVYBD3.js +0 -1
- package/Marketplace/chunk-XHAXYWZ7.js +0 -1
- package/Marketplace/chunk-XONEJSCE.js +0 -1
- package/Marketplace/chunk-XPCRS7AL.js +0 -1
- package/Marketplace/chunk-XXT6F2ZS.js +0 -5
- package/Marketplace/chunk-YERZ6W22.js +0 -1
- package/Marketplace/chunk-YFDFIBAG.js +0 -1
- package/Marketplace/chunk-YHT4EYQJ.js +0 -397
- package/Marketplace/chunk-YQLOB7IQ.js +0 -70
- package/Marketplace/chunk-YTCIQBSO.js +0 -2
- package/Marketplace/chunk-YU2SDRUC.js +0 -1
- package/Marketplace/chunk-Z3ITXK3D.js +0 -1
- package/Marketplace/chunk-ZHPHANAW.js +0 -3
- package/Marketplace/main-HRVNLZTX.js +0 -1
- package/Marketplace/scripts-BTEOQWVQ.js +0 -5
- package/Marketplace/styles-EW2SXTVD.css +0 -1
- /package/Marketplace/{chunk-SDUUFQUI.js → chunk-D2J64VUP.js} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as nt,b as at,c as ot}from"./chunk-Q2QX5AAJ.js";import"./chunk-AZOCRKXK.js";import{a as pe}from"./chunk-N3WBRUNI.js";import"./chunk-RNWHARPK.js";import{a as qe,b as Je,c as Xe,e as et,f as tt,g as it}from"./chunk-XUBQATMN.js";import{e as $e,k as je,l as He,m as Ke,n as Qe,o as Ze}from"./chunk-UW3UCIOY.js";import"./chunk-222IOSGU.js";import{a as ze,b as Ye,c as Ue}from"./chunk-55BTWXFX.js";import"./chunk-FULVA6QB.js";import"./chunk-A7YRNCQP.js";import"./chunk-OROFEDQN.js";import"./chunk-PZB3GQWT.js";import"./chunk-B4QCGMST.js";import"./chunk-UH5C5HXK.js";import{a as Ge}from"./chunk-3LU2SFN4.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-ONU4O7N2.js";import"./chunk-37NOSLQL.js";import"./chunk-N5AE5WMQ.js";import"./chunk-34UF36YY.js";import{c as Fe,d as Oe,e as Re}from"./chunk-6KWG6O5L.js";import"./chunk-4RLWHMI6.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import{h as Ne,i as le}from"./chunk-5O33CV4F.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import{qa as Ae}from"./chunk-5PMKN6PM.js";import{a as re}from"./chunk-YJTPDV4D.js";import{b as Ve,e as ke}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{b as oe,c as x}from"./chunk-BLHKSSK6.js";import{m as Be,n as Le}from"./chunk-UI5ITL7Z.js";import{A as ae,b as Ee,c as Pe,h as ie,m as ne,x as Ie}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{v as We,w as se}from"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{I as Me,c as O,e as z,f as Y,i as te,j as U,m as V}from"./chunk-LNJUGHOX.js";import{$b as k,$c as J,Bc as we,Cc as Ce,Dc as ve,Gb as I,Ha as f,Hc as T,Mb as v,Mc as d,Nc as F,Oc as S,Qc as b,Rc as M,Sc as E,Wc as Se,Yc as ye,Z as j,Zc as q,_c as De,aa as he,ad as xe,bc as N,ea as H,gc as m,hc as a,hd as B,ic as o,id as K,jc as C,jd as Te,kd as X,lb as fe,m as ue,ma as ge,nb as l,nc as R,oc as W,pd as ee,qc as y,ra as D,sb as A,sd as be,td as L,v as Z,vc as w,xa as u,xc as _,ya as h,zb as _e}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as me,b as ce}from"./chunk-66YHNWRR.js";var pt=e=>({"over-due":e});function mt(e,r){if(e&1&&(a(0,"tr",8)(1,"td"),d(2),o(),a(3,"td"),d(4),o(),a(5,"td"),d(6),o(),a(7,"td"),d(8),o()()),e&2){let s=r.$implicit,t=r.index;m("ngClass",J(5,pt,s.Exception)),l(2),F(t+1),l(2),F(s.Number),l(2),F(s.Status),l(2),F(s.Exception)}}function ct(e,r){if(e&1&&(R(0),v(1,mt,9,7,"tr",7),W()),e&2){let s,t=_();l(),m("ngForOf",(s=t.downloadResult())==null?null:s.Body)}}function ut(e,r){e&1&&(a(0,"tr",9)(1,"td",10)(2,"div",11),C(3,"i",12),o(),a(4,"h4",13),d(5," There is no order to processed "),o()()())}var rt=(()=>{let r=class r{constructor(){this.downloadResult=L()}ngOnInit(){}};r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=I({type:r,selectors:[["complete-step"]],inputs:{downloadResult:[1,"downloadResult"]},decls:16,vars:2,consts:[["EMPTY_DOWNLOAD",""],[1,"row","pt-2"],[1,"col-md-12"],[1,"table"],[1,"thead-light"],["width","1%"],[4,"ngIf","ngIfElse"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"text-center"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(n,i){if(n&1&&(a(0,"div",1)(1,"div",2)(2,"table",3)(3,"thead",4)(4,"tr"),C(5,"th",5),a(6,"th"),d(7,"Order Number"),o(),a(8,"th"),d(9,"Status"),o(),a(10,"th"),d(11,"Exception"),o()()(),a(12,"tbody"),v(13,ct,2,1,"ng-container",6)(14,ut,6,0,"ng-template",null,0,X),o()()()()),n&2){let p,g=T(15);l(13),m("ngIf",((p=i.downloadResult())==null||p.Body==null?null:p.Body.length)>0)("ngIfElse",g)}},dependencies:[V,O,z,Y],encapsulation:2});let e=r;return e})();var gt=e=>({"full-width":e}),ft=()=>({standalone:!0}),lt=(()=>{let r=class r{constructor(t){this.datePipe=t,this.fullWidth=!1,this.timeChange=new A}ngOnInit(){}onTimeChange(t){let n=null;t&&(n=this.datePipe.transform(t,"HH:mm")),this.timeChange.emit(n),this.onTimePickerChange()}onShowCalendar(){let t=document.getElementById("dropdown-filter");if(t){var n=new bootstrap.Dropdown(t);n&&(n._config.autoClose="inside")}}onTimePickerChange(){let t=document.getElementById("dropdown-filter");if(t){var n=new bootstrap.Dropdown(t);n&&(n._config.autoClose="outside")}}};r.\u0275fac=function(n){return new(n||r)(_e(U))},r.\u0275cmp=I({type:r,selectors:[["app-timepicker"]],inputs:{time:"time",fullWidth:"fullWidth"},outputs:{timeChange:"timeChange"},decls:4,vars:8,consts:[["myCalendar",""],["styleClass","custom-height","id","shippingTime","appendTo","body",3,"ngModelChange","onSelect","ngClass","baseZIndex","ngModel","timeOnly","ngModelOptions"],["size","small","label","Close",3,"click"]],template:function(n,i){if(n&1){let p=y();a(0,"p-datepicker",1,0),E("ngModelChange",function(c){return u(p),M(i.time,c)||(i.time=c),h(c)}),w("ngModelChange",function(c){return u(p),h(i.onTimeChange(c))})("onSelect",function(){return u(p),h(i.onShowCalendar())}),a(2,"p-footer")(3,"p-button",2),w("click",function(){return u(p),T(1).hideOverlay(),h(i.onShowCalendar())}),o()()()}n&2&&(m("ngClass",J(5,gt,i.fullWidth))("baseZIndex",1100),b("ngModel",i.time),m("timeOnly",!0)("ngModelOptions",De(7,ft)))},dependencies:[V,O,ae,ie,ne,ot,at,nt,Ae],styles:["p-datepicker span.p-datepicker.custom-height{height:44px;width:70px} p-datepicker.full-width span.p-datepicker.custom-height{height:44px;width:100%!important}"]});let e=r;return e})();var $=(()=>{let r=class r{constructor(){this.httpService=D(ke),this.toastr=D(Ve),this.datePipe=D(U)}gerChannelDetailById(t){return this.httpService.post(re.GetChannelDetail,{ID:t})}getOrderPreview(t){return this.httpService.post(re.GetOrderPreviewV2,t)}getDownloadOrder(t){return this.httpService.post(re.GetDownloadOrderV2,t)}onPreviewOrder(t){return this.validateDatePreview(t)?this.getOrderPreview(t).pipe(H(n=>{n.Data?.length===0&&this.toastrEmptyPreview(t)})):ue}toastrEmptyPreview(t){let n=this.datePipe.transform(t.From,"dd MMM yyyy"),i=this.datePipe.transform(t.To,"dd MMM yyyy"),p=t.TimeFrom?t.TimeFrom:"",g=t.TimeTo?t.TimeTo:"";this.toastr.info(`There is no orders from ${n} ${p} to ${i} ${g}!`,"No Orders!")}validateDatePreview(t){let n=!0;return t.downloadType==!0?x.getDaysDiff(t?.From,t?.To)+1>7&&(this.toastr.warning("Dates cannot be more than 7 days apart!","Warning"),n=!1):x.getDaysDiff(t?.From,t?.To)+1>14&&(this.toastr.warning("Dates cannot be more than 14 days apart!","Warning"),n=!1),n}getDateTitle(t,n){let i=x.formatTitleFromDate(new Date(t),new Date(n)),p=this.datePipe.transform(t,i),g=this.datePipe.transform(n,"dd MMM yyyy");return`${i==null?"":p+"-"} ${g}`}};r.\u0275fac=function(n){return new(n||r)},r.\u0275prov=ge({token:r,factory:r.\u0275fac});let e=r;return e})();function _t(e,r){if(e&1&&(a(0,"ng-option",16),C(1,"img",17),d(2),o()),e&2){let s=r.$implicit;m("value",s.ID),l(),m("src",s==null?null:s.Img,fe),l(),S("",s.Name," ")}}function wt(e,r){if(e&1){let s=y();a(0,"div",8)(1,"div",4)(2,"h5"),d(3,"Type"),o(),a(4,"p",5),d(5,"Select Type want to download"),o()(),a(6,"div",4)(7,"div",18)(8,"div")(9,"mat-radio-group",19),E("ngModelChange",function(n){u(s);let i=_();return M(i.downloadType,n)||(i.downloadType=n),h(n)}),w("ngModelChange",function(){u(s);let n=_();return h(n.onDownloadTypeChange())}),a(10,"mat-radio-button",20),d(11," Orders "),o(),a(12,"mat-radio-button",21),d(13," Disbursement "),o()()()(),a(14,"div",22)(15,"div",23),C(16,"i",24),o(),a(17,"p",25),d(18," If there are completed transactions, to obtain payment and service fee, you need to download disbursement. "),o()()()()}if(e&2){let s=_();l(9),b("ngModel",s.downloadType),l(),m("value",!1),l(2),m("value",!0)}}function Ct(e,r){e&1&&(a(0,"p",5),d(1," Select Disbursement date "),a(2,"span",26),d(3,"(payment date / order complete date)"),o(),d(4," of the channel you want to download (Max 1 Week). "),o())}function vt(e,r){e&1&&(a(0,"p",5),d(1," Select transaction date of the channel you want to download (Max 2 Weeks) "),o())}function St(e,r){if(e&1){let s=y();a(0,"div",12)(1,"app-timepicker",27),E("timeChange",function(n){u(s);let i=_();return M(i.startTime,n)||(i.startTime=n),h(n)}),w("timeChange",function(){u(s);let n=_();return h(n.onStartTimeChange())}),o(),a(2,"span",28),d(3,"-"),o(),a(4,"app-timepicker",27),E("timeChange",function(n){u(s);let i=_();return M(i.endTime,n)||(i.endTime=n),h(n)}),w("timeChange",function(){u(s);let n=_();return h(n.onEndTimeChange())}),o()()}if(e&2){let s=_();l(),b("time",s.startTime),l(3),b("time",s.endTime)}}var st=(()=>{let r=class r{constructor(){this.reset=L(!1),this.authService=D(le),this.tokenService=D(Ne),this.downloadService=D($),this.downloadType=f(!1),this.selectedChannelId=f(null),this.channelOptions=f(this.authService.getChannels()),this.channelType=oe,this.selectedChannel=f(null),this.showTimePicker=f(!1),this.startDate=f(null),this.endDate=f(null),this.startTime=f("00:00"),this.endTime=f("23:59"),this.minDate=f(new Date),this.maxDate=f(new Date),this.filterData=new A,this._onRememberMeChange=be({alias:"onRememberMeChange"}),this.rememberMe=f(!1),ee(()=>{this.reset()&&this.resetFilter()},{allowSignalWrites:!0}),this.initDateValidation()}initDateValidation(){let t=this.tokenService?.getTokenValue(),n=t?.DownloadRange?JSON.parse(t?.DownloadRange):0;if(n<=0)this.minDate.set(null),this.maxDate.set(null);else{let i=new Date,p=x.addDays(i,n-1);this.minDate.set(p)}}resetFilter(){this.selectedChannelId.update(()=>null),this.startDate.update(()=>null),this.endDate.update(()=>null),this.startTime.update(()=>null),this.endTime.update(()=>null),this.downloadType.update(()=>!1),this.selectedChannel.update(()=>null),this.showTimePicker.update(()=>!1),this.channelDetail$=null}onSelectChannel(){this.selectedChannel.update(()=>this.channelOptions().find(t=>t.ID===this.selectedChannelId())),this.selectedChannel()?this.channelDetail$=this.downloadService.gerChannelDetailById(this.selectedChannelId()).pipe(Z(t=>t?.Model),j(1)):this.channelDetail$=null,this.emitFilterData()}onFilterDateChange(){let t=1;this.startDate()&&this.endDate()&&(t=x.getDaysDiff(this.startDate(),this.endDate())),this.showTimePicker.update(()=>t==0),this.emitFilterData()}onDownloadTypeChange(){this.emitFilterData()}onStartTimeChange(){this.emitFilterData()}onEndTimeChange(){this.emitFilterData()}emitFilterData(){this.filterData.emit({channelId:this.selectedChannelId(),startDate:this.startDate(),endDate:this.endDate(),downloadType:this.downloadType(),startTime:this.startTime(),endTime:this.endTime()})}onChangeRememberMe(t){this._onRememberMeChange.emit(t)}};r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=I({type:r,selectors:[["filter-step"]],inputs:{reset:[1,"reset"]},outputs:{filterData:"onFilterChange",_onRememberMeChange:"onRememberMeChange"},features:[q([$,$e()])],decls:32,vars:14,consts:[["picker",""],[1,"row","pt-2",2,"width","63%","margin-right","40px"],[1,"col-12"],[1,"row"],[1,"col-6"],[1,"text-muted"],["appendTo","body","placeholder","Select Channel",3,"ngModelChange","clearable","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"row","mt-6"],["id","dates",1,"form-control","rounded","dateRange",3,"rangePicker","min","max"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel","maxlength"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[1,"mt-8"],[1,"col-6","d-flex","align-items-center","gap-2"],["type","checkbox",2,"width","16px","height","16px",3,"ngModelChange","ngModel"],[1,"ms-2","fw-bold"],[3,"value"],[2,"width","18px","margin-right","10px",3,"src"],[1,"form-label-group","radio","download-type",2,"margin-bottom","0px"],["name","dowloadType",3,"ngModelChange","ngModel"],["matTooltip","Download from Create sales order until create logistics status",1,"me-5",3,"value"],["matTooltip","Download only Payment and write off",1,"me-5",3,"value"],[1,"d-flex","border","mb-4","pt-6","px-6","mt-3",2,"background","#1f87ac0a","border-radius","5px"],[1,"me-3","pt-1"],[1,"fa","fa-lightbulb","fs-5"],[1,"mb-6"],[1,"fw-bold"],[3,"timeChange","time"],[1,"mx-4"]],template:function(n,i){if(n&1){let p=y();a(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5"),d(5,"Select a Channel"),o(),a(6,"p",5),d(7,"Select Channel want to download order"),o()(),a(8,"div",4)(9,"ng-select",6),E("ngModelChange",function(c){return u(p),M(i.selectedChannelId,c)||(i.selectedChannelId=c),h(c)}),w("ngModelChange",function(){return u(p),h(i.onSelectChannel())}),v(10,_t,3,3,"ng-option",7),o()()(),k(11,wt,19,3,"div",8),B(12,"async"),a(13,"div",8)(14,"div",4)(15,"h5"),d(16,"Date Range"),o(),k(17,Ct,5,0,"p",5)(18,vt,2,0,"p",5),o(),a(19,"div",4)(20,"div",2)(21,"mat-date-range-input",9)(22,"input",10),E("ngModelChange",function(c){return u(p),M(i.startDate,c)||(i.startDate=c),h(c)}),w("click",function(){u(p);let c=T(25);return h(c.open())}),o(),a(23,"input",11),E("ngModelChange",function(c){return u(p),M(i.endDate,c)||(i.endDate=c),h(c)}),w("click",function(){u(p);let c=T(25);return h(c.open())})("ngModelChange",function(){return u(p),h(i.onFilterDateChange())}),o()(),C(24,"mat-date-range-picker",null,0),o(),k(26,St,5,2,"div",12),o()(),a(27,"div",8)(28,"div",13)(29,"input",14),E("ngModelChange",function(c){return u(p),M(i.rememberMe,c)||(i.rememberMe=c),h(c)}),w("ngModelChange",function(c){return u(p),h(i.onChangeRememberMe(c))}),o(),a(30,"h5",15),d(31,"Remember Me"),o()()()()()}if(n&2){let p,g,c=T(25);l(9),m("clearable",!1),b("ngModel",i.selectedChannelId),l(),m("ngForOf",i.channelOptions()),l(),N((p=K(12,12,i.channelDetail$))!=null&&p.ServiceFeeWriteOff&&((p=i.selectedChannel())==null?null:p.TypeID)==i.channelType.Tokopedia?11:-1),l(6),N(i.downloadType()&&((g=i.selectedChannel())==null?null:g.TypeID)==i.channelType.Tokopedia?17:18),l(4),m("rangePicker",c)("min",i.minDate())("max",i.maxDate()),l(),b("ngModel",i.startDate),l(),b("ngModel",i.endDate),l(3),N(i.showTimePicker()?26:-1),l(3),b("ngModel",i.rememberMe)}},dependencies:[V,z,Re,Oe,Fe,Ue,ze,Ye,ae,Pe,Ee,ie,Ie,ne,lt,Qe,je,Ze,He,Ke,te],styles:[".vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}.mt-1rem[_ngcontent-%COMP%]{margin-top:1rem}.dateRange[_ngcontent-%COMP%]{padding-top:.8rem;padding-bottom:.8rem}.form-label-group.radio.download-type[_ngcontent-%COMP%]{height:45.5938px!important;border-radius:.375rem!important}"]});let e=r;return e})();var P=(function(e){return e.ALL="all",e.SYNC="sync",e.WRONG="wrong",e.UNSYNC="unsync",e})(P||{});var G=(function(e){return e[e.DoNothing=0]="DoNothing",e[e.New=1]="New",e[e.Update=2]="Update",e})(G||{});var yt=(e,r)=>({"over-due-today":e,"over-due":r});function Dt(e,r){if(e&1&&(a(0,"th",21),d(1),o()),e&2){let s=_();l(),S(" ",s.selectedChannel()?"Created Date":"Last Status Update"," ")}}function xt(e,r){if(e&1&&(a(0,"td"),d(1),B(2,"date"),o()),e&2){let s=_().$implicit;l(),S(" ",Te(2,1,s.Modified,"dd MMM yyyy HH:mm:ss")," ")}}function Tt(e,r){if(e&1&&(a(0,"span"),d(1),o()),e&2){let s=_().$implicit;l(),S(" ",s.ActionString," ")}}function bt(e,r){if(e&1&&(a(0,"li"),d(1),o()),e&2){let s=r.$implicit;l(),S(" ",s," ")}}function Mt(e,r){if(e&1&&(a(0,"ul",27),v(1,bt,2,1,"li",22),o()),e&2){let s=_().$implicit;l(),m("ngForOf",s.ActionString)}}function Et(e,r){if(e&1&&(a(0,"span",28),C(1,"i",29),o()),e&2){let s=_().$implicit;m("title",ye("Delivery : ",s.DeliveryState,`
|
|
2
|
+
Payment : `,s.PaymentState))}}function Pt(e,r){if(e&1&&(a(0,"tr")(1,"td"),d(2),o(),a(3,"td"),d(4),o(),v(5,xt,3,4,"td",23),a(6,"td")(7,"span"),d(8),o(),d(9),o(),a(10,"td",24)(11,"span"),d(12),o(),d(13),o(),a(14,"td"),v(15,Tt,2,1,"span",23)(16,Mt,2,1,"ul",25),o(),a(17,"td"),v(18,Et,2,3,"span",26),o()()),e&2){let s,t=r.$implicit,n=r.index,i=_(2);l(2),F(n+1),l(2),F(t.Number),l(),m("ngIf",((s=i.selectedChannel())==null?null:s.TypeID)!=i.channelType.Shopee&&((s=i.selectedChannel())==null?null:s.TypeID)!==i.channelType.Tiktok),l(3),S("",t.ChannelStatus," - "),l(),S("",t.ChannelStatusDescription," "),l(),m("ngClass",xe(12,yt,(t==null?null:t.Action)==i.actionPreviewOrder.Update,(t==null?null:t.Action)==i.actionPreviewOrder.New))("matTooltip",t.POSStatus==91||t.POSStatusDescription=="Conflict"?"There is a missed status at POS, usually fulfillment has not been recorded but the payment has been recorded":""),l(2),S("",t.POSStatus," - "),l(),S("",t.POSStatusDescription," "),l(2),m("ngIf",t.ActionString.length==1),l(),m("ngIf",t.ActionString.length>1),l(2),m("ngIf",t.ChannelStatus!=99&&t.POSStatus!=99)}}function It(e,r){if(e&1&&(R(0),v(1,Pt,19,15,"tr",22),W()),e&2){let s=_();l(),m("ngForOf",s.displayPreviewData())}}function Vt(e,r){e&1&&(a(0,"tr",30)(1,"td",31)(2,"div",32),C(3,"i",33),o(),a(4,"h4",34),d(5," There is no order to processed "),o()()())}var dt=(()=>{let r=class r{constructor(){this.orderPreview=L(),this.selectedChannel=L(),this.channelType=oe,this.allData=f(0),this.syncData=f(0),this.wrongData=f(0),this.unsyncData=f(0),this.pillStatus=f(P.ALL),this.actionPreviewOrder=G,this.previewStatus=P,this.displayPreviewData=f([]),this.exportOrders=new A,ee(()=>{this.orderPreview()&&(this.filterPreviewData(P.ALL),this.initLengthStatusData())},{allowSignalWrites:!0})}filterPreviewData(t){this.pillStatus.update(()=>t),this.displayPreviewData.update(()=>this.filterDataByStatus(t))}initLengthStatusData(){this.wrongData.update(()=>this.filterDataByStatus(P.WRONG).length),this.syncData.update(()=>this.filterDataByStatus(P.SYNC).length),this.allData.update(()=>this.orderPreview().length),this.unsyncData.update(()=>this.filterDataByStatus(P.UNSYNC).length)}filterDataByStatus(t){let n=[];switch(t){case P.ALL:n=this.orderPreview();break;case P.SYNC:n=this.orderPreview().filter(i=>i.Action==G.DoNothing);break;case P.WRONG:n=this.orderPreview().filter(i=>i.Action==G.Update);break;case P.UNSYNC:n=this.orderPreview().filter(i=>i.Action==G.New);break}return n}onExportOrders(){this.exportOrders.emit()}};r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=I({type:r,selectors:[["preview-step"]],inputs:{orderPreview:[1,"orderPreview"],selectedChannel:[1,"selectedChannel"]},outputs:{exportOrders:"onExportOrders"},decls:41,vars:11,consts:[["EMPTY",""],[1,"row","pt-2"],[1,"col-md-12"],[1,"row","mx-1","mb-5"],[1,"col-12","d-flex","justify-content-between","align-items-end",2,"padding-left","0px","padding-right","0px"],[1,"nav","nav-pills"],[1,"nav-item","me-3"],[1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],[1,"nav-item","mx-3"],["matTooltip","All Invoice which is already available in POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["matTooltip","Invoices that have different status between marketplace and POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["matTooltip","Invoices which is not exist in POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"table"],[1,"thead-light"],["width","1%"],["width","25%"],["width","15%",4,"ngIf"],["width","10%"],[4,"ngIf","ngIfElse"],["width","15%"],[4,"ngFor","ngForOf"],[4,"ngIf"],["matTooltipClass","custom-width-tooltip",3,"ngClass","matTooltip"],["class","ps-5",4,"ngIf"],[3,"title",4,"ngIf"],[1,"ps-5"],[3,"title"],[1,"fas","fa-info-circle","ms-2"],[1,"text-center"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(n,i){if(n&1){let p=y();a(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div")(5,"ul",5)(6,"li",6)(7,"button",7),w("click",function(){return u(p),h(i.filterPreviewData(i.previewStatus.ALL))}),d(8),o()(),a(9,"li",8)(10,"button",9),w("click",function(){return u(p),h(i.filterPreviewData(i.previewStatus.SYNC))}),d(11),o()(),a(12,"li",8)(13,"button",10),w("click",function(){return u(p),h(i.filterPreviewData(i.previewStatus.WRONG))}),d(14),o()(),a(15,"li",8)(16,"button",11),w("click",function(){return u(p),h(i.filterPreviewData(i.previewStatus.UNSYNC))}),d(17),o()()()(),a(18,"div")(19,"button",12),w("click",function(){return u(p),h(i.onExportOrders())}),C(20,"i",13),a(21,"span"),d(22,"Export"),o()()()()(),a(23,"table",14)(24,"thead",15)(25,"tr"),C(26,"th",16),a(27,"th",17),d(28,"Number"),o(),v(29,Dt,2,1,"th",18),a(30,"th",19),d(31,"Channel Status"),o(),a(32,"th",19),d(33,"POS Status"),o(),a(34,"th"),d(35,"Action"),o(),C(36,"th",16),o()(),a(37,"tbody"),v(38,It,2,1,"ng-container",20)(39,Vt,6,0,"ng-template",null,0,X),o()()()()}if(n&2){let p,g,c=T(40);l(7),m("ngClass",i.pillStatus()=="all"?"btn-secondary text-white":"btn-outline-dark"),l(),S(" All (",i.allData(),") "),l(2),m("ngClass",i.pillStatus()=="sync"?"btn-success":"btn-outline-success"),l(),S(" Existing (",i.syncData(),") "),l(2),m("ngClass",i.pillStatus()=="wrong"?"btn-warning text-white":"btn-outline-warning"),l(),S(" Wrong Status (",i.wrongData(),") "),l(2),m("ngClass",i.pillStatus()=="unsync"?"btn-danger":"btn-outline-danger"),l(),S(" Missing (",i.unsyncData(),") "),l(12),m("ngIf",((p=i.selectedChannel())==null?null:p.TypeID)!=i.channelType.Shopee&&((p=i.selectedChannel())==null?null:p.TypeID)!==i.channelType.Tiktok),l(9),m("ngIf",((g=i.displayPreviewData())==null?null:g.length)>0)("ngIfElse",c)}},dependencies:[V,O,z,Y,se,We,U],encapsulation:2});let e=r;return e})();var kt=["stepper"];function Nt(e,r){if(e&1){let s=y();a(0,"div",2)(1,"button",19),w("click",function(){u(s);let n=_();return h(n.onStepperBack())}),d(2," Back "),o(),a(3,"button",20),w("click",function(){u(s);let n=_();return h(n.onNextStep())}),d(4," Next "),o()()}if(e&2){let s=_();l(3),m("disabled",s.disabledNextFilter())}}function Ft(e,r){if(e&1){let s=y();a(0,"button",21),w("click",function(){u(s);let n=_();return h(n.onNextStep())}),d(1," Next "),o()}if(e&2){let s=_();m("disabled",s.disabledNextFilter())}}function Ot(e,r){if(e&1){let s=y();a(0,"button",22),w("click",function(){u(s);let n=_();return h(n.onNewDownload())}),C(1,"i",23),d(2," New "),o()}}function Rt(e,r){e&1&&(C(0,"i",24),a(1,"span"),d(2,"Filter"),o())}function Wt(e,r){e&1&&(C(0,"i",25),a(1,"span"),d(2,"Preview"),o())}function Bt(e,r){if(e&1){let s=y();R(0),a(1,"preview-step",26),w("onExportOrders",function(){u(s);let n=_();return h(n.onExportOrders())}),o(),W()}if(e&2){let s=r.ngIf;l(),m("orderPreview",s)}}function Lt(e,r){e&1&&(C(0,"i",27),a(1,"span"),d(2,"Finish"),o())}function At(e,r){if(e&1&&(R(0),C(1,"complete-step",28),W()),e&2){let s=r.ngIf;l(),m("downloadResult",s)}}function zt(e,r){e&1&&(a(0,"h6"),d(1,"1"),o())}function Yt(e,r){e&1&&(a(0,"h6"),d(1,"2"),o())}function Ut(e,r){e&1&&(a(0,"h6"),d(1,"3"),o())}var gn=(()=>{let r=class r{constructor(){this.downloadService=D($),this.orderService=D(pe),this.productService=D(Ge),this.authService=D(le),this.stepperSelectedIndex=f(0),this.disabledNextFilter=f(!0),this.isResetFilter=f(!1),this.pageTitle=f("Download to POS"),this.cacheKey=f(x.GuidEMpty),this.rememberMe=f(!1)}onFilterChange(t){this.filter=t,this.validateDisabledNext()}validateDisabledNext(){this.disabledNextFilter.update(()=>x.IsEmpty(this.filter?.channelId)||!x.isValidDate(this.filter.startDate)||!x.isValidDate(this.filter.endDate))}onNextStep(){switch(this.stepper.selectedIndex){case 0:this.onPreview();let t=this.productService.findChannelById(this.filter.channelId,this.authService.getChannels());this.setPageTitle(`Preview ${t?.Name}`);break;case 1:this.onDownload(),this.setPageTitle("Download");break}}onStepperNext(){this.stepper.selected.completed=!0,this.stepper.next()}onPreview(){let t={ID:this.filter.channelId,From:this.filter.startDate,To:this.filter.endDate,IsDisbursement:this.filter.downloadType};x.IsNotEmpty(this.filter.startTime)&&(t=ce(me({},t),{TimeFrom:this.filter.startTime+":00",TimeTo:this.filter.endTime+":00"})),this.orderPreview$=this.downloadService.onPreviewOrder(t).pipe(H(n=>{n.Data?.length>0&&(this.cacheKey.update(()=>n.CacheKey),this.onStepperNext())}),Z(n=>n.Data),j(1))}onExportOrders(){let t={ID:this.filter.channelId,From:this.filter.startDate?this.filter.startDate:null,To:this.filter.endDate?this.filter.endDate:null},n=`Orders ${this.downloadService.getDateTitle(this.filter.startDate,this.filter.endDate)}`;this.orderService.exportOrders(t,n).subscribe()}onDownload(){let t={ID:this.filter.channelId,From:this.filter.startDate,To:this.filter.endDate,ListPreview:[],IsDisbursement:this.filter.downloadType,CacheKey:this.cacheKey()};this.downloadPreview$=this.orderPreview$.pipe(he(n=>(t.ListPreview=n,this.downloadService.getDownloadOrder(t))),H(()=>{this.onStepperNext()}),j(1))}setPageTitle(t){this.pageTitle.update(()=>`
|
|
3
|
+
${t} (${this.downloadService.getDateTitle(this.filter.startDate,this.filter.endDate)})
|
|
4
|
+
`)}onStepperBack(){this.stepper.previous(),this.pageTitle.update(()=>"Download to POS")}onNewDownload(){this.isResetFilter.update(()=>!this.rememberMe()),this.stepper.reset(),this.stepperSelectedIndex.update(()=>0),this.orderPreview$=null,this.downloadPreview$=null,this.pageTitle.update(()=>"Download to POS")}};r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=I({type:r,selectors:[["app-download-v2"]],viewQuery:function(n,i){if(n&1&&we(kt,5),n&2){let p;Ce(p=ve())&&(i.stepper=p.first)}},features:[q([$,pe,{provide:qe,useValue:{displayDefaultIndicatorType:!1}}])],decls:26,vars:21,consts:[["stepper",""],[3,"hideSearchBox","hideSearchDropdown","headerTitle","description"],[1,"btn-group","me-3"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"disabled"],[1,"btn","btn-outline-secondary","btn-fill","d-flex","align-items-center","gap-2"],[1,"container-fluid","pt-5","mt-5"],[1,"row"],[1,"col-12"],[1,"d-flex","justify-content-center"],["linear","",1,"w-100","stepper-download",3,"selectedIndexChange","ngClass","selectedIndex"],["state","filter",3,"completed","editable"],["matStepLabel",""],[1,"w-100",3,"onFilterChange","onRememberMeChange","reset"],["state","preview",3,"editable","completed"],[4,"ngIf"],["state","finish"],["matStepperIcon","filter"],["matStepperIcon","preview"],["matStepperIcon","finish"],[1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-outline-secondary","bg-success","text-white",3,"click","disabled"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"click","disabled"],[1,"btn","btn-outline-secondary","btn-fill","d-flex","align-items-center","gap-2",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt"],[1,"fa-solid","fa-filter","me-3"],[1,"fa-solid","fa-file","me-3"],[3,"onExportOrders","orderPreview"],[1,"fa-solid","fa-flag","me-3"],[3,"downloadResult"]],template:function(n,i){if(n&1){let p=y();a(0,"mainpanel",1)(1,"actions"),k(2,Nt,5,1,"div",2),k(3,Ft,2,1,"button",3),k(4,Ot,3,0,"button",4),o(),a(5,"content")(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"mat-stepper",9,0),E("selectedIndexChange",function(c){return u(p),M(i.stepperSelectedIndex,c)||(i.stepperSelectedIndex=c),h(c)}),a(12,"mat-step",10),v(13,Rt,3,0,"ng-template",11),a(14,"filter-step",12),w("onFilterChange",function(c){return u(p),h(i.onFilterChange(c))})("onRememberMeChange",function(c){return u(p),h(i.rememberMe.set(c))}),o()(),a(15,"mat-step",13),v(16,Wt,3,0,"ng-template",11)(17,Bt,2,1,"ng-container",14),B(18,"async"),o(),a(19,"mat-step",15),v(20,Lt,3,0,"ng-template",11)(21,At,2,1,"ng-container",14),B(22,"async"),o(),v(23,zt,2,0,"ng-template",16)(24,Yt,2,0,"ng-template",17)(25,Ut,2,0,"ng-template",18),o()()()()()()()}if(n&2){let p=T(11);m("hideSearchBox",!0)("hideSearchDropdown",!0)("headerTitle",i.pageTitle())("description",i.pageTitle()),l(2),N(i.stepperSelectedIndex()==1?2:-1),l(),N(i.stepperSelectedIndex()==0?3:-1),l(),N(i.stepperSelectedIndex()==2?4:-1),l(6),m("ngClass",Se("last-edited-step-"+p.selectedIndex)),b("selectedIndex",i.stepperSelectedIndex),l(2),m("completed",!1)("editable",i.stepperSelectedIndex()!=2),l(2),m("reset",i.isResetFilter()),l(),m("editable",i.stepperSelectedIndex()!=2)("completed",!1),l(2),m("ngIf",K(18,17,i.orderPreview$)),l(4),m("ngIf",K(22,19,i.downloadPreview$))}},dependencies:[V,O,Y,rt,st,dt,it,et,Je,tt,Xe,Le,Be,Me,se,te],styles:[`@import"https://fonts.googleapis.com/icon?family=Material+Icons";.vertical-radio{display:flex;flex-direction:column;margin:15px 0}.mt-1rem{margin-top:1rem}.dateRange{padding-top:.8rem;padding-bottom:.8rem}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container{position:relative;width:60%;left:18%}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-content-container>div.mat-horizontal-stepper-content:nth-child(1){display:flex;justify-content:left}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-content-container{margin-top:30px}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container>mat-step-header.mat-horizontal-stepper-header{pointer-events:none!important}.form-label-group.radio.download-type{height:45.5938px!important;border-radius:.375rem!important}
|
|
5
|
+
`],encapsulation:2});let e=r;return e})();export{gn as DownloadV2Component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as O}from"./chunk-DYQ3BWPB.js";import{a as D}from"./chunk-ZSUWHVKX.js";import{b as be}from"./chunk-4RG5YR7N.js";import"./chunk-4ILDFTIG.js";import{a as de}from"./chunk-A6QXXKPR.js";import{a as le}from"./chunk-QXRG5XYP.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-YJTPDV4D.js";import{b as re}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as ae}from"./chunk-BLHKSSK6.js";import{m as ue,n as fe}from"./chunk-UI5ITL7Z.js";import{A as oe}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{b as se,c as pe}from"./chunk-ZETUYNFJ.js";import{v as ce,w as me}from"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{D as ee,F as te,G as ne,I as ie,c as W,i as X,l as Y,m as M}from"./chunk-LNJUGHOX.js";import{$b as u,$c as I,Gb as x,Jb as k,Lc as U,Mb as A,Mc as d,Nc as h,Oc as $,Tc as j,Uc as J,Vc as C,Z as w,Zc as Z,aa as R,ad as K,bc as f,cc as B,ec as G,fc as H,gc as c,hc as r,hd as y,ic as l,id as _,jc as b,kb as L,nb as p,nc as P,oc as T,od as Q,qc as z,ra as v,v as S,vc as q,xa as F,xc as m,ya as N}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as E,b as V}from"./chunk-66YHNWRR.js";var ve=(()=>{let t=class t{transform(n){return typeof n=="number"&&(n=n.toString()),n!=null?n.replace(/\n/g,"<br />"):n}};t.\u0275fac=function(a){return new(a||t)},t.\u0275pipe=k({name:"newlines",type:t,pure:!0});let e=t;return e})();var ye=e=>({disabled:e}),_e=(e,t)=>({labelFilledInput:e,labelEmptyInput:t});function xe(e,t){if(e&1&&(r(0,"p"),d(1),y(2,"number"),l()),e&2){let o=m();p(),h(o.inputValueType()==="number"?_(2,1,o.inputValue):o.inputValue)}}function Ie(e,t){if(e&1&&(b(0,"p",1),y(1,"newlines")),e&2){let o=m();c("innerHTML",_(1,1,o.inputValue),L)}}function Me(e,t){if(e&1&&d(0),e&2){let o=m();$(" ",o.labelValue," ")}}var he=(()=>{let t=class t{constructor(){this.inputValue="",this.labelValue="",this.inputType="input",this.labelVisible=!0,this.disabled=!1,this.class="mb-6",this.tooltip="",this.isInputFilled=!1,this.isNotEmpty=de.IsNotEmpty}inputValueType(){return typeof this.inputValue}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=x({type:t,selectors:[["lib-info-page-input"]],inputs:{inputValue:"inputValue",labelValue:"labelValue",inputType:"inputType",labelVisible:"labelVisible",disabled:"disabled",class:"class",tooltip:"tooltip"},decls:5,vars:14,consts:[["matTooltipPosition","above",3,"ngClass","matTooltip"],[3,"innerHTML"]],template:function(a,i){a&1&&(r(0,"div",0),u(1,xe,3,3,"p"),u(2,Ie,2,3,"p",1),r(3,"label"),u(4,Me,1,1),l()()),a&2&&(U(i.class),c("ngClass",I(9,ye,i.disabled))("matTooltip",i.tooltip),p(),f(i.isNotEmpty(i.inputValue)&&i.inputType=="input"?1:-1),p(),f(i.isNotEmpty(i.inputValue)&&i.inputType=="textarea"?2:-1),p(),U(K(11,_e,i.isNotEmpty(i.inputValue),!i.isNotEmpty(i.inputValue))),p(),f(i.labelVisible?4:-1))},dependencies:[M,W,me,ce,Y,ve],styles:["div[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;margin-bottom:1rem;border-radius:.25rem!important}p[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem}.labelFilledInput[_ngcontent-%COMP%]{position:absolute;top:-10px;left:10px;background:#fff;padding-left:4px;padding-right:4px;font-size:.75rem!important;color:#9da2a6}.labelEmptyInput[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem;color:#ccc}.disabled[_ngcontent-%COMP%]{background-color:#e9ecef;opacity:1}"]});let e=t;return e})();var Se=e=>({ID:e});function Pe(e,t){if(e&1){let o=z();r(0,"button",24),q("click",function(){F(o);let a=m(2),i=C(0);return N(a.onDeleteUser(i==null||i.selectedUser==null?null:i.selectedUser.ID))}),b(1,"i",25),d(2," Delete "),l()}}function Te(e,t){if(e&1&&(P(0),u(1,Pe,3,0,"button",23),T()),e&2){let o,n=m(),a=C(0);p(),f((a==null||a.selectedUser==null?null:a.selectedUser.Name)!==((o=n.currentLoginUser())==null?null:o.username)?1:-1)}}function Ue(e,t){if(e&1&&(P(0),r(1,"a",26),b(2,"i",27),d(3," Edit "),l(),T()),e&2){m();let o=C(0);p(),c("queryParams",I(1,Se,o==null||o.selectedUser==null?null:o.selectedUser.ID))}}function De(e,t){e&1&&(r(0,"div",20),d(1," All channels assigned to this user "),l())}function Oe(e,t){if(e&1&&b(0,"p-chip",28),e&2){let o=t.$implicit;c("label",o.Name)("image",o.logo)("alt",o.Name)}}function Ee(e,t){if(e&1&&G(0,Oe,1,3,"p-chip",28,B),e&2){m();let o=C(0);H(o==null?null:o.selectedChannels)}}var at=(()=>{let t=class t{constructor(){this.userService=v(O),this.activatedRoute=v(ee),this.toastService=v(re),this.router=v(te),this.userLoader$=this.activatedRoute.queryParams.pipe(R(n=>{let a=n.ID||null;return this.userService.getUserFormLoader(a).pipe(w(1),S(i=>(i.Options.Channels=ae.assignChannelLogo(i.Options.Channels),i)))}),S(n=>{let a=n.Options.Users.find(g=>g.ID===n.Form?.ID),i=n.Options.Groups.find(g=>g.ID===n.Form?.GroupID),s=n.Options.Channels.filter(g=>n.UserChannels?.includes(g.ID));return V(E({},n),{selectedUser:a||null,selectedGroup:i||null,selectedChannels:s||[],DownloadOrderDaysRange:n.Form?.DownloadOrderDaysRange||"0"})})),this.userEditRole=D.UserEdit,this.userDeleteRole=D.UserDelete,this.currentLoginUser=Q(()=>{let n=localStorage.getItem(le.AUTHORIZATION);return n?JSON.parse(n):null})}onDeleteUser(n){confirm("Are you sure you want to delete this user?")&&this.userService.deleteUsers([n]).subscribe({next:()=>{this.router.navigate(["/menu/users/users"]),this.toastService.success("User deleted successfully","Success")}})}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=x({type:t,selectors:[["app-user-info"]],features:[Z([O])],decls:50,vars:12,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","group","aria-label","User Actions",1,"btn-group"],[4,"ngxPermissionsOnly"],[1,"container-fluid","py-5","bg-light-gray"],[1,"row","mt-8"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body","mt-8","pb-4"],[1,"row"],[1,"col-6"],[1,"info-label-group"],["id","myTab","role","tablist",1,"nav","nav-tabs"],["role","presentation",1,"nav-item"],["id","channel-tab","data-bs-toggle","tab","data-bs-target","#channel-tab-pane","type","button","role","tab","aria-controls","channel-tab-pane","aria-selected","true",1,"nav-link","active"],["id","restriction-tab","data-bs-toggle","tab","data-bs-target","#restriction-tab-pane","type","button","role","tab","aria-controls","restriction-tab-pane","aria-selected","false",1,"nav-link"],[1,"card","rounded-0","border-top-0"],[1,"card-body","pb-4"],["id","myTabContent",1,"tab-content"],["id","channel-tab-pane","role","tabpanel","aria-labelledby","channel-tab","tabindex","0",1,"tab-pane","fade","show","active"],[1,"text-center","fs-5","opacity-50"],["id","restriction-tab-pane","role","tabpanel","aria-labelledby","restriction-tab-pane","tabindex","1",1,"tab-pane","fade"],["tooltip","How many days of past orders this user can download.","labelValue","Download Order Days Range","inputType","input",3,"inputValue"],[1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-trash","me-1"],["role","button","routerLink","/menu/users/users/form",1,"btn","btn-outline-secondary",3,"queryParams"],[1,"fa","fa-edit","me-1"],[1,"me-3","mb-3",2,"--p-chip-image-width","1.2rem","--p-chip-image-height","1.2rem","--p-chip-padding-x","1rem","--p-chip-padding-y","0.5rem","--p-chip-border-radius","0.5rem","--p-chip-font-size","1.2rem",3,"label","image","alt"]],template:function(a,i){if(a&1&&(j(0),y(1,"async"),r(2,"mainpanel",0)(3,"actions")(4,"div",1),A(5,Te,2,1,"ng-container",2)(6,Ue,4,3,"ng-container",2),l()(),r(7,"content")(8,"div",3)(9,"div",4)(10,"div",5)(11,"div",6)(12,"div",7)(13,"h3"),d(14,"User Information"),l()(),r(15,"div",8)(16,"div",9)(17,"div",10)(18,"div",11)(19,"label"),d(20,"Selected User"),l(),r(21,"div")(22,"span"),d(23),l()()()(),r(24,"div",10)(25,"div",11)(26,"label"),d(27,"Selected Group"),l(),r(28,"div")(29,"span"),d(30),l()()()()()()()()(),r(31,"div",9)(32,"div",5)(33,"ul",12)(34,"li",13)(35,"button",14),d(36," Channels Filter "),l()(),r(37,"li",13)(38,"button",15),d(39," Restriction "),l()()(),r(40,"div",16)(41,"div",17)(42,"div",18)(43,"div",19),u(44,De,2,0,"div",20)(45,Ee,2,0),l(),r(46,"div",21)(47,"div",9)(48,"div",10),b(49,"lib-info-page-input",22),l()()()()()()()()()()()),a&2){let s=J(_(1,9,i.userLoader$));p(2),c("headerTitle",(s==null||s.selectedUser==null?null:s.selectedUser.Name)+" Info")("hideSearchBox",!0)("hideSearchDropdown",!0),p(3),c("ngxPermissionsOnly",i.userDeleteRole),p(),c("ngxPermissionsOnly",i.userEditRole),p(17),h(s==null||s.selectedUser==null?null:s.selectedUser.Name),p(7),h(s==null||s.selectedGroup==null?null:s.selectedGroup.Name),p(14),f((s==null||s.selectedChannels==null?null:s.selectedChannels.length)===0?44:45),p(5),c("inputValue",s==null?null:s.DownloadOrderDaysRange)}},dependencies:[M,fe,ue,oe,ie,ne,be,pe,se,he,X],styles:[".nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]:hover, .nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]:focus, .nav-tabs[_ngcontent-%COMP%] .nav-item.show[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover, .nav-tabs[_ngcontent-%COMP%] .nav-item.show[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:focus{background-color:#fff!important;border-color:#dee2e6 #dee2e6 #fff}"]});let e=t;return e})();export{at as UserInfoComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=(()=>{let t=class t{};t.SubmitConfig="/api/Channel/SubmitConfig",t.PosAccountTest="/api/POSAccount/Test",t.PosAccountRemove="/api/POSAccount/Remove",t.PosAccountGetConfig="/api/ChannelLoader/GetConfig",t.ChannelGetLastSyncByID="/api/Channel/GetLastSyncByID",t.GetChannel="/api/Channel/GetChannel",t.GetChannelLoader="/api/ChannelLoader/GetChannelLoader",t.TestShopID="/api/Channel/TestShopID",t.UpdateChannelIndex="/api/Channel/UpdateChannelIndex",t.DeleteChannel="/api/Channel/DeleteChannel",t.GetRegisterByOutletName="/api/Channel/GetRegistersByOutletOrder",t.GetChannelRowCount="/api/Channel/GetCountChannel",t.GetChannelWarehouse="/api/Channel/GetChannelWarehouseLocation",t.UnSynchronizedWarehouse="/api/Channel/UnSynchronizedWarehouse",t.GetChannelDetail="/api/ChannelLoader/GetChannelView",t.GetOrderPreview="/api/Orders/Preview",t.GetOrderPreviewV2="/api/Orders/PreviewV2",t.GetDownloadOrder="/api/Orders/Download",t.GetDownloadOrderV2="/api/Orders/DownloadV2",t.ShopeeV2_URL="/api/ChannelAuthorization/ShopeeV2_URL",t.Tiktok_URL="/api/ChannelAuthorization/Tiktok_URL",t.Lazada_URL="/api/ChannelAuthorization/Lazada_URL",t.AddTokopedia="/api/ChannelAdd/Tokopedia",t.AddShopify="/api/ChannelAdd/AddShopify",t.AddWoocommerce="/api/ChannelAdd/AddWooCommerce",t.AddPlugo="/api/ChannelAdd/Plugo",t.UploadPlugoProduct="/api/product/plugo/AddProduct",t.RefreshToken="/api/RefreshToken",t.RefreshInventory="/api/Inventory/RefreshInventory",t.GetToShip="/api/orders/toship",t.GetShipped="/api/orders/shipped",t.GetCompleted="/api/orders/completed",t.GetAll="/api/orders/all",t.GetCancelled="/api/orders/GetCancelled",t.GetAwaitingCollection="/api/orders/AwaitingCollection",t.GetShopeeShippingOptions="/api/v1/shipping/shopee/OptionShip",t.ShopeeSelectShipping="/api/v1/shipping/shopee/SelectShip",t.ShopeeSelectMultipleShipping="/api/v1/shipping/shopee/SelectMultipleShip",t.GetTiktokShippingOptions="/api/v1/shipping/tiktok/OptionShip",t.TiktokSelectShipping="/api/v1/shipping/tiktok/SelectShip",t.TiktokSelectMultipleShipping="/api/v1/shipping/tiktok/SelectMultipleShip",t.GetOrderApiLog="/api/Orders/GetOrderDetailByChannel",t.getOrderDaysFrom="/api/orders/DaysFrom",t.GetUserLoader="/api/userloader/List",t.GetUsers="/api/user/list",t.GetLoaderForm="/api/userloader/Form",t.UpdateUser="/api/user/Submit",t.DeleteUsers="/api/user/Delete",t.MyProfile="/api/user/myprofile",t.MigrateUsers="/api/user/migrate",t.MigrateLoader="/api/userloader/Migrate",t.GetGroups="/api/UserGroup/list",t.GetGroupsLoader="/api/UserGroupLoader/list",t.GetGroupFormLoader="/api/UserGrouploader/Form",t.SubmitGroup="/api/userGroup/AssignRole",t.DeleteGroups="/api/userGroup/Delete",t.GetEscrowDetail="/api/Orders/GetEscrowDetail",t.DetachVariant="/api/product/DetachVariant",t.GetProductApiLog="/api/Product/GetProductDetailBySKU",t.ScanSyncProductV2="/api/v2/ProductScan/SyncProduct",t.ScanAsyncProductV2="/api/v2/ProductScan/AsyncProduct",t.GetLastInfoDownloadInventory="/api/Inventory/GetOrderDownloadLatestOn",t.UpdateInventoryChannel="/api/Inventory/UpdateChannel",t.GetJobScanList="/api/notification/GetJobScanV2",t.GetJobScanDetail="/api/notification/GetJobScanV2ByID",t.UpdateChannelInventory="/api/Inventory/UpdateChannel",t.GetMultiListingSKU="/api/product/GetMultiListingSKU",t.GetMultilistingSKUCount="/api/product/GetCountMultiListingSKU",t.UpdateUpdateQuantityByItem="/api/Inventory/UpdateQuantityByItem",t.UpdatePriceById="/api/Price/UpdatePriceByID",t.UpdateChannelPrice="/api/Price/UpdateChannel",t.TokopediaPrintShippingLabel="api/v1/Shippinglabel/Tokopedia",t.TiktokPrintShippingLabel="api/v1/Shippinglabel/Tiktok/DownloadShipping",t.LazadaPrintShippingLabel="api/v1/Shippinglabel/Lazada/DownloadShipping",t.ShopeePrintShippingLabel="api/v1/Shippinglabel/shopee/DownloadShipping",t.ShopeePrintMultipleShippingLabel="/api/v1/Shippinglabel/shopee/MultiDownloadShipping",t.TiktokPrintMultipleShippingLabel="/api/v1/Shippinglabel/Tiktok/MultiDownloadShipping",t.LazadaPrintMultipleShippingLabel="/api/v1/Shippinglabel/Lazada/MultiDownloadShipping",t.RefreshShippingCourierAndRefNumber="/api/orders/RefreshShippingProvider";let i=t;return i})();export{e as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./chunk-NOIKC7TF.js";import"./chunk-7VRLCSNB.js";import{a as qe}from"./chunk-SNSROU6N.js";import"./chunk-4VNQYYVV.js";import{b as Ze}from"./chunk-NLSVMXR7.js";import{c as Ye}from"./chunk-55BTWXFX.js";import"./chunk-FULVA6QB.js";import{a as g}from"./chunk-6XT3JSG5.js";import"./chunk-A7YRNCQP.js";import"./chunk-PZB3GQWT.js";import"./chunk-B4QCGMST.js";import"./chunk-BXOHTPGP.js";import{b as Xe}from"./chunk-TDCMI7YC.js";import{b as Ke}from"./chunk-GV3NEJJ6.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-ONU4O7N2.js";import"./chunk-3RK6DDJD.js";import{a as Qe}from"./chunk-5YBWBAQS.js";import"./chunk-37NOSLQL.js";import{a as l}from"./chunk-ZSUWHVKX.js";import"./chunk-N5AE5WMQ.js";import{b as Ne}from"./chunk-34UF36YY.js";import{a as ze,d as Ae,e as V}from"./chunk-6KWG6O5L.js";import{a as Le}from"./chunk-A6QXXKPR.js";import{b as Oe,i as ke}from"./chunk-5O33CV4F.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-YJTPDV4D.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-BLHKSSK6.js";import{a as Be,h as We,k as Y,n as Je}from"./chunk-UI5ITL7Z.js";import{A as R,B as we,h as Ie,m as Te}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{a as Ee,b as De,c as Pe}from"./chunk-ZETUYNFJ.js";import{v as He,w as U}from"./chunk-SILAIDPV.js";import{C as $e,D as Fe,I as je,L as Ge,M as Q,v as Re,w as Ve,y as Ue}from"./chunk-3I2V337G.js";import{E as ye,F as Me,G as xe,H as Se,I as J,c as ue,e as _e,f as be,i as Ce,j as ve,m as N}from"./chunk-LNJUGHOX.js";import{$b as se,Bc as pe,Ca as ie,Cc as ge,Dc as he,Fd as L,G as K,Gb as y,Hb as C,Hc as z,Ib as le,Ic as fe,Jc as A,Lc as H,M as X,Mb as _,Mc as p,Nc as M,Oc as w,Q as ee,Qa as ne,ac as de,bc as ce,ca as te,f as G,gc as c,hc as r,hd as W,ic as d,id as q,jc as v,kd as B,lb as ae,na as b,nb as s,nc as P,oc as k,qc as me,ra as f,sb as D,tb as oe,v as E,vc as T,xa as x,xc as m,ya as S,yb as re,zb as I}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{i as j}from"./chunk-66YHNWRR.js";var $=class{constructor(){this.menus=[{Icon:"fa-solid fa-chart-pie",Title:"Dashboard",Url:"/menu/dashboard",Roles:[l.DashboardView]},{Icon:"fas fa-tag",Title:"Products",Url:"/menu/products",Roles:[l.ProductView]},{Icon:"fas fa-archive",Title:"Inventory",Url:"/menu/inventory",Roles:[l.InventoryView]},{Icon:"fas fa-money-bill-alt",Title:"Price",Url:"/menu/price",Roles:[l.PriceView]},{Icon:"fas fa-shopping-cart",Title:"Order",Url:"/menu/order",Roles:[l.OrderView]},{Icon:"fas fa-cog",Title:"Channel",Url:"/menu/channel",Roles:[l.ChannelView]},{Icon:"fa-solid fa-user",Title:"Users",Url:"/menu/users",Roles:[l.UserView]},{Icon:"fas fa-clipboard-list",Title:"Sync Logs",Url:"/menu/sync-log",Roles:[l.Report]},{Icon:"fas fa-dolly",Title:"Logistic",Url:"/menu/Logistic",Roles:[l.LogisticView]},{Icon:"fas fa-file-alt",Title:"Developer",Url:"/menu/log",Roles:[l.DevView]},{Icon:"fa-solid fa-file-brackets-curly",Title:"JSON Api",Url:"/menu/json-api",Roles:[l.JsonApiView]}]}get getMenu(){return this.menus}};var et="mat-badge-content",st=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=y({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,a){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}
|
|
2
|
+
`],encapsulation:2,changeDetection:0})}return e})(),tt=(()=>{class e{_ngZone=f(oe);_elementRef=f(ne);_ariaDescriber=f(je);_renderer=f(re);_animationsDisabled=Ge();_idGenerator=f(Fe);get color(){return this._color}set color(i){this._setColor(i),this._color=i}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(i){this._updateRenderedContent(i)}_content;get description(){return this._description}set description(i){this._updateDescription(i)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=f(Ue);_document=f(ie);constructor(){let i=f(Re);i.load(st),i.load(Ve)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let i=this._renderer.createElement("span"),n="mat-badge-active";return i.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),i.setAttribute("aria-hidden","true"),i.classList.add(et),this._animationsDisabled&&i.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(i),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{i.classList.add(n)})}):i.classList.add(n),i}_updateRenderedContent(i){let n=`${i??""}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_updateDescription(i){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!i||this._isHostInteractive())&&this._removeInlineDescription(),this._description=i,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,i):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(i){let n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),i&&n.add(`mat-badge-${i}`)}_clearExistingBadges(){let i=this._elementRef.nativeElement.querySelectorAll(`:scope > .${et}`);for(let n of Array.from(i))n!==this._badgeElement&&n.remove()}static \u0275fac=function(n){return new(n||e)};static \u0275dir=le({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(n,a){n&2&&A("mat-badge-overlap",a.overlap)("mat-badge-above",a.isAbove())("mat-badge-below",!a.isAbove())("mat-badge-before",!a.isAfter())("mat-badge-after",a.isAfter())("mat-badge-small",a.size==="small")("mat-badge-medium",a.size==="medium")("mat-badge-large",a.size==="large")("mat-badge-hidden",a.hidden||!a.content)("mat-badge-disabled",a.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",L],disabled:[2,"matBadgeDisabled","disabled",L],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",L]}})}return e})(),it=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=C({type:e});static \u0275inj=b({imports:[$e,Q,Q]})}return e})();function ct(e,t){if(e&1&&(P(0),r(1,"p",25),p(2),d(),k()),e&2){let i=m(3).$implicit;s(2),w(" ",i.Title," ")}}function mt(e,t){if(e&1&&(r(0,"p"),p(1),d()),e&2){let i=m(3).$implicit;s(),M(i.Title)}}function pt(e,t){if(e&1&&(r(0,"a",24),v(1,"i"),_(2,ct,3,1,"ng-container",22)(3,mt,2,1,"ng-template",null,1,B),d()),e&2){let i=z(4),n=m(2).$implicit;c("href",n.Url,ae),s(),H(n.Icon),s(),c("ngIf",n.Badge)("ngIfElse",i)}}function gt(e,t){if(e&1&&(P(0),_(1,pt,5,5,"a",23),k()),e&2){let i=m().$implicit;s(),c("ngxPermissionsOnly",i.Roles)}}function ht(e,t){if(e&1&&(r(0,"p",25),p(1),d()),e&2){let i=m(4).$implicit;s(),w(" ",i.Title," ")}}function ft(e,t){if(e&1&&(r(0,"p"),p(1),d()),e&2){let i=m(4).$implicit;s(),M(i.Title)}}function ut(e,t){if(e&1&&(P(0),se(1,ht,2,1,"p",25),W(2,"async"),de(3,ft,2,1,"p"),k()),e&2){let i=m(4);s(),ce(q(2,1,i.notifications$)!=0?1:3)}}function _t(e,t){if(e&1&&(r(0,"p"),p(1),d()),e&2){let i=m(3).$implicit;s(),M(i.Title)}}function bt(e,t){if(e&1&&(r(0,"a",27),v(1,"i"),_(2,ut,4,3,"ng-container",22)(3,_t,2,1,"ng-template",null,2,B),d()),e&2){let i=z(4),n=m(2).$implicit,a=m();c("matTooltip",a.isCollapseSidebar?n.Title:"")("routerLink",n.Url),s(),H(n.Icon),s(),c("ngIf",n.Badge)("ngIfElse",i)}}function Ct(e,t){if(e&1&&_(0,bt,5,6,"a",26),e&2){let i=m().$implicit;c("ngxPermissionsOnly",i.Roles)}}function vt(e,t){if(e&1&&(r(0,"li",21),_(1,gt,2,1,"ng-container",22)(2,Ct,1,1,"ng-template",null,0,B),d()),e&2){let i=t.$implicit,n=z(3);s(),c("ngIf",i.ExternalLink)("ngIfElse",n)}}var nt=(()=>{let t=class t{constructor(n,a,o,h){this.toggleSidebarService=n,this.notificationService=a,this.decodeTokenService=o,this.authService=h,this.Menu={},this.isCollapseSidebar=!1,this.token=o.getParseToken(),this.storeName=this.token.StoreName,this.Menu=new $().getMenu,this.toggleState$=this.toggleSidebarService.toggleState$}ngOnInit(){this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotification().pipe(E(n=>n.length))}onLogout(){this.authService.logout()}onCallapseSidebar(){this.isCollapseSidebar=!this.isCollapseSidebar,this.storeName=this.token.StoreName,this.isCollapseSidebar&&(this.storeName=this.getInitialTitle(this.token.StoreName))}getInitialTitle(n){if(n){let a,o=n.split(" ");return o.length==1?a=o[0].substring(0,2):a=o.shift().charAt(0)+o.pop().charAt(0),a}}};t.\u0275fac=function(a){return new(a||t)(I(Be),I(Ne),I(Oe),I(ke))},t.\u0275cmp=y({type:t,selectors:[["app-menu"]],standalone:!1,decls:28,vars:9,consts:[["DEFAULT_ROUTE",""],["NO_BADGE",""],["WITHOUT_BADGE",""],[1,"wrapper"],["data-color","green",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-md-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fas","cursor",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-bs-toggle","dropdown","aria-expanded","false",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center","cursor-pointer"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],["routerLink","/menu/profile",1,"dropdown-item","h5",2,"cursor","pointer"],["aria-hidden","true",1,"fa-user","fas"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fas","fa-sign-out-alt"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",4,"ngFor","ngForOf"],[1,"main-panel"],["routerLinkActive","active"],[4,"ngIf","ngIfElse"],["class","nav-link position-relative d-block changelog","target","_blank",3,"href",4,"ngxPermissionsOnly"],["target","_blank",1,"nav-link","position-relative","d-block","changelog",3,"href"],["matBadge","!","matBadgeColor","warn","matBadgeSize","small",1,"shake-animation"],["class","nav-link position-relative d-block","matTooltipPosition","right",3,"matTooltip","routerLink",4,"ngxPermissionsOnly"],["matTooltipPosition","right",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(a,o){a&1&&(r(0,"div",3),W(1,"async"),r(2,"div",4)(3,"button",5),T("click",function(){return o.onCallapseSidebar()}),v(4,"i",6),d(),r(5,"div",7)(6,"div",8)(7,"a",9),p(8),d(),r(9,"div",10)(10,"div",11),p(11),d(),v(12,"div",12),r(13,"a",13),v(14,"i",14),p(15,"\xA0 "),r(16,"span"),p(17,"My Profile"),d()(),r(18,"a",15),T("click",function(){return o.onLogout()}),v(19,"i",16),p(20,"\xA0 "),r(21,"span"),p(22," Log Out"),d()()()()(),r(23,"div",17)(24,"ul",18),_(25,vt,4,2,"li",19),d()()(),r(26,"div",20),v(27,"router-outlet"),d()()),a&2&&(A("nav-open",q(1,7,o.toggleState$)),s(2),c("ngClass",o.isCollapseSidebar?"collapses":""),s(2),c("ngClass",o.isCollapseSidebar?"fa-angle-left":"fa-angle-right"),s(4),w(" ",o.storeName," "),s(3),w(" ",o.token==null?null:o.token.LID," "),s(14),c("ngForOf",o.Menu))},dependencies:[ue,_e,be,ye,xe,Se,He,tt,De,Ce],styles:["@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}.full-container[_ngcontent-%COMP%]{padding-top:0!important}} p.shake-animation.mat-badge>span.mat-badge-content{animation:_ngcontent-%COMP%_shake-animation 4.72s ease infinite;font-size:12px;transform-origin:50% 50%;right:-14px!important}@keyframes _ngcontent-%COMP%_shake-animation{0%{transform:translate(0)}1.78571%{transform:translate(5px)}3.57143%{transform:translate(0)}5.35714%{transform:translate(5px)}7.14286%{transform:translate(0)}8.92857%{transform:translate(5px)}10.71429%{transform:translate(0)}to{transform:translate(0)}} .changelog:visited p.shake-animation.mat-badge>span.mat-badge-content{color:#77c425;background-color:#77c425;z-index:-1}@media print{.main-panel[_ngcontent-%COMP%]{padding:0!important}}"]});let e=t;return e})();var u=(e,t)=>j(null,null,function*(){let i=f(Ee),n=f(Me),a=e.data?.roles||[],o=e.data?.redirectUrl||"/";return a.length===0||(yield yt(i,a))?!0:(n.navigate([o]),!1)});function yt(e,t){return j(this,null,function*(){let i=t.map(a=>e.hasPermission(a));return(yield Promise.all(i)).some(a=>a)})}var Mt=[{path:"",component:nt,children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"profile",loadChildren:()=>import("./chunk-HERBJRWM.js").then(e=>e.routes),canActivate:[g],data:{title:"My Profile"}},{path:"dashboard",loadChildren:()=>import("./chunk-KKB4B7FU.js").then(e=>e.DashboardModule),canActivate:[g,u,qe],data:{title:"Dashboard",roles:[l.DashboardView],redirectUrl:"/menu/products"}},{path:"products",loadChildren:()=>import("./chunk-R6SCDZGW.js").then(e=>e.ProductModule),canActivate:[g,u],data:{title:"Products",roles:[l.ProductView],redirectUrl:"/menu/inventory"}},{path:"inventory",loadChildren:()=>import("./chunk-HG4R6CUP.js").then(e=>e.InventoryRoutingModule),canActivate:[g,u],data:{title:"Inventory",roles:[l.InventoryView],redirectUrl:"/menu/price"}},{path:"price",loadChildren:()=>import("./chunk-YTUPRTC2.js").then(e=>e.PriceRoutingModule),canActivate:[g,u],data:{title:"Price",roles:[l.PriceView],redirectUrl:"/menu/Order"}},{path:"order",loadChildren:()=>import("./chunk-DRTRU4DB.js").then(e=>e.routes),canActivate:[g],data:{title:"Order"}},{path:"sync-log",loadChildren:()=>import("./chunk-JOKDW6WD.js").then(e=>e.ReportModule),canActivate:[g,u],data:{title:"Report",roles:[l.Report],redirectUrl:"/menu/Logistic"}},{path:"Logistic",loadChildren:()=>import("./chunk-N26QQL77.js").then(e=>e.LogisticModule),canActivate:[g,u],data:{title:"Logistic",roles:[l.LogisticView],redirectUrl:"/menu/channel"}},{path:"channel",loadChildren:()=>import("./chunk-ODQVHQPB.js").then(e=>e.ChannelsModule),canActivate:[g,u],data:{title:"Marketplace",roles:[l.ChannelView],redirectUrl:"/menu/log"}},{path:"log",loadChildren:()=>import("./chunk-44URQXRM.js").then(e=>e.LogsModule),canActivate:[g,u],data:{title:"Orders",roles:[l.DevView]}},{path:"users",loadChildren:()=>import("./chunk-J7FL3VT4.js").then(e=>e.userRoutes),canActivate:[g,u],data:{title:"Users",roles:[l.UserView],redirectUrl:"/menu/dashboard"}},{path:"json-api",loadChildren:()=>import("./chunk-UNGNRJ2B.js").then(e=>e.routes),canActivate:[g],data:{title:"Json API"}}]}],at=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=C({type:t}),t.\u0275inj=b({imports:[J.forChild(Mt),J]});let e=t;return e})();var St=["selectId"];function It(e,t){if(e&1&&(r(0,"span",3),p(1),d()),e&2){let i=t.item,n=m();c("title",i[n.bindLabel]),s(),M(i[n.bindLabel])}}var ot=(()=>{let t=class t{set items(n){this.ngSelectInfiniteScroll.data=n,this.ngSelectInfiniteScroll.initSelectedValue(this.selected,this.bindValue)}get selected(){return this._selected}set selected(n){this._selected=n,this.ngSelectInfiniteScroll.initSelectedValue(this.selected,this.bindValue)}constructor(){this.placeholder="",this.bindValue="",this.bindLabel="",this.width="100%",this.clearable=!0,this.parent="body",this.disabled=!1,this.optionTitle=!1,this._selected="",this.ngSelectInfiniteScroll=new Z,this.selectedChange=new D,this.selectedLabel=new D,this.onOpen=new D}onOpenSelect(){this.onOpen.emit()}onSelectChange(n){n?(this.selectedChange.emit(n[this.bindValue]),this.selectedLabel.emit(n[this.bindLabel])):(this.selectedChange.emit(null),this.selectedLabel.emit(null))}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=y({type:t,selectors:[["ng-select-infinite"]],viewQuery:function(a,o){if(a&1&&pe(St,7),a&2){let h;ge(h=he())&&(o.ngSelectElement=h.first)}},inputs:{placeholder:"placeholder",bindValue:"bindValue",bindLabel:"bindLabel",width:"width",clearable:"clearable",parent:"parent",disabled:"disabled",optionTitle:"optionTitle",items:"items",selected:"selected"},outputs:{selectedChange:"selectedChange",selectedLabel:"selectedLabel",onOpen:"onOpen"},decls:3,vars:12,consts:[["selectId",""],[3,"clear","scrollToEnd","open","change","appendTo","disabled","virtualScroll","typeahead","items","bindLabel","bindValue","placeholder","ngModel","clearable"],["ng-option-tmp",""],[3,"title"]],template:function(a,o){if(a&1){let h=me();r(0,"ng-select",1,0),T("clear",function(){return x(h),S(o.ngSelectInfiniteScroll.onClear())})("scrollToEnd",function(){return x(h),S(o.ngSelectInfiniteScroll.onScrollToEnd())})("open",function(){return x(h),S(o.onOpenSelect())})("change",function(lt){return x(h),S(o.onSelectChange(lt))}),_(2,It,2,2,"ng-template",2),d()}a&2&&(fe("width",o.width),c("appendTo",o.parent)("disabled",o.disabled)("virtualScroll",!0)("typeahead",o.ngSelectInfiniteScroll.input$)("items",o.ngSelectInfiniteScroll.bufferData)("bindLabel",o.bindLabel)("bindValue",o.bindValue)("placeholder",o.placeholder)("ngModel",o.selected)("clearable",o.clearable))},dependencies:[V,Ae,ze,R,Ie,Te],encapsulation:2});let e=t;return e})(),Z=class{constructor(){this._dataBuffer=[],this._data=[],this._input$=new G,this._destroy$=new G,this._loading=!1,this._bufferSize=50,this.data=[]}onSearch(){this._input$.pipe(X(200),ee(),E(t=>(t&&(t=t.toLowerCase()),this.filterData(t))),K(t=>t!==void 0),te(this._destroy$)).subscribe(t=>{this._dataBuffer=t.slice(0,this._bufferSize)})}onClear(){this._dataBuffer=this._data.slice(0,this._bufferSize)}filterData(t){let i=-1,n;return this._data.filter(o=>(n=JSON.stringify(o).toLowerCase(),i=n.indexOf(t),i!==-1||t==null))}get input$(){return this._input$}get bufferData(){return this._dataBuffer}get loading(){return this._loading}set data(t){this._data=t||[],this._dataBuffer=this._data.slice(0,this._bufferSize),this.onSearch()}initSelectedValue(t,i){if(Le.IsNotEmpty(t)){let n=this._data.filter(a=>a[i].toString().toLowerCase().indexOf(t)!==-1);this._dataBuffer=n.slice(0,this._bufferSize)}}set bufferSize(t){this._bufferSize=t}onScrollToEnd(){this.fetchMore()}fetchMore(){let t=this._dataBuffer.length,i=this._data.slice(t,this._bufferSize+t);this._loading=!0,setTimeout(()=>{this._loading=!1,this._dataBuffer=this._dataBuffer.concat(i)},200)}destroy(){this._destroy$.next(!0),this._destroy$.complete()}};var rt=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=C({type:t}),t.\u0275inj=b({imports:[N,R,We,Ye,Ke,Qe,Ze,Xe,U,Y,ot,V,we]});let e=t;return e})();var Cn=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=C({type:t}),t.\u0275inj=b({providers:[ve],imports:[N,at,Je,U,rt,it,Pe.forChild()]});let e=t;return e})();export{Cn as MenuModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ba as l,Da as b,Ka as v,c as i,ca as d,ra as u}from"./chunk-ZYJ6LAJ3.js";function j(e){e||(e=u(b));let o=new i(t=>{if(e.destroyed){t.next();return}return e.onDestroy(t.next.bind(t))});return t=>t.pipe(d(o))}function M(e){e===void 0&&(e=u(l));let o=e.get(v);return t=>new i(n=>{let f=o.add(),c=!1;function r(){c||(f(),c=!0)}let a=t.subscribe({next:s=>{n.next(s),r()},complete:()=>{n.complete(),r()},error:s=>{n.error(s),r()}});return a.add(()=>{n.unsubscribe(),r()}),a})}export{j as a,M as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-6XT3JSG5.js";import{a as C,b as v}from"./chunk-PS43OK3J.js";import"./chunk-5O33CV4F.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-YJTPDV4D.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-BLHKSSK6.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{E as h,I as i,m as n}from"./chunk-LNJUGHOX.js";import{Gb as c,Hb as s,gc as d,hc as u,ic as f,jc as r,na as m,nb as l}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var b=(()=>{let e=class e{constructor(){this.priceTabs=[{Title:"Single Channel Comparison",Url:"/menu/price/SingleChannel"},{Title:"Multi Channel Comparison",Url:"/menu/price/pos"}]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=c({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(o,g){o&1&&(u(0,"nav",0)(1,"div",1)(2,"div"),r(3,"nav-tab",2),f()()(),r(4,"router-outlet")),o&2&&(l(3),d("Tabs",g.priceTabs))},dependencies:[n,v,C,i,h],encapsulation:2});let t=e;return t})();var M=[{path:"",component:b,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-MEER4VNV.js").then(t=>t.PricePosChannelComponent)},canActivate:[a],data:{title:"Global Price Comparison"}},{path:"SingleChannel",loadComponent(){return import("./chunk-FHZNWINZ.js").then(t=>t.PriceSingleChannelComponent)},canActivate:[a],data:{title:"Price Single Channel Comparison"}}]}],G=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=s({type:e}),e.\u0275inj=m({imports:[n,i.forChild(M)]});let t=e;return t})();export{G as PriceRoutingModule};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as V}from"./chunk-N5AE5WMQ.js";import{I as j,L as F,M as L,t as N,v as B}from"./chunk-3I2V337G.js";import{$b as H,Ad as z,F as u,Fd as a,Gb as O,Ha as v,Hb as I,Ib as x,Jc as p,La as D,Ma as S,Na as w,Qa as C,Zb as m,bc as R,f as l,h as f,kc as n,lc as d,ma as y,mc as P,na as _,nb as M,pa as g,ra as o,sb as E,vc as T,yc as k,za as b,zb as A,zc as Y}from"./chunk-ZYJ6LAJ3.js";var K=["mat-sort-header",""],W=["*"];function Z(e,h){e&1&&(n(0,"div",2),b(),n(1,"svg",3),P(2,"path",4),d()())}var U=new g("MAT_SORT_DEFAULT_OPTIONS"),$=(()=>{class e{_defaultOptions;_initializedStream=new f(1);sortables=new Map;_stateChanges=new l;active;start="asc";get direction(){return this._direction}set direction(t){this._direction=t}_direction="";disableClear;disabled=!1;sortChange=new E;initialized=this._initializedStream;constructor(t){this._defaultOptions=t}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let i=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=G(t.start||this.start,i),s=r.indexOf(this.direction)+1;return s>=r.length&&(s=0),r[s]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||e)(A(U,8))};static \u0275dir=x({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",a],disabled:[2,"matSortDisabled","disabled",a]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[w]})}return e})();function G(e,h){let t=["asc","desc"];return e=="desc"&&t.reverse(),h||t.push(""),t}var c=(()=>{class e{changes=new l;static \u0275fac=function(i){return new(i||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function J(e){return e||new c}var Q={provide:c,deps:[[new D,new S,c]],useFactory:J},gt=(()=>{class e{_intl=o(c);_sort=o($,{optional:!0});_columnDef=o("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=o(z);_focusMonitor=o(N);_elementRef=o(C);_ariaDescriber=o(j,{optional:!0});_renderChanges;_animationsDisabled=F();_recentlyCleared=v(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}_sortActionDescription="Sort";disableClear;constructor(){o(B).load(V);let t=o(U,{optional:!0});this._sort,t?.arrowPosition&&(this.arrowPosition=t?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=u(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let t=this._isSorted(),i=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(t&&!this._isSorted()?i:null)}}_handleKeydown(t){(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=O({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&T("click",function(){return r._toggleOnInteraction()})("keydown",function(q){return r._handleKeydown(q)})("mouseleave",function(){return r._recentlyCleared.set(null)}),i&2&&(m("aria-sort",r._getAriaSortAttribute()),p("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",a],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",a]},exportAs:["matSortHeader"],attrs:K,ngContentSelectors:W,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(i,r){i&1&&(k(),n(0,"div",0)(1,"div",1),Y(2),d(),H(3,Z,3,0,"div",2),d()),i&2&&(p("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationsDisabled),m("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),M(3),R(r._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}
|
|
2
|
+
`],encapsulation:2,changeDetection:0})}return e})(),bt=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=I({type:e});static \u0275inj=_({providers:[Q],imports:[L]})}return e})();export{$ as a,gt as b,bt as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{F as Z}from"./chunk-LNJUGHOX.js";import{Ad as X,B as z,Bb as Y,F as b,Hb as q,Ib as Q,J as F,Na as N,O as L,R as G,T as y,_ as M,aa as j,ea as C,g as d,ma as f,na as K,p as g,pa as E,q as h,qa as c,ra as p,sb as V,v as S,vb as J,x as m,y as I}from"./chunk-ZYJ6LAJ3.js";import{a as l,b as v}from"./chunk-66YHNWRR.js";var A={REMOVE:"remove",SHOW:"show"},ee=(()=>{let t=class t{constructor(){this.strategiesSource=new d({}),this.strategies$=this.strategiesSource.asObservable()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=f({token:t,factory:t.\u0275fac});let r=t;return r})(),B=new E("USE_CONFIGURATION_STORE"),$=(()=>{let t=class t{constructor(e=!1,i){this.isolate=e,this.configurationStore=i,this.strategiesSource=this.isolate?new d({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(e){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(e):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(e),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(e){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(e):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(e),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(e,i){this.strategiesSource.value[e]=i}getStrategy(e){return this.strategiesSource.value[e]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(e){if(this.strategiesSource.value[e]||this.isPredefinedStrategy(e))return e;throw new Error(`No ' ${e} ' strategy is found please define one`)}isPredefinedStrategy(e){return e===A.SHOW||e===A.REMOVE}};t.\u0275fac=function(i){return new(i||t)(c(B),c(ee))},t.\u0275prov=f({token:t,factory:t.\u0275fac});let r=t;return r})();function u(r){return typeof r=="function"}function k(r){if(Object.prototype.toString.call(r)!=="[object Object]")return!1;{let t=Object.getPrototypeOf(r);return t===null||t===Object.prototype}}function ie(r){return!!r&&typeof r=="string"}function T(r){return typeof r=="boolean"}function te(r){return Object.prototype.toString.call(r)==="[object Promise]"}function O(r){return Array.isArray(r)?r.length>0:!!r}function R(r){return ie(r)?[r]:r}var se=(()=>{let t=class t{constructor(){this.permissionsSource=new d({}),this.permissions$=this.permissionsSource.asObservable()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=f({token:t,factory:t.\u0275fac});let r=t;return r})(),W=new E("USE_PERMISSIONS_STORE"),x=(()=>{let t=class t{constructor(e=!1,i){this.isolate=e,this.permissionsStore=i,this.permissionsSource=this.isolate?new d({}):this.permissionsStore.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(e){return!e||Array.isArray(e)&&e.length===0?Promise.resolve(!0):(e=R(e),this.hasArrayPermission(e))}loadPermissions(e,i){let s=e.reduce((o,n)=>this.reducePermission(o,n,i),{});this.permissionsSource.next(s)}addPermission(e,i){if(Array.isArray(e)){let s=e.reduce((o,n)=>this.reducePermission(o,n,i),this.permissionsSource.value);this.permissionsSource.next(s)}else{let s=this.reducePermission(this.permissionsSource.value,e,i);this.permissionsSource.next(s)}}removePermission(e){let i=l({},this.permissionsSource.value);delete i[e],this.permissionsSource.next(i)}getPermission(e){return this.permissionsSource.value[e]}getPermissions(){return this.permissionsSource.value}reducePermission(e,i,s){return s&&u(s)?v(l({},e),{[i]:{name:i,validationFunction:s}}):v(l({},e),{[i]:{name:i}})}hasArrayPermission(e){let i=e.map(s=>{if(this.hasPermissionValidationFunction(s)){let o=this.permissionsSource.value[s].validationFunction,n=l({},this.permissionsSource.value);return h(null).pipe(S(()=>o(s,n)),j(a=>T(a)?h(a):a),F(()=>h(!1)))}return h(!!this.permissionsSource.value[s])});return g(i).pipe(I(),y(s=>s!==!1,!1),S(s=>s!==!1)).toPromise().then(s=>s)}hasPermissionValidationFunction(e){return!!this.permissionsSource.value[e]&&!!this.permissionsSource.value[e].validationFunction&&u(this.permissionsSource.value[e].validationFunction)}};t.\u0275fac=function(i){return new(i||t)(c(W),c(se))},t.\u0275prov=f({token:t,factory:t.\u0275fac});let r=t;return r})(),U=class{constructor(){this.rolesSource=new d({}),this.roles$=this.rolesSource.asObservable()}},H=new E("USE_ROLES_STORE"),D=(()=>{let t=class t{constructor(e=!1,i,s){this.isolate=e,this.rolesStore=i,this.permissionsService=s,this.rolesSource=this.isolate?new d({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(e,i){let s=v(l({},this.rolesSource.value),{[e]:{name:e,validationFunction:i}});this.rolesSource.next(s)}addRoleWithPermissions(e,i){this.permissionsService.addPermission(i),this.addRole(e,i)}addRoles(e){Object.keys(e).forEach((i,s)=>{this.addRole(i,e[i])})}addRolesWithPermissions(e){Object.keys(e).forEach((i,s)=>{this.addRoleWithPermissions(i,e[i])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(e){let i=l({},this.rolesSource.value);delete i[e],this.rolesSource.next(i)}getRoles(){return this.rolesSource.value}getRole(e){return this.rolesSource.value[e]}hasOnlyRoles(e){return!e||Array.isArray(e)&&e.length===0?Promise.resolve(!0):(e=R(e),Promise.all([this.hasRoleKey(e),this.hasRolePermission(this.rolesSource.value,e)]).then(([s,o])=>s||o))}hasRoleKey(e){let i=e.map(s=>{if(!!this.rolesSource.value[s]&&!!this.rolesSource.value[s].validationFunction&&u(this.rolesSource.value[s].validationFunction)&&!te(this.rolesSource.value[s].validationFunction)){let n=this.rolesSource.value[s].validationFunction,a=l({},this.rolesSource.value);return h(null).pipe(S(()=>n(s,a)),j(P=>T(P)?h(P):P),F(()=>h(!1)))}return h(!1)});return g(i).pipe(I(),y(s=>s!==!1,!1),S(s=>s!==!1)).toPromise().then(s=>s)}hasRolePermission(e,i){return g(i).pipe(m(s=>e[s]&&Array.isArray(e[s].validationFunction)?g(e[s].validationFunction).pipe(m(o=>this.permissionsService.hasPermission(o)),G(o=>o===!0)):h(!1)),y(s=>s===!0,!1)).toPromise()}};t.\u0275fac=function(i){return new(i||t)(c(H),c(U),c(x))},t.\u0275prov=f({token:t,factory:t.\u0275fac});let r=t;return r})(),pe=(()=>{let t=class t{constructor(){this.permissionsAuthorized=new V,this.permissionsUnauthorized=new V,this.firstMergeUnusedRun=1,this.permissionsService=p(x),this.configurationService=p($),this.rolesService=p(D),this.viewContainer=p(Y),this.changeDetector=p(X),this.templateRef=p(J)}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions()}ngOnChanges(e){let i=e.ngxPermissionsOnly,s=e.ngxPermissionsExcept;if(i||s){if(i&&i.firstChange||s&&s.firstChange)return;b(this.permissionsService.permissions$,this.rolesService.roles$).pipe(M(this.firstMergeUnusedRun),L(1)).subscribe(()=>{if(O(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(O(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe()}validateExceptOnlyPermissions(){return b(this.permissionsService.permissions$,this.rolesService.roles$).pipe(M(this.firstMergeUnusedRun)).subscribe(()=>{if(O(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(O(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([e,i])=>{if(e||i){this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);return}if(this.ngxPermissionsOnly)throw!1;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)})}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([e,i])=>{e||i?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)})}handleUnauthorisedPermission(e){if(!(T(this.currentAuthorizedState)&&!this.currentAuthorizedState)){if(this.currentAuthorizedState=!1,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());return}this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(e)}}handleAuthorisedPermission(e){if(!(T(this.currentAuthorizedState)&&this.currentAuthorizedState)){if(this.currentAuthorizedState=!0,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());return}this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(e)}}applyStrategyAccordingToStrategyType(e){if(ie(e)){this.applyStrategy(e);return}if(u(e)){this.showTemplateBlockInView(this.templateRef),e(this.templateRef);return}}showTemplateBlockInView(e){this.viewContainer.clear(),e&&(this.viewContainer.createEmbeddedView(e),this.changeDetector.markForCheck())}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return!!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return!!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(e){if(e===A.SHOW){this.showTemplateBlockInView(this.templateRef);return}if(e===A.REMOVE){this.viewContainer.clear();return}let i=this.configurationService.getStrategy(e);this.showTemplateBlockInView(this.templateRef),i(this.templateRef)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=Q({type:t,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},standalone:!1,features:[N]});let r=t;return r})(),re="default";var _=(()=>{let t=class t{constructor(e,i,s){this.permissionsService=e,this.rolesService=i,this.router=s}canActivate(e,i){return this.hasPermissions(e,i)}canActivateChild(e,i){return this.hasPermissions(e,i)}canLoad(e){return this.hasPermissions(e)}canMatch(e){return this.hasPermissions(e)}hasPermissions(e,i){let s=e&&e.data?e.data.permissions:{},o=this.transformPermission(s,e,i);return this.isParameterAvailable(o.except)?this.passingExceptPermissionsValidation(o,e,i):this.isParameterAvailable(o.only)?this.passingOnlyPermissionsValidation(o,e,i):!0}transformPermission(e,i,s){let o=u(e.only)?e.only(i,s):R(e.only),n=u(e.except)?e.except(i,s):R(e.except),a=e.redirectTo;return{only:o,except:n,redirectTo:a}}isParameterAvailable(e){return!!e&&e.length>0}passingExceptPermissionsValidation(e,i,s){if(e.redirectTo&&(u(e.redirectTo)||k(e.redirectTo)&&!this.isRedirectionWithParameters(e.redirectTo))){let o="";return g(e.except).pipe(m(n=>z([this.permissionsService.hasPermission(n),this.rolesService.hasOnlyRoles(n)]).pipe(C(a=>{a.every(w=>w===!1)||(o=n)}))),y(n=>n.some(a=>a===!0),!1),m(n=>o?(this.handleRedirectOfFailedPermission(e,o,i,s),h(!1)):!n&&e.only?this.onlyRedirectCheck(e,i,s):h(!n))).toPromise()}return Promise.all([this.permissionsService.hasPermission(e.except),this.rolesService.hasOnlyRoles(e.except)]).then(([o,n])=>o||n?(e.redirectTo&&this.redirectToAnotherRoute(e.redirectTo,i,s),!1):e.only?this.checkOnlyPermissions(e,i,s):!0)}redirectToAnotherRoute(e,i,s,o){let n=u(e)?e(o,i,s):e;if(this.isRedirectionWithParameters(n)){n.navigationCommands=this.transformNavigationCommands(n.navigationCommands,i,s),n.navigationExtras=this.transformNavigationExtras(n.navigationExtras,i,s),this.router.navigate(n.navigationCommands,n.navigationExtras);return}Array.isArray(n)?this.router.navigate(n):this.router.navigate([n])}isRedirectionWithParameters(e){return k(e)&&(!!e.navigationCommands||!!e.navigationExtras)}transformNavigationCommands(e,i,s){return u(e)?e(i,s):e}transformNavigationExtras(e,i,s){return u(e)?e(i,s):e}onlyRedirectCheck(e,i,s){let o="";return g(e.only).pipe(m(n=>z([this.permissionsService.hasPermission(n),this.rolesService.hasOnlyRoles(n)]).pipe(C(a=>{a.every(w=>w===!1)&&(o=n)}))),y(n=>u(e.redirectTo)?n.some(a=>a===!0):n.every(a=>a===!1),!1),m(n=>u(e.redirectTo)?n?h(!0):(this.handleRedirectOfFailedPermission(e,o,i,s),h(!1)):(o&&this.handleRedirectOfFailedPermission(e,o,i,s),h(!n)))).toPromise()}handleRedirectOfFailedPermission(e,i,s,o){this.isFailedPermissionPropertyOfRedirectTo(e,i)?this.redirectToAnotherRoute(e.redirectTo[i],s,o,i):u(e.redirectTo)?this.redirectToAnotherRoute(e.redirectTo,s,o,i):this.redirectToAnotherRoute(e.redirectTo[re],s,o,i)}isFailedPermissionPropertyOfRedirectTo(e,i){return!!e.redirectTo&&e.redirectTo[i]}checkOnlyPermissions(e,i,s){let o=l({},e);return Promise.all([this.permissionsService.hasPermission(o.only),this.rolesService.hasOnlyRoles(o.only)]).then(([n,a])=>n||a?!0:(o.redirectTo&&this.redirectToAnotherRoute(o.redirectTo,i,s),!1))}passingOnlyPermissionsValidation(e,i,s){return u(e.redirectTo)||k(e.redirectTo)&&!this.isRedirectionWithParameters(e.redirectTo)?this.onlyRedirectCheck(e,i,s):this.checkOnlyPermissions(e,i,s)}};t.\u0275fac=function(i){return new(i||t)(c(x),c(D),c(Z))},t.\u0275prov=f({token:t,factory:t.\u0275fac});let r=t;return r})();var ye=(()=>{let t=class t{static forRoot(e={}){return{ngModule:t,providers:[se,U,ee,x,_,D,$,{provide:W,useValue:e.permissionsIsolate},{provide:H,useValue:e.rolesIsolate},{provide:B,useValue:e.configurationIsolate}]}}static forChild(e={}){return{ngModule:t,providers:[{provide:W,useValue:e.permissionsIsolate},{provide:H,useValue:e.rolesIsolate},{provide:B,useValue:e.configurationIsolate},$,x,D,_]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=q({type:t}),t.\u0275inj=K({});let r=t;return r})();export{x as a,pe as b,ye as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as Ot}from"./chunk-JUO4RKIH.js";import{a as Pt}from"./chunk-NECWUPZQ.js";import{a as Te,b as Ct,c as bt,d as Ie,e as Se}from"./chunk-P6TDS7UT.js";import"./chunk-56BH43Y7.js";import{a as _t,b as ye,c as ht,d as ve,f as xt,g as Tt,h as Ae,i as It,o as ce}from"./chunk-UW3UCIOY.js";import{b as Ft}from"./chunk-222IOSGU.js";import{a as yt}from"./chunk-GLMM3CVD.js";import"./chunk-A7YRNCQP.js";import{b as vt,d as Fe}from"./chunk-OROFEDQN.js";import"./chunk-PZB3GQWT.js";import"./chunk-B4QCGMST.js";import{b as At}from"./chunk-3WRXJBHF.js";import"./chunk-UH5C5HXK.js";import{a as kt,b as Et}from"./chunk-TDCMI7YC.js";import{a as St}from"./chunk-63I3I3MX.js";import"./chunk-3LU2SFN4.js";import{a as gt,b as xe}from"./chunk-GV3NEJJ6.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-ONU4O7N2.js";import"./chunk-3RK6DDJD.js";import{a as be}from"./chunk-5YBWBAQS.js";import{a as dt,b as ut,f as ft}from"./chunk-37NOSLQL.js";import"./chunk-ZSUWHVKX.js";import"./chunk-N5AE5WMQ.js";import"./chunk-J2BPOHP6.js";import{a as mt}from"./chunk-I3IA6MAD.js";import"./chunk-34UF36YY.js";import{d as H,e as W}from"./chunk-6KWG6O5L.js";import"./chunk-NWB7EVME.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-5O33CV4F.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-YJTPDV4D.js";import{b as at,e as le}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{b as we,c as h}from"./chunk-BLHKSSK6.js";import{m as st,n as pt}from"./chunk-UI5ITL7Z.js";import{A as ae,B as j,a as et,c as re,e as de,h as Y,i as K,l as Ce,m as tt,n as J,q,r as it,s as z,t as nt,u as ot,v as rt,z as Q}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{v as lt,w as ct}from"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{f as E,i as P,m as x}from"./chunk-LNJUGHOX.js";import{$ as We,$b as F,Ad as Ze,Gb as v,Hb as _e,Hc as he,Ic as Ne,K as je,M as He,Mb as T,Mc as _,Na as D,Nc as oe,Oc as ee,Qc as Ke,Rc as Je,Sc as qe,Wc as ze,Z as ne,Zb as Xe,Zc as k,_c as ge,bc as A,ca as me,cc as R,ea as L,ec as $,f as ue,fc as G,g as Ye,gc as p,hc as m,hd as I,ic as l,id as S,jc as u,ma as N,na as fe,nb as s,nc as V,oc as U,qc as O,ra as f,sb as w,sd as Qe,td as De,v as B,vc as y,xa as C,xc as c,ya as b,zb as X}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var Z=(function(e){return e[e.SINGLE_DROP_DOWN=1]="SINGLE_DROP_DOWN",e[e.SINGLE_COMBO_BOX=2]="SINGLE_COMBO_BOX",e[e.FREE_TEXT_FILED=3]="FREE_TEXT_FILED",e[e.MULTI_DROP_DOWN=4]="MULTI_DROP_DOWN",e[e.MULTI_COMBO_BOX=5]="MULTI_COMBO_BOX",e})(Z||{});var se=(function(e){return e[e.FORMAT_NORMAL=1]="FORMAT_NORMAL",e[e.FORMAT_QUANTITATIVE_WITH_UNIT=2]="FORMAT_QUANTITATIVE_WITH_UNIT",e})(se||{});var pe=(function(e){return e[e.VALIDATOR_NO_VALIDATE_TYPE=0]="VALIDATOR_NO_VALIDATE_TYPE",e[e.VALIDATOR_INT_TYPE=1]="VALIDATOR_INT_TYPE",e[e.VALIDATOR_STRING_TYPE=2]="VALIDATOR_STRING_TYPE",e[e.VALIDATOR_FLOAT_TYPE=3]="VALIDATOR_FLOAT_TYPE",e[e.VALIDATOR_DATE_TYPE=4]="VALIDATOR_DATE_TYPE",e})(pe||{});var Ve=class extends Ce{setValue(o,i){if(o instanceof Date){let n=Math.floor(o.getTime()/1e3);super.setValue(n,i)}else super.setValue(o,i)}},Ue=(()=>{let o=class o{constructor(){this.shopeeUploadService=f(Te),this.formBuilder=f(Q)}getAttributes(n){return this.shopeeUploadService.getAttributes(n.channelId,n.categoryId).pipe(B(t=>this.setLabelToIndonesian(t)))}setLabelToIndonesian(n=[]){let t,a;return n=n.map(r=>(t=r?.multi_lang?.find(d=>d.language=="id"),r.attribute_value_list=r?.attribute_value_list?.map(d=>(a=d?.multi_lang?.find(g=>g.language=="id"),d.name=a?.value,d)),r.name=t?.value?t?.value:r.name,r)),n}createFormGroup(n){let t=this.formBuilder.group({}),a=[];return n.forEach(r=>{if(a=[],r.mandatory&&a.push(de.required),r?.attribute_info?.format_type==se.FORMAT_QUANTITATIVE_WITH_UNIT&&r?.attribute_info?.input_type==Z.FREE_TEXT_FILED){let d=this.formBuilder.group({unit:new Ce(null),value:new Ce(null,a)});t.addControl(JSON.stringify(r.attribute_id),d)}else r?.attribute_info?.input_type==Z.FREE_TEXT_FILED&&r?.attribute_info?.input_validation_type==pe.VALIDATOR_DATE_TYPE?t.addControl(JSON.stringify(r.attribute_id),new Ve(null,a)):t.addControl(JSON.stringify(r.attribute_id),this.formBuilder.control(null,a))}),t}getFilteredAttributes(n,t){let a=JSON.parse(JSON.stringify(n)),r=Object.keys(t),d=a.filter(g=>r.findIndex(Me=>parseInt(Me)==g.attribute_id||g.mandatory)!=-1);return d=this.filterSelectedAttributes(d,t),d}filterSelectedAttributes(n,t){return n.map(r=>{switch(r.attribute_info.input_type){case Z.MULTI_COMBO_BOX:h.IsNotEmpty(t[r.attribute_id])?r.attribute_value_list=r.attribute_value_list.filter(d=>t[r.attribute_id]?.findIndex(g=>g==d.value_id)!=-1):r.attribute_value_list=[];break;case Z.FREE_TEXT_FILED:r.attribute_info.format_type==se.FORMAT_QUANTITATIVE_WITH_UNIT?r.attribute_value_list=this.setSelectedQuantitativeAttr(t[r.attribute_id]?.value,t[r.attribute_id]?.unit):r.attribute_info.input_validation_type==pe.VALIDATOR_DATE_TYPE?r.attribute_value_list=this.setSelectedDateAttr(t[r.attribute_id]):r.attribute_value_list=this.setSelectedQuantitativeAttr(t[r.attribute_id]);break;default:r.attribute_value_list=r.attribute_value_list.filter(d=>d.value_id==t[r.attribute_id])}return r}).filter(r=>r?.attribute_value_list?.length>0)}setSelectedQuantitativeAttr(n,t){let a=[];if(h.IsNotEmpty(n)){let r={value_id:0,original_value_name:JSON.stringify(n)};h.IsNotEmpty(t)&&(r.value_unit=t),a=[r]}return a}setSelectedDateAttr(n){let t=[];return h.IsNotEmpty(n)&&(t=[{value_id:0,original_value_name:JSON.stringify(n)}]),t}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=N({token:o,factory:o.\u0275fac});let e=o;return e})();var ke=(()=>{let o=class o{constructor(){this._calendarHeaderConfig=new Ye({hideBtnClear:!1,hideBtnToday:!1}),this.calendarConfig=this._calendarHeaderConfig.value}setHeaderConfig(n){this._calendarHeaderConfig.next(n)}getHeaderConfig$(){return this._calendarHeaderConfig.asObservable()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=N({token:o,factory:o.\u0275fac,providedIn:"root"});let e=o;return e})();var Yt=["class","component ts"];function jt(e,o){if(e&1){let i=O();m(0,"button",3),y("click",function(){C(i);let t=c(2);return b(t.todayClicked())}),u(1,"i",4),l()}}function Ht(e,o){if(e&1){let i=O();m(0,"button",5),y("click",function(){C(i);let t=c(2);return b(t.clearClicked())}),u(1,"i",6),l()}}function Wt(e,o){if(e&1&&(V(0),T(1,jt,2,0,"button",1)(2,Ht,2,0,"button",2),U()),e&2){let i=o.ngIf;s(),p("ngIf",!i.hideBtnToday),s(),p("ngIf",!i.hideBtnClear)}}var Nt=(()=>{let o=class o{constructor(n,t,a,r,d){this._datePicker=n,this._calendar=t,this._dateAdapter=a,this.calendarService=r,this._destroyed=new ue,t.stateChanges.pipe(me(this._destroyed)).subscribe(g=>d.markForCheck()),this.calendarConfig$=this.calendarService.getHeaderConfig$()}todayClicked(){this._calendar.activeDate=this._dateAdapter.today(),this._datePicker.select(this._dateAdapter.today()),this._datePicker.close()}clearClicked(){this._datePicker.select(null),this._datePicker.close()}ngOnChanges(n){this._calendar.ngOnChanges(n)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}};o.\u0275fac=function(t){return new(t||o)(X(Ae),X(Tt),X(ye),X(ke),X(Ze))},o.\u0275cmp=v({type:o,selectors:[["POS-DatepickerHeader",8,"component","ts"]],standalone:!1,features:[D],attrs:Yt,decls:3,vars:3,consts:[[4,"ngIf"],["mat-icon-button","","title","Today",3,"click",4,"ngIf"],["mat-icon-button","","title","Clear",3,"click",4,"ngIf"],["mat-icon-button","","title","Today",3,"click"],[1,"far","fa-clock",2,"font-size","18px"],["mat-icon-button","","title","Clear",3,"click"],[1,"far","fa-xmark-circle",2,"font-size","18px"]],template:function(t,a){t&1&&(m(0,"mat-calendar-header"),T(1,Wt,3,2,"ng-container",0),I(2,"async"),l()),t&2&&(s(),p("ngIf",S(2,1,a.calendarConfig$)))},dependencies:[E,vt,xt,P],encapsulation:2});let e=o;return e})(),Dt=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=_e({type:o}),o.\u0275inj=fe({providers:[ce],imports:[x,Fe,ve,ce,be,xe]});let e=o;return e})();function Xt(e,o){if(e&1&&(m(0,"mat-label",7)(1,"span"),_(2),l()()),e&2){let i=c();p("show",i.placeholder),s(2),oe(i.placeholder)}}var Kt={parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"dddd, D MMMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"dddd, D MMMM YYYY",monthYearA11yLabel:"MMMM YYYY"}},wt=(()=>{let o=class o{set hidelClearBtn(n){this.calendarService.setHeaderConfig({hideBtnClear:n,hideBtnToday:this.calendarService.calendarConfig.hideBtnToday})}change(n){let t=null;n&&(t=n.toDate(),t.setHours(0,0,0,0)),this.onChange(t),this.dateChange.emit(t)}constructor(n){this.calendarService=n,this.headerComponent=Nt,this.appearance="outline",this.isFloatingLabel=!0,this.disabled=!1,this.readOnly=!1,this.dateChange=new w,this.minDate=h.MinDate,this.onChange=t=>{},this.displayToggle=!0}writeValue(n){this.date=n}registerOnChange(n){this.onChange=n}registerOnTouched(n){}setDisabledState(n){this.disabled=n}onOpenDatepicker(){let n=document.getElementById("dropdown-filter");if(n){var t=new bootstrap.Dropdown(n);t&&(t._config.autoClose="inside")}}onCloseDatepicker(){let n=document.getElementById("dropdown-filter");if(n){var t=new bootstrap.Dropdown(n);t&&(t._config.autoClose="outside")}}ngOnDestroy(){this.calendarService.setHeaderConfig({hideBtnClear:!1,hideBtnToday:!1})}};o.\u0275fac=function(t){return new(t||o)(X(ke))},o.\u0275cmp=v({type:o,selectors:[["datepicker"]],inputs:{data_cy:"data_cy",placeholder:"placeholder",displayToggle:"displayToggle",appearance:"appearance",width:"width",isFloatingLabel:"isFloatingLabel",date:"date",disabled:"disabled",readOnly:"readOnly",minDateValidation:"minDateValidation",maxDateValidation:"maxDateValidation",hidelClearBtn:"hidelClearBtn"},outputs:{dateChange:"dateChange"},standalone:!1,features:[k([{provide:ye,useClass:Pt,deps:[_t]},{provide:ht,useValue:Kt},{provide:et,multi:!0,useExisting:o}])],decls:7,vars:17,consts:[["picker1",""],[1,"datepicker",3,"disabled","appearance"],[3,"show",4,"ngIf"],["matInput","",3,"dateChange","click","matDatepicker","min","max","placeholder","value","disabled","readonly"],["matSuffix","","aria-hidden","true",1,"datepicker-toggle-icon",3,"click"],[1,"fa-regular","fa-angle-down"],[3,"opened","closed","calendarHeaderComponent"],[3,"show"]],template:function(t,a){if(t&1){let r=O();m(0,"mat-form-field",1),T(1,Xt,3,2,"mat-label",2),m(2,"input",3),y("dateChange",function(g){return C(r),b(a.change(g.value))})("click",function(){C(r);let g=he(6);return b(g.open())}),l(),m(3,"span",4),y("click",function(){C(r);let g=he(6);return b(g.open())}),u(4,"i",5),l(),m(5,"mat-datepicker",6,0),y("opened",function(){return C(r),b(a.onOpenDatepicker())})("closed",function(){return C(r),b(a.onCloseDatepicker())}),l()()}if(t&2){let r=he(6);Ne("width",a.width||100,"%"),p("disabled",a.disabled)("appearance",a.appearance),s(),p("ngIf",a.isFloatingLabel&&a.placeholder),s(),p("placeholder",ze(a.placeholder||""))("matDatepicker",r)("min",a.minDateValidation)("max",a.maxDateValidation)("value",a.date==a.minDate?null:a.date)("disabled",a.disabled)("readonly",a.readOnly),Xe("data-cy",a.data_cy),s(),Ne("display",a.displayToggle?"unset":"none"),s(2),p("calendarHeaderComponent",a.headerComponent)}},dependencies:[E,Ae,It,ft,dt,ut,gt],styles:[`.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline{background-color:#e9ecef!important;opacity:1!important}.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline input{color:#00000061!important}.datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{min-height:3px;padding-top:18px;padding-bottom:13px}.datepicker .mat-mdc-icon-button.mat-mdc-button-base{padding:0}.datepicker .mat-mdc-form-field-subscript-wrapper{display:none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{padding:0!important}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{top:28px!important;font-size:16px;color:#9da2a6}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:23px!important;font-size:.875rem;color:#ccc}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#fff}.datepicker .datepicker-toggle-icon{width:28px;height:36px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;margin-right:6px}.datepicker .datepicker-toggle-icon i{font-family:"Font Awesome 6 Pro","Font Awesome 6 Free","Font Awesome 5 Pro","Font Awesome 5 Free";font-weight:400;font-size:16px;line-height:1;color:#6b7280}
|
|
2
|
+
`],encapsulation:2});let e=o;return e})(),Vt=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=_e({type:o}),o.\u0275inj=fe({providers:[ce],imports:[x,Fe,ve,ce,be,xe,Dt,Ft]});let e=o;return e})();var Be=()=>[];function qt(e,o){e&1&&(m(0,"span",5),_(1,"*"),l())}function zt(e,o){if(e&1&&u(0,"ng-select",6),e&2){let i=c().$implicit;p("multiple",!0)("formControlName",i.attribute_id)("items",i.attribute_value_list?i.attribute_value_list:ge(4,Be))("placeholder","Pilih "+(i==null?null:i.name))}}function Qt(e,o){if(e&1&&u(0,"input",8),e&2){let i=c(2).$implicit;p("formControlName",i.attribute_id)("placeholder","Isi "+(i==null?null:i.name))}}function Zt(e,o){if(e&1&&(m(0,"option",15),_(1),l()),e&2){let i=o.$implicit;p("value",i),s(),oe(i)}}function ei(e,o){if(e&1&&(m(0,"div",10),u(1,"input",12),m(2,"select",13)(3,"option",14),_(4,"Unit"),l(),$(5,Zt,2,2,"option",15,R),l()()),e&2){let i=c(3).$implicit;p("formGroupName",i.attribute_id),s(),p("placeholder","Isi "+(i==null?null:i.name)),s(2),p("value",null),s(2),G(i==null||i.attribute_info==null?null:i.attribute_info.attribute_unit_list)}}function ti(e,o){if(e&1&&u(0,"input",11),e&2){let i=c(3).$implicit;p("formControlName",i.attribute_id)("placeholder","Isi "+(i==null?null:i.name))}}function ii(e,o){if(e&1&&F(0,ei,7,3,"div",10)(1,ti,1,2,"input",11),e&2){let i=c(2).$implicit,n=c(2);A((i==null||i.attribute_info==null?null:i.attribute_info.format_type)==n.formatType.FORMAT_QUANTITATIVE_WITH_UNIT?0:1)}}function ni(e,o){if(e&1&&u(0,"datepicker",9),e&2){let i=c(2).$implicit;p("formControlName",i.attribute_id)}}function oi(e,o){if(e&1&&F(0,Qt,1,2,"input",8)(1,ii,2,1)(2,ni,1,1,"datepicker",9),e&2){let i,n=c().$implicit,t=c(2);A((i=n==null||n.attribute_info==null?null:n.attribute_info.input_validation_type)===t.validationType.VALIDATOR_STRING_TYPE?0:i===t.validationType.VALIDATOR_FLOAT_TYPE?1:i===t.validationType.VALIDATOR_DATE_TYPE?2:-1)}}function ri(e,o){if(e&1&&u(0,"ng-select",7),e&2){let i=c().$implicit;p("formControlName",i.attribute_id)("items",i.attribute_value_list?i.attribute_value_list:ge(3,Be))("placeholder","Pilih "+(i==null?null:i.name))}}function ai(e,o){if(e&1&&u(0,"ng-select",7),e&2){let i=c().$implicit;p("formControlName",i.attribute_id)("items",i.attribute_value_list?i.attribute_value_list:ge(3,Be))("placeholder","Pilih "+(i==null?null:i.name))}}function li(e,o){if(e&1&&(m(0,"div",3)(1,"div",4),F(2,qt,2,0,"span",5),m(3,"span"),_(4),l()(),F(5,zt,1,5,"ng-select",6)(6,oi,3,1)(7,ri,1,4,"ng-select",7)(8,ai,1,4,"ng-select",7),l()),e&2){let i,n=o.$implicit,t=c(2);s(2),A(n.mandatory?2:-1),s(2),ee(" ",n==null?null:n.name," "),s(),A((i=n==null||n.attribute_info==null?null:n.attribute_info.input_type)===t.inputType.MULTI_COMBO_BOX?5:i===t.inputType.FREE_TEXT_FILED?6:i===t.inputType.SINGLE_COMBO_BOX?7:8)}}function ci(e,o){if(e&1&&(V(0),m(1,"form",1)(2,"div",2),$(3,li,9,3,"div",3,R),l()(),U()),e&2){let i=o.ngIf,n=c();s(),p("formGroup",n.form),s(2),G(i)}}var Ut=(()=>{let o=class o{constructor(){this.formCategoryService=f(Ue),this.attributesChanges=new w,this.inputType=Z,this.formatType=se,this.validationType=pe}ngOnChanges(){h.IsNotEmpty(this.categoryId)&&h.IsNotEmpty(this.channelId)&&(this.attributes$=this.formCategoryService.getAttributes({categoryId:this.categoryId,channelId:this.channelId,channelType:this.channelType}).pipe(L(n=>{this.form=this.formCategoryService.createFormGroup(n),this.listenToFormChange(n)}),ne(1)))}listenToFormChange(n){let t=[];this.formSubscription=this.form.valueChanges.subscribe(a=>{t=this.formCategoryService.getFilteredAttributes(n,a),this.attributesChanges.emit(t)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["shopee-attribute-form"]],inputs:{channelType:"channelType",categoryId:"categoryId",channelId:"channelId",channelProductUpload:"channelProductUpload"},outputs:{attributesChanges:"attributesChanges"},features:[k([Ue]),D],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],[1,"text-danger"],["bindLabel","name","bindValue","value_id",3,"multiple","formControlName","items","placeholder"],["bindLabel","name","bindValue","value_id",3,"formControlName","items","placeholder"],["type","text",1,"form-control",3,"formControlName","placeholder"],[1,"attribute-datepicker",3,"formControlName"],[1,"d-flex","align-items-center",3,"formGroupName"],["type","text","autoNum","",1,"form-control",3,"formControlName","placeholder"],["formControlName","value","type","text","autoNum","",1,"form-control","me-1",2,"width","200px",3,"placeholder"],["name","unit","id","unit","formControlName","unit",1,"form-control"],["disabled","","selected","",3,"value"],[3,"value"]],template:function(t,a){t&1&&(T(0,ci,5,1,"ng-container",0),I(1,"async")),t&2&&p("ngIf",S(1,1,a.attributes$))},dependencies:[x,E,W,H,j,J,ot,rt,re,nt,Y,K,q,z,it,St,Vt,wt,P],styles:["input[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{height:36px;border-radius:4px} datepicker.attribute-datepicker>mat-form-field.mat-mdc-form-field>.mat-mdc-text-field-wrapper{height:36px} datepicker.attribute-datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:11px!important;padding-bottom:11px!important;height:36px;min-height:36px!important} datepicker.attribute-datepicker mat-datepicker-toggle>button.mat-mdc-icon-button.mat-mdc-button-base{--mat-icon-button-state-layer-size: 36px}"]});let e=o;return e})();var ie=(function(e){return e.TIKTOK_SHOP="TIKTOK_SHOP",e.TOKOPEDIA="TOKOPEDIA",e})(ie||{});var Le=(()=>{let o=class o{constructor(){this.httpService=f(le),this.formBuilder=f(Q),this.uploadProductService=f(Se)}getAttributes(n,t){return this.httpService.get("api/product/tiktok/GetAttributes",[{key:"ID",value:n},{key:"CategoryID",value:t}]).pipe(je(r=>this.uploadProductService.selectedProduct$.pipe(B(d=>(r=this.mappingAttributeSalesProperty(r,d),r)))))}mappingAttributeSalesProperty(n,t){let a=0;return n.filter(r=>(r.type=="SALES_PROPERTY"&&(a+=1),a>1?(a=0,!1):!0)).map(r=>(r.type=="SALES_PROPERTY"&&(r.name="Jenis Variant",r.is_multiple_selection=!1,r.is_required=this.isProductHasMoreVariant(t),r.values=[{id:"Warna",name:"Warna"},{id:"Ukuran",name:"Ukuran"}]),r))}isProductHasMoreVariant(n){let t=!1,a=[];return n.forEach(r=>{r.Variants&&a.push(r.Variants.length)}),t=a.some(r=>r>1),t}createFormGroup(n){let t=this.formBuilder.group({}),a=[];return n.forEach(r=>{a=[],r.is_required&&a.push(de.required),t.addControl(r.id,this.formBuilder.control(null,a))}),t.addControl("listingPlatform",this.formBuilder.control([ie.TIKTOK_SHOP,ie.TOKOPEDIA],[de.required])),t}getFilteredAttributes(n,t){let a=JSON.parse(JSON.stringify(n)),r=Object.keys(t),d=a.filter(g=>r.findIndex(Me=>parseInt(Me)==g.id)!=-1);return d=this.filterSelectedAttributes(d,t),d}filterSelectedAttributes(n,t){return n.map(r=>(h.IsNotEmpty(r.values)?r.is_multiple_selection?r.values=r.values.filter(d=>t[r.id]?.includes(d.id)):r.values=r.values.filter(d=>d.id==t[r.id]):t[r.id]&&(r.values=[{id:null,name:t[r.id]}]),r)).filter(r=>r?.values?.length>0)}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=N({token:o,factory:o.\u0275fac});let e=o;return e})();function si(e,o){e&1&&(m(0,"small",6),_(1," Platform is required "),l())}function pi(e,o){e&1&&(m(0,"span",6),_(1,"*"),l())}function mi(e,o){if(e&1&&u(0,"ng-select",7),e&2){let i=c().$implicit;p("multiple",!0)("formControlName",i.id)("items",i.values)("placeholder","Pilih "+(i==null?null:i.name))}}function di(e,o){if(e&1&&u(0,"ng-select",8),e&2){let i=c().$implicit;p("formControlName",i.id)("items",i.values)("placeholder","Pilih "+(i==null?null:i.name))}}function ui(e,o){if(e&1&&u(0,"input",9),e&2){let i=c().$implicit;p("formControlName",i.id)("placeholder",i==null?null:i.name)}}function fi(e,o){if(e&1&&(m(0,"small",6),_(1),l()),e&2){let i=c().$implicit;s(),ee(" ",i==null?null:i.name," is mandatory ")}}function _i(e,o){if(e&1&&(m(0,"div",3)(1,"div",4),F(2,pi,2,0,"span",6),m(3,"span"),_(4),l()(),F(5,mi,1,4,"ng-select",7)(6,di,1,3,"ng-select",8)(7,ui,1,2,"input",9),F(8,fi,2,1,"small",6),l()),e&2){let i=o.$implicit;s(2),A(i.is_required?2:-1),s(2),ee(" ",i==null?null:i.name," "),s(),A(i.is_multiple_selection?5:i.values!==null&&i.values.length>0?6:7),s(3),A(i.is_required?8:-1)}}function hi(e,o){if(e&1&&(V(0),m(1,"form",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"span"),_(6," Platform Options"),l()(),u(7,"ng-select",5),F(8,si,2,0,"small",6),l(),$(9,_i,9,4,"div",3,R),l()(),U()),e&2){let i,n=o.ngIf,t=c();s(),p("formGroup",t.form),s(6),p("multiple",!0)("items",t.platformOptions)("clearable",!1),s(),A(!(t.form==null||(i=t.form.get("listingPlatform").errors)==null)&&i.required?8:-1),s(),G(n)}}var Bt=(()=>{let o=class o{constructor(){this.tiktokAttributeFormService=f(Le),this.platformChange=Qe({alias:"onPlatformChanges"}),this.formSubscription=new ue,this.attributesChanges=new w,this.platformOptions=[{label:"TikTok Shop",value:ie.TIKTOK_SHOP},{label:"Tokopedia",value:ie.TOKOPEDIA}]}ngOnChanges(){h.IsNotEmpty(this.categoryId)&&h.IsNotEmpty(this.channelId)&&(this.attributes$=this.tiktokAttributeFormService.getAttributes(this.channelId,this.categoryId).pipe(B(n=>n.filter(t=>!(t.type=="PRODUCT_PROPERTY"&&(h.IsEmpty(t.values)||t.values?.length==0)&&t.is_customizable==!1))),L(n=>{this.form=this.tiktokAttributeFormService.createFormGroup(n),this.listenToFormChange(n)}),ne(1)))}listenToFormChange(n){let t=[];this.form.valueChanges.pipe(me(this.formSubscription)).subscribe(a=>{delete a.listingPlatform,t=this.tiktokAttributeFormService.getFilteredAttributes(n,a),this.attributesChanges.emit(t)}),this.form.get("listingPlatform").valueChanges.pipe(We(this.form.get("listingPlatform").value),me(this.formSubscription)).subscribe(a=>{this.platformChange.emit(a)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["tiktok-attribute-form"]],inputs:{channelId:"channelId",categoryId:"categoryId"},outputs:{platformChange:"onPlatformChanges",attributesChanges:"attributesChanges"},features:[k([Le]),D],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],["formControlName","listingPlatform","bindLabel","label","bindValue","value","placeholder","Platform Options",3,"multiple","items","clearable"],[1,"text-danger"],["bindLabel","name","bindValue","id",3,"multiple","formControlName","items","placeholder"],["bindLabel","name","bindValue","id",3,"formControlName","items","placeholder"],["type","text",1,"form-control",3,"formControlName","placeholder"]],template:function(t,a){t&1&&(T(0,hi,11,5,"ng-container",0),I(1,"async")),t&2&&p("ngIf",S(1,1,a.attributes$))},dependencies:[x,E,W,H,j,J,re,Y,K,q,z,ae,P],encapsulation:2});let e=o;return e})();var Re=(()=>{let o=class o{constructor(){this.woocommerceUploadService=f(Ie)}getAttributes(n,t){return this.woocommerceUploadService.getAttributes(n,t).pipe(B(a=>a.map(r=>({key:r.name,label:r.name}))))}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=N({token:o,factory:o.\u0275fac});let e=o;return e})();var Lt=(()=>{let o=class o{constructor(){this.wooAttributeFormService=f(Re),this.channelId=De(),this.categoryId=De(),this.attributesChanges=new w}ngOnChanges(){h.IsNotEmpty(this.categoryId())&&h.IsNotEmpty(this.channelId())&&(this.attributes$=this.wooAttributeFormService.getAttributes(this.channelId(),this.categoryId()))}onSelectAttribute(n){this.attributesChanges.emit([n.key])}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["wooocommerce-attribute-form"]],inputs:{channelId:[1,"channelId"],categoryId:[1,"categoryId"]},outputs:{attributesChanges:"attributesChanges"},features:[k([Re]),D],decls:6,vars:3,consts:[[1,"row"],[1,"col-6"],[1,"mb-1"],["bindLabel","label","bindValue","id","placeholder","Pilih Atribut",3,"change","items"]],template:function(t,a){t&1&&(m(0,"div",0)(1,"div",1)(2,"div",2),_(3,"Atribut"),l(),m(4,"ng-select",3),I(5,"async"),y("change",function(d){return a.onSelectAttribute(d)}),l()()()),t&2&&(s(4),p("items",S(5,1,a.attributes$)))},dependencies:[x,ae,W,H,j,P],encapsulation:2});let e=o;return e})();var $e=(()=>{let o=class o{constructor(){this.httpService=f(le),this.formBuilder=f(Q)}getAttributes(n,t){return this.httpService.get("api/product/tokopedia/GetAttributes",[{key:"ID",value:n},{key:"CategoryID",value:t}]).pipe(B(r=>r))}createFormGroup(n){let t=this.formBuilder.group({});return n.forEach(a=>{t.addControl(a.variant,this.formBuilder.control(null))}),t}convertAttributes(n={}){return Object.values(n).filter(a=>a!==null).map(a=>JSON.stringify(a))}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=N({token:o,factory:o.\u0275fac});let e=o;return e})();function gi(e,o){if(e&1&&(m(0,"div",3)(1,"div",4),_(2),l(),u(3,"ng-select",5),l()),e&2){let i=o.$implicit;s(2),ee(" ",i==null?null:i.variant," "),s(),p("formControlName",i.variant)("items",i.values)("placeholder","Pilih "+(i==null?null:i.variant))}}function Ci(e,o){if(e&1&&(V(0),m(1,"form",1)(2,"div",2),$(3,gi,4,4,"div",3,R),l()(),U()),e&2){let i=o.ngIf,n=c();s(),p("formGroup",n.form),s(2),G(i)}}var Rt=(()=>{let o=class o{constructor(){this.tokpedAttrFormService=f($e),this.attributesChanges=new w}ngOnInit(){}ngOnChanges(n){h.IsNotEmpty(this.categoryId)&&h.IsNotEmpty(this.channelId)&&(this.attributes$=this.tokpedAttrFormService.getAttributes(this.channelId,this.categoryId).pipe(L(t=>{this.form=this.tokpedAttrFormService.createFormGroup(t),this.listenToFormChange()})))}listenToFormChange(){let n=[];this.formSubscription=this.form.valueChanges.subscribe(t=>{n=this.tokpedAttrFormService.convertAttributes(t),this.attributesChanges.emit(n)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["tokopedia-attribute-form"]],inputs:{channelId:"channelId",categoryId:"categoryId"},outputs:{attributesChanges:"attributesChanges"},features:[k([$e]),D],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],["bindLabel","name","bindValue","id",3,"formControlName","items","placeholder"]],template:function(t,a){t&1&&(T(0,Ci,5,1,"ng-container",0),I(1,"async")),t&2&&p("ngIf",S(1,1,a.attributes$))},dependencies:[x,E,W,H,j,J,Y,K,q,z,P],encapsulation:2});let e=o;return e})();var Ge=(()=>{let o=class o{constructor(){this.httpService=f(le),this.formBuilder=f(Q)}getAttributes(n){return this.httpService.get("api/product/shopify/GetAttributes",[{key:"ID",value:n}]).pipe(L(a=>(a.Options.StatusOptions=a.Options.Status.map(r=>({id:r,name:r})),a)))}createFormGroup(n){let t=this.formBuilder.group({});return Object.keys(n.Attribute).forEach(r=>{t.addControl(r,this.formBuilder.control(null))}),t}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=N({token:o,factory:o.\u0275fac});let e=o;return e})();function bi(e,o){if(e&1&&(V(0),m(1,"form",1)(2,"div",2)(3,"div",3)(4,"div",4),_(5," Brand "),l(),u(6,"input",5),l(),m(7,"div",6)(8,"div",4),_(9," Product Type "),l(),u(10,"input",7),l(),m(11,"div",6)(12,"div",4),_(13," Status "),l(),u(14,"ng-select",8),l()()(),U()),e&2){let i=o.ngIf,n=c();s(),p("formGroup",n.form),s(13),p("items",i.Options.StatusOptions)}}var $t=(()=>{let o=class o{constructor(){this.attributesChanges=new w,this.shopifyFormService=f(Ge)}ngOnChanges(n){n.channelId&&(this.attributes$=this.shopifyFormService.getAttributes(this.channelId).pipe(L(t=>{this.form=this.shopifyFormService.createFormGroup(t),this.listenToFormChange()})))}listenToFormChange(){this.formSubscription=this.form.valueChanges.pipe(He(500)).subscribe(n=>{this.attributesChanges.emit([n])})}ngOnDestroy(){this.formSubscription.unsubscribe()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["shopify-attribute-form"]],inputs:{channelId:"channelId"},outputs:{attributesChanges:"attributesChanges"},features:[k([Ge]),D],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],["formControlName","Brand","type","text","placeholder","brand",1,"form-control"],[1,"col-6"],["formControlName","ProductType","type","text","placeholder","Product Type",1,"form-control"],["formControlName","Status","bindLabel","name","bindValue","id","placeholder","Status",3,"items"]],template:function(t,a){t&1&&(T(0,bi,15,2,"ng-container",0),I(1,"async")),t&2&&p("ngIf",S(1,1,a.attributes$))},dependencies:[x,E,j,J,re,Y,K,q,z,W,H,P],encapsulation:2});let e=o;return e})();function yi(e,o){if(e&1&&(m(0,"div",6),u(1,"app-product-card",9),l()),e&2){let i=o.$implicit;s(),p("productId",i==null?null:i.ID)("title",i==null?null:i.Name)("image",i==null?null:i.ThumbnailUrl)("description",(i==null||i.Variants==null?null:i.Variants.length)>1?(i==null||i.Variants==null?null:i.Variants.length)+" Variants":null)("imageForZoom",i==null?null:i.ImageUrl)("code",i==null||i.Variants[0]==null?null:i.Variants[0].Code)("showFooter",!1)}}function vi(e,o){if(e&1){let i=O();V(0),m(1,"mat-checkbox",21),qe("ngModelChange",function(t){C(i);let a=c().$implicit;return Je(a.selected,t)||(a.selected=t),b(t)}),y("ngModelChange",function(){let t=C(i).ngIf,a=c(),r=a.$implicit,d=a.$index,g=c();return b(g.onSelectChannel(r,d,t))}),l(),U()}if(e&2){let i=c().$implicit;s(),Ke("ngModel",i.selected)}}function xi(e,o){if(e&1&&(m(0,"div",18),u(1,"input",22),l()),e&2){let i=c().$implicit,n=c();p("matTooltip",i.type==n.channelType.Shopify||i.type==n.channelType.ShopifyV2?"Cannot change category, please change category in admin.shopify.com":i.type==n.channelType.Plugo?"You can change the category after the product has been uploaded to the Plugo Dashboard.":"")}}function Ti(e,o){if(e&1){let i=O();m(0,"app-channel-category-select",23),y("selectedCategory",function(t){C(i);let a=c().$index,r=c();return b(r.onCategoryChange(a,t))}),l()}if(e&2){let i=c().$implicit,n=c();p("disabled",!i.selected||i.selected&&i.type==n.channelType.Lazada)("channelId",i.id)("channelType",i.type)("categoryId",i.categoryId)}}function Ii(e,o){if(e&1){let i=O();m(0,"shopee-attribute-form",27),y("attributesChanges",function(t){C(i);let a=c(2).$index,r=c();return b(r.onAttributesChange(a,t))}),l()}if(e&2){let i=c(2).$implicit;p("categoryId",i.categoryId)("channelId",i.id)("channelType",i.type)}}function Si(e,o){if(e&1){let i=O();m(0,"tiktok-attribute-form",28),y("attributesChanges",function(t){C(i);let a=c(2).$index,r=c();return b(r.onAttributesChange(a,t))})("onPlatformChanges",function(t){C(i);let a=c(2).$index,r=c();return b(r.onPlatformChange(a,t))}),l()}if(e&2){let i=c(2).$implicit;p("categoryId",i.categoryId)("channelId",i.id)}}function Fi(e,o){if(e&1){let i=O();m(0,"wooocommerce-attribute-form",29),y("attributesChanges",function(t){C(i);let a=c(2).$index,r=c();return b(r.onAttributesChange(a,t))}),l()}if(e&2){let i=c(2).$implicit;p("categoryId",i.categoryId)("channelId",i.id)}}function Ai(e,o){if(e&1){let i=O();m(0,"tokopedia-attribute-form",29),y("attributesChanges",function(t){C(i);let a=c(2).$index,r=c();return b(r.onAttributesChange(a,t))}),l()}if(e&2){let i=c(2).$implicit;p("categoryId",i.categoryId)("channelId",i.id)}}function ki(e,o){if(e&1&&(m(0,"div",20)(1,"div",24),F(2,Ii,1,3,"shopee-attribute-form",25)(3,Si,1,2,"tiktok-attribute-form",26)(4,Fi,1,2,"wooocommerce-attribute-form",26)(5,Ai,1,2,"tokopedia-attribute-form",26),l()()),e&2){let i,n=c().$implicit,t=c();s(2),A((i=n.type)===t.channelType.Shopee?2:i===t.channelType.Tiktok?3:i===t.channelType.WooCommerce?4:i===t.channelType.Tokopedia?5:-1)}}function Ei(e,o){if(e&1){let i=O();m(0,"div",20)(1,"div",24)(2,"shopify-attribute-form",30),y("attributesChanges",function(t){C(i);let a=c().$index,r=c();return b(r.onAttributesChange(a,t))}),l()()()}if(e&2){let i=c().$implicit;s(2),p("channelId",i.id)}}function Pi(e,o){if(e&1&&(m(0,"div",8)(1,"div",10)(2,"div",11)(3,"div",12)(4,"div",13)(5,"div"),T(6,vi,2,1,"ng-container",14),I(7,"async"),l(),m(8,"div"),u(9,"app-channel-logo",15),l(),m(10,"div",16)(11,"span"),_(12),l()()()(),m(13,"div",12)(14,"div",17),F(15,xi,2,1,"div",18)(16,Ti,1,4,"app-channel-category-select",19),l()()(),F(17,ki,6,1,"div",20)(18,Ei,3,1,"div",20),l()()),e&2){let i=o.$implicit,n=c();s(6),p("ngIf",S(7,8,n.defaultCategories$)),s(3),p("typeId",i.type)("showChannelName",!1),s(),p("matTooltip",i.name)("matTooltipShowDelay",2500),s(2),oe(i.name),s(3),A(i.type==n.channelType.Shopify||i.type==n.channelType.Plugo||i.type==n.channelType.ShopifyV2?15:16),s(2),A(i.categoryId&&n.channelType.Lazada!=i.type&&i.selected?17:(n.channelType.Shopify==i.type||i.type==n.channelType.ShopifyV2)&&i.selected?18:-1)}}var Er=(()=>{let o=class o{constructor(){this.toastr=f(at),this.uploadProductService=f(Se),this.selectedProducts$=this.uploadProductService.selectedProduct$,this.channelProductUploads=this.uploadProductService.channelProductUpload,this.channelType=we,this.defaultCategories$=this.uploadProductService.getDefaultCategory().pipe(ne(1))}onCategoryChange(n,t){this.channelProductUploads.update(a=>a.map((r,d)=>(d==n&&(r.categoryId=t,r.attributes=[]),r)))}onPlatformChange(n,t){this.channelProductUploads.update(a=>a.map((r,d)=>(d==n&&(r.listing_platforms=t),r)))}onAttributesChange(n,t){this.channelProductUploads.update(a=>a.map((r,d)=>(d==n&&(r.attributes=t),r)))}tiktokPlatformChanges(n,t){this.channelProductUploads.update(a=>a.map((r,d)=>(d==n&&(r.listing_platforms=t),r)))}onSelectChannel(n,t,a){this.channelProductUploads.update(r=>r.map((d,g)=>{if(g==t&&n.selected){let Oe=this.findCategoryByChannelId(n.id,a);d.categoryId=Oe?.DefaultCategoryID}return g==t&&!n.selected&&(d.categoryId=null),d}))}findCategoryByChannelId(n,t){return t.find(a=>a.ID===n)}onUploadProduct(){if(this.checkTiktokPlatform()==!1){this.toastr.error("Please select at least one platform for TikTok channel","Platform is Required");return}this.uploadProductService.onUploadProduct(this.channelProductUploads())}checkTiktokPlatform(){return this.channelProductUploads().every(t=>t.type==we.Tiktok&&h.IsNotEmpty(t?.categoryId)?t.listing_platforms.length>0:!0)}ngOnDestroy(){this.uploadProductService.clearSelectedProduct()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-product-upload"]],features:[k([Te,Ct,bt,Ie])],decls:17,vars:5,consts:[["headerTitle","Upload Product To Channel",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click","disabled"],["aria-hidden","true",1,"fa","fa-upload"],[1,"container-fluid","mt-6"],[1,"ps-3","mt-8","pb-5","fw-medium"],[1,"row","mb-10","ps-3"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[1,"ps-3","mb-8","border-bottom","pb-5","fw-medium"],[1,"row","mb-6"],[3,"productId","title","image","description","imageForZoom","code","showFooter"],[1,"col-12"],[1,"row"],[1,"col-3"],[1,"d-flex","align-items-center"],[4,"ngIf"],[3,"typeId","showChannelName"],[2,"overflow","hidden","text-overflow","ellipsis","white-space","nowrap",3,"matTooltip","matTooltipShowDelay"],[1,"w-100"],["matTooltipPosition","above",3,"matTooltip"],[3,"disabled","channelId","channelType","categoryId"],[1,"row","my-3"],["color","primary",1,"example-margin",3,"ngModelChange","ngModel"],["disabled","","type","text","placeholder","Category Unavailable",1,"form-control","rounded-1",2,"height","35px"],[3,"selectedCategory","disabled","channelId","channelType","categoryId"],[1,"col-12","ps-11"],[3,"categoryId","channelId","channelType"],[3,"categoryId","channelId"],[3,"attributesChanges","categoryId","channelId","channelType"],[3,"attributesChanges","onPlatformChanges","categoryId","channelId"],[3,"attributesChanges","categoryId","channelId"],[3,"attributesChanges","channelId"]],template:function(t,a){if(t&1&&(m(0,"mainpanel",0)(1,"actions")(2,"button",1),y("click",function(){return a.onUploadProduct()}),u(3,"i",2),_(4," Upload "),l()(),m(5,"content")(6,"div",3)(7,"h3",4),_(8,"Product To Upload"),l(),m(9,"div",5),$(10,yi,2,7,"div",6,R),I(12,"async"),l(),m(13,"h3",7),_(14,"Channel To Upload"),l(),$(15,Pi,19,10,"div",8,R),l()()()),t&2){let r;p("hideSearchBox",!0)("hideSearchDropdown",!0),s(2),p("disabled",((r=a.channelProductUploads())==null?null:r.length)==0),s(8),G(S(12,3,a.selectedProducts$)),s(5),G(a.channelProductUploads())}},dependencies:[x,E,At,pt,st,Et,kt,mt,ae,Y,tt,ct,lt,Bt,Lt,Rt,$t,yt,Ot,Ut,P],encapsulation:2});let e=o;return e})();export{Er as ProductUploadComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=(function(e){return e.DashboardView="Dashboard",e.ProductView="ProdV",e.ProductScan="ProdSC",e.ProductDetach="ProdDet",e.ProductDownload="ProdDwn",e.ProductUpload="ProdUpd",e.InventoryView="Iview",e.InventoryUpdate="InventoryUpd",e.PriceView="Pview",e.PriceUpdate="PriceUpd",e.OrderView="OrderView",e.Fulfillment="Fulfillment",e.DownloadOrder="DownloadOrder",e.Report="Report",e.LogisticView="LogView",e.LogisticUpdate="LogUpdate",e.ChannelView="ChannelView",e.ChannelAdd="ChannelAdd",e.ChannelEdit="ChannelEdit",e.ChannelDelete="ChannelDelete",e.DevView="DevView",e.UserView="UsrView",e.UserInvite="UsrCreate",e.UserEdit="UsrEdit",e.UserDelete="UsrDelete",e.JsonApiView="JsonApi",e})(r||{});export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-YJTPDV4D.js";import{e as n}from"./chunk-OXWPYJNB.js";import{ma as e,ra as c}from"./chunk-ZYJ6LAJ3.js";var u=(()=>{let t=class t{constructor(){this.httpService=c(n)}getConfig(){return this.httpService.post(i.PosAccountGetConfig,{})}saveConfig(o){return this.httpService.post(i.SubmitConfig,o)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=e({token:t,factory:t.\u0275fac});let r=t;return r})();export{u as a};
|