marketplacepos 5.46.6 → 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 +104 -52
- 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-LS7AO6KP.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-22ARBR7W.js +0 -1
- package/Marketplace/chunk-2BV7ZXRB.js +0 -1
- package/Marketplace/chunk-2DLU2LJJ.js +0 -1
- package/Marketplace/chunk-3GDM5JNY.js +0 -2
- package/Marketplace/chunk-3PPLPXAX.js +0 -222
- package/Marketplace/chunk-4G7SG2H6.js +0 -1
- package/Marketplace/chunk-4HOZLG47.js +0 -1
- package/Marketplace/chunk-4NEKWRL7.js +0 -1
- package/Marketplace/chunk-4YRBARG2.js +0 -1
- package/Marketplace/chunk-5BHSTOJT.js +0 -1
- package/Marketplace/chunk-5CKVZBHM.js +0 -102
- package/Marketplace/chunk-5DTUHJSS.js +0 -1
- package/Marketplace/chunk-5EIQGYTB.js +0 -1
- package/Marketplace/chunk-5KUKIH4H.js +0 -1
- package/Marketplace/chunk-5PS6ZS3N.js +0 -1
- package/Marketplace/chunk-5Z5Y537T.js +0 -1
- package/Marketplace/chunk-67HPC5Y3.js +0 -2
- package/Marketplace/chunk-6H2KAYSB.js +0 -1088
- package/Marketplace/chunk-6OMSPZZC.js +0 -2
- package/Marketplace/chunk-7G6GQTSH.js +0 -33
- package/Marketplace/chunk-7WY57PVD.js +0 -1
- package/Marketplace/chunk-7Y7SPMGZ.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-AGZCB65X.js +0 -1
- package/Marketplace/chunk-AWNZSJSP.js +0 -1
- package/Marketplace/chunk-B2ZWLW3F.js +0 -1
- package/Marketplace/chunk-BKRCW7SH.js +0 -79
- package/Marketplace/chunk-BMYBLBSP.js +0 -3
- package/Marketplace/chunk-CBQUB3KW.js +0 -1
- package/Marketplace/chunk-CGOB6Y3X.js +0 -1
- package/Marketplace/chunk-CRD4OUSG.js +0 -1
- package/Marketplace/chunk-CT73GC7O.js +0 -1
- package/Marketplace/chunk-CVM573KF.js +0 -1
- package/Marketplace/chunk-D2TELRO7.js +0 -1
- package/Marketplace/chunk-DAXM2MPK.js +0 -1
- package/Marketplace/chunk-DXPLB6OB.js +0 -252
- package/Marketplace/chunk-EFB55SZR.js +0 -1
- package/Marketplace/chunk-EHBCYQSG.js +0 -1
- package/Marketplace/chunk-EHUVS2VB.js +0 -1
- package/Marketplace/chunk-ELZBUFG5.js +0 -1
- package/Marketplace/chunk-EPBVNII2.js +0 -51
- package/Marketplace/chunk-ERXVXBTU.js +0 -1
- package/Marketplace/chunk-EU2KAMEK.js +0 -1
- package/Marketplace/chunk-EUYQST7Q.js +0 -1
- package/Marketplace/chunk-EXSI44LD.js +0 -33
- package/Marketplace/chunk-EYONZQ2W.js +0 -1
- package/Marketplace/chunk-F2XHUFJC.js +0 -157
- package/Marketplace/chunk-F3GLNINI.js +0 -1
- package/Marketplace/chunk-FGRPTNDB.js +0 -234
- package/Marketplace/chunk-FHNST4Y7.js +0 -1
- package/Marketplace/chunk-FKQ7ZVGD.js +0 -1
- package/Marketplace/chunk-FOT5AJYX.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-GRYGUILI.js +0 -2
- package/Marketplace/chunk-GSVFDIM6.js +0 -1
- package/Marketplace/chunk-GZKOMS4T.js +0 -2
- package/Marketplace/chunk-GZS2MOSK.js +0 -1
- package/Marketplace/chunk-HERZ7KEM.js +0 -1
- package/Marketplace/chunk-HIC5QC3Y.js +0 -1
- package/Marketplace/chunk-HJXYT6MI.js +0 -4
- package/Marketplace/chunk-IHSGQFDX.js +0 -2
- package/Marketplace/chunk-IITU3NV6.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-JUJFPAAU.js +0 -1
- package/Marketplace/chunk-JZDOMET2.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-LBMUKJV5.js +0 -1
- package/Marketplace/chunk-LDL3A7NM.js +0 -1
- package/Marketplace/chunk-LLHPMXKP.js +0 -2
- package/Marketplace/chunk-LXXEN7OV.js +0 -1
- package/Marketplace/chunk-LYPHZP72.js +0 -2
- package/Marketplace/chunk-MFQQEEHJ.js +0 -3
- package/Marketplace/chunk-MGLOTL2T.js +0 -1
- package/Marketplace/chunk-MO53T3IK.js +0 -1
- package/Marketplace/chunk-MX5SR3SR.js +0 -94
- package/Marketplace/chunk-MZWTCBAF.js +0 -15
- package/Marketplace/chunk-NDBC2CS6.js +0 -1
- package/Marketplace/chunk-NFGFM7TW.js +0 -1
- package/Marketplace/chunk-NNOI3AG4.js +0 -1
- package/Marketplace/chunk-O2YNPIYM.js +0 -5
- package/Marketplace/chunk-OGJMVAEL.js +0 -5
- package/Marketplace/chunk-OJMQBH6T.js +0 -7
- package/Marketplace/chunk-OO2CSDGF.js +0 -1
- package/Marketplace/chunk-OXWPLJEW.js +0 -93
- package/Marketplace/chunk-OZ7LWNOK.js +0 -15
- package/Marketplace/chunk-P2AADVEN.js +0 -3
- package/Marketplace/chunk-P2IQLBGG.js +0 -1
- package/Marketplace/chunk-PE5AFID4.js +0 -1
- package/Marketplace/chunk-PFY5UG5D.js +0 -4
- package/Marketplace/chunk-PGP3WHIS.js +0 -397
- package/Marketplace/chunk-PHUHUFYL.js +0 -2
- package/Marketplace/chunk-PIBVGTHJ.js +0 -1
- package/Marketplace/chunk-PTNJ3YC5.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-QREUIGWW.js +0 -1
- package/Marketplace/chunk-QW4EOJRM.js +0 -1
- package/Marketplace/chunk-QWISVEBT.js +0 -141
- package/Marketplace/chunk-RAQRGWCZ.js +0 -2
- package/Marketplace/chunk-RC5PUUVM.js +0 -193
- package/Marketplace/chunk-RGAKHXPF.js +0 -1
- 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-SLEJQAL7.js +0 -1
- package/Marketplace/chunk-T27ABFCP.js +0 -1
- package/Marketplace/chunk-T2OSIFLN.js +0 -78
- package/Marketplace/chunk-TI67Q3JR.js +0 -5
- package/Marketplace/chunk-TMKLT3K2.js +0 -1
- package/Marketplace/chunk-TWOIWWMO.js +0 -2
- package/Marketplace/chunk-UGYIOLBR.js +0 -1
- package/Marketplace/chunk-UMP6ZMEJ.js +0 -1
- package/Marketplace/chunk-URGPZLCB.js +0 -1
- package/Marketplace/chunk-USBIAIK6.js +0 -1
- package/Marketplace/chunk-UYFUJBC4.js +0 -2
- package/Marketplace/chunk-UZWED4UK.js +0 -137
- package/Marketplace/chunk-V3USB3ZU.js +0 -1
- package/Marketplace/chunk-V3ZRQKJA.js +0 -158
- package/Marketplace/chunk-VFATXJRG.js +0 -1
- package/Marketplace/chunk-W3DTXPRM.js +0 -1
- package/Marketplace/chunk-WGCIF2R4.js +0 -257
- package/Marketplace/chunk-WN5DZGA4.js +0 -1
- package/Marketplace/chunk-WRJFUNM3.js +0 -1
- package/Marketplace/chunk-X4B2FYY3.js +0 -7
- package/Marketplace/chunk-X52QA4QU.js +0 -1
- package/Marketplace/chunk-XHAXYWZ7.js +0 -1
- package/Marketplace/chunk-XLWWNO5M.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-Y4XF2TXJ.js +0 -1
- package/Marketplace/chunk-YEDXFYTD.js +0 -1
- package/Marketplace/chunk-YERZ6W22.js +0 -1
- package/Marketplace/chunk-YF4XELSP.js +0 -1
- package/Marketplace/chunk-YFDFIBAG.js +0 -1
- 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-ZYQD6SBV.js +0 -1235
- package/Marketplace/main-YKZPM7WW.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 @@
|
|
|
1
|
+
import{a as me}from"./chunk-ZSUWHVKX.js";import{e as _e}from"./chunk-6KWG6O5L.js";import{a as ge,i as be}from"./chunk-5O33CV4F.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-YJTPDV4D.js";import{b as fe,e as S}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{a as w,c as ue}from"./chunk-BLHKSSK6.js";import{A as pe,c as te,h as ne,i as ie,k as oe,m as re,n as ae,t as se,u as de,v as ce,w as le}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{a as he,c as xe}from"./chunk-ZETUYNFJ.js";import{D as y,F as v,I as j,c as J,e as D,f as X,i as Z,m as ee}from"./chunk-LNJUGHOX.js";import{Bc as U,Cc as W,Dc as q,Gb as _,Hb as N,Hc as P,Lc as H,Mb as f,Mc as a,Nc as C,Oc as B,Pc as Y,Qc as I,Rc as L,Sc as T,Z as F,ad as G,gc as m,hc as i,hd as Q,ic as r,id as K,jc as l,kd as $,lb as M,ma as R,na as A,nb as c,nc as k,oc as E,qc as z,vc as u,xa as x,xc as g,ya as b,zb as p}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var Ce=(()=>{let t=class t{constructor(){}getBrowserName(){let n=window.navigator.userAgent.toLowerCase();switch(!0){case(n.indexOf("edge")>-1||n.indexOf("edg")>-1):return"edge";case n.indexOf("opr")>-1:return"opera";case n.indexOf("chrome")>-1:return"chrome";case n.indexOf("trident")>-1:return"ie";case n.indexOf("firefox")>-1:return"firefox";case n.indexOf("safari")>-1:return"safari";default:return"other"}}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();function Le(o,t){if(o&1&&(i(0,"swiper-slide")(1,"div")(2,"a",2),l(3,"img",3),r()(),i(4,"a",4),a(5),r(),i(6,"p",5),a(7),r()()),o&2){let d=t.$implicit;c(2),m("href",d.href,M),c(),m("src",d.imgSrc,M),c(),m("href",d.href,M),c(),C(d.title),c(2),C(d.description)}}var ve=(()=>{let t=class t{constructor(){this.newsList=[]}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=_({type:t,selectors:[["POS-news-swiper"]],inputs:{newsList:"newsList"},standalone:!1,decls:2,vars:1,consts:[["pagination","true","pagination-clickable","true","autoplay-delay","5000","autoplay-disable-on-interaction","false",2,"margin-top","30px"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],[1,"border-0","rounded-1","mb-8",2,"width","252px","height","152px",3,"src"],["target","_blank",1,"fw-bold","h5","text-success","header-title","fs-4",3,"href"],[2,"margin-bottom","3rem"]],template:function(e,s){e&1&&(i(0,"swiper-container",0),f(1,Le,8,5,"swiper-slide",1),r()),e&2&&(c(),m("ngForOf",s.newsList))},dependencies:[D],styles:["swiper-container[_ngcontent-%COMP%]{--swiper-pagination-bullet-inactive-color: #89b03e;--swiper-pagination-color: #89b03e}"]});let o=t;return o})();var Ae=["subdomainEl"],Ne=(o,t)=>({"rounded-end":o,"border-end-0":t});function ze(o,t){if(o&1&&(k(0),i(1,"div",36),l(2,"img",37),r(),E()),o&2){let d=t.$implicit;c(2),m("src",d.img,M)("title",d.title)("alt",d.title)}}function De(o,t){if(o&1){let d=z();k(0),i(1,"div",17)(2,"h3",18),a(3," DealPOS Omnichannel "),r(),i(4,"small",19),a(5," Multichannel Inventory Management Software "),r()(),i(6,"form",20)(7,"div",21)(8,"div",22)(9,"div",23)(10,"span"),l(11,"i",24),r()(),i(12,"input",25,1),T("ngModelChange",function(e){x(d);let s=g();return L(s.subdomain,e)||(s.subdomain=e),b(e)}),r(),i(14,"div")(15,"select",26),T("ngModelChange",function(e){x(d);let s=g();return L(s.domain,e)||(s.domain=e),b(e)}),i(16,"option",27),a(17,".dealpos.co.id"),r(),i(18,"option",28),a(19,".dealpos.net"),r(),i(20,"option",29),a(21,".dealpos.com"),r(),i(22,"option",30),a(23,".dealpos.app"),r()()()(),i(24,"div",31)(25,"button",32),u("click",function(){x(d);let e=g();return b(e.onNextState())}),a(26," Next "),r()(),i(27,"div",33)(28,"div",34),f(29,ze,3,3,"ng-container",35),r()()()(),E()}if(o&2){let d=g();c(12),I("ngModel",d.subdomain),c(3),I("ngModel",d.domain),c(14),m("ngForOf",d.channels)}}function je(o,t){o&1&&(i(0,"p"),a(1," Username is required "),r())}function Ve(o,t){if(o&1&&(k(0),i(1,"div",57),l(2,"div",58),i(3,"div",59),f(4,je,2,0,"p",47),r()(),E()),o&2){g();let d=P(14);c(4),m("ngIf",d.errors.required)}}function Fe(o,t){if(o&1){let d=z();i(0,"i",62),u("click",function(){x(d);let e=g(3);return b(e.hideShowPassword())}),r()}if(o&2){let d=g(3);H("fa "+d.passwordIcon)}}function Re(o,t){if(o&1&&(i(0,"span",60),f(1,Fe,1,2,"i",61),r()),o&2){let d=g(2);c(),m("ngIf",d.password)}}function Ue(o,t){o&1&&(i(0,"p"),a(1," Password is required "),r())}function We(o,t){if(o&1&&(k(0),i(1,"div",57),l(2,"div",58),i(3,"div",59),f(4,Ue,2,0,"p",47),r()(),E()),o&2){g();let d=P(21);c(4),m("ngIf",d.errors.required)}}function qe(o,t){if(o&1){let d=z();i(0,"div",38)(1,"h3",39),a(2,"Sign in"),r(),i(3,"h3",40),a(4," to "),i(5,"h6",41),a(6),r(),i(7,"i",42),u("click",function(){x(d);let e=g();return b(e.onEditDomain())}),r()()(),i(8,"form",43)(9,"div",44)(10,"div",23)(11,"span"),l(12,"i",45),r()(),i(13,"input",46,2),T("ngModelChange",function(e){x(d);let s=g();return L(s.username,e)||(s.username=e),b(e)}),r()(),f(15,Ve,5,1,"ng-container",47),i(16,"div",22)(17,"div",23)(18,"span"),l(19,"i",48),r()(),i(20,"input",49,3),T("ngModelChange",function(e){x(d);let s=g();return L(s.password,e)||(s.password=e),b(e)}),r(),f(22,Re,2,1,"span",50),r(),f(23,We,5,1,"ng-container",47),i(24,"div",51)(25,"button",52),u("click",function(){x(d);let e=g();return b(e.onLogin())}),a(26," Log in "),r()(),i(27,"div",53),l(28,"hr"),i(29,"span",54),a(30,"or"),r(),l(31,"hr"),r(),i(32,"div")(33,"button",55),u("click",function(e){x(d);let s=g();return b(s.onLoginByGoogle(e))}),l(34,"i",56),a(35," Sign In with Google "),r()()()}if(o&2){let d=P(14),n=P(21),e=g();c(6),Y(" (",e.subdomain,"",e.domain,") "),c(7),I("ngModel",e.username),c(2),m("ngIf",d.invalid&&(d.dirty||d.touched)),c(5),m("type",e.passwordType)("ngClass",G(9,Ne,e.browser=="edge",e.browser!="edge")),I("ngModel",e.password),c(2),m("ngIf",e.browser!="edge"),c(),m("ngIf",n.invalid&&(n.dirty||n.touched))}}var we=(()=>{let t=class t{constructor(n,e,s,h,ke){this._router=n,this.toastr=e,this.checkBrowser=s,this.authService=h,this.ngxPermission=ke,this.domain=".dealpos.co.id",this.loginState="FORM_DOMAIN",this.passwordType="password",this.passwordIcon="fa-eye",this.channels=[{title:"Shopee",img:w.SHOOPE},{title:"Tokopedia",img:w.TOKOPEDIA},{title:"Tiktok",img:w.TIKTOK},{title:"Woocommerce",img:w.WOOCOMMERCE},{title:"Lazada",img:w.LAZADA},{title:"Shopify",img:w.SHOPIFY},{title:"Plugo",img:w.PLUGONEW}],this.version=ge.version,this.news$=h.getNews().pipe(F(1))}ngOnInit(){this.initLogin(),this.browser=this.checkBrowser.getBrowserName(),document.body.classList.add("login-body"),this.initChangeLogUrl()}initChangeLogUrl(){let n=`https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete&v=${this.version}`;this.changelogUrl=n}ngAfterViewInit(){this.setAutoFocusDomain()}initLogin(){let n=JSON.parse(localStorage.getItem("Authorization"));if(n){this.username=n?.username,this.subdomain=n?.Host?.split(".")[0];let e=n?.Host?.split("dealpos");this.domain=`.dealpos${e[1]}`,this.authService.isActiveToken()&&this._router.navigate(["menu"])}}onNextState(){if(ue.IsEmpty(this.subdomain)){this.toastr.warning("Account Domain is required","Warning");return}this.parseSubdomain(),this.loginState="FORM_AUTH"}parseSubdomain(){let n=this.subdomain.indexOf(".dealpos");n!=-1&&(this.subdomain=this.subdomain.substring(0,n))}onEditDomain(){this.loginState="FORM_DOMAIN"}onLogin(){let n={Host:`${this.subdomain}${this.domain}`,Username:this.username,Password:this.password};this.authService.login(n).subscribe(e=>{this.onSuccessLogin(e)})}onLoginByGoogle(n){let e=`${this.subdomain}${this.domain}`;this.authService.loginWithGoogle(n,e).subscribe(s=>{this.onSuccessLogin(s)})}onSuccessLogin(n){this.ngxPermission.hasPermission([me.DashboardView]).then(e=>{e?this._router.navigate(["menu/dashboard"]):n?.TotalChannel<1?this._router.navigate(["menu/channel"]):this._router.navigate(["menu/products"])})}setAutoFocusDomain(){this.subdomainEl.nativeElement.focus()}hideShowPassword(){this.passwordType=this.passwordType==="text"?"password":"text",this.passwordIcon=this.passwordIcon==="fa-eye"?"fa-eye-slash":"fa-eye"}ngOnDestroy(){document.body.classList.remove("login-body")}};t.\u0275fac=function(e){return new(e||t)(p(v),p(fe),p(Ce),p(be),p(he))},t.\u0275cmp=_({type:t,selectors:[["app-login"]],viewQuery:function(e,s){if(e&1&&U(Ae,5),e&2){let h;W(h=q())&&(s.subdomainEl=h.first)}},standalone:!1,decls:19,vars:7,consts:[["USERNAME_PASSWORD",""],["subdomainEl",""],["usernameCtrl","ngModel"],["passwordCtrl","ngModel"],[1,"container-fluid"],[1,"row","mx-auto","bg-white","login-pane"],[1,"col-md-5","order-md-first","order-last","border-end","features-pane","pt-12","pb-9"],[1,"fw-normal","fs-2","header-title","text-center"],[3,"newsList"],[1,"col-md-7","order-md-last","order-first","py-12","sign-in-pane"],[4,"ngIf","ngIfElse"],[1,"d-flex","copyright",2,"margin-left","20px"],[1,"align-self-center","me-5"],["target","_blank","href","http://www.dealpos.com"],[1,"version",2,"margin-right","18px"],["target","_blank",1,"text-dark","fst-italic",3,"href"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],[1,"text-md-start","text-center"],[1,"fs-2","header-title","me-2","fw-normal"],[1,"text-secondary-emphasis","fst-italic",2,"font-size","11px"],[2,"margin-top","38px"],[1,"form-block","mt-5"],[1,"input-group","input-group-lg","mt-8"],[1,"input-group-text","rounded-start","border-end-0",2,"width","52px"],[1,"fa-solid","fa-cloud"],["placeholder","Store Address","aria-label","Store Address","aria-describedby","basic-addon1","autofocus","","name","Store Address",1,"form-control","form-control-lg","rounded-end-0","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],["name","domainOption",1,"form-select","form-control","form-control-lg","border-start-0","border-start","rounded-end","rounded-start-0","domain-option",2,"height","58px",3,"ngModelChange","ngModel"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],["value",".dealpos.app"],[1,"w-100",2,"margin-top","1.8rem"],["name","next","data-cy","next","type","submit",1,"btn","btn-xl","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"d-flex","align-items-center","justify-content-center",2,"margin-top","2.1rem"],[1,"d-flex","align-items-center","justify-content-between","w-100"],[4,"ngFor","ngForOf"],[1,""],[1,"border-0",2,"width","34px","height","34px",3,"src","title","alt"],[1,"d-flex","align-items-center","justify-content-start","mb-2"],[1,"robotoslab","fw-normal"],[1,"ms-2","fw-normal"],[1,"me-2","robotoslab","d-inline-block","text-success"],["title","Edit Store Address",1,"fa-solid","fa-edit","link-success","fs-5","pointer",3,"click"],[2,"margin-top","29px"],[1,"input-group","input-group-lg"],[1,"fas","fa-user","fa-lg"],["id","txtUsername","type","text","data-cy","username","required","","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1","autofocus","","name","username",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],[4,"ngIf"],[1,"fas","fa-key","fa-lg"],["id","txtPassword","data-cy","password","placeholder","Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password","required","",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","type","ngClass","ngModel"],["class","input-group-text border-start-0 rounded-end",4,"ngIf"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"mx-4","text-muted"],[1,"btn","btn-social-login","text-success","w-100","fw-bold",3,"click"],[1,"fa-brands","fa-google"],[1,"d-flex","justify-content-start","w-50","mb-4",2,"height","16px"],[2,"width","52px"],[1,"text-danger","ps-1"],[1,"input-group-text","border-start-0","rounded-end"],[3,"class","click",4,"ngIf"],[3,"click"]],template:function(e,s){if(e&1&&(i(0,"div",4)(1,"div",5)(2,"div",6)(3,"h3",7),a(4,"New Features"),r(),l(5,"POS-news-swiper",8),Q(6,"async"),r(),i(7,"div",9),f(8,De,30,3,"ng-container",10)(9,qe,36,12,"ng-template",null,0,$),r()(),i(11,"div",11)(12,"span",12),a(13,"powered by :"),r(),l(14,"a",13),r(),i(15,"div",14)(16,"a",15),a(17),l(18,"i",16),r()()()),e&2){let h=P(10);c(5),m("newsList",K(6,5,s.news$)),c(3),m("ngIf",s.loginState=="FORM_DOMAIN")("ngIfElse",h),c(8),m("href",s.changelogUrl,M),c(),B("version ",s.version)}},dependencies:[J,D,X,ae,de,ce,te,se,ne,ie,le,re,oe,ve,Z],styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}"]});let o=t;return o})();var Oe=(()=>{let t=class t{constructor(n,e,s){this.route=n,this.http=e,this.service=s}ngOnInit(){this.route.queryParams.subscribe(n=>{this.shopID=n.shop_id,this.code=n.code})}addShopee(){let n={ShopID:Number(this.shopID),Code:this.code};this.http.post("/api/ChannelAdd/ShopeeV2",n).subscribe(s=>{this.service.navigate(["/menu/channel"])})}};t.\u0275fac=function(e){return new(e||t)(p(y),p(S),p(v))},t.\u0275cmp=_({type:t,selectors:[["shopee-authorized"]],standalone:!1,decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-t",3,"click"],[1,"fas","fa-undo"]],template:function(e,s){e&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),l(5,"i",5),i(6,"div",6),a(7,"Success !"),r()(),i(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),i(11,"div"),a(12,"DEALPOS to manage your Shopee"),r(),i(13,"div"),a(14," Your shopID is "),i(15,"span",8),a(16),r()(),i(17,"button",9),u("click",function(){return s.addShopee()}),l(18,"i",10),a(19," Add to my Channel"),r()()()()()()),e&2&&(c(16),C(s.shopID))},styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]});let o=t;return o})();var Pe=(()=>{let t=class t{constructor(n,e,s){this.route=n,this.http=e,this.service=s}ngOnInit(){this.route.queryParams.subscribe(n=>{this.code=n.code,this.state=n.state})}addChannelTiktok(){let n={Code:this.code};this.http.post("/api/ChannelAdd/AddTiktok",n).subscribe(e=>{this.service.navigate(["/menu/channel"])})}};t.\u0275fac=function(e){return new(e||t)(p(y),p(S),p(v))},t.\u0275cmp=_({type:t,selectors:[["app-tiktok"]],standalone:!1,decls:24,vars:2,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(e,s){e&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),l(5,"i",5),i(6,"div",6),a(7,"Success !"),r()(),i(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),i(11,"div"),a(12,"DEALPOS to manage your Tiktok"),r(),i(13,"div"),a(14," Your Code is "),i(15,"span",8),a(16),r()(),i(17,"div"),a(18," Your State is "),i(19,"span",8),a(20),r()(),i(21,"button",9),u("click",function(){return s.addChannelTiktok()}),l(22,"i",10),a(23," Add to my Channel"),r()()()()()()),e&2&&(c(16),C(s.code),c(4),C(s.state))},styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]});let o=t;return o})();var ye=(()=>{let t=class t{constructor(n,e,s){this.route=n,this.http=e,this.service=s}ngOnInit(){this.route.queryParams.subscribe(n=>{this.code=n.code})}addChannelLazada(){let n={Code:this.code};this.http.post("/api/ChannelAdd/AddLazada",n).subscribe(e=>{this.service.navigate(["/menu/channel"])})}};t.\u0275fac=function(e){return new(e||t)(p(y),p(S),p(v))},t.\u0275cmp=_({type:t,selectors:[["app-lazada"]],standalone:!1,decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(e,s){e&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),l(5,"i",5),i(6,"div",6),a(7,"Success !"),r()(),i(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),i(11,"div"),a(12,"DEALPOS to manage your Lazada"),r(),i(13,"div"),a(14," Your Code is "),i(15,"span",8),a(16),r()(),i(17,"button",9),u("click",function(){return s.addChannelLazada()}),l(18,"i",10),a(19," Add to my Channel"),r()()()()()()),e&2&&(c(16),C(s.code))},encapsulation:2});let o=t;return o})();var He=[{path:"",component:we,data:{title:"Dealpos x Marketplace"}},{path:"shopee",component:Oe,data:{title:"Success"}},{path:"tiktok",component:Pe,data:{title:"Success"}},{path:"lazada",component:ye,data:{title:"Success"}}],Se=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=N({type:t}),t.\u0275inj=A({imports:[j.forChild(He),j]});let o=t;return o})();var yt=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=N({type:t}),t.\u0275inj=A({imports:[ee,pe,Se,_e,xe]});let o=t;return o})();export{yt as LoginModule};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import{b as se}from"./chunk-KJE5GRQ4.js";import{a as V}from"./chunk-4ILDFTIG.js";import{c as ae,e as f,f as de}from"./chunk-LOWGZOML.js";import{V as oe,W as ie,ja as ce,ra as re,sa as M}from"./chunk-5PMKN6PM.js";import{a as ne,g as te}from"./chunk-L3W6SG2T.js";import{c as J,f as W,h as Y,m as ee}from"./chunk-LNJUGHOX.js";import{Ac as N,Bc as G,Cc as w,Dc as B,Fd as m,Gb as p,Gd as Z,Ha as $,Hb as j,Kb as u,Kc as P,Lb as H,Lc as h,Mb as x,Oa as l,Zb as T,Zc as K,ad as X,gc as c,hc as E,ic as F,jc as y,la as L,ma as A,mc as I,na as O,nb as d,nc as S,oc as D,od as U,pa as Q,qc as R,ra as g,sb as _,td as z,vc as q,xa as C,xc as b,ya as v,za as s}from"./chunk-ZYJ6LAJ3.js";var me=["data-p-icon","check"],he=(()=>{class e extends V{static \u0275fac=(()=>{let n;return function(t){return(n||(n=l(e)))(t||e)}})();static \u0275cmp=p({type:e,selectors:[["","data-p-icon","check"]],features:[u],attrs:me,decls:1,vars:0,consts:[["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(o,t){o&1&&(s(),I(0,"path",0))},encapsulation:2})}return e})();var fe=["data-p-icon","minus"],pe=(()=>{class e extends V{static \u0275fac=(()=>{let n;return function(t){return(n||(n=l(e)))(t||e)}})();static \u0275cmp=p({type:e,selectors:[["","data-p-icon","minus"]],features:[u],attrs:fe,decls:1,vars:0,consts:[["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(o,t){o&1&&(s(),I(0,"path",0))},encapsulation:2})}return e})();var ue=`
|
|
2
|
+
.p-checkbox {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
user-select: none;
|
|
6
|
+
vertical-align: bottom;
|
|
7
|
+
width: dt('checkbox.width');
|
|
8
|
+
height: dt('checkbox.height');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.p-checkbox-input {
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
appearance: none;
|
|
14
|
+
position: absolute;
|
|
15
|
+
inset-block-start: 0;
|
|
16
|
+
inset-inline-start: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
padding: 0;
|
|
20
|
+
margin: 0;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
z-index: 1;
|
|
23
|
+
outline: 0 none;
|
|
24
|
+
border: 1px solid transparent;
|
|
25
|
+
border-radius: dt('checkbox.border.radius');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.p-checkbox-box {
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
align-items: center;
|
|
32
|
+
border-radius: dt('checkbox.border.radius');
|
|
33
|
+
border: 1px solid dt('checkbox.border.color');
|
|
34
|
+
background: dt('checkbox.background');
|
|
35
|
+
width: dt('checkbox.width');
|
|
36
|
+
height: dt('checkbox.height');
|
|
37
|
+
transition:
|
|
38
|
+
background dt('checkbox.transition.duration'),
|
|
39
|
+
color dt('checkbox.transition.duration'),
|
|
40
|
+
border-color dt('checkbox.transition.duration'),
|
|
41
|
+
box-shadow dt('checkbox.transition.duration'),
|
|
42
|
+
outline-color dt('checkbox.transition.duration');
|
|
43
|
+
outline-color: transparent;
|
|
44
|
+
box-shadow: dt('checkbox.shadow');
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.p-checkbox-icon {
|
|
48
|
+
transition-duration: dt('checkbox.transition.duration');
|
|
49
|
+
color: dt('checkbox.icon.color');
|
|
50
|
+
font-size: dt('checkbox.icon.size');
|
|
51
|
+
width: dt('checkbox.icon.size');
|
|
52
|
+
height: dt('checkbox.icon.size');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
56
|
+
border-color: dt('checkbox.hover.border.color');
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.p-checkbox-checked .p-checkbox-box {
|
|
60
|
+
border-color: dt('checkbox.checked.border.color');
|
|
61
|
+
background: dt('checkbox.checked.background');
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.p-checkbox-checked .p-checkbox-icon {
|
|
65
|
+
color: dt('checkbox.icon.checked.color');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
69
|
+
background: dt('checkbox.checked.hover.background');
|
|
70
|
+
border-color: dt('checkbox.checked.hover.border.color');
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon {
|
|
74
|
+
color: dt('checkbox.icon.checked.hover.color');
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
|
|
78
|
+
border-color: dt('checkbox.focus.border.color');
|
|
79
|
+
box-shadow: dt('checkbox.focus.ring.shadow');
|
|
80
|
+
outline: dt('checkbox.focus.ring.width') dt('checkbox.focus.ring.style') dt('checkbox.focus.ring.color');
|
|
81
|
+
outline-offset: dt('checkbox.focus.ring.offset');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
|
|
85
|
+
border-color: dt('checkbox.checked.focus.border.color');
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.p-checkbox.p-invalid > .p-checkbox-box {
|
|
89
|
+
border-color: dt('checkbox.invalid.border.color');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.p-checkbox.p-variant-filled .p-checkbox-box {
|
|
93
|
+
background: dt('checkbox.filled.background');
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.p-checkbox-checked.p-variant-filled .p-checkbox-box {
|
|
97
|
+
background: dt('checkbox.checked.background');
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
101
|
+
background: dt('checkbox.checked.hover.background');
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.p-checkbox.p-disabled {
|
|
105
|
+
opacity: 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.p-checkbox.p-disabled .p-checkbox-box {
|
|
109
|
+
background: dt('checkbox.disabled.background');
|
|
110
|
+
border-color: dt('checkbox.checked.disabled.border.color');
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {
|
|
114
|
+
color: dt('checkbox.icon.disabled.color');
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.p-checkbox-sm,
|
|
118
|
+
.p-checkbox-sm .p-checkbox-box {
|
|
119
|
+
width: dt('checkbox.sm.width');
|
|
120
|
+
height: dt('checkbox.sm.height');
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.p-checkbox-sm .p-checkbox-icon {
|
|
124
|
+
font-size: dt('checkbox.icon.sm.size');
|
|
125
|
+
width: dt('checkbox.icon.sm.size');
|
|
126
|
+
height: dt('checkbox.icon.sm.size');
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.p-checkbox-lg,
|
|
130
|
+
.p-checkbox-lg .p-checkbox-box {
|
|
131
|
+
width: dt('checkbox.lg.width');
|
|
132
|
+
height: dt('checkbox.lg.height');
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.p-checkbox-lg .p-checkbox-icon {
|
|
136
|
+
font-size: dt('checkbox.icon.lg.size');
|
|
137
|
+
width: dt('checkbox.icon.lg.size');
|
|
138
|
+
height: dt('checkbox.icon.lg.size');
|
|
139
|
+
}
|
|
140
|
+
`;var ge=["icon"],Ce=["input"],ve=(e,a)=>({checked:e,class:a});function _e(e,a){if(e&1&&y(0,"span",8),e&2){let n=b(3);h(n.cx("icon")),c("ngClass",n.checkboxIcon)("pBind",n.ptm("icon"))}}function ye(e,a){if(e&1&&(s(),y(0,"svg",9)),e&2){let n=b(3);h(n.cx("icon")),c("pBind",n.ptm("icon"))}}function Ie(e,a){if(e&1&&(S(0),x(1,_e,1,4,"span",6)(2,ye,1,3,"svg",7),D()),e&2){let n=b(2);d(),c("ngIf",n.checkboxIcon),d(),c("ngIf",!n.checkboxIcon)}}function we(e,a){if(e&1&&(s(),y(0,"svg",10)),e&2){let n=b(2);h(n.cx("icon")),c("pBind",n.ptm("icon"))}}function Be(e,a){if(e&1&&(S(0),x(1,Ie,3,2,"ng-container",3)(2,we,1,3,"svg",5),D()),e&2){let n=b();d(),c("ngIf",n.checked),d(),c("ngIf",n._indeterminate())}}function Me(e,a){}function Ve(e,a){e&1&&x(0,Me,0,0,"ng-template")}var Te=`
|
|
141
|
+
${ue}
|
|
142
|
+
|
|
143
|
+
/* For PrimeNG */
|
|
144
|
+
p-checkBox.ng-invalid.ng-dirty .p-checkbox-box,
|
|
145
|
+
p-check-box.ng-invalid.ng-dirty .p-checkbox-box,
|
|
146
|
+
p-checkbox.ng-invalid.ng-dirty .p-checkbox-box {
|
|
147
|
+
border-color: dt('checkbox.invalid.border.color');
|
|
148
|
+
}
|
|
149
|
+
`,Ee={root:({instance:e})=>["p-checkbox p-component",{"p-checkbox-checked p-highlight":e.checked,"p-disabled":e.$disabled(),"p-invalid":e.invalid(),"p-variant-filled":e.$variant()==="filled","p-checkbox-sm p-inputfield-sm":e.size()==="small","p-checkbox-lg p-inputfield-lg":e.size()==="large"}],box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},be=(()=>{class e extends ce{name="checkbox";style=Te;classes=Ee;static \u0275fac=(()=>{let n;return function(t){return(n||(n=l(e)))(t||e)}})();static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})();var ke=new Q("CHECKBOX_INSTANCE"),Fe={provide:ne,useExisting:L(()=>xe),multi:!0},xe=(()=>{class e extends se{hostName="";value;binary;ariaLabelledBy;ariaLabel;tabindex;inputId;inputStyle;styleClass;inputClass;indeterminate=!1;formControl;checkboxIcon;readonly;autofocus;trueValue=!0;falseValue=!1;variant=z();size=z();onChange=new _;onFocus=new _;onBlur=new _;inputViewChild;get checked(){return this._indeterminate()?!1:this.binary?this.modelValue()===this.trueValue:ie(this.value,this.modelValue())}_indeterminate=$(void 0);checkboxIconTemplate;templates;_checkboxIconTemplate;focused=!1;_componentStyle=g(be);bindDirectiveInstance=g(f,{self:!0});$pcCheckbox=g(ke,{optional:!0,skipSelf:!0})??void 0;$variant=U(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());onAfterContentInit(){this.templates?.forEach(n=>{switch(n.getType()){case"icon":this._checkboxIconTemplate=n.template;break;case"checkboxicon":this._checkboxIconTemplate=n.template;break}})}onChanges(n){n.indeterminate&&this._indeterminate.set(n.indeterminate.currentValue)}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}updateModel(n){let o,t=this.injector.get(te,null,{optional:!0,self:!0}),i=t&&!this.formControl?t.value:this.modelValue();this.binary?(o=this._indeterminate()?this.trueValue:this.checked?this.falseValue:this.trueValue,this.writeModelValue(o),this.onModelChange(o)):(this.checked||this._indeterminate()?o=i.filter(r=>!oe(r,this.value)):o=i?[...i,this.value]:[this.value],this.onModelChange(o),this.writeModelValue(o),this.formControl&&this.formControl.setValue(o)),this._indeterminate()&&this._indeterminate.set(!1),this.onChange.emit({checked:o,originalEvent:n})}handleChange(n){this.readonly||this.updateModel(n)}onInputFocus(n){this.focused=!0,this.onFocus.emit(n)}onInputBlur(n){this.focused=!1,this.onBlur.emit(n),this.onModelTouched()}focus(){this.inputViewChild?.nativeElement.focus()}writeControlValue(n,o){o(n),this.cd.markForCheck()}static \u0275fac=(()=>{let n;return function(t){return(n||(n=l(e)))(t||e)}})();static \u0275cmp=p({type:e,selectors:[["p-checkbox"],["p-checkBox"],["p-check-box"]],contentQueries:function(o,t,i){if(o&1&&(N(i,ge,4),N(i,re,4)),o&2){let r;w(r=B())&&(t.checkboxIconTemplate=r.first),w(r=B())&&(t.templates=r)}},viewQuery:function(o,t){if(o&1&&G(Ce,5),o&2){let i;w(i=B())&&(t.inputViewChild=i.first)}},hostVars:5,hostBindings:function(o,t){o&2&&(T("data-p-highlight",t.checked)("data-p-checked",t.checked)("data-p-disabled",t.$disabled()),h(t.cn(t.cx("root"),t.styleClass)))},inputs:{hostName:"hostName",value:"value",binary:[2,"binary","binary",m],ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[2,"tabindex","tabindex",Z],inputId:"inputId",inputStyle:"inputStyle",styleClass:"styleClass",inputClass:"inputClass",indeterminate:[2,"indeterminate","indeterminate",m],formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[2,"readonly","readonly",m],autofocus:[2,"autofocus","autofocus",m],trueValue:"trueValue",falseValue:"falseValue",variant:[1,"variant"],size:[1,"size"]},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[K([Fe,be,{provide:ke,useExisting:e},{provide:ae,useExisting:e}]),H([f]),u],decls:5,vars:24,consts:[["input",""],["type","checkbox",3,"focus","blur","change","checked","pBind"],[3,"pBind"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","minus",3,"class","pBind",4,"ngIf"],[3,"class","ngClass","pBind",4,"ngIf"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],[3,"ngClass","pBind"],["data-p-icon","check",3,"pBind"],["data-p-icon","minus",3,"pBind"]],template:function(o,t){if(o&1){let i=R();E(0,"input",1,0),q("focus",function(k){return C(i),v(t.onInputFocus(k))})("blur",function(k){return C(i),v(t.onInputBlur(k))})("change",function(k){return C(i),v(t.handleChange(k))}),F(),E(2,"div",2),x(3,Be,3,2,"ng-container",3)(4,Ve,1,0,null,4),F()}o&2&&(P(t.inputStyle),h(t.cn(t.cx("input"),t.inputClass)),c("checked",t.checked)("pBind",t.ptm("input")),T("id",t.inputId)("value",t.value)("name",t.name())("tabindex",t.tabindex)("required",t.required()?"":void 0)("readonly",t.readonly?"":void 0)("disabled",t.$disabled()?"":void 0)("aria-labelledby",t.ariaLabelledBy)("aria-label",t.ariaLabel),d(2),h(t.cx("box")),c("pBind",t.ptm("box")),d(),c("ngIf",!t.checkboxIconTemplate&&!t._checkboxIconTemplate),d(),c("ngTemplateOutlet",t.checkboxIconTemplate||t._checkboxIconTemplate)("ngTemplateOutletContext",X(21,ve,t.checked,t.cx("icon"))))},dependencies:[ee,J,W,Y,M,he,pe,de,f],encapsulation:2,changeDetection:0})}return e})(),dn=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275mod=j({type:e});static \u0275inj=O({imports:[xe,M,M]})}return e})();export{he as a,xe as b,dn as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as U}from"./chunk-AL5RTE5M.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.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-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import{a as H}from"./chunk-YJTPDV4D.js";import{e as F}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-BLHKSSK6.js";import{m as J,n as G}from"./chunk-UI5ITL7Z.js";import{A as j,c as W,h as I,m as R}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{i as P,k,m as B}from"./chunk-LNJUGHOX.js";import{$b as M,Gb as x,Ha as h,Mc as i,Nc as V,Qc as f,Rc as C,Sc as b,Tc as O,Uc as D,Vc as _,Z as S,bc as N,gc as g,hc as e,hd as v,ic as t,id as y,jc as L,nb as d,qc as T,ra as E,vc as w,xa as p,xc as A,ya as m}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function q(r,l){if(r&1&&(e(0,"pre",21),i(1),v(2,"json"),t()),r&2){A();let Y=_(25);d(),V(y(2,1,Y))}}function z(r,l){r&1&&(e(0,"p",22),i(1," Your data will be shown here once it's available "),t())}var ce=(()=>{let l=class l{constructor(){this.httpService=E(F),this.selectedChannel=h(null),this.orderNumber=h(null)}initEscrowLog(){this.escrowLog$=this.httpService.post(H.GetEscrowDetail,{ChannelID:this.selectedChannel(),OrderNumber:this.orderNumber()}).pipe(S(1))}copyToClipboard(c){if(!c)return;let s=typeof c=="string"?c:JSON.stringify(c,null,2);navigator.clipboard.writeText(s),alert("Copied to clipboard!")}};l.\u0275fac=function(s){return new(s||l)},l.\u0275cmp=x({type:l,selectors:[["app-escrow-api"]],decls:40,vars:9,consts:[["headerTitle","Origin Escrow Api",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-success","btn-fill","me-3",3,"click"],[1,"fa","fa-search"],[1,"container-fluid","mt-8","px-10"],[1,"row"],[1,"col-7"],[1,"d-flex","align-items-center"],[1,"w-75"],[1,"mb-0","text-muted","fst-italic"],[1,"w-100"],[3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center","mt-3"],["type","text","placeholder","Order Number or Invoice Number",1,"form-control","rounded-1",2,"height","40px",3,"ngModelChange","ngModel"],[1,"row","mt-6"],[1,"col-12"],[1,"card"],[1,"card-header","d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click","disabled"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group","position-relative"],["id","escrowLogText"],[1,"text-center","my-12","text-muted"]],template:function(s,n){if(s&1){let a=T();e(0,"mainpanel",0)(1,"actions")(2,"button",1),w("click",function(){return p(a),m(n.initEscrowLog())}),L(3,"i",2),i(4," Search "),t()(),e(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h6"),i(12,"Channel"),t(),e(13,"p",8),i(14," View logs related to Escrow API "),t()(),e(15,"div",9)(16,"app-channel-options-v2",10),b("ngModelChange",function(o){return p(a),C(n.selectedChannel,o)||(n.selectedChannel=o),m(o)}),t()()(),e(17,"div",11)(18,"div",7)(19,"h6"),i(20,"Order Number"),t(),e(21,"p",8),i(22," Order or Invoice number from Channel. "),t()(),e(23,"div",9)(24,"input",12),b("ngModelChange",function(o){return p(a),C(n.orderNumber,o)||(n.orderNumber=o),m(o)}),t()()()()(),O(25),v(26,"async"),e(27,"div",13)(28,"div",14)(29,"div",15)(30,"div",16)(31,"h5"),i(32,"Response"),t(),e(33,"button",17),w("click",function(){p(a);let o=_(25);return m(n.copyToClipboard(o))}),i(34," Copy "),t()(),e(35,"div",18)(36,"div",19)(37,"div",20),M(38,q,3,3,"pre",21)(39,z,2,0,"p",22),t()()()()()()()()()}if(s&2){g("hideSearchBox",!0)("hideSearchDropdown",!0),d(16),f("ngModel",n.selectedChannel),d(8),f("ngModel",n.orderNumber),d();let a=D(y(26,6,n.escrowLog$));d(8),g("disabled",!a),d(5),N(a?38:39)}},dependencies:[B,j,W,I,R,G,J,U,P,k],styles:[".container-fluid[_ngcontent-%COMP%]{padding-bottom:1rem}#escrowLogText[_ngcontent-%COMP%]{white-space:pre-wrap;word-break:break-word}"]});let r=l;return r})();export{ce as EscrowApiComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as J}from"./chunk-J2BPOHP6.js";import{c as A}from"./chunk-BLHKSSK6.js";import{A as q}from"./chunk-L3W6SG2T.js";import{v as G,w as H}from"./chunk-SILAIDPV.js";import{c as z,e as B,f as j,l as Z,m as $,q as R}from"./chunk-LNJUGHOX.js";import{$b as v,$c as y,Gb as E,Hc as F,Mb as s,Mc as m,Nc as b,Oc as u,Pc as D,Tc as L,Uc as N,Vc as k,Zb as h,bc as C,gc as r,hc as l,hd as P,ic as c,id as w,jc as g,kd as U,lb as f,nb as n,nc as _,oc as x,qc as O,td as V,vc as T,xa as S,xc as p,ya as I,zb as M}from"./chunk-ZYJ6LAJ3.js";var Q=e=>({"border-bottom-0":e}),W=e=>({"border-bottom":e});function X(e,o){if(e&1){let t=O();_(0),l(1,"img",15),T("click",function(i){S(t);let d=p();return I(d.onZoomImage(i))}),c(),x()}if(e&2){let t=p();n(),r("ngSrc",t.image)("fill",!0)}}function Y(e,o){e&1&&g(0,"img",16),e&2&&r("fill",!0)}function ee(e,o){if(e&1&&(l(0,"div",17),g(1,"i",18),l(2,"span"),m(3),c()()),e&2){let t=p();n(3),b(t.code)}}function te(e,o){if(e&1&&(l(0,"div",11),m(1),P(2,"number"),c()),e&2){let t=p();n(),u("",w(2,1,t.totalChannel())," Listing")}}function ne(e,o){if(e&1&&(l(0,"div",25),m(1),P(2,"number"),c()),e&2){p();let t=k(7);n(),u(" (",w(2,1,t)," Listing) ")}}function ie(e,o){if(e&1&&(_(0),l(1,"div",29)(2,"div",30),m(3),c(),l(4,"div")(5,"a",31),g(6,"i",32),c()()(),x()),e&2){let t=o.$implicit,a=o.index,i=p().$implicit;n(),r("ngClass",y(4,W,a!==(i==null?null:i.Variants.length)-1)),n(2),D(" ",t.ProductName," - ",t.Name," "),n(2),r("href",t.URL,f)}}function oe(e,o){if(e&1&&(l(0,"div",19)(1,"h2",20)(2,"button",21)(3,"div",22),g(4,"img",23),l(5,"span",24),m(6),c(),L(7),v(8,ne,3,3,"div",25),c()()(),l(9,"div",26)(10,"div",27),s(11,ie,7,6,"ng-container",28),c()()()),e&2){let t=o.$implicit,a=o.index,i=p();r("ngClass",y(12,Q,i.channels.length-1==a)),n(),r("id","heading"+a+i.id),n(),h("data-bs-target","#collapse"+a+i.id)("aria-controls","#collapse"+a+i.id),n(2),r("src",i.getChannelLogo(t.TypeID),f),n(),r("matTooltip",(t==null||t.ChannelName==null?null:t.ChannelName.length)>30?t.ChannelName:""),n(),b(t.ChannelName),n();let d=N(t==null||t.Variants==null?null:t.Variants.length);n(),C(d>1&&(i.channels==null?null:i.channels.length)>1?8:-1),n(),r("id","collapse"+a+i.id),h("aria-labelledby","heading"+a+i.id),n(2),r("ngForOf",t.Variants)}}var he=(()=>{let o=class o{constructor(a){this.biggerPictureService=a,this.totalChannel=V(0)}getChannelLogo(a){return A.getChannelLogoByTypeId(a)}onZoomImage(a){this.biggerPictureService.openBiggerPicture(a,this.imageForZoom)}};o.\u0275fac=function(i){return new(i||o)(M(J))},o.\u0275cmp=E({type:o,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",imageForZoom:"imageForZoom",title:"title",code:"code",channels:"channels",totalChannel:[1,"totalChannel"],id:"id"},decls:17,vars:6,consts:[["elsePic",""],[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],["class","description",4,"ngIf"],[1,"fs-5"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],["class","accordion-item border-start-0 border-end-0",3,"ngClass",4,"ngFor","ngForOf"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"click","ngSrc","fill"],["ngSrc","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload",3,"fill"],[1,"description"],[1,"fa","fa-barcode","me-2"],[1,"accordion-item","border-start-0","border-end-0",3,"ngClass"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],[1,"fs-4","ms-2"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"ngClass"],[1,"text-ellipsis"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"]],template:function(i,d){if(i&1&&(l(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),s(6,X,2,2,"ng-container",7)(7,Y,1,1,"ng-template",null,0,U),c()()(),l(9,"div",8)(10,"h4",9),m(11),c(),s(12,ee,4,1,"div",10),v(13,te,3,3,"div",11),c()()(),l(14,"div",12)(15,"div",13),s(16,oe,12,14,"div",14),c()()()),i&2){let K=F(8);n(6),r("ngIf",d.image)("ngIfElse",K),n(5),u(" ",d.title," "),n(),r("ngIf",d.code),n(),C(d.totalChannel()?13:-1),n(3),r("ngForOf",d.channels)}},dependencies:[$,z,B,j,q,H,G,R,Z],styles:[`.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}`]});let e=o;return e})();export{he as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as l}from"./chunk-4ILDFTIG.js";import{Gb as a,Kb as c,Oa as r,mc as s,za as i}from"./chunk-ZYJ6LAJ3.js";var p=["data-p-icon","angle-right"],d=(()=>{class e extends l{static \u0275fac=(()=>{let t;return function(o){return(t||(t=r(e)))(o||e)}})();static \u0275cmp=a({type:e,selectors:[["","data-p-icon","angle-right"]],features:[c],attrs:p,decls:1,vars:0,consts:[["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(n,o){n&1&&(i(),s(0,"path",0))},encapsulation:2})}return e})();export{d as a};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as ne,b as oe,c as re,d as ae,e as le,f as pe,g as se}from"./chunk-XUBQATMN.js";import{b as ie}from"./chunk-222IOSGU.js";import{a as X}from"./chunk-6XT3JSG5.js";import"./chunk-B4QCGMST.js";import"./chunk-6Q6L5NUD.js";import"./chunk-ONU4O7N2.js";import{a as Y,b as Z}from"./chunk-PS43OK3J.js";import"./chunk-N5AE5WMQ.js";import{i as Q}from"./chunk-5O33CV4F.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-YJTPDV4D.js";import{e as J}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-BLHKSSK6.js";import{m as ee,n as te}from"./chunk-UI5ITL7Z.js";import{A as q,c as G,h as z,m as K}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{E as W,G as j,I as $,e as w,f as V,g as A,m as H}from"./chunk-LNJUGHOX.js";import{$c as x,Gb as C,Hb as k,Hc as v,Mb as c,Mc as m,Nc as O,Oc as B,Qc as L,Rc as F,Sc as R,Zc as P,gc as s,hc as o,ic as r,jc as d,kb as N,ma as D,na as T,nb as p,nc as f,oc as _,qa as U,qc as S,sb as M,vc as y,xa as g,xc as u,ya as h,zb as I}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var ge=e=>[e];function he(e,t){if(e&1&&(f(0),o(1,"a",9),m(2),r(),_()),e&2){let a=t.$implicit;p(),s("routerLink",x(2,ge,a.url)),p(),B(" ",a.title)}}var ce=(()=>{let t=class t{constructor(){this.tabs=[{Title:"Download By Url",Url:"/menu/products/download/by-url",Description:"Download products information by product URL as a parameter"}],this.moreMenu=[{title:"Sold In Channel",url:"/menu/products/status/sold-in-channel"},{title:"In POS",url:"/menu/products/status/in-pos"},{title:"Not In Channel",url:"/menu/products/status/not-in-channel"},{title:"Duplicate SKU",url:"/menu/products/status/duplicate-sku"}]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=C({type:t,selectors:[["app-download"]],standalone:!1,decls:12,vars:2,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid","d-flex","align-items-center","justify-content-between"],[3,"Tabs"],[1,"dropdown","me-6"],["role","button","data-bs-toggle","dropdown","aria-expanded","false",1,"text-dark"],[1,"fa-solid","fa-bars","fa-lg"],[1,"dropdown-menu","dropdown-menu-end","row"],[1,"d-block"],[4,"ngFor","ngForOf"],[1,"dropdown-item",3,"routerLink"]],template:function(i,l){i&1&&(o(0,"nav",0)(1,"div",1)(2,"div"),d(3,"nav-tab",2),r()(),o(4,"div")(5,"div",3)(6,"a",4),d(7,"i",5),r(),o(8,"div",6)(9,"div",7),c(10,he,3,4,"ng-container",8),r()()()()(),d(11,"router-outlet")),i&2&&(p(3),s("Tabs",l.tabs),p(7),s("ngForOf",l.moreMenu))},dependencies:[w,Y,W,j],encapsulation:2});let e=t;return e})();var E=(()=>{let t=class t{constructor(n){this.httpService=n}download(n){return this.httpService.post("/api/Product/downloadurl",n)}};t.\u0275fac=function(i){return new(i||t)(U(J))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Ce=e=>({"background-color":e});function ye(e,t){if(e&1&&(o(0,"th"),m(1),r()),e&2){let a=t.$implicit;p(),O(a.column)}}function ve(e,t){if(e&1&&(f(0),o(1,"td"),d(2,"span",6),r(),_()),e&2){let a=t.$implicit,n=u().$implicit;p(2),s("innerHTML",n[a.prop],N)}}function xe(e,t){if(e&1&&(o(0,"tr",5),c(1,ve,3,1,"ng-container",3),r()),e&2){let a=t.$implicit,n=u();s("ngStyle",x(2,Ce,a.Status>200?"#F4D6D5":"#DEE9C9")),p(),s("ngForOf",n.configs)}}var de=(()=>{let t=class t{constructor(){this.eventClose=new M}ngOnInit(){}onClose(){this.eventClose.emit()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=C({type:t,selectors:[["app-response-api-list"]],inputs:{configs:"configs",data:"data",status:"status"},outputs:{eventClose:"onClose"},standalone:!1,decls:7,vars:2,consts:[[1,"table-responsive"],[1,"table"],[1,"thead-light"],[4,"ngFor","ngForOf"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[3,"innerHTML"]],template:function(i,l){i&1&&(o(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr"),c(4,ye,2,1,"th",3),r()(),o(5,"tbody"),c(6,xe,2,4,"tr",4),r()()()),i&2&&(p(4),s("ngForOf",l.configs),p(2),s("ngForOf",l.data))},dependencies:[w,A],encapsulation:2});let e=t;return e})();function be(e,t){if(e&1){let a=S();f(0),o(1,"button",15),y("click",function(){g(a);let i=u(),l=v(11);return h(i.onNewStepperState(l))}),d(2,"i",16),m(3," New "),r(),_()}}function Ee(e,t){if(e&1){let a=S();f(0),o(1,"button",15),y("click",function(){g(a),u();let i=v(11);return h(i.previous())}),m(2," Back "),r(),_()}}function Ie(e,t){if(e&1){let a=S();f(0),o(1,"button",17),y("click",function(){g(a);let i=u(),l=v(11);return h(i.onStepperNext(l))}),m(2," Next "),r(),_()}}function De(e,t){if(e&1){let a=S();f(0),o(1,"button",18),y("click",function(){g(a);let i=u(),l=v(11);return h(i.onSubmit(l))}),m(2,"Download"),r(),_()}if(e&2){let a=u();p(),s("disabled",!a.urls)}}function Te(e,t){e&1&&(d(0,"i",19),o(1,"span"),m(2,"Instruction"),r())}function Ue(e,t){e&1&&(o(0,"div",20)(1,"div",21)(2,"div",22)(3,"h4",23),m(4,"Note"),r()(),o(5,"div",24)(6,"ol",25)(7,"li"),m(8," Use this form to Download Products from Tokopedia using product URL "),r(),o(9,"li"),m(10," Copy Product URL from "),o(11,"a",26),m(12,"https://seller.tokopedia.com/ "),r(),m(13," and paste in this form "),r(),o(14,"li"),m(15," Use New Line when you want to input several product URLs "),r()()()()())}function Ne(e,t){e&1&&(d(0,"i",27),o(1,"span"),m(2,"Download"),r())}function Me(e,t){if(e&1){let a=S();o(0,"div",20)(1,"textarea",28),R("ngModelChange",function(i){g(a);let l=u();return F(l.urls,i)||(l.urls=i),h(i)}),r()()}if(e&2){let a=u();p(),s("placeholder",a.urlPlaceholder),L("ngModel",a.urls)}}function ke(e,t){e&1&&(d(0,"i",29),o(1,"span"),m(2,"Finish"),r())}function Oe(e,t){if(e&1&&(o(0,"div",20),d(1,"app-response-api-list",30),r()),e&2){let a=u();p(),s("data",a.downloadResponses)("configs",a.configs)}}function Be(e,t){e&1&&(o(0,"h6"),m(1,"1"),r())}function Le(e,t){e&1&&(o(0,"h6"),m(1,"2"),r())}function Fe(e,t){e&1&&(o(0,"h6"),m(1,"3"),r())}var ue=(()=>{let t=class t{constructor(n,i){this.downloadService=n,this.authService=i,this.configs=[{column:"Url",prop:"URL"},{column:"POS",prop:"Name"},{column:"Exception",prop:"Message"}],this.downloadResponses=[],this.stepperState="DOWNLOAD",this.urlPlaceholder=`https://tokopedia.com/tokoriyanadi/kaos-polos-biru
|
|
2
|
+
https://tokopedia.com/tokoriyanadi/Celana-Chinos-Coklat`,this.currentDomain=this.authService.getDomain()}onStepperChange(n){this.stepperState=n.selectedStep.state}onSubmit(n){let i=this.urls.split(/\r?\n/);this.downloadService.download(i).subscribe(l=>{this.downloadResponses=l,this.mappingLinkToProduct(),this.onStepperNext(n)})}mappingLinkToProduct(){this.downloadResponses=this.downloadResponses.map(n=>(n.Name=n?.Name?`<a href="${this.currentDomain}/menu/Products/Catalog/Products/Info?ID=${n.ID}" target="_blank">
|
|
3
|
+
${n?.Name}
|
|
4
|
+
</a>`:"-",n))}onNewStepperState(n){this.downloadResponses=[],this.urls=null,this.stepperState="DOWNLOAD",n.reset(),this.onStepperNext(n)}onStepperNext(n){n.selected.completed=!0,n.next()}};t.\u0275fac=function(i){return new(i||t)(I(E),I(Q))},t.\u0275cmp=C({type:t,selectors:[["app-by-url"]],standalone:!1,features:[P([{provide:ne,useValue:{displayDefaultIndicatorType:!1}}])],decls:24,vars:11,consts:[["stepper",""],["headerTitle","Tokopedia - Product Download By Url",3,"hideSearchBox","hideSearchDropdown"],[4,"ngIf"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],["linear","",1,"stepper-downloadByUrl",3,"selectionChange","selectedIndex"],["state","GUIDE",3,"editable","completed"],["matStepLabel",""],["matStepContent",""],["state","DOWNLOAD",3,"editable","completed"],["state","FINISH"],["matStepperIcon","GUIDE"],["matStepperIcon","DOWNLOAD"],["matStepperIcon","FINISH"],[1,"btn","btn-outline-secondary","btn-fill","btn-lg",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt","me-2"],["type","button",1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-3",3,"click"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","text-white","ms-3",3,"click","disabled"],[1,"fa-solid","fa-info","me-3"],[1,"mt-8"],[1,"card","border","w-50"],[1,"card-header","py-6"],[1,"text-primary"],[1,"card-body",2,"padding-left","0px"],[1,"mt-6"],["href","https://seller.tokopedia.com","target","_blank"],[1,"fa-solid","fa-download","me-3"],["name","url","cols","30","rows","25",1,"form-control",3,"ngModelChange","placeholder","ngModel"],[1,"fa-sharp","fa-solid","fa-flag","me-3"],["status","error",3,"data","configs"]],template:function(i,l){if(i&1){let fe=S();o(0,"mainpanel",1)(1,"actions"),c(2,be,4,0,"ng-container",2)(3,Ee,3,0,"ng-container",2)(4,Ie,3,0,"ng-container",2)(5,De,3,1,"ng-container",2),r(),o(6,"content")(7,"div",3)(8,"div",4)(9,"div",5)(10,"mat-stepper",6,0),y("selectionChange",function(_e){return g(fe),h(l.onStepperChange(_e))}),o(12,"mat-step",7),c(13,Te,3,0,"ng-template",8)(14,Ue,16,0,"ng-template",9),r(),o(15,"mat-step",10),c(16,Ne,3,0,"ng-template",8)(17,Me,2,2,"ng-template",9),r(),o(18,"mat-step",11),c(19,ke,3,0,"ng-template",8)(20,Oe,2,2,"ng-template",9),r(),c(21,Be,2,0,"ng-template",12)(22,Le,2,0,"ng-template",13)(23,Fe,2,0,"ng-template",14),r()()()()()()}i&2&&(s("hideSearchBox",!0)("hideSearchDropdown",!0),p(2),s("ngIf",l.stepperState=="FINISH"),p(),s("ngIf",l.stepperState=="DOWNLOAD"),p(),s("ngIf",l.stepperState=="GUIDE"),p(),s("ngIf",l.stepperState=="DOWNLOAD"),p(5),s("selectedIndex",1),p(2),s("editable",l.stepperState!="FINISH")("completed",!0),p(3),s("editable",l.stepperState!="FINISH")("completed",!1))},dependencies:[V,G,z,K,ee,le,oe,pe,re,ae,de],styles:[`@import"https://fonts.googleapis.com/icon?family=Material+Icons";.card-header{background-color:#00000008}mat-stepper.stepper-downloadByUrl>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container{position:relative;width:60%;left:18%}
|
|
5
|
+
`],encapsulation:2});let e=t;return e})();var Re=[{path:"",component:ce,children:[{path:"by-url",component:ue,data:{title:"Download Product By Url"},canActivate:[X]},{pathMatch:"full",path:"",redirectTo:"by-url"}]}],dt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=k({type:t}),t.\u0275inj=T({providers:[E],imports:[H,q,Z,te,se,ie,$.forChild(Re)]});let e=t;return e})();export{dt as DownloadModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Le}from"./chunk-AXC6LM6T.js";import{c as Fe,d as De,e as Me}from"./chunk-7U32FNM2.js";import{a as be}from"./chunk-IO2TWJDO.js";import"./chunk-55BTWXFX.js";import"./chunk-FULVA6QB.js";import"./chunk-PZB3GQWT.js";import"./chunk-B4QCGMST.js";import{a as N}from"./chunk-ISMIPSYN.js";import{a as Ne,b as ke,c as Re,d as W,e as U}from"./chunk-IZZQQW5G.js";import{a as Te,b as Ee}from"./chunk-MQXW3UAW.js";import"./chunk-63I3I3MX.js";import{a as Ie}from"./chunk-3LU2SFN4.js";import"./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"./chunk-5YBWBAQS.js";import"./chunk-37NOSLQL.js";import{a as _e}from"./chunk-ZSUWHVKX.js";import"./chunk-N5AE5WMQ.js";import{a as ve}from"./chunk-J2BPOHP6.js";import"./chunk-34UF36YY.js";import{d as xe,e as fe}from"./chunk-6KWG6O5L.js";import{a as Ve}from"./chunk-AL5RTE5M.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.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{i as ue}from"./chunk-5O33CV4F.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-YJTPDV4D.js";import{b as de,e as he}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as me}from"./chunk-BLHKSSK6.js";import{d as Se,l as Pe,m as ye,n as we}from"./chunk-UI5ITL7Z.js";import{A as pe,b as ae,c as re,h as le,m as ce,o as se}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{b as ge,c as Ce}from"./chunk-ZETUYNFJ.js";import"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{c as ee,f as te,i as ne,l as M,m as ie,p as oe}from"./chunk-LNJUGHOX.js";import{$b as w,$c as E,G as $,Gb as G,Ha as H,Hc as J,Mb as y,Mc as d,Nc as O,Oc as T,Qc as f,Rc as S,Sc as P,Wc as Z,Z as j,Zc as Q,bc as I,cc as R,ea as z,ec as L,fc as B,gc as m,hc as a,hd as b,ic as l,id as V,jc as F,jd as X,kd as Y,lb as D,nb as c,nc as K,oc as q,qc as x,ra as k,vc as C,xa as p,xc as r,ya as _,zb as u}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var A=i=>[i],Ae=i=>({"text-decoration-line-through":i}),$e=i=>({"bg-gradient-warning":i});function je(i,s){if(i&1){let n=x();a(0,"button",16),C("click",function(){p(n);let t=r().ngIf,o=r(2);return _(o.updateStock(t))}),F(1,"i",17),d(2," Update "),l()}}function ze(i,s){if(i&1){let n=x();a(0,"actions")(1,"div",12),y(2,je,3,0,"button",13),a(3,"button",14),C("click",function(){p(n);let t=r(2);return _(t.openExportDialog())}),F(4,"i",15),a(5,"span"),d(6,"Export"),l()()()()}if(i&2){let n=s.ngIf,e=r(2);c(2),m("ngIf",e.productService.hasSelectionVariant(n))}}function He(i,s){if(i&1){let n=x();a(0,"th")(1,"input",32),C("change",function(t){p(n);let o=r().ngIf,h=r(2);return _(h.onSelectAllSKU(t.target.checked,o))}),l()()}}function Ge(i,s){if(i&1){let n=x();a(0,"input",49),P("ngModelChange",function(t){p(n);let o=r(4).$implicit;return S(o.selected,t)||(o.selected=t),_(t)}),C("ngModelChange",function(){p(n);let t=r(4).$implicit,o=r(3);return _(o.onCheckboxStateProduct(t))}),l()}if(i&2){let n=r(4).$implicit;f("ngModel",n.selected)}}function Ke(i,s){if(i&1&&y(0,Ge,1,1,"ng-template",26),i&2){let n=r(6);m("ngxPermissionsOnly",E(1,A,n.rolePriceEdit))}}function qe(i,s){if(i&1){let n=x();K(0),a(1,"img",50),C("click",function(t){p(n);let o=r(3).$implicit,h=r(3);return _(h.onZoomImage(t,o==null?null:o.ImageUrl))}),l(),q()}if(i&2){let n=r(3).$implicit;c(),m("src",Z(n.ThumbnailUrl),D)}}function Je(i,s){i&1&&F(0,"img",51)}function Ze(i,s){if(i&1&&(a(0,"small",48),d(1),l()),i&2){let n=r(3).$implicit;c(),T("(",n.Category,")")}}function Qe(i,s){if(i&1&&(a(0,"td",44)(1,"div",35),w(2,Ke,1,3,null,26),a(3,"div"),y(4,qe,2,2,"ng-container",45)(5,Je,1,0,"ng-template",null,0,Y),l()()(),a(7,"td",46)(8,"span",47),d(9),l(),w(10,Ze,2,1,"small",48),l()),i&2){let n=J(6),e=r(2).$implicit;m("rowSpan",e.Variants.length),c(2),I((e.Variants==null?null:e.Variants.length)>1?2:-1),c(2),m("ngIf",e.ThumbnailUrl)("ngIfElse",n),c(3),m("rowSpan",e.Variants.length),c(2),O(e.Name),c(),I(e.Category?10:-1)}}function Xe(i,s){if(i&1){let n=x();a(0,"input",54),P("ngModelChange",function(t){p(n);let o=r(2).$implicit;return S(o.selected,t)||(o.selected=t),_(t)}),l()}if(i&2){let n=r(2).$implicit;f("ngModel",n.selected)}}function Ye(i,s){if(i&1&&(a(0,"td",52),w(1,Xe,1,1,"input",53),l()),i&2){let n=r().$implicit;c(),I(n.UnitPrice>=0?1:-1)}}function et(i,s){i&1&&(a(0,"div",36),d(1," Not Found "),l())}function tt(i,s){if(i&1&&(a(0,"div"),d(1),b(2,"number"),l()),i&2){let n=r().$implicit;c(),T(" ",V(2,1,n.UnitPrice)," ")}}function nt(i,s){if(i&1&&(a(0,"div",37)(1,"a",40),F(2,"i",55),l()()),i&2){let n=r().$implicit,e=r(4);c(),m("href",e.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(n==null?null:n.ID),D)}}function it(i,s){if(i&1){let n=x();a(0,"div",56),C("click",function(){p(n);let t=r().$implicit,o=r().$implicit,h=r(2).ngIf,g=r();return _(g.openTableDialog(t,o,h))}),d(1),b(2,"number"),l()}if(i&2){let n=r().$implicit;c(),T(" ",V(2,1,n.Channel[0]==null?null:n.Channel[0].Price)," ")}}function ot(i,s){if(i&1){let n=x();a(0,"tr",33),w(1,Qe,11,7),a(2,"td",24),d(3),l(),a(4,"td",27)(5,"span",34),d(6),l()(),y(7,Ye,2,1,"ng-template",26),a(8,"td",27)(9,"div",35),w(10,et,2,0,"div",36),w(11,tt,3,3,"div"),w(12,nt,3,1,"div",37),l()(),a(13,"td",38)(14,"div",35),w(15,it,3,3,"div",39),a(16,"div",37)(17,"a",40),F(18,"i",41),l()(),a(19,"div",37)(20,"div",42),C("click",function(){let t=p(n).$implicit,o=r(4);return _(o.refreshPrice(t))}),F(21,"i",43),l()()()()()}if(i&2){let n=s.$implicit,e=s.$index,t=r(4);c(),I(e==0?1:-1),c(2),O(n.Model),c(2),m("matTooltip",n.Discontinued?t.discontinuedVariantMsg:"")("ngClass",E(12,Ae,n.Discontinued)),c(),T(" ",n.Code," "),c(),m("ngxPermissionsOnly",E(14,A,t.rolePriceEdit)),c(3),I((n.Channel[0]==null?null:n.Channel[0].Description)!=null?10:-1),c(),I((n.Channel[0]==null?null:n.Channel[0].Description)==null?11:-1),c(),I((n.Channel[0]==null?null:n.Channel[0].Description)==null?12:-1),c(),m("ngClass",E(16,$e,n.UnitPrice!=(n.Channel[0]==null?null:n.Channel[0].Price))),c(2),I(n.Channel.length>0?15:-1),c(2),m("href",n.Channel[0]==null?null:n.Channel[0].Url,D)}}function at(i,s){if(i&1&&L(0,ot,22,18,"tr",33,R),i&2){let n=s.$implicit;B(n.Variants)}}function rt(i,s){if(i&1){let n=x();a(0,"content")(1,"div",18)(2,"div",19)(3,"table",20)(4,"thead",21)(5,"tr")(6,"th",22),d(7," Product "),a(8,"div")(9,"mat-slide-toggle",23),P("ngModelChange",function(t){p(n);let o=r(2);return S(o.toggleDifferentInventory,t)||(o.toggleDifferentInventory=t),_(t)}),C("toggleChange",function(){p(n);let t=r(2);return _(t.onToggleDifferentInventory())}),a(10,"small",9),d(11,"FILTER DIFFERENT PRICE"),l()()()(),a(12,"th",24),d(13,"Variant"),l(),a(14,"th",25),d(15,"SKU"),l(),y(16,He,2,0,"ng-template",26),a(17,"th",27),d(18,"POS"),l(),a(19,"th",27)(20,"div",28),C("click",function(){p(n);let t=r(2);return _(t.openModalFilter())}),F(21,"img",29),a(22,"span",30),d(23),b(24,"stringLimit"),l()()()()(),a(25,"tbody"),L(26,at,2,0,null,null,R),l()(),a(28,"infinite-paginator",31),b(29,"async"),C("onNextPage",function(){p(n);let t=r(2);return _(t.infinitePagination.onNextPage(t.searchFilter))})("onLastPage",function(){p(n);let t=r(2);return _(t.infinitePagination.onLastPage(t.searchFilter))})("onGetRowCount",function(){p(n);let t=r(2);return _(t.infinitePagination.getRowCount(t.searchFilter))}),l()()()()}if(i&2){let n=s.ngIf,e=r(2);c(9),f("ngModel",e.toggleDifferentInventory),c(7),m("ngxPermissionsOnly",E(16,A,e.rolePriceEdit)),c(4),m("matTooltip",(e.selectedChannel==null||e.selectedChannel.Name==null?null:e.selectedChannel.Name.length)>=20?e.selectedChannel==null?null:e.selectedChannel.Name:""),c(),m("src",e.selectedChannel==null?null:e.selectedChannel.Img,D),c(2),T(" ",X(24,11,e.selectedChannel==null?null:e.selectedChannel.Name,20)," "),c(3),B(n),c(2),m("totalData",e.infinitePagination.totalData())("hideCount",e.infinitePagination.hideCount())("rowCount",V(29,14,e.infinitePagination.totalRowCount$))("pageNumber",e.infinitePagination.pageNumber())("disableNextButton",e.infinitePagination.disableNextButton())("goToLastPage",e.infinitePagination.isLastPage())}}function lt(i,s){if(i&1){let n=x();a(0,"mainpanel",2),P("textChange",function(t){p(n);let o=r();return S(o.searchFilter.text,t)||(o.searchFilter.text=t),_(t)}),C("onSubmit",function(){p(n);let t=r();return _(t.onSearch())}),a(1,"filters")(2,"div",3)(3,"label",4),d(4,"Channel"),l(),a(5,"app-channel-options-v2",5),P("ngModelChange",function(t){p(n);let o=r();return S(o.searchFilter.ChannelID,t)||(o.searchFilter.ChannelID=t),_(t)}),l()(),a(6,"div",3)(7,"label",4),d(8,"Number Filter Comparator"),l(),a(9,"ng-select",6),P("ngModelChange",function(t){p(n);let o=r();return S(o.searchFilter.NumberFilterComparator,t)||(o.searchFilter.NumberFilterComparator=t),_(t)}),l()(),a(10,"div",3)(11,"label",4),d(12,"Search Type"),l(),a(13,"div",7)(14,"radio-options",8),P("ngModelChange",function(t){p(n);let o=r();return S(o.searchFilter.SearchType,t)||(o.searchFilter.SearchType=t),_(t)}),l()()(),a(15,"div",3)(16,"label",9),d(17,"Page Number"),l(),a(18,"input",10),P("ngModelChange",function(t){p(n);let o=r();return S(o.searchFilter.PageNumber,t)||(o.searchFilter.PageNumber=t),_(t)}),l()(),a(19,"div")(20,"label",9),d(21,"Page Size"),l(),a(22,"input",10),P("ngModelChange",function(t){p(n);let o=r();return S(o.searchFilter.RowCount,t)||(o.searchFilter.RowCount=t),_(t)}),l()()(),y(23,ze,7,1,"actions",11),b(24,"async"),y(25,rt,30,18,"content",11),b(26,"async"),l()}if(i&2){let n=s.ngIf,e=r();m("headerTitle",e.pageTitle),f("text",e.searchFilter.text),m("searchBoxPlaceHolder",e.searchPlaceholder()),c(5),f("ngModel",e.searchFilter.ChannelID),c(4),m("items",n==null||n.Options==null?null:n.Options.SearchComparatorTypeOptions),f("ngModel",e.searchFilter.NumberFilterComparator),c(5),m("options",n==null||n.Options==null?null:n.Options.SearchSKUOnlyOrSKUNameOptions),f("ngModel",e.searchFilter.SearchType),c(4),f("ngModel",e.searchFilter.PageNumber),c(4),f("ngModel",e.searchFilter.RowCount),c(),m("ngIf",V(24,12,e.data$)),c(2),m("ngIf",V(26,14,e.data$))}}var Kt=(()=>{let s=class s{constructor(e,t,o,h,g,v,Be,Oe,We,Ue){this.http=e,this.toastr=t,this.dialog=o,this.productService=h,this.biggerPictureService=g,this.authService=v,this.mainPanelService=Be,this.exportService=Oe,this.decimalPipe=We,this.placeholderService=Ue,this.infinitePagination=k(W),this.updateResHandling=k(U),this.pageTitle="Price Single Channel Comparison",this.toggleDifferentInventory=!1,this.loaderEndpoint="PriceLoader/Load",this.dataEndpoint="Price/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.rolePriceEdit=_e.PriceUpdate,this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.searchPlaceholder=H("Search ..."),this.hostName=this.authService.getDomain(),this.data$=this.infinitePagination.data$.pipe(j(1)),this.channelOptions=v.getChannels()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.dataEndpoint,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`).pipe(z(e=>{this.searchFilter=e.Filter,this.searchFilter.filterModel=N.ALL,this.initSearchPlaceholder(),this.infinitePagination.reloadPagination(this.searchFilter),this.initSelectedChannel()}))}initSearchPlaceholder(){this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(this.searchFilter.SearchType,this.searchFilter.NumberFilterComparator))}onToggleDifferentInventory(){this.toggleDifferentInventory?this.searchFilter.filterModel=N.ALL:this.searchFilter.filterModel=N.DIFFERENCE,this.onSearch()}onCheckboxStateProduct(e){e.Variants=e.Variants.map(t=>(t.selected=e.selected,t))}openModalFilter(){this.mainPanelService.openModalFilter()}updateStock(e){let o=this.productService.selectedVariantProduct(e).map(g=>({ID:g.ID,ChannelID:g.Channel[0].ChannelID,Code:g.Code,Price:g.UnitPrice})),h={ListChannelID:[this.searchFilter.ChannelID],ListPrice:o};this.http.post("/api/Price/UpdateChannel",h).subscribe(g=>{this.onSearch(),this.handlingUpdateStock(g.Response)})}handlingUpdateStock(e){if(e.success_list?.length>0||e.failure_list?.length>0){let t=e.failure_list,o=e.success_list;this.updateResHandling.responseHandling(o,t,"Price")}else this.toastr.error(e[0]?.Exception,"Error")}refreshPrice(e){let t={ChannelItemID:e?.Channel[0].ChannelItemID,ChannelVariationID:e?.Channel[0]?.ChannelVariationID,ChannelID:e?.Channel[0]?.ChannelID,VariantID:e.ID};this.http.post("/api/Price/RefreshPriceChannel",t).subscribe(o=>{this.toastr.success("Successfully updated","Success"),this.onSearch()})}onSearch(){this.infinitePagination.reloadPagination(this.searchFilter),this.initSelectedChannel(),this.initSearchPlaceholder()}openTableDialog(e,t,o){let h=JSON.parse(JSON.stringify(e));this.dialog.open(Ne,{data:{Name:t.Name,Variant:h,ChannelID:h?.Channel[0]?.ChannelID,Table:"price",ChannelItemID:h?.Channel[0]?.ChannelItemID}}).afterClosed().pipe($(v=>me.IsNotEmpty(v))).subscribe(v=>{this.updateItemAfterDialog(v,e)})}updateItemAfterDialog(e,t){let o={ID:e.ChannelID,ChannelItemID:e.ChannelItemID,ChannelVariantID:e.ChannelVariationID,Price:parseFloat(e.Price),VariantID:e.ID,SKU:e.Sku};this.http.post("/api/Price/UpdatePriceByID",o).subscribe(h=>{let g=this.productService.findChannelById(o.ID,this.channelOptions),v=o.Price?this.decimalPipe.transform(o.Price):o.Price;this.toastr.success(`Successfully updated ${e.ItemName} (${e.VarName}) price in ${g.Name} to ${v}`,"Success"),t.Channel[0]&&(t.Channel[0].Price=o.Price),this.infinitePagination.reloadPagination(this.searchFilter)})}initSelectedChannel(){this.selectedChannel=this.channelOptions.find(e=>e.ID==this.searchFilter.ChannelID)}onSelectAllSKU(e,t){t=t.map(o=>(o.Variants=o.Variants.map(h=>(h.selected=e,h)),o))}onZoomImage(e,t){this.biggerPictureService.openBiggerPicture(e,t)}openExportDialog(){this.dialog.open(Me,{data:{title:"Export Price Single Channel Comparison",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:this.rowCountApi,exportApi:"price/GetExportSingleChannelComparison"}}).afterClosed().subscribe()}};s.\u0275fac=function(t){return new(t||s)(u(he),u(de),u(Se),u(Ie),u(ve),u(ue),u(Pe),u(De),u(M),u(Fe))},s.\u0275cmp=G({type:s,selectors:[["app-price-single-channel"]],features:[Q([W,Le,oe("https://resc.cloudinary.com/"),M,U])],decls:2,vars:3,consts:[["elsePic",""],["class","single-price",3,"headerTitle","text","searchBoxPlaceHolder","textChange","onSubmit",4,"ngIf"],[1,"single-price",3,"textChange","onSubmit","headerTitle","text","searchBoxPlaceHolder"],[1,"mb-5"],[1,"fw-bold","mb-2"],[3,"ngModelChange","ngModel"],["bindLabel","Value","bindValue","Key","placeholder","Number Filter Comparator","name","numberFilterComparator","appendTo","body",3,"ngModelChange","items","ngModel"],[1,"border","border-1","rounded-1","p-4"],[3,"ngModelChange","options","ngModel"],[1,"fw-bold"],["type","number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[4,"ngIf"],[1,"d-flex"],["class","btn btn-success",3,"click",4,"ngIf"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"btn","btn-success",3,"click"],[1,"fas","fa-chevron-circle-up"],[1,"container-fluid","mt-5"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"text-center","ps-12",2,"width","36%"],["name","differentInventory",3,"ngModelChange","toggleChange","ngModel"],[1,"text-start"],[1,"text-end",2,"width","20%"],[3,"ngxPermissionsOnly"],[1,"text-end"],["role","button","matTooltipPosition","above",1,"d-inline-block",3,"click","matTooltip"],[2,"width","16px",3,"src"],[1,"ms-1"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],["type","checkbox",1,"me-3",3,"change"],[1,"w-100"],["matTooltipPosition","above",3,"matTooltip","ngClass"],[1,"d-flex","align-items-center","justify-content-end"],["matTooltip","This product is no longer available in POS","matTooltipPosition","above",1,"text-danger"],[1,"ms-3"],[1,"text-end",3,"ngClass"],[2,"cursor","pointer"],["target","_blank",3,"href"],[1,"fas","external-link-custom","fa-solid","fa-arrow-up-right-from-square"],["matTooltip","Refresh Unit Price according to seller center",1,"pl-5","cursor-pointer",2,"color","var(--bs-link-color)",3,"click"],[1,"fas","external-link-custom","fa-sync","fa-lg"],[1,"text-start",2,"width","0%",3,"rowSpan"],[4,"ngIf","ngIfElse"],[1,"text-start",3,"rowSpan"],[1,"item-name","mb-0"],[1,"d-block"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel"],["loading","lazy",1,"border","rounded","w-img","cursor-pointer",2,"margin-left","8px",3,"click","src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png","loading","lazy",1,"border","rounded","w-img",2,"margin-left","8px"],[1,"align-middle"],["type","checkbox",3,"ngModel"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[2,"cursor","pointer",3,"click"]],template:function(t,o){t&1&&(y(0,lt,27,16,"mainpanel",1),b(1,"async")),t&2&&m("ngIf",V(1,1,o.loader$))},dependencies:[ie,ee,te,we,ye,pe,re,se,ae,le,ce,Re,Ce,ge,Ee,Te,Ve,be,fe,xe,ne,M,ke],styles:[".w-img[_ngcontent-%COMP%]{width:40px;height:40px}input[type=checkbox][_ngcontent-%COMP%]{width:15px;height:15px}i.fas.custom-size[_ngcontent-%COMP%]{font-size:13px}.item-name[_ngcontent-%COMP%]{font-size:larger}"],changeDetection:0});let i=s;return i})();export{Kt as PriceSingleChannelComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as o,
|
|
1
|
+
import{f as o,ma as l}from"./chunk-ZYJ6LAJ3.js";var c=(()=>{class r{_listeners=[];notify(t,i){for(let n of this._listeners)n(t,i)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(i=>t!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||r)};static \u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var h=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new o;constructor(e=!1,t,i=!0,n){this._multiple=e,this._emitChanges=i,this.compareWith=n,t&&t.length&&(e?t.forEach(s=>this._markSelected(s)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(i=>this._markSelected(i));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...e){this._verifyValueAssignment(e),e.forEach(i=>this._unmarkSelected(i));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...e){this._verifyValueAssignment(e);let t=this.selected,i=new Set(e.map(s=>this._getConcreteValue(s)));e.forEach(s=>this._markSelected(s)),t.filter(s=>!i.has(this._getConcreteValue(s,i))).forEach(s=>this._unmarkSelected(s));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let i of t)if(this.compareWith(e,i))return i;return e}else return e}};export{c as a,h as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as E,b as A}from"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import{a as k}from"./chunk-YJTPDV4D.js";import{e as j}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{m as B,n as D}from"./chunk-UI5ITL7Z.js";import"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{i as F,m as $}from"./chunk-LNJUGHOX.js";import{$b as _,$c as b,Gb as y,Lc as S,Mc as u,Nc as w,Oc as M,Tc as P,Z as x,Zc as T,bc as C,cc as c,ec as d,fc as m,gc as s,hc as r,hd as I,ic as l,id as R,ma as g,nb as n,ra as a,xc as f}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var h=(()=>{let e=class e{constructor(){this.httpService=a(j)}getMyProfile(){return this.httpService.get(k.MyProfile)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac});let t=e;return t})();var L=t=>({"border-end-0":t});function U(t,e){if(t&1&&(r(0,"div",11)(1,"div",12)(2,"p",13),u(3),l()()()),t&2){let i=e.$implicit,p=e.$index,o=f(2).$implicit;S(b(4,L,p!==o.Role.length-1)),s("pTooltip",i.Description),n(3),M(" ",i.Name," ")}}function q(t,e){if(t&1&&(r(0,"div",5)(1,"div",6)(2,"div",7)(3,"span",8),u(4),l()()(),r(5,"div",9)(6,"div",5),d(7,U,4,6,"div",10,c),l()()()),t&2){let i=f().$implicit;n(4),w(i.Name),n(3),m(i==null?null:i.Role)}}function z(t,e){if(t&1&&_(0,q,9,1,"div",5),t&2){let i=e.$implicit;C((i==null||i.Role==null?null:i.Role.length)>0?0:-1)}}var re=(()=>{let e=class e{constructor(){this.myProfileService=a(h),this.profile$=this.myProfileService.getMyProfile().pipe(x(1))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=y({type:e,selectors:[["app-roles-info"]],features:[T([h])],decls:10,vars:4,consts:[["headerTitle","My Profile",3,"hideSearchBox","hideSearchDropdown"],[1,"container-fluid"],[1,"row","mt-8"],[1,"col-12"],[1,"d-flex","flex-column","row-gap-6","px-8"],[1,"row"],[1,"col-2","border","d-flex","align-items-center","justify-content-between","border-end-0",2,"height","40px","background","#f6f6f6"],[1,"d-flex","justify-content-center","w-100","align-items-center","gap-4"],[1,"fs-5","w-100","text-center"],[1,"col"],["tooltipPosition","top",1,"col-3","border","p-0","bg-white",2,"height","40px",3,"class","pTooltip"],["tooltipPosition","top",1,"col-3","border","p-0","bg-white",2,"height","40px",3,"pTooltip"],[1,"d-flex","h-100","align-items-center","gap-4","px-2"],[1,"fs-6","text-dark",2,"margin","0"]],template:function(o,N){if(o&1&&(P(0),I(1,"async"),r(2,"mainpanel",0)(3,"content")(4,"div",1)(5,"div",2)(6,"div",3)(7,"div",4),d(8,z,1,1,null,null,c),l()()()()()()),o&2){let v=R(1,2,N.profile$);n(2),s("hideSearchBox",!0)("hideSearchDropdown",!0),n(6),m(v==null?null:v.Roles)}},dependencies:[$,D,B,A,E,F],encapsulation:2});let t=e;return t})();export{re as RolesInfoComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as k}from"./chunk-ZSUWHVKX.js";import{a as q}from"./chunk-J2BPOHP6.js";import{c as L}from"./chunk-BLHKSSK6.js";import{A as j}from"./chunk-L3W6SG2T.js";import{b as $,c as A}from"./chunk-ZETUYNFJ.js";import{v as H,w as W}from"./chunk-SILAIDPV.js";import{c as M,e as z,f as N,m as Z}from"./chunk-LNJUGHOX.js";import{$b as v,$c as w,Gb as V,Hc as y,Mb as s,Mc as C,Nc as D,Oc as B,Wc as R,ad as U,bc as P,cd as F,gc as _,hc as c,ic as l,jc as p,kd as T,lb as E,nb as i,nc as m,oc as u,qc as f,sb as S,vc as h,xa as g,xc as a,ya as x,zb as O}from"./chunk-ZYJ6LAJ3.js";var J=(t,e,n,r)=>[t,e,n,r],b=t=>[t],K=(t,e)=>[t,e],G=t=>({"me-3":t}),Q=t=>({"border-bottom pb-2":t});function X(t,e){if(t&1){let n=f();m(0),c(1,"img",19),h("click",function(o){g(n);let d=a();return x(d.openBiggerPicture(o))}),l(),u()}if(t&2){let n=a();i(),_("src",n.image,E)}}function Y(t,e){t&1&&p(0,"img",20)}function tt(t,e){if(t&1&&(m(0),c(1,"span",24)(2,"a",25),p(3,"i",26),l()(),u()),t&2){let n=a(2);i(2),_("href",n.redirectUrl,E)}}function nt(t,e){if(t&1&&(c(0,"div",21),p(1,"i",22),c(2,"span"),C(3),l(),s(4,tt,4,1,"ng-container",23),l()),t&2){let n=a();i(3),D(n.code),i(),_("ngIf",n.code!=="SKU not assigned"&&n.showRedirectIcon)}}function et(t,e){if(t&1){let n=f();c(0,"div",27),h("click",function(){g(n);let o=a();return x(o.onEventDesc())}),p(1,"i",28),c(2,"span"),C(3),l()()}if(t&2){let n=a();i(3),D(n.description)}}function it(t,e){if(t&1){let n=f();c(0,"div",30)(1,"input",31),h("change",function(o){g(n);let d=a(2);return x(d.onCheck(o.target.checked))}),l()()}}function ot(t,e){if(t&1&&(m(0),s(1,it,2,0,"div",29),u()),t&2){let n=a();i(),_("ngIf",n.showCheckBox)}}function at(t,e){if(t&1){let n=f();c(0,"button",34),h("click",function(){g(n);let o=a(3);return x(o.onDownload())}),p(1,"i",35),C(2,"Download "),l()}}function rt(t,e){if(t&1&&(m(0),s(1,at,3,0,"button",33),u()),t&2){let n=a(2);i(),_("ngIf",n.downloadButton)}}function ct(t,e){}function lt(t,e){if(t&1){let n=f();c(0,"li")(1,"a",42),h("click",function(){g(n);let o=a(6);return x(o.onScan())}),p(2,"i",43),C(3,"Scan "),l()()}}function _t(t,e){if(t&1&&(m(0),v(1,lt,4,0,"li"),u()),t&2){let n=a(5);i(),P(n.scanButton?1:-1)}}function dt(t,e){if(t&1){let n=f();c(0,"li")(1,"a",44),h("click",function(){g(n);let o=a(6);return x(o.onDetach())}),p(2,"i",45),C(3,"Detach "),l()()}}function st(t,e){if(t&1&&(m(0),v(1,dt,4,0,"li"),u()),t&2){let n=a(5);i(),P(n.detachButton?1:-1)}}function pt(t,e){if(t&1&&(m(0),c(1,"div",39),p(2,"button",40),c(3,"ul",41),s(4,_t,2,1,"ng-container",17)(5,st,2,1,"ng-container",17),l()(),u()),t&2){let n=a(4);i(4),_("ngxPermissionsOnly",w(2,b,n.productScanRole)),i(),_("ngxPermissionsOnly",w(4,b,n.productDetachRole))}}function mt(t,e){if(t&1){let n=f();c(0,"button",37),h("click",function(){g(n);let o=a(3);return x(o.onUpload())}),p(1,"i",38),C(2,"Upload "),l(),s(3,pt,6,6,"ng-container",17)}if(t&2){let n=a(3);i(3),_("ngxPermissionsOnly",U(1,K,n.productScanRole,n.productDetachRole))}}function ut(t,e){if(t&1){let n=f();c(0,"button",34),h("click",function(){g(n);let o=a(5);return x(o.onScan())}),p(1,"i",47),C(2," Scan "),l()}}function Ct(t,e){if(t&1&&(m(0),v(1,ut,3,0,"button",46),u()),t&2){let n=a(4);i(),P(n.scanButton?1:-1)}}function gt(t,e){if(t&1){let n=f();c(0,"button",49),h("click",function(){g(n);let o=a(5);return x(o.onDetach())}),p(1,"i",45),C(2,"Detach "),l()}}function xt(t,e){if(t&1&&(m(0),v(1,gt,3,0,"button",48),u()),t&2){let n=a(4);i(),P(n.detachButton?1:-1)}}function ft(t,e){if(t&1&&s(0,Ct,2,1,"ng-container",17)(1,xt,2,1,"ng-container",17),t&2){let n=a(3);_("ngxPermissionsOnly",w(2,b,n.productScanRole)),i(),_("ngxPermissionsOnly",w(4,b,n.productDetachRole))}}function ht(t,e){if(t&1&&(c(0,"div",32),s(1,ct,0,0,"ng-template",36)(2,mt,4,4,"ng-template",null,1,T)(4,ft,2,6,"ng-template",null,2,T),l()),t&2){let n=y(3),r=y(5),o=a(2);i(),_("ngxPermissionsOnly",w(3,b,o.productUploadRole))("ngxPermissionsOnlyThen",n)("ngxPermissionsOnlyElse",r)}}function wt(t,e){if(t&1){let n=f();c(0,"button",34),h("click",function(){g(n);let o=a(4);return x(o.onScan())}),p(1,"i",47),C(2," Scan "),l()}}function vt(t,e){if(t&1&&(m(0),v(1,wt,3,0,"button",46),u()),t&2){let n=a(3);i(),P(n.scanButton?1:-1)}}function Pt(t,e){if(t&1){let n=f();c(0,"button",51),h("click",function(){g(n);let o=a(4);return x(o.onDetach())}),p(1,"i",45),C(2,"Detach "),l()}}function bt(t,e){if(t&1&&(m(0),v(1,Pt,3,0,"button",50),u()),t&2){let n=a(3);i(),P(n.detachButton?1:-1)}}function Et(t,e){if(t&1&&s(0,vt,2,1,"ng-container",17)(1,bt,2,1,"ng-container",17),t&2){let n=a(2);_("ngxPermissionsOnly",w(2,b,n.productScanRole)),i(),_("ngxPermissionsOnly",w(4,b,n.productDetachRole))}}function St(t,e){if(t&1&&(m(0),c(1,"a",53),p(2,"img",54),l(),u()),t&2){let n=e.$implicit,r=e.index,o=a(4);i(),_("href",R(n.Url),E),i(),_("ngClass",w(5,G,r!=o.channels.length-1))("src",o.getChannelLogo(n),E)("matTooltip",n.Title?n.Title:n.Name)}}function yt(t,e){if(t&1&&(m(0),s(1,St,3,7,"ng-container",52),u()),t&2){let n=a(3);i(),_("ngForOf",n.channels)}}function Tt(t,e){if(t&1&&(c(0,"li")(1,"div",58)(2,"div",59)(3,"a",53),p(4,"img",60),c(5,"span",61),C(6),l()()()()()),t&2){let n=e.$implicit,r=e.index,o=a(4);i(2),_("ngClass",w(4,Q,r!=o.channels.length-1)),i(),_("href",n.Url,E),i(),_("src",o.getChannelLogo(n),E),i(2),D(n.Title)}}function kt(t,e){if(t&1&&(c(0,"div",55)(1,"button",56),C(2),l(),c(3,"ul",57),s(4,Tt,7,6,"li",52),l()()),t&2){let n=a(3);i(2),B(" ",n.channels.length," CHANNELS "),i(2),_("ngForOf",n.channels)}}function Dt(t,e){if(t&1&&(c(0,"div"),s(1,yt,2,1,"ng-container",10)(2,kt,5,2,"ng-template",null,3,T),l()),t&2){let n=y(3),r=a(2);i(),_("ngIf",r.channels.length<4)("ngIfElse",n)}}function It(t,e){if(t&1&&(c(0,"div",18)(1,"div"),s(2,rt,2,1,"ng-container",17),v(3,ht,6,5,"div",32)(4,Et,2,6),l(),v(5,Dt,4,2,"div"),l()),t&2){let n=a();i(2),_("ngxPermissionsOnly",w(3,b,n.productDownloadRole)),i(),P(n.uploadButton?3:4),i(2),P(n.channels&&(n.channels==null?null:n.channels.length)>0?5:-1)}}var qt=(()=>{let e=class e{constructor(r){this.biggerPictureService=r,this.uploadButton=!1,this.scanButton=!1,this.showCheckBox=!1,this.downloadButton=!1,this.showFooter=!0,this.detachButton=!1,this.hasZoom=!0,this.showRedirectIcon=!0,this.productUploadRole=k.ProductUpload,this.productScanRole=k.ProductScan,this.productDownloadRole=k.ProductDownload,this.productDetachRole=k.ProductDetach,this.onUploadEvent=new S,this.onScanEvent=new S,this.checkBoxChange=new S,this.onDescEvent=new S,this.onDownloadEvent=new S,this.onDetachEvent=new S}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let r=localStorage.getItem("Authorization"),o=JSON.parse(r)?.Host;this.redirectUrl=`https://${o}/menu/Products/Catalog/Products/Info?ID=${this.productId}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(r){this.checkBoxChange.emit(r)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}onDetach(){this.onDetachEvent.emit()}getChannelLogo(r){return L.getChannelLogoByTypeId(r.TypeID)}openBiggerPicture(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};e.\u0275fac=function(o){return new(o||e)(O(q))},e.\u0275cmp=V({type:e,selectors:[["app-product-card"]],inputs:{productId:"productId",uploadButton:"uploadButton",scanButton:"scanButton",showCheckBox:"showCheckBox",downloadButton:"downloadButton",showFooter:"showFooter",detachButton:"detachButton",image:"image",title:"title",code:"code",description:"description",channels:"channels",check:"check",imageForZoom:"imageForZoom",hasZoom:"hasZoom",showRedirectIcon:"showRedirectIcon"},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload",onDetachEvent:"onDetach"},decls:18,vars:13,consts:[["elsePic",""],["thenBlock",""],["elseBlock",""],["DROPDOWN",""],[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click","matTooltip"],["class","description cursor-pointer",4,"ngIf"],["class","description cursor-pointer",3,"click",4,"ngIf"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],[4,"ngxPermissionsOnly"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],[1,"rounded","imgUpload","float-left",3,"click","src"],["src","https://resc.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"description","cursor-pointer"],[1,"fa","fa-barcode","me-2"],[4,"ngIf"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],["class","text-end gx-0",4,"ngIf"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],["role","group","aria-label","Scan button with other button",1,"btn-group","btn-sm"],["class","fs-6 btn btn-light btn-sm me-3",3,"click",4,"ngIf"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download","me-1"],[3,"ngxPermissionsOnly","ngxPermissionsOnlyThen","ngxPermissionsOnlyElse"],["type","button",1,"fs-6","btn","btn-light","btn-sm",3,"click"],["aria-hidden","true",1,"fa","fa-upload","me-1"],["role","group",1,"btn-group"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"fs-6","btn","btn-light","btn-sm","dropdown-toggle","ps-3"],[1,"dropdown-menu",2,"min-width","100px !important"],[1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa","fa-spinner","me-2"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa-sharp","fa-link-slash","me-2"],[1,"fs-6","btn","btn-light","btn-sm","me-3"],[1,"fa","fa-spinner","me-1"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fs-6","btn","btn-light","btn-sm"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],[1,"dropdown"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(o,d){if(o&1){let I=f();c(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"div",9),s(6,X,2,1,"ng-container",10)(7,Y,1,0,"ng-template",null,0,T),l()()(),c(9,"div",11)(10,"h4",12),h("click",function(){return g(I),x(d.onEventDesc())}),C(11),l(),s(12,nt,5,2,"div",13)(13,et,4,1,"div",14),l(),c(14,"div",15)(15,"div",16),s(16,ot,2,1,"ng-container",17),l()()()(),v(17,It,6,5,"div",18),l()}if(o&2){let I=y(8);i(6),_("ngIf",d.image)("ngIfElse",I),i(4),_("matTooltip",(d.title==null?null:d.title.length)>25?d.title:""),i(),B(" ",d.title," "),i(),_("ngIf",d.code),i(),_("ngIf",d.description),i(3),_("ngxPermissionsOnly",F(8,J,d.productDownloadRole,d.productScanRole,d.productUploadRole,d.productDetachRole)),i(),P(d.showFooter?17:-1)}},dependencies:[Z,M,z,N,j,W,H,A,$],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]});let t=e;return t})();export{qt as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as k}from"./chunk-34UF36YY.js";import"./chunk-A6QXXKPR.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{m as B,n as N}from"./chunk-UI5ITL7Z.js";import"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{D as T,G as R,I as w,f as b,i as y,j as C,l as M,m as P}from"./chunk-LNJUGHOX.js";import{Gb as E,Mb as f,Mc as i,Nc as l,Oc as _,aa as h,gc as p,hc as t,hd as v,ic as e,id as D,jd as g,nb as o,nc as u,oc as S,v as I,xc as x,zb as s}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function L(a,r){if(a&1&&(t(0,"div",10)(1,"div",13)(2,"div",7)(3,"h5"),i(4,"Perflog"),e()(),t(5,"div",8)(6,"div",14)(7,"div",15)(8,"pre"),i(9),e()()()()()()),a&2){let n=x().ngIf;o(9),l(n.Perflog)}}function A(a,r){if(a&1&&(u(0),t(1,"div",17)(2,"div",13)(3,"div",7)(4,"h5"),i(5,"StackTrace"),e()(),t(6,"div",8)(7,"div",14)(8,"div",15)(9,"pre"),i(10),e()()()()()(),S()),a&2){let n=x().ngIf;o(10),l(n==null?null:n.StackTrace)}}function H(a,r){if(a&1&&(u(0),t(1,"mainpanel",1)(2,"actions")(3,"a",2),i(4,"Back"),e()(),t(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h5"),i(12,"General"),e()(),t(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11)(17,"label"),i(18,"Created Date"),e(),t(19,"div")(20,"span"),i(21),v(22,"date"),e()()()(),t(23,"div",10)(24,"div",11)(25,"label"),i(26,"Status"),e(),t(27,"div")(28,"span"),i(29),e()()()()(),t(30,"div",12)(31,"div",10)(32,"div",11)(33,"label"),i(34,"Duration"),e(),t(35,"div")(36,"span"),i(37),v(38,"number"),e()()()(),t(39,"div",10)(40,"div",11)(41,"label"),i(42,"Label"),e(),t(43,"div")(44,"span"),i(45),e()()()()()()()()(),t(46,"div",4)(47,"div",10)(48,"div",13)(49,"div",7)(50,"h5"),i(51,"Message"),e()(),t(52,"div",8)(53,"div",14)(54,"div",15)(55,"pre"),i(56),e()()()()()(),f(57,L,10,1,"div",16)(58,A,11,1,"ng-container",0),e()()()(),S()),a&2){let n=r.ngIf;o(),p("headerTitle","Notification "+n.Name)("hideSearchBox",!0)("hideSearchDropdown",!0),o(20),l(g(22,10,n.Created,"dd MMM yyyy HH:mm:ss")),o(8),l(n.StatusLabel),o(8),_("",g(38,13,n.DurationInSecond,"1.1-1")," s"),o(8),l(n.Label),o(11),l(n.Message),o(),p("ngIf",n==null?null:n.Perflog),o(),p("ngIf",n==null?null:n.StackTrace)}}var Q=(()=>{let r=class r{constructor(c,d){this.activatedRoute=c,this.notificationService=d}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(h(c=>{let d=c.ID;return this.notificationService.getNotificationDetail(d).pipe(I(m=>(m.DurationInSecond=parseInt(m.Duration)/1e3,m)))}))}};r.\u0275fac=function(d){return new(d||r)(s(T),s(k))},r.\u0275cmp=E({type:r,selectors:[["app-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/products/status/notification",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-8"],[1,"row"],[1,"col-12"],[1,"card","mb-8"],[1,"card-header"],[1,"card-body"],[1,"row","mt-6"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-4"],[1,"card"],[1,"col-sm-12","mt-2"],[1,"form-group"],["class","col-sm-6",4,"ngIf"],[1,"col-sm-12"]],template:function(d,m){d&1&&(f(0,H,59,16,"ng-container",0),v(1,"async")),d&2&&p("ngIf",D(1,1,m.notification$))},dependencies:[P,b,N,B,w,R,y,M,C],encapsulation:2});let a=r;return a})();export{Q as DetailComponent};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as G}from"./chunk-OPXITNRF.js";import{a as Z}from"./chunk-D2J64VUP.js";import{a as U}from"./chunk-6Q6L5NUD.js";import{a as E}from"./chunk-5YBWBAQS.js";import{c as j,d as q}from"./chunk-37NOSLQL.js";import{e as B,g as L,k as P,q as V}from"./chunk-L3W6SG2T.js";import{D as O,M,b,e as m,h as _,q as x,v as z}from"./chunk-3I2V337G.js";import{Fd as y,Ga as w,Gb as S,Hb as u,Ib as g,Jc as H,Na as k,Qa as f,Zb as T,Zc as N,f as d,m as I,ma as C,na as h,pa as A,pd as D,ra as r,rc as F,tb as c,vc as v,xb as R,yb as p}from"./chunk-ZYJ6LAJ3.js";var X=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275cmp=S({type:s,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(t,i){},styles:[`textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}
|
|
2
|
+
`],encapsulation:2,changeDetection:0})}return s})(),J={passive:!0},K=(()=>{class s{_platform=r(_);_ngZone=r(c);_renderer=r(R).createRenderer(null,null);_styleLoader=r(z);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return I;this._styleLoader.load(X);let t=b(e),i=this._monitoredElements.get(t);if(i)return i.subject;let n=new d,o="cdk-text-field-autofilled",a=l=>{l.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(o)?(t.classList.add(o),this._ngZone.run(()=>n.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(o)&&(t.classList.remove(o),this._ngZone.run(()=>n.next({target:l.target,isAutofilled:!1})))},W=this._ngZone.runOutsideAngular(()=>(t.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(t,"animationstart",a,J)));return this._monitoredElements.set(t,{subject:n,unlisten:W}),n}stopMonitoring(e){let t=b(e),i=this._monitoredElements.get(t);i&&(i.unlisten(),i.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=C({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var $=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=u({type:s});static \u0275inj=h({})}return s})();var Q=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ee=new A("MAT_INPUT_CONFIG"),ze=(()=>{class s{_elementRef=r(f);_platform=r(_);ngControl=r(L,{optional:!0,self:!0});_autofillMonitor=r(K);_ngZone=r(c);_formField=r(q,{optional:!0});_renderer=r(p);_uid=r(O).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=r(ee,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new d;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=m(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(B.required)??!1}set required(e){this._required=m(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&x().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=m(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>x().has(e));constructor(){let e=r(P,{optional:!0}),t=r(V,{optional:!0}),i=r(U),n=r(G,{optional:!0,self:!0}),o=this._elementRef.nativeElement,a=o.nodeName.toLowerCase();n?w(n.value)?this._signalBasedValueAccessor=n:this._inputValueAccessor=n:this._inputValueAccessor=o,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(o,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Z(i,this.ngControl,t,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=a==="select",this._isTextarea=a==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=o.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&D(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let t=this._elementRef.nativeElement;t.type==="number"?(t.type="text",t.setSelectionRange(0,0),t.type="number"):t.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Q.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let t=this._elementRef.nativeElement;e.length?t.setAttribute("aria-describedby",e.join(" ")):t.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let t=e.target;!t.value&&t.selectionStart===0&&t.selectionEnd===0&&(t.setSelectionRange(1,1),t.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(t){return new(t||s)};static \u0275dir=g({type:s,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(t,i){t&1&&v("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),t&2&&(F("id",i.id)("disabled",i.disabled&&!i.disabledInteractive)("required",i.required),T("name",i.name||null)("readonly",i._getReadonlyAttribute())("aria-disabled",i.disabled&&i.disabledInteractive?"true":null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),H("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mat-mdc-input-disabled-interactive",i.disabledInteractive)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",y]},exportAs:["matInput"],features:[N([{provide:j,useExisting:s}]),k]})}return s})(),Oe=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=u({type:s});static \u0275inj=h({imports:[M,E,E,$,M]})}return s})();export{ze as a,Oe as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as y}from"./chunk-5O33CV4F.js";import{c as a}from"./chunk-BLHKSSK6.js";import{G as k,I as _,m as C}from"./chunk-LNJUGHOX.js";import{$b as I,Gb as v,Mc as u,Oc as p,ad as D,bc as g,gc as s,hc as m,ic as c,lb as b,ma as h,nb as l,od as f,ra as i,td as x,xc as d}from"./chunk-ZYJ6LAJ3.js";var N=(()=>{let e=class e{constructor(){this.localDataService=i(y),this.baseUrl=this.localDataService.getHostName()}getBaseUrl(n){let r="";return a.IsNotEmpty(n.ID)?r=`https://${this.baseUrl}/menu/Orders/Orders/Customer_Invoice/Info?ID=${n.ID}`:r="/menu/Order/detail",r}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var L=(t,e)=>({Number:t,Outlet:e});function M(t,e){if(t&1&&(m(0,"a",0),u(1),c()),t&2){let o,n=d();s("href",n.baseUrl(),b),l(),p(" ",(o=n.order())==null?null:o.Number," ")}}function S(t,e){if(t&1&&(m(0,"a",1),u(1),c()),t&2){let o,n,r=d();s("routerLink",r.baseUrl())("queryParams",D(3,L,(o=r.order())==null?null:o.Number,(o=r.order())==null?null:o.Outlet)),l(),p(" ",(n=r.order())==null?null:n.Number," ")}}var A=(()=>{let e=class e{constructor(){this.order=x(),this.generateLinkService=i(N),this.baseUrl=f(()=>this.generateLinkService.getBaseUrl(this.order())),this.hasOrderID=f(()=>a.IsNotEmpty(this.order()?.ID))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=v({type:e,selectors:[["order-link"]],inputs:{order:[1,"order"]},decls:2,vars:1,consts:[["target","_blank",3,"href"],["target","_blank",3,"routerLink","queryParams"]],template:function(r,O){r&1&&I(0,M,2,2,"a",0)(1,S,2,6,"a",1),r&2&&g(O.hasOrderID()?0:1)},dependencies:[C,_,k],encapsulation:2});let t=e;return t})();export{A as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as c,b as d}from"./chunk-PS43OK3J.js";import"./chunk-ZETUYNFJ.js";import"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{E as l,I as m}from"./chunk-LNJUGHOX.js";import{Gb as i,gc as r,hc as s,ic as p,jc as n,nb as a}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var v=(()=>{let e=class e{constructor(){this.tabs=[{Title:"Roles",Url:"/menu/profile/roles"}]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=i({type:e,selectors:[["app-my-profile"]],decls:5,vars:2,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs","usePermissions"]],template:function(o,f){o&1&&(s(0,"nav",0)(1,"div",1)(2,"div"),n(3,"nav-tab",2),p()()(),n(4,"router-outlet")),o&2&&(a(3),r("Tabs",f.tabs)("usePermissions",!0))},dependencies:[d,c,m,l],encapsulation:2});let t=e;return t})(),M=[{path:"",component:v,children:[{path:"",redirectTo:"roles",pathMatch:"full"},{path:"roles",loadComponent:()=>import("./chunk-G6P2UZU4.js").then(t=>t.RolesInfoComponent),data:{title:"Roles Info"}}]}];export{v as MyProfileComponent,M as routes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-6XT3JSG5.js";import{a as b}from"./chunk-IM5M2CAI.js";import{a as C,b as y}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 v,I as r,m as o}from"./chunk-LNJUGHOX.js";import{Gb as s,Hb as c,Zc as h,gc as u,hc as d,ic as f,jc as a,na as p,nb as l}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var T=(()=>{let e=class e{constructor(){this.inventoryTabs=[{Title:"Single Channel Comparison",Url:"/menu/inventory/bychannel"},{Title:"Multi Channel Comparison",Url:"/menu/inventory/pos"},{Title:"Different Inventory",Url:"/menu/inventory/channel_summary"}]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=s({type:e,selectors:[["app-inventory"]],features:[h([b])],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(n,M){n&1&&(d(0,"nav",0)(1,"div",1)(2,"div"),a(3,"nav-tab",2),f()()(),a(4,"router-outlet")),n&2&&(l(3),u("Tabs",M.inventoryTabs))},dependencies:[o,y,C,r,v],encapsulation:2});let t=e;return t})();var S=[{path:"",component:T,children:[{path:"",redirectTo:"bychannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-DLXWO2XC.js").then(t=>t.MultiChannelComparison)},canActivate:[i],data:{title:"Inventory Comparison"}},{path:"bychannel",loadComponent(){return import("./chunk-46IROEMV.js").then(t=>t.SingleChannelComparisonComponent)},canActivate:[i],data:{title:"Inventory Comparison"}},{path:"channel_summary",loadComponent(){return import("./chunk-PQEXTCFW.js").then(t=>t.ChannelSummaryComponent)},canActivate:[i],data:{title:"Different Inventory"}}]}],O=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=c({type:e}),e.\u0275inj=p({imports:[o,r.forChild(S)]});let t=e;return t})();export{O as InventoryRoutingModule};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import{d as M}from"./chunk-LOWGZOML.js";import{E as w,F as b,H as l,M as I,b as k,d as r,ja as L,m as D,z as a}from"./chunk-5PMKN6PM.js";import{n as v}from"./chunk-LNJUGHOX.js";import{Hb as f,Ib as h,Kb as u,Oa as c,Zc as g,ma as p,na as d,pd as y,ra as o,tb as m}from"./chunk-ZYJ6LAJ3.js";var x=`
|
|
2
|
+
.p-ink {
|
|
3
|
+
display: block;
|
|
4
|
+
position: absolute;
|
|
5
|
+
background: dt('ripple.background');
|
|
6
|
+
border-radius: 100%;
|
|
7
|
+
transform: scale(0);
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.p-ink-active {
|
|
12
|
+
animation: ripple 0.4s linear;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@keyframes ripple {
|
|
16
|
+
100% {
|
|
17
|
+
opacity: 0;
|
|
18
|
+
transform: scale(2.5);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;var C=`
|
|
22
|
+
${x}
|
|
23
|
+
|
|
24
|
+
/* For PrimeNG */
|
|
25
|
+
.p-ripple {
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
position: relative;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.p-ripple-disabled .p-ink {
|
|
31
|
+
display: none !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@keyframes ripple {
|
|
35
|
+
100% {
|
|
36
|
+
opacity: 0;
|
|
37
|
+
transform: scale(2.5);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`,N={root:"p-ink"},E=(()=>{class i extends L{name="ripple";style=C;classes=N;static \u0275fac=(()=>{let e;return function(s){return(e||(e=c(i)))(s||i)}})();static \u0275prov=p({token:i,factory:i.\u0275fac})}return i})();var $=(()=>{class i extends M{zone=o(m);_componentStyle=o(E);animationListener;mouseDownListener;timeout;constructor(){super(),y(()=>{v(this.platformId)&&(this.config.ripple()?this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))}):this.remove())})}onAfterViewInit(){}onMouseDown(e){let t=this.getInk();if(!t||this.document.defaultView?.getComputedStyle(t,null).display==="none")return;if(r(t,"p-ink-active"),!a(t)&&!l(t)){let n=Math.max(D(this.el.nativeElement),b(this.el.nativeElement));t.style.height=n+"px",t.style.width=n+"px"}let s=w(this.el.nativeElement),F=e.pageX-s.left+this.document.body.scrollTop-l(t)/2,A=e.pageY-s.top+this.document.body.scrollLeft-a(t)/2;this.renderer.setStyle(t,"top",A+"px"),this.renderer.setStyle(t,"left",F+"px"),k(t,"p-ink-active"),this.timeout=setTimeout(()=>{let n=this.getInk();n&&r(n,"p-ink-active")},401)}getInk(){let e=this.el.nativeElement.children;for(let t=0;t<e.length;t++)if(typeof e[t].className=="string"&&e[t].className.indexOf("p-ink")!==-1)return e[t];return null}resetInk(){let e=this.getInk();e&&r(e,"p-ink-active")}onAnimationEnd(e){this.timeout&&clearTimeout(this.timeout),r(e.currentTarget,"p-ink-active")}create(){let e=this.renderer.createElement("span");this.renderer.addClass(e,"p-ink"),this.renderer.appendChild(this.el.nativeElement,e),this.renderer.setAttribute(e,"aria-hidden","true"),this.renderer.setAttribute(e,"role","presentation"),this.animationListener||(this.animationListener=this.renderer.listen(e,"animationend",this.onAnimationEnd.bind(this)))}remove(){let e=this.getInk();e&&(this.mouseDownListener&&this.mouseDownListener(),this.animationListener&&this.animationListener(),this.mouseDownListener=null,this.animationListener=null,I(e))}onDestroy(){this.config&&this.config.ripple()&&this.remove()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=h({type:i,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple"],features:[g([E]),u]})}return i})(),G=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=f({type:i});static \u0275inj=d({})}return i})();export{$ as a,G as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Gb as a,
|
|
1
|
+
import{Gb as a,Jc as r,yc as l,zc as o}from"./chunk-ZYJ6LAJ3.js";var d=["mat-internal-form-field",""],m=["*"],g=(()=>{class i{labelPosition;static \u0275fac=function(t){return new(t||i)};static \u0275cmp=a({type:i,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(t,n){t&2&&r("mdc-form-field--align-end",n.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:d,ngContentSelectors:m,decls:1,vars:0,template:function(t,n){t&1&&(l(),o(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return i})();export{g as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s}from"./chunk-BKR7YPEW.js";import{a as l}from"./chunk-YJTPDV4D.js";import{e as d}from"./chunk-OXWPYJNB.js";import{c}from"./chunk-BLHKSSK6.js";import{ma as p,ra as i,v as u}from"./chunk-ZYJ6LAJ3.js";var I=(()=>{let a=class a{constructor(){this.httpService=i(d)}getNotificationDetail(t){return this.httpService.post(l.GetJobScanDetail,{ID:t}).pipe(u(r=>{let e=r.Data;return e.DurationInSecond=e.Duration?e.Duration/1e3:0,e.ParsedStatus=e.StatusProduct?JSON.parse(e.StatusProduct):[],e.ParsedPerfLog=e.PerfLog?JSON.parse(e.PerfLog):[],e.ProcessLabel=this.generateLabel(e),e.ProcessDescription=this.generateDescription(e),e}))}getNotificationList(t){return this.httpService.post(l.GetJobScanList,t).pipe(u(r=>{let e=r.Data;return e=e.map(n=>(n.Img=c.getChannelLogoByTypeId(n.TypeID),n.DurationInSecond=n.Duration?n.Duration/1e3:0,n.ProcessLabel=this.generateLabel(n),n.ProcessDescription=this.generateDescription(n),n)),{Data:e,Count:r.Count}}))}generateLabel(t){let r=null;switch(t.ScanTypeID){case s.Active:r="Active";break;case s.Sellable:r="Sellable";break;case s.All:r="All";break}return`Asynchronous Scan - ${r}`}generateDescription(t){return`${t.OriginGetCount} found in ${t.ChannelName} ( ${t.SkuFoundCount} Sold In Channel + ${t.SkuNotFoundCount} Not In POS)`}createMessageCopyText(t){let r=[];return t.ParsedStatus&&t.ParsedStatus.forEach(e=>{r.push({[e.Key]:e.Value})}),r=[...r,{OriginalGetCount:t.OriginGetCount},{SkuFoundCount:t.SkuFoundCount},{SkuNotFoundCount:t.SkuNotFoundCount}],JSON.stringify(r)}};a.\u0275fac=function(r){return new(r||a)},a.\u0275prov=p({token:a,factory:a.\u0275fac});let o=a;return o})();var g=(function(o){return o[o.InProgress=0]="InProgress",o[o.Completed=1]="Completed",o[o.Failed=2]="Failed",o})(g||{});export{I as a,g as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as t,c as v}from"./chunk-BLHKSSK6.js";import{m as y}from"./chunk-LNJUGHOX.js";import{$b as r,Gb as d,Kc as u,Mc as N,Nc as w,ad as k,bc as p,kc as s,lb as l,lc as c,mc as g,nb as h,rc as C,td as m,xc as f}from"./chunk-ZYJ6LAJ3.js";var T=(n,e)=>({width:n,height:e});function x(n,e){if(n&1&&(s(0,"span",2),N(1),c()),n&2){let b=f();h(),w(b.channelName)}}var _=(()=>{let e=class e{set typeId(a){this.channelLogo=v.getChannelLogoByTypeId(a),this.initChannelName(a)}constructor(){this.showChannelName=m(!0),this.width=m(20),this.height=m(20)}initChannelName(a){switch(a){case t.Tokopedia:this.channelName="Tokopedia";break;case t.Tiktok:this.channelName="Tiktok";break;case t.WooCommerce:this.channelName="WooCommerce";break;case t.Shopee:this.channelName="Shopee";break;case t.Lazada:this.channelName="Lazada";break;case t.KalCare:this.channelName="Kalcare";break;case t.ShopifyV2:this.channelName="Shopify";break}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=d({type:e,selectors:[["app-channel-logo"]],inputs:{showChannelName:[1,"showChannelName"],width:[1,"width"],height:[1,"height"],typeId:"typeId"},decls:3,vars:7,consts:[[1,"d-flex","align-items-center"],[1,"me-2",3,"src"],[1,"fw-normal"]],template:function(i,o){i&1&&(s(0,"div",0),g(1,"img",1),r(2,x,2,1,"span",2),c()),i&2&&(h(),u(k(4,T,o.width()+"px",o.height()+"px")),C("src",o.channelLogo,l),h(),p(o.showChannelName()?2:-1))},dependencies:[y],encapsulation:2});let n=e;return n})();export{_ as a};
|