marketplacepos 5.48.6 → 5.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/3rdpartylicenses.txt +214 -214
- package/Marketplace/{chunk-SHUYFOQI.js → chunk-24KZDZKS.js} +1 -1
- package/Marketplace/{chunk-7JQEF4XX.js → chunk-27DIE2YS.js} +1 -1
- package/Marketplace/chunk-2AXBEVQ7.js +4 -0
- package/Marketplace/chunk-2K5AP6IZ.js +1 -0
- package/Marketplace/{chunk-4RG5YR7N.js → chunk-2NRHX6CZ.js} +2 -2
- package/Marketplace/{chunk-ZTHO6JJM.js → chunk-2ST3DMR6.js} +1 -1
- package/Marketplace/chunk-2UNT2DUM.js +1 -0
- package/Marketplace/chunk-34ZZ4GCS.js +1 -0
- package/Marketplace/{chunk-5X2E3W32.js → chunk-3HME327V.js} +1 -1
- package/Marketplace/chunk-3NAMEVOB.js +1 -0
- package/Marketplace/chunk-3PIHLKK3.js +1 -0
- package/Marketplace/{chunk-AFIF6VRM.js → chunk-3SCX7IMW.js} +1 -1
- package/Marketplace/chunk-44KIXUU2.js +1 -0
- package/Marketplace/chunk-4G46574H.js +1 -0
- package/Marketplace/chunk-4KGXKQPG.js +1 -0
- package/Marketplace/{chunk-QFSA7CU4.js → chunk-4S4BOPUV.js} +2 -2
- package/Marketplace/chunk-4YKPN3RV.js +1 -0
- package/Marketplace/chunk-52YCKO3Z.js +1 -0
- package/Marketplace/{chunk-5BSPSA4O.js → chunk-5C24BA5F.js} +1 -1
- package/Marketplace/{chunk-PMVDQ2OP.js → chunk-5QDH4ZNS.js} +1 -1
- package/Marketplace/{chunk-ZETUYNFJ.js → chunk-5UFP37GQ.js} +1 -1
- package/Marketplace/{chunk-PDCVMSLL.js → chunk-5WQ3LCWP.js} +1 -1
- package/Marketplace/chunk-5WT456T7.js +3 -0
- package/Marketplace/chunk-67LUKQJC.js +1 -0
- package/Marketplace/chunk-6C4UBIZK.js +10 -0
- package/Marketplace/{chunk-ZKIO2ZQ6.js → chunk-6F62N7RZ.js} +2 -2
- package/Marketplace/chunk-6GNIJWEX.js +1 -0
- package/Marketplace/chunk-6NS3D6KQ.js +5 -0
- package/Marketplace/{chunk-RQQWNLDZ.js → chunk-7HRL6MHY.js} +1 -1
- package/Marketplace/chunk-7QP3VZ6H.js +1 -0
- package/Marketplace/chunk-7R2D2JZ6.js +3 -0
- package/Marketplace/{chunk-5MV3UFJQ.js → chunk-7X4B2T6C.js} +2 -2
- package/Marketplace/chunk-A2RTZANN.js +1 -0
- package/Marketplace/chunk-A53NYS6S.js +1 -0
- package/Marketplace/chunk-AHMFSCTX.js +2 -0
- package/Marketplace/{chunk-LEUBNBGC.js → chunk-AJSJJV2I.js} +1 -1
- package/Marketplace/chunk-ALLZQ6Y3.js +1 -0
- package/Marketplace/chunk-AQVMOA6Z.js +1 -0
- package/Marketplace/chunk-B5ZK5TGW.js +1 -0
- package/Marketplace/chunk-BAW6PICI.js +2 -0
- package/Marketplace/{chunk-DTAHV4GM.js → chunk-BC6LHZWP.js} +1 -1
- package/Marketplace/{chunk-GPHNPV7O.js → chunk-BMOMTOEW.js} +2 -2
- package/Marketplace/chunk-BUMWMFHU.js +2 -0
- package/Marketplace/{chunk-OQM7K2EA.js → chunk-BXNDE6NQ.js} +1 -1
- package/Marketplace/chunk-BYL4N2KB.js +1 -0
- package/Marketplace/{chunk-6KWG6O5L.js → chunk-C2LAQOUW.js} +1 -1
- package/Marketplace/{chunk-L7WZ6U4T.js → chunk-DDFP4CNP.js} +1 -1
- package/Marketplace/{chunk-6OJQRHIZ.js → chunk-DLHIDOS3.js} +1 -1
- package/Marketplace/chunk-DPB2343S.js +1 -0
- package/Marketplace/chunk-E4RY2MK5.js +1 -0
- package/Marketplace/chunk-EGLM6YK5.js +1 -0
- package/Marketplace/{chunk-IM5M2CAI.js → chunk-EH3PIGLJ.js} +1 -1
- package/Marketplace/chunk-ENYJ4KAM.js +1 -0
- package/Marketplace/chunk-ESBL3IFN.js +1 -0
- package/Marketplace/{chunk-2J7P6ENI.js → chunk-F26O6FCO.js} +1 -1
- package/Marketplace/chunk-FEQXCPQI.js +2 -0
- package/Marketplace/chunk-FFJXYPVA.js +1 -0
- package/Marketplace/chunk-FLNIURLD.js +1 -0
- package/Marketplace/chunk-FMXX7QB5.js +5 -0
- package/Marketplace/chunk-FNOENLVR.js +2 -0
- package/Marketplace/{chunk-4ILDFTIG.js → chunk-FOKLBUX6.js} +1 -1
- package/Marketplace/chunk-FTIUJUXI.js +1 -0
- package/Marketplace/{chunk-WNUTNP6I.js → chunk-G3B6ETBU.js} +5 -5
- package/Marketplace/{chunk-VWX2IX64.js → chunk-G4T4VM5E.js} +1 -1
- package/Marketplace/chunk-GBF6A3MS.js +1 -0
- package/Marketplace/chunk-GDHNMHJZ.js +1 -0
- package/Marketplace/chunk-GG3X4R7G.js +1 -0
- package/Marketplace/chunk-GJC736LV.js +1 -0
- package/Marketplace/chunk-GVJLKDIO.js +1 -0
- package/Marketplace/chunk-H6YNHOUQ.js +1 -0
- package/Marketplace/chunk-HGVFXR6T.js +1 -0
- package/Marketplace/chunk-HJZ3XPSH.js +266 -0
- package/Marketplace/chunk-HNDBAXI5.js +1 -0
- package/Marketplace/{chunk-N5AE5WMQ.js → chunk-HO2TMGLM.js} +1 -1
- package/Marketplace/chunk-HORS2MKK.js +1 -0
- package/Marketplace/chunk-IDGK6BMG.js +1 -0
- package/Marketplace/chunk-IF7EJSQG.js +1 -0
- package/Marketplace/chunk-IIJEILDV.js +1 -0
- package/Marketplace/{chunk-3L7Y6LG6.js → chunk-IM7YH54S.js} +1 -1
- package/Marketplace/chunk-IV5IPY6H.js +1 -0
- package/Marketplace/{chunk-63I3I3MX.js → chunk-IVKFEOCB.js} +1 -1
- package/Marketplace/chunk-J6HA4ZHH.js +1 -0
- package/Marketplace/chunk-JM3NLPH4.js +9 -0
- package/Marketplace/chunk-JNRCB7N3.js +2 -0
- package/Marketplace/chunk-JV4F6ZYF.js +1 -0
- package/Marketplace/chunk-JWDQVXQP.js +1 -0
- package/Marketplace/{chunk-3664K4KH.js → chunk-JYP3Z3TV.js} +19 -19
- package/Marketplace/chunk-JYSOUJ42.js +1 -0
- package/Marketplace/chunk-K5WSFDNA.js +1 -0
- package/Marketplace/chunk-KNBXCPTA.js +1 -0
- package/Marketplace/chunk-KR6UNAIL.js +3 -0
- package/Marketplace/chunk-KSRL7Y2J.js +2 -0
- package/Marketplace/{chunk-ODLI42YV.js → chunk-KTTKHI2N.js} +1 -1
- package/Marketplace/chunk-KUKTPGJ2.js +1 -0
- package/Marketplace/chunk-LKJCOEGO.js +1 -0
- package/Marketplace/chunk-LQ3VUWFK.js +2 -0
- package/Marketplace/chunk-LQPY6AYJ.js +1 -0
- package/Marketplace/{chunk-FULVA6QB.js → chunk-LR2YCE6M.js} +1 -1
- package/Marketplace/{chunk-DXYMG6QK.js → chunk-LUJ3SHSP.js} +1 -1
- package/Marketplace/chunk-LYN2PNQK.js +1 -0
- package/Marketplace/{chunk-J6CZKQ53.js → chunk-M3DUXHYE.js} +4 -4
- package/Marketplace/chunk-M7TUSCXB.js +1 -0
- package/Marketplace/{chunk-6PW6S7MI.js → chunk-MAQQQB3T.js} +1 -1
- package/Marketplace/chunk-MIGPO7BO.js +1 -0
- package/Marketplace/chunk-MM7SAZOU.js +1 -0
- package/Marketplace/{chunk-CM3B2UZ7.js → chunk-MPFJ7FBJ.js} +1 -1
- package/Marketplace/{chunk-SJ5MC42H.js → chunk-MT3CWRVG.js} +2 -2
- package/Marketplace/chunk-MTVUPPAN.js +149 -0
- package/Marketplace/chunk-MV2PLTWF.js +1 -0
- package/Marketplace/{chunk-WHHW4IZT.js → chunk-N3E43QWK.js} +2 -2
- package/Marketplace/{chunk-AFDI4TD4.js → chunk-NIJCYMZM.js} +3 -3
- package/Marketplace/chunk-NQLMPUSB.js +1 -0
- package/Marketplace/chunk-NTU64XT4.js +1 -0
- package/Marketplace/{chunk-3JRUKSV3.js → chunk-NVPT5BF2.js} +2 -2
- package/Marketplace/chunk-O3QPBAV5.js +7 -0
- package/Marketplace/chunk-O4D64GHO.js +2 -0
- package/Marketplace/{chunk-UH5C5HXK.js → chunk-O4U34AC7.js} +1 -1
- package/Marketplace/chunk-OCXIDX74.js +1 -0
- package/Marketplace/chunk-OGF4VFSK.js +1 -0
- package/Marketplace/chunk-OHGMB7HJ.js +4 -0
- package/Marketplace/chunk-OIWQSDTS.js +1 -0
- package/Marketplace/chunk-OSGPJXJZ.js +1 -0
- package/Marketplace/chunk-OVZRFDFO.js +1 -0
- package/Marketplace/chunk-P3XVM6DH.js +1 -0
- package/Marketplace/chunk-PBAFAOKJ.js +1 -0
- package/Marketplace/{chunk-IGKMJFKP.js → chunk-PN3KM4M4.js} +2 -2
- package/Marketplace/{chunk-L76NLJD7.js → chunk-PWOKOWVV.js} +2 -2
- package/Marketplace/chunk-QJCYEP2A.js +1 -0
- package/Marketplace/{chunk-4RLWHMI6.js → chunk-QMHG3QTI.js} +1 -1
- package/Marketplace/chunk-QMIL5QUX.js +1 -0
- package/Marketplace/chunk-QOSWDELZ.js +1 -0
- package/Marketplace/chunk-QQF5ZMGS.js +2 -0
- package/Marketplace/{chunk-6XDT56RT.js → chunk-R3WIWDSP.js} +2 -2
- package/Marketplace/{chunk-LOWGZOML.js → chunk-RBZU7OVM.js} +1 -1
- package/Marketplace/chunk-RFWRWMRC.js +1 -0
- package/Marketplace/chunk-RHMSGY7X.js +1 -0
- package/Marketplace/chunk-RM6ZXD3O.js +1 -0
- package/Marketplace/chunk-RN5CI3LE.js +1 -0
- package/Marketplace/chunk-ROS2QMKF.js +1 -0
- package/Marketplace/{chunk-YTHY4IFS.js → chunk-RQUCYFCB.js} +1 -1
- package/Marketplace/chunk-RUYX7KTP.js +1 -0
- package/Marketplace/{chunk-L22SKCLL.js → chunk-RWPLFNHT.js} +1 -1
- package/Marketplace/{chunk-5PMKN6PM.js → chunk-RXC5D64C.js} +2 -2
- package/Marketplace/chunk-RZ5N5JLA.js +1 -0
- package/Marketplace/chunk-S5D64XYA.js +1 -0
- package/Marketplace/chunk-S5XYWXXP.js +1 -0
- package/Marketplace/chunk-SABMHH6B.js +1 -0
- package/Marketplace/{chunk-TXOZULMZ.js → chunk-SIPZP62B.js} +1 -1
- package/Marketplace/{chunk-6CM22SKR.js → chunk-SMZOSLIK.js} +1 -1
- package/Marketplace/chunk-SN5AD4QE.js +1 -0
- package/Marketplace/chunk-SPLGZRGH.js +5 -0
- package/Marketplace/chunk-TBVMCNS2.js +1 -0
- package/Marketplace/{chunk-3WRXJBHF.js → chunk-TDMNVEUU.js} +3 -3
- package/Marketplace/chunk-TDP3PQDA.js +1 -0
- package/Marketplace/{chunk-RUBV3KX2.js → chunk-TKZ74HJD.js} +1 -1
- package/Marketplace/chunk-TMBZ4K5S.js +1 -0
- package/Marketplace/chunk-TOK5EWN4.js +1 -0
- package/Marketplace/chunk-TYNQDFOT.js +5 -0
- package/Marketplace/{chunk-7GY4O2UX.js → chunk-TYQYNICX.js} +3 -3
- package/Marketplace/{chunk-VX75I7HA.js → chunk-TZTW72NT.js} +1 -1
- package/Marketplace/chunk-U5DJYZUI.js +1 -0
- package/Marketplace/{chunk-AZOCRKXK.js → chunk-UB62TZOI.js} +1 -1
- package/Marketplace/chunk-UE5E7JXK.js +1 -0
- package/Marketplace/chunk-UMLV2ZUF.js +1 -0
- package/Marketplace/{chunk-DUXKDRDP.js → chunk-UMMQ62IZ.js} +1 -1
- package/Marketplace/{chunk-JBEKD57G.js → chunk-UPRDDI4K.js} +1 -1
- package/Marketplace/{chunk-MDP2SGJI.js → chunk-V6QH3IVL.js} +1 -1
- package/Marketplace/chunk-VH7JZJ2B.js +1 -0
- package/Marketplace/chunk-VOONKP66.js +1 -0
- package/Marketplace/chunk-VP3XO25X.js +2 -0
- package/Marketplace/{chunk-KTLMPVSK.js → chunk-VV4G5VL5.js} +1 -1
- package/Marketplace/chunk-VVAEM355.js +1 -0
- package/Marketplace/chunk-VZ7Q4WN7.js +1 -0
- package/Marketplace/{chunk-NWB7EVME.js → chunk-W33M7S2S.js} +1 -1
- package/Marketplace/{chunk-L3W6SG2T.js → chunk-WAXAIL2I.js} +1 -1
- package/Marketplace/chunk-WIBWF333.js +1 -0
- package/Marketplace/{chunk-HK5FXZE4.js → chunk-WIRBYT7F.js} +1 -1
- package/Marketplace/{chunk-KJE5GRQ4.js → chunk-WVA5LYVE.js} +1 -1
- package/Marketplace/chunk-X52ZT4MU.js +1 -0
- package/Marketplace/chunk-XLQGQESJ.js +2 -0
- package/Marketplace/{chunk-6Q6L5NUD.js → chunk-XUDE7VBC.js} +1 -1
- package/Marketplace/{chunk-DHPNXR6E.js → chunk-Y3O22N4P.js} +1 -1
- package/Marketplace/{chunk-Q2QX5AAJ.js → chunk-YABJCAAL.js} +4 -4
- package/Marketplace/{chunk-WFVK32EW.js → chunk-YAWT3CLI.js} +1 -1
- package/Marketplace/chunk-YD6BNJ2B.js +1 -0
- package/Marketplace/{chunk-FHER4TFY.js → chunk-YKKHSYDW.js} +1 -1
- package/Marketplace/chunk-YMAKW4QT.js +1 -0
- package/Marketplace/chunk-YNL43MLU.js +1 -0
- package/Marketplace/chunk-YQZHIZHO.js +6 -0
- package/Marketplace/chunk-YUPBZXLS.js +1 -0
- package/Marketplace/chunk-YX65R6YJ.js +1 -0
- package/Marketplace/chunk-YYV4FSYQ.js +1 -0
- package/Marketplace/{chunk-EYT2YJGK.js → chunk-Z2XRGVGT.js} +1 -1
- package/Marketplace/chunk-Z6LN3X5Q.js +1 -0
- package/Marketplace/{chunk-HPINZVE4.js → chunk-ZC526ERX.js} +1 -1
- package/Marketplace/{chunk-M4ZE35XK.js → chunk-ZDBFIPDM.js} +1 -1
- package/Marketplace/{chunk-RNWHARPK.js → chunk-ZGIYCORM.js} +1 -1
- package/Marketplace/chunk-ZRTUQNSQ.js +1 -0
- package/Marketplace/{chunk-ITGVXYDV.js → chunk-ZWUYPYHD.js} +1 -1
- package/Marketplace/chunk-ZXP3XYSZ.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-RFMKGIMO.js +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-2B5DXBBJ.js +0 -1
- package/Marketplace/chunk-2F4DTZCZ.js +0 -2
- package/Marketplace/chunk-2MEVIFIA.js +0 -1
- package/Marketplace/chunk-2USFVKEX.js +0 -1
- package/Marketplace/chunk-36U7D4LI.js +0 -1
- package/Marketplace/chunk-4JDI3AL5.js +0 -1
- package/Marketplace/chunk-4LQREJ6J.js +0 -1
- package/Marketplace/chunk-4YCSITNV.js +0 -1
- package/Marketplace/chunk-5A3P2NB3.js +0 -1
- package/Marketplace/chunk-6EORXONU.js +0 -4
- package/Marketplace/chunk-6LRZDPE5.js +0 -1
- package/Marketplace/chunk-6UOPF4ZP.js +0 -1
- package/Marketplace/chunk-7Z5X4HRT.js +0 -1
- package/Marketplace/chunk-A7PUMY67.js +0 -1
- package/Marketplace/chunk-BQEBDVGB.js +0 -7
- package/Marketplace/chunk-BXYXVBXP.js +0 -1
- package/Marketplace/chunk-C4VD7LDS.js +0 -266
- package/Marketplace/chunk-C6JVY2ER.js +0 -1
- package/Marketplace/chunk-C7N6EI73.js +0 -1
- package/Marketplace/chunk-CBD25LAJ.js +0 -5
- package/Marketplace/chunk-CT6UFONR.js +0 -1
- package/Marketplace/chunk-D2J64VUP.js +0 -1
- package/Marketplace/chunk-DAUML5UD.js +0 -2
- package/Marketplace/chunk-DDV2A3Y2.js +0 -1
- package/Marketplace/chunk-E32KODU7.js +0 -1
- package/Marketplace/chunk-E3EBAWLJ.js +0 -1
- package/Marketplace/chunk-E66QUDQF.js +0 -1
- package/Marketplace/chunk-E6AMKEQR.js +0 -149
- package/Marketplace/chunk-E6ZWL77N.js +0 -1
- package/Marketplace/chunk-EDEZ3JLR.js +0 -4
- package/Marketplace/chunk-ESXDXSQ3.js +0 -1
- package/Marketplace/chunk-FCEXPGTK.js +0 -5
- package/Marketplace/chunk-FKGKMEDE.js +0 -2
- package/Marketplace/chunk-FKPDG4AM.js +0 -1
- package/Marketplace/chunk-GG3MDS4C.js +0 -1
- package/Marketplace/chunk-GURSK3ZV.js +0 -1
- package/Marketplace/chunk-HNFW4VQS.js +0 -1
- package/Marketplace/chunk-HSQHQZV7.js +0 -1
- package/Marketplace/chunk-I3R7CC6J.js +0 -1
- package/Marketplace/chunk-I7C6W3RB.js +0 -1
- package/Marketplace/chunk-ICE4DSEP.js +0 -1
- package/Marketplace/chunk-ILW6ZFFV.js +0 -1
- package/Marketplace/chunk-JW7NES7L.js +0 -1
- package/Marketplace/chunk-JWK3HR6P.js +0 -1
- package/Marketplace/chunk-K2BII75W.js +0 -15
- package/Marketplace/chunk-KSR5TQDN.js +0 -1
- package/Marketplace/chunk-KUBWQQZK.js +0 -1
- package/Marketplace/chunk-KUNITWR6.js +0 -1
- package/Marketplace/chunk-KVDREHOE.js +0 -1
- package/Marketplace/chunk-LNJUGHOX.js +0 -2
- package/Marketplace/chunk-LY32FUZ4.js +0 -2
- package/Marketplace/chunk-M2BYW5SR.js +0 -1
- package/Marketplace/chunk-MTPSSM64.js +0 -2
- package/Marketplace/chunk-N5VHHR26.js +0 -1
- package/Marketplace/chunk-NBCUYSP7.js +0 -1
- package/Marketplace/chunk-NCKPMA6Q.js +0 -1
- package/Marketplace/chunk-NH6QGSVC.js +0 -1
- package/Marketplace/chunk-O2YF5VGD.js +0 -2
- package/Marketplace/chunk-O4EO3YBL.js +0 -1
- package/Marketplace/chunk-OBF4XVU7.js +0 -1
- package/Marketplace/chunk-ONPG3DER.js +0 -2
- package/Marketplace/chunk-OPXITNRF.js +0 -1
- package/Marketplace/chunk-OXWPYJNB.js +0 -1
- package/Marketplace/chunk-Q4TAOZ73.js +0 -1
- package/Marketplace/chunk-Q56RJPES.js +0 -1
- package/Marketplace/chunk-R2XT5M5F.js +0 -3
- package/Marketplace/chunk-RI7L4QSY.js +0 -5
- package/Marketplace/chunk-RWVVRZJY.js +0 -1
- package/Marketplace/chunk-S5R6MCNP.js +0 -5
- package/Marketplace/chunk-S7CKRTJV.js +0 -2
- package/Marketplace/chunk-STYL7ETF.js +0 -3
- package/Marketplace/chunk-T5IUZ6UD.js +0 -1
- package/Marketplace/chunk-TAITBX62.js +0 -1
- package/Marketplace/chunk-TJYYRHZZ.js +0 -1
- package/Marketplace/chunk-TYQY4WPY.js +0 -1
- package/Marketplace/chunk-UQK5JNU2.js +0 -1
- package/Marketplace/chunk-XLIPGDSC.js +0 -2
- package/Marketplace/chunk-ZLBPUHTQ.js +0 -1
- package/Marketplace/chunk-ZME22WYI.js +0 -1
- package/Marketplace/chunk-ZW2TMVZP.js +0 -10
- package/Marketplace/chunk-ZYJ6LAJ3.js +0 -4
- package/Marketplace/main-K3MDOIIF.js +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{a as X,b as Z,c as ie}from"./chunk-RN5CI3LE.js";import{a as _e}from"./chunk-VOONKP66.js";import{a as Se}from"./chunk-34ZZ4GCS.js";import{a as xe}from"./chunk-YAWT3CLI.js";import{e as Te}from"./chunk-C2LAQOUW.js";import{b as ge}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import{a as T}from"./chunk-YNL43MLU.js";import{c as g}from"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as ne}from"./chunk-ZSUWHVKX.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{b as Ce,c as ye}from"./chunk-5UFP37GQ.js";import{b as S,c as se}from"./chunk-UPRDDI4K.js";import"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import{b as Q,e as ue}from"./chunk-MM7SAZOU.js";import{b as fe,d as ve,e as he,g as be}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as y,q as w,w as J,x as z,z as me}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as v,Ic as V,Nb as Y,Nc as a,Oa as A,Oc as c,Pc as _,Xc as pe,Z as te,_c as K,ac as s,ad as h,bd as ce,cc as u,ec as j,fc as $,gc as G,hc as f,ic as i,id as C,jc as n,jd as O,kc as b,kd as P,lc as N,ld as U,mb as re,mc as W,ob as o,ra as x,rc as M,tb as de,ud as q,v as le,wc as k,ya as E,yc as m,za as I}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function Re(e,l){if(e&1&&(i(0,"div",3)(1,"div",9)(2,"label"),a(3,"Order Fulfillment Webhook Handling"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c((t.data==null?null:t.data.FulfillmentWebhookHandling)==0?"Do Nothing":(t.data==null?null:t.data.FulfillmentWebhookHandling)==1?"Create Outbound Logistic":"Reserve for Future")}}function Ve(e,l){if(e&1&&(i(0,"div",3)(1,"div",10)(2,"label"),a(3,"Process Automatic Return"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data==null?null:t.data.ReturnProcess)}}function Ue(e,l){if(e&1&&(i(0,"div",3)(1,"div",11)(2,"label"),a(3,"Ignore Cancelled Order for Fulfilled Orders"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data.IgnoreReverseOrder?"YES":"NO")}}function Be(e,l){if(e&1&&(i(0,"div",3)(1,"div",12)(2,"label"),a(3,"Size Chart"),n(),i(4,"div",13)(5,"a",14),a(6),n()()()()),e&2){let t=m();o(5),f("href",t.data.SizeChart,re),o(),c(t.data.SizeChart)}}function He(e,l){if(e&1&&(i(0,"div",3)(1,"div",15)(2,"label"),a(3,"ShippingFee"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data.ShippingFee)}}function Ye(e,l){if(e&1&&(i(0,"div",3)(1,"div",16)(2,"label"),a(3,"Pricebook"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data==null?null:t.data.PricebookName)}}function je(e,l){if(e&1&&(i(0,"div",3)(1,"div",17)(2,"label"),a(3,"Unpaid Order"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data.UnpaidOrder?"YES":"NO")}}var Ee=(()=>{let l=class l{constructor(){this.channelType=S}};l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=v({type:l,selectors:[["app-advanced-config-info"]],inputs:{data:"data"},decls:46,vars:14,consts:[[1,"card","pt-12","border-top-0","rounded-0","rounded-bottom"],[1,"card-body"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Register where the transaction is recorded in POS",1,"info-label-group"],["matTooltipPosition","above","matTooltipClass","custom-width-tooltip","matTooltip",`Please input SKU Product for add Additional products that will be entered automatically in every transaction from the marketplace, Example : Paperbag
|
|
2
|
+
`,1,"info-label-group"],["matTooltipPosition","above","matTooltip","Minimal inventory on channel, if product inventory is below minimum inventory will automatically update to 0 ",1,"info-label-group"],["matTooltipPosition","above","matTooltip","WarehouseID is used to determine the warehouse where the location is stored.",1,"info-label-group"],["matTooltipPosition","above","matTooltip","Automatically sync your orders from channel to POS",1,"info-label-group"],["matTooltipPosition","above","matTooltip","create outbound logistic when webhook sends",1,"info-label-group"],["matTooltipPosition","above","matTooltip","If a return signal is sent from Shopee, we will automatically make a return at POS",1,"info-label-group"],["matTooltipPosition","above","matTooltip",`When this configuration is enabled, fulfilled marketplace orders canceled later will not be auto-voided.
|
|
3
|
+
|
|
4
|
+
- Fulfilled orders \u2192 not auto-voided (handle manually)
|
|
5
|
+
|
|
6
|
+
- Unfulfilled orders \u2192 still auto-voided`,1,"info-label-group"],["matTooltip","Image URL for Tokopedia Product Size Chart","matTooltipPosition","above",1,"info-label-group"],[1,"text-break"],["target","_blank",3,"href"],["matTooltipPosition","above","matTooltip","Please input Product SKU to automatically add additional product to record the amount of the shipping fee in order",1,"info-label-group"],[1,"info-label-group"],["matTooltipPosition","above","matTooltip","When this config is turned off, Order is only Synchronize when it has been paid",1,"info-label-group"]],template:function(d,r){d&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label"),a(6,"Register"),n(),i(7,"div")(8,"span"),a(9),n()()()(),i(10,"div",3)(11,"div",5)(12,"label"),a(13,"Additional Item"),n(),i(14,"div")(15,"span"),a(16),n()()()(),i(17,"div",3)(18,"div",6)(19,"label"),a(20,"Minimum Inventory"),n(),i(21,"div")(22,"span"),a(23),C(24,"number"),n()()()(),s(25,Re,7,1,"div",3),s(26,Ve,7,1,"div",3),s(27,Ue,7,1,"div",3),s(28,Be,7,2,"div",3),s(29,He,7,1,"div",3),i(30,"div",3)(31,"div",7)(32,"label"),a(33,"Warehouse ID"),n(),i(34,"div")(35,"span"),a(36),n()()()(),s(37,Ye,7,1,"div",3),i(38,"div",3)(39,"div",8)(40,"label"),a(41,"Order"),n(),i(42,"div")(43,"span"),a(44),n()()()(),s(45,je,7,1,"div",3),n()()()),d&2&&(o(9),c(r.data==null?null:r.data.Register),o(7),c(r.data==null?null:r.data.Additionalitem),o(7),c(O(24,12,r.data==null?null:r.data.MinimumInventory)),o(2),u((r.data==null?null:r.data.TypeID)==r.channelType.Shopify?25:-1),o(),u((r.data==null?null:r.data.TypeID)==r.channelType.Shopee?26:-1),o(),u((r.data==null?null:r.data.TypeID)==r.channelType.Tiktok||(r.data==null?null:r.data.TypeID)==r.channelType.Shopee?27:-1),o(),u((r.data==null?null:r.data.TypeID)==r.channelType.Tokopedia||(r.data==null?null:r.data.TypeID)==r.channelType.Shopee?28:-1),o(),u((r.data==null?null:r.data.TypeID)==r.channelType.WooCommerce?29:-1),o(7),c(r.data==null?null:r.data.WarehouseID),o(),u(r.data!=null&&r.data.PricebookName?37:-1),o(7),c(r.data.SyncOrder?"YES":"NO"),o(),u((r.data==null?null:r.data.TypeID)!==r.channelType.Tokopedia?45:-1))},dependencies:[y,T,g,me],encapsulation:2});let e=l;return e})();function $e(e,l){if(e&1){let t=M();i(0,"button",9),k("click",function(){E(t);let d=m();return I(d.onUpdateChannelType(d.channel))}),a(1," Migrate to ShopifyV2 "),n()}}function Ge(e,l){if(e&1){let t=M();i(0,"div",4)(1,"div",10)(2,"label"),a(3,"Shop ID"),n(),i(4,"div")(5,"span"),a(6),n()(),i(7,"button",9),k("click",function(){E(t);let d=m();return I(d.onTestChannel(d.channel))}),a(8," Test "),n()()()}if(e&2){let t=m();o(6),c(t.channel.ShopID!=0?t.channel.ShopID:t.channel.ShopIDString)}}function Ke(e,l){if(e&1&&(i(0,"div",4)(1,"div",11)(2,"label"),a(3,"Marketplace URL"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.channel.URL)}}function qe(e,l){if(e&1&&(i(0,"div",4)(1,"div",12)(2,"label"),a(3,"Multiwarehouse"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.channel.MultiWarehouse?"YES":"NO")}}var Ie=(()=>{let l=class l{constructor(){this.channelService=x(xe),this.channelType=S}onTestChannel(p){this.channelService.testShopID(p).subscribe()}onUpdateChannelType(p){this.channelService.updateChannelType(p).subscribe()}};l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=v({type:l,selectors:[["app-marketplace-config-info"]],inputs:{channel:"channel"},decls:32,vars:10,consts:[[1,"card"],[1,"card-header"],[1,"card-body","mt-8"],[1,"row"],[1,"col-sm-6"],["matTooltipPosition","above","matTooltip","Your shop name in marketplace channel",1,"info-label-group"],["matTooltipPosition","above","matTooltip","Marketplace / Website where your product is Sold / Distributed",1,"info-label-group","w-100","d-flex","justify-content-between"],[1,"btn","btn-outline-success","ms-2","btn-sm"],["matTooltipPosition","above","matTooltip","Last Sync Product",1,"info-label-group"],[1,"btn","btn-outline-success","ms-2","btn-sm",3,"click"],["matTooltipPosition","above","matTooltip","Your shop ID",1,"info-label-group","w-100","d-flex","justify-content-between"],["matTooltipPosition","above","matTooltip","Your Marketplace URL",1,"info-label-group"],[1,"info-label-group"]],template:function(d,r){d&1&&(i(0,"div",0)(1,"div",1)(2,"h3"),a(3,"Marketplace Setup"),n()(),i(4,"div",2)(5,"div",3)(6,"div",4)(7,"div",5)(8,"label"),a(9,"Name"),n(),i(10,"div")(11,"span"),a(12),n()()()(),i(13,"div",4)(14,"div",6)(15,"label"),a(16,"Type"),n(),i(17,"div")(18,"span"),a(19),n()(),s(20,$e,2,0,"button",7),n()(),s(21,Ge,9,1,"div",4),s(22,Ke,7,1,"div",4),i(23,"div",4)(24,"div",8)(25,"label"),a(26,"Product Sync"),n(),i(27,"div")(28,"span"),a(29),C(30,"date"),n()()()(),s(31,qe,7,1,"div",4),n()()()),d&2&&(o(12),c(r.channel.Name),o(7),c(r.channel.TypeString),o(),u(r.channel.TypeID===r.channelType.Shopify?20:-1),o(),u(r.channel.TypeID!=2?21:-1),o(),u(r.channel.TypeID!=r.channelType.Tiktok?22:-1),o(7),c(r.channel.LastSync?P(30,7,r.channel.LastSync,"dd MMM yyyy HH:mm"):"Never"),o(2),u((r.channel==null?null:r.channel.TypeID)==r.channelType.Shopee?31:-1))},dependencies:[y,T,g,z],encapsulation:2});let e=l;return e})();var ee=(function(e){return e[e.OFF=0]="OFF",e[e.UNFULFILLED=1]="UNFULFILLED",e[e.ALL=2]="ALL",e})(ee||{});var B=(function(e){return e[e.NEVER=0]="NEVER",e[e.UNPAID=1]="UNPAID",e[e.PAID=2]="PAID",e})(B||{});function Je(e,l){if(e&1&&(i(0,"div",2)(1,"div",3)(2,"label"),a(3,"New Order Sync"),n(),i(4,"div")(5,"span"),a(6),n()()(),i(7,"div",3)(8,"label"),a(9,"Cancelled Order Sync"),n(),i(10,"div")(11,"span"),a(12),n()()(),i(13,"div",4)(14,"label"),a(15,"Inventory"),n(),i(16,"div")(17,"span"),a(18),n()()()()),e&2){let t=m();o(),f("matTooltip",t.orderSyncTooltip[t.channel.NewOrderSyncTypeID]),o(5),c(t.channel.NewOrderSyncTypeIDString),o(),f("matTooltip",t.cancelOrderTooltip[t.channel.CancelledOrderSyncTypeID]),o(5),c(t.channel.CancelledOrderSyncTypeIDString),o(6),c(t.channel.SyncInventory?"YES":"NO")}}var ke=(()=>{let l=class l{constructor(){this.channelType=S,this.orderSyncTooltip={[B.PAID]:"Sync only paid orders from the channel and create them as Invoices.",[B.UNPAID]:"Sync unpaid orders from the channel and create them as Sales Orders.",[B.NEVER]:"Do not automatically sync orders from the channel to DealPOS."},this.cancelOrderTooltip={[ee.UNFULFILLED]:" If the order is already fulfilled, the POS invoice will not be voided.",[ee.ALL]:"The POS invoice will always be voided, even if the order is fulfilled."}}};l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=v({type:l,selectors:[["app-sync-config-info"]],inputs:{channel:"channel"},decls:5,vars:1,consts:[[1,"card"],[1,"card-header"],[1,"card-body","mt-8"],["matTooltipPosition","above",1,"info-label-group",3,"matTooltip"],["matTooltipPosition","above","matTooltip","Automatically sync your POS inventory to channel inventory",1,"info-label-group"]],template:function(d,r){d&1&&(i(0,"div",0)(1,"div",1)(2,"h3"),a(3,"Synchronize"),n()(),s(4,Je,19,5,"div",2),n()),d&2&&(o(4),u(r.channel?4:-1))},dependencies:[T,g],encapsulation:2});let e=l;return e})();var Qe=e=>({"bg-gradient-danger":e}),Xe=(e,l)=>({"text-success":e,"text-danger":l});function Ze(e,l){if(e&1&&(i(0,"div",2)(1,"div",3)(2,"div",4)(3,"label"),a(4,"Consumer Key"),n(),i(5,"div")(6,"span"),a(7),n()()()(),i(8,"div",5)(9,"div",4)(10,"label"),a(11,"Consumer Secret"),n(),i(12,"div")(13,"span"),a(14),n()()()()()),e&2){let t=m();o(7),c(t.data==null?null:t.data.ConsumerKey),o(7),c(t.data==null?null:t.data.ConsumerSecret)}}function et(e,l){if(e&1&&(i(0,"div",3)(1,"div",6)(2,"label"),a(3,"Authorized"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data!=null&&t.data.Authorized?"YES":"NO")}}function tt(e,l){if(e&1&&(i(0,"div",3)(1,"div",7),C(2,"expiredTime"),i(3,"label"),a(4,"Shop Expiration"),n(),i(5,"div")(6,"span"),a(7),C(8,"date"),n()()()()),e&2){let t=m();o(),f("ngClass",h(8,Qe,O(2,3,t.data==null?null:t.data.ExpiredTime)))("matTooltip","The expiry date for "+(t.data==null?null:t.data.Name)+" Open API authorization from your account "+(t.data==null?null:t.data.Name)+" to Dealpos"),o(6),c(t.data.ExpiredTime?P(8,5,t.data.ExpiredTime,"dd MMM yyyy HH:mm"):"-")}}function nt(e,l){if(e&1&&(i(0,"div",3)(1,"div",21)(2,"label"),a(3,"Token Issued"),n(),i(4,"div")(5,"span"),a(6),C(7,"date"),n()()()()),e&2){let t=m(2);o(6),c(P(7,1,t.data==null?null:t.data.TokenIssued,"dd MMM yyyy HH:mm"))}}function it(e,l){if(e&1){let t=M();i(0,"div",3)(1,"div",4)(2,"label"),a(3,"Refresh Token"),n(),i(4,"div")(5,"span",8),a(6),n()()()(),i(7,"div",3)(8,"div",9)(9,"label"),a(10,"Access Token"),n(),i(11,"div",10)(12,"span",8),a(13),n(),i(14,"span",11)(15,"button",12),k("click",function(){E(t);let d=m();return I(d.onRefreshToken())}),b(16,"i",13),i(17,"span"),a(18,"Refresh"),n()()()()()(),s(19,nt,8,4,"div",3),i(20,"div",3)(21,"div",14)(22,"label"),a(23,"Access Token Expired"),n(),i(24,"div",15)(25,"div",16),a(26),C(27,"date"),n(),i(28,"div",17)(29,"button",18),k("click",function(){E(t);let d=m();return I(d.onAuthorize())}),b(30,"i",19),i(31,"span"),a(32,"Extend"),n()()()()()(),i(33,"div",3)(34,"div",20)(35,"label"),a(36,"Token Log"),n(),i(37,"div")(38,"span"),a(39),n()()()()}if(e&2){let t=m();o(6),c(t.data==null?null:t.data.RefreshToken),o(7),c(t.data==null?null:t.data.AccessToken),o(6),u((t.data==null?null:t.data.TypeID)==t.channelType.Shopee?19:-1),o(2),f("matTooltip",t.tokenExpiryMessage),o(4),f("ngClass",ce(12,Xe,!t.isAccessTokenExpired,t.isAccessTokenExpired)),o(),_(" ",P(27,9,t.data.TokenExpired,"dd MMM yyyy HH:mm")," "),o(2),f("matTooltip",pe(t.data.TypeID==t.channelType.Shopee?"Extend Shopee Authorization Duration for an additional 1 year":"Update Token Expired date")),o(11),c(t.data!=null&&t.data.TokenLog?"YES":"NO")}}var we=(()=>{let l=class l{constructor(){this.toastr=x(Q),this.authorizeService=x(ie),this.isAccessTokenExpired=!1,this.isRefreshTokenExpired=!1,this.channelType=S,this.onSuccessRefrehToken=new de}ngOnChanges(p){p.data?.currentValue&&(this.checkExpiredToken(),this.tokenExpiryMessage=this.authorizeService.generateTokenExpiryMessage(this.data.TypeID))}checkExpiredToken(){let p=new Date(this.data?.TokenExpired),d=new Date(this.data?.RefreshTokenExpired);this.isAccessTokenExpired=this.authorizeService.isExpiredDate(p),this.isRefreshTokenExpired=this.authorizeService.isExpiredDate(d)}onAuthorize(){this.authorizeService.authorizedChannel(this.data.TypeID).subscribe()}onRefreshToken(){this.authorizeService.onRefreshToken(this.data.ID).subscribe(p=>{this.toastr.success("Token refreshed successfully!","Success").onShown.subscribe(()=>this.onSuccessRefrehToken.emit())})}};l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=v({type:l,selectors:[["app-authorized-config-info"]],inputs:{data:"data"},outputs:{onSuccessRefrehToken:"onSuccessRefrehToken"},features:[K([ie]),A],decls:7,vars:4,consts:[[1,"card","pt-12","border-top-0","rounded-0","rounded-bottom"],[1,"card-body"],[1,"row"],[1,"col-6"],[1,"info-label-group"],[1,"col-6","pe-8"],["matTooltipPosition","above","matTooltip","Channel has been authorized to be managed by omni.dealpos.app",1,"info-label-group"],["matTooltipPosition","above",1,"info-label-group",3,"ngClass","matTooltip"],[1,"text-wrap","text-break"],["matTooltipPosition","above","matTooltip","When your Shop Authorization has not expired you can try generate a new Access Token",1,"info-label-group"],[1,"d-flex","align-items-center","justify-content-between","w-100","text-wrap","text-break","py-3"],[1,"ms-4","text-end",2,"min-width","86px"],["type","button","matTooltip","Generate new access token",1,"btn","btn-outline-secondary","btn-sm",3,"click"],[1,"fa-solid","fa-arrows-rotate","me-2"],["matTooltipPosition","above",1,"info-label-group",3,"matTooltip"],[1,"d-flex","align-items-center","justify-content-between","w-100"],[3,"ngClass"],["matTooltipClass","unset-max-width-tooltip",3,"matTooltip"],["type","button",1,"btn","btn-outline-secondary","btn-sm",3,"click"],[1,"fas","fa-plus-circle","me-2"],["matTooltipPosition","above","matTooltip","Enable for Record log when new token issued",1,"info-label-group"],["matTooltipPosition","above","matTooltip","When a request is made by omni.dealpos.app to get a new access_token from the Channel",1,"info-label-group"]],template:function(d,r){d&1&&(i(0,"div",0)(1,"div",1),s(2,Ze,15,2,"div",2),i(3,"div",2),s(4,et,7,1,"div",3),s(5,tt,9,10,"div",3),s(6,it,40,15),n()()()),d&2&&(o(2),u(r.channelType.WooCommerce==(r.data==null?null:r.data.TypeID)||r.channelType.ShopifyV2==(r.data==null?null:r.data.TypeID)||r.channelType.Shopify==(r.data==null?null:r.data.TypeID)||r.channelType.Plugo==(r.data==null?null:r.data.TypeID)?2:-1),o(2),u(r.channelType.Tokopedia==r.data.TypeID||r.channelType.Shopee==r.data.TypeID||r.channelType.Tiktok==r.data.TypeID||r.channelType.Lazada==r.data.TypeID?4:-1),o(),u((r.data==null?null:r.data.TypeID)==r.channelType.Shopee?5:-1),o(),u((r.data==null?null:r.data.TypeID)==r.channelType.Tiktok||(r.data==null?null:r.data.TypeID)==r.channelType.Lazada||(r.data==null?null:r.data.TypeID)==r.channelType.Shopee?6:-1))},dependencies:[y,w,T,g,z,_e],encapsulation:2});let e=l;return e})();var De=e=>({"bg-gradient-warning":e});function at(e,l){if(e&1&&(i(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"label"),a(5,"New Order To"),n(),i(6,"div")(7,"span"),a(8),n()()()(),i(9,"div",3)(10,"div",5)(11,"label"),a(12,"Dispatch Orders From"),n(),i(13,"div")(14,"span"),a(15),n()()()()(),i(16,"div",2)(17,"div",6)(18,"div",7)(19,"label"),a(20,"Product Inventory"),n(),i(21,"div")(22,"span"),a(23),n()()()()()()),e&2){let t=m();o(3),f("ngClass",h(6,De,!t.data.POSOutlet&&!t.data.MultiWarehouse))("matTooltip",t.data.MultiWarehouse?"":"Outlet where the transaction is recorded in POS"),o(5),c(t.data.POSOutlet),o(2),f("ngClass",h(8,De,!t.data.POSDeliveryOutlet)),o(5),c(t.data.POSDeliveryOutlet),o(8),c(t.data.POSInventoryOutlet)}}var Me=(()=>{let l=class l{constructor(){}ngOnInit(){}};l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=v({type:l,selectors:[["app-outlet-config-info"]],inputs:{data:"data"},decls:2,vars:1,consts:[[1,"card","pt-12","border-top-0","rounded-0","rounded-bottom"],[1,"card-body"],[1,"row"],[1,"col-6"],["matTooltipPosition","above",1,"info-label-group",3,"ngClass","matTooltip"],["matTooltipPosition","above","matTooltip","Outlet where the stock is deducted in POS",1,"info-label-group",3,"ngClass"],[1,"col-12"],["matTooltipPosition","above","matTooltip","Outlet where the inventory will displayed as inventory in Inventory Comparison Menu",1,"info-label-group"]],template:function(d,r){d&1&&(i(0,"div",0),s(1,at,24,10,"div",1),n()),d&2&&(o(),u(r.data?1:-1))},dependencies:[y,w,T,g],encapsulation:2});let e=l;return e})();var ae=e=>({"bg-gradient-warning":e});function ot(e,l){if(e&1&&(i(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"label"),a(5,"Payment Method"),n(),i(6,"div")(7,"span"),a(8),n()()()(),i(9,"div",3)(10,"div",5)(11,"label"),a(12,"Tax"),n(),i(13,"div")(14,"span"),a(15),n()()()()(),i(16,"div",2)(17,"div",3)(18,"div",6)(19,"label"),a(20,"Tag"),n(),i(21,"div")(22,"span"),a(23),n()()()()()()),e&2){let t=m();o(3),f("ngClass",h(6,ae,!t.data.POSInvoicePaymentMethod)),o(5),c(t.data.POSInvoicePaymentMethod),o(2),f("ngClass",h(8,ae,!t.data.POSTax)),o(5),c(t.data.POSTax),o(3),f("ngClass",h(10,ae,!t.data.POSSalesOrderType)),o(5),c(t.data.POSSalesOrderType)}}var Pe=(()=>{let l=class l{constructor(){}ngOnInit(){}};l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=v({type:l,selectors:[["app-orders-config-info"]],inputs:{data:"data"},decls:2,vars:1,consts:[[1,"card","pt-12","border-top-0","rounded-0","rounded-bottom"],[1,"card-body"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Payment that will be recorded in POS if there is a transaction from the marketplace",1,"info-label-group",3,"ngClass"],["matTooltipPosition","above","matTooltip","Tax Type that will be recorded in POS if there is a transaction from the marketplace",1,"info-label-group",3,"ngClass"],["matTooltipPosition","above","matTooltip","Tag Type that will be recorded in POS if there is a transaction from the marketplace",1,"info-label-group",3,"ngClass"]],template:function(d,r){d&1&&(i(0,"div",0),s(1,ot,24,12,"div",1),n()),d&2&&(o(),u(r.data?1:-1))},dependencies:[y,w,T,g],encapsulation:2});let e=l;return e})();var H=(function(e){return e.Never="Never",e.Full="Full",e.WriteOff="Write Off",e})(H||{});function lt(e,l){if(e&1&&(i(0,"div",3)(1,"div",10)(2,"label"),a(3,"Write Off Reason"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data.ServiceFeeWriteOffReason)}}var Oe=(()=>{let l=class l{get getPaymentSyncStateEnum(){switch(this.data.PaymentSyncTypeID){case 0:return H.Never;case 1:return H.Full;case 2:return H.WriteOff;default:throw new Error("Unknown PaymentSyncTypeID")}}constructor(){}ngOnInit(){}};l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=v({type:l,selectors:[["app-invoiceFee-config-info"]],inputs:{data:"data"},decls:23,vars:3,consts:[[1,"card","pt-12","border-top-0","rounded-0","rounded-bottom"],[1,"card-body"],[1,"row"],[1,"col-6"],[1,"info-label-group","mb-4"],[1,"d-flex","border","mb-6","pt-6","px-6",2,"background","#1f87ac0a","border-radius","5px"],[1,"me-3","pt-1"],[1,"fa","fa-lightbulb","fs-5"],[1,"mb-6"],["matTooltipPosition","above","matTooltip","Select Write Off Account",1,"info-label-group","mb-4"],["matTooltipPosition","above","matTooltip","Choose Reason to Write Off",1,"info-label-group"]],template:function(d,r){d&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label"),a(6,"Enable Write Off"),n(),i(7,"div")(8,"span"),a(9),n()()(),i(10,"div",5)(11,"div",6),b(12,"i",7),n(),i(13,"p",8),a(14," When this configuration is turned on, Invoice Payment value is deducted with Marketplace Service Fee. Ex: $100 Order might only receive $97 Payment, $3 is recorded as Write Off "),n()()(),i(15,"div",3)(16,"div",9)(17,"label"),a(18,"PaymentSyncType"),n(),i(19,"div")(20,"span"),a(21),n()()()(),s(22,lt,7,1,"div",3),n()()()),d&2&&(o(9),c(r.data.ServiceFeeWriteOff==!0?"YES":"NO"),o(12),c(r.getPaymentSyncStateEnum),o(),u(r.data.PaymentSyncTypeID==2?22:-1))},dependencies:[T,g],encapsulation:2});let e=l;return e})();var rt=e=>({"bg-gradient-warning":e});function dt(e,l){if(e&1&&(i(0,"tr")(1,"td"),a(2),n(),i(3,"td"),a(4),n(),i(5,"td",8),a(6),n()()),e&2){let t=l.$implicit;o(2),c(t.topic),o(2),c(t.addressWithoutHost),o(),f("ngClass",h(4,rt,!t.enabled)),o(),_(" ",t.enabled?"ENABLED":"DISABLED"," ")}}function pt(e,l){e&1&&(i(0,"table",4)(1,"thead",5)(2,"tr")(3,"th",6),a(4,"Event"),n(),i(5,"th",7),a(6,"Url"),n(),i(7,"th",6),a(8,"State"),n()()(),i(9,"tbody"),$(10,dt,7,6,"tr",null,j),n()()),e&2&&(o(10),G(l))}var Le=(()=>{let l=class l{constructor(){this.shopifyWebhookService=x(X),this.wooCommerceService=x(Z),this.channel=q(void 0)}ngOnChanges(p){let d=this.channel();d&&this.initWebhook(d)}initWebhook(p){switch(p.TypeID){case S.Shopify:this.webhooks$=this.shopifyWebhookService.getWebhookWithState(p.ID).pipe(te(1));break;case S.WooCommerce:this.webhooks$=this.wooCommerceService.getWebhookWithState(p.ID).pipe(te(1));break}}};l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=v({type:l,selectors:[["app-webhook-config-info"]],inputs:{channel:[1,"channel"]},features:[A],decls:7,vars:3,consts:[[1,"card","pt-12","border-top-0","rounded-0","rounded-bottom"],[1,"card-body"],[1,"row"],[1,"col-12"],[1,"table","mb-6","w-50"],[1,"thead-light"],["scope","col",2,"width","100px"],["scope","col"],[3,"ngClass"]],template:function(d,r){if(d&1&&(i(0,"div",0)(1,"div")(2,"div",1)(3,"div",2)(4,"div",3),s(5,pt,12,0,"table",4),C(6,"async"),n()()()()()),d&2){let R;o(5),u((R=O(6,1,r.webhooks$))?5:-1,R)}},dependencies:[y,w,J],encapsulation:2});let e=l;return e})();function ct(e,l){if(e&1&&(i(0,"div",3)(1,"div",5)(2,"label"),a(3,"Category"),n(),i(4,"div")(5,"span"),a(6),C(7,"async"),n()()()()),e&2){let t=m();o(6),c(O(7,1,t.categoryLabel$))}}function mt(e,l){if(e&1&&(i(0,"div",3)(1,"div",6)(2,"label"),a(3,"Brand"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data==null?null:t.data.Brand)}}function st(e,l){if(e&1&&(i(0,"div",3)(1,"div",7)(2,"label"),a(3,"ScanProductSize"),n(),i(4,"div")(5,"span"),a(6),n()()()()),e&2){let t=m();o(6),c(t.data==null?null:t.data.ScanProductSize)}}var Fe=(()=>{let l=class l{constructor(){this.categoryService=x(Se),this.channelType=S}ngOnChanges(){this.data&&(this.categoryLabel$=this.categoryService.getCategories(this.data?.TypeID,this.data?.ID).pipe(le(p=>{let d=this.categoryService.searchByIdWithParentDFS(p,this.data?.DefaultCategoryID),r="";return d&&(r=se.getLabelPathTree(d)),r})))}};l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=v({type:l,selectors:[["app-default-config-info"]],inputs:{data:"data"},features:[A],decls:13,vars:4,consts:[[1,"card","pt-12","border-top-0","rounded-0","rounded-bottom"],[1,"card-body"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Change the customer's name from the order in the marketplace according this email",1,"info-label-group"],["matTooltipPosition","above","matTooltip","Set default category for uploading product to channel",1,"info-label-group"],["matTooltipPosition","above","matTooltip","Brand name for product upload",1,"info-label-group"],["matTooltipPosition","above","matTooltip","Customize Scan Product Size",1,"info-label-group"]],template:function(d,r){d&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label"),a(6,"Customer Default Email"),n(),i(7,"div")(8,"span"),a(9),n()()()(),s(10,ct,8,3,"div",3),s(11,mt,7,1,"div",3),s(12,st,7,1,"div",3),n()()()),d&2&&(o(9),c(r.data==null?null:r.data.CustomerDefaultEmail),o(),u(r.data.TypeID!=r.channelType.Shopify&&r.data.TypeID!=r.channelType.Lazada?10:-1),o(),u((r.data==null?null:r.data.TypeID)==r.channelType.Lazada?11:-1),o(),u((r.data==null?null:r.data.TypeID)==r.channelType.Lazada||(r.data==null?null:r.data.TypeID)==r.channelType.WooCommerce?12:-1))},dependencies:[y,T,g,J],encapsulation:2});let e=l;return e})();function ut(e,l){if(e&1&&(N(0,"tr")(1,"td",4),a(2),W(),N(3,"td",4),a(4),W()()),e&2){let t=l.$implicit;o(2),_(" ",t.Name," "),o(2),_(" ",t.ProductInventoryOutlet," ")}}var Ae=(()=>{let l=class l{constructor(){this.warehouseLocations=q([])}};l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=v({type:l,selectors:[["app-warehouse-config-info"]],inputs:{warehouseLocations:[1,"warehouseLocations"]},decls:12,vars:0,consts:[[1,"card","pt-12","border-top-0","rounded-0","rounded-bottom"],[1,"card-body"],[1,"table","table-bordered","mb-12","w-50"],[1,"table-light"],[1,"text-start"]],template:function(d,r){d&1&&(N(0,"div",0)(1,"div",1)(2,"table",2)(3,"thead")(4,"tr",3)(5,"th",4),a(6,"Shopee Warehouse"),W(),N(7,"th",4),a(8,"DealPOS Outlet"),W()()(),N(9,"tbody"),$(10,ut,5,2,"tr",null,j),W()()()()),d&2&&(o(10),G(r.warehouseLocations()))},dependencies:[Te],encapsulation:2});let e=l;return e})();var oe=e=>[e],Ne=e=>({ID:e}),We=e=>["/menu/channel/marketplace/form",e],ft=e=>({"bg-gradient-danger":e});function vt(e,l){}function ht(e,l){}function bt(e,l){if(e&1){let t=M();i(0,"div",7)(1,"a",8),a(2,"Edit"),n(),b(3,"button",9),i(4,"ul",10)(5,"li",11)(6,"a",12),k("click",function(){E(t);let d=m(2);return I(d.onDelete(d.channel))}),a(7,"Delete"),n()()()()}if(e&2){let t=m(2);o(),f("routerLink",h(3,We,h(1,Ne,t.channel==null?null:t.channel.ID)))}}function Ct(e,l){if(e&1&&(i(0,"button",8),a(1,"Edit"),n()),e&2){let t=m(2);f("routerLink",h(3,We,h(1,Ne,t.channel==null?null:t.channel.ID)))}}function yt(e,l){if(e&1&&Y(0,ht,0,0,"ng-template",5)(1,bt,8,5,"ng-template",null,2,U)(3,Ct,2,5,"ng-template",null,3,U),e&2){let t=V(2),p=V(4),d=m();f("ngxPermissionsOnly",h(3,oe,d.roleChannelDelete))("ngxPermissionsOnlyThen",t)("ngxPermissionsOnlyElse",p)}}function gt(e,l){if(e&1){let t=M();i(0,"button",14),k("click",function(){E(t);let d=m(2);return I(d.onDelete(d.channel))}),a(1,"Delete"),n()}}function Tt(e,l){if(e&1&&Y(0,gt,2,0,"ng-template",13),e&2){let t=m();f("ngxPermissionsOnly",h(1,oe,t.roleChannelDelete))}}function xt(e,l){e&1&&(i(0,"button",26),a(1," Multi Warehouse "),n())}function St(e,l){e&1&&(i(0,"button",28),a(1,"Webhook"),n())}function _t(e,l){if(e&1&&(i(0,"div",40),b(1,"app-webhook-config-info",17),n()),e&2){let t=m(2);o(),f("channel",t.channel)}}function Et(e,l){if(e&1&&(i(0,"span"),a(1),n()),e&2){let t=m(2);o(),_("/",t.channel.Creator)}}function It(e,l){if(e&1&&(i(0,"span"),a(1),n()),e&2){let t=m(3);o(),_("/",t.channel.Creator)}}function kt(e,l){if(e&1&&(i(0,"div")(1,"span",45),a(2,"Modified:"),n(),a(3),C(4,"date"),s(5,It,2,1,"span"),n()),e&2){let t=m(2);o(3),_(" ",P(4,2,t.channel.Modified,"dd MMM yyyy HH:mm")),o(2),u(t.channel.Creator?5:-1)}}function wt(e,l){if(e&1){let t=M();i(0,"div",6)(1,"div",15)(2,"div",16),b(3,"app-marketplace-config-info",17),n(),i(4,"div",18),b(5,"app-sync-config-info",17),n()(),i(6,"div",15)(7,"div",19)(8,"nav")(9,"div",20)(10,"button",21),a(11,"Outlet"),n(),i(12,"button",22),a(13,"Orders"),n(),i(14,"button",23),a(15,"Service Fee"),n(),i(16,"button",24),a(17,"Advanced"),n(),i(18,"button",25),a(19,"Authorization"),n(),s(20,xt,2,0,"button",26),i(21,"button",27),a(22,"Default"),n(),s(23,St,2,0,"button",28),n()(),i(24,"div",29)(25,"div",30),b(26,"app-outlet-config-info",31),n(),i(27,"div",32),b(28,"app-orders-config-info",31),n(),i(29,"div",33),b(30,"app-invoiceFee-config-info",31),n(),i(31,"div",34),b(32,"app-advanced-config-info",31),n(),i(33,"div",35)(34,"app-authorized-config-info",36),k("onSuccessRefrehToken",function(){E(t);let d=m();return I(d.onGetChannel())}),n()(),i(35,"div",37),b(36,"app-warehouse-config-info",38),n(),i(37,"div",39),b(38,"app-default-config-info",31),n(),s(39,_t,2,1,"div",40),n()()(),i(40,"div",41)(41,"div",42),b(42,"i",43),i(43,"div",44)(44,"span",45),a(45,"Created:"),n(),a(46),C(47,"date"),s(48,Et,2,1,"span"),n(),s(49,kt,6,5,"div"),n()()()}if(e&2){let t=m();o(3),f("channel",t.channel),o(2),f("channel",t.channel),o(13),f("ngClass",h(19,ft,!(t.channel!=null&&t.channel.Authorized))),o(2),u((t.channel==null?null:t.channel.TypeID)==t.channelType.Shopee&&(t.channel.WarehouseLocations==null?null:t.channel.WarehouseLocations.length)>0&&(t.channel!=null&&t.channel.MultiWarehouse)?20:-1),o(3),u(t.channelType.Shopify==t.channel.TypeID||t.channelType.WooCommerce==t.channel.TypeID?23:-1),o(3),f("data",t.channel),o(2),f("data",t.channel),o(2),f("data",t.channel),o(2),f("data",t.channel),o(2),f("data",t.channel),o(2),f("warehouseLocations",t.channel.WarehouseLocations),o(2),f("data",t.channel),o(),u(t.channelType.Shopify==t.channel.TypeID||t.channelType.WooCommerce==t.channel.TypeID?39:-1),o(7),_(" ",P(47,16,t.channel.Created,"dd MMM yyyy HH:mm")," "),o(2),u(!t.channel.Modified&&t.channel.Creator?48:-1),o(),u(t.channel.Modified?49:-1)}}var pi=(()=>{let l=class l{constructor(){this.route=x(fe),this.http=x(ue),this.router=x(ve),this.toastr=x(Q),this.roleChannelEdit=ne.ChannelEdit,this.roleChannelDelete=ne.ChannelDelete,this.channelType=S,this.route.queryParams.subscribe(p=>{this.ID=p.ID}),this.ID!=null&&this.onGetChannel()}onGetChannel(){var p={ID:this.ID};this.http.post("/api/ChannelLoader/GetChannelView",p).subscribe(d=>{this.channel=d.Model,this.channel.LogMode==1?this.channel.LogModeLabel="None":this.channel.LogMode==2?this.channel.LogModeLabel="Error":this.channel.LogMode==3&&(this.channel.LogModeLabel="Full")})}onDelete(p){if(confirm("Delete channel "+p.Name+" ?")){var r={ID:p.ID};this.http.post("/api/Channel/DeleteChannel",r).subscribe(R=>{this.toastr.success("Channel "+p.Name+" is deleted!","Success",{closeButton:!0,positionClass:"toast-bottom-right"}),this.router.navigate(["menu/channel"])})}}};l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=v({type:l,selectors:[["app-marketplace-view"]],features:[K([X,Z])],decls:9,vars:9,consts:[["CHANNEL_EDIT",""],["CHANNEL_DELETE",""],["ALL_BUTTON",""],["EDIT_ONLY",""],[3,"headerTitle","hideSearchBox","hideSearchDropdown"],[3,"ngxPermissionsOnly","ngxPermissionsOnlyThen","ngxPermissionsOnlyElse"],[1,"container-fluid","py-5","bg-light-gray"],[1,"btn-group"],["role","button",1,"btn","btn-outline-secondary",3,"routerLink"],["data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-outline-secondary","btn-sm","dropdown-toggle"],[1,"dropdown-menu","dropdown-menu-end","pointer"],[1,"dropdown-item"],["role","button",1,"fs-5",3,"click"],[3,"ngxPermissionsOnly"],["role","button",1,"btn","btn-outline-secondary",3,"click"],[1,"row"],[1,"col-8"],[3,"channel"],[1,"col-4"],[1,"col-12"],["id","nav-tab","role","tablist",1,"nav","nav-tabs"],["id","nav-outlet-config-tab","data-bs-toggle","tab","data-bs-target","#nav-outlet-config","type","button","role","tab","aria-controls","nav-outlet-config","aria-selected","true",1,"nav-link","active"],["id","nav-order-config-tab","data-bs-toggle","tab","data-bs-target","#nav-order-config","type","button","role","tab","aria-controls","nav-order-config","aria-selected","false",1,"nav-link"],["id","nav-service-fee-tab","data-bs-toggle","tab","data-bs-target","#nav-service-fee","type","button","role","tab","aria-controls","nav-service-fee","aria-selected","false",1,"nav-link"],["id","nav-advanced-tab","data-bs-toggle","tab","data-bs-target","#nav-advanced","type","button","role","tab","aria-controls","nav-advanced","aria-selected","false",1,"nav-link"],["id","nav-advanced-tab","data-bs-toggle","tab","data-bs-target","#nav-authorized","type","button","role","tab","aria-controls","nav-authorized","aria-selected","false",1,"nav-link",3,"ngClass"],["id","nav-warehouse-tab","data-bs-toggle","tab","data-bs-target","#nav-warehouse","type","button","role","tab","aria-controls","nav-warehouse","aria-selected","false",1,"nav-link"],["id","nav-default-tab","data-bs-toggle","tab","data-bs-target","#nav-default","type","button","role","tab","aria-controls","nav-default","aria-selected","false",1,"nav-link"],["id","nav-webhook-tab","data-bs-toggle","tab","data-bs-target","#nav-webhook","type","button","role","tab","aria-controls","nav-webhook","aria-selected","false",1,"nav-link"],["id","nav-tabContent",1,"tab-content"],["id","nav-outlet-config","role","tabpanel","aria-labelledby","nav-outlet-config-tab",1,"tab-pane","fade","show","active"],[3,"data"],["id","nav-order-config","role","tabpanel","aria-labelledby","nav-order-config-tab",1,"tab-pane","fade"],["id","nav-service-fee","role","tabpanel","aria-labelledby","nav-service-fee-tab",1,"tab-pane","fade"],["id","nav-advanced","role","tabpanel","aria-labelledby","nav-advanced-tab",1,"tab-pane","fade"],["id","nav-authorized","role","tabpanel","aria-labelledby","nav-authorized-tab",1,"tab-pane","fade"],[3,"onSuccessRefrehToken","data"],["id","nav-warehouse","role","tabpanel","aria-labelledby","nav-warehouse-tab",1,"tab-pane","fade"],[3,"warehouseLocations"],["id","nav-default","role","tabpanel","aria-labelledby","nav-default-tab",1,"tab-pane","fade"],["id","nav-webhook","role","tabpanel","aria-labelledby","nav-webhook-tab",1,"tab-pane","fade"],[1,"alert","alert-warning","w-100"],[1,"d-flex","align-items-center","justify-content-start","p-4"],["aria-hidden","true",1,"fa-regular","fa-file","me-5"],[1,"me-2"],[1,"fw-bold"]],template:function(d,r){if(d&1&&(i(0,"mainpanel",4)(1,"actions"),Y(2,vt,0,0,"ng-template",5)(3,yt,5,5,"ng-template",null,0,U)(5,Tt,1,3,"ng-template",null,1,U),n(),i(7,"content"),s(8,wt,50,21,"div",6),n()()),d&2){let R=V(4),ze=V(6);f("headerTitle","Marketplace Configuration View")("hideSearchBox",!0)("hideSearchDropdown",!0),o(2),f("ngxPermissionsOnly",h(7,oe,r.roleChannelEdit))("ngxPermissionsOnlyThen",R)("ngxPermissionsOnlyElse",ze),o(6),u(r.channel?8:-1)}},dependencies:[y,w,Ee,Ie,ke,we,Me,Pe,Oe,Fe,Le,ge,be,he,ye,Ce,Ae,z],styles:[".tab-pane[_ngcontent-%COMP%]{margin-top:0!important}"]});let e=l;return e})();export{pi as MarketplaceViewComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as N}from"./chunk-ISMIPSYN.js";import{a as Te}from"./chunk-Y3O22N4P.js";import{a as Fe,b as ve,c as be,d as L,e as W}from"./chunk-6NS3D6KQ.js";import{a as we}from"./chunk-R3WIWDSP.js";import{a as Pe,b as ye}from"./chunk-LUJ3SHSP.js";import"./chunk-IVKFEOCB.js";import{c as xe,d as Se}from"./chunk-TZTW72NT.js";import"./chunk-VP3XO25X.js";import"./chunk-5C24BA5F.js";import"./chunk-LR2YCE6M.js";import{e as he}from"./chunk-C2LAQOUW.js";import{a as fe}from"./chunk-RWPLFNHT.js";import"./chunk-MT3CWRVG.js";import"./chunk-W33M7S2S.js";import"./chunk-MTVUPPAN.js";import"./chunk-2NRHX6CZ.js";import{a as ue}from"./chunk-DLHIDOS3.js";import{a as ge}from"./chunk-AJSJJV2I.js";import"./chunk-NVPT5BF2.js";import"./chunk-QMHG3QTI.js";import"./chunk-NIJCYMZM.js";import"./chunk-UMLV2ZUF.js";import"./chunk-7X4B2T6C.js";import"./chunk-PN3KM4M4.js";import"./chunk-WIRBYT7F.js";import"./chunk-ZWUYPYHD.js";import"./chunk-WVA5LYVE.js";import"./chunk-FOKLBUX6.js";import"./chunk-BXNDE6NQ.js";import"./chunk-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{a as me,b as Ce}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import{c as pe}from"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-4S4BOPUV.js";import"./chunk-TBVMCNS2.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-RXC5D64C.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as ae}from"./chunk-ZSUWHVKX.js";import{h as oe}from"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{b as ne,c as ie}from"./chunk-5UFP37GQ.js";import{c as Y}from"./chunk-UPRDDI4K.js";import{A as de,b as re,c as le,h as ce,m as se,o as _e}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as ee,e as te}from"./chunk-MM7SAZOU.js";import"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as Q,F as X,q as J,w as Z,z as E}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{G as A,Hb as q,Ia as H,Nb as M,Nc as p,Oc as B,Pc as T,Rc as P,Sc as y,Tc as w,Xc as G,Z as $,_c as K,ac as h,ad as V,cc as g,dc as k,ea as z,fc as O,gc as R,hc as C,ic as a,id as v,jc as l,jd as b,kc as F,kd as j,mb as D,ob as c,ra as u,rc as S,wc as x,ya as _,yc as r,za as d}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var U=o=>[o],Ve=o=>({"text-decoration-line-through":o}),Ie=o=>({"bg-gradient-warning":o});function De(o,s){if(o&1){let e=S();a(0,"button",13),x("click",function(){_(e);let t=r(),i=r(2);return d(i.updateStock(t))}),F(1,"i",14),p(2," Update "),l()}}function Ee(o,s){if(o&1){let e=S();a(0,"div",8),h(1,De,3,0,"button",10),a(2,"button",11),x("click",function(){_(e);let t=r(2);return d(t.openExportDialog())}),F(3,"i",12),a(4,"span"),p(5,"Export"),l()()()}if(o&2){let e=r(2);c(),g(e.productService.hasSelectionVariant(s)?1:-1)}}function Me(o,s){if(o&1){let e=S();a(0,"th")(1,"input",28),x("change",function(t){_(e);let i=r(),m=r(2);return d(m.onSelectAllSKU(t.target.checked,i))}),l()()}}function Ne(o,s){if(o&1){let e=S();a(0,"input",46),w("ngModelChange",function(t){_(e);let i=r(4).$implicit;return y(i.selected,t)||(i.selected=t),d(t)}),x("ngModelChange",function(){_(e);let t=r(4).$implicit,i=r(3);return d(i.onCheckboxStateProduct(t))}),l()}if(o&2){let e=r(4).$implicit;P("ngModel",e.selected)}}function ke(o,s){if(o&1&&M(0,Ne,1,1,"ng-template",22),o&2){let e=r(6);C("ngxPermissionsOnly",V(1,U,e.rolePriceEdit))}}function Oe(o,s){if(o&1){let e=S();a(0,"img",47),x("click",function(t){_(e);let i=r(3).$implicit,m=r(3);return d(m.onZoomImage(t,i==null?null:i.ImageUrl))}),l()}if(o&2){let e=r(3).$implicit;C("src",G(e.ThumbnailUrl),D)}}function Re(o,s){o&1&&F(0,"img",42)}function Be(o,s){if(o&1&&(a(0,"small",45),p(1),l()),o&2){let e=r(3).$implicit;c(),T("(",e.Category,")")}}function Le(o,s){if(o&1&&(a(0,"td",40)(1,"div",31),h(2,ke,1,3,null,22),a(3,"div"),h(4,Oe,1,2,"img",41)(5,Re,1,0,"img",42),l()()(),a(6,"td",43)(7,"span",44),p(8),l(),h(9,Be,2,1,"small",45),l()),o&2){let e=r(2).$implicit;C("rowSpan",e.Variants.length),c(2),g((e.Variants==null?null:e.Variants.length)>1?2:-1),c(2),g(e.ThumbnailUrl?4:5),c(2),C("rowSpan",e.Variants.length),c(2),B(e.Name),c(),g(e.Category?9:-1)}}function We(o,s){if(o&1){let e=S();a(0,"input",50),w("ngModelChange",function(t){_(e);let i=r(2).$implicit;return y(i.selected,t)||(i.selected=t),d(t)}),l()}if(o&2){let e=r(2).$implicit;P("ngModel",e.selected)}}function Ue(o,s){if(o&1&&(a(0,"td",48),h(1,We,1,1,"input",49),l()),o&2){let e=r().$implicit;c(),g(e.UnitPrice>=0?1:-1)}}function Ae(o,s){o&1&&(a(0,"div",32),p(1," Not Found "),l())}function $e(o,s){if(o&1&&(a(0,"div"),p(1),v(2,"number"),l()),o&2){let e=r().$implicit;c(),T(" ",b(2,1,e.UnitPrice)," ")}}function ze(o,s){if(o&1&&(a(0,"div",33)(1,"a",36),F(2,"i",51),l()()),o&2){let e=r().$implicit,n=r(4);c(),C("href",n.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),D)}}function He(o,s){if(o&1){let e=S();a(0,"div",52),x("click",function(){_(e);let t=r().$implicit,i=r().$implicit,m=r(2),f=r();return d(f.openTableDialog(t,i,m))}),p(1),v(2,"number"),l()}if(o&2){let e=r().$implicit;c(),T(" ",b(2,1,e.Channel[0]==null?null:e.Channel[0].Price)," ")}}function qe(o,s){if(o&1){let e=S();a(0,"tr",29),h(1,Le,10,6),a(2,"td",20),p(3),l(),a(4,"td",23)(5,"span",30),p(6),l()(),M(7,Ue,2,1,"ng-template",22),a(8,"td",23)(9,"div",31),h(10,Ae,2,0,"div",32),h(11,$e,3,3,"div"),h(12,ze,3,1,"div",33),l()(),a(13,"td",34)(14,"div",31),h(15,He,3,3,"div",35),a(16,"div",33)(17,"a",36),F(18,"i",37),l()(),a(19,"div",33)(20,"div",38),x("click",function(){let t=_(e).$implicit,i=r(4);return d(i.refreshPrice(t))}),F(21,"i",39),l()()()()()}if(o&2){let e=s.$implicit,n=s.$index,t=r(4);c(),g(n==0?1:-1),c(2),B(e.Model),c(2),C("matTooltip",e.Discontinued?t.discontinuedVariantMsg:"")("ngClass",V(12,Ve,e.Discontinued)),c(),T(" ",e.Code," "),c(),C("ngxPermissionsOnly",V(14,U,t.rolePriceEdit)),c(3),g((e.Channel[0]==null?null:e.Channel[0].Description)!=null?10:-1),c(),g((e.Channel[0]==null?null:e.Channel[0].Description)==null?11:-1),c(),g((e.Channel[0]==null?null:e.Channel[0].Description)==null?12:-1),c(),C("ngClass",V(16,Ie,e.UnitPrice!=(e.Channel[0]==null?null:e.Channel[0].Price))),c(2),g(e.Channel.length>0?15:-1),c(2),C("href",e.Channel[0]==null?null:e.Channel[0].Url,D)}}function Ge(o,s){if(o&1&&O(0,qe,22,18,"tr",29,k),o&2){let e=s.$implicit;R(e.Variants)}}function Ke(o,s){if(o&1){let e=S();a(0,"div",9)(1,"div",15)(2,"table",16)(3,"thead",17)(4,"tr")(5,"th",18),p(6," Product "),a(7,"div")(8,"mat-slide-toggle",19),w("ngModelChange",function(t){_(e);let i=r(2);return y(i.toggleDifferentInventory,t)||(i.toggleDifferentInventory=t),d(t)}),x("toggleChange",function(){_(e);let t=r(2);return d(t.onToggleDifferentInventory())}),a(9,"small",6),p(10,"FILTER DIFFERENT PRICE"),l()()()(),a(11,"th",20),p(12,"Variant"),l(),a(13,"th",21),p(14,"SKU"),l(),M(15,Me,2,0,"ng-template",22),a(16,"th",23),p(17,"POS"),l(),a(18,"th",23)(19,"div",24),x("click",function(){_(e);let t=r(2);return d(t.openModalFilter())}),F(20,"img",25),a(21,"span",26),p(22),v(23,"stringLimit"),l()()()()(),a(24,"tbody"),O(25,Ge,2,0,null,null,k),l()(),a(27,"infinite-paginator",27),v(28,"async"),x("onNextPage",function(){_(e);let t=r(2);return d(t.infinitePagination.onNextPage(t.searchFilter))})("onLastPage",function(){_(e);let t=r(2);return d(t.infinitePagination.onLastPage(t.searchFilter))})("onGetRowCount",function(){_(e);let t=r(2);return d(t.infinitePagination.getRowCount(t.searchFilter))}),l()()()}if(o&2){let e=r(2);c(8),P("ngModel",e.toggleDifferentInventory),c(7),C("ngxPermissionsOnly",V(16,U,e.rolePriceEdit)),c(4),C("matTooltip",(e.selectedChannel==null||e.selectedChannel.Name==null?null:e.selectedChannel.Name.length)>=20?e.selectedChannel==null?null:e.selectedChannel.Name:""),c(),C("src",e.selectedChannel==null?null:e.selectedChannel.Img,D),c(2),T(" ",j(23,11,e.selectedChannel==null?null:e.selectedChannel.Name,20)," "),c(3),R(s),c(2),C("totalData",e.infinitePagination.totalData())("hideCount",e.infinitePagination.hideCount())("rowCount",b(28,14,e.infinitePagination.totalRowCount$))("pageNumber",e.infinitePagination.pageNumber())("disableNextButton",e.infinitePagination.disableNextButton())("goToLastPage",e.infinitePagination.isLastPage())}}function je(o,s){if(o&1){let e=S();a(0,"mainpanel",1),w("textChange",function(t){_(e);let i=r();return y(i.searchFilter.text,t)||(i.searchFilter.text=t),d(t)}),x("onSubmit",function(){_(e);let t=r();return d(t.onSearch())}),a(1,"filters")(2,"div",2)(3,"label",3),p(4,"Channel"),l(),a(5,"app-channel-options-v2",4),w("ngModelChange",function(t){_(e);let i=r();return y(i.searchFilter.ChannelID,t)||(i.searchFilter.ChannelID=t),d(t)}),l()(),a(6,"div",2)(7,"filter-query-type",5),w("numberFilterComparatorChange",function(t){_(e);let i=r();return y(i.searchFilter.NumberFilterComparator,t)||(i.searchFilter.NumberFilterComparator=t),d(t)})("searchTypeChange",function(t){_(e);let i=r();return y(i.searchFilter.SearchType,t)||(i.searchFilter.SearchType=t),d(t)}),l()(),a(8,"div",2)(9,"label",6),p(10,"Page Number"),l(),a(11,"input",7),w("ngModelChange",function(t){_(e);let i=r();return y(i.searchFilter.PageNumber,t)||(i.searchFilter.PageNumber=t),d(t)}),l()(),a(12,"div")(13,"label",6),p(14,"Page Size"),l(),a(15,"input",7),w("ngModelChange",function(t){_(e);let i=r();return y(i.searchFilter.RowCount,t)||(i.searchFilter.RowCount=t),d(t)}),l()()(),a(16,"actions"),h(17,Ee,6,1,"div",8),v(18,"async"),l(),a(19,"content"),h(20,Ke,29,18,"div",9),v(21,"async"),l()()}if(o&2){let e,n,t=s,i=r();C("headerTitle",i.pageTitle),P("text",i.searchFilter.text),C("searchBoxPlaceHolder",i.searchPlaceholder()),c(5),P("ngModel",i.searchFilter.ChannelID),c(2),C("numberFilterComparatorOptions",t==null||t.Options==null?null:t.Options.SearchComparatorTypeOptions),P("numberFilterComparator",i.searchFilter.NumberFilterComparator),C("searchTypeOptions",t==null||t.Options==null?null:t.Options.SearchSKUOnlyOrSKUNameOptions),P("searchType",i.searchFilter.SearchType),c(4),P("ngModel",i.searchFilter.PageNumber),c(4),P("ngModel",i.searchFilter.RowCount),c(2),g((e=b(18,12,i.data$))?17:-1,e),c(3),g((n=b(21,14,i.data$))?20:-1,n)}}var Et=(()=>{let s=class s{constructor(){this.http=u(te),this.toastr=u(ee),this.dialog=u(pe),this.productService=u(ge),this.biggerPictureService=u(ue),this.authService=u(oe),this.mainPanelService=u(me),this.decimalPipe=u(E),this.placeholderService=u(xe),this.infinitePagination=u(L),this.updateResHandling=u(W),this.pageTitle="Price Single Channel Comparison",this.toggleDifferentInventory=!1,this.loaderEndpoint="PriceLoader/Load",this.dataEndpoint="Price/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.rolePriceEdit=ae.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 ...");let n=this.authService;this.hostName=this.authService.getDomain(),this.data$=this.infinitePagination.data$.pipe($(1)),this.channelOptions=n.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(n=>{this.searchFilter=n.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(n){n.Variants=n.Variants.map(t=>(t.selected=n.selected,t))}openModalFilter(){this.mainPanelService.openModalFilter()}updateStock(n){let i=this.productService.selectedVariantProduct(n).map(f=>({ID:f.ID,ChannelID:f.Channel[0].ChannelID,Code:f.Code,Price:f.UnitPrice})),m={ListChannelID:[this.searchFilter.ChannelID],ListPrice:i};this.http.post("/api/Price/UpdateChannel",m).subscribe(f=>{this.onSearch(),this.handlingUpdateStock(f.Response)})}handlingUpdateStock(n){if(n.success_list?.length>0||n.failure_list?.length>0){let t=n.failure_list,i=n.success_list;this.updateResHandling.responseHandling(i,t,"Price")}else this.toastr.error(n[0]?.Exception,"Error")}refreshPrice(n){let t={ChannelItemID:n?.Channel[0].ChannelItemID,ChannelVariationID:n?.Channel[0]?.ChannelVariationID,ChannelID:n?.Channel[0]?.ChannelID,VariantID:n.ID};this.http.post("/api/Price/RefreshPriceChannel",t).subscribe(i=>{this.toastr.success("Successfully updated","Success"),this.onSearch()})}onSearch(){this.infinitePagination.reloadPagination(this.searchFilter),this.initSelectedChannel(),this.initSearchPlaceholder()}openTableDialog(n,t,i){let m=JSON.parse(JSON.stringify(n));this.dialog.open(Fe,{data:{Name:t.Name,Variant:m,ChannelID:m?.Channel[0]?.ChannelID,Table:"price",ChannelItemID:m?.Channel[0]?.ChannelItemID}}).afterClosed().pipe(A(I=>Y.IsNotEmpty(I))).subscribe(I=>{this.updateItemAfterDialog(I,n)})}updateItemAfterDialog(n,t){let i={ID:n.ChannelID,ChannelItemID:n.ChannelItemID,ChannelVariantID:n.ChannelVariationID,Price:parseFloat(n.Price),VariantID:n.ID,SKU:n.Sku};this.http.post("/api/Price/UpdatePriceByID",i).subscribe(m=>{let f=this.productService.findChannelById(i.ID,this.channelOptions),I=i.Price?this.decimalPipe.transform(i.Price):i.Price;this.toastr.success(`Successfully updated ${n.ItemName} (${n.VarName}) price in ${f.Name} to ${I}`,"Success"),t.Channel[0]&&(t.Channel[0].Price=i.Price),this.infinitePagination.reloadPagination(this.searchFilter)})}initSelectedChannel(){this.selectedChannel=this.channelOptions.find(n=>n.ID==this.searchFilter.ChannelID)}onSelectAllSKU(n,t){t=t.map(i=>(i.Variants=i.Variants.map(m=>(m.selected=n,m)),i))}onZoomImage(n,t){this.biggerPictureService.openBiggerPicture(n,t)}openExportDialog(){this.dialog.open(we,{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)},s.\u0275cmp=q({type:s,selectors:[["app-price-single-channel"]],features:[K([L,Te,X("https://resc.cloudinary.com/"),E,W])],decls:2,vars:3,consts:[[1,"single-price",3,"headerTitle","text","searchBoxPlaceHolder"],[1,"single-price",3,"textChange","onSubmit","headerTitle","text","searchBoxPlaceHolder"],[1,"mb-5"],[1,"fw-bold","mb-2"],[3,"ngModelChange","ngModel"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],[1,"fw-bold"],["type","number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"d-flex"],[1,"container-fluid","mt-5"],[1,"btn","btn-success"],[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,"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"],["loading","lazy",1,"border","rounded","w-img","cursor-pointer",2,"margin-left","8px",3,"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,"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"],[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,i){if(t&1&&(h(0,je,22,16,"mainpanel",0),v(1,"async")),t&2){let m;g((m=b(1,1,i.loader$))?0:-1,m)}},dependencies:[Q,J,Ce,de,le,_e,re,ce,se,be,ie,ne,ye,Pe,fe,he,Se,Z,E,ve],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 o=s;return o})();export{Et as PriceSingleChannelComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ne,b as ae,c as pe,d as ce,e as se,f as le}from"./chunk-TKZ74HJD.js";import{a as G}from"./chunk-7HRL6MHY.js";import"./chunk-UB62TZOI.js";import"./chunk-O4U34AC7.js";import{a as ie,b as re}from"./chunk-MTVUPPAN.js";import"./chunk-UMLV2ZUF.js";import"./chunk-WIRBYT7F.js";import"./chunk-WVA5LYVE.js";import"./chunk-FOKLBUX6.js";import{a as te,b as oe}from"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as ee}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-RXC5D64C.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import"./chunk-AGBJEXIM.js";import{A as Z,c as U,h as X,m as Y}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import{b as q}from"./chunk-MM7SAZOU.js";import{b as H,d as J,e as K,g as Q}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as z,w as j}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{$c as T,Hb as P,Ia as C,Lc as F,Mc as E,Nc as _,Oc as I,Pc as O,Rc as x,Sc as v,Tc as w,Uc as W,_c as B,aa as D,ac as V,ad as L,cc as N,dc as y,ea as R,fc as M,gc as S,hc as b,ic as n,id as $,jc as p,jd as A,ob as s,ra as g,rc as k,wc as h,ya as l,yc as f,za as d}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var de=()=>({display:"d-flex"}),me=a=>({"border-end-0":a});function ue(a,c){if(a&1){let i=k();n(0,"div",18),h("click",function(){let o=l(i).$implicit;return d(o.checked=!o.checked)}),n(1,"div",19)(2,"p-checkbox",20),w("ngModelChange",function(o){let e=l(i).$implicit;return v(e.checked,o)||(e.checked=o),d(o)}),h("click",function(o){return l(i),d(o.stopPropagation())}),p(),n(3,"p",21),_(4),p()()()}if(a&2){let i=c.$implicit,t=c.$index,o=f().$implicit;E(L(8,me,t!==o.Roles.length-1)),b("pTooltip",i.Description),s(2),F(T(10,de)),b("binary",!0),x("ngModel",i.checked),s(2),O(" ",i.Name," ")}}function _e(a,c){if(a&1){let i=k();n(0,"div",11)(1,"div",12),h("click",function(){let o=l(i).$implicit,e=f(2);return d(e.onPermissionGroupChange(!o.checked,o.ID))}),n(2,"div",13)(3,"span",14),_(4),p(),n(5,"p-checkbox",15),h("click",function(o){return l(i),d(o.stopPropagation())})("onChange",function(o){let e=l(i).$implicit,r=f(2);return d(r.onPermissionGroupChange(o.checked,e.ID))}),p()()(),n(6,"div",16)(7,"div",11),M(8,ue,5,11,"div",17,y),p()()()}if(a&2){let i=c.$implicit;s(4),I(i.Name),s(),F(T(5,de)),b("binary",!0)("ngModel",i.checked),s(3),S(i==null?null:i.Roles)}}function he(a,c){if(a&1&&(n(0,"div",9),M(1,_e,10,6,"div",11,y),p()),a&2){let i=f();s(),S(i.roleOptions())}}var Oe=(()=>{let c=class c{constructor(){this.groupService=g(G),this.activatedRoute=g(H),this.toastr=g(q),this.router=g(J),this.groupName=C(null),this.roleOptions=C([]),this.description=C(null),this.group$=this.activatedRoute.queryParams.pipe(D(t=>(this.groupID=t.ID,this.groupService.getGroupsForm(t.ID))),R(t=>{this.groupName.set(t.Group.Name),this.description.set(t.Group.Description),this.initRoleOptions(t.Options,t.RoleSelected)}))}initRoleOptions(t,o){t=t.map(e=>(e.Roles=e.Roles.map(r=>(r.checked=o.includes(r.ID),r)),e.checked=e.Roles.every(r=>r.checked),e)),this.roleOptions.set(t)}onPermissionGroupChange(t,o){this.roleOptions.update(e=>{let r=e.findIndex(m=>m.ID===o);return r!==-1&&(e[r].checked=t,e[r].Roles=e[r].Roles.map(m=>(m.checked=t,m))),[...e]})}onSubmit(){let t={Group:{ID:this.groupID,Name:this.groupName(),Description:this.description()},RoleSelected:this.getSelecedRoles()};this.groupService.submitGroup(t).subscribe({next:o=>{this.toastr.success("Group saved successfully","Success"),this.router.navigate(["/menu/users/groups"])}})}getSelecedRoles(){let t=[];return this.roleOptions().forEach(o=>{o.Roles.forEach(e=>{e.checked&&t.push(e.ID)})}),t}};c.\u0275fac=function(o){return new(o||c)},c.\u0275cmp=P({type:c,selectors:[["app-groups-form"]],features:[B([G])],decls:24,vars:8,consts:[["headerTitle","Groups Form",3,"headerTitle","hideSearchBox","hideSearchDropdown"],["routerLink","/menu/users/groups",1,"btn","btn-secondary","me-3"],[1,"btn","btn-success",3,"click"],[1,"container-fluid"],[1,"row","mt-8"],[1,"col-12"],["type","text","pInputText","","placeholder","Group Name",1,"w-100","form-control","rounded-1",2,"padding-top","12px","padding-bottom","12px","font-size","14px",3,"ngModelChange","ngModel"],["value","0"],["value","1"],[1,"d-flex","flex-column","row-gap-6","ps-8"],["pInputTextarea","","rows","10","placeholder","Description",1,"w-100","form-control","rounded-1",3,"ngModelChange","ngModel"],[1,"row"],[1,"col-2","border","d-flex","align-items-center","justify-content-between","border-end-0","cursor-pointer",2,"height","40px","background","#f6f6f6","cursor","pointer",3,"click"],[1,"d-flex","justify-content-center","w-100","align-items-center","gap-4"],[1,"fs-5","w-100","text-center"],["size","small",3,"click","onChange","binary","ngModel"],[1,"col"],["tooltipPosition","top",1,"col-3","border","p-0","bg-white","cursor-pointer",2,"height","40px",3,"class","pTooltip"],["tooltipPosition","top",1,"col-3","border","p-0","bg-white","cursor-pointer",2,"height","40px",3,"click","pTooltip"],[1,"d-flex","h-100","align-items-center","gap-4","px-2"],["size","small",3,"ngModelChange","click","binary","ngModel"],[1,"fs-6","text-dark",2,"margin","0"]],template:function(o,e){if(o&1){let r=k();W(0),$(1,"async"),n(2,"mainpanel",0)(3,"actions")(4,"a",1),_(5," Cancel "),p(),n(6,"button",2),h("click",function(){return l(r),d(e.onSubmit())}),_(7,"Save"),p()(),n(8,"content")(9,"div",3)(10,"div",4)(11,"div",5)(12,"input",6),w("ngModelChange",function(u){return l(r),v(e.groupName,u)||(e.groupName=u),d(u)}),p()()(),n(13,"p-tabs",7)(14,"p-tablist")(15,"p-tab",7),_(16,"Permission"),p(),n(17,"p-tab",8),_(18,"Description"),p()(),n(19,"p-tabpanels")(20,"p-tabpanel",7),V(21,he,3,0,"div",9),p(),n(22,"p-tabpanel",8)(23,"textarea",10),w("ngModelChange",function(u){return l(r),v(e.description,u)||(e.description=u),d(u)}),p()()()()()()()}if(o&2){let r=A(1,6,e.group$);s(2),b("headerTitle",e.groupName()?"Edit Group - "+e.groupName():"New Group Form")("hideSearchBox",!0)("hideSearchDropdown",!0),s(10),x("ngModel",e.groupName),s(9),N(r?21:-1),s(2),x("ngModel",e.description)}},dependencies:[z,ee,le,se,ce,pe,ne,ae,Z,U,X,Y,re,ie,oe,te,Q,K,j],styles:["[_nghost-%COMP%] .p-checkbox{display:flex!important;--p-checkbox-checked-background: #0976b4;--p-checkbox-hover-border-color: #0976b4;--p-checkbox-checked-border-color: #0976b4;--p-checkbox-checked-hover-border-color: #0976b4;--p-checkbox-hover-border-color-background: #0669a2;--p-checkbox-checked-hover-background: #0976b4}[_nghost-%COMP%] .p-tabs{--p-tabs-tab-active-color: #555555;--p-tabs-tab-color: #0976b4}[_nghost-%COMP%] .p-tabs .p-tabpanels{padding-left:0!important}[_nghost-%COMP%] .p-tabs .p-tablist-active-bar{background-color:#555!important}[_nghost-%COMP%] .p-panel .p-panel-header{display:none!important}"],changeDetection:0});let a=c;return a})();export{Oe as GroupsFormComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s}from"./chunk-QXRG5XYP.js";import{a as g}from"./chunk-AGBJEXIM.js";import{c as n}from"./chunk-UPRDDI4K.js";import{e as h}from"./chunk-MM7SAZOU.js";import{Ia as o,ea as l,ma as i,ra as c}from"./chunk-OHGMB7HJ.js";var k=(()=>{let r=class r{constructor(){this.httpService=c(h),this.currentUser=o(null),this.tokenValue=o(null),this.channels=o([])}refreshToken(){return this.httpService.get(g.RefreshToken).pipe(l(e=>{this.updateTokenInLocalStorage(e)}))}updateTokenInLocalStorage(e){this.saveUserToLocalStorage(e),this.saveChannelsToLocalStorage(e.Channels)}saveUserToLocalStorage(e){let t=JSON.stringify(e);localStorage.setItem(s.USER,t)}getUser(){if(this.currentUser())return this.currentUser();{let e=localStorage.getItem(s.USER);return this.currentUser.set(e?JSON.parse(e):null),this.currentUser()}}getTokenValue(){let e=this.getUser();if(!this.tokenValue()){let t=n.parseJwt(e?.Token.access_token);this.tokenValue.set(t)}return this.tokenValue()}saveChannelsToLocalStorage(e){let t=JSON.stringify(e);localStorage.setItem(s.CHANNELS,t)}getChannels(){if(this.channels().length==0){let e=localStorage.getItem(s.CHANNELS),t=e?JSON.parse(e):[];t=this.assignChannelsLogo(t),this.channels.set(t)}return this.channels()}assignChannelsLogo(e){return e.map(t=>(t.logo=n.getChannelLogoByTypeId(t.TypeID),t.Img=n.getChannelLogoByTypeId(t.TypeID),t))}clearStorage(){localStorage.removeItem(s.USER),localStorage.removeItem(s.CHANNELS),this.currentUser.set(null),this.tokenValue.set(null),this.channels.set([])}};r.\u0275fac=function(t){return new(t||r)},r.\u0275prov=i({token:r,factory:r.\u0275fac,providedIn:"root"});let a=r;return a})();export{k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
1
|
+
import{a as l}from"./chunk-FOKLBUX6.js";import{Aa as i,Hb as a,Lb as c,Pa as r,nc as s}from"./chunk-OHGMB7HJ.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 @@
|
|
|
1
|
+
import{a as c}from"./chunk-4VNQYYVV.js";import{a as r}from"./chunk-AGBJEXIM.js";import{e as n}from"./chunk-MM7SAZOU.js";import{ma as s,ra as o}from"./chunk-OHGMB7HJ.js";var C=(()=>{let i=class i{constructor(){this.httpService=o(n)}getLoader(){return this.httpService.post(r.PosAccountGetConfig,{})}submitConfig(e){return this.httpService.post(r.SubmitConfig,e)}testChannel(e){return this.httpService.post(r.PosAccountTest,e)}refreshToken(e){return this.httpService.post(r.PosAccountRemove,e)}};i.\u0275fac=function(a){return new(a||i)},i.\u0275prov=s({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var h=class{constructor(){this.Host="",this.Username="",this.Password="",this.HostNotification="",this.UsernameNotification="",this.PasswordNotification="",this.ChannelInventoryOutlet="",this.OrderPaymentAmountType=0,this.ClientSecretGuid="",this.IncludeParentInventory=!1,this.IncludeChildrenInventory=!1,this.CompositeVisible=!1,this.ClientIDGuid="",this.AuthorizationMode=c.Legacy}};var u=(function(t){return t[t.NONE=0]="NONE",t[t.ERROR=1]="ERROR",t[t.FULL=2]="FULL",t})(u||{});export{C as a,h as b,u as c};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ac as o,Hb as a,Kc as r,zc as l}from"./chunk-OHGMB7HJ.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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as _,g}from"./chunk-
|
|
1
|
+
import{d as _,g}from"./chunk-DDFP4CNP.js";import{b as Z,c as F,d as W,f as y}from"./chunk-RBZU7OVM.js";import{F as r,N as B,a as c,g as V,h as z,i as R,m as l,p as T,r as u,s as N,u as f,ua as C}from"./chunk-RXC5D64C.js";import{C as P}from"./chunk-JNRCB7N3.js";import{Ab as v,Cb as D,Fd as d,Gd as p,Ib as S,Jb as H,Lb as I,Pa as w,_c as M,ma as L,na as E,pa as O,pd as k,qd as A,ra as m,ub as x,ud as b}from"./chunk-OHGMB7HJ.js";import{a as h}from"./chunk-66YHNWRR.js";var j=`
|
|
2
2
|
.p-tooltip {
|
|
3
3
|
position: absolute;
|
|
4
4
|
display: none;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as w,d as I,e as r,f as N}from"./chunk-
|
|
1
|
+
import{c as w,d as I,e as r,f as N}from"./chunk-RBZU7OVM.js";import{Q as E,T as B,ma as s,ua as x}from"./chunk-RXC5D64C.js";import{A as C}from"./chunk-JNRCB7N3.js";import{Fd as D,Hb as p,Ib as u,Jc as v,Lb as f,Mb as h,Mc as y,Nc as m,Oc as S,Pa as g,_c as z,ma as l,na as b,pa as c,ra as a,ud as n}from"./chunk-OHGMB7HJ.js";var M=`
|
|
2
2
|
.p-badge {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
border-radius: dt('badge.border.radius');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./chunk-KUKTPGJ2.js";import{a as d,b as h}from"./chunk-J6HA4ZHH.js";import"./chunk-YNL43MLU.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-5UFP37GQ.js";import"./chunk-UPRDDI4K.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import"./chunk-MM7SAZOU.js";import{c as m}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as i,hc as l,ic as p,jc as c,kc as a,ob as r}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var u=(()=>{let n=class n{constructor(){this.ObjectlogTabs=[{Title:"Channel Push Log Exception",Url:"/menu/log/exception"},{Title:"Channel Push Log",Url:"/menu/log/rawlog"},{Title:"POS Sync Order Log",Url:"/menu/log/order"},{Title:"Inventory Sync ",Url:"/menu/log/inventory"},{Title:"Authorization Log ",Url:"/menu/log/authorization-log"},{Title:"Flush Cache ",Url:"/menu/log/flush-cache"}]}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=i({type:n,selectors:[["app-logs"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(o,s){o&1&&(p(0,"nav",0)(1,"div",1)(2,"div"),a(3,"nav-tab",2),c()()(),a(4,"router-outlet")),o&2&&(r(3),l("Tabs",s.ObjectlogTabs))},dependencies:[h,d,m],encapsulation:2});let t=n;return t})();var b=[{path:"",component:u,children:[{path:"",redirectTo:"exception",pathMatch:"full"},{path:"order",loadComponent(){return import("./chunk-RFWRWMRC.js").then(t=>t.OrderComponent)},canActivate:[e],data:{title:"Order Log"}},{path:"inventory/sync-inventory",loadComponent(){return import("./chunk-ESBL3IFN.js").then(t=>t.InventoryLogComponent)},canActivate:[e],data:{title:"Product Inventory Sync"}},{path:"rawlog",loadComponent(){return import("./chunk-2UNT2DUM.js").then(t=>t.RawLogComponent)},canActivate:[e],data:{title:"Raw Log"}},{path:"rawlog/detail",loadComponent(){return import("./chunk-JYSOUJ42.js").then(t=>t.RawDetailComponent)},canActivate:[e],data:{title:"Raw Log Detail"}},{path:"inventory/sync-inventory/detail",loadComponent(){return import("./chunk-GVJLKDIO.js").then(t=>t.InventoryDetailComponent)},canActivate:[e],data:{title:"Product Inventory Sync Detail"}},{path:"order/detail",loadComponent(){return import("./chunk-4KGXKQPG.js").then(t=>t.OrderdetailComponent)},canActivate:[e],data:{title:"Order Details"}},{path:"order/detail-user",loadComponent(){return import("./chunk-3NAMEVOB.js").then(t=>t.OrderdetailUserComponent)},canActivate:[e],data:{title:"Order User Details"}},{path:"exception",loadComponent(){return import("./chunk-KNBXCPTA.js").then(t=>t.ExceptionLogComponent)},canActivate:[e],data:{title:"Exception Log"}},{path:"exception/detail",loadComponent(){return import("./chunk-ZXP3XYSZ.js").then(t=>t.ExceptionDetailComponent)},canActivate:[e],data:{title:"Exception Log Detail"}},{path:"inventory",loadComponent:()=>import("./chunk-JV4F6ZYF.js").then(t=>t.InventoryAsyncLogComponent),canActivate:[e],data:{title:"Product Inventory Sync"}},{path:"inventory/detail",loadComponent:()=>import("./chunk-OIWQSDTS.js").then(t=>t.InventoryAsyncDetailComponent),canActivate:[e],data:{title:"Product Inventory Sync Detail"}},{path:"authorization-log",loadComponent(){return import("./chunk-TMBZ4K5S.js").then(t=>t.ChannelLogComponent)},canActivate:[e],data:{title:"Authorization Log"}},{path:"flush-cache",loadComponent(){return import("./chunk-B5ZK5TGW.js").then(t=>t.FlushCacheComponent)},canActivate:[e],data:{title:"Flush Cache"}}]}];export{b as routes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
1
|
+
import{a as l}from"./chunk-FOKLBUX6.js";import{a as j}from"./chunk-DDFP4CNP.js";import{c as N,d as f,e as d}from"./chunk-RBZU7OVM.js";import{ua as T}from"./chunk-RXC5D64C.js";import{A as B,C as L}from"./chunk-JNRCB7N3.js";import{Aa as a,Ac as E,Da as F,Hb as c,Ib as m,Jb as D,Lb as s,Mb as I,Mc as x,Pa as i,Ra as g,Wa as y,_c as A,ma as h,na as p,nc as u,pa as v,ra as r,zc as M}from"./chunk-OHGMB7HJ.js";var $=(()=>{class e extends f{autofocus=!1;focused=!1;platformId=r(y);document=r(F);host=r(g);onAfterContentChecked(){this.autofocus===!1?this.host.nativeElement.removeAttribute("autofocus"):this.host.nativeElement.setAttribute("autofocus",!0),this.focused||this.autoFocus()}onAfterViewChecked(){this.focused||this.autoFocus()}autoFocus(){L(this.platformId)&&this.autofocus&&setTimeout(()=>{let t=j.getFocusableElements(this.host?.nativeElement);t.length===0&&this.host.nativeElement.focus(),t.length>0&&t[0].focus(),this.focused=!0})}static \u0275fac=(()=>{let t;return function(n){return(t||(t=i(e)))(n||e)}})();static \u0275dir=D({type:e,selectors:[["","pAutoFocus",""]],inputs:{autofocus:[0,"pAutoFocus","autofocus"]},features:[s]})}return e})(),q=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275mod=m({type:e});static \u0275inj=p({})}return e})();var b=["*"],k={root:"p-fluid"},w=(()=>{class e extends T{name="fluid";classes=k;static \u0275fac=(()=>{let t;return function(n){return(t||(t=i(e)))(n||e)}})();static \u0275prov=h({token:e,factory:e.\u0275fac})}return e})();var S=new v("FLUID_INSTANCE"),re=(()=>{class e extends f{$pcFluid=r(S,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=r(d,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}_componentStyle=r(w);static \u0275fac=(()=>{let t;return function(n){return(t||(t=i(e)))(n||e)}})();static \u0275cmp=c({type:e,selectors:[["p-fluid"]],hostVars:2,hostBindings:function(o,n){o&2&&x(n.cx("root"))},features:[A([w,{provide:S,useExisting:e},{provide:N,useExisting:e}]),I([d]),s],ngContentSelectors:b,decls:1,vars:0,template:function(o,n){o&1&&(M(),E(0))},dependencies:[B],encapsulation:2,changeDetection:0})}return e})();var V=["data-p-icon","chevron-down"],ue=(()=>{class e extends l{static \u0275fac=(()=>{let t;return function(n){return(t||(t=i(e)))(n||e)}})();static \u0275cmp=c({type:e,selectors:[["","data-p-icon","chevron-down"]],features:[s],attrs:V,decls:1,vars:0,consts:[["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(o,n){o&1&&(a(),u(0,"path",0))},encapsulation:2})}return e})();var P=["data-p-icon","times"],le=(()=>{class e extends l{static \u0275fac=(()=>{let t;return function(n){return(t||(t=i(e)))(n||e)}})();static \u0275cmp=c({type:e,selectors:[["","data-p-icon","times"]],features:[s],attrs:P,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(o,n){o&1&&(a(),u(0,"path",0))},encapsulation:2})}return e})();export{$ as a,q as b,re as c,ue as d,le as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as O}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{h as w}from"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-5UFP37GQ.js";import"./chunk-UPRDDI4K.js";import"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{e as N}from"./chunk-MM7SAZOU.js";import{b as C}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{w as b,x as y,y as g}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as f,Nc as r,Oc as p,ac as S,cc as I,hc as E,ic as e,id as u,jc as t,jd as h,kd as D,ma as x,ob as d,ra as s,v}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var M=(()=>{let i=class i{constructor(){this.httpService=s(N)}getExceptionDetail(m){return this.httpService.post("/api/Orders/GetDetailException",{ID:m}).pipe(v(a=>a?.hits[0]?._source))}};i.\u0275fac=function(l){return new(l||i)},i.\u0275prov=x({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();function q(o,i){if(o&1&&(e(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"h5"),r(6,"General"),t()(),e(7,"div",6)(8,"div",7)(9,"div",8)(10,"div",9)(11,"label"),r(12,"Date"),t(),e(13,"div")(14,"span"),r(15),u(16,"date"),t()()()(),e(17,"div",8)(18,"div",9)(19,"label"),r(20,"Number"),t(),e(21,"div")(22,"span"),r(23),t()()()(),e(24,"div",8)(25,"div",9)(26,"label"),r(27,"Channel Name"),t(),e(28,"div")(29,"span"),r(30),t()()()(),e(31,"div",8)(32,"div",9)(33,"label"),r(34,"ShopID"),t(),e(35,"div")(36,"span"),r(37),t()()()(),e(38,"div",8)(39,"div",9)(40,"label"),r(41,"Channel ID"),t(),e(42,"div")(43,"span"),r(44),t()()()()()()()()(),e(45,"div",10)(46,"div",8)(47,"div",4)(48,"div",5)(49,"h5"),r(50,"Request"),t()(),e(51,"div",6)(52,"div",11)(53,"div",12)(54,"pre"),r(55),u(56,"json"),t()()()()()(),e(57,"div",8)(58,"div",4)(59,"div",5)(60,"h5"),r(61,"Exception"),t()(),e(62,"div",6)(63,"div",13)(64,"div",12)(65,"pre"),r(66),t()()()()()()()()),o&2){let n=i;d(15),p(D(16,7,n["@timestamp"],"dd MMM yyyy HH:mm:ss")),d(8),p(n==null||n.error==null?null:n.error.number),d(7),p(n==null?null:n.channelName),d(7),p(n==null?null:n.shopId),d(7),p(n==null?null:n.message),d(11),p(h(56,10,n==null||n.error==null?null:n.error.request)),d(11),p(n==null||n.error==null?null:n.error.response)}}var z=(()=>{let i=class i{constructor(){this.activatedRoute=s(C),this.exceptionService=s(M),this.authService=s(w),this.invoiceNumber="",this.channelName="",this.logo=null,this.channelOptions=this.authService.getChannels()}ngOnInit(){let m=this.activatedRoute.snapshot.queryParams;this.exceptionDetail$=this.exceptionService.getExceptionDetail(m?.ID).pipe(v(l=>{let a=l;return{"@timestamp":a["@timestamp"]||a["@timestamp_received"],error:{number:a?.error?.number,request:JSON.parse(a?.error?.request),response:JSON.parse(a?.error?.response)},channelName:a?.channelId!=null?this.channelOptions.find(c=>c.ID===a?.channelId)?.Name:a?.shopId,shopId:a?.shopId,message:a?.message}}))}};i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=f({type:i,selectors:[["app-exception-detail"]],decls:4,vars:6,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-2"],[1,"col-sm-12"],[1,"form-group"],[1,"col-sm-12","mt-2"]],template:function(l,a){if(l&1&&(e(0,"mainpanel",0)(1,"content"),S(2,q,67,12,"div",1),u(3,"async"),t()()),l&2){let c;E("headerTitle","Order #"+a.invoiceNumber)("hideSearchBox",!0)("hideSearchDropdown",!0),d(2),I((c=h(3,4,a.exceptionDetail$))?2:-1,c)}},dependencies:[O,b,g,y],encapsulation:2});let o=i;return o})();export{z as ExceptionDetailComponent};
|