dealpos 26.34.0 → 26.34.70
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/browser/chunk-244EXJ4K.js +1 -0
- package/browser/{chunk-IUUNN5TF.js → chunk-25QLZIJ6.js} +1 -1
- package/browser/{chunk-RC7DSC5L.js → chunk-2BRV5NTX.js} +1 -1
- package/browser/{chunk-CJIJFRMY.js → chunk-2CQ2WSE5.js} +1 -1
- package/browser/{chunk-QIVOWCL6.js → chunk-2EO2KFTI.js} +1 -1
- package/browser/{chunk-NKB2XKGV.js → chunk-2H7A5S4Z.js} +1 -1
- package/browser/chunk-2J4BGDJZ.js +1 -0
- package/browser/{chunk-V753BTPL.js → chunk-2KKMORG3.js} +1 -1
- package/browser/{chunk-TDSO6AO3.js → chunk-2QYNRVI5.js} +1 -1
- package/browser/chunk-2RWAWTVN.js +1 -0
- package/browser/{chunk-6WU3WQMH.js → chunk-2SMVW6E3.js} +1 -1
- package/browser/{chunk-KMLPRIFB.js → chunk-2TWUAUND.js} +1 -1
- package/browser/{chunk-K6TI2SAO.js → chunk-2YXKJPGF.js} +1 -1
- package/browser/{chunk-RBT7RUCH.js → chunk-33PN6ZVW.js} +1 -1
- package/browser/{chunk-VBD2SO5Q.js → chunk-36GIJAXY.js} +1 -1
- package/browser/{chunk-CV7GVY6I.js → chunk-3BDARCJJ.js} +1 -1
- package/browser/{chunk-77JPECDL.js → chunk-3CQFGAM6.js} +1 -1
- package/browser/{chunk-NLPCJ6S7.js → chunk-3D63XZS5.js} +1 -1
- package/browser/{chunk-G2U3WDX4.js → chunk-3IGGKCN6.js} +1 -1
- package/browser/{chunk-4ACTJQRN.js → chunk-3MGIGNKI.js} +1 -1
- package/browser/{chunk-LHIDT6E7.js → chunk-3NIBD2VL.js} +1 -1
- package/browser/{chunk-6ETDOI74.js → chunk-3PB6X4XG.js} +1 -1
- package/browser/{chunk-3T3OJ3Y5.js → chunk-3QEFLMBJ.js} +1 -1
- package/browser/{chunk-G2RIVW3B.js → chunk-3TPCC7AC.js} +1 -1
- package/browser/{chunk-7PYC6NA7.js → chunk-3TTA7DXW.js} +1 -1
- package/browser/{chunk-YSYXPIMB.js → chunk-3XNENPQS.js} +1 -1
- package/browser/{chunk-6HAO7FHW.js → chunk-45RV7XGN.js} +1 -1
- package/browser/{chunk-QYVLBMOX.js → chunk-4QCDDUHS.js} +1 -1
- package/browser/{chunk-Q6C7CXDN.js → chunk-4XTU6ASH.js} +1 -1
- package/browser/{chunk-N5C5ZHMO.js → chunk-56KULHVH.js} +1 -1
- package/browser/{chunk-GWY7SM4J.js → chunk-57ICJ7ZS.js} +1 -1
- package/browser/{chunk-FOBV2D7L.js → chunk-57NJMDXK.js} +1 -1
- package/browser/chunk-5DDT76U2.js +1 -0
- package/browser/{chunk-Y55O2G4X.js → chunk-5EIFYBJE.js} +1 -1
- package/browser/{chunk-RROYF7V7.js → chunk-5HQVGIJL.js} +1 -1
- package/browser/{chunk-VKEUSILH.js → chunk-5OWGEIBR.js} +1 -1
- package/browser/{chunk-N6ZKSHLO.js → chunk-5XKKOB6W.js} +1 -1
- package/browser/{chunk-EPA44ZP7.js → chunk-5XU33WRC.js} +1 -1
- package/browser/{chunk-RWCJABSR.js → chunk-62QP65BN.js} +1 -1
- package/browser/{chunk-ZDMAE2CW.js → chunk-65Q7OGCW.js} +1 -1
- package/browser/chunk-6AV6Z5C2.js +190 -0
- package/browser/chunk-6B6DRMSU.js +1 -0
- package/browser/{chunk-AZCFNO4M.js → chunk-6DAMVMWR.js} +1 -1
- package/browser/{chunk-UGZHR6TH.js → chunk-6E2I4YPC.js} +1 -1
- package/browser/{chunk-PCTBALVK.js → chunk-6EFSU3VS.js} +1 -1
- package/browser/{chunk-QWEZYZJ6.js → chunk-6GUEN3Y3.js} +4 -4
- package/browser/{chunk-WQGZI7RH.js → chunk-6GXOAXTZ.js} +1 -1
- package/browser/{chunk-WGF2DWRU.js → chunk-6H7YIOWY.js} +1 -1
- package/browser/chunk-6HBO35FK.js +1 -0
- package/browser/{chunk-Z3W63F6G.js → chunk-6KDFTGJM.js} +1 -1
- package/browser/{chunk-JJCP4MEQ.js → chunk-6KTOEHFE.js} +1 -1
- package/browser/{chunk-X6Z7MJUZ.js → chunk-6MWLBSLA.js} +1 -1
- package/browser/{chunk-52FL62MG.js → chunk-6NSVN2SX.js} +1 -1
- package/browser/{chunk-QCK47TNY.js → chunk-6PLWKUVB.js} +1 -1
- package/browser/{chunk-E6HRLULV.js → chunk-6QN5EZUF.js} +1 -1
- package/browser/{chunk-O4GJ266W.js → chunk-6SHCUU56.js} +1 -1
- package/browser/{chunk-M7VH4SSC.js → chunk-6TR3TLFU.js} +1 -1
- package/browser/{chunk-YLKEPYFF.js → chunk-6UPEFBFL.js} +1 -1
- package/browser/{chunk-R746IYUS.js → chunk-75RWD3M2.js} +1 -1
- package/browser/{chunk-3DHMAISV.js → chunk-77H6TGO3.js} +1 -1
- package/browser/{chunk-CJWXR46O.js → chunk-77LROINT.js} +1 -1
- package/browser/{chunk-GIWWDL7A.js → chunk-77UW6L3I.js} +1 -1
- package/browser/{chunk-LKAKGYXU.js → chunk-7NGVNCZG.js} +1 -1
- package/browser/{chunk-H3HLCMIY.js → chunk-7RIXJGBF.js} +1 -1
- package/browser/chunk-7WWXV44C.js +1 -0
- package/browser/{chunk-ESDNZZCV.js → chunk-A4JSWY3T.js} +1 -1
- package/browser/{chunk-3YGAS427.js → chunk-A7MJIVPM.js} +1 -1
- package/browser/{chunk-PV3RIURQ.js → chunk-AJ76IJZX.js} +1 -1
- package/browser/{chunk-UGTEDA45.js → chunk-AKHGSD2U.js} +1 -1
- package/browser/chunk-AMLOL4OU.js +1 -0
- package/browser/chunk-AN77J6Q5.js +1 -0
- package/browser/{chunk-SU7SMJWA.js → chunk-ANCEDOEB.js} +1 -1
- package/browser/{chunk-WKY5AZSI.js → chunk-AQFC3RFV.js} +1 -1
- package/browser/{chunk-3VXKHFLQ.js → chunk-AVIWHC3M.js} +1 -1
- package/browser/{chunk-62HMS4Z2.js → chunk-AXCHMBU6.js} +1 -1
- package/browser/chunk-B4UV7NJT.js +1 -0
- package/browser/{chunk-SMZJXUMJ.js → chunk-B5JJT55H.js} +1 -1
- package/browser/{chunk-OOP6XLKQ.js → chunk-B6LIYCJH.js} +1 -1
- package/browser/{chunk-N4LSUTY7.js → chunk-BJW5ECO5.js} +1 -1
- package/browser/{chunk-UJW36IT2.js → chunk-BOBN2YG5.js} +1 -1
- package/browser/{chunk-NT3CD4FJ.js → chunk-BPIF6S4B.js} +1 -1
- package/browser/{chunk-4SMZIBY2.js → chunk-BRGCAIV4.js} +1 -1
- package/browser/{chunk-GBBUYTCB.js → chunk-BS6SDNC2.js} +1 -1
- package/browser/chunk-BU6CBAMO.js +1 -0
- package/browser/{chunk-NRO23IIB.js → chunk-BXQ5BACV.js} +1 -1
- package/browser/{chunk-SNYR7ZLE.js → chunk-BYBFH3FB.js} +1 -1
- package/browser/{chunk-LBJMDQID.js → chunk-BZCKDE3L.js} +1 -1
- package/browser/{chunk-XAWOFSQP.js → chunk-C3MUXYYN.js} +1 -1
- package/browser/chunk-C3XRQ5F3.js +1 -0
- package/browser/{chunk-UNQYK64E.js → chunk-C46FUGER.js} +1 -1
- package/browser/chunk-C4CXB2CJ.js +1 -0
- package/browser/{chunk-O4P6BMXT.js → chunk-C5KM35SF.js} +1 -1
- package/browser/{chunk-FLNBVBFV.js → chunk-C6QYHBT2.js} +1 -1
- package/browser/{chunk-TD5WRHZB.js → chunk-C7MKIPCR.js} +1 -1
- package/browser/chunk-CA2RAMO3.js +11 -0
- package/browser/{chunk-5OILEOCC.js → chunk-CCAYEBZI.js} +1 -1
- package/browser/chunk-CCVS5J7W.js +1 -0
- package/browser/{chunk-VOJLWM2C.js → chunk-CGIL7UHF.js} +1 -1
- package/browser/{chunk-LLJHI4JF.js → chunk-CIDADGOR.js} +2 -2
- package/browser/{chunk-U7MSEY2J.js → chunk-CJA4CRM2.js} +1 -1
- package/browser/chunk-CMRNF7WZ.js +1 -0
- package/browser/{chunk-5UX75GPD.js → chunk-COVNF5TW.js} +1 -1
- package/browser/{chunk-VDBQXOPS.js → chunk-CTMUD7J3.js} +1 -1
- package/browser/{chunk-7EWFX4XB.js → chunk-CWRZYGLS.js} +1 -1
- package/browser/{chunk-FKGWWSUB.js → chunk-D6F5C7XQ.js} +1 -1
- package/browser/{chunk-ZDTZBYMW.js → chunk-DBCZUJ73.js} +1 -1
- package/browser/{chunk-5QKCGJTV.js → chunk-DIEARMFR.js} +1 -1
- package/browser/{chunk-MTK526VJ.js → chunk-DKL62YZF.js} +1 -1
- package/browser/{chunk-O4AFNUYQ.js → chunk-DXCJVTZB.js} +1 -1
- package/browser/{chunk-YPK2NZOX.js → chunk-DXPMZGDK.js} +1 -1
- package/browser/{chunk-YXHYKK5D.js → chunk-DXPPZ5XV.js} +1 -1
- package/browser/{chunk-CIUQDVIW.js → chunk-EFE3D4ZE.js} +1 -1
- package/browser/{chunk-6KR56SBQ.js → chunk-EI6NNIHM.js} +1 -1
- package/browser/{chunk-6XUSPJPG.js → chunk-EKFZTDLR.js} +1 -1
- package/browser/chunk-ELZIP2KW.js +1 -0
- package/browser/{chunk-RJ2JHVQR.js → chunk-EMN4DVBC.js} +1 -1
- package/browser/{chunk-DQ2UI33P.js → chunk-EN2YSZJ5.js} +1 -1
- package/browser/{chunk-KVCJEMUC.js → chunk-EOWSHI3P.js} +1 -1
- package/browser/chunk-ES2RDNRE.js +1 -0
- package/browser/{chunk-IWLV5CMF.js → chunk-ETDSLUGA.js} +1 -1
- package/browser/{chunk-RBZXSFIF.js → chunk-F6RWKWTW.js} +1 -1
- package/browser/{chunk-M6Y6AXOF.js → chunk-FDVUUXJ5.js} +1 -1
- package/browser/chunk-FEWXVSAB.js +1 -0
- package/browser/{chunk-TVF5WSZ3.js → chunk-FMUGEN33.js} +1 -1
- package/browser/{chunk-JH3HOQAI.js → chunk-FPCFQRPT.js} +1 -1
- package/browser/{chunk-E4CX4KGW.js → chunk-FPF3JVGC.js} +2 -2
- package/browser/{chunk-CQM5NRFE.js → chunk-FPUPPEJK.js} +1 -1
- package/browser/{chunk-BWPOZS6P.js → chunk-FU3YLB2W.js} +1 -1
- package/browser/{chunk-FMN6CZAX.js → chunk-FUQG4JPI.js} +1 -1
- package/browser/{chunk-QPE7FBDW.js → chunk-FZOFOT2Y.js} +1 -1
- package/browser/{chunk-FPTMOFHU.js → chunk-G56S6AJ3.js} +1 -1
- package/browser/chunk-GGVP5T4T.js +1 -0
- package/browser/{chunk-ILZ4JH2Z.js → chunk-GHYRXHXE.js} +1 -1
- package/browser/{chunk-L6LVX24R.js → chunk-GJEGWFTJ.js} +1 -1
- package/browser/chunk-GJXOJ7NA.js +1 -0
- package/browser/{chunk-TG2U46IT.js → chunk-GRUCRVZ4.js} +1 -1
- package/browser/chunk-GXKTXJ3T.js +1 -0
- package/browser/{chunk-JLVFPWD5.js → chunk-H7BUSJVK.js} +1 -1
- package/browser/{chunk-AX3UQF7I.js → chunk-HHGA7RJF.js} +1 -1
- package/browser/{chunk-IZNYQ464.js → chunk-HI5JBYY4.js} +1 -1
- package/browser/chunk-HLGKH66B.js +1 -0
- package/browser/{chunk-5JT4HUU4.js → chunk-HNJ3OK4C.js} +1 -1
- package/browser/{chunk-YIPEM4BI.js → chunk-HSMJCDMM.js} +1 -1
- package/browser/{chunk-44EJI6A7.js → chunk-HSTMSN6S.js} +1 -1
- package/browser/chunk-HT47MEZT.js +1 -0
- package/browser/{chunk-2RLPB7SD.js → chunk-HTDRNJB2.js} +1 -1
- package/browser/{chunk-VUKHME3G.js → chunk-HWM3E7HT.js} +1 -1
- package/browser/{chunk-L7J462FI.js → chunk-HZ6FLXWT.js} +1 -1
- package/browser/{chunk-YILLGIFP.js → chunk-HZSUSEJU.js} +1 -1
- package/browser/chunk-I2KMY5J3.js +1 -0
- package/browser/{chunk-ALWBMWZA.js → chunk-I3VHWLOA.js} +1 -1
- package/browser/chunk-IG64LZET.js +37 -0
- package/browser/{chunk-BX7X32XY.js → chunk-IKIK5DAD.js} +1 -1
- package/browser/chunk-IKLXHBDH.js +1 -0
- package/browser/{chunk-R44QXR63.js → chunk-IMT55Z2W.js} +1 -1
- package/browser/{chunk-FZION52N.js → chunk-IOFFWVEK.js} +1 -1
- package/browser/{chunk-2S2JSIPZ.js → chunk-IQKUYJGO.js} +1 -1
- package/browser/{chunk-OQGBLRIB.js → chunk-IZWKFFEW.js} +1 -1
- package/browser/{chunk-AS6L7ERX.js → chunk-J2BNBMZC.js} +1 -1
- package/browser/{chunk-LAE6SMHK.js → chunk-J7V3FUNN.js} +1 -1
- package/browser/{chunk-RHRTIX7N.js → chunk-JATOX5K6.js} +2 -2
- package/browser/{chunk-PI5K5AGU.js → chunk-JFGMHMJQ.js} +1 -1
- package/browser/{chunk-E6U74EMI.js → chunk-JJHOPVCP.js} +1 -1
- package/browser/{chunk-RYAJANOD.js → chunk-JJSJVMD2.js} +1 -1
- package/browser/{chunk-FVZ323D5.js → chunk-JLSJN3OC.js} +1 -1
- package/browser/{chunk-JATJNKS5.js → chunk-JOMGNZVV.js} +1 -1
- package/browser/{chunk-MHAHPBTM.js → chunk-JRJN4BWL.js} +1 -1
- package/browser/{chunk-UJQL4AGT.js → chunk-JW2LAJ6G.js} +1 -1
- package/browser/{chunk-L2JJOSI2.js → chunk-JXNIPM2T.js} +1 -1
- package/browser/{chunk-PJIKAPQ4.js → chunk-JZJSEMMD.js} +1 -1
- package/browser/{chunk-PM4IPGLK.js → chunk-K2RMPXLB.js} +1 -1
- package/browser/{chunk-QZAPILAF.js → chunk-K7KHHEEF.js} +1 -1
- package/browser/{chunk-ZUN3LMBK.js → chunk-KH5OAAR7.js} +1 -1
- package/browser/{chunk-QVWLAQVN.js → chunk-KHZEHC3V.js} +1 -1
- package/browser/{chunk-POVBY4VZ.js → chunk-KJLHVV7Q.js} +1 -1
- package/browser/{chunk-CWCFOXYW.js → chunk-KN523EAT.js} +1 -1
- package/browser/chunk-KO64XEXG.js +1 -0
- package/browser/{chunk-56EEOGR3.js → chunk-KWT3NXGY.js} +1 -1
- package/browser/{chunk-EPAWNX6I.js → chunk-KXCCV3R3.js} +1 -1
- package/browser/{chunk-E2R4RGWU.js → chunk-KXV4EPJT.js} +1 -1
- package/browser/{chunk-FZK4CVWY.js → chunk-KZDHG2HQ.js} +1 -1
- package/browser/{chunk-HQTDTWOM.js → chunk-KZZO4TFG.js} +1 -1
- package/browser/chunk-L2RATUCD.js +1 -0
- package/browser/chunk-LCT64SNA.js +57 -0
- package/browser/{chunk-6TSWY4U7.js → chunk-LGJ7VAIE.js} +1 -1
- package/browser/{chunk-6B47WAG6.js → chunk-LIVPCN7B.js} +1 -1
- package/browser/{chunk-XNFLW7C2.js → chunk-LMEUVPMO.js} +1 -1
- package/browser/{chunk-6GEZ2KMC.js → chunk-LUMDBE4M.js} +1 -1
- package/browser/{chunk-FWGQZF34.js → chunk-LURPZLPR.js} +1 -1
- package/browser/{chunk-SNGR6DNU.js → chunk-LWDAUIRL.js} +1 -1
- package/browser/chunk-M3NOXLEY.js +28 -0
- package/browser/{chunk-VKQVNDWA.js → chunk-M4BR2FL5.js} +4 -4
- package/browser/{chunk-IY6JVHXQ.js → chunk-M5O3NQJV.js} +1 -1
- package/browser/{chunk-UPYSVEUF.js → chunk-M5ONCBWG.js} +1 -1
- package/browser/{chunk-TA7MCO76.js → chunk-MBXG5QIE.js} +1 -1
- package/browser/chunk-MER2N7BC.js +218 -0
- package/browser/{chunk-YGCGJLGT.js → chunk-MJSVDX74.js} +1 -1
- package/browser/{chunk-LSCGSKNB.js → chunk-MQFEJVQZ.js} +1 -1
- package/browser/{chunk-GNNUO3MJ.js → chunk-MUWWLFK3.js} +1 -1
- package/browser/{chunk-RHKK37ZL.js → chunk-MXOCAVS2.js} +1 -1
- package/browser/{chunk-PZ32564R.js → chunk-NBY5JYTZ.js} +1 -1
- package/browser/{chunk-HT7WRRRC.js → chunk-NECWRRBB.js} +1 -1
- package/browser/{chunk-N2GXBBJZ.js → chunk-NIVP44ZD.js} +1 -1
- package/browser/{chunk-5KHYCW2C.js → chunk-NVE6WCT2.js} +1 -1
- package/browser/{chunk-P3G6E5NB.js → chunk-O5J64W2G.js} +1 -1
- package/browser/{chunk-2V5PV2SU.js → chunk-O5YXONIV.js} +1 -1
- package/browser/{chunk-VXKAELIW.js → chunk-O64SMX33.js} +1 -1
- package/browser/{chunk-44KERJRQ.js → chunk-O6PW4ESV.js} +1 -1
- package/browser/{chunk-XS4YRZDR.js → chunk-OA5QSTLL.js} +1 -1
- package/browser/{chunk-TMZMLQC6.js → chunk-ODTVUCNL.js} +1 -1
- package/browser/{chunk-LR4XVEWO.js → chunk-OIBHQBPF.js} +1 -1
- package/browser/{chunk-NBVEREBF.js → chunk-OIQQX555.js} +1 -1
- package/browser/{chunk-XWSBJNQW.js → chunk-OKPWWNDE.js} +1 -1
- package/browser/{chunk-KTHJFSOM.js → chunk-OM75IK4K.js} +1 -1
- package/browser/{chunk-MFMXF74M.js → chunk-OMPQZGKX.js} +1 -1
- package/browser/{chunk-TTJX5HGK.js → chunk-ONQVTJFF.js} +1 -1
- package/browser/{chunk-WEOFPH6V.js → chunk-OTLTPSMC.js} +1 -1
- package/browser/{chunk-PKLL2VUK.js → chunk-OUYMFGC4.js} +1 -1
- package/browser/{chunk-V2QCJIGY.js → chunk-OWZUDMSJ.js} +1 -1
- package/browser/{chunk-PLT74VWN.js → chunk-OXGYFMSK.js} +1 -1
- package/browser/{chunk-FO6CC7UB.js → chunk-P2K2SWLZ.js} +1 -1
- package/browser/{chunk-JHZ3R74W.js → chunk-P3DVXSXB.js} +1 -1
- package/browser/{chunk-VHU3TYCK.js → chunk-PB3XU7VO.js} +1 -1
- package/browser/{chunk-X6YLB6XJ.js → chunk-PDAECJWZ.js} +1 -1
- package/browser/{chunk-H2FBYMOF.js → chunk-PDGHAM2X.js} +1 -1
- package/browser/{chunk-WRZ7ADKJ.js → chunk-PFXJREIV.js} +1 -1
- package/browser/{chunk-FMYGTACV.js → chunk-PLHNUHDV.js} +11 -11
- package/browser/{chunk-PISME4IC.js → chunk-PVWXRTME.js} +1 -1
- package/browser/{chunk-2DBBLG6D.js → chunk-Q24ITZ5N.js} +1 -1
- package/browser/{chunk-NB3SST6K.js → chunk-Q4UZJZSM.js} +1 -1
- package/browser/{chunk-PHLDVLOT.js → chunk-Q7E4NSWO.js} +1 -1
- package/browser/{chunk-2QP5NONI.js → chunk-QATRAXMM.js} +1 -1
- package/browser/{chunk-6M57MPC5.js → chunk-QC7JDE25.js} +1 -1
- package/browser/{chunk-H2BSORHO.js → chunk-QGY4A4FQ.js} +1 -1
- package/browser/{chunk-QHSP67RW.js → chunk-QNJA2R5I.js} +1 -1
- package/browser/{chunk-PNLMRTPK.js → chunk-QP3KCG33.js} +1 -1
- package/browser/{chunk-JD4PB5II.js → chunk-QVOADPFL.js} +1 -1
- package/browser/chunk-QWUO5HHI.js +1 -0
- package/browser/{chunk-ESRDT4O4.js → chunk-R3JMPBLT.js} +1 -1
- package/browser/{chunk-SE73OGQM.js → chunk-R6LLMES2.js} +1 -1
- package/browser/{chunk-P7IUXZRS.js → chunk-RAF55NKC.js} +1 -1
- package/browser/chunk-RATQ6HXD.js +1 -0
- package/browser/{chunk-5QQBII3Q.js → chunk-RLTWWJF4.js} +1 -1
- package/browser/{chunk-HW42E6Q3.js → chunk-RRW4D34K.js} +2 -2
- package/browser/{chunk-LV7FC6IH.js → chunk-RTIYEGXO.js} +1 -1
- package/browser/chunk-RZ6YR4K3.js +1 -0
- package/browser/{chunk-C42HDD4H.js → chunk-S2QJIB5V.js} +1 -1
- package/browser/{chunk-AYDGLKEY.js → chunk-S4NDEZEZ.js} +1 -1
- package/browser/{chunk-XDSOLQIF.js → chunk-S6CRRKEU.js} +1 -1
- package/browser/{chunk-VEIIHAZC.js → chunk-S7MVAJPU.js} +1 -1
- package/browser/{chunk-IOC7LZWL.js → chunk-SBHAOKJT.js} +1 -1
- package/browser/{chunk-JH3TWY45.js → chunk-SER3IL6F.js} +1 -1
- package/browser/{chunk-H7X7XY54.js → chunk-SFOEBIRY.js} +1 -1
- package/browser/{chunk-NYJAAT2H.js → chunk-SI3JDTVN.js} +1 -1
- package/browser/chunk-SJN7KXZC.js +4 -0
- package/browser/{chunk-3T67UJ3B.js → chunk-SK7YEM44.js} +1 -1
- package/browser/{chunk-DNMX2IC4.js → chunk-SMMATJ5Q.js} +1 -1
- package/browser/{chunk-3GEOW44K.js → chunk-SNWQ4GN4.js} +1 -1
- package/browser/{chunk-3X2MGE4S.js → chunk-STRE737O.js} +1 -1
- package/browser/{chunk-73D2A2M6.js → chunk-SWWZLQQM.js} +1 -1
- package/browser/{chunk-XGQMF47D.js → chunk-T7CHAWJI.js} +1 -1
- package/browser/{chunk-RZ4WHN74.js → chunk-TEOXI4GP.js} +1 -1
- package/browser/{chunk-UJYQL2A7.js → chunk-TG6DCZXC.js} +1 -1
- package/browser/chunk-TGSPLVPF.js +1 -0
- package/browser/{chunk-YKWJJMSX.js → chunk-TKAKUKRU.js} +1 -1
- package/browser/{chunk-QGODPAMX.js → chunk-TLAPK5QA.js} +1 -1
- package/browser/{chunk-LFSG3DBR.js → chunk-TQGFSJ2L.js} +1 -1
- package/browser/{chunk-JQTAWCP7.js → chunk-TQZTI3ZR.js} +1 -1
- package/browser/{chunk-WDZXE6BD.js → chunk-TR23MSHZ.js} +1 -1
- package/browser/{chunk-IE7MDXIH.js → chunk-TVGFVSL4.js} +1 -1
- package/browser/chunk-TWD6QPXJ.js +1 -0
- package/browser/{chunk-D3YG67GM.js → chunk-TWHYCOEU.js} +1 -1
- package/browser/chunk-U3UNTBMQ.js +2 -0
- package/browser/{chunk-2IT5IWPU.js → chunk-UA5EMZG3.js} +1 -1
- package/browser/chunk-UCK56LLD.js +1 -0
- package/browser/{chunk-WK5DMQOG.js → chunk-UEAZHHLN.js} +1 -1
- package/browser/{chunk-CXFPGQEQ.js → chunk-UFMSNQGS.js} +1 -1
- package/browser/{chunk-C7OXYN2X.js → chunk-UJOHSIOH.js} +1 -1
- package/browser/{chunk-5FOSDRT2.js → chunk-UMWFRR4G.js} +1 -1
- package/browser/{chunk-PKA2YBWQ.js → chunk-UOELUNVT.js} +1 -1
- package/browser/chunk-UP5KYO45.js +1 -0
- package/browser/{chunk-D6BLXBMN.js → chunk-URC3I54P.js} +1 -1
- package/browser/{chunk-IVB7IRPI.js → chunk-UUCIGB2T.js} +1 -1
- package/browser/{chunk-C3UME2MF.js → chunk-UVLRIZP7.js} +1 -1
- package/browser/{chunk-MGQAOIYS.js → chunk-UWHY53TB.js} +1 -1
- package/browser/{chunk-XT24FW6I.js → chunk-UWYO46LW.js} +1 -1
- package/browser/{chunk-F73ERLJR.js → chunk-UYTK2HQK.js} +1 -1
- package/browser/{chunk-3K4YTVTK.js → chunk-V23PY47E.js} +1 -1
- package/browser/chunk-V2TY7DUP.js +149 -0
- package/browser/{chunk-DU7NID63.js → chunk-V4PU7R2I.js} +1 -1
- package/browser/{chunk-LNPJ2D7B.js → chunk-VCA5TPVQ.js} +1 -1
- package/browser/chunk-VCLZ6MGX.js +3 -0
- package/browser/{chunk-ZLNE5WE4.js → chunk-VFVKVFNC.js} +1 -1
- package/browser/{chunk-IO3KXPQJ.js → chunk-VI5R4GXG.js} +1 -1
- package/browser/chunk-VQWYLMAY.js +1 -0
- package/browser/{chunk-OICPWHBE.js → chunk-VUR2RDNJ.js} +1 -1
- package/browser/{chunk-WIK4TZNX.js → chunk-VVHIWLPF.js} +1 -1
- package/browser/{chunk-IUQ4QX3D.js → chunk-VY6GRZUE.js} +1 -1
- package/browser/{chunk-3AN3L5MI.js → chunk-VZUM2LKN.js} +1 -1
- package/browser/{chunk-ZD6GJKYE.js → chunk-W2BVXBGU.js} +1 -1
- package/browser/{chunk-MPBTKIIG.js → chunk-W2XPFVVV.js} +1 -1
- package/browser/{chunk-BCM5Q3YM.js → chunk-W5CMN7Y4.js} +1 -1
- package/browser/chunk-W65PFF2K.js +1 -0
- package/browser/{chunk-MTUBHLOV.js → chunk-W7LIGPO6.js} +1 -1
- package/browser/chunk-WKAFEKLI.js +1 -0
- package/browser/{chunk-72ABUURB.js → chunk-WLGLP7UC.js} +1 -1
- package/browser/{chunk-JDS3Z45B.js → chunk-WLWM3OQH.js} +1 -1
- package/browser/{chunk-GPDQXA5R.js → chunk-WNBEVIFK.js} +1 -1
- package/browser/{chunk-NPIPEDNF.js → chunk-WQJL4HLX.js} +1 -1
- package/browser/{chunk-6XKP4GLN.js → chunk-WRTZCAWR.js} +1 -1
- package/browser/{chunk-BF24AMNA.js → chunk-WRXIAYMK.js} +1 -1
- package/browser/{chunk-D4T4VHJB.js → chunk-WSQCJAKX.js} +1 -1
- package/browser/{chunk-J5CX7YIL.js → chunk-WSQS62AY.js} +1 -1
- package/browser/{chunk-QFGAHSFN.js → chunk-WSWBDGM4.js} +1 -1
- package/browser/chunk-WTNQ5XCE.js +1 -0
- package/browser/{chunk-HB7436B2.js → chunk-WXDE36VM.js} +1 -1
- package/browser/{chunk-AECGWU7H.js → chunk-WY46NUOW.js} +1 -1
- package/browser/chunk-X5K6IVNE.js +1 -0
- package/browser/{chunk-6CW55ZMK.js → chunk-X5ZUBYX2.js} +1 -1
- package/browser/chunk-X6O7K2Y7.js +1 -0
- package/browser/{chunk-LCK25PGG.js → chunk-XACTRNDV.js} +1 -1
- package/browser/{chunk-B4JLXIEC.js → chunk-XKFCY2WE.js} +4 -4
- package/browser/{chunk-YRKWFXQW.js → chunk-XNKLZYYA.js} +1 -1
- package/browser/{chunk-IPQ3Z2BQ.js → chunk-XPFJK2TI.js} +1 -1
- package/browser/{chunk-LFOV6B2E.js → chunk-XQPCRIZN.js} +1 -1
- package/browser/{chunk-KVGQTIPW.js → chunk-XT45WVGB.js} +1 -1
- package/browser/{chunk-QKI7GH7V.js → chunk-XTFMO2TM.js} +1 -1
- package/browser/{chunk-E35IXUKA.js → chunk-XYIOG6BZ.js} +1 -1
- package/browser/{chunk-GEZMMUZZ.js → chunk-Y22O3V7H.js} +1 -1
- package/browser/{chunk-OKLDTC6C.js → chunk-Y2BMP5S6.js} +1 -1
- package/browser/{chunk-Q6JJINVO.js → chunk-Y5YZ3BHV.js} +1 -1
- package/browser/chunk-YEB2JQ2K.js +18 -0
- package/browser/chunk-YEESOM6C.js +1 -0
- package/browser/{chunk-BMSUBRBS.js → chunk-YHU5GUSL.js} +1 -1
- package/browser/{chunk-GENU4R7S.js → chunk-YLWGMLY6.js} +1 -1
- package/browser/{chunk-SOUE2BBG.js → chunk-YLYDNXTR.js} +1 -1
- package/browser/{chunk-I3VN25XW.js → chunk-YMW423O5.js} +1 -1
- package/browser/chunk-YPOZM474.js +1 -0
- package/browser/chunk-Z34VKMQG.js +1 -0
- package/browser/{chunk-2QGC7OBV.js → chunk-Z6AKZCXD.js} +2 -2
- package/browser/{chunk-A77TI7PX.js → chunk-Z7UPCUED.js} +1 -1
- package/browser/{chunk-7D52CDIZ.js → chunk-ZD2O2BCM.js} +1 -1
- package/browser/chunk-ZE5TTNIJ.js +1 -0
- package/browser/chunk-ZGKL3YA5.js +1 -0
- package/browser/{chunk-KLISU3L3.js → chunk-ZHEP6ZQX.js} +1 -1
- package/browser/{chunk-MDB3IOJI.js → chunk-ZHSNTJYM.js} +1 -1
- package/browser/{chunk-2HZPAPNJ.js → chunk-ZIFCLXGK.js} +1 -1
- package/browser/{chunk-ZAN7BTPZ.js → chunk-ZJJDLW4P.js} +1 -1
- package/browser/{chunk-3UAB4UVQ.js → chunk-ZKDRYECI.js} +1 -1
- package/browser/{chunk-NO72KA52.js → chunk-ZLGY5A4I.js} +1 -1
- package/browser/{chunk-5WEGGY7K.js → chunk-ZLWOJG3R.js} +1 -1
- package/browser/chunk-ZOIS457K.js +1 -0
- package/browser/{chunk-VQWGL535.js → chunk-ZUHMPXYR.js} +1 -1
- package/browser/chunk-ZY2DTEOJ.js +1 -0
- package/browser/chunk-ZYSS23Z3.js +1 -0
- package/browser/index.html +2 -2
- package/browser/{main-Y3ULTVY6.js → main-NDCNO554.js} +1 -1
- package/package.json +1 -1
- package/browser/chunk-2J4SAKNE.js +0 -1
- package/browser/chunk-2SU2UTKP.js +0 -1
- package/browser/chunk-33HBIRT7.js +0 -1
- package/browser/chunk-3EZKRDVP.js +0 -1
- package/browser/chunk-3KCZL4RZ.js +0 -1
- package/browser/chunk-4CUBGAGC.js +0 -1
- package/browser/chunk-55MOB6SX.js +0 -1
- package/browser/chunk-5PHA4WZQ.js +0 -1
- package/browser/chunk-5T4NR6TZ.js +0 -1
- package/browser/chunk-6DVTXVTX.js +0 -57
- package/browser/chunk-6T4W24RO.js +0 -1
- package/browser/chunk-76S7KNUA.js +0 -1
- package/browser/chunk-77B5VTEY.js +0 -1
- package/browser/chunk-7IWRU5BC.js +0 -190
- package/browser/chunk-7OIHTQ43.js +0 -1
- package/browser/chunk-B3QRHNPO.js +0 -37
- package/browser/chunk-BQLGA2UG.js +0 -1
- package/browser/chunk-BY2YV5PB.js +0 -1
- package/browser/chunk-CZDWVZQ7.js +0 -1
- package/browser/chunk-DK6ONJHH.js +0 -1
- package/browser/chunk-E3DPZZGV.js +0 -1
- package/browser/chunk-EFIIHBBK.js +0 -1
- package/browser/chunk-FWOGUFIF.js +0 -1
- package/browser/chunk-GTWWG777.js +0 -1
- package/browser/chunk-HFJ3MIPU.js +0 -1
- package/browser/chunk-HLFD5GXE.js +0 -1
- package/browser/chunk-HQHLRVXV.js +0 -1
- package/browser/chunk-HRERBE7G.js +0 -18
- package/browser/chunk-HUNPKK63.js +0 -1
- package/browser/chunk-IEMARA32.js +0 -28
- package/browser/chunk-IKUZPBZJ.js +0 -1
- package/browser/chunk-IMDCGH2M.js +0 -11
- package/browser/chunk-JYYOVXPU.js +0 -218
- package/browser/chunk-K4GA7MPU.js +0 -1
- package/browser/chunk-KL5YC6M2.js +0 -1
- package/browser/chunk-L2EY4IQM.js +0 -1
- package/browser/chunk-LB2ZADXF.js +0 -2
- package/browser/chunk-LP47HRBI.js +0 -1
- package/browser/chunk-LP4N3PCE.js +0 -1
- package/browser/chunk-MUJIB3R2.js +0 -1
- package/browser/chunk-MZC6RWX7.js +0 -1
- package/browser/chunk-O7TAVMX7.js +0 -1
- package/browser/chunk-PF7YRPMK.js +0 -1
- package/browser/chunk-Q5CPICKQ.js +0 -1
- package/browser/chunk-RIMMMOSN.js +0 -1
- package/browser/chunk-RKWWWBIJ.js +0 -1
- package/browser/chunk-SWZOVP4A.js +0 -1
- package/browser/chunk-TC3E4PC4.js +0 -1
- package/browser/chunk-TCOXFW5B.js +0 -4
- package/browser/chunk-U6LVI7D4.js +0 -1
- package/browser/chunk-UFGJZR4N.js +0 -1
- package/browser/chunk-USKO2BDP.js +0 -1
- package/browser/chunk-VIZSMAH4.js +0 -3
- package/browser/chunk-VJLGDMNZ.js +0 -1
- package/browser/chunk-VZBGCU6W.js +0 -149
- package/browser/chunk-WEFCC4HB.js +0 -1
- package/browser/chunk-WRYOETK7.js +0 -1
- package/browser/chunk-XPA7VCIR.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=[{label:"Application",path:"/menu/Settings/application",icon:"fa fa-window-restore",colorClass:"$color-1",children:[{label:"General",path:"/menu/Settings/Application/General",icon:"fa fa-bars",description:"Sets core store info and global operational settings.",children:[{id:"basicGeneral",label:"Basic",keywords:["store name","timezone"]}]},{label:"Transaction Numbering",path:"/menu/Settings/Application/Transaction-Numbering",icon:"fa fa-hashtag",description:"Manages automatic formatting and prefixes for transaction numbers.",children:[{id:"automaticNumberEnabled",label:"Automatic Number Enabled",keywords:["sell","buy","adjustment","transfer order","join invoice","join supplier","estimate","prepaid package"]},{id:"orderNumberGenerator",label:"Order Number Generator",keywords:["orders number reset range","monthly format","order number separator","digit behind number","add outlet code to invoice number"]},{id:"prefixTransactionNumbering",label:"Prefix",keywords:["global prefix","customer invoice","supplier bill","transfer order","estimate","adjustment"]}]},{label:"Park and Retrieve",path:"/menu/Settings/Application/Park-and-Retrieve",icon:"fa fa-floppy-disk",description:"Handles parking and retrieval of orders (security & print).",children:[{id:"basicParkAndRetrieve",label:"Basic",keywords:["merge parked order enabled"]},{id:"accessControlParkAndRetrieve",label:"Access Control",keywords:["authorize parked orders deletion","authorize parked orders item deletion","retrieve orders different register"]},{id:"printBehaviourParkAndRetrieve",label:"Print Behaviour",keywords:["automatic print after park","print additional items only on re-park"]},{id:"printOutputParkAndRetrieve",label:"Print Output",keywords:["label prefix","number prefix","amount visible","show number of person","outlet address visible","group by category"]},{id:"uiLabelsParkAndRetrieve",label:"User Interface Labels",keywords:["park button label","retrieve button label","park dialog title","retrieve dialog title","park label placeholder","default park note"]},{id:"parkLayoutTemplate",label:"Park Layout Template",keywords:["enable alias","enable note in park layout mode"]},{id:"retrieveParkAndRetrieve",label:"Retrieve",keywords:["retrieve mode","copy order note to invoice note"]}]},{label:"Loyalty",path:"/menu/Settings/Application/Loyalty",icon:"fa fa-award",description:"Customer loyalty rules: earn, redeem, expire, integrate.",children:[{id:"earnSettingLoyalty",label:"Earn Setting",keywords:["enable","earn point amount","exclusive full price product","enable decimal point","maximum earned point per transaction"]},{id:"redeemLoyalty",label:"Redeem",keywords:["redeem point value","otp verification redeem point"]},{id:"expirationLoyalty",label:"Expiration",keywords:["expired months","notifiy to email group","expiration type"]},{id:"advancedLoyalty",label:"Advanced",keywords:["preferred payment","enable mix cash and point"]},{id:"labelLoyalty",label:"Label",keywords:["label name"]}]},{label:"Rounding",path:"/menu/Settings/Application/Rounding",icon:"fa fa-right-left",description:"Defines rounding for sales, tax, and purchases.",children:[{id:"roundingSales",label:"Sales",keywords:["decimal place value","math method","examples"]},{id:"roundingTax",label:"Tax",keywords:["decimal place value","math method","examples"]},{id:"roundingPurchase",label:"Purchase",keywords:["decimal place value","math method","examples"]}]},{label:"User",path:"/menu/Settings/Application/User",icon:"fa fa-user",description:"Sets user account policies like login security and activity logging.",children:[{id:"userLogin",label:"User Login",keywords:["log activity","required email"]}]},{label:"TinyMCE Editor",path:"/menu/Settings/Application/TinyMCE-Editor",icon:"fa fa-edit",description:"Controls enabled plugins and tools for the app's rich text editor.",children:[{id:"tinyMcePlugins",label:"Plugins",keywords:["code","table","list","table plugin"]}]},{label:"Fraction",path:"/menu/Settings/Application/Fraction",icon:"fa fa-divide",description:"Sets min/max decimal precision for quantities and amounts.",children:[{id:"quantityFractionDigits",label:"Quantity Fraction Digits",keywords:["minimum fraction digit","maximum fraction digit"]},{id:"amountFractionDigits",label:"Amount Fraction Digits",keywords:["minimum fraction digit","maximum fraction digit"]}]}]},{label:"Module",path:"/menu/Settings/module",icon:"fa fa-cubes",colorClass:"$color-2",children:[{label:"Dashboard",path:"/menu/Settings/Module/Dashboard",icon:"fa fa-chart-pie",description:"Configure query index for dashboard, etc.",children:[{id:"dashboardGeneral",label:"Dashboard",keywords:["index hint"]}]},{label:"Product",path:"/menu/Settings/Module/Product",icon:"fa fa-tag",description:"Configures product catalog: listings, images, codes, variants, and paging.",children:[{id:"listingProduct",label:"Listing",keywords:["inventory render scenario","link target","search mode","order by","order direction"]},{id:"imageProduct",label:"Image",keywords:["thumbnail width","store width"]},{id:"propertyConfigurationProduct",label:"Property Configuration",keywords:["code required","allow whitespace for code","allow restricted characters for code","default product category"]},{id:"productCodeGeneratorProduct",label:"Product Code Generator",keywords:["type","digit","prefix"]},{id:"variantCodeGeneratorProduct",label:"Variant Code Generator",keywords:["enabled","separator","substring digit"]},{id:"productDetailProduct",label:"Product Detail",keywords:["hide zero inventory outlets"]},{id:"dataPagingProduct",label:"Data Paging",keywords:["product page size","variant page size","text search page size"]},{id:"advancedProduct",label:"Advanced",keywords:["display name formula","example"]}]},{label:"Sell",path:"/menu/Settings/Module/Sell",icon:"fa fa-cart-shopping",description:"POS settings: cart, payments, promotions, fulfillment.",children:[{id:"headerSell",label:"Header",keywords:["customer required","sales person required","customer not assigned reminder"]},{id:"customerSectionSell",label:"Customer Section",keywords:["quick add enabled","exclusive per outlet","empty cart on changes"]},{id:"quickKeySell",label:"Quick Key",keywords:["new row behaviour","total product in 1 row","price visible"]},{id:"sellingCartSell",label:"Selling Cart",keywords:["category visible","brand visible","uom visible","sub uom visible","row number visible","storage location visible","tax visible","product image visible"]},{id:"productDialogSell",label:"Product Dialog",keywords:["unit quantity label","price minimum type","open on new item added","split delivery outlet enabled","quantity = 1","decimal place digit","product calculator","calculator note","decimal place digit","product calculator","calculator note","minimum price includes discount"]},{id:"costSell",label:"Cost",keywords:["visible","update cost","expense for additional cost","Include Landed Cost in Unit Cost"]},{id:"promotionSell",label:"Promotion",keywords:["promotion discount required","original price as strikethrough","show coupon balance","edit promotion reward","Promotion Event Reminder Visible"]},{id:"pricebookSell",label:"Pricebook",keywords:["enabled","copy to item description"]},{id:"paymentDialogSell",label:"Payment Dialog",keywords:["allow negative amount payment","paymen type","default option","unique payment method on split","paylater default days","payment note required","payment code required"]},{id:"productNotesSell",label:"Product Notes",keywords:["copy product description","copy promotion name"]},{id:"fulfillmentSell",label:"Fulfillment",keywords:["fulfillment date labeling","default fulfillment","disable when order unpaid or partial"]},{id:"allocatedSell",label:"Allocated",keywords:["sales order allocated inventory validation","invoice allocated inventory validation"]},{id:"orderCompleteSell",label:"Order Complete",keywords:["print on payment","email receipt","whatsapp receipt","default receipt contact","invoice paper size option"]},{id:"numberingSell",label:"Numbering",keywords:["fill note with invoice suffix number"]},{id:"digitalScaleSell",label:"Digital Scale",keywords:["digit","quantity divider","regex formula"]},{id:"synchronizationSell",label:"Synchronization",keywords:["maximum product cache","maximum customer cache"]},{id:"offlineTransactionSell",label:"Offline Transaction",keywords:["enabled","show print when offline at print receipt"]},{id:"uiToolsSell",label:"UI Tools",keywords:["numeric keypad visible"]},{id:"advancedSell",label:"Advanced",keywords:["remember order type from previous transaction","sell product component default price","tolerance amount","return multiple times","sync outbound logistic on fulfilled order edit","remove coupon on edit","Auto complete code query"]},{id:"couponSell",label:"Coupon",keywords:["maximum coupon character length","Separate Quantity to New Row"]}]},{label:"Orders",path:"/menu/Settings/Module/Orders",icon:"fa fa-file-invoice",description:"Order processing settings: voids, invoices, defaults.",children:[{id:"voidOrders",label:"Void Bill",keywords:["void bill"]},{id:"customerInvoiceDetailOrders",label:"Customer Invoice Detail",keywords:["number of person visible","product image visible"]},{id:"defaultValuesOrders",label:"Default Values",keywords:["invoice * bill default sorting","number filter comparator"]},{id:"nonSargableQueryOrders",label:"Non Sargable Query",keywords:["number filter lookback days","product query option recompile"]}]},{label:"Contact",path:"/menu/Settings/Module/Contact",icon:"fa fa-address-book",description:"Contact settings: defaults, codes, required fields, feedback.",children:[{id:"defaultValuesContact",label:"Default Values",keywords:["gender","maximum invoice overdue days","contact group","customer filter comparator","debt limit","description","order by","order direction"]},{id:"customerCodeGeneratorContact",label:"Customer Code Generator",keywords:["enabled","prefix","digit","format"]},{id:"salesPersonCodeGeneratorContact",label:"Sales Person Code Generator",keywords:["enabled","prefix","digit"]},{id:"requiredContact",label:"Required",keywords:["customers field"]},{id:"advancedContact",label:"Advanced",keywords:["extra description label","activation email required","sales person outlet restriction"]},{id:"feedbackSurveyUrlContact",label:"Feedback Survey URL",keywords:["happy face url","sad face url"]}]},{label:"Buy",path:"/menu/Settings/Module/Buy",icon:"fa fa-cart-arrow-down",description:"Configures purchasing: suppliers, payments, COGS, and buying cart.",children:[{id:"headerBuy",label:"Header",keywords:["supplier required","approval policy"]},{id:"paymentDialogBuy",label:"Payment Dialog",keywords:["default payment","default fulfillment","paylater default days"]},{id:"cogsBuy",label:"COGS",keywords:["calculation","tax calculated","ignore zero cost","recalculate cogs on invoice delete","landed cost"]},{id:"buyingCartBuy",label:"Buying Cart",keywords:["row number visible","uom visible","sub uom visible"]},{id:"buyNumbering",label:"Numbering",keywords:["purchase order number"]}]},{label:"Inventory",path:"/menu/Settings/Module/Inventory",icon:"fa fa-boxes",description:"Configures inventory defaults, filters, and duration settings.",children:[{id:"defaultValuesInventory",label:"Default Values",keywords:["filter quantity from","exclude complementary default","empty outlet filter"]},{id:"daysOfInventoryInventory",label:"Days Of Inventory",keywords:["product sold within days","critical days","overstock days","sku count","days of table order by"]}]},{label:"Logistics",path:"/menu/Settings/Module/Logistics",icon:"fa fa-truck",description:"Logistics settings: transfers, inbound/outbound, labels.",children:[{id:"transferOrderLogistics",label:"Transfer Order",keywords:["workflow","price visible","cost visible","product code visible","uom visible","inventory visible","allow access peek","transfer order overallocated","void enabled","transfer order list default sorting"]},{id:"outboundLogisticsLogistics",label:"Outbound Logistics",keywords:["void enabled","delivery packing","disable partial fulfillment","products displayed","use order reference number when available","use order.referencenumber when available","number filter comparator","create outbond default option","voided outbound visible"]},{id:"inboundLogisticsLogistics",label:"Inbound Logistics",keywords:["products displayed","disable partial fulfillment"]},{id:"fulfillmentLabelLogistics",label:"Fulfillment Label",keywords:["save to storage"]},{id:"defaultValueLogistics",label:"Default Value",keywords:["transfer order sorting"]},{id:"nonSargableQueryLogistics",label:"Non Sargable Query",keywords:["number filter lookback days","product query option recompile"]}]},{label:"Debt",path:"/menu/Settings/Module/Debt",icon:"fa fa-dollar-sign",description:"Configures debt settings for AP and AR calculations.",children:[{id:"settingsDebt",label:"Settings",keywords:["ap calculation","ar calculation"]},{id:"settingsDebtDashboard",label:"Dashboard",keywords:["aging intervals","intervals of (days)"]}]},{label:"Adjustment",path:"/menu/Settings/Module/Adjustment",icon:"fa fa-scanner-gun",description:"Adjustment settings: workflow, CSV stocktake, advanced options.",children:[{id:"basicAdjustment",label:"Basic",keywords:["default adjustment type in form"]},{id:"stockTakeByCsvAdjustment",label:"Stock Take by CSV",keywords:["export ordered visible"]},{id:"advanceAdjustment",label:"Advance",keywords:["adjustment input type","number filter comparator"]},{id:"digitalScaleAdjustment",label:"Digital Scale",keywords:["digit","quantity divider","regex formula"]}]},{label:"Report",path:"/menu/Settings/Module/Report",icon:"fa fa-chart-area",description:"Configures reports, profit tax, orders, and currency.",children:[{id:"basicSettingsReport",label:"Basic Settings",keywords:["profit tax calculation","show sales order number in report details","multiply currency"]},{id:"dashboardReport",label:"Dashboard",keywords:["group by","product type"]},{id:"defaultValuesReport",label:"Default Values",keywords:["query option recompile","note visible","order by","sort product sold list","report summary page size"]}]},{label:"Shift",path:"/menu/Settings/Module/Shift",icon:"fa fa-user-clock",description:"Shift settings: activation, access, schedules, closure rules.",children:[{id:"basicSettingsShift",label:"Basic Settings",keywords:["enabled","block offline order"]},{id:"closeShift",label:"Close Shift",keywords:["accounts receivable"]},{id:"accessControlShift",label:"Access Control",keywords:["expected visible","visitor mandatory","invoice visible","payment receive visible","total sales"]},{id:"amOperationsShift",label:"AM Operations",keywords:["shift orders data on closure","start time","end time","posted date"]},{id:"restrictionShift",label:"Restriction",keywords:["shift closure days range"]}]},{label:"Promotion",path:"/menu/Settings/Module/Promotion",icon:"fa fa-bullhorn",description:"Sets promotion coupon options like auto-generated coupon digit length.",children:[{id:"promotionCouponPromotion",label:"Promotion Coupon",keywords:["coupon digit"]}]},{label:"Estimate",path:"/menu/Settings/Module/Estimate",icon:"fa fa-clipboard",description:"Configures estimate/quotation rules and conversion to invoices.",children:[{id:"basicSettingsEstimate",label:"Basic Settings",keywords:["convert estimate without active register"]}]},{label:"Fulfillment",path:"/menu/Settings/Module/Fulfillment",icon:"fa fa-dolly",description:"Configures fulfillment rules and conversion to invoices.",children:[{id:"basicSettingsFulfillment",label:"Basic Settings",keywords:["Products Displayed"]}]}]},{label:"Printing",path:"/menu/Settings/printing",icon:"fa fa-print",colorClass:"$color-3",children:[{label:"General",path:"/menu/Settings/Printing/General",icon:"fa fa-bars",description:"Sets global printing rules including formats, labels, and visibility.",children:[{id:"trailingZeroGeneral",label:"Trailing Zero",keywords:["non significant zero"]},{id:"wordifyGeneral",label:"Wordify",keywords:["enable wordify","language","wordify multiple currency"]},{id:"labelPositionGeneral",label:"Label Position",keywords:["position note"]},{id:"visibilityGeneral",label:"Visibility",keywords:["signature visible","print person (full a4)","bulk invoice detail","category visible"]}]},{label:"Customer Invoice",path:"/menu/Settings/Printing/Customer-Invoice",icon:"fa fa-file-invoice",description:"Configures layout and visible fields for customer invoices and receipts.",children:[{id:"headerCustomerInvoice",label:"Header",keywords:["title invoice","receipt invoice label","receipt copy label text","sales return label"]},{id:"documentLabelCustomerInvoice",label:"Document Label",keywords:["customer","shipping address","sales person","unpaid invoice label"]},{id:"documentVisibilityCustomerInvoice",label:"Document Visibility",keywords:["number visible","customer visible","customer address visible","company visible","sales person visible","customer email visible","customer code visible","print time visible","invoice create time visible","time visible","print packing slip after sell","invoice payment terms visible","payment note visible","register code visible","identification visible","phone number visible","payment code visible","promotion coupon visible","payment code visible"]},{id:"itemsTableCustomerInvoice",label:"Items Table",keywords:["code visible","custom code header","uom visible","custom uom header","product code visible","custom product code header","item without price visible","quantity visible","always show quantity","separate taxable item","separate return item","unit price visible","percentage (%) visible","taxable visible","taxable label","note visible","non-inventory count"]},{id:"unitQuantityCustomerInvoice",label:"Unit Quantity",keywords:["visible","multiply"]},{id:"itemsFooterCustomerInvoice",label:"Items Footer",keywords:["total quantity visible","base currency conversion visible for a4","discount amount visible","tax include before total amount","currency visible"]},{id:"invoiceFooterCustomerInvoice",label:"Invoice Footer",keywords:["note visible","park name visible","creator user visible","payment method visible","fulfillment info visible","taxable + tax exempt visible","discount ignored decimal","loyalty point visible","trace number visible"]},{id:"footerLabelCustomerInvoice",label:"Footer Label",keywords:["discount","discount 2","discount amount","surcharge","taxable","tax exempt sales","label with zero amount","tax","remaining amount"]},{id:"invoiceQrCustomerInvoice",label:"Invoice QR",keywords:["a4 invoice qr type","a4 invoice qr content","invoice mini qr type","invoice mini qr content","invoice mini qr code size"]},{id:"signatureCustomerInvoice",label:"Signature",keywords:["column 1","column 2","column 3","column 4"]},{id:"a4PaperSizeConfigurationCustomerInvoice",label:"A4 Paper Size Configuration",keywords:["dock bottom","payment change visible"]},{id:"receiptTemplateCustomerInvoice",label:"Receipt Template",keywords:["image size"]},{id:"advancedCustomerInvoice",label:"Advanced",keywords:["reprint allowed in"]}]},{label:"Supplier Bill",path:"/menu/Settings/Printing/Supplier-Bill",icon:"fa fa-file-invoice-dollar",description:"Configures layout, signatures, and footer for supplier bills.",children:[{id:"headerSupplierBill",label:"Header",keywords:["supplier bill title"]},{id:"itemsTableSupplierBill",label:"Items Table",keywords:["multiply discount amount by quantity"]},{id:"signatureSupplierBill",label:"Signature",keywords:["column 1","column 2","column 3","column 4"]},{id:"documentLabelSupplierBill",label:"Document Label",keywords:["supplier title"]},{id:"billFooterSupplierBill",label:"Bill Footer",keywords:["note visible","remaining visible","status visible"]},{id:"unitQuantitySupplierBill",label:"Unit Quantity",keywords:["visible","multiply"]}]},{label:"Adjustment",path:"/menu/Settings/Printing/Adjustment",icon:"fa fa-balance-scale",description:"Configures titles, signatures, and item tables for adjustments.",children:[{id:"headerAdjustment",label:"Header",keywords:["adjustment title"]},{id:"signatureAdjustment",label:"Signature",keywords:["column 1","column 2"]},{id:"itemsTableAdjustment",label:"Items Table",keywords:["unit price"]}]},{label:"Logistics",path:"/menu/Settings/Printing/Logistics",icon:"fa fa-truck",description:"Configures headers, tables, and signatures for logistics documents.",children:[{id:"headerPrintingLogistics",label:"Header",keywords:["inbound logistics","outbound logistics (send order)","transfer order"]},{id:"visibilityPrintingLogistics",label:"Visibility",keywords:["delivery payment terms visible","cost visible","price visible","status visible","storage location","approved by visible","product component visible"]},{id:"itemsTablePrintingLogistics",label:"Items Table",keywords:["logistics product code","header pack label"]},{id:"footerPrintingLogistics",label:"Footer",keywords:["logistics note","total weight","outbound courier","remaining amount"]},{id:"signaturePrintingLogistics",label:"Signature",keywords:["column 1","column 2","column 3","column 4","column 5"]},{id:"advancedPrintingLogistics",label:"Advanced",keywords:["item display mode","print po number"]}]},{label:"Packing Slip",path:"/menu/Settings/Printing/Packing-Slip",icon:"fa fa-box-open",description:"Packing slip visibility for logistics, products, and footers.",children:[{id:"generalPackingSlip",label:"General",keywords:["invoice number visible","barcode visible","barcode height"]},{id:"logisticInformationPackingSlip",label:"Logistic Information",keywords:["store name visible","store phone visible","store address visible","customer name visible","customer mobile visible","customer address visible"]},{id:"productInformationPackingSlip",label:"Product Information",keywords:["product name visible","product code visible","product note visible","product quantity visible"]},{id:"footerPackingSlip",label:"Footer",keywords:["invoice note visible","sales order tag visible"]},{id:"packingSlipV1PackingSlip",label:"Packing Slip V1",keywords:["render invoice note","product table visible","include shipping address","code visible"]}]},{label:"Shift",path:"/menu/Settings/Printing/Shift",icon:"fa fa-business-time",description:"Sets titles and visibility for shift closure and summary reports.",children:[{id:"headerShift",label:"Header",keywords:["title"]},{id:"visibilityShift",label:"Visibility",keywords:["category sales visible","history visible","closure variant visible","display point used visible","variant has commission","void invoice visible","sales type visible","remove thousand","history accumulated visible"]}]},{label:"Debt",path:"/menu/Settings/Printing/Debt",icon:"fa fa-hand-holding-usd",description:"Configures headers, item visibility, and signatures for debt documents.",children:[{id:"headerDebt",label:"Header",keywords:["join invoice title","join bill title"]},{id:"joinInvoiceDebt",label:"Join Invoice",keywords:["product visible","due date visible","remaining amount footer label"]},{id:"signatureDebt",label:"Signature",keywords:["column 1","column 2","column 3","column 4"]}]},{label:"Payment",path:"/menu/Settings/Printing/Payment",icon:"fa fa-money-bill-wave",description:"Configures titles and product visibility for payment receipts.",children:[{id:"headerPayment",label:"Header",keywords:["payment title"]},{id:"bodyPayment",label:"Body",keywords:["products"]}]},{label:"Manufacture",path:"/menu/Settings/Printing/Manufacture",icon:"fa fa-industry",description:"Configures titles and visibility for manufacturing documents like job orders.",children:[{id:"headerManufacture",label:"Header",keywords:["manufacture printing title"]},{id:"documentVisibilityManufacture",label:"Document Visibility",keywords:["manufacture date","cost visible","price visible"]}]},{label:"Others",path:"/menu/Settings/Printing/Others",icon:"fa fa-ellipsis-h",description:"Labels and fields for miscellaneous documents.",children:[{id:"headerOthers",label:"Header",keywords:["estimate label","sales order label","sales return label","work order label","packing receipt label"]},{id:"modifiedHeaderLabelOthers",label:"Modified Header",keywords:["work order label","outbound logistics label"]},{id:"orderOthers",label:"Order",keywords:["cart displayed field"]}]},{label:"Tax",path:"/menu/Settings/Printing/Tax",icon:"fa fa-receipt",description:"Configures tax settings for Indonesian regulations.",children:[{id:"indonesiaTaxRegulationTax",label:"Indonesia Tax Regulation",keywords:["address","npwp","pkp configuration place","approver"]}]}]},{label:"AddOns",path:"/menu/Settings/addons",icon:"fa fa-puzzle-piece",colorClass:"$color-4",children:[{label:"Prepaid Package",path:"/menu/Settings/AddOns/Prepaid-Package",icon:"fa fa-gift",description:"Configures prepaid packages, roles, labels, and expiry.",children:[{id:"behaviourPrepaidPackage",label:"Behaviour",keywords:["assistant enabled","activated at previous package expiry","merge package previous expiry"]},{id:"administratorLabelPrepaidPackage",label:"Administrator Label",keywords:["primary role","secondary role","tertiary role"]},{id:"packageLabelPrepaidPackage",label:"Package Label",keywords:["point label","point burned label"]},{id:"noteLabelPrepaidPackage",label:"Note Label",keywords:["note 1 label","note 2 label"]},{id:"prepaidPackageExpirationPrepaidPackage",label:"Prepaid Package Expiration",keywords:["month","day"]}]},{label:"Prepaid Point",path:"/menu/Settings/AddOns/Prepaid-Point",icon:"fa fa-coins",description:"Sets expiration rules for prepaid loyalty/reward points.",children:[{id:"expirationPrepaidPoint",label:"Expiration",keywords:["month","day"]}]},{label:"Customer Display",path:"/menu/Settings/AddOns/Customer-Display",icon:"fa fa-desktop",description:"Configures customer display basics like refresh timers and intervals.",children:[{id:"basicSettingsCustomerDisplay",label:"Basic Settings",keywords:["timer"]}]},{label:"Manufacture",path:"/menu/Settings/AddOns/Manufacture",icon:"fa fa-industry",description:"Configures manufacturing workflows, materials, and rules.",children:[{id:"jobOrderManufacture",label:"Job Order",keywords:["workflow","material mode"]},{id:"behaviourManufacture",label:"Behaviour",keywords:["allow mismatched cost"]}]},{label:"Mobile",path:"/menu/Settings/AddOns/Mobile",icon:"fa fa-mobile-alt",description:"Configures mobile app basics like scan delays and sync intervals.",children:[{id:"basicSettingsMobile",label:"Basic Settings",keywords:["interval delay after scan"]}]}]},{label:"Mail",path:"/menu/Settings/mail",icon:"fa fa-envelope",colorClass:"$color-5",children:[{label:"E-Receipt",path:"/menu/Settings/Mail/E-Receipt",icon:"fa fa-receipt",description:"Configures sender, subject, and recipients for automated e-receipts.",children:[{id:"basicSettingsEreceipt",label:"Basic Settings",keywords:["receipt subject","display name","reply mail address","cc receipt address","user group to receive","group to send receipt"]}]},{label:"End Of Day Report",path:"/menu/Settings/Mail/End-Of-Day-Report",icon:"fa fa-calendar-day",description:"Daily summary emails: schedule, content, recipients.",children:[{id:"basicSettingsEndOfDayReport",label:"Basic Settings",keywords:["user group to receive","email subject"]},{id:"reportSettingsEndOfDayReport",label:"Report Settings",keywords:["delivery time","delivery report content"]},{id:"reportFormatEndOfDayReport",label:"Report Format",keywords:["product inventory","low on stock products","top 5 low on stock product","month to date sales","service rendered","payment received","sales grouped by product","sales grouped by outlet & product","sales grouped by sales order tag","delivery time","delivery report content","add inveontory column","send month to date sales","send service rendered","send top 5 low on stock product","send payment received","send no transaction","send visitor statistic","days of transfer not arrived"]},{id:"advancedEndOfDayReport",label:"Advanced",keywords:["send no transaction","days of transfer not arrived","visitor statistic"]}]},{label:"End Of Week Report",path:"/menu/Settings/Mail/End-Of-Week-Report",icon:"fa fa-calendar-week",description:"Weekly summary emails: recipients and content visibility.",children:[{id:"basicSettingsEndOfWeekReport",label:"Basic Settings",keywords:["user group to receive","last year spending visible","email subject","customer birthday subject"]}]},{label:"End Of Month Report",path:"/menu/Settings/Mail/End-Of-Month-Report",icon:"fa fa-calendar-days",description:"Monthly summary emails: recipients, attachments, subjects.",children:[{id:"basicSettingsEndOfMonthReport",label:"Basic Settings",keywords:["user group to receive","attach deferred revenue","email subject"]}]},{label:"Advanced",path:"/menu/Settings/Mail/Advanced",icon:"fa fa-gears",description:"Advanced email settings: notifications and custom SMTP.",children:[{id:"paymentNotificationEmailAdvanced",label:"Payment Notification Email",keywords:["user group to receive"]},{id:"customSmtpAdvanced",label:"Custom SMTP",keywords:["mail server password","mail server from"]}]}]},{label:"Payment",path:"/menu/Settings/payment",icon:"fa fa-credit-card",colorClass:"$color-6",children:[{label:"Gopay QRIS",path:"/menu/Settings/Payment/Gopay-QRIS",icon:"fa fa-qrcode",description:"Sets merchant credentials and keys for Gopay QRIS integration.",children:[{id:"basicSettingsGopayQris",label:"Basic Settings",keywords:["server key","merchant name"]}]},{label:"BCA QRIS",path:"/menu/Settings/Payment/BCA-QRIS",icon:"fa fa-qrcode",description:"Configures authentication, keys, and advanced options for BCA QRIS.",children:[{id:"authenticationBcaQris",label:"Authentication",keywords:["test function","client id","client secret"]},{id:"basicInformationBcaQris",label:"Basic Information",keywords:["merchant id","terminal id","service code","channel id","logging"]},{id:"generalKeyBcaQris",label:"General Key",keywords:["private key","public key"]},{id:"bcaKeyBcaQris",label:"BCA Key",keywords:["public key bca"]},{id:"advancedBcaQris",label:"Advanced",keywords:["access token","signature value","currency","timestamp","transaction id","merchant id body","terminal id body","partner merchant type","external id custom value"]}]},{label:"Payment Link",path:"/menu/Settings/Payment/Payment-Link",icon:"fa fa-link",description:"Sets gateway keys and methods for creating payment links.",children:[{id:"basicSettingsPaymentLink",label:"Basic Settings",keywords:["midtrans server key","payment method"]}]}]},{label:"Advanced",path:"/menu/Settings/advanced",icon:"fa fa-gears",colorClass:"$color-7",children:[{label:"Generator",path:"/menu/Settings/Advanced/Generator",icon:"fa fa-bolt",description:"Generator settings: starting numbers and options.",children:[{id:"productCodeGeneratorGenerator",label:"Product Code Generator",keywords:["type","starting number"]},{id:"customerCodeGeneratorGenerator",label:"Customer Code Generator",keywords:["enabled","starting number"]},{id:"salesPersonCodeGeneratorGenerator",label:"Sales Person Code Generator",keywords:["enabled","starting number"]}]},{label:"Sensitive Field",path:"/menu/Settings/Advanced/Sensitive-Field",icon:"fa fa-eye-slash",description:"Defines sensitive objects and masking rules for UI visibility.",children:[{id:"objectsSensitiveField",label:"Objects",keywords:["product sensitive field","customer sensitive field"]},{id:"maskingSettingsSensitiveField",label:"Masking Settings",keywords:["max visible prefix","max visible suffix"]}]},{label:"Whatsapp",path:"/menu/Settings/Advanced/Whatsapp",icon:"fa-brands fa-whatsapp",description:"WhatsApp integration: credentials and message templates.",children:[{id:"whatsappInvoiceSettingsWhatsapp",label:"Whatsapp Invoice Settings",keywords:["account sid","auth token","content template sid","from number"]},{id:"whatsappReceiptSettingsWhatsapp",label:"Whatsapp Receipt Settings",keywords:["e-receipt template","customize e-receipt template"]}]},{label:"AI",path:"/menu/Settings/Advanced/AI",icon:"fa fa-wand-magic-sparkles",description:"Sets language and character limits for AI features.",children:[{id:"productDescriptionAi",label:"Product Description",keywords:["language","maximum character"]}]}]}];export{t as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as Ce,E as D,I as U,J as Ae,L as Te,P as Y,Q as Oe,R as xe,U as C,V as A,W as B,Y as we,Z as ke,_ as Ie,a as q,da as j,f as P,g as ye,ga as Ee,i as M,ka as N,na as Z,o as be,x as ve,y as De}from"./chunk-
|
|
1
|
+
import{B as Ce,E as D,I as U,J as Ae,L as Te,P as Y,Q as Oe,R as xe,U as C,V as A,W as B,Y as we,Z as ke,_ as Ie,a as q,da as j,f as P,g as ye,ga as Ee,i as M,ka as N,na as Z,o as be,x as ve,y as De}from"./chunk-QNJA2R5I.js";import{$ as w,$a as de,$b as fe,$c as _e,Aa as ae,B as ie,Ca as oe,D as y,Fa as se,Fb as he,Ga as S,Gb as me,Ha as b,M as p,Rb as W,Tb as ue,Xa as re,Ya as le,Zb as ge,_b as pe,d as m,eb as F,f as G,fb as L,fc as Q,gb as f,ib as ce,jb as _,ka as k,kb as R,la as I,ma as u,oa as s,tb as v,w as x,wa as h,xa as ne,za as E}from"./chunk-M4BR2FL5.js";import{a as c,b as te}from"./chunk-NF7PG5F2.js";function ze(i,a){}var g=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var K=(()=>{class i extends xe{_elementRef=s(b);_focusTrapFactory=s(De);_config;_interactivityChecker=s(ve);_ngZone=s(ae);_focusMonitor=s(be);_renderer=s(de);_changeDetectorRef=s(_e);_injector=s(h);_platform=s(ye);_document=s(ne);_portalOutlet;_focusTrapped=new m;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=s(g,{optional:!0})||new g,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{o(),l(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",n),l=this._renderer.listen(e,"mousedown",n)})),e.focus(t)}_focusByCssSelector(e,t){let n=this._elementRef.nativeElement.querySelector(e);n&&this._forceFocus(n,t)}_trapFocus(e){this._isDestroyed||re(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let n=M(),o=this._elementRef.nativeElement;(!n||n===this._document.body||n===o||o.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,t=M();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=M()))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=F({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(t,n){if(t&1&&ge(C,7),t&2){let o;pe(o=fe())&&(n._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,n){t&2&&v("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null)},features:[_],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){t&1&&R(0,ze,0,0,"ng-template",0)},dependencies:[C],styles:[`.cdk-dialog-container {
|
|
2
2
|
display: block;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ze}from"./chunk-
|
|
1
|
+
import{a as ze}from"./chunk-HTDRNJB2.js";import{d as qe}from"./chunk-4XTU6ASH.js";import{a as $e}from"./chunk-IQKUYJGO.js";import{a as Fe}from"./chunk-SER3IL6F.js";import{a as Be,b as Re}from"./chunk-57ICJ7ZS.js";import{a as He}from"./chunk-2CQ2WSE5.js";import{a as Ke}from"./chunk-ODTVUCNL.js";import{a as De}from"./chunk-OXGYFMSK.js";import{a as Le}from"./chunk-EKFZTDLR.js";import{a as Me}from"./chunk-WSQCJAKX.js";import{Da as Ee,Fa as ke,Ha as K,Ia as Ae,N as G,O as V,b as P,e as M,f as A,g as L,ja as Oe,k as Y,oa as Te,ra as Se,sa as Q,ta as Ve}from"./chunk-W7LIGPO6.js";import{a as Ce}from"./chunk-TQGFSJ2L.js";import{$b as x,Aa as oe,Ac as q,Bc as J,Ca as $,Eb as r,Fb as m,Ga as le,Gb as _,Hb as B,Lb as O,Mb as T,Mc as k,Nb as C,Pc as H,Qb as w,Tb as I,Uc as X,Va as s,Vb as a,Yb as ce,Zb as ue,_b as y,ab as N,bd as h,cd as E,dc as j,eb as ae,ec as de,fb as pe,gc as R,hc as g,ib as re,ic as D,ja as ee,jb as se,jc as W,jd as ye,ka as te,kb as c,kc as Z,la as ne,ld as xe,ma as ie,md as be,nc as me,nd as ve,oa as z,oc as he,od as Ie,pc as _e,sa as u,ta as d,tb as b,ua as F,wd as we,xc as ge,yc as fe,za as v,zc as S}from"./chunk-M4BR2FL5.js";var Pe=`
|
|
2
2
|
.p-autocomplete {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as g}from"./chunk-
|
|
1
|
+
import{a as g}from"./chunk-5HQVGIJL.js";import{a as m}from"./chunk-UMWFRR4G.js";import{Ga as d,Pc as r,Uc as e,bd as o,gb as a,jb as u,oa as t}from"./chunk-M4BR2FL5.js";var D=(()=>{class n extends m{pcFluid=t(g,{optional:!0,host:!0,skipSelf:!0});fluid=e(void 0,{transform:o});variant=e();size=e();inputSize=e();pattern=e();min=e();max=e();step=e();minlength=e();maxlength=e();$variant=r(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());get hasFluid(){return this.fluid()??!!this.pcFluid}static \u0275fac=(()=>{let i;return function(f){return(i||(i=d(n)))(f||n)}})();static \u0275dir=a({type:n,inputs:{fluid:[1,"fluid"],variant:[1,"variant"],size:[1,"size"],inputSize:[1,"inputSize"],pattern:[1,"pattern"],min:[1,"min"],max:[1,"max"],step:[1,"step"],minlength:[1,"minlength"],maxlength:[1,"maxlength"]},features:[u]})}return n})();export{D as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as Li,b as Wi}from"./chunk-
|
|
1
|
+
import{a as Li,b as Wi}from"./chunk-3QEFLMBJ.js";import{a as Ri}from"./chunk-S2QJIB5V.js";import{a as Bi}from"./chunk-6PLWKUVB.js";import{a as Fi}from"./chunk-ELZIP2KW.js";import{a as gt,b as Ae}from"./chunk-TQZTI3ZR.js";import"./chunk-6AV6Z5C2.js";import{b as Vi,c as Ai}from"./chunk-V23PY47E.js";import{a as ki,b as xt}from"./chunk-2YXKJPGF.js";import{p as Te}from"./chunk-COVNF5TW.js";import"./chunk-MJSVDX74.js";import"./chunk-5XU33WRC.js";import"./chunk-IZWKFFEW.js";import"./chunk-3D63XZS5.js";import"./chunk-JXNIPM2T.js";import"./chunk-BOBN2YG5.js";import{a as yi,b as vi}from"./chunk-TWHYCOEU.js";import{a as ft}from"./chunk-33PN6ZVW.js";import"./chunk-77LROINT.js";import"./chunk-WLWM3OQH.js";import{d as bt}from"./chunk-Y22O3V7H.js";import"./chunk-CJA4CRM2.js";import{a as Oi,b as Ni}from"./chunk-6TR3TLFU.js";import{b as hi}from"./chunk-ZOIS457K.js";import{a as Re}from"./chunk-EFE3D4ZE.js";import{b as Ii}from"./chunk-FU3YLB2W.js";import"./chunk-VZUM2LKN.js";import"./chunk-GHYRXHXE.js";import"./chunk-O64SMX33.js";import{g as re,h as Be}from"./chunk-A4JSWY3T.js";import"./chunk-JJHOPVCP.js";import{a as xi}from"./chunk-XKFCY2WE.js";import"./chunk-IQKUYJGO.js";import"./chunk-2CQ2WSE5.js";import"./chunk-TEOXI4GP.js";import"./chunk-7RIXJGBF.js";import"./chunk-RLTWWJF4.js";import"./chunk-45RV7XGN.js";import"./chunk-YLYDNXTR.js";import{a as ge}from"./chunk-L2RATUCD.js";import"./chunk-OA5QSTLL.js";import"./chunk-5OWGEIBR.js";import{b as Ei,c as Pi}from"./chunk-SK7YEM44.js";import"./chunk-BXQ5BACV.js";import"./chunk-G56S6AJ3.js";import"./chunk-NBY5JYTZ.js";import{a as Me,b as _t}from"./chunk-OIQQX555.js";import"./chunk-PPMQE2JW.js";import{F as Di,N as Ti,g as Si,o as Mi,s as wi}from"./chunk-R6LLMES2.js";import{a as ui}from"./chunk-DKL62YZF.js";import"./chunk-OKQYRKDJ.js";import"./chunk-WRTZCAWR.js";import{d as De,e as Ct}from"./chunk-6E2I4YPC.js";import"./chunk-OXGYFMSK.js";import"./chunk-HNJ3OK4C.js";import{a as oe,b as we,c as ae}from"./chunk-25QLZIJ6.js";import"./chunk-6QN5EZUF.js";import"./chunk-6KDFTGJM.js";import"./chunk-DIEARMFR.js";import"./chunk-QNJA2R5I.js";import{a as Lt}from"./chunk-YHU5GUSL.js";import"./chunk-UJOHSIOH.js";import"./chunk-EKFZTDLR.js";import"./chunk-5HQVGIJL.js";import"./chunk-WSQCJAKX.js";import{a as L,b as ee,c as Z}from"./chunk-JOMGNZVV.js";import"./chunk-UMWFRR4G.js";import"./chunk-QATRAXMM.js";import"./chunk-OM75IK4K.js";import"./chunk-W7LIGPO6.js";import{A as ct,C as gi,D as mt,E as Ci,F as ne,G as pt,c as Y,e as Wt,h as B,i as ve,l as Ve,p as W,q as Se,w as fi,x as _i}from"./chunk-TQGFSJ2L.js";import"./chunk-ZHEP6ZQX.js";import"./chunk-3TTA7DXW.js";import"./chunk-3TPCC7AC.js";import{a as bi,b as ut}from"./chunk-VCA5TPVQ.js";import{a as $}from"./chunk-PPTZHIIZ.js";import{a as Qe}from"./chunk-HZSUSEJU.js";import{n as Q,q as P}from"./chunk-6MWLBSLA.js";import{Aa as Zt,Ab as at,Ac as rt,Bb as R,Ca as E,Cb as N,D as de,Db as F,Dc as ri,Ea as Jt,Eb as u,Fa as Xt,Fb as n,Gb as i,Gc as b,Hb as g,Hc as D,Ic as O,Jc as li,Kd as pi,M as Qt,Mc as si,Oa as q,Od as st,Pc as lt,Qa as Ne,Qb as v,Qd as ke,Rd as dt,Tb as C,Td as Bt,Uc as V,Va as s,Vb as d,Y as et,Yc as G,aa as J,ab as x,c as Je,dc as X,e as Xe,ea as tt,eb as T,fb as nt,fc as Fe,gc as ei,hc as Ie,ic as r,jb as ue,jc as h,jd as ye,ka as pe,kb as ot,kc as y,l as $t,la as it,lc as Oe,mc as Ge,md as di,na as ie,nc as S,nd as ci,oa as H,oc as M,pc as w,pd as mi,qc as ti,r as se,rd as j,sa as f,ta as _,tc as ii,td as fe,uc as ni,v as Gt,wd as _e,xa as Yt,xb as m,xc as oi,ya as Kt,yc as ai,zb as p,zc as A}from"./chunk-M4BR2FL5.js";import{a as xe,b as he}from"./chunk-NF7PG5F2.js";function Ht(t){if(t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray)return new DataView(t.buffer,t.byteOffset,t.byteLength);if(t instanceof ArrayBuffer)return new DataView(t);throw new TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}var $i="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",Gi="0123456789ABCDEFGHIJKLMNOPQRSTUV",Qi="0123456789ABCDEFGHJKMNPQRSTVWXYZ";function jt(t,l,e){e=e||{};let o,a;switch(l){case"RFC3548":case"RFC4648":o=$i,a=!0;break;case"RFC4648-HEX":o=Gi,a=!0;break;case"Crockford":o=Qi,a=!1;break;default:throw new Error("Unknown base32 variant: "+l)}let c=e.padding!==void 0?e.padding:a,I=Ht(t),K=0,be=0,me="";for(let $e=0;$e<I.byteLength;$e++)for(be=be<<8|I.getUint8($e),K+=8;K>=5;)me+=o[be>>>K-5&31],K-=5;if(K>0&&(me+=o[be<<5-K&31]),c)for(;me.length%8!==0;)me+="=";return me}var Le=class t{dialogRef=H(oe);config=this.initConfig();initConfig(){let l=new ee;return l.okText="Disable Two Factor Authentication",l.customWidth="500px",l.title="DIsabled Two Factor Authentication",l.headerType=L.Warning,l}onOk(){this.dialogRef.close(!0)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=T({type:t,selectors:[["POS-modal-confirmation-disabled"]],decls:5,vars:1,consts:[[3,"onOk","onCancel","onClose","config"],[1,"row","px-10","py-4"],[1,"font-weight-normal","h4","text-left","lh-base"]],template:function(e,o){e&1&&(n(0,"modal-material",0),C("onOk",function(){return o.onOk()})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),n(1,"content")(2,"div",1)(3,"p",2),r(4,"Are you sure you want to disable two factor authentication for your account? "),i()()()()),e&2&&u("config",o.config)},dependencies:[Z],encapsulation:2,changeDetection:0})};function Yi(t,l){if(t&1){let e=v();n(0,"div")(1,"div",1),r(2," Two Factor Authentication Status: "),n(3,"span",2),r(4,"Enabled"),i()()(),n(5,"div",3)(6,"button",4),C("click",function(){f(e);let a=d();return _(a.onDisableTotp())}),r(7," Disable Two Factor Authentication "),i()()}}function Ki(t,l){if(t&1){let e=v();n(0,"div",5)(1,"div",6)(2,"h4"),r(3,"Connect Your DealPOS account to an Authenticator Application"),i(),n(4,"p"),r(5," Secure your login with One Time Password using an Authenticator Application! "),i()()(),n(6,"div",5)(7,"div",6)(8,"ol",7)(9,"li",8)(10,"h5"),r(11,"Download Authenticator application"),i(),n(12,"div",9)(13,"a",10),g(14,"img",11),r(15," Microsoft Authenticator "),i(),n(16,"a",12),g(17,"img",13),r(18," Google Authenticator "),i()()(),n(19,"li",14)(20,"h5"),r(21,"Scan the QR code below"),i(),n(22,"div",3),g(23,"qr-code",15),i()(),n(24,"li",14)(25,"h5"),r(26,"Validate your QR Code"),i(),n(27,"form",16),C("submit",function(){f(e);let a=d();return _(a.onValidate())}),n(28,"div")(29,"input",17),C("keypress",function(a){f(e);let c=d();return _(c.numberOnly(a))}),w("ngModelChange",function(a){f(e);let c=d();return M(c.validationCode,a)||(c.validationCode=a),_(a)}),i()(),n(30,"div",3)(31,"button",18),r(32," Validate "),i()()()()()()()}if(t&2){let e=d();s(23),u("value",e.qrcodeContent())("size",265),s(6),S("ngModel",e.validationCode)}}var We=class t{document=H(Yt);authenticatorService=H(ft);toastrService=H(Q);dialog=H(ae);destroyRef=H(Kt);totpEnabled=G(!1);qrcodeContent=E("");validationCode=E("");secretKey=E("");constructor(){this.generateQrCodeContent()}generateQrCodeContent(){let l=this.getDomainName(),e=this.generateRandomSecret();this.secretKey.set(e);let a=$.parseJwt(localStorage.getItem("Token")).LID;this.qrcodeContent.set(`otpauth://totp/${a}?secret=${e}&issuer=${l}`)}generateRandomSecret(){let l=$.Guid_NewGuid(),e=new TextEncoder().encode(l);return jt(e,"RFC3548")}getDomainName(){return this.document.location.origin.replace(/^https?:\/\//,"")}onValidate(){if(!this.validateOnVerfiyCode())return;let l={SecretKey:this.secretKey(),ValidationCode:this.validationCode(),Enabled:!0};this.authenticatorService.configure2FA(l).pipe(Lt(this.destroyRef)).subscribe(e=>{this.toastrService.success(e.Message,"TOTP Enabled"),this.totpEnabled.set(!0)})}validateOnVerfiyCode(){return $.IsEmpty(this.validationCode())?(this.toastrService.warning("You must enter a authentication code.","Warning"),!1):this.validationCode().length!==6?(this.toastrService.warning("The authentication code must be six digits long.","Warning"),!1):!0}numberOnly(l){return $.numberOnly(l)}onDisableTotp(){this.dialog.open(Le).afterClosed().pipe(de(l=>$.IsNotEmpty(l)),J(()=>this.authenticatorService.disableTwoFactorAuthentication()),Lt(this.destroyRef)).subscribe(l=>{this.toastrService.success(l.Message,"TOTP Disabled"),this.totpEnabled.set(!1)})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=T({type:t,selectors:[["POS-setup-2FA"]],inputs:{totpEnabled:[1,"totpEnabled"]},outputs:{totpEnabled:"totpEnabledChange"},decls:3,vars:1,consts:[[1,"container-fluid","mt-6"],[1,"d-inline-block","fs-5"],[1,"text-success","fw-bold"],[1,"mt-6"],["type","button","type","submit",1,"btn","btn-sm","btn-danger",3,"click"],[1,"row"],[1,"col-12"],[1,"ps-7"],[1,"fw-bold"],[1,"d-flex","align-items-center","mt-6"],["href","https://play.google.com/store/apps/details?id=com.azure.authenticator","target","_blank",1,"link-dark","border","py-3","px-6","me-6","border-primary","border-2"],["src","https://cdn.dealpos.xyz/web-image/Microsoft_Authenticator.png",2,"width","35px"],["href","https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2","target","_blank",1,"link-dark","border","py-3","px-6","me-6","border-primary","border-2"],["src","https://cdn.dealpos.xyz/web-image/Google_Authenticator.png",2,"width","35px"],[1,"fw-bold","mt-6"],["errorCorrectionLevel","H",1,"qr2fa",3,"value","size"],[1,"mt-6",3,"submit"],["type","text","name","auth","placeholder","Enter six Digit Code",1,"form-control","rounded","totpCustomStyle","border","border-2","border-primary",3,"keypress","ngModelChange","ngModel"],["type","button","type","submit",1,"btn","btn-sm","btn-primary","py-3"]],template:function(e,o){e&1&&(n(0,"div",0),m(1,Yi,8,0)(2,Ki,33,3),i()),e&2&&(s(),p(o.totpEnabled()?1:2))},dependencies:[ne,Se,Y,B,ve,W,Ve,xt,ki],styles:[`.totpCustomStyle{height:3.625rem;padding:.75rem!important;color:#343434;font-size:.875rem;border-radius:.25rem!important;width:370px}qr-code.qr2fa>canvas{border:2px solid rgb(51,122,183);padding:2px}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})};var Ut=t=>({active:t}),Hi=t=>({"ng-invalid ng-dirty":t}),Xi=(t,l)=>({border:t,"border-danger":l}),en=t=>({"border-top-0":t});function tn(t,l){if(t&1){let e=v();n(0,"button",66),C("click",function(){f(e);let a=d(3);return _(a.validate())}),r(1," Submit "),i()}if(t&2){d(2);let e=X(36);u("disabled",e==null||e.form==null?null:e.form.invalid)}}function nn(t,l){if(t&1&&m(0,tn,2,1,"button",65),t&2){let e=d(2);p(!(e.roleService==null||e.roleService.users==null)&&e.roleService.users.View||!(e.roleService==null||e.roleService.profile==null)&&e.roleService.profile.View?0:-1)}}function on(t,l){t&1&&(n(0,"small",69),r(1,"*Email is required"),i())}function an(t,l){t&1&&(n(0,"small",69),r(1,"*Enter a valid email address"),i())}function rn(t,l){if(t&1&&(m(0,on,2,0,"small",69),m(1,an,2,0,"small",69)),t&2){d();let e=X(4);p(e.errors!=null&&e.errors.required?0:-1),s(),p(e.errors!=null&&e.errors.pattern?1:-1)}}function ln(t,l){if(t&1){let e=v();n(0,"div",23)(1,"label",67),r(2," Email "),i(),n(3,"input",68,3),w("ngModelChange",function(a){f(e);let c=d(2);return M(c.formData.Email,a)||(c.formData.Email=a),_(a)}),i(),m(5,rn,2,2),i()}if(t&2){let e=X(4),o=d(2);s(3),Ie(rt(5,Xi,e.touched&&e.invalid,e.touched&&e.invalid)),S("ngModel",o.formData.Email),u("disabled",!(!(o.roleService==null||o.roleService.users==null)&&o.roleService.users.View||!(o.roleService==null||o.roleService.profile==null)&&o.roleService.profile.View)),s(2),p(e.touched?5:-1)}}function sn(t,l){t&1&&(n(0,"small",69),r(1,"*Enter a valid email address"),i())}function dn(t,l){if(t&1&&m(0,sn,2,0,"small",69),t&2){d();let e=X(4);p(e.errors!=null&&e.errors.pattern?0:-1)}}function cn(t,l){if(t&1){let e=v();n(0,"div",23)(1,"label",67),r(2," Email "),i(),n(3,"input",70,3),w("ngModelChange",function(a){f(e);let c=d(2);return M(c.formData.Email,a)||(c.formData.Email=a),_(a)}),i(),m(5,dn,1,1),i()}if(t&2){let e=X(4),o=d(2);s(3),u("disabled",!(!(o.roleService==null||o.roleService.users==null)&&o.roleService.users.View||!(o.roleService==null||o.roleService.profile==null)&&o.roleService.profile.View)),S("ngModel",o.formData.Email),s(2),p(e.touched?5:-1)}}function mn(t,l){t&1&&(n(0,"i",34),r(1," Password is required. "),i())}function pn(t,l){t&1&&(n(0,"i",34),r(1," These passwords don't match."),i())}function un(t,l){if(t&1&&(n(0,"ul",41)(1,"li",71),r(2),i()()),t&2){let e=l.$implicit;s(2),h(e)}}function fn(t,l){if(t&1&&(n(0,"tr")(1,"td"),r(2),i(),n(3,"td"),r(4),i(),n(5,"td"),r(6),i()()),t&2){let e=l.$implicit,o=l.$index;s(2),h(o+1),s(2),h(e.Key),s(2),h(e.Value)}}function _n(t,l){if(t&1&&(n(0,"ul",41)(1,"li",71),r(2),i()()),t&2){let e=l.$implicit;s(2),h(e)}}function gn(t,l){if(t&1&&(n(0,"tr")(1,"td"),r(2),i(),n(3,"td"),r(4),i(),n(5,"td"),r(6),i()()),t&2){let e=l.$implicit,o=l.$index;s(2),h(o+1),s(2),h(e.Key),s(2),h(e.Value)}}function Cn(t,l){if(t&1&&(n(0,"div",73)(1,"div",74),r(2),i()()),t&2){let e=l.$implicit,o=l.$index;s(),Ie(A(3,en,o/4>=1)),s(),y(" ",e.Model," ")}}function bn(t,l){if(t&1&&(n(0,"div",48)(1,"div",72),r(2),i(),n(3,"div",40)(4,"div",17),N(5,Cn,3,5,"div",73,R),i()()()),t&2){let e=l.$implicit;s(2),y(" ",e.Name," "),s(3),F(e.ListRole)}}function xn(t,l){if(t&1){let e=v();n(0,"button",76),C("click",function(){f(e);let a=d(3);return _(a.copyToClipboard())}),r(1," Copy to Clipboard "),i()}if(t&2){let e=d(3);u("matTooltip",e.tooltipText())("cdkCopyToClipboard",e.formData.ClientID)}}function hn(t,l){if(t&1){let e=v();n(0,"a",77),C("click",function(){f(e);let a=d(3);return _(a.preview("Profile/GenerateClientID"))}),r(1,"Generate"),i()}}function yn(t,l){if(t&1&&(n(0,"div",18)(1,"div",58),g(2,"input",59),i()()),t&2){let e=d(3);s(2),u("value",e.formData.ClientSecret)}}function vn(t,l){if(t&1){let e=v();n(0,"button",76),C("click",function(){f(e);let a=d(3);return _(a.copyToClipboard())}),r(1," Copy to Clipboard "),i()}if(t&2){let e=d(3);u("matTooltip",e.tooltipText())("cdkCopyToClipboard",e.formData.ClientSecret)}}function Sn(t,l){if(t&1){let e=v();n(0,"a",77),C("click",function(){f(e);let a=d(3);return _(a.preview("Profile/GenerateClientSecret"))}),r(1,"Generate"),i()}}function Mn(t,l){if(t&1&&(n(0,"div",55)(1,"h3"),r(2,"API Client ID"),i(),n(3,"small",75),r(4,"(developer.dealpos.com)"),i()(),n(5,"div",57)(6,"div",18)(7,"div",58),g(8,"input",59),i()(),n(9,"div",18)(10,"div",60),m(11,xn,2,2,"button",61),m(12,hn,2,0,"a",62),i()()(),n(13,"div",55)(14,"h3"),r(15,"API Client Secret"),i(),n(16,"small",75),r(17,"(developer.dealpos.com)"),i()(),n(18,"div",57),m(19,yn,3,1,"div",18),n(20,"div",18)(21,"div",60),m(22,vn,2,2,"button",61),m(23,Sn,2,0,"a",62),i()()()),t&2){let e=d(2);s(8),u("value",e.formData.ClientID),s(3),p(e.formData.ClientID?11:-1),s(),p(!(e.roleService==null||e.roleService.users==null)&&e.roleService.users.View||!(e.roleService==null||e.roleService.profile==null)&&e.roleService.profile.View?12:-1),s(7),p(e.formData.ClientSecret?19:-1),s(3),p(e.formData.ClientSecret?22:-1),s(),p(!(e.roleService==null||e.roleService.users==null)&&e.roleService.users.View||!(e.roleService==null||e.roleService.profile==null)&&e.roleService.profile.View?23:-1)}}function wn(t,l){t&1&&(n(0,"div",50)(1,"div",78)(2,"div",79),g(3,"i",80),i(),n(4,"h3",81),r(5," Role Required "),i(),n(6,"p",82),r(7," To view your Developer API Key and Secret for External Access "),i(),n(8,"p",83),r(9," Please ask your Administrator to assign the role [Developer - API] for your user "),i()()())}function Dn(t,l){if(t&1){let e=v();n(0,"button",76),C("click",function(){f(e);let a=d(2);return _(a.copyToClipboard())}),r(1," Copy to Clipboard "),i()}if(t&2){let e=d(2);u("matTooltip",e.tooltipText())("cdkCopyToClipboard",e.formData.OTTUrl)}}function Tn(t,l){if(t&1){let e=v();n(0,"a",77),C("click",function(){f(e);let a=d(2);return _(a.generateOTT("Profile/GenerateOneTimeToken"))}),r(1,"Generate"),i()}}function En(t,l){if(t&1){let e=v();n(0,"mainpanel-cmp",4)(1,"actions"),m(2,nn,1,1),i(),n(3,"content")(4,"div",5)(5,"div")(6,"ul",6)(7,"li",7)(8,"a",8),C("click",function(){f(e);let a=d();return _(a.onSelectTab("GENERAL"))}),r(9,"General"),i()(),n(10,"li",7)(11,"a",9),C("click",function(){f(e);let a=d();return _(a.onSelectTab("SECURITY"))}),r(12,"Outlet Access"),i()(),n(13,"li",7)(14,"a",10),C("click",function(){f(e);let a=d();return _(a.onSelectTab("ROLES"))}),r(15,"Roles"),i()(),n(16,"li",7)(17,"a",11),C("click",function(){f(e);let a=d();return _(a.onSelectTab("API"))}),r(18,"Developer API"),i()(),n(19,"li",7)(20,"a",12),C("click",function(){f(e);let a=d();return _(a.onSelectTab("TOTP"))}),r(21,"TOTP"),i()(),n(22,"li",7)(23,"a",13),C("click",function(){f(e);let a=d();return _(a.onSelectTab("OTT"))}),r(24,"One Time Token"),i()()(),n(25,"div",14)(26,"div",15)(27,"div",16)(28,"div",17)(29,"div",18)(30,"div",19)(31,"div",20)(32,"h2"),r(33,"General Credential"),i()(),n(34,"div",21)(35,"form",22,0)(37,"div",23)(38,"label",24),r(39," First Name "),i(),n(40,"input",25),w("ngModelChange",function(a){f(e);let c=d();return M(c.formData.FirstName,a)||(c.formData.FirstName=a),_(a)}),i()(),n(41,"div",23)(42,"label",26),r(43," Last Name "),i(),n(44,"input",27),w("ngModelChange",function(a){f(e);let c=d();return M(c.formData.LastName,a)||(c.formData.LastName=a),_(a)}),i()(),n(45,"div",23)(46,"label",28),r(47," Username "),i(),n(48,"input",29),w("ngModelChange",function(a){f(e);let c=d();return M(c.formData.LoginID,a)||(c.formData.LoginID=a),_(a)}),i()(),m(49,ln,6,8,"div",23),m(50,cn,6,3,"div",23),i()()()(),n(51,"div",18)(52,"div",19)(53,"div",20)(54,"h2"),r(55,"Change Password"),i(),n(56,"small",30),r(57,"Leave blank if you do not want to change"),i()(),n(58,"div",31)(59,"div",23)(60,"label",32),r(61,"Password"),i(),n(62,"p-password",33,1),w("ngModelChange",function(a){f(e);let c=d();return M(c.formData.NewPassword,a)||(c.formData.NewPassword=a),_(a)}),i(),m(64,mn,2,0,"i",34),i(),n(65,"div",23)(66,"label",32),r(67,"Re-Password"),i(),n(68,"p-password",35,2),w("ngModelChange",function(a){f(e);let c=d();return M(c.formData.RePassword,a)||(c.formData.RePassword=a),_(a)}),i(),m(70,pn,2,0,"i",34),i()()()()()()(),n(71,"div",36)(72,"div",37)(73,"div",38)(74,"h5",39),r(75,"Group"),i(),n(76,"i"),r(77,"Profile Groups"),i()(),n(78,"div",40)(79,"div",17),N(80,un,3,1,"ul",41,R),i()()(),n(82,"div",42)(83,"div",43)(84,"h5",39),r(85,"Outlets"),i(),n(86,"i"),r(87,"Profile Outlets"),i()(),n(88,"div",40)(89,"div",17)(90,"div")(91,"table",44)(92,"thead",45)(93,"tr")(94,"th"),r(95,"No"),i(),n(96,"th"),r(97,"Outlet"),i(),n(98,"th"),r(99,"Access"),i()()(),n(100,"tbody"),N(101,fn,7,3,"tr",null,R),i()()()()()()(),n(103,"div",46)(104,"div",37)(105,"div",38)(106,"h5",39),r(107,"Group"),i(),n(108,"i"),r(109,"Profile Groups"),i()(),n(110,"div",40)(111,"div",17),N(112,_n,3,1,"ul",41,R),i()()(),n(114,"div",42)(115,"div",43)(116,"h5",39),r(117,"Outlets"),i(),n(118,"i"),r(119,"Profile Outlets"),i()(),n(120,"div",40)(121,"div",17)(122,"div")(123,"table",44)(124,"thead",45)(125,"tr")(126,"th"),r(127,"No"),i(),n(128,"th"),r(129,"Outlet"),i(),n(130,"th"),r(131,"Access"),i()()(),n(132,"tbody"),N(133,gn,7,3,"tr",null,R),i()()()()()()(),n(135,"div",47),N(136,bn,7,1,"div",48,R),i(),n(138,"div",49),m(139,Mn,24,6)(140,wn,10,0,"div",50),i(),n(141,"div",51),g(142,"POS-setup-2FA",52),i(),n(143,"div",53)(144,"div",48)(145,"div",54)(146,"div",55)(147,"h3"),r(148,"One Time Token"),i(),n(149,"small",56),r(150,"*Token will expire in 1 hour"),i()(),n(151,"div",57)(152,"div",18)(153,"div",58),g(154,"input",59),i()(),n(155,"div",18)(156,"div",60),m(157,Dn,2,2,"button",61),m(158,Tn,2,0,"a",62),i()(),n(159,"div",54)(160,"small",63),r(161," Please refer this "),n(162,"a",64),r(163,"article"),i(),r(164," for more information "),i()()()()()()()()()()()}if(t&2){let e=X(63),o=X(69),a=d();u("pageData",a.menuData())("hideSearchBox",!0)("hideSearchDropdown",!0),s(2),p(a.activeTab()=="GENERAL"?2:-1),s(6),u("ngClass",A(32,Ut,a.activeTab()=="GENERAL")),s(3),u("ngClass",A(34,Ut,a.activeTab()=="SECURITY")),s(15),u("ngClass",A(36,Ut,a.activeTab()=="GENERAL")),s(14),S("ngModel",a.formData.FirstName),u("disabled",!(!(a.roleService==null||a.roleService.users==null)&&a.roleService.users.View||!(a.roleService==null||a.roleService.profile==null)&&a.roleService.profile.View)),s(4),S("ngModel",a.formData.LastName),u("disabled",!(!(a.roleService==null||a.roleService.users==null)&&a.roleService.users.View||!(a.roleService==null||a.roleService.profile==null)&&a.roleService.profile.View)),s(4),S("ngModel",a.formData.LoginID),u("disabled",!(!(a.roleService==null||a.roleService.users==null)&&a.roleService.users.View||!(a.roleService==null||a.roleService.profile==null)&&a.roleService.profile.View)),s(),p(a.data().EmailRequired?49:-1),s(),p(a.data().EmailRequired?-1:50),s(12),u("toggleMask",!0)("feedback",!1)("disabled",!(!(a.roleService==null||a.roleService.users==null)&&a.roleService.users.View||!(a.roleService==null||a.roleService.profile==null)&&a.roleService.profile.View)),S("ngModel",a.formData.NewPassword),u("ngClass",A(38,Hi,e.touched&&e.invalid)),s(2),p((e.touched||o.dirty)&&e.invalid?64:-1),s(4),S("ngModel",a.formData.RePassword),u("toggleMask",!0)("feedback",!1)("disabled",!(!(a.roleService==null||a.roleService.users==null)&&a.roleService.users.View||!(a.roleService==null||a.roleService.profile==null)&&a.roleService.profile.View))("ngClass",A(40,Hi,a.formData.NewPassword!=a.formData.RePassword&&(o.touched||o.dirty))),s(2),p(a.formData.NewPassword!=a.formData.RePassword&&(o.touched||o.dirty)?70:-1),s(10),F(a.data().Security.Groups),s(21),F(a.data().Security.Outlets),s(11),F(a.data().Security.Groups),s(21),F(a.data().Security.Outlets),s(3),F(a.data().Role),s(3),p(!(a.roleService==null||a.roleService.developer==null)&&a.roleService.developer.Api?139:140),s(3),u("totpEnabled",a.totpEnabled()),s(12),u("value",a.formData.OneTimeToken),s(3),p(a.formData.OneTimeToken?157:-1),s(),p(!(a.roleService==null||a.roleService.users==null)&&a.roleService.users.View||!(a.roleService==null||a.roleService.profile==null)&&a.roleService.profile.View?158:-1)}}var ht=class t extends Ri{constructor(e,o,a,c,I,K,be){super(e,o,"Profile/MyProfileFormInitial",a);this.toastr=c;this.dialog=I;this.authenticatorService=K;this.roleService=be}toastr;dialog;authenticatorService;roleService;tooltipText=E("Copy to Clipboard");totpEnabled=E(!1);activeTab=E("GENERAL");postBindForm(e){this.totpEnabled.set(e?.Form?.TOTPEnabled),this.data().Form.OTTUrl=window.location.hostname+`?OTT=${e?.Form?.OneTimeToken}`}validate(){if(this.formData.NewPassword!=this.formData.RePassword){this.toastr.error("Password and re-enter password must be equal.",L.Error);return}this.onSubmit("Profile/SubmitProfile")}onSubmitSuccess(){this.toastr.success("Your profile is successfuly updated",L.Success)}preview(e){this.httpService.post(`/API/${e}`).subscribe({next:o=>{this.data().Form=o},error:o=>{this.toastr.error(o,L.Error)}})}copyToClipboard(){this.tooltipText.set("Token has been copied to clipboard"),setTimeout(()=>{this.tooltipText.set("Copy to Clipboard")},2e3)}onSelectTab(e){this.activeTab.set(e)}generateOTT(e){this.httpService.post(`/API/${e}`).subscribe({next:o=>{this.data().Form.OneTimeToken=o.OneTimeToken,this.data().Form.OTTUrl="https://"+window.location.hostname+`?OTT=${this.data().Form.OneTimeToken}`},error:o=>{this.toastr.error(o,L.Error)}})}static \u0275fac=function(o){return new(o||t)(x(ge),x(P),x(st),x(Q),x(ae),x(ft),x(ut))};static \u0275cmp=T({type:t,selectors:[["POS-my-profile"]],standalone:!1,features:[ue],decls:1,vars:1,consts:[["validation","ngForm"],["password","ngModel"],["rePassword","ngModel"],["email","ngModel"],[3,"pageData","hideSearchBox","hideSearchDropdown"],[1,"container-fluid","mt-5"],["id","myTab","role","tablist",1,"nav","nav-tabs"],[1,"nav-item","cursor"],["id","general-tab","data-bs-toggle","tab","href","#general","role","tab","aria-controls","general","aria-selected","false",1,"nav-link","active",3,"click","ngClass"],["id","security-tab","data-bs-toggle","tab","href","#security","role","tab","aria-controls","profile","aria-selected","false",1,"nav-link",3,"click","ngClass"],["id","roles-tab","data-bs-toggle","tab","href","#roles","role","tab","aria-controls","contact","aria-selected","false",1,"nav-link",3,"click"],["id","developerApi-tab","data-bs-toggle","tab","href","#developerApi","role","tab","aria-controls","developerApi","aria-selected","false",1,"nav-link",3,"click"],["id","setupAuth-tab","data-bs-toggle","tab","href","#setupAuth","role","tab","aria-controls","setupAuth","aria-selected","false",1,"nav-link",3,"click"],["id","ott-tab","data-bs-toggle","tab","href","#ott","role","tab","aria-controls","ott","aria-selected","false",1,"nav-link",3,"click"],["id","myTabContent",1,"tab-content"],["id","general","role","tab",1,"tab-pane","fade","show","active","mt-0","pt-8","border","border-top-0",3,"ngClass"],[1,"container"],[1,"row"],[1,"col-sm-6"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"d-flex","flex-column","row-gap-4"],[1,"d-flex","flex-column","row-gap-2"],["for","inputFirstName",1,"text-muted"],["type","text","id","inputFirstName","name","firstName","placeholder","First Name",1,"form-control","custom",3,"ngModelChange","ngModel","disabled"],["for","inputLastName",1,"text-muted"],["type","text","id","inputLastName","name","lastName","placeholder","Last Name",1,"form-control","custom",3,"ngModelChange","ngModel","disabled"],["for","inputName",1,"text-muted"],["type","text","id","inputName","name","userName","placeholder","Username","readonly","",1,"form-control","custom",3,"ngModelChange","ngModel","disabled"],[1,"text-body-secondary","h6"],[1,"card-body","d-flex","flex-column","row-gap-4"],["for","password",1,"text-muted"],["required","",1,"p-change-password",3,"ngModelChange","toggleMask","feedback","disabled","ngModel","ngClass"],[1,"control-label","text-danger"],[1,"p-change-password",3,"ngModelChange","ngModel","toggleMask","feedback","disabled","ngClass"],["id","security","role","tab",1,"tab-pane","fade","show","border","border-top-0","mt-0"],[1,"border-bottom","row","pt-8","ms-3","me-3"],[1,"col-sm-2","mt-3"],[1,"fw-bold"],[1,"col-sm-10"],[1,"mb-4"],[1,"row","border-bottom","mt-10","ms-3"],[1,"col-sm-2"],[1,"table"],[1,"thead-light","sticky-top-thead"],["id","security","role","tabpanel",1,"tab-pane","panel","fade","border","border-top-0","mt-0"],["id","roles","role","tabpanel",1,"tab-pane","panel","fade","border","border-top-0","mt-0"],[1,"row","pt-8","ms-3","me-3"],["id","developerApi","role","tab",1,"tab-pane","fade","show","border","border-top-0","p-5","mt-0"],["id","no-customer-info",1,"mt-8"],["id","setupAuth","role","tab",1,"tab-pane","fade","show","p-5","mt-0","border","border-top-0"],[3,"totpEnabled"],["id","ott","role","tab",1,"tab-pane","fade","show","p-5","mt-0","border","border-top-0"],[1,"col-12"],[1,"d-flex","align-items-center"],[1,"text-danger","ms-5"],[1,"row","d-flex","align-items-center"],[1,"form-floating-outline","bg-light-gray"],["type","text","name","api-client","readonly","",1,"form-control",3,"value"],[1,"form-floating-outline"],["mat-raised-button","","matTooltipPosition","above","id","btnCopyToken",1,"btn","btn-secondary","btn-sm","me-5",3,"matTooltip","cdkCopyToClipboard"],["role","button",1,"btn","btn-success","btn-sm"],[1,"text-body-secondary","fst-italic","h6","ms-2"],["href","https://support.dealpos.com/en/articles/9890206-one-time-token","target","_blank"],["matTooltipPosition","above","matTooltip","Save","role","button",1,"btn","btn-success",3,"disabled"],["matTooltipPosition","above","matTooltip","Save","role","button",1,"btn","btn-success",3,"click","disabled"],["for","email",1,"text-muted"],["type","text","id","email","name","email","placeholder","Email","pattern","[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}$","required","",1,"form-control","custom",3,"ngModelChange","ngModel","disabled"],[1,"text-danger"],["id","email","type","Email","name","email","placeholder","Email","pattern","[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}$",1,"form-control","custom",3,"ngModelChange","disabled","ngModel"],[2,"list-style","circle"],[1,"col-sm-2","border","fw-bold","p-3","text-center",2,"background-color","#f6f6f6"],[1,"col-md-3","px-0"],[1,"p-3","border","border-start-0"],[1,"text-body-secondary","h6","ms-2"],["mat-raised-button","","matTooltipPosition","above","id","btnCopyToken",1,"btn","btn-secondary","btn-sm","me-5",3,"click","matTooltip","cdkCopyToClipboard"],["role","button",1,"btn","btn-success","btn-sm",3,"click"],[1,"paylater-warning-box"],[1,"paylater-warning-icon-bg"],[1,"fas","fa-exclamation-triangle","paylater-warning-icon"],["id","customer-required-title",1,"paylater-warning-title"],["id","customer-required-msg",1,"paylater-warning-msg"],[1,"paylater-warning-desc"]],template:function(o,a){o&1&&m(0,En,165,42,"mainpanel-cmp",4),o&2&&p(a.data()&&a.formData?0:-1)},dependencies:[ye,Se,Y,B,ve,ct,mt,W,Ve,re,Me,Vi,We,Li],styles:["p-password.p-change-password>div.p-password.p-component.p-inputwrapper{width:100%!important} p-password.p-change-password>div.p-password.p-component.p-inputwrapper>input{width:100%!important;height:58px!important;padding-left:15px!important;border:1px solid #dee2e6} p-password.p-change-password>div.p-password.p-component.p-inputwrapper>eyeicon.p-element.p-icon-wrapper{margin-right:10px}.custom[_ngcontent-%COMP%]{border-radius:4px;padding:10px 12px;min-height:36px;line-height:1.5;background-color:#fff}.p-change-password[_ngcontent-%COMP%]{border-radius:4px;min-height:40px;line-height:1.5;background-color:#fff}.paylater-warning-box[_ngcontent-%COMP%]{background:#fffbeb;border:2px solid #fde68a;border-radius:18px;padding:1.8rem 1.2rem 1.2rem;text-align:center;margin:.5rem auto;color:#a16207;box-sizing:border-box}.paylater-warning-icon-bg[_ngcontent-%COMP%]{background:#fef3c7;border-radius:50%;width:90px;height:90px;display:flex;align-items:center;justify-content:center;margin:0 auto 1.5rem}.paylater-warning-icon[_ngcontent-%COMP%]{font-size:2.5rem;color:#d97706}.paylater-warning-title[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:700;margin-bottom:.7rem;color:#b45309;font-family:inherit}.paylater-warning-msg[_ngcontent-%COMP%]{font-size:1rem;color:#b45309;margin-bottom:.2rem}.paylater-warning-desc[_ngcontent-%COMP%]{font-size:.875rem;color:#ca8a04}"]})};var In=()=>["/menu/Orders/Orders/Customer_Invoice/Info"],On=t=>({ID:t});function Nn(t,l){if(t&1){let e=v();n(0,"div",18)(1,"h6"),r(2,"Type"),i(),n(3,"ng-select",19),w("ngModelChange",function(a){f(e);let c=d(2);return M(c.pageData().Filter.TypeID,a)||(c.pageData().Filter.TypeID=a),_(a)}),i(),n(4,"h6"),r(5,"Customer"),i(),n(6,"autocompleteV2",20),C("onInputChange",function(a){f(e);let c=d(2);return _(c.resetCustomer(a))})("onSelect",function(a){f(e);let c=d(2);return _(c.onSelectCustomer(a))}),i(),n(7,"h6"),r(8,"From"),i(),n(9,"datepicker",21),w("dateChange",function(a){f(e);let c=d(2);return M(c.pageData().Filter.From,a)||(c.pageData().Filter.From=a),_(a)}),i(),n(10,"h6"),r(11,"To"),i(),n(12,"datepicker",22),w("dateChange",function(a){f(e);let c=d(2);return M(c.pageData().Filter.To,a)||(c.pageData().Filter.To=a),_(a)}),i()()}if(t&2){let e=d(2);s(3),u("items",e.pageData().Options.Types),S("ngModel",e.pageData().Filter.TypeID),s(6),S("date",e.pageData().Filter.From),s(3),S("date",e.pageData().Filter.To)}}function Fn(t,l){if(t&1){let e=v();n(0,"a",23),C("click",function(){f(e);let a=d(2);return _(a.openExportModal())}),g(1,"i",24),r(2," Export "),i()}}function kn(t,l){t&1&&(n(0,"th",11),r(1," @@ Cost "),i())}function Vn(t,l){if(t&1&&(n(0,"span",32),r(1),b(2,"amountFraction"),i()),t&2){let e=d().$implicit;s(),h(" - Profit: "+D(2,1,e.Profit))}}function An(t,l){if(t&1&&(n(0,"small"),r(1),i()),t&2){let e=d(2).$implicit;s(),y("( ",e.Commissions[0].Quantity," unit )")}}function Rn(t,l){if(t&1&&(n(0,"i",45),r(1),m(2,An,2,1,"small"),i()),t&2){let e=d().$implicit;s(),y("sold by ",e.Commissions[0].SalesName," "),s(),p(e.Commissions[0].Quantity<e.Quantity?2:-1)}}function Bn(t,l){if(t&1&&(n(0,"li")(1,"i"),r(2),i()()),t&2){let e=l.$implicit;s(2),y("( ",e.Quantity+" unit by "+e.SalesName," )")}}function Ln(t,l){if(t&1&&(n(0,"ul",46)(1,"li")(2,"i"),r(3,"sold by"),i()(),N(4,Bn,3,1,"li",null,R),i()),t&2){let e=d().$implicit;s(4),F(e.Commissions)}}function Wn(t,l){if(t&1&&(n(0,"th",51),r(1),b(2,"amountFraction"),i()),t&2){let e=d().$implicit;s(),y(" ",D(2,1,e.UnitCost)," ")}}function Hn(t,l){if(t&1&&(n(0,"tr",40)(1,"th",42)(2,"div",43)(3,"span",44),r(4),i(),m(5,Rn,3,2,"i",45),m(6,Ln,6,0,"ul",46),g(7,"span",47),b(8,"newlines"),i()(),n(9,"th",48),r(10),i(),n(11,"th",49),r(12),b(13,"quantityFraction"),i(),n(14,"th",50),r(15),i(),m(16,Wn,3,3,"th",51),n(17,"th",52),r(18),b(19,"amountFraction"),i(),n(20,"th",53),r(21),i(),n(22,"th",54),r(23),b(24,"amountFraction"),i()()),t&2){let e=l.$implicit,o=d(3);s(4),h(e.Name),s(),p(e.Commissions.length==1?5:-1),s(),p(e.Commissions.length>1?6:-1),s(),u("innerHTML",D(8,11,e.Note),q),s(3),y(" ",e.Code," "),s(2),y(" ",D(13,13,e.Quantity)," "),s(3),y(" ",e.UOMName," "),s(),p(!(o.roleService==null||o.roleService.product==null)&&o.roleService.product.Cost?16:-1),s(2),y(" ",D(19,15,e.UnitPrice)," "),s(3),y(" ",e.Discount==0?"":e.Discount+"%"," "),s(2),y(" ",D(24,17,e.Total)," ")}}function jn(t,l){if(t&1&&(n(0,"tr")(1,"th",55),r(2),i(),n(3,"th",56),r(4),i(),n(5,"th",57),r(6),b(7,"amountFraction"),i()()),t&2){let e=l.$implicit;s(2),y("",e.Label," :"),s(2),y(" ",e.CurrencySymbol," "),s(2),y(" ",D(7,3,e.Amount)," ")}}function Un(t,l){if(t&1&&(n(0,"div")(1,"div",25)(2,"div",26)(3,"a",27),g(4,"span",28),b(5,"date"),g(6,"small",29),b(7,"date"),i(),n(8,"span"),r(9),b(10,"showIfNotNullOrEmptyString"),i(),g(11,"span",30),n(12,"strong",31),r(13),b(14,"sum"),n(15,"span"),r(16),b(17,"showIfNotNullOrEmptyString"),i()(),m(18,Vn,3,3,"span",32),n(19,"i",33),r(20),i(),n(21,"span",34),r(22),i(),n(23,"span",35),r(24),i()(),n(25,"div",36),g(26,"label",37),i()(),n(27,"table",38)(28,"tbody",39),N(29,Hn,25,19,"tr",40,R),i()(),n(31,"table",41),N(32,jn,8,5,"tr",null,R),i()()),t&2){let e=l.$implicit,o=d(2);s(3),u("routerLink",ai(27,In))("queryParams",A(28,On,e.ID)),s(),u("innerHTML",e.EntityName+" #"+e.Number+" - "+O(5,12,e.Date,"dd MMM yyyy"),q),s(2),u("innerHTML","("+O(7,15,e.Created,"HH:mm")+")",q),s(3),h(O(10,18,e.CustomerNameDisplay," - {0}")),s(4),y(" ","[Q: "+O(14,21,e.Items,"Quantity")+"]"," "),s(3),h(O(17,24,e.SalesName," - Sales: {0}")),s(2),p(!(o.roleService==null||o.roleService.report==null)&&o.roleService.report.Profit?18:-1),s(2),h(e.DeliveryOutlet==null?"":": Delivered from "+e.DeliveryOutlet),s(2),h(e.PromotionCoupon==null?"":": "+e.PromotionCoupon),s(2),h(e.SONote==null?"":": "+e.SONote),s(2),u("innerHTML",e.PaymentStateLabel,q),s(3),F(e.Items),s(3),F(e.Aggregate)}}function zn(t,l){if(t&1){let e=v();n(0,"mainpanel-cmp",2),C("onSubmit",function(){f(e);let a=d();return _(a.searchFromPageOne())}),n(1,"filters"),ot(2,Nn,13,4,"ng-template",null,0,si),i(),n(4,"actions"),m(5,Fn,3,0,"a",3),i(),n(6,"content")(7,"div",4)(8,"table",5)(9,"thead",6)(10,"tr")(11,"th",7),r(12,"Name"),i(),n(13,"th",8),r(14,"Code"),i(),n(15,"th",9),r(16,"Qty"),i(),n(17,"th",10),r(18,"UOM"),i(),m(19,kn,2,0,"th",11),n(20,"th",12),r(21,"@@ Price"),i(),n(22,"th",13),r(23,"%"),i(),n(24,"th",14),r(25,"Total"),i()()()(),N(26,Un,34,30,"div",null,R),n(28,"div",15)(29,"button",16),C("click",function(){f(e);let a=d();return _(a.showSummaryReport())}),r(30," View Report Summary "),i()(),n(31,"POS-complex-pagination",17),C("jumpToPage",function(){f(e);let a=d();return _(a.getListData())})("previousPage",function(){f(e);let a=d();return _(a.getListData())})("nextPage",function(){f(e);let a=d();return _(a.getListData())}),i()()()()}if(t&2){let e,o=d();u("pageData",o.menuData())("hideSearchBox",!0)("isFilterOnDropdown",!1),s(5),p(!(o.roleService==null||o.roleService.global==null)&&o.roleService.global.Export?5:-1),s(14),p(!(o.roleService==null||o.roleService.product==null)&&o.roleService.product.Cost?19:-1),s(7),F(o.data().Data),s(5),u("total",((e=o.data())==null||e.Data==null?null:e.Data.length)??0)("pageData",o.pageData())}}var vt=class t extends Re{constructor(e,o,a){super(e,o,"Report/MySales","ReportLoader/MyActivity");this.roleService=a}roleService;dialog=H(ae);onSelectCustomer(e){this.pageData().Filter.CustomerID=e}resetCustomer(e){e==""&&(this.pageData().Filter.CustomerID=null)}showSummaryReport(){this.dialog.open(Fi,{data:{Filter:this.pageData().Filter}})}openExportModal(){this.dialog.open(hi,{data:{title:"My Sales",exportTypes:[{ID:"ReportExport/MySales",Value:"Default",FileName:"My Sales"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"ReportExport/MySales/Count",pagination:!0}})}static \u0275fac=function(o){return new(o||t)(x(ge),x(P),x(ut))};static \u0275cmp=T({type:t,selectors:[["POS-my-sales"]],standalone:!1,features:[ue],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown"],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"btn","btn-outline-secondary"],[1,"container-fluid","mt-5"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","660px"],[2,"width","68px"],[1,"text-end",2,"width","30px"],[2,"width","50px"],["id","thCost",1,"text-end",2,"width","80px"],[1,"text-end",2,"width","80px"],[1,"red",2,"width","30px"],[1,"text-end",2,"width","90px"],[1,"text-center"],["role","button",1,"btn","btn-outline-primary",3,"click"],["api","Report/ReportDetailCount",3,"jumpToPage","previousPage","nextPage","total","pageData"],[1,"dialog-filter"],["bindLabel","Name","bindValue","ID",3,"ngModelChange","items","ngModel"],["requestUrl","/API/AC/GetCustomerSuggestion",1,"w-100",3,"onInputChange","onSelect"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"d-lg-flex","mt-sm-0"],[1,"me-auto","d-sm-block","mt-8","mb-2"],[1,"h5","text-primary","fw-bold",3,"routerLink","queryParams"],["id","PONumber",1,"ms-4",3,"innerHTML"],[1,"fst-italic","fw-bold",3,"innerHTML"],[1,"d-block"],[1,"text-danger","ms-3"],[1,"fw-bold"],["id","deliveryNote"],[1,"d-inline-block","fst-italic"],[1,"d-inline-block"],[1,"d-lg-block","mt-8","me-2","fw-bold","fst-italic"],[1,"status",3,"innerHTML"],[1,"w-100"],[1,"table","table-sm","table-bordered","table-striped"],[1,"border-start","border-end"],[1,"table","table-sm","table-borderless"],[2,"width","645px"],[1,"lh-base"],[1,"fw-normal"],[1,"text-warning","inlineMarginLeft"],[1,"list-inline","text-warning","inlineMarginLeft"],[1,"d-block","fw-normal","fst-italic",3,"innerHTML"],[1,"fw-normal",2,"width","75px"],[1,"fw-normal","text-end",2,"width","42px"],[1,"fst-italic","small",2,"width","52px"],[1,"fw-normal","text-end",2,"width","80px"],[1,"fw-normal","text-end",2,"width","92px"],[1,"fw-normal","text-end","text-danger",2,"width","30px"],[1,"fw-normal","text-end",2,"width","102px"],[1,"text-end"],[1,"p-0","fw-normal","text-end",2,"width","1%"],[1,"fw-normal","text-end",2,"width","5%"]],template:function(o,a){o&1&&m(0,zn,32,7,"mainpanel-cmp",1),o&2&&p(a.data()?0:-1)},dependencies:[B,W,dt,re,Te,De,Oi,Ei,j,Si,Mi,wi,yi,vi],styles:[".table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{line-height:13px!important}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{line-height:20px!important}"],changeDetection:0})};function qn(t,l){t&1&&(n(0,"small",15),r(1,"*Enter a valid phone number"),i())}function $n(t,l){if(t&1&&m(0,qn,2,0,"small",15),t&2){d();let e=X(9);p(e.errors!=null&&e.errors.pattern?0:-1)}}function Gn(t,l){t&1&&(n(0,"small",15),r(1,"*Enter a valid email address"),i())}function Qn(t,l){if(t&1&&m(0,Gn,2,0,"small",15),t&2){d();let e=X(16);p(e.errors!=null&&e.errors.pattern?0:-1)}}var St=class t{constructor(l,e,o,a,c){this.httpService=l;this.dialogRef=e;this.data=o;this.toastr=a;this.router=c;this.config.title="Subscribe Account Info",this.config.okText="I want to subscribe",this.config.cancelText="Cancel",this.config.customWidth="35vw"}httpService;dialogRef;data;toastr;router;config=new ee;onOk(l){if(l!=="Enter"){if(this.data.form.Qty==0){this.toastr.error("The number of outlets can't be empty",L.Error),this.dialogRef.close();return}this.httpService.post("/API/Subscription/SendSubscription",this.data.form).subscribe(e=>{this.toastr.success(e,L.Success),this.router.navigate(["/menu/Profile/Main/My_Subscription"]),this.dialogRef.close()})}}static \u0275fac=function(e){return new(e||t)(x(P),x(oe),x(we),x(Q),x(ke))};static \u0275cmp=T({type:t,selectors:[["POS-modal-subscribe"]],standalone:!1,decls:26,vars:7,consts:[["validation","ngForm"],["phoneCtrl","ngModel"],["emailCtrl","ngModel"],[3,"onOk","onCancel","onClose","dynamicValidated","config"],[1,"container"],[1,"row"],[1,"col-6"],[1,"form-floating-outline"],["type","text","id","inputPhone","placeholder","Phone","name","phone","pattern","[0-9]{0,15}","required","","matTooltipPosition","above","matTooltip","Your number will be saved to help our customer service quickly identify you in the future",1,"form-control",3,"ngModelChange","ngModel"],["for","inputPhone"],["type","text","id","inputEmail","placeholder","Email","name","email","pattern","[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}$","required","","matTooltipPosition","above","matTooltip","Your monthly recurring invoice will be sent to the email you specified above",1,"form-control",3,"ngModelChange","ngModel"],["for","inputEmail"],[1,"col-12"],["name","note","id","inputNote","placeholder","Note","rows","6",1,"form-control",3,"ngModelChange","ngModel"],["for","inputNote"],[1,"text-danger"]],template:function(e,o){if(e&1){let a=v();n(0,"modal-material",3),C("onOk",function(I){return o.onOk(I)})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),n(1,"content")(2,"div",4)(3,"form",null,0)(5,"div",5)(6,"div",6)(7,"div",7)(8,"input",8,1),w("ngModelChange",function(I){return f(a),M(o.data.form.Phone,I)||(o.data.form.Phone=I),_(I)}),i(),n(10,"label",9),r(11,"Phone*"),i(),m(12,$n,1,1),i()(),n(13,"div",6)(14,"div",7)(15,"input",10,2),w("ngModelChange",function(I){return f(a),M(o.data.form.Email,I)||(o.data.form.Email=I),_(I)}),i(),n(17,"label",11),r(18,"Email*"),i(),m(19,Qn,1,1),i()()(),n(20,"div",5)(21,"div",12)(22,"div",7)(23,"textarea",13),w("ngModelChange",function(I){return f(a),M(o.data.form.Note,I)||(o.data.form.Note=I),_(I)}),i(),n(24,"label",14),r(25,"Note"),i()()()()()()()()}if(e&2){let a=X(9),c=X(16);u("dynamicValidated",(a==null?null:a.valid)||(c==null?null:c.valid))("config",o.config),s(8),S("ngModel",o.data.form.Phone),s(4),p(a.touched&&a.dirty?12:-1),s(3),S("ngModel",o.data.form.Email),s(4),p(c.touched&&c.dirty?19:-1),s(4),S("ngModel",o.data.form.Note)}},dependencies:[Se,Y,B,ve,ct,mt,W,Ve,Z,Me],encapsulation:2})};function Yn(t,l){if(t&1){let e=v();n(0,"div",20),C("click",function(){let a=f(e).$implicit,c=d(2);return _(c.onCycleChange(a.key))}),n(1,"div",21)(2,"span",22),r(3),i(),g(4,"div",23),i()()}if(t&2){let e=l.$implicit,o=d(2);Ie(e.key==o.formData.Cycle?"active":""),s(3),h(e.dicount),s(),u("innerHTML",e.desc,q)}}function Kn(t,l){if(t&1){let e=v();n(0,"tr")(1,"th",24),r(2,"Register"),i(),n(3,"td"),r(4,":"),i(),n(5,"td")(6,"input",25),w("ngModelChange",function(a){f(e);let c=d(2);return M(c.formData.Register,a)||(c.formData.Register=a),_(a)}),C("ngModelChange",function(){f(e);let a=d(2);return _(a.onQtyRegisterChange())}),i(),n(7,"span"),r(8),b(9,"number"),i()()()}if(t&2){let e=d(2);s(6),u("preventNegative",!0),S("ngModel",e.formData.Register),s(2),y("/ ",D(9,3,e.data.Options.Register))}}function Zn(t,l){if(t&1){let e=v();n(0,"div",6)(1,"div",26)(2,"div",8)(3,"h2",9),r(4,"Setup Fee "),i(),n(5,"small",10),r(6,"(One-time payment)"),i()()(),n(7,"div",19)(8,"table",27)(9,"tr")(10,"th"),r(11,"POS"),i(),n(12,"td"),r(13,"\xA0:"),i(),n(14,"td")(15,"label",28)(16,"radio-options",29),w("modelChange",function(a){f(e);let c=d(2);return M(c.data.Options.SetupFee,a)||(c.data.Options.SetupFee=a),_(a)}),C("modelChange",function(){f(e);let a=d(2);return _(a.calculateSetupFee())}),i()()()()()()()}if(t&2){let e=d(2);s(16),S("model",e.data.Options.SetupFee)}}function Jn(t,l){t&1&&r(0," s ")}function Xn(t,l){if(t&1&&(n(0,"tr")(1,"td")(2,"strong"),r(3,"Additional Register"),i(),n(4,"p")(5,"small",37),r(6),i()()(),n(7,"td",32),r(8),i(),n(9,"td",33),g(10,"span",36),r(11),b(12,"number"),i(),n(13,"td",34),r(14),i(),n(15,"td",33),g(16,"span",36),r(17),b(18,"number"),i()()),t&2){let e=d(4);s(6),Oe("",e.formData.Register," Register",e.formData.Register>1?"s":""," "),s(2),h(e.formData.Cycle),s(2),u("innerHTML",e.data.Options.Setup?"IDR ":"$ ",q),s(),h(D(12,8,e.data.Options.Register)),s(3),y(" ",e.formData.Discount>0?e.formData.Discount+"%":"-"," "),s(2),u("innerHTML",e.data.Options.Setup?"IDR ":"$ ",q),s(),h(D(18,10,e.registerFee))}}function eo(t,l){if(t&1&&(n(0,"tr")(1,"td")(2,"strong")(3,"span"),r(4,"POS"),i()(),n(5,"p")(6,"small",37),r(7," - Consultation "),g(8,"br"),r(9," - Training 2x "),g(10,"br"),r(11," - 1 Month Support Group"),i()()(),g(12,"td",32),n(13,"td",33)(14,"span"),r(15,"IDR "),i(),r(16),b(17,"number"),i(),g(18,"td",34),n(19,"td",33)(20,"span"),r(21,"IDR "),i(),r(22),b(23,"number"),i()()),t&2){let e=d(4);s(16),h(D(17,2,e.formData.Setup)),s(6),h(D(23,4,e.formData.Setup))}}function to(t,l){if(t&1&&(n(0,"tr")(1,"td")(2,"strong"),g(3,"span",36),i(),n(4,"p")(5,"small",37),r(6),m(7,Jn,1,0),i()()(),n(8,"td",32),r(9),i(),n(10,"td",33),g(11,"span",36),r(12),b(13,"number"),i(),n(14,"td",34),r(15),i(),n(16,"td",33),g(17,"span",36),r(18),b(19,"number"),i()(),m(20,Xn,19,12,"tr"),m(21,eo,24,6,"tr")),t&2){let e=d(3);s(3),u("innerHTML",e.formData.Type==1?"Starter Subscription":"Standard Subscription",q),s(3),y(" ",e.formData.Qty," Outlet"),s(),p(e.formData.Qty>1?7:-1),s(2),h(e.formData.Cycle),s(2),u("innerHTML",e.data.Options.Setup?"IDR ":"$ ",q),s(),h(D(13,11,e.data.Options.Type)),s(3),y(" ",e.formData.Discount>0?e.formData.Discount+"%":"-"," "),s(2),u("innerHTML",e.data.Options.Setup?"IDR ":"$ ",q),s(),h(D(19,13,e.outletFee)),s(2),p(e.formData.Register>0?20:-1),s(),p(e.data.Options.SetupFee?21:-1)}}function io(t,l){if(t&1&&(n(0,"tr")(1,"th"),r(2,"Sub Total"),i(),n(3,"td",39),r(4,":"),i(),n(5,"td",33)(6,"strong"),g(7,"span",36),r(8),b(9,"number"),i()()()),t&2){let e=d(4);s(7),u("innerHTML",e.data.Options.Setup?"IDR ":"$ ",q),s(),h(D(9,2,e.subTotal))}}function no(t,l){if(t&1&&(n(0,"tr")(1,"th"),r(2,"Tax (11%)"),i(),n(3,"td",39),r(4,":"),i(),n(5,"td",33)(6,"strong"),g(7,"span",36),r(8),b(9,"number"),i()()()),t&2){let e=d(4);s(7),u("innerHTML",e.data.Options.Setup?"IDR ":"$ ",q),s(),h(D(9,2,e.subTotal*.11))}}function oo(t,l){if(t&1&&(n(0,"div",35)(1,"table",38),m(2,io,10,4,"tr"),m(3,no,10,4,"tr"),n(4,"tr")(5,"th"),r(6,"Total"),i(),n(7,"td",39),r(8,":"),i(),n(9,"td",33)(10,"strong"),g(11,"span",36),r(12),b(13,"number"),i()()()()()),t&2){let e=d(3);s(2),p(e.data.vatEnabled?2:-1),s(),p(e.data.vatEnabled?3:-1),s(8),u("innerHTML",e.data.Options.Setup?"IDR ":"$ ",q),s(),y("",D(13,4,e.subTotal+(e.data.vatEnabled?e.subTotal*.11:0))," ")}}function ao(t,l){if(t&1&&(n(0,"div",19)(1,"table",30)(2,"thead",31)(3,"tr")(4,"th"),r(5,"Product"),i(),n(6,"th",32),r(7,"Month"),i(),n(8,"th",33),r(9,"Price"),i(),n(10,"th",34),r(11,"Disc"),i(),n(12,"th",33),r(13,"Total"),i()()(),n(14,"tbody"),m(15,to,22,15),i()(),m(16,oo,14,6,"div",35),i()),t&2){let e=d(2);s(15),p((e.formData==null?null:e.formData.Qty)>0?15:-1),s(),p((e.formData==null?null:e.formData.Qty)>0?16:-1)}}function ro(t,l){t&1&&(n(0,"div",6)(1,"div",26)(2,"h2"),r(3,'Your payment currency is "IDR"'),i()(),n(4,"div",19)(5,"div",40)(6,"div",41)(7,"h2",42)(8,"button",43),r(9," I Want to pay in USD "),i()(),n(10,"div",44)(11,"div",45)(12,"ol",46)(13,"li",47),r(14," Go to setup menu"),i(),n(15,"li",47),r(16," Click tab currency"),i(),n(17,"li",47),r(18," Select the currency you want to make for payment"),i(),n(19,"li",47),r(20," Select Yes at primary currency box and click save"),i(),n(21,"li",48),r(22," Then you can check to my subscribe again "),i()(),n(23,"p",49),r(24,"For more detailed information, please check the following article: "),n(25,"a",50),r(26,"Added Currency Conversion"),i()()()()()()()())}function lo(t,l){if(t&1){let e=v();n(0,"mainpanel-cmp",1)(1,"actions")(2,"button",2),C("click",function(){f(e);let a=d();return _(a.onOpenSubscribeDialog())}),r(3,"Subscribe Now"),i()(),n(4,"content")(5,"div",3)(6,"div",4)(7,"div",5)(8,"div",6)(9,"div",7)(10,"div",8)(11,"h2",9),r(12,"Subscribe "),i(),n(13,"small",10),r(14,"(Recurring)"),i()(),n(15,"a",11),C("click",function(){f(e);let a=d();return _(a.showRegister=!a.showRegister)}),r(16,"More"),i()(),n(17,"div",12)(18,"table",13)(19,"tr")(20,"th"),r(21,"Outlets"),i(),n(22,"td"),r(23,":"),i(),n(24,"td")(25,"input",14,0),w("ngModelChange",function(a){f(e);let c=d();return M(c.formData.Qty,a)||(c.formData.Qty=a),_(a)}),C("ngModelChange",function(){f(e);let a=d();return _(a.onQtyOutletChange())}),i(),n(27,"span"),r(28),b(29,"number"),i()()(),n(30,"tr")(31,"th"),r(32,"Cycle"),i(),n(33,"td"),r(34,":"),i(),n(35,"td"),N(36,Yn,5,4,"div",15,R),i()(),m(38,Kn,10,5,"tr"),i()()(),m(39,Zn,17,1,"div",6),i(),n(40,"div",16)(41,"div",6)(42,"div",17),C("click",function(){f(e);let a=d();return _(a.invoice=!a.invoice)}),n(43,"h2",18),r(44,"Invoice Preview"),i()(),m(45,ao,17,2,"div",19),i(),m(46,ro,27,0,"div",6),i()()()()()}if(t&2){let e=d();u("pageData",e.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0)("hideMenu",!0),s(2),u("disabled",e.formData.Qty==0),s(23),u("preventNegative",!0),S("ngModel",e.formData.Qty),s(3),y("/ ",D(29,12,e.data.Type[0].amount)),s(8),F(e.data.DiscountOptions),s(2),p(e.showRegister?38:-1),s(),p(e.data.Options.Setup?39:-1),s(6),p(e.invoice?45:-1),s(),p(e.data.Options.Setup?46:-1)}}var Mt=class t extends Bi{constructor(e,o,a,c){super(e,o,"Subscription/MySubscriptionLoader",a);this.matDialog=c}matDialog;showRegister=!1;invoice=!0;outletFee=0;registerFee=0;subTotal=0;postBindForm(e){this.calculate(),this.data.DiscountOptions=e.DiscountOptions}onOpenSubscribeDialog(){this.matDialog.open(St,{data:{form:this.formData}})}onCycleChange(e){switch(this.formData.Cycle=e,e){case 3:this.formData.Discount=0;break;case 6:this.formData.Discount=10;break;case 12:this.formData.Discount=15;break}this.calculateregisterFee(),this.calculate()}onQtyOutletChange(){this.calculate()}calculate(){if(this.formData.Cycle>1){let e=this.data.Options.Type*this.formData.Qty*this.formData.Cycle;this.data.Discount=e*this.formData.Discount/100,this.outletFee=this.data.Options.Type*this.formData.Qty*this.formData.Cycle-this.data.Discount,this.subTotal=this.outletFee+this.registerFee}else this.outletFee=this.data.Options.Type*this.formData.Qty,this.subTotal=this.outletFee+this.registerFee,this.data.Discount=0;this.data.Options.SetupFee&&(this.subTotal=this.subTotal+this.formData.Setup)}calculateSetupFee(){this.data.Options.SetupFee?(this.formData.SetupFee=!0,this.subTotal=this.subTotal+this.formData.Setup):(this.formData.SetupFee=!1,this.subTotal=this.subTotal-this.formData.Setup)}onQtyRegisterChange(){this.calculateregisterFee(),this.calculate()}calculateregisterFee(){let e=this.data.Options.Register*this.formData.Cycle*this.formData.Register;if(this.formData.Discount>0){let o=e*this.formData.Discount/100;this.registerFee=e-o}else this.registerFee=e}static \u0275fac=function(o){return new(o||t)(x(ge),x(P),x(st),x(ae))};static \u0275cmp=T({type:t,selectors:[["POS-choose-plan"]],standalone:!1,features:[ue],decls:1,vars:1,consts:[["outletQty","ngModel"],[3,"pageData","hideSearchBox","hideSearchDropdown","hideMenu"],[1,"btn","btn-success",3,"click","disabled"],[1,"container-fluid","bg-light-gray","pb-10"],[1,"row","pt-5"],[1,"col-md-5","m-0","pe-0","pt-0","pb-0"],[1,"card"],[1,"card-header","d-flex","justify-content-between"],[1,"me-auto","d-sm-block","mt-3"],[1,"d-inline"],[1,"text-body-secondary","h6"],["role","button",1,"btn","btn-outline-secondary",3,"click"],[1,"card-body",2,"padding-right","0.625rem"],[1,"table-sm"],["type","text","autoNum","",1,"form-control",2,"width","65px","display","inline-block",3,"ngModelChange","preventNegative","ngModel"],[1,"card","border-dark","align-text-top","d-inline-block","me-1","mb-0",3,"class"],[1,"col-md-7"],[1,"card-header",3,"click"],[1,"title"],[1,"card-body"],[1,"card","border-dark","align-text-top","d-inline-block","me-1","mb-0",3,"click"],[1,"card-body","text-center",2,"cursor","pointer","width","80px","padding","10px 5px"],[1,"fw-bold"],[1,"fw-normal","border-top","border-dark",3,"innerHTML"],["matTooltipPosition","above","matTooltip","Additional Register"],["type","text","autoNum","","maxlength","3",1,"form-control",2,"width","65px","display","inline-block",3,"ngModelChange","preventNegative","ngModel"],[1,"card-header"],[1,"form-horizontal"],[1,"form-check","form-check-inline",2,"cursor","pointer","padding-top","8px"],["name","POS",3,"modelChange","model"],[1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"text-end",2,"min-width","65px"],[1,"text-end"],[1,"text-end",2,"min-width","85px"],[1,"d-flex","justify-content-end"],[3,"innerHTML"],[2,"font-size","90% !important"],[1,"table-sm","table-borderless","me-3"],[1,"sep"],["id","accordionExample",1,"accordion"],[1,"accordion-item"],["id","panelsStayOpen-headingTwo",1,"accordion-header"],["type","button","data-bs-toggle","collapse","data-bs-target","#panelsStayOpen-collapseTwo","aria-expanded","false","aria-controls","panelsStayOpen-collapseTwo",1,"accordion-button","collapsed"],["id","panelsStayOpen-collapseTwo","aria-labelledby","panelsStayOpen-headingTwo",1,"accordion-collapse","collapse"],[1,"accordion-body","pt-2"],[1,"list-group","list-group-numbered","mt-5","mb-3"],[1,"list-group-item","mb-3","border-top-0","border-start-0","border-end-0","border-bottom-1"],[1,"list-group-item","rounded-0","border-top-0","border-start-0","border-end-0","border-bottom-1"],[1,"ms-2","mt-6"],["href","https://support.dealpos.com/en/articles/8956190-how-to-create-new-currency","target","_blank"]],template:function(o,a){o&1&&m(0,lo,47,14,"mainpanel-cmp",1),o&2&&p(a.data&&a.formData?0:-1)},dependencies:[Y,B,gi,W,re,xi,bt,Me,fe],styles:[".active[_ngcontent-%COMP%]{background-color:#fffed9}"]})};function so(t,l){t&1&&(n(0,"div",10)(1,"h5",12),g(2,"i",13),r(3," You are not listening to any outlet. Please select one. "),i()())}function co(t,l){if(t&1&&(n(0,"div",11)(1,"h5",12),g(2,"i",13),r(3),i()()),t&2){let e,o=d(2);s(3),y(" You are currently listening to ",(e=o.selectedOutlet())==null?null:e.Name,". ")}}function mo(t,l){if(t&1&&(n(0,"div",2)(1,"div",9),m(2,so,4,0,"div",10),m(3,co,4,1,"div",11),i()()),t&2){let e=d();s(2),p(e.selectedOutlet()?-1:2),s(),p(e.selectedOutlet()?3:-1)}}var He=class t{constructor(l,e,o,a){this.signalrClientService=l;this.httpService=e;this.dialogRef=o;this.toastr=a;this.modalConfig.set(new ee),this.modalConfig().title="Subscribe Notification",this.modalConfig().customWidth="475px",this.initModalLoader(),this.touchOnSelectOption.set(!1)}signalrClientService;httpService;dialogRef;toastr;modalConfig=E(new ee);entities=E([]);outletID=G("");selectedOutlet=E(null);initialOutlet=E(null);touchOnSelectOption=E(!1);previousSelectedOutlet=E(null);initModalLoader(){this.httpService.post("/api/NotificationLoader/PushNotificationList").pipe(de(l=>$.IsNotEmpty(l))).subscribe(l=>{this.entities.set(l.Options.Entities),$.IsNotEmpty(l.SubscribeOn)&&this.outletID.set(l.SubscribeOn),this.initSelectedOutlet()})}initSelectedOutlet(){let{ID:l,Name:e}=this.findOutletByID(this.outletID())||{ID:"",Name:""},o={ID:l,Name:e};this.selectedOutlet.set(o),this.previousSelectedOutlet.set(this.selectedOutlet()),this.initialOutlet.set(this.selectedOutlet()),this.checkValidateButtonOk()}checkValidateButtonOk(){this.modalConfig().validated=!0,$.IsEmpty(this.selectedOutlet())&&(this.modalConfig().validated=!1)}onSelectOutlet(l){this.previousSelectedOutlet.set(this.selectedOutlet()),this.selectedOutlet.set(l),this.modalConfig().validated=!0}onOpenSelectOutlet(){this.touchOnSelectOption.set(!0)}onCancel(){this.dialogRef.close()}onOk(){let l=this.initialOutlet()?this.initialOutlet().ID:null;this.outletID()!==l?$.IsNotEmpty(this.outletID())?this.subscribeToPushNotification(`Listening to ${this.selectedOutlet()?.Name}`,"Push Notification Enabled"):this.unsubscribeToPushNotification():this.dialogRef.close()}unsubscribeToPushNotification(){this.subscribeToPushNotification(`You are no longer listening to ${this.previousSelectedOutlet()?.Name}`,"Push Notification Disabled"),this.setLocalStorage(!0)}subscribeToPushNotification(l,e){let o=localStorage.getItem("PushNotificationID")||"",a={EntityID:this.outletID()};this.httpService.post("/api/PushNotification/Subscribe",a).subscribe(c=>{this.signalrClientService.SubscribeGroup(this.outletID()?this.outletID():"",o),this.setLocalStorage(),this.toastr.success(l,e),this.dialogRef.close()})}setLocalStorage(l=!1){l?localStorage.removeItem("NotificationOutletID"):localStorage.setItem("NotificationOutletID",this.outletID())}findOutletByID(l){return this.entities().find(o=>o.ID==l)}static \u0275fac=function(e){return new(e||t)(x(ui),x(P),x(oe),x(Q))};static \u0275cmp=T({type:t,selectors:[["POS-modal-subscribe-notification"]],inputs:{outletID:[1,"outletID"]},outputs:{outletID:"outletIDChange"},decls:11,vars:4,consts:[[3,"onOk","onCancel","onClose","config"],[1,"container"],[1,"row"],[1,"row","mt-1"],[1,"col-md-2"],[1,"pt-10"],[1,"col-md-10"],[1,"form-floating-outline","selected"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose an Options","id","outlet",1,"productform",3,"open","clear","ngModelChange","change","items","ngModel"],[1,"col-12"],[1,"alert","alert-danger"],[1,"alert","alert-success"],[1,"d-flex"],["aria-hidden","true",1,"fa-solid","fa-circle-info","me-3","mt-1"]],template:function(e,o){e&1&&(n(0,"modal-material",0),C("onOk",function(){return o.onOk()})("onCancel",function(){return o.onCancel()})("onClose",function(){return o.onCancel()}),n(1,"content")(2,"div",1),m(3,mo,4,2,"div",2),n(4,"div",3)(5,"div",4)(6,"h5",5),r(7,"Outlet"),i()(),n(8,"div",6)(9,"div",7)(10,"ng-select",8),C("open",function(){return o.onOpenSelectOutlet()})("clear",function(){return o.onOpenSelectOutlet()}),w("ngModelChange",function(c){return M(o.outletID,c)||(o.outletID=c),c}),C("change",function(c){return o.onSelectOutlet(c)}),i()()()()()()()),e&2&&(u("config",o.modalConfig()),s(3),p(o.touchOnSelectOption()?-1:3),s(7),u("items",o.entities()),S("ngModel",o.outletID))},dependencies:[Z,Ct,De,ne,B,W],encapsulation:2})};var uo=t=>({ID:t});function fo(t,l){if(t&1&&(n(0,"a",15),r(1),i()),t&2){let e=d().$implicit;u("routerLink","/menu"+e.URL)("queryParams",A(3,uo,e.ObjectID)),s(),y(" ",e.Body," ")}}function _o(t,l){if(t&1&&(n(0,"a",16),r(1),i()),t&2){let e=d().$implicit;u("href",ii(e.URL),Ne),s(),y(" ",e.Body," ")}}function go(t,l){if(t&1&&(n(0,"tr",13)(1,"td"),r(2),i(),n(3,"td")(4,"b"),r(5),i(),g(6,"br"),n(7,"span"),m(8,fo,2,5,"a",15),m(9,_o,2,3,"a",16),i()(),n(10,"td"),r(11),b(12,"date"),i(),n(13,"td"),r(14),i()()),t&2){let e=l.$implicit;s(2),h(e.OutletName),s(3),h(e.Header),s(3),p(e.ObjectIDType>0?8:-1),s(),p(e.ObjectIDType==0?9:-1),s(2),h(O(12,6,e.Created,"dd MMM yyyy HH:mm")),s(3),h(e.TypeString)}}function Co(t,l){if(t&1){let e=v();n(0,"mat-paginator",17),C("page",function(a){f(e);let c=d(2);return _(c.onPaginationChange(a))}),i()}if(t&2){let e=d(2);u("length",e.pagination.listTotal())("pageSize",e.pagination.pageSize())("pageIndex",e.pageData().Filter.PageNumber==0?0:e.pageData().Filter.PageNumber-1)}}function bo(t,l){if(t&1){let e=v();n(0,"mainpanel-cmp",1),C("onSubmit",function(){f(e);let a=d();return _(a.searchFromPageOne())}),n(1,"actions")(2,"a",2),C("click",function(){f(e);let a=d();return _(a.openSubscribeModal())}),r(3," Subscribe "),i()(),n(4,"filters")(5,"div",3)(6,"div",4)(7,"div")(8,"h6"),r(9,"Outlet"),i(),n(10,"ng-select",5),w("ngModelChange",function(a){f(e);let c=d();return M(c.pageData().Filter.ListIDs,a)||(c.pageData().Filter.ListIDs=a),_(a)}),i()(),n(11,"div")(12,"h6"),r(13,"From"),i(),n(14,"datepicker",6),w("dateChange",function(a){f(e);let c=d();return M(c.pageData().Filter.From,a)||(c.pageData().Filter.From=a),_(a)}),i()(),n(15,"div")(16,"h6"),r(17,"To"),i(),n(18,"datepicker",7),w("dateChange",function(a){f(e);let c=d();return M(c.pageData().Filter.To,a)||(c.pageData().Filter.To=a),_(a)}),i()()()()(),n(19,"content")(20,"div",8)(21,"table",9)(22,"thead",10)(23,"tr",11)(24,"th",12),r(25,"Outlet"),i(),n(26,"th"),r(27,"Message"),i(),n(28,"th"),r(29,"Created"),i(),n(30,"th"),r(31,"Type"),i()()(),n(32,"tbody"),N(33,go,15,9,"tr",13,R),i()(),n(35,"div"),m(36,Co,1,3,"mat-paginator",14),i()()()()}if(t&2){let e=d();u("pageData",e.menuData())("hideSearchBox",!0),s(10),u("items",e.pageData().Options.Entities),S("ngModel",e.pageData().Filter.ListIDs),u("multiple",!0),s(4),S("date",e.pageData().Filter.From),s(4),S("date",e.pageData().Filter.To),s(15),F(e.data().Data),s(3),p(e.pagination.listTotal()>0?36:-1)}}var je=class t extends Re{constructor(e,o,a){super(e,o,"v3/notification/WithTotalCount","NotificationLoader/PushNotificationList");this.dialog=a}dialog;preInitList(){let e=new Date;e.setHours(0,0,0,0);let o=new Date;o.setHours(23,59,59,59),this.pageData().Filter.From=e,this.pageData().Filter.To=o}openSubscribeModal(){this.dialog.open(He)}static \u0275fac=function(o){return new(o||t)(x(ge),x(P),x(ae))};static \u0275cmp=T({type:t,selectors:[["POS-notification"]],features:[ue],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox"],[3,"onSubmit","pageData","hideSearchBox"],["role","button",1,"btn","btn-success",3,"click"],[1,"d-flex"],["container",""],["bindLabel","Name","bindValue","ID",3,"ngModelChange","items","ngModel","multiple"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid","mt-5"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","200px"],[1,"border-bottom"],[3,"length","pageSize","pageIndex"],["target","_blank",3,"routerLink","queryParams"],["target","_blank",3,"href"],[3,"page","length","pageSize","pageIndex"]],template:function(o,a){o&1&&m(0,bo,37,8,"mainpanel-cmp",0),o&2&&p(a.data()?0:-1)},dependencies:[Be,re,Ct,De,ne,B,W,_e,pt,Te,dt,Ae,gt,j],encapsulation:2})};var le=class t{_loadSubscriptionData=new Xe(null);loadSubscriptionData$=this._loadSubscriptionData.asObservable();subscriptionData$;lastUnpaidInvoiceDate$;constructor(l){this.subscriptionData$=this.loadSubscriptionData$.pipe(J(()=>l.get("/API/Subscription/GetInitialData").pipe(tt(e=>{let o=0;e.Subscription?.SubscriptionState=="Overdue"?o=1:e.Subscription?.SubscriptionState=="Sell Only"?o=2:e.Subscription?.SubscriptionState=="Suspended"&&(o=3),$.IsNotEmpty(e.Subscription)&&(e.Subscription.SubscriptionStatus=o)}))),et(1)),this.lastUnpaidInvoiceDate$=this.subscriptionData$.pipe(se(e=>e.invoices.filter(o=>(o.status=="sent"||o.status=="overdue")&&o.currency_code=="IDR")),se(e=>e.length>0?e[0].date:"-"))}loadSubscriptionData(){this._loadSubscriptionData.next()}static \u0275fac=function(e){return new(e||t)(ie(P))};static \u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ue=class t{constructor(l,e){l.subscriptionData$.pipe(de(a=>a.code!=200),J(()=>$t(e.navigate(["/menu/Profile/Main/My_Subscription/Choose_your_plan"])))).subscribe()}static \u0275fac=function(e){return new(e||t)(ie(le),ie(ke))};static \u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})};var Pe=class t{outlets$;from$;to$;_isLoadOutlet=new Xe(!1);isLoadOutlet$=this._isLoadOutlet.asObservable().pipe(de(l=>l));showLoadButton$;constructor(l,e){let o=this.isLoadOutlet$.pipe(J(()=>l.post("/API/Subscription/GetUsage").pipe()),et(1));this.outlets$=o.pipe(se(a=>a.Outlets)),this.from$=o.pipe(se(a=>a.From)),this.to$=o.pipe(se(a=>a.To)),e.subscriptionData$.pipe(de(a=>a.Subscription?.OutletCount<=Qe.outletMaximumSubscription),tt(()=>this.loadOutlet())).subscribe(),this.showLoadButton$=Gt(e.subscriptionData$.pipe(se(a=>a.Subscription?.OutletCount>Qe.outletMaximumSubscription),Qt(1)),o.pipe(se(()=>!1)))}loadOutlet(){this._isLoadOutlet.next(!0)}static \u0275fac=function(e){return new(e||t)(ie(P),ie(le))};static \u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})};var Dt=class t{apiUrl="https://app.midtrans.com/snap/snap.js";injected=!1;initScript(){return new Je(l=>{let e;this.injected||(e=document.createElement("script"),e.src=this.apiUrl,e.async=!0,e.setAttribute("data-client-key",Qe.midtransClientKey),this.injected=!0,document.body.appendChild(e))})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})};var yo=t=>({"text-decoration":t});function vo(t,l){if(t&1&&(n(0,"span",12),r(1),b(2,"number"),i()),t&2){let e=d().$implicit;s(),y(" "," - "+D(2,1,e.Discount)+"%"," ")}}function So(t,l){if(t&1&&(g(0,"i",15),b(1,"date")),t&2){let e=d().$implicit;u("matTooltip",ni("Next Recurring : ",O(1,2,e.NextRecurring,"dd MMM yyyy")))}}function Mo(t,l){if(t&1&&(n(0,"tr")(1,"td")(2,"div",8),r(3),i()(),n(4,"td")(5,"div",9)(6,"div",10)(7,"span",11),r(8),b(9,"number"),i(),m(10,vo,3,3,"span",12),i(),n(11,"span"),r(12),b(13,"number"),b(14,"number"),i(),n(15,"span")(16,"strong"),r(17),b(18,"number"),i()()()(),n(19,"td")(20,"div",13)(21,"small"),r(22),b(23,"date"),i(),ot(24,So,2,5,"i",14),i()()()),t&2){let e=l.$implicit,o=d();s(3),y(" ",e.TypeLabel," "),s(4),Fe("text-danger",e.Discount>0),u("ngStyle",A(25,yo,e.Discount>0?"line-through":"none")),s(),Oe(" ",o.currency(),"\xA0",D(9,14,e.Price)," "),s(2),p(e.Discount>0?10:-1),s(2),Ge(" ",o.currency(),"\xA0",D(13,16,e.Price-e.Price*e.Discount/100)," x ",D(14,18,e.RecurringFrequency)," months "),s(5),Oe(" ",o.currency(),"\xA0",D(18,20,e.NetRecurringAmount)," "),s(5),y(" ",O(23,22,e.RecurringStartOn,"dd MMM yyyy")," "),s(2),u("ngIf",e.NextRecurring)}}var ze=class t{addons=V([]);currency=V("IDR");static \u0275fac=function(e){return new(e||t)};static \u0275cmp=T({type:t,selectors:[["POS-addons-card"]],inputs:{addons:[1,"addons"],currency:[1,"currency"]},decls:19,vars:0,consts:[[1,"card"],[1,"card-header","d-flex","align-items-center","justify-content-between"],[1,"card-body"],[1,"table-responsive"],[1,"table","table-bordered"],[1,"thead-light"],[1,"text-end"],[2,"width","120px"],[1,"d-flex","flex-column"],[1,"d-flex","flex-column","text-end"],[1,"d-flex","text-end","justify-content-end"],[3,"ngStyle"],[1,"ms-2"],[1,"d-flex","align-items-center","gap-1"],["class","fas fa-info-circle text-muted","style","font-size: 12px; cursor: help","matTooltipPosition","above","matTooltipClass","custom-tooltip",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above","matTooltipClass","custom-tooltip",1,"fas","fa-info-circle","text-muted",2,"font-size","12px","cursor","help",3,"matTooltip"]],template:function(e,o){e&1&&(n(0,"div",0)(1,"div",1)(2,"div")(3,"h3"),r(4,"AddOns"),i()()(),n(5,"div",2)(6,"div",3)(7,"table",4)(8,"thead",5)(9,"tr")(10,"th"),r(11,"App"),i(),n(12,"th",6),r(13,"Price"),i(),n(14,"th",7),r(15,"Since"),i()()(),n(16,"tbody"),N(17,Mo,25,27,"tr",null,at),i()()()()()),e&2&&(s(17),F(o.addons()))},dependencies:[_e,di,ci,_t,Me,fe,j],styles:[".custom-tooltip[_ngcontent-%COMP%]{background-color:#333;color:#fff;font-size:12px;padding:6px 10px;border-radius:4px;white-space:nowrap}"],changeDetection:0})};var Tt=class t{constructor(l,e,o){this.http=l;this.ngZone=e;this.toastr=o}http;ngZone;toastr;payInvoice(l,e,o,a){let c={InvNumber:l.invoice_number,GrossAmount:l.balance,WHTPercentage:e,VATEnabled:o,InvoiceID:l.invoice_id,CustomerID:l.customer_id};return this.http.post("/API/Subscription/GetSNAPToken",c).pipe(J(I=>this.openSNAPDialog(I,a)))}payAllInvoices(l,e,o,a){let c=0,I,K,be,me;l.forEach(z=>{(z.status=="sent"||z.status=="overdue")&&(c+=z.total,K==null?(I=z.invoice_number,K=z.invoice_number.concat("$"+z.total+";"),be=z.invoice_id,me=z.invoice_id.concat("$"+z.total+";")):(I=I.concat("_"+z.invoice_number),K=K.concat(z.invoice_number.concat("$"+z.total+";")),be=be.concat(";"+z.invoice_id),me=me.concat(z.invoice_id.concat("$"+z.total)+";")))});let $e={CustomerID:l[0].customer_id,InvNumber:K,OrderID:I,GrossAmount:c,WHTPercentage:e,VATEnabled:o,InvoiceID:me};return this.http.post("/API/Subscription/GetSNAPTokenMultipleInvoice",$e).pipe(J(z=>this.openSNAPDialog(z,a)))}openSNAPDialog(l,e){let o=e;return new Je(a=>{snap.pay(l.token,{onSuccess:()=>{this.ngZone.run(()=>{this.showToaster(o),a.next(),a.complete()})}})})}showToaster(l){let e="Payment Successful!";l>1&&(e+=`
|
|
3
3
|
Please Log out and re-login if your account is currently suspended!`),this.toastr.success(e,L.Success)}static \u0275fac=function(e){return new(e||t)(ie(P),ie(Zt),ie(Q))};static \u0275prov=pe({token:t,factory:t.\u0275fac,providedIn:"root"})};var To=t=>({"background-color":t}),Eo=(t,l)=>({"justify-content-between":t,"justify-content-center":l}),Po=(t,l,e,o,a)=>({"bg-success":t,"bg-warning text-dark":l,"bg-danger":e,"bg-secondary":o,"text-white":a});function Io(t,l){if(t&1){let e=v();n(0,"button",10),C("click",function(){f(e);let a=d();return _(a.payAllInvoices())}),r(1),b(2,"number"),i()}if(t&2){let e=d();s(),y(" PAY ALL - ",e.currency()+" "+D(2,1,e.totalPayable())," ")}}function Oo(t,l){if(t&1&&(n(0,"a",16),r(1),i()),t&2){let e=d().$implicit;u("href",e.invoice_url,Ne),s(),h(e.invoice_number)}}function No(t,l){if(t&1&&(n(0,"span"),r(1),i()),t&2){let e=d().$implicit;s(),h(e.invoice_number)}}function Fo(t,l){if(t&1&&(n(0,"div",17)(1,"small"),r(2),i()()),t&2){let e=d().$implicit;u("ngClass",ri(2,Po,e.status==="paid",e.status==="void",e.status==="overdue",e.status!=="paid"&&e.status!=="void"&&e.status!=="sent"&&e.status!=="overdue",e.status==="draft")),s(2),h(e.status)}}function ko(t,l){if(t&1){let e=v();n(0,"button",22),C("click",function(){f(e);let a=d().$implicit,c=d();return _(c.payInvoice(a))}),r(1," Pay "),i()}}function Vo(t,l){if(t&1&&(n(0,"div",11)(1,"div",12)(2,"div",13)(3,"div",14)(4,"h3",15),m(5,Oo,2,2,"a",16)(6,No,2,1,"span"),i(),m(7,Fo,3,8,"div",17),i(),n(8,"small",5),r(9),b(10,"date"),i(),n(11,"small",18),r(12),b(13,"date"),i()(),n(14,"div",19)(15,"span",20),r(16),b(17,"number"),i(),m(18,ko,2,0,"button",21),i()()()),t&2){let e=l.$implicit,o=d();ei(A(18,To,e.status=="overdue"?"#f2dede":"")),s(5),p(e.invoice_url?5:6),s(2),p(e.status!=="sent"?7:-1),s(2),y(" Invoice Date: ",O(10,10,e.date,"dd MMM yyyy")," "),s(3),y(" Due Date: ",O(13,13,e.date,"dd MMM yyyy")," "),s(2),u("ngClass",rt(20,Eo,e.status==="sent"||e.status==="overdue",e.status!=="sent"&&e.status!=="overdue")),s(2),Oe(" ",o.currency()," ",D(17,16,e.total)," "),s(2),p(e.status==="sent"||e.status==="overdue"?18:-1)}}var Et=class t{constructor(l,e,o){this.payment=l;this.subscription=e;this.router=o}payment;subscription;router;invoices=V([]);WHTPercentage=V(0);VATEnabled=V(!1);subscriptionStatus=V(0);currency=V("");payableInvoices=lt(()=>this.invoices().filter(l=>l.status=="sent"||l.status=="overdue"&&l.currency_code=="IDR"));showPayAll=lt(()=>this.payableInvoices().length>1);totalPayable=lt(()=>this.payableInvoices().reduce((l,e)=>l+e.total,0));payAllInvoices(){this.payment.payAllInvoices(this.invoices(),this.WHTPercentage(),this.VATEnabled(),this.subscriptionStatus()).subscribe(()=>this.subscription.loadSubscriptionData())}payInvoice(l){this.currency()=="USD"?window.open(l.invoice_url,"_blank"):this.payment.payInvoice(l,this.WHTPercentage(),this.VATEnabled(),this.subscriptionStatus()).subscribe(()=>this.subscription.loadSubscriptionData())}static \u0275fac=function(e){return new(e||t)(x(Tt),x(le),x(ke))};static \u0275cmp=T({type:t,selectors:[["POS-invoices-card"]],inputs:{invoices:[1,"invoices"],WHTPercentage:[1,"WHTPercentage"],VATEnabled:[1,"VATEnabled"],subscriptionStatus:[1,"subscriptionStatus"],currency:[1,"currency"]},standalone:!1,decls:14,vars:3,consts:[[1,"card"],[1,"card-header","d-flex","align-items-center","justify-content-between",2,"padding-left","15px"],[1,"d-flex","align-items-center"],[1,"fa-solid","fa-file-invoice","me-4",2,"font-size","30px"],[1,"d-inline"],[1,"sub-text","d-block"],[1,"btn","btn-sm","btn-outline-primary","btn-pay"],[1,"card-body","px-0"],[1,"row","gx-0"],[1,"invoice-list","col-12",2,"padding","0px 15px",3,"style"],[1,"btn","btn-sm","btn-outline-primary","btn-pay",3,"click"],[1,"invoice-list","col-12",2,"padding","0px 15px"],[1,"py-10","border-top","d-flex","justify-content-between"],[1,"invoice-info"],[1,"d-flex","align-items-center","gap-4"],[1,"fw-normal"],["target","_blank",3,"href"],[1,"p-2","rounded","bg-danger","text-light","text-small",2,"font-size","11px","text-transform","uppercase",3,"ngClass"],[1,"sub-text"],[1,"invoice-payment","text-end","d-flex","flex-column",3,"ngClass"],[1,"d-block","invoice-total"],[1,"btn","btn-sm","btn-primary","btn-pay","text-uppercase","py-2"],[1,"btn","btn-sm","btn-primary","btn-pay","text-uppercase","py-2",3,"click"]],template:function(e,o){e&1&&(n(0,"div",0)(1,"div",1)(2,"div",2),g(3,"i",3),n(4,"div")(5,"h3",4),r(6,"Invoices"),i(),n(7,"small",5),r(8,"Invoice are created for each subscription cycle."),i()()(),m(9,Io,3,3,"button",6),i(),n(10,"div",7)(11,"div",8),N(12,Vo,19,23,"div",9,R),i()()()),e&2&&(s(9),p(o.showPayAll()&&o.currency()!="USD"?9:-1),s(),Fe("pb-0",o.invoices.length==1),s(2),F(o.invoices()))},dependencies:[ye,fe,j],styles:[".sub-text[_ngcontent-%COMP%]{color:#00000080;font-size:11px}.btn-pay[_ngcontent-%COMP%]{min-width:140px}.invoice-total[_ngcontent-%COMP%]{font-size:14.5px}"],changeDetection:0})};var Pt=class t{subscribedSince=V();outlets=V();frequency=V();total=V();static \u0275fac=function(e){return new(e||t)};static \u0275cmp=T({type:t,selectors:[["POS-billing-info-card"]],inputs:{subscribedSince:[1,"subscribedSince"],outlets:[1,"outlets"],frequency:[1,"frequency"],total:[1,"total"]},standalone:!1,decls:28,vars:9,consts:[[1,"card"],[1,"card-header","d-flex","align-items-center","justify-content-between"],[1,"sub-text"],[1,"card-body"],[1,"bill-info","d-flex","justify-content-evenly","align-items-center","text-sm-start","text-center","flex-sm-row","flex-column"],[1,"fw-normal"],[1,"fw-normal","sub-title"],[1,"line","d-sm-block","d-none"]],template:function(e,o){e&1&&(n(0,"div",0)(1,"div",1)(2,"div")(3,"h3"),r(4,"Billing Information"),i(),n(5,"small",2),r(6),b(7,"date"),i()()(),n(8,"div",3)(9,"div",4)(10,"div")(11,"h3",5),r(12),i(),n(13,"h5",6),r(14,"Outlet"),i()(),g(15,"div",7),n(16,"div")(17,"h3",5),r(18),i(),n(19,"h5",6),r(20,"Frequency"),i()(),g(21,"div",7),n(22,"div")(23,"h3",5),r(24),b(25,"number"),i(),n(26,"h5",6),r(27,"Amount"),i()()()()()),e&2&&(s(6),y("Subscribe Since: ",O(7,4,o.subscribedSince(),"dd MMM yyyy")),s(6),h(o.outlets()),s(6),y("",o.frequency()," Month"),s(6),h(D(25,7,o.total())))},dependencies:[fe,j],styles:[".sub-text[_ngcontent-%COMP%]{color:#00000080;font-size:11px}.btn-upgrade[_ngcontent-%COMP%]{width:140px}.bill-info[_ngcontent-%COMP%]{border:1px solid #E6E6E6;height:120px}@media(max-width:576px){.bill-info[_ngcontent-%COMP%]{height:180px}}.line[_ngcontent-%COMP%]{width:1px;height:70px;background:#e6e6e6}.sub-title[_ngcontent-%COMP%]{color:#00000080;font-size:11px}"],changeDetection:0})};var It=class t{constructor(l,e,o,a){this.httpService=l;this.dialogRef=e;this.data=o;this.toastr=a;this.config.title="Stop Subscription",this.config.customWidth="450px"}httpService;dialogRef;data;toastr;message="";config=new ee;onOk(){let l={Message:this.message};this.message.trim().length==0?(this.toastr.error("The reason cannot be empty",L.Error),this.dialogRef.close()):this.httpService.post("/API/Subscription/Close",l).subscribe(e=>{this.toastr.success(e.Message,L.Error),this.dialogRef.close()})}static \u0275fac=function(e){return new(e||t)(x(P),x(oe),x(we),x(Q))};static \u0275cmp=T({type:t,selectors:[["POS-modal-stop-subscription"]],standalone:!1,decls:6,vars:2,consts:[[3,"onOk","onCancel","onClose","config"],[1,"form-floating-outline"],["name","message",2,"width","100%","height","200px",3,"ngModelChange","ngModel"],["for","message"]],template:function(e,o){e&1&&(n(0,"modal-material",0),C("onOk",function(){return o.onOk()})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),n(1,"content")(2,"div",1)(3,"textarea",2),w("ngModelChange",function(c){return M(o.message,c)||(o.message=c),c}),i(),n(4,"label",3),r(5,"Reason"),i()()()()),e&2&&(u("config",o.config),s(3),S("ngModel",o.message))},dependencies:[Y,B,W,Z],encapsulation:2})};var qt=t=>({"is-invalid":t});function Bo(t,l){t&1&&(n(0,"div",7),r(1,"Email is required."),i())}function Lo(t,l){t&1&&(n(0,"div",7),r(1,"Phone is required."),i())}function Wo(t,l){t&1&&g(0,"div",7)}var Ot=class t{constructor(l){this.dialogRef=l;this.config.update(e=>he(xe({},e),{title:"Update Billing Contact",customWidth:"500px"})),this.email.set(this.data.email),this.phone.set(this.data.phone),this.mobilePhone.set(this.data.mobilePhone)}dialogRef;email=E("");phone=E("");mobilePhone=E("");form;fb=H(Ci);data=H(we);config=E(new ee);generateForm(){this.form=this.fb.group({email:this.fb.control(null,[Wt.required]),phone:this.fb.control(null,[Wt.required]),mobilePhone:this.fb.control(null,[])})}ngOnInit(){this.generateForm(),this.form.patchValue({email:this.data.email,phone:this.data.phone,mobilePhone:this.data.mobilePhone})}ok(){let{email:l,phone:e,mobilePhone:o}=this.form.value;this.dialogRef.close({email:l,phone:e,mobilePhone:o})}close(){this.dialogRef.close()}static \u0275fac=function(e){return new(e||t)(x(oe))};static \u0275cmp=T({type:t,selectors:[["POS-dialog-update-billing"]],standalone:!1,decls:25,vars:15,consts:[[3,"onOk","onCancel","onClose","config","dynamicValidated"],[3,"formGroup"],[1,"mb-3","row"],["for","email",1,"col-4","fs-4"],[1,"text-danger","ms-2"],[1,"col"],["type","text","formControlName","email","id","email",1,"form-control","rounded",3,"ngClass"],["id","",1,"invalid-feedback"],["for","phone",1,"col-4","fs-4"],["formControlName","phone","type","text","id","phone",1,"form-control","rounded",3,"ngClass"],["for","mobilePhone",1,"col-4","fs-4"],["formControlName","mobilePhone","type","text","id","mobilePhone",1,"form-control","rounded",3,"ngClass"]],template:function(e,o){e&1&&(n(0,"modal-material",0),C("onOk",function(){return o.ok()})("onCancel",function(){return o.close()})("onClose",function(){return o.close()}),n(1,"content")(2,"form",1)(3,"div",2)(4,"label",3),r(5,"Email "),n(6,"sup",4),r(7,"*"),i()(),n(8,"div",5),g(9,"input",6),m(10,Bo,2,0,"div",7),i()(),n(11,"div",2)(12,"label",8),r(13,"Phone"),n(14,"sup",4),r(15,"*"),i()(),n(16,"div",5),g(17,"input",9),m(18,Lo,2,0,"div",7),i()(),n(19,"div",2)(20,"label",10),r(21,"Mobile Phone"),i(),n(22,"div",5),g(23,"input",11),m(24,Wo,1,0,"div",7),i()()()()()),e&2&&(u("config",o.config())("dynamicValidated",o.form.valid),s(2),u("formGroup",o.form),s(7),u("ngClass",A(9,qt,o.form.controls.email.invalid&&(o.form.controls.email.dirty||o.form.controls.email.touched))),s(),p(o.form.controls.email.errors!=null&&o.form.controls.email.errors.required?10:-1),s(7),u("ngClass",A(11,qt,o.form.controls.phone.invalid&&(o.form.controls.phone.dirty||o.form.controls.phone.touched))),s(),p(o.form.controls.phone.errors!=null&&o.form.controls.phone.errors.required?18:-1),s(5),u("ngClass",A(13,qt,o.form.controls.mobilePhone.invalid&&(o.form.controls.mobilePhone.dirty||o.form.controls.mobilePhone.touched))),s(),p(o.form.controls.mobilePhone.errors?24:-1))},dependencies:[ye,Se,Y,B,ve,_i,fi,Z],styles:["form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:2.5rem;border-radius:2px}form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:invalid:focus, .form-control.is-invalid[_ngcontent-%COMP%]:focus{box-shadow:none}"]})};var Nt=class t{constructor(l){this.dialogRef=l;this.config.update(e=>he(xe({},e),{title:"Pause Subscription",customWidth:"480px"}))}dialogRef;data=H(we);httpService=H(P);toastr=H(Q);message=E("");month=E(1);config=E(new ee);onOk(){let l={Month:this.month(),Reason:this.message()};if(this.message().trim().length==0){this.toastr.error("The reason cannot be empty",L.Error);return}if(this.month()===0){this.toastr.error("Month must be bigger than zero",L.Error);return}this.httpService.post("/api/subscription/pause",l).subscribe(e=>{this.toastr.success(e.Message,L.Success),this.dialogRef.close()})}static \u0275fac=function(e){return new(e||t)(x(oe))};static \u0275cmp=T({type:t,selectors:[["POS-dialog-pause-subscription"]],decls:15,vars:3,consts:[[3,"onOk","onCancel","onClose","config"],[1,"fw-normal"],[1,"form-floating-outline","mt-5"],["type","text","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["for","message"],[1,"form-floating-outline"],["name","message",2,"width","100%","height","220px",3,"ngModelChange","ngModel"]],template:function(e,o){e&1&&(n(0,"modal-material",0),C("onOk",function(){return o.onOk()})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),n(1,"content")(2,"h6",1),r(3," Your data will be retained but you will lose access until renewal is made "),i(),g(4,"br"),n(5,"h4",1),r(6," How long would you like to pause your subscription? "),i(),n(7,"div",2)(8,"input",3),w("ngModelChange",function(c){return M(o.month,c)||(o.month=c),c}),i(),n(9,"label",4),r(10,"Months"),i()(),n(11,"div",5)(12,"textarea",6),w("ngModelChange",function(c){return M(o.message,c)||(o.message=c),c}),i(),n(13,"label",4),r(14,"Reason"),i()()()()),e&2&&(u("config",o.config()),s(8),S("ngModel",o.month),s(4),S("ngModel",o.message))},dependencies:[_e,Z,ne,Y,B,W],encapsulation:2,changeDetection:0})};var Ft=class t{constructor(l,e,o){this.matDialog=l;this.http=e;this.toastr=o;Jt(()=>{this.updateBillingOnPageLoad()&&($.IsEmpty(this.email())||$.IsEmpty(this.phone()))&&this.updateBilling()})}matDialog;http;toastr;updateBillingOnPageLoad=V();lastUnpaidInvoiceDate=V();email=G();phone=G();mobilePhone=G();recurringStatus=G();cancel(){this.matDialog.open(It).afterClosed().subscribe()}pause(){this.matDialog.open(Nt).afterClosed().subscribe()}updateBilling(){this.matDialog.open(Ot,{data:{email:this.email(),phone:this.phone(),mobilePhone:this.mobilePhone()}}).afterClosed().pipe(de(l=>$.IsNotEmpty(l)),J(l=>this.http.post("/API/Subscription/UpdateBillingData",{Email:l.email,Phone:l.phone,Mobile:l.mobilePhone}).pipe(se(e=>he(xe({},l),{Message:e.Message}))))).subscribe(l=>{this.toastr.success(l.Message,L.Success),this.email.set(l.email),this.phone.set(l.phone),this.mobilePhone.set(l.mobilePhone)})}static \u0275fac=function(e){return new(e||t)(x(ae),x(P),x(Q))};static \u0275cmp=T({type:t,selectors:[["POS-renewal-card"]],inputs:{updateBillingOnPageLoad:[1,"updateBillingOnPageLoad"],lastUnpaidInvoiceDate:[1,"lastUnpaidInvoiceDate"],email:[1,"email"],phone:[1,"phone"],mobilePhone:[1,"mobilePhone"],recurringStatus:[1,"recurringStatus"]},outputs:{email:"emailChange",phone:"phoneChange",mobilePhone:"mobilePhoneChange",recurringStatus:"recurringStatusChange"},standalone:!1,decls:40,vars:16,consts:[[1,"card"],[1,"card-header","d-flex","align-items-center","justify-content-between"],[1,"sub-text","text-capitalize"],[1,"btn-group"],["data-bs-toggle","dropdown",1,"btn","btn-outline-secondary","btn-sm","dropdown-toggle"],[1,"caret"],[1,"dropdown-menu","dropdown-menu-end","cursor","text-dark"],[1,"dropdown-item",3,"click"],[1,"card-body"],[1,"renewal-info","d-flex","justify-content-evenly","align-items-center","text-sm-start","text-center","flex-sm-row","flex-column"],[1,"text-center","invdate-container",2,"flex-grow","1"],[1,"fw-normal"],[1,"fw-normal","sub-title"],[1,"line","d-sm-block","d-none"],[1,"d-flex","flex-column","ps-0","ps-sm-10","emwa-container",2,"flex-grow","2.5"],[1,"mt-sm-4","mt-8"]],template:function(e,o){e&1&&(n(0,"div",0)(1,"div",1)(2,"div")(3,"h3"),r(4,"Renewal"),i(),n(5,"small",2),r(6),i()(),n(7,"div",3)(8,"button",4),g(9,"b",5),i(),n(10,"ul",6)(11,"li")(12,"a",7),C("click",function(){return o.updateBilling()}),r(13," Update Billing Contact "),i()(),n(14,"li")(15,"a",7),C("click",function(){return o.pause()}),r(16,"Pause Subscription"),i()(),n(17,"li")(18,"a",7),C("click",function(){return o.cancel()}),r(19,"Cancel Renewal"),i()()()()(),n(20,"div",8)(21,"div",9)(22,"div",10)(23,"h3",11),r(24),b(25,"date"),i(),n(26,"h5",12),r(27,"Invoice Date"),i()(),g(28,"div",13),n(29,"div",14)(30,"div")(31,"h3",11),r(32),i(),n(33,"h5",12),r(34,"Billing Email"),i()(),n(35,"div",15)(36,"h3",11),r(37),i(),n(38,"h5",12),r(39),i()()()()()()),e&2&&(s(5),Fe("text-success",o.recurringStatus()=="active")("text-danger",o.recurringStatus()=="stopped"),s(),h(o.recurringStatus()),s(18),y(" ",o.lastUnpaidInvoiceDate()=="-"?o.lastUnpaidInvoiceDate():O(25,13,o.lastUnpaidInvoiceDate(),"dd MMM yyyy")," "),s(8),h(o.email()??"-"),s(5),Ge(" ",o.phone()," ",o.phone()&&o.mobilePhone()?"/":""," ",o.mobilePhone()," "),s(2),Ge(" ",o.phone()?"Phone":""," ",o.phone()&&o.mobilePhone()?"/":""," ",o.mobilePhone()?"Mobile Phone":""," "))},dependencies:[j],styles:[".sub-text[_ngcontent-%COMP%]{color:#00000080;font-size:11px}.btn-cancel[_ngcontent-%COMP%]{width:140px}.renewal-info[_ngcontent-%COMP%]{border:1px solid #E6E6E6;height:120px}@media(max-width:576px){.renewal-info[_ngcontent-%COMP%]{height:180px}}.line[_ngcontent-%COMP%]{width:1px;height:70px;background:#e6e6e6}.sub-title[_ngcontent-%COMP%]{color:#00000080;font-size:11px}@media(max-width:576px){.invdate-container[_ngcontent-%COMP%], .emwa-container[_ngcontent-%COMP%]{flex-grow:0!important}}@media(max-width:576px){ #modal_material{width:100%!important}}"]})};var jo=t=>({"expanded-icon":t}),Uo=t=>({"bg-gradient-warning":t}),zo=t=>({"border-end":t});function qo(t,l){if(t&1&&(n(0,"small",5),r(1),b(2,"date"),b(3,"date"),i()),t&2){let e=d();s(),y(" (",O(2,1,e.lastMonthDate(),"dd MMM yyyy")+" - "+O(3,4,e.currentDate(),"dd MMM yyyy"),") ")}}function $o(t,l){if(t&1){let e=v();n(0,"button",12),C("click",function(){f(e);let a=d();return _(a.loadOutlet())}),r(1," Load "),i()}}function Go(t,l){if(t&1){let e=v();n(0,"button",12),C("click",function(){f(e);let a=d();return _(a.loadMinMax())}),r(1," Load Min Max Date "),i()}}function Qo(t,l){t&1&&(n(0,"th",11),r(1,"Min Date"),i())}function Yo(t,l){t&1&&(n(0,"th",11),r(1,"Max Date"),i())}function Ko(t,l){if(t&1&&(n(0,"td",17),r(1),b(2,"date"),i()),t&2){let e=d().$implicit;s(),h(O(2,1,e.MinDate,"dd MMM yyyy"))}}function Zo(t,l){if(t&1&&(n(0,"td",17),r(1),b(2,"date"),i()),t&2){let e=d().$implicit;s(),h(O(2,1,e.MaxDate,"dd MMM yyyy"))}}function Jo(t,l){if(t&1&&(n(0,"td",16),r(1),b(2,"date"),i()),t&2){let e=d().$implicit;s(),y(" ",O(2,1,e.MinDate,"dd MMM yyyy")," ")}}function Xo(t,l){if(t&1&&(n(0,"td",21),r(1),b(2,"date"),i()),t&2){let e=d().$implicit;s(),y(" ",O(2,1,e.MaxDate,"dd MMM yyyy")," ")}}function ea(t,l){if(t&1&&(n(0,"tr"),g(1,"td",18)(2,"td"),n(3,"td")(4,"ul",19)(5,"li")(6,"span"),r(7),i()()()(),n(8,"td",11),r(9),i(),g(10,"td",20),m(11,Jo,3,4,"td",16),m(12,Xo,3,4,"td",21),i()),t&2){let e=l.$implicit,o=d(3);s(7),y(" ",e.RegisterName," "),s(2),y(" ",e.OrdersCount," "),s(),u("ngClass",A(5,zo,!o.isLoadMinMaxDate())),s(),p(o.isLoadMinMaxDate()?11:-1),s(),p(o.isLoadMinMaxDate()?12:-1)}}function ta(t,l){if(t&1&&N(0,ea,13,7,"tr",null,at),t&2){let e=d().$implicit;F(e.Registers)}}function ia(t,l){if(t&1){let e=v();n(0,"tr",13)(1,"td")(2,"div",14),C("click",function(){let a=f(e).$implicit,c=d();return _(c.onExpandOutlet(a.EntityID))}),g(3,"i",15),i()(),n(4,"td"),r(5),i(),n(6,"td"),r(7),i(),n(8,"td",16),r(9),b(10,"number"),i(),n(11,"td",16),r(12),b(13,"number"),i(),m(14,Ko,3,4,"td",17),m(15,Zo,3,4,"td",17),i(),m(16,ta,2,0)}if(t&2){let e=l.$implicit,o=l.$index,a=d();s(3),u("ngClass",A(14,jo,a.expandedOutletID()===e.EntityID)),s(2),h(o+1),s(2),y(" ",e.Name," "),s(),Ie(A(16,Uo,(e==null?null:e.OrdersCount)<25||e.OrdersCount==null)),s(),y(" ",D(10,10,e.OrdersCount??0)," "),s(3),h(D(13,12,e.RegisterCount??1)),s(2),p(a.isLoadMinMaxDate()?14:-1),s(),p(a.isLoadMinMaxDate()?15:-1),s(),p(a.expandedOutletID()===e.EntityID?16:-1)}}var kt=class t{constructor(l,e){this.outletUsage=l;this.http=e}outletUsage;http;lastMonthDate=V();currentDate=V();outlets=V([]);showLoadButton=V();expandedOutletID=E(null);isLoadMinMaxDate=E(!1);outletsWithMinMax=E([]);mergeOutletWithMinMax=E([]);ngOnChanges(){this.isLoadMinMaxDate()||this.outletsWithMinMax.set(this.outlets())}loadOutlet(){this.outletUsage.loadOutlet()}loadMinMax(){this.http.post("/api/subscription/GetOutletWithMinMax").subscribe(l=>{this.mergeOutletWithMinMax.set(this.remapRegisters(this.outlets(),l.Outlets)),this.outletsWithMinMax.set(this.mergeOutletWithMinMax()),this.isLoadMinMaxDate.set(!0)})}remapRegisters(l,e){let o=e.reduce((a,c)=>(a[c.ID]=c,a),{});return l.map(a=>he(xe({},a),{Registers:a.Registers.map(c=>{let{MinDate:I=null,MaxDate:K=null}=o[c.RegisterID]??{};return he(xe({},c),{MinDate:I,MaxDate:K})})}))}onExpandOutlet(l){this.expandedOutletID.set(this.expandedOutletID()===l?null:l)}static \u0275fac=function(e){return new(e||t)(x(Pe),x(P))};static \u0275cmp=T({type:t,selectors:[["POS-outlet-card"]],inputs:{lastMonthDate:[1,"lastMonthDate"],currentDate:[1,"currentDate"],outlets:[1,"outlets"],showLoadButton:[1,"showLoadButton"]},standalone:!1,features:[Xt],decls:29,vars:9,consts:[[1,"card"],[1,"card-header","d-flex","align-os-center","justify-content-between"],[1,"d-flex","align-items-center"],[1,"fa","fa-location-dot","me-4",2,"font-size","30px"],[1,"d-inline"],[1,"sub-text","d-block"],[1,"btn","btn-sm","btn-outline-secondary"],[1,"card-body","table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","10px"],[1,"text-end",2,"width","120px"],[1,"btn","btn-sm","btn-outline-secondary",3,"click"],[1,"border"],["role","button",2,"cursor","pointer","width","fit-content",3,"click"],[1,"fa-regular","fa-chevron-right","text-dark",3,"ngClass"],[1,"text-end"],[1,""],[1,"border-start"],[1,"m-0"],[1,"border-end",3,"ngClass"],[1,"border-end","text-end"]],template:function(e,o){e&1&&(n(0,"div",0)(1,"div",1)(2,"div",2),g(3,"i",3),n(4,"div")(5,"h3",4),r(6,"Outlets Usage"),i(),m(7,qo,4,7,"small",5),i()(),m(8,$o,2,0,"button",6),m(9,Go,2,0,"button",6),i(),n(10,"div",7)(11,"table",8)(12,"thead",9)(13,"tr"),g(14,"th",10),n(15,"th",10),r(16,"No"),i(),n(17,"th"),r(18,"Name"),i(),n(19,"th",11),r(20,"Orders"),i(),n(21,"th",11),r(22,"Registers"),i(),m(23,Qo,2,0,"th",11),m(24,Yo,2,0,"th",11),i()(),n(25,"tbody"),N(26,ia,17,18,null,null,R),b(28,"sortBy"),i()()()()),e&2&&(s(7),p(o.outlets!=null&&o.outlets.length?7:-1),s(),p(o.showLoadButton()?8:-1),s(),p(!o.showLoadButton()&&!o.isLoadMinMaxDate()?9:-1),s(14),p(o.isLoadMinMaxDate()?23:-1),s(),p(o.isLoadMinMaxDate()?24:-1),s(2),F(li(28,5,o.outletsWithMinMax(),"desc","OrdersCount")))},dependencies:[ye,fe,j,Di],styles:[".sub-text[_ngcontent-%COMP%]{color:#00000080;font-size:11px}.bill-info[_ngcontent-%COMP%]{border:1px solid #e6e6e6;height:120px}.line[_ngcontent-%COMP%]{width:1px;height:70px;background:#e6e6e6}.sub-title[_ngcontent-%COMP%]{color:#00000080;font-size:11px}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{line-height:16px}.expanded-icon[_ngcontent-%COMP%]{display:inline-block;transform:rotate(90deg);transition:transform .16s ease-in-out}"],changeDetection:0})};function oa(t,l){if(t&1){let e=v();n(0,"input",11),w("ngModelChange",function(a){f(e);let c=d();return M(c.nameForm,a)||(c.nameForm=a),_(a)}),i()}if(t&2){let e=d();S("ngModel",e.nameForm)}}function aa(t,l){if(t&1&&(n(0,"h4",8),r(1),i()),t&2){let e=d();s(),h(e.name()??"-")}}function ra(t,l){if(t&1){let e=v();n(0,"input",11),w("ngModelChange",function(a){f(e);let c=d();return M(c.npwpForm,a)||(c.npwpForm=a),_(a)}),i()}if(t&2){let e=d();S("ngModel",e.npwpForm)}}function la(t,l){if(t&1&&(n(0,"h4",8),r(1),i()),t&2){let e=d();s(),h(e.npwp()??"-")}}function sa(t,l){if(t&1){let e=v();n(0,"textarea",12),w("ngModelChange",function(a){f(e);let c=d();return M(c.addressForm,a)||(c.addressForm=a),_(a)}),i()}if(t&2){let e=d();S("ngModel",e.addressForm)}}function da(t,l){if(t&1&&(n(0,"h4",8),r(1),i()),t&2){let e=d();s(),y(" ",e.taxAddress()??"-"," ")}}function ca(t,l){if(t&1&&(n(0,"div",9)(1,"h4",6),r(2,"Document Link"),i(),n(3,"h4",8)(4,"a",13),r(5,"view"),i()()()),t&2){let e=d();s(4),u("href",e.documentLink(),Ne)}}function ma(t,l){if(t&1&&(n(0,"div",9)(1,"h4",6),r(2,"WHT"),i(),n(3,"h4",8),r(4),i()()),t&2){let e=d();s(4),y(" ",e.whtPercentage()??"-","% ")}}var Vt=class t{constructor(l){this.http=l}http;outletCount=V();name=G("");npwp=G("");documentLink=G("");whtPercentage=G(0);frequency=G(0);taxAddress=G("");isEdit=E(!1);nameForm=E("");npwpForm=E("");addressForm=E("");editData(){this.isEdit()?this.http.post("/API/Subscription/UpdateTaxInformation",{TaxID:this.npwpForm,TaxName:this.nameForm,TaxAddress:this.addressForm}).subscribe(()=>{this.isEdit.set(!1),this.name.set(this.nameForm()),this.npwp.set(this.npwpForm()),this.taxAddress.set(this.addressForm())}):(this.isEdit.set(!0),this.nameForm.set(this.name()),this.npwpForm.set(this.npwp()),this.addressForm.set(this.taxAddress()))}static \u0275fac=function(e){return new(e||t)(x(P))};static \u0275cmp=T({type:t,selectors:[["POS-tax-card"]],inputs:{outletCount:[1,"outletCount"],name:[1,"name"],npwp:[1,"npwp"],documentLink:[1,"documentLink"],whtPercentage:[1,"whtPercentage"],frequency:[1,"frequency"],taxAddress:[1,"taxAddress"]},outputs:{name:"nameChange",npwp:"npwpChange",documentLink:"documentLinkChange",whtPercentage:"whtPercentageChange",frequency:"frequencyChange",taxAddress:"taxAddressChange"},standalone:!1,decls:27,vars:6,consts:[[1,"card"],[1,"card-header","d-flex","align-items-center","justify-content-between"],[1,"sub-text"],[1,"btn","btn-sm","btn-outline-primary","btn-upgrade",3,"click"],[1,"card-body"],[1,"d-flex","justify-content-between"],[1,"fw-normal","title-form"],["type","text",1,"form-control",2,"width","250px",3,"ngModel"],[1,"text-secondary","fw-normal","user-info"],[1,"d-flex","justify-content-between","mt-8"],["name","","id","","rows","10",1,"form-control",2,"width","250px",3,"ngModel"],["type","text",1,"form-control",2,"width","250px",3,"ngModelChange","ngModel"],["name","","id","","rows","10",1,"form-control",2,"width","250px",3,"ngModelChange","ngModel"],["target","_blank",3,"href"]],template:function(e,o){e&1&&(n(0,"div",0)(1,"div",1)(2,"div")(3,"h3"),r(4,"Tax Information"),i(),n(5,"small",2),r(6,"PPN 11% + Tax Invoice"),i()(),n(7,"button",3),C("click",function(){return o.editData()}),r(8),i()(),n(9,"div",4)(10,"div",5)(11,"h4",6),r(12,"Full Name"),i(),m(13,oa,1,1,"input",7)(14,aa,2,1,"h4",8),i(),n(15,"div",9)(16,"h4",6),r(17,"NPWP"),i(),m(18,ra,1,1,"input",7)(19,la,2,1,"h4",8),i(),n(20,"div",9)(21,"h4",6),r(22,"Tax Address"),i(),m(23,sa,1,1,"textarea",10)(24,da,2,1,"h4",8),i(),m(25,ca,6,1,"div",9),m(26,ma,5,1,"div",9),i()()),e&2&&(s(8),y(" ",o.isEdit()?"Save":"Edit"," "),s(5),p(o.isEdit()?13:14),s(5),p(o.isEdit()?18:19),s(5),p(o.isEdit()?23:24),s(2),p(o.documentLink()?25:-1),s(),p(o.whtPercentage()?26:-1))},dependencies:[Y,B,W],styles:[".sub-text[_ngcontent-%COMP%]{color:#00000080;font-size:11px}.btn-upgrade[_ngcontent-%COMP%]{width:140px}.bill-info[_ngcontent-%COMP%]{border:1px solid #E6E6E6;height:120px}.line[_ngcontent-%COMP%]{width:1px;height:70px;background:#e6e6e6}.sub-title[_ngcontent-%COMP%]{color:#00000080}.user-info[_ngcontent-%COMP%]{max-width:50%}@media(max-width:576px){.title-form[_ngcontent-%COMP%]{flex-basis:100px;word-break:break-all}}"]})};function ua(t,l){if(t&1&&g(0,"POS-addons-card",10),t&2){let e=d();u("addons",e.AddOns)("currency",e.Subscription==null?null:e.Subscription.Currency)}}function fa(t,l){if(t&1&&g(0,"POS-tax-card",11),t&2){let e=d();u("name",e.Subscription==null?null:e.Subscription.TaxName)("npwp",e.Subscription==null?null:e.Subscription.TaxID)("outletCount",e.Subscription==null?null:e.Subscription.OutletCount)("documentLink",e.DocumentLink)("whtPercentage",e.WHTPercentage)("frequency",e.Subscription==null?null:e.Subscription.Frequency)("taxAddress",e.Subscription==null?null:e.Subscription.TaxAddress)}}function _a(t,l){if(t&1&&(n(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"section",2)(4,"div",3)(5,"div",4),g(6,"POS-invoices-card",5),ti(7),b(8,"async"),g(9,"POS-outlet-card",6),b(10,"async"),b(11,"async"),b(12,"async"),i(),n(13,"div",7),g(14,"POS-billing-info-card",8)(15,"POS-renewal-card",9),m(16,ua,1,2,"POS-addons-card",10),m(17,fa,1,7,"POS-tax-card",11),i()()()()()()),t&2){let e=l,o=d();u("pageData",o.menuData())("hideSearchBox",!0)("hideSearchDropdown",!0),s(6),u("invoices",e.invoices)("WHTPercentage",e.WHTPercentage)("VATEnabled",e.VATEnabled)("subscriptionStatus",e.Subscription==null?null:e.Subscription.SubscriptionStatus)("currency",e.Subscription==null?null:e.Subscription.Currency);let a=D(8,24,o.outlets$);s(3),u("lastMonthDate",D(10,26,o.from$))("currentDate",D(11,28,o.to$))("outlets",a)("showLoadButton",D(12,30,o.showLoadButton$)),s(5),u("subscribedSince",e.Subscription==null?null:e.Subscription.Since)("outlets",e.Subscription==null?null:e.Subscription.OutletCount)("frequency",e.Subscription==null?null:e.Subscription.Frequency)("total",e.Subscription==null?null:e.Subscription.TotalAmount),s(),u("updateBillingOnPageLoad",!(e.Subscription!=null&&e.Subscription.MobilePhone&&(e.Subscription!=null&&e.Subscription.Email)))("lastUnpaidInvoiceDate",e.Subscription==null?null:e.Subscription.NextRecurring)("email",e.Subscription==null?null:e.Subscription.Email)("phone",e.Subscription==null?null:e.Subscription.Phone)("mobilePhone",e.Subscription==null?null:e.Subscription.MobilePhone)("recurringStatus",e.Subscription==null?null:e.Subscription.RecurringStatus),s(),p(e.AddOns&&e.AddOns.length>0?16:-1),s(),p((e.Subscription==null?null:e.Subscription.Currency)!="USD"?17:-1)}}var At=class t{title=H(pi);menuData=E({H:"My Subscription",N:{SM:[]},T:"My Subscription",U:[]});outlets$;from$;to$;subscriptionData$;lastUnpaidInvoiceDate$;showLoadButton$;constructor(l,e,o,a){let I=this.title.getTitle().split("|")[0]+"| My Subscription";this.title.setTitle(I),this.subscriptionData$=l.subscriptionData$,this.lastUnpaidInvoiceDate$=l.lastUnpaidInvoiceDate$,this.outlets$=o.outlets$,this.showLoadButton$=o.showLoadButton$,this.from$=o.from$,this.to$=o.to$,a.initScript().subscribe()}static \u0275fac=function(e){return new(e||t)(x(le),x(Ue),x(Pe),x(Dt))};static \u0275cmp=T({type:t,selectors:[["POS-my-subscription-v2"]],standalone:!1,features:[oi([le,Ue,Pe])],decls:2,vars:3,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown"],[1,"subs-container"],[1,"content"],[1,"d-flex","flex-sm-row","flex-column",2,"column-gap","20px"],[1,"left-container"],[3,"invoices","WHTPercentage","VATEnabled","subscriptionStatus","currency"],[3,"lastMonthDate","currentDate","outlets","showLoadButton"],[1,"right-container"],[3,"subscribedSince","outlets","frequency","total"],[3,"updateBillingOnPageLoad","lastUnpaidInvoiceDate","email","phone","mobilePhone","recurringStatus"],[3,"addons","currency"],[3,"name","npwp","outletCount","documentLink","whtPercentage","frequency","taxAddress"]],template:function(e,o){if(e&1&&(m(0,_a,18,32,"mainpanel-cmp",0),b(1,"async")),e&2){let a;p((a=D(1,1,o.subscriptionData$))?0:-1,a)}},dependencies:[re,ze,Et,Pt,Ft,kt,Vt,mi],styles:[".subs-container[_ngcontent-%COMP%]{padding:18px 20px 0;background:#fafaf9}.subs-container[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding-left:15px}.subs-container[_ngcontent-%COMP%] .sub-text[_ngcontent-%COMP%]{color:#00000080;font-size:11px}.subs-container[_ngcontent-%COMP%] .left-container[_ngcontent-%COMP%]{width:60%}.subs-container[_ngcontent-%COMP%] .right-container[_ngcontent-%COMP%]{width:40%}@media(max-width:576px){.subs-container[_ngcontent-%COMP%] .left-container[_ngcontent-%COMP%], .subs-container[_ngcontent-%COMP%] .right-container[_ngcontent-%COMP%]{width:100%}}"]})};function ga(t,l){if(t&1){let e=v();n(0,"div",14),C("click",function(){f(e);let a=d().$index,c=d(2);return _(c.readMore(a))}),r(1," read more... "),i()}}function Ca(t,l){if(t&1&&(n(0,"tr",10)(1,"td")(2,"b"),r(3),i(),g(4,"div",12),m(5,ga,2,0,"div",13),i(),n(6,"td"),r(7),b(8,"date"),i(),n(9,"td"),r(10),i()()),t&2){let e=l.$implicit;s(3),h(e.Header),s(),u("innerHTML",e.displayedMessage,q),s(),p(e.showReadMore?5:-1),s(2),h(O(8,5,e.Created,"dd MMM yyyy HH:mm")),s(3),h(e.IsFinished?"Finished":"In Progress")}}function ba(t,l){if(t&1){let e=v();n(0,"mat-paginator",15),C("page",function(a){f(e);let c=d(2);return _(c.onPaginationChange(a))}),i()}if(t&2){let e=d(2);u("length",e.pagination.listTotal())("pageSize",e.pagination.pageSize())("pageIndex",e.pageData().Filter.PageNumber==0?0:e.pageData().Filter.PageNumber-1)}}function xa(t,l){if(t&1){let e=v();n(0,"mainpanel-cmp",1),C("onSubmit",function(){f(e);let a=d();return _(a.searchFromPageOne())}),n(1,"filters")(2,"div",2)(3,"div",3)(4,"div")(5,"h6"),r(6,"From"),i(),n(7,"datepicker",4),w("dateChange",function(a){f(e);let c=d();return M(c.pageData().Filter.From,a)||(c.pageData().Filter.From=a),_(a)}),i()(),n(8,"div")(9,"h6"),r(10,"To"),i(),n(11,"datepicker",5),w("dateChange",function(a){f(e);let c=d();return M(c.pageData().Filter.To,a)||(c.pageData().Filter.To=a),_(a)}),i()()()()(),n(12,"content")(13,"div",6)(14,"table",7)(15,"thead",8)(16,"tr",9)(17,"th"),r(18,"Message"),i(),n(19,"th"),r(20,"Created"),i(),n(21,"th"),r(22,"Status"),i()()(),n(23,"tbody"),N(24,Ca,11,8,"tr",10,R),i()(),n(26,"div"),m(27,ba,1,3,"mat-paginator",11),i()()()()}if(t&2){let e=d();u("pageData",e.menuData())("hideSearchBox",!0),s(7),S("date",e.pageData().Filter.From),s(4),S("date",e.pageData().Filter.To),s(13),F(e.data().Data),s(3),p(e.pagination.listTotal()>0?27:-1)}}var qe=class t extends Re{constructor(l,e){super(l,e,"AsyncNotification/Get","AsyncNotification/Loader")}preInitList(){let l=new Date;l.setHours(0,0,0,0);let e=new Date;e.setHours(23,59,59,59),this.pageData().Filter.From=l,this.pageData().Filter.To=e}postInit(l){l.Data.forEach(e=>{let o=e.Body;e.displayedMessage=o.length<=120?o:o.slice(0,120),e.showReadMore=o.length>120})}readMore(l){this.data().Data[l].displayedMessage=this.data().Data[l].Body,this.data().Data[l].showReadMore=!1}static \u0275fac=function(e){return new(e||t)(x(ge),x(P))};static \u0275cmp=T({type:t,selectors:[["POS-async-notification"]],features:[ue],decls:1,vars:1,consts:[[3,"pageData","hideSearchBox"],[3,"onSubmit","pageData","hideSearchBox"],[1,"d-flex"],["container",""],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid","mt-5"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],[1,"border-bottom"],[3,"length","pageSize","pageIndex"],[2,"word-break","break-all",3,"innerHTML"],[1,"text-primary","pointer"],[1,"text-primary","pointer",3,"click"],[3,"page","length","pageSize","pageIndex"]],template:function(e,o){e&1&&m(0,xa,28,5,"mainpanel-cmp",0),e&2&&p(o.data()?0:-1)},dependencies:[Be,re,Te,Ae,gt,ne,_e,j],encapsulation:2})};var ha=[{path:"Main/My_Profile",component:ht,data:{unauthorizedRedirect:"menu/Unauthorized/Main/Unauthorized",roles:[bi.developer.Api]}},{path:"Main/My_Subscription",component:At},{path:"Notification/Push",component:je},{path:"Notification/Async",component:qe},{path:"Main/My_Sales",component:vt},{path:"Main/My_Subscription/Choose_your_plan",component:Mt}],Rt=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=nt({type:t});static \u0275inj=it({imports:[Bt.forChild(ha),Bt]})};var qi=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=nt({type:t});static \u0275inj=it({providers:[j],imports:[_e,ne,pt,Rt,Be,Ti,Z,bt,Ae,Te,De,Ni,Pi,_t,Ai,We,Le,xt,Wi,Ii,ze,je,He,qe]})};export{qi as ProfileModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as V}from"./chunk-
|
|
1
|
+
import{a as V}from"./chunk-HSTMSN6S.js";import{b as P,c as z}from"./chunk-HSMJCDMM.js";import{a as B,b as H}from"./chunk-FU3YLB2W.js";import{ra as Q}from"./chunk-W7LIGPO6.js";import{F as A,h as N,p as q}from"./chunk-TQGFSJ2L.js";import{a as h}from"./chunk-PPTZHIIZ.js";import{$b as a,Eb as L,Fb as u,Gb as n,Gc as F,Hc as k,Tb as M,Uc as p,Va as s,Vb as E,Y as S,Zb as x,_b as c,ab as v,ba as g,d as G,ea as y,eb as T,ic as d,ka as C,kb as _,kc as $,l as O,oa as w,pd as j,xb as I,yc as R,za as b,zb as D}from"./chunk-M4BR2FL5.js";var Y=["treeSelect"],J=["treeSelectContainer"],K=()=>[];function U(l,X){if(l&1&&(u(0,"div"),d(1),n()),l&2){let e=E();s(),$(" ",e.selectedOutletGroupLabel," ")}}function W(l,X){l&1&&(u(0,"label",5),d(1,"Outlet Group"),n())}var Z=(()=>{class l{constructor(){this.http=w(V),this.onOpenTreeSelector$=new G,this.outletGroups$=this.onOpenTreeSelector$.pipe(g(e=>e.length?O(e):this.http.get("/API/outlet/ActiveOptions"),[]),S(1))}loadOutletGroups(){this.onOpenTreeSelector$.next()}static{this.\u0275fac=function(o){return new(o||l)}}static{this.\u0275prov=C({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})(),Se=(()=>{class l{constructor(e){this.outletGroup=e,this.outletGroups=p([]),this.showClear=p(!1),this.showLabel=p(!1),this.selectedOutletGroupIDChange=new b,this.isLoadOutletGroups=!1,this.top=0}ngAfterViewInit(){let e=document.querySelector("body");this.top=e?e.getBoundingClientRect().top*-1:0}ngOnInit(){this.outletGroups().length>0&&(h.IsEmpty(this.selectedOutletGroupID)&&(this.selectedOutletGroupID=this.outletGroups()[0]?.key),this.selectedOutletGroup=this.findSelectedOutletGroup(this.outletGroups(),this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)),this.outletGroups$=this.outletGroup.outletGroups$.pipe(y(e=>{console.log(e),this.selectedOutletGroup=this.findSelectedOutletGroup(e,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)}))}onSelectOutletGroup(e){this.selectedOutletGroup=e,this.generateLabelSelectedOutletGroup(this.selectedOutletGroup),this.selectedOutletGroupID=e?.key,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}generateLabelSelectedOutletGroup(e){if(e){let o=[];this.selectedOutletGroupLabel="";do o=[...o,e.label],e=e.parent;while(e!==void 0);this.selectedOutletGroupLabel=o.reverse().join("/")}else this.selectedOutletGroupLabel="Select OutletGroup"}findSelectedOutletGroup(e,o){if(h.IsNotEmpty(o))for(let t of e){if(t.key===o)return t;{t.children=t.children?t.children:[],t.children=t.children.map(i=>(i.parent=t,i));let r=this.findSelectedOutletGroup(t.children,o);if(r)return r}}else return null}loadOutletGroups(){this.isLoadOutletGroups||(this.outletGroup.loadOutletGroups(),this.isLoadOutletGroups=!0)}onTreeSelectShow(){this.overlayRepositionTimeout&&clearTimeout(this.overlayRepositionTimeout),this.overlayRepositionTimeout=setTimeout(()=>{this.repositionOverlay()},50)}repositionOverlay(){try{let e=document.querySelector(".p-treeselect-panel"),o=this.treeSelectContainer?.nativeElement?.querySelector(".p-treeselect");if(e&&o){let t=o.getBoundingClientRect(),r=window.pageYOffset||document.documentElement.scrollTop,i=window.pageXOffset||document.documentElement.scrollLeft,m=t.bottom+r,f=t.left+i;e.style.position="absolute",e.style.top=`${m}px`,e.style.left=`${f}px`,e.style.width=`${t.width}px`,e.style.zIndex="10000",e.style.visibility="visible",e.style.opacity="1",console.log("TreeSelect overlay repositioned:",{top:m,left:f,width:t.width})}}catch(e){console.warn("Failed to reposition TreeSelect overlay:",e)}}onClear(){this.selectedOutletGroupID="",this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}static{this.\u0275fac=function(o){return new(o||l)(v(Z))}}static{this.\u0275cmp=T({type:l,selectors:[["POS-outlet-group-tree-select"]],viewQuery:function(o,t){if(o&1&&x(Y,5)(J,5),o&2){let r;c(r=a())&&(t.treeSelect=r.first),c(r=a())&&(t.treeSelectContainer=r.first)}},inputs:{outletGroups:[1,"outletGroups"],showClear:[1,"showClear"],showLabel:[1,"showLabel"],selectedOutletGroupID:"selectedOutletGroupID"},outputs:{selectedOutletGroupIDChange:"selectedOutletGroupIDChange"},decls:7,vars:7,consts:[["treeSelectContainer",""],["treeSelect",""],["variant","on",1,"w-full","md:w-80"],["appendTo","body","inputId","selectOutletGroup","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px",3,"click","onShow","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["for","selectOutletGroup"]],template:function(o,t){o&1&&(u(0,"p-floatlabel",2,0)(2,"p-treeSelect",3,1),F(4,"async"),M("click",function(){return t.loadOutletGroups()})("onShow",function(){return t.onTreeSelectShow()})("ngModelChange",function(i){return t.onSelectOutletGroup(i)})("onClear",function(){return t.onClear()}),_(5,U,2,1,"ng-template",4),n(),I(6,W,2,0,"label",5),n()),o&2&&(s(2),L("options",k(4,4,t.outletGroups$)||R(6,K))("ngModel",t.selectedOutletGroup)("showClear",t.showClear),s(4),D(t.showLabel()?6:-1))},dependencies:[z,P,Q,A,N,q,H,B,j],styles:[".p-treeselect-panel{z-index:10000!important;position:absolute!important} .p-overlay.p-component{z-index:10000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-treeselect{position:relative!important;margin-top:4px} .tab-pane .p-treeselect-panel{visibility:visible!important;opacity:1!important}"]})}}return l})();export{Se as a};
|