dealpos 25.45.0 → 25.45.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/{chunk-UARWMJ5H.js → chunk-2JU7KFOZ.js} +1 -1
- package/browser/{chunk-4UJTVSL2.js → chunk-2QD46TNT.js} +1 -1
- package/browser/{chunk-KJROORJO.js → chunk-2SM2HFRR.js} +1 -1
- package/browser/{chunk-D7J7CQGT.js → chunk-2TXCUXTF.js} +1 -1
- package/browser/{chunk-QNJH27F5.js → chunk-33B62QHS.js} +1 -1
- package/browser/{chunk-6IVR565J.js → chunk-36JFFXJO.js} +1 -1
- package/browser/{chunk-7NQ56KZ6.js → chunk-3CZ6HKSM.js} +1 -1
- package/browser/chunk-3IWVFLM3.js +1 -0
- package/browser/{chunk-KHFL6T5N.js → chunk-3LPZYQS6.js} +1 -1
- package/browser/{chunk-B7QNQTF3.js → chunk-3MU2GNGM.js} +1 -1
- package/browser/{chunk-M6UB4WVK.js → chunk-43CXFI4D.js} +1 -1
- package/browser/{chunk-ODEK2WQO.js → chunk-4AUOGTXI.js} +5 -5
- package/browser/{chunk-2YGMAT2F.js → chunk-4CFMB4IK.js} +1 -1
- package/browser/{chunk-TKJUJYEI.js → chunk-4JCHCMUR.js} +1 -1
- package/browser/{chunk-WGWBCLKM.js → chunk-4JVPFRFP.js} +1 -1
- package/browser/{chunk-G2QZRGKV.js → chunk-4KMN7PSV.js} +1 -1
- package/browser/{chunk-TEH7D4QV.js → chunk-4NLZJJA4.js} +1 -1
- package/browser/{chunk-AF5V3BUB.js → chunk-4ZFVM7K7.js} +1 -1
- package/browser/{chunk-XF27FA5V.js → chunk-55FE5P6P.js} +1 -1
- package/browser/{chunk-LQDIK5ZH.js → chunk-5DXDXIDO.js} +1 -1
- package/browser/{chunk-4KOOWCML.js → chunk-5VUKKQUZ.js} +2 -2
- package/browser/{chunk-Q32BQBU5.js → chunk-67UQKMLX.js} +1 -1
- package/browser/{chunk-R4K5X4RE.js → chunk-6ASBLKNZ.js} +1 -1
- package/browser/{chunk-2PIAS2C5.js → chunk-6BGTH62C.js} +1 -1
- package/browser/{chunk-TIBTGPW2.js → chunk-6DRTZA6S.js} +1 -1
- package/browser/{chunk-ZDX5LF2K.js → chunk-6MU3ID6Q.js} +1 -1
- package/browser/{chunk-M67ULXNR.js → chunk-7IRMDCKA.js} +1 -1
- package/browser/{chunk-PHWHZQFM.js → chunk-7O6Z7YZS.js} +1 -1
- package/browser/{chunk-CFSYN7MV.js → chunk-7TEDBCUJ.js} +1 -1
- package/browser/{chunk-NE57UXZU.js → chunk-A4SCCZAY.js} +1 -1
- package/browser/{chunk-JHYJTTAR.js → chunk-AASKAWJ4.js} +1 -1
- package/browser/{chunk-KHDFH3GS.js → chunk-AMUMNTYT.js} +1 -1
- package/browser/{chunk-7ZTWH3L6.js → chunk-B235RUOX.js} +1 -1
- package/browser/{chunk-66DT3BE2.js → chunk-B3EZEY4B.js} +1 -1
- package/browser/{chunk-WFIKDWZE.js → chunk-B3LNBFJF.js} +1 -1
- package/browser/{chunk-PVSXCHI3.js → chunk-B5ORO5G4.js} +1 -1
- package/browser/{chunk-P3BUVJKX.js → chunk-BA466YBV.js} +1 -1
- package/browser/{chunk-CKRLMZHY.js → chunk-BG6GTLXF.js} +1 -1
- package/browser/chunk-BJG2UU2M.js +1 -0
- package/browser/{chunk-AFCABMLQ.js → chunk-BJKHMXAA.js} +1 -1
- package/browser/{chunk-32GJXDHR.js → chunk-BLQKJ5OK.js} +1 -1
- package/browser/{chunk-NYTOBW2G.js → chunk-BQAKWHPC.js} +1 -1
- package/browser/{chunk-CANN2XN6.js → chunk-BRHHRJLT.js} +1 -1
- package/browser/{chunk-Q5FKQWU2.js → chunk-BZ44CISC.js} +1 -1
- package/browser/{chunk-OYNVXKZ3.js → chunk-BZVCDBQR.js} +1 -1
- package/browser/chunk-CKGJCUHW.js +1 -0
- package/browser/{chunk-VJQA5UAH.js → chunk-CRLFATTL.js} +1 -1
- package/browser/{chunk-IMO77OHS.js → chunk-D5RACD33.js} +1 -1
- package/browser/{chunk-235POOLV.js → chunk-DB3W42KN.js} +1 -1
- package/browser/{chunk-SWQE65GY.js → chunk-DC5TNUBW.js} +1 -1
- package/browser/{chunk-YNRHLKM5.js → chunk-DELGLVJJ.js} +1 -1
- package/browser/{chunk-PZVPROT6.js → chunk-DV6Z7FPV.js} +1 -1
- package/browser/{chunk-ZRAK4HYU.js → chunk-E2XUBZDW.js} +1 -1
- package/browser/{chunk-FW2LVBF2.js → chunk-E424AX7J.js} +1 -1
- package/browser/{chunk-V2PGBJHJ.js → chunk-E4GYCB3G.js} +1 -1
- package/browser/{chunk-RJJZC7JC.js → chunk-EAXUIPR5.js} +1 -1
- package/browser/chunk-EBHLJ7D3.js +18 -0
- package/browser/{chunk-YFMVQJRL.js → chunk-EGUIWOC3.js} +1 -1
- package/browser/{chunk-3AHCNKRE.js → chunk-EHXTW46H.js} +1 -1
- package/browser/{chunk-5JQ2TYZU.js → chunk-EIH377TR.js} +1 -1
- package/browser/{chunk-6QKBTWAT.js → chunk-ELTC3POX.js} +1 -1
- package/browser/{chunk-6EP37ICB.js → chunk-EOJJS4LU.js} +1 -1
- package/browser/{chunk-OIMBKUXO.js → chunk-EPINEYFX.js} +1 -1
- package/browser/{chunk-T4K6XBGC.js → chunk-ETTSYVEZ.js} +1 -1
- package/browser/{chunk-WSFK2BTV.js → chunk-F7EO5OHI.js} +1 -1
- package/browser/{chunk-5NRBDWB4.js → chunk-FADT3LJL.js} +1 -1
- package/browser/{chunk-MIW5EYCH.js → chunk-FDH4S2DG.js} +1 -1
- package/browser/{chunk-HPXDTBZD.js → chunk-FFOK3ZNC.js} +1 -1
- package/browser/{chunk-OLC5OIWO.js → chunk-FPO73IWN.js} +1 -1
- package/browser/{chunk-ORP2SVPR.js → chunk-FQTHN2D5.js} +1 -1
- package/browser/{chunk-JKBDSVHR.js → chunk-FR4CH42S.js} +1 -1
- package/browser/{chunk-ZGPKGJBM.js → chunk-FR6L6XAP.js} +1 -1
- package/browser/{chunk-Y5GN5XOG.js → chunk-FV3VHB7N.js} +1 -1
- package/browser/{chunk-RUE7RBU6.js → chunk-G4D3XN53.js} +1 -1
- package/browser/{chunk-WVCZAPRZ.js → chunk-G7HGWSUU.js} +1 -1
- package/browser/{chunk-MLFDP74G.js → chunk-GDPQI6PI.js} +1 -1
- package/browser/{chunk-HNU2JIBP.js → chunk-GJIFUWGQ.js} +1 -1
- package/browser/{chunk-DDM5K7MP.js → chunk-GWL7ZN37.js} +1 -1
- package/browser/{chunk-2SJZWKFD.js → chunk-GYYMO4YR.js} +1 -1
- package/browser/{chunk-5XDBC6O7.js → chunk-H3RJALHH.js} +1 -1
- package/browser/{chunk-LC5JP6E6.js → chunk-HDJJJAZJ.js} +1 -1
- package/browser/{chunk-SZDTKNUH.js → chunk-HK2NKWCI.js} +1 -1
- package/browser/{chunk-4MFA5Y4Y.js → chunk-HMKM466S.js} +1 -1
- package/browser/{chunk-63WMMXIG.js → chunk-HPPKFGND.js} +1 -1
- package/browser/{chunk-CQPKVO7W.js → chunk-HQWW3C2M.js} +1 -1
- package/browser/{chunk-IZK2IN4R.js → chunk-HVRLWPZX.js} +1 -1
- package/browser/{chunk-2525CDKJ.js → chunk-HYXSN2J6.js} +1 -1
- package/browser/{chunk-X34LKMFX.js → chunk-I24HJLN4.js} +1 -1
- package/browser/{chunk-AOQIZ6M2.js → chunk-I26CNUBY.js} +1 -1
- package/browser/{chunk-MCPXNQRW.js → chunk-I4WJ5CEN.js} +1 -1
- package/browser/chunk-IBZF5QXJ.js +1 -0
- package/browser/{chunk-KLKZQABE.js → chunk-ICDZ6ZG2.js} +1 -1
- package/browser/{chunk-3XRT75ZN.js → chunk-IFARYZIK.js} +1 -1
- package/browser/{chunk-BFHHIWRM.js → chunk-IGHHLZWC.js} +1 -1
- package/browser/{chunk-5574BNHI.js → chunk-IKJNYXIS.js} +1 -1
- package/browser/{chunk-MVCDG4KS.js → chunk-IMM7CUI7.js} +5 -5
- package/browser/{chunk-J55W7XV7.js → chunk-IR75FMI5.js} +1 -1
- package/browser/{chunk-PY3PDRRW.js → chunk-ISY4SDFY.js} +1 -1
- package/browser/{chunk-JL56QKED.js → chunk-IVBM4Y3J.js} +1 -1
- package/browser/{chunk-QBNQANTG.js → chunk-IVR7R22T.js} +1 -1
- package/browser/{chunk-YBLSVIMZ.js → chunk-IZQ5FNXP.js} +1 -1
- package/browser/{chunk-62E2JEWQ.js → chunk-J5FCCS76.js} +1 -1
- package/browser/{chunk-RINV4BX7.js → chunk-JGYO4OTZ.js} +1 -1
- package/browser/{chunk-IRPQWJZH.js → chunk-JKBJ3O3G.js} +2 -2
- package/browser/{chunk-IH5OCDKI.js → chunk-JRM47ALM.js} +1 -1
- package/browser/{chunk-QOTJ7B7C.js → chunk-JRP5O56W.js} +1 -1
- package/browser/{chunk-KHDUUG2S.js → chunk-JTRNQBXF.js} +1 -1
- package/browser/{chunk-IEYBKFX7.js → chunk-JTTRYU4G.js} +1 -1
- package/browser/{chunk-24A2APSJ.js → chunk-JXHHT6R2.js} +1 -1
- package/browser/{chunk-LIH722A3.js → chunk-JXXEYFN7.js} +1 -1
- package/browser/{chunk-OVSWMLB3.js → chunk-KFDGG6IE.js} +1 -1
- package/browser/{chunk-3XJHHRJT.js → chunk-KFUPP33B.js} +1 -1
- package/browser/{chunk-XOOFBNDP.js → chunk-KLZBTT2P.js} +1 -1
- package/browser/{chunk-SUP23S2E.js → chunk-KMIXT3V6.js} +1 -1
- package/browser/{chunk-WPTBNQ2V.js → chunk-KMYTSO3Q.js} +1 -1
- package/browser/{chunk-PF3TLOCL.js → chunk-KNQEOPID.js} +1 -1
- package/browser/{chunk-K6YQ5CRH.js → chunk-KPZU3ZPZ.js} +1 -1
- package/browser/{chunk-2MGVRRAP.js → chunk-KQXOXN6S.js} +13 -13
- package/browser/{chunk-4ZMJFXGW.js → chunk-KWDQGODG.js} +1 -1
- package/browser/{chunk-TW3MVM2R.js → chunk-L5HF7UAT.js} +1 -1
- package/browser/{chunk-PO2OKV6Q.js → chunk-LAQMHKSP.js} +1 -1
- package/browser/{chunk-M5IOFMBZ.js → chunk-LDDG4GE7.js} +1 -1
- package/browser/{chunk-XLE4M4WS.js → chunk-LFHXGZHT.js} +1 -1
- package/browser/{chunk-CNCKIVTQ.js → chunk-LJMHI6I5.js} +1 -1
- package/browser/{chunk-Z4NZP4NH.js → chunk-LKKENA2L.js} +1 -1
- package/browser/{chunk-XYHPCRIZ.js → chunk-LODGW3WU.js} +1 -1
- package/browser/{chunk-TKZU227J.js → chunk-LP2YX47Z.js} +1 -1
- package/browser/{chunk-ZHTSXEVO.js → chunk-M6SFCHJQ.js} +1 -1
- package/browser/{chunk-ZWPJWDYN.js → chunk-MFHN36L5.js} +1 -1
- package/browser/{chunk-CUY227OT.js → chunk-MNZLKEWQ.js} +1 -1
- package/browser/{chunk-2CWEU47S.js → chunk-MOLMIGZ2.js} +1 -1
- package/browser/{chunk-7H3GMZJN.js → chunk-MREFZR3I.js} +1 -1
- package/browser/{chunk-T4MVTLYE.js → chunk-MTU6753J.js} +1 -1
- package/browser/{chunk-EE3OKRUQ.js → chunk-NCT5IK4R.js} +1 -1
- package/browser/{chunk-6M6QFFLT.js → chunk-NGRJ35NF.js} +1 -1
- package/browser/{chunk-RCMYO542.js → chunk-NJB3X4XL.js} +1 -1
- package/browser/{chunk-S6FVFOZM.js → chunk-NNONJUQ3.js} +1 -1
- package/browser/{chunk-2SFQGHFV.js → chunk-O4IQZBVW.js} +1 -1
- package/browser/{chunk-WGBW2YLG.js → chunk-O4SFEWMN.js} +1 -1
- package/browser/{chunk-2EEKMQEX.js → chunk-OGN6JWED.js} +1 -1
- package/browser/{chunk-PRROMENK.js → chunk-OJ5SEYSF.js} +1 -1
- package/browser/{chunk-TQZVYC7J.js → chunk-OMKIT3Z4.js} +1 -1
- package/browser/{chunk-LBWSX76J.js → chunk-OND3CFSL.js} +1 -1
- package/browser/{chunk-EIBM6U5N.js → chunk-OTIPYKW7.js} +1 -1
- package/browser/{chunk-WIYO452T.js → chunk-OTT6RJHI.js} +1 -1
- package/browser/{chunk-FPGIRAZZ.js → chunk-OYO4SRAO.js} +1 -1
- package/browser/{chunk-CKN6D7N7.js → chunk-OZGLZGND.js} +1 -1
- package/browser/{chunk-JQOVAMQC.js → chunk-P2CKEL54.js} +1 -1
- package/browser/{chunk-CF4MHWEX.js → chunk-P2FSLJ4X.js} +1 -1
- package/browser/{chunk-NJOOFJNE.js → chunk-PCAFUCUK.js} +1 -1
- package/browser/{chunk-M6PA26FM.js → chunk-PIYVELLT.js} +1 -1
- package/browser/{chunk-WT6PMWGG.js → chunk-PLVOH67J.js} +1 -1
- package/browser/{chunk-JJ55MEGU.js → chunk-PQ65IMRY.js} +1 -1
- package/browser/{chunk-SLDIBIUY.js → chunk-PQFMYP23.js} +1 -1
- package/browser/{chunk-LLXEUJDC.js → chunk-PQS3RLPI.js} +1 -1
- package/browser/{chunk-WPKJOXVT.js → chunk-PROSYUA2.js} +1 -1
- package/browser/{chunk-27KLJCCF.js → chunk-PTQCXOVM.js} +1 -1
- package/browser/{chunk-K2U4QSXW.js → chunk-PUXE7FLT.js} +1 -1
- package/browser/{chunk-7YKHGYIG.js → chunk-PXKNGMLL.js} +1 -1
- package/browser/{chunk-J4J3XVRF.js → chunk-PXOXHTNI.js} +1 -1
- package/browser/chunk-PYATA4SM.js +1 -0
- package/browser/{chunk-MSSTCYNC.js → chunk-QCCKEP2R.js} +1 -1
- package/browser/{chunk-TY7JJASH.js → chunk-QGYIPOLS.js} +1 -1
- package/browser/{chunk-SZ24MNHM.js → chunk-QHWRBSOD.js} +1 -1
- package/browser/chunk-QMFA3PF5.js +1 -0
- package/browser/{chunk-E5HC3WFJ.js → chunk-QUAMZZS6.js} +1 -1
- package/browser/{chunk-A3FTQA6E.js → chunk-RCC5SUNH.js} +1 -1
- package/browser/{chunk-Q2GPSDAM.js → chunk-RFVQHGYD.js} +1 -1
- package/browser/{chunk-HPWVZRZF.js → chunk-RMIJZMA5.js} +1 -1
- package/browser/{chunk-NEJRKLYO.js → chunk-RNEU5YBN.js} +1 -1
- package/browser/{chunk-K5ERLQ63.js → chunk-RO5PWDCR.js} +1 -1
- package/browser/{chunk-JR6SBNDP.js → chunk-RPJIPLQS.js} +1 -1
- package/browser/{chunk-6B56KYAF.js → chunk-RRYYS272.js} +1 -1
- package/browser/{chunk-WOMVTVEQ.js → chunk-RVKNSR2K.js} +1 -1
- package/browser/{chunk-NUVM5VMH.js → chunk-S4ZRXSPZ.js} +1 -1
- package/browser/{chunk-6BWXSO4B.js → chunk-SA67OWFV.js} +1 -1
- package/browser/{chunk-HEGIEXS3.js → chunk-SGSOCLV7.js} +1 -1
- package/browser/{chunk-YX5ADQPF.js → chunk-SH3T5X7H.js} +1 -1
- package/browser/chunk-SXPVIX36.js +1 -0
- package/browser/{chunk-PT3R3NCF.js → chunk-SYMXIBEB.js} +1 -1
- package/browser/{chunk-CRU6KO53.js → chunk-THGBNMLF.js} +1 -1
- package/browser/{chunk-GIW2PDIG.js → chunk-TIGG24TH.js} +1 -1
- package/browser/{chunk-IWPVMLPY.js → chunk-TMQ7NWGZ.js} +1 -1
- package/browser/{chunk-UZMFXHQD.js → chunk-TNZMSOM3.js} +1 -1
- package/browser/{chunk-3JW3NITX.js → chunk-TPKU52VV.js} +1 -1
- package/browser/chunk-TR5NO2CB.js +1 -0
- package/browser/{chunk-ODGFQ7QJ.js → chunk-TS6CZC3J.js} +1 -1
- package/browser/{chunk-ZOPOSPVC.js → chunk-TX6ZFPHY.js} +1 -1
- package/browser/{chunk-CTPHJSLU.js → chunk-TYUL4J6N.js} +1 -1
- package/browser/{chunk-Y3BA3YGC.js → chunk-U3EOEZ3B.js} +1 -1
- package/browser/{chunk-GHGFRLKE.js → chunk-U3WVC6SN.js} +1 -1
- package/browser/{chunk-DMZ5HEOT.js → chunk-U5HTULBC.js} +1 -1
- package/browser/{chunk-ZRNGBR7A.js → chunk-UEMKVZMR.js} +1 -1
- package/browser/{chunk-MJV24UTS.js → chunk-UH2PJXPG.js} +2 -2
- package/browser/chunk-UP2UDOTJ.js +1 -0
- package/browser/{chunk-EI2XG4ML.js → chunk-UPC37DMP.js} +1 -1
- package/browser/{chunk-HNLSUZUH.js → chunk-V6MKE6LP.js} +1 -1
- package/browser/{chunk-44LXIDEF.js → chunk-V75YVSP3.js} +1 -1
- package/browser/{chunk-CJFDTLOQ.js → chunk-V7HBROQ5.js} +1 -1
- package/browser/{chunk-HG6BRXAC.js → chunk-VCQBS5CA.js} +1 -1
- package/browser/{chunk-74B5JZ5G.js → chunk-VO3NT5EH.js} +1 -1
- package/browser/chunk-VPBOQNZA.js +131 -0
- package/browser/{chunk-HD6ETXDZ.js → chunk-VQBUIUJC.js} +1 -1
- package/browser/chunk-VS3RTXZC.js +5 -0
- package/browser/{chunk-2557JAG4.js → chunk-VVB7545X.js} +1 -1
- package/browser/{chunk-L6YGMZJK.js → chunk-W6PT2SCS.js} +1 -1
- package/browser/{chunk-ZKQFRAZ2.js → chunk-WAAJYULE.js} +1 -1
- package/browser/{chunk-K2M625FR.js → chunk-WACBOZDR.js} +1 -1
- package/browser/{chunk-4DH3BDE3.js → chunk-WAXYETAG.js} +1 -1
- package/browser/{chunk-NWBLFLVC.js → chunk-WKB7BKHN.js} +1 -1
- package/browser/chunk-WQNTJH2X.js +1 -0
- package/browser/{chunk-CRMTCX6F.js → chunk-X6MBRJTG.js} +2 -2
- package/browser/{chunk-2ILW7WWJ.js → chunk-XIXREDEB.js} +1 -1
- package/browser/{chunk-CABP6X3M.js → chunk-XTMUP2BA.js} +1 -1
- package/browser/{chunk-EUQGYTUL.js → chunk-XWWKCPZS.js} +1 -1
- package/browser/{chunk-JTLGGNCW.js → chunk-XXNLATCJ.js} +1 -1
- package/browser/{chunk-2IE6U5ND.js → chunk-XZFHDKIK.js} +1 -1
- package/browser/{chunk-7WXTIXID.js → chunk-XZXNHGZ2.js} +1 -1
- package/browser/{chunk-5RLB3NV4.js → chunk-Y6JQWF34.js} +1 -1
- package/browser/{chunk-RHVNZ2DF.js → chunk-YL6HCV6T.js} +1 -1
- package/browser/{chunk-LPD3H6QQ.js → chunk-YMVBGQ2W.js} +1 -1
- package/browser/{chunk-ZJ4AGOKX.js → chunk-YQ5GJPDB.js} +1 -1
- package/browser/chunk-YTOGQOIP.js +1 -0
- package/browser/{chunk-SII6VICE.js → chunk-YXNBLVK4.js} +1 -1
- package/browser/{chunk-5VGCSK5N.js → chunk-YY3636UT.js} +1 -1
- package/browser/{chunk-EXIKKRCD.js → chunk-YZP4FX7D.js} +1 -1
- package/browser/{chunk-NCXT27M5.js → chunk-ZGSYDQBM.js} +1 -1
- package/browser/chunk-ZRHYTE5S.js +1 -0
- package/browser/index.html +2 -2
- package/browser/{main-H2XKB5YR.js → main-WVCGTGWV.js} +2 -2
- package/browser/{styles-CA5KWC36.css → styles-J6LGFNKV.css} +1 -1
- package/package.json +1 -1
- package/browser/chunk-2IOQJSBS.js +0 -1
- package/browser/chunk-3UKPPC6K.js +0 -131
- package/browser/chunk-4XD6LZU6.js +0 -1
- package/browser/chunk-5J2SNOT2.js +0 -1
- package/browser/chunk-5YCIPH6P.js +0 -1
- package/browser/chunk-AXUFQOIY.js +0 -1
- package/browser/chunk-D75PDB6P.js +0 -1
- package/browser/chunk-ERFYUZ7W.js +0 -1
- package/browser/chunk-GERGGB25.js +0 -1
- package/browser/chunk-GZXTL4RE.js +0 -1
- package/browser/chunk-LBIXL2NM.js +0 -5
- package/browser/chunk-SQVN35HO.js +0 -1
- package/browser/chunk-UAVXXCN2.js +0 -1
- package/browser/chunk-WR3A6SD3.js +0 -18
- package/browser/chunk-XDJAJP7W.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as at}from"./chunk-HNU2JIBP.js";import{c as nt,d as st,e as ot}from"./chunk-V2PGBJHJ.js";import{a as fe}from"./chunk-FPGIRAZZ.js";import{c as it}from"./chunk-HD6ETXDZ.js";import{N as rt}from"./chunk-2525CDKJ.js";import{$ as pe,A as le,C as $e,G as N,O as Xe,V as Je,W as de,Z as me,aa as et,da as he,f as h,ha as tt,k as ce,n as ue,o as Ze}from"./chunk-K2M625FR.js";import{a as Ge}from"./chunk-PRROMENK.js";import{$ as w,Ab as v,Ac as K,Bb as u,Ca as Pe,Cb as d,D as q,Db as E,Dc as B,Ea as Z,Eb as ee,F as xe,Fa as $,Fb as te,Ga as X,Gb as qe,Ha as Re,Ia as Ae,Ja as H,Jc as Ue,Ka as Ke,Kb as R,Lb as ie,M as Te,Mb as p,O as Se,Ob as l,Q as De,Ra as J,Rb as He,Tb as Qe,Ub as Le,Uc as re,Wa as c,Wc as ae,Xa as b,Ya as Q,Yd as Ye,Z as Ee,_ as we,_b as ne,_d as We,aa as Oe,ab as L,ac as Ve,bc as f,cc as A,d as _,da as m,db as Be,dc as Y,fb as V,gb as Ne,hb as k,jb as P,la as G,ma as Fe,na as T,pa as o,pd as je,qc as I,qd as ze,rb as D,rc as se,sc as oe,ta as O,tb as M,ua as F,v as ve,vb as C,w as Ie,xa as S,xb as U,yb as j,zb as z}from"./chunk-LBIXL2NM.js";import{a as x,b as Ce}from"./chunk-SNAKHGZS.js";var lt=()=>["/menu/Outlets/Master/Quick_Key_Templates/Form"],bt=t=>({ID:t}),Mt=t=>({OutletID:t});function Ct(t,s){if(t&1&&E(0,"img",16),t&2){let e=l(2).$implicit;v("src",e.ImageURLClient,J)}}function vt(t,s){if(t&1&&(u(0,"div",14)(1,"div",15),M(2,Ct,1,1,"img",16),d()()),t&2){let e=l().$implicit;c(2),C(e.ImageURLClient?2:-1)}}function It(t,s){if(t&1&&(u(0,"div",15)(1,"p",17)(2,"span"),f(3),K(4,"slice"),d()()()),t&2){let e=l().$implicit;c(3),A(B(4,1,e.Display,0,3))}}function xt(t,s){if(t&1){let e=R();u(0,"div",9)(1,"a",13),p("click",function(){let n=O(e).$implicit,r=l(4);return F(r.onSelectQuickKeyItem(n))}),M(2,vt,3,1,"div",14)(3,It,5,5,"div",15),u(4,"small"),f(5),K(6,"slice"),d()()()}if(t&2){let e=s.$implicit;c(2),C(e.ImageURLClient?2:3),c(3),A(B(6,2,e.Display,0,36))}}function Tt(t,s){if(t&1&&(u(0,"mat-tab",6)(1,"div",7)(2,"div",8),j(3,xt,7,6,"div",9,U),u(5,"div",10)(6,"a",11),E(7,"i",12),d()()()()()),t&2){let e=s.$implicit,i=l(3);v("label",e.Name),c(3),z(e==null?null:e.Items),c(3),v("routerLink",se(3,lt))("queryParams",oe(4,bt,i.quickKey.ID))}}function St(t,s){if(t&1){let e=R();u(0,"mat-tab-group",5),p("selectedIndexChange",function(n){O(e);let r=l(2);return F(r.onChangeTab(n))}),j(1,Tt,8,6,"mat-tab",6,U),d()}if(t&2){let e=l(2);v("disableRipple",!0)("selectedIndex",e.selectedTabIndex),c(),z(e.quickKey==null?null:e.quickKey.Groups)}}function Dt(t,s){if(t&1&&E(0,"img",16),t&2){let e=l(2).$implicit;v("src",e.ImageURLClient,J)}}function Et(t,s){if(t&1&&(u(0,"div",14)(1,"div",15),M(2,Dt,1,1,"img",16),d()()),t&2){let e=l().$implicit;c(2),C(e.ImageURLClient?2:-1)}}function wt(t,s){if(t&1&&(u(0,"div",15)(1,"p",17)(2,"span"),f(3),K(4,"slice"),d()()()),t&2){let e=l().$implicit;c(3),A(B(4,1,e.Model,0,3))}}function Ot(t,s){if(t&1){let e=R();u(0,"div",9)(1,"a",13),p("click",function(){let n=O(e).$implicit,r=l(3);return F(r.onSelectVariant(n.ID))}),M(2,Et,3,1,"div",14)(3,wt,5,5,"div",15),u(4,"small"),f(5),K(6,"slice"),d()()()}if(t&2){let e=s.$implicit;c(2),C(e.ImageURLClient?2:3),c(3),A(B(6,2,e.Model,0,30))}}function Ft(t,s){if(t&1){let e=R();u(0,"div",18)(1,"div",19),p("click",function(){O(e);let n=l(2);return F(n.quickKeyState="QUICKKEY")}),E(2,"i",20),d(),u(3,"div",21)(4,"b"),f(5),d()()(),u(6,"div",7)(7,"div",8),j(8,Ot,7,6,"div",9,U),d()()}if(t&2){let e=l(2);c(5),Y(" ",e.subQuickKeyPack.Display),c(3),z(e.subQuickKeyPack==null?null:e.subQuickKeyPack.Children)}}function Pt(t,s){if(t&1&&M(0,St,3,2,"mat-tab-group",4)(1,Ft,10,1),t&2){let e=l();C(e.quickKeyState=="QUICKKEY"?0:1)}}function Rt(t,s){if(t&1&&(u(0,"div",3)(1,"a",22)(2,"strong"),f(3,"QUICK KEYS UNCONFIGURED"),d(),E(4,"i",23),u(5,"span"),f(6,"Click here to setup your Quick keys"),d()()()),t&2){let e=l();c(),v("routerLink",se(2,lt))("queryParams",oe(3,Mt,e.outletID))}}var ct=class t{sf=o(at);quickKey;get outletID(){return this._outletID}set outletID(s){this._outletID=s,this._outletID&&(this.quickKeyState="QUICKKEY")}_outletID="";_onSelectVariant=new b;quickKeyState="QUICKKEY";subQuickKeyPack;selectedTabIndex=0;disabled=!1;onChange=s=>{};onTouched=()=>{};writeValue(s){}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.disabled=s}onSelectQuickKeyItem(s){s.Children?s.Children.length==1?this.onSelectVariant(s.Children[0].ID):(this.quickKeyState="SUBQUICKKEY",this.subQuickKeyPack={Children:s.Children,Display:s.Display}):this.onSelectVariant(s.ItemID)}onSelectVariant(s){this.quickKeyState="QUICKKEY",this._onSelectVariant.emit(s),this.onChange(s),this.sf.searchFilterNativeEl?.focus()}onChangeTab(s){this.selectedTabIndex=s}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=V({type:t,selectors:[["POS-quick-key"]],inputs:{quickKey:"quickKey",outletID:"outletID"},outputs:{_onSelectVariant:"onSelectVariant"},features:[I([{provide:Ge,multi:!0,useExisting:t}])],decls:5,vars:1,consts:[[1,"row","h-100"],[1,"col-12"],[1,"quick-key-tab","h-100","pt-4"],[1,"no-quick-key"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"disableRipple","selectedIndex"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"selectedIndexChange","disableRipple","selectedIndex"],[3,"label"],[1,"container","tabItems"],[1,"row","g-0"],[1,"col-3","column","px-6"],[1,"col-3","column","px-8","add","pt-8"],[3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-plus-circle","fa-5x","d-flex","align-items-center","justify-content-center","bg-white","h-100","text-primary"],[3,"click"],[1,"img-box","d-flex","align-items-center"],[1,"ratio","ratio-1x1"],[1,"full-screen-image",3,"src"],[1,"fw-normal","fs-1","d-flex","align-items-center","justify-content-center"],[1,"row","g-0","border","align-items-center","subquicKey"],[1,"col-auto","border-end","py-5","px-7","cursor-pointer",3,"click"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"col","text-center","fw-bold","text-uppercase","fs-5"],["id","LinkConfigureQuickkey","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-regular","fa-hand-pointer"]],template:function(e,i){e&1&&(u(0,"div",0)(1,"div",1)(2,"section",2),M(3,Pt,2,1)(4,Rt,7,5,"div",3),d()()()),e&2&&(c(3),C(i.quickKey&&i.quickKey.Groups?3:4))},dependencies:[ze,We,Ye,rt,ot,nt,st,je],styles:[".quick-key-tab{width:100%;position:relative;height:100%;max-height:calc(100vh - 70px)} .quick-key-tab .mat-mdc-tab-header-pagination{display:none!important} .quick-key-tab .mat-mdc-tab-header{border:none} .quick-key-tab .mdc-tab-indicator{display:none!important} .quick-key-tab .mat-mdc-tab-body-wrapper{width:102%} .quick-key-tab .mat-mdc-tab-labels{border-bottom:0px;display:flex;flex-wrap:wrap;border-radius:6px} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab{color:#151515;opacity:1;height:38px;max-height:40px;white-space:normal!important;overflow:hidden;padding:0!important;min-width:25%!important;flex-basis:0;font-size:12px;font-weight:700;outline:none;text-transform:uppercase;background:#fff;display:flex} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab__content{white-space:normal!important;align-self:center;font-size:.875rem!important} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active{background:linear-gradient(to bottom,#fff,#eee);border-radius:6px;border:.5px solid #dadada} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active .mdc-tab__text-label{color:gray!important;font-weight:700} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab:nth-child(n+5){flex-grow:0!important} .quick-key-tab .tabItems{padding:0} .quick-key-tab .tabItems .column{margin-top:15px;margin-bottom:10px;word-break:break-all} .quick-key-tab .tabItems .column>div{border:solid 1px #cfcfcf} .quick-key-tab .tabItems .column>a{text-align:center;display:block;cursor:pointer} .quick-key-tab .tabItems .column>a div.img-box{display:block;margin:0 auto;border-top-left-radius:5px;border-bottom-right-radius:5px;border:solid 1px #dddddd} .quick-key-tab .tabItems .column>a .full-screen-image{position:absolute;object-fit:scale-down} .quick-key-tab .tabItems .column>a p{display:block;margin:0 auto;background-color:#a6a6a6;border:solid 1px #999999;border-top-left-radius:5px;border-bottom-right-radius:5px;color:#fff} .quick-key-tab .tabItems .column>a small{font-size:11px;display:block;margin:5px 0 0} .quick-key-tab .tabItems .column .ion-icon{font-size:75px;margin:10px} .quick-key-tab .col-md-3.column.add{cursor:pointer} .quick-key-tab .col-md-3.column.add i{margin-top:10px} .quick-key-tab ::-webkit-scrollbar{width:3px} .quick-key-tab ::-webkit-scrollbar-track{box-shadow:inset 0 0 5px #bfd2da} .quick-key-tab ::-webkit-scrollbar-thumb{background:#c4c4c4;border-radius:10px} .quick-key-tab .subquicKey{background:linear-gradient(to bottom,#fff,#eee);color:gray;border-radius:6px} .quick-key-tab .no-quick-key{background-image:url(//res.cloudinary.com/pos/image/upload/w_500/POS/Images/Cashier/no-quick-key.png)!important;background-repeat:no-repeat;height:calc(100vh - 70px);background-size:contain}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{background-color:#479ccf;padding:15px 25px;color:#fff;text-decoration:none;width:240px;display:block;opacity:.85;border-radius:6px}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{position:absolute;top:200px;left:calc(50% - 120px)}a#LinkConfigureQuickkey[_ngcontent-%COMP%]:hover{opacity:.95}a#LinkConfigureQuickkey[_ngcontent-%COMP%] Strong[_ngcontent-%COMP%]{border-bottom:1px solid white;font-size:14px;margin:0 0 10px;padding:0 0 3px;display:block}a#LinkConfigureQuickkey[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;height:35px;margin:0 10px 0 0;font-size:28px}a#LinkConfigureQuickkey[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;font-size:14px;width:135px;vertical-align:top}"]})};var pt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenuGroup",""]],hostAttrs:["role","group",1,"cdk-menu-group"],exportAs:["cdkMenuGroup"],features:[I([{provide:fe,useClass:fe}])]})}return t})(),ye=new T("cdk-menu"),y=(function(t){return t[t.nextItem=0]="nextItem",t[t.previousItem=1]="previousItem",t[t.currentItem=2]="currentItem",t})(y||{}),g=new T("cdk-menu-stack"),Kt={provide:g,deps:[[new $,new X,new Z(g)]],useFactory:t=>t||new be},Bt=t=>({provide:g,deps:[[new $,new X,new Z(g)]],useFactory:s=>s||be.inline(t)}),be=(()=>{class t{id=o(le).getId("cdk-menu-stack-");_elements=[];_close=new _;_empty=new _;_hasFocus=new _;closed=this._close;hasFocus=this._hasFocus.pipe(w(!1),Te(0),De());emptied=this._empty;_inlineMenuOrientation=null;static inline(e){let i=new t;return i._inlineMenuOrientation=e,i}push(e){this._elements.push(e)}close(e,i){let{focusNextOnEmpty:n,focusParentTrigger:r}=x({},i);if(this._elements.indexOf(e)>=0){let a;do a=this._elements.pop(),this._close.next({item:a,focusParentTrigger:r});while(a!==e);this.isEmpty()&&this._empty.next(n)}}closeSubMenuOf(e){let i=!1;if(this._elements.indexOf(e)>=0)for(i=this.peek()!==e;this.peek()!==e;)this._close.next({item:this._elements.pop()});return i}closeAll(e){let{focusNextOnEmpty:i,focusParentTrigger:n}=x({},e);if(!this.isEmpty()){for(;!this.isEmpty();){let r=this._elements.pop();r&&this._close.next({item:r,focusParentTrigger:n})}this._empty.next(i)}}isEmpty(){return!this._elements.length}length(){return this._elements.length}peek(){return this._elements[this._elements.length-1]}hasInlineMenu(){return this._inlineMenuOrientation!=null}inlineMenuOrientation(){return this._inlineMenuOrientation}setHasFocus(e){this._hasFocus.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),W=new T("cdk-menu-trigger"),Nt=new T("cdk-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=o(S);return()=>Je(t)}}),ht=(()=>{class t{static _openMenuTrigger;update(e){t._openMenuTrigger!==e&&(t._openMenuTrigger?.close(),t._openMenuTrigger=e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ft=(()=>{class t{injector=o(S);viewContainerRef=o(Be);menuStack=o(g);menuScrollStrategy=o(Nt);menuPosition;opened=new b;closed=new b;menuTemplateRef;menuData;overlayRef=null;destroyed=new _;stopOutsideClicksListener=q(this.closed,this.destroyed);childMenu;_menuPortal;_childMenuInjector;ngOnDestroy(){this._destroyOverlay(),this.destroyed.next(),this.destroyed.complete()}isOpen(){return!!this.overlayRef?.hasAttached()}registerChildMenu(e){this.childMenu=e}getMenuContentPortal(){let e=this.menuTemplateRef!==this._menuPortal?.templateRef;return this.menuTemplateRef&&(!this._menuPortal||e)&&(this._menuPortal=new Xe(this.menuTemplateRef,this.viewContainerRef,this.menuData,this._getChildMenuInjector())),this._menuPortal}isElementInsideMenuStack(e){for(let i=e;i;i=i?.parentElement??null)if(i.getAttribute("data-cdk-menu-stack-id")===this.menuStack.id)return!0;return!1}_destroyOverlay(){this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}_getChildMenuInjector(){return this._childMenuInjector=this._childMenuInjector||S.create({providers:[{provide:W,useValue:this},{provide:g,useValue:this.menuStack}],parent:this.injector}),this._childMenuInjector}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,hostVars:2,hostBindings:function(i,n){i&2&&D("aria-controls",n.childMenu==null?null:n.childMenu.id)("data-cdk-menu-stack-id",n.menuStack.id)}})}return t})();var Me=new T("cdk-menu-aim");function _t(t,s){if(!s.isTrusted)return!1;let e=t.nativeElement,i=s.keyCode;return e.nodeName==="BUTTON"&&!e.disabled?i===13||i===32:e.nodeName==="A"?i===13:!1}var qt=(()=>{class t extends ft{_elementRef=o(H);_ngZone=o(Q);_changeDetectorRef=o(re);_inputModalityDetector=o(ue);_directionality=o(N,{optional:!0});_renderer=o(L);_injector=o(S);_cleanupMouseenter;_menuTracker=o(ht);_parentMenu=o(ye,{optional:!0});_menuAim=o(Me,{optional:!0});constructor(){super(),this._setRole(),this._registerCloseHandler(),this._subscribeToMenuStackClosed(),this._subscribeToMouseEnter(),this._subscribeToMenuStackHasFocus(),this._setType()}toggle(){this.isOpen()?this.close():this.open()}open(){this._parentMenu||this._menuTracker.update(this),!this.isOpen()&&this.menuTemplateRef!=null&&(this.opened.next(),this.overlayRef=this.overlayRef||he(this._injector,this._getOverlayConfig()),this.overlayRef.attach(this.getMenuContentPortal()),this._changeDetectorRef.markForCheck(),this._subscribeToOutsideClicks())}close(){this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this._changeDetectorRef.markForCheck()),this._closeSiblingTriggers()}getMenu(){return this.childMenu}ngOnChanges(e){e.menuPosition&&this.overlayRef&&this.overlayRef.updatePositionStrategy(this._getOverlayPositionStrategy())}ngOnDestroy(){this._cleanupMouseenter(),super.ngOnDestroy()}_toggleOnKeydown(e){let i=this._parentMenu?.orientation==="vertical";switch(e.keyCode){case 32:case 13:!h(e)&&!_t(this._elementRef,e)&&(this.toggle(),this.childMenu?.focusFirstItem("keyboard"));break;case 39:h(e)||this._parentMenu&&i&&this._directionality?.value!=="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 37:h(e)||this._parentMenu&&i&&this._directionality?.value==="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 40:case 38:h(e)||i||(e.preventDefault(),this.open(),e.keyCode===40?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusLastItem("keyboard"));break}}_handleClick(){this.toggle(),this.childMenu?.focusFirstItem("mouse")}_setHasFocus(e){this._parentMenu||this.menuStack.setHasFocus(e)}_subscribeToMouseEnter(){this._cleanupMouseenter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{if(this._inputModalityDetector.mostRecentModality!=="touch"&&!this.menuStack.isEmpty()&&!this.isOpen()){let e=()=>this._ngZone.run(()=>{this._closeSiblingTriggers(),this.open()});this._menuAim?this._menuAim.toggle(e):e()}}))}_closeSiblingTriggers(){this._parentMenu?!this.menuStack.closeSubMenuOf(this._parentMenu)&&this.menuStack.peek()!==this._parentMenu&&this.menuStack.closeAll():this.menuStack.closeAll()}_getOverlayConfig(){return new de({positionStrategy:this._getOverlayPositionStrategy(),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(){return me(this._injector,this._elementRef).withLockedPosition().withFlexibleDimensions(!1).withPositions(this._getOverlayPositions())}_getOverlayPositions(){return this.menuPosition??(!this._parentMenu||this._parentMenu.orientation==="horizontal"?pe:et)}_registerCloseHandler(){this._parentMenu||this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.close()})}_subscribeToOutsideClicks(){this.overlayRef&&this.overlayRef.outsidePointerEvents().pipe(m(this.stopOutsideClicksListener)).subscribe(e=>{let i=ce(e),n=this._elementRef.nativeElement;i!==n&&!n.contains(i)&&(this.isElementInsideMenuStack(i)?this._closeSiblingTriggers():this.menuStack.closeAll())})}_subscribeToMenuStackHasFocus(){this._parentMenu||this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{e||this.menuStack.closeAll()})}_subscribeToMenuStackClosed(){this._parentMenu||this.menuStack.closed.subscribe(({focusParentTrigger:e})=>{e&&!this.menuStack.length()&&this._elementRef.nativeElement.focus()})}_setRole(){this._parentMenu||this._elementRef.nativeElement.setAttribute("role","button")}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenuTriggerFor",""]],hostAttrs:[1,"cdk-menu-trigger"],hostVars:2,hostBindings:function(i,n){i&1&&p("focusin",function(){return n._setHasFocus(!0)})("focusout",function(){return n._setHasFocus(!1)})("keydown",function(a){return n._toggleOnKeydown(a)})("click",function(){return n._handleClick()}),i&2&&D("aria-haspopup",n.menuTemplateRef?"menu":null)("aria-expanded",n.menuTemplateRef==null?null:n.isOpen())},inputs:{menuTemplateRef:[0,"cdkMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkMenuPosition","menuPosition"],menuData:[0,"cdkMenuTriggerData","menuData"]},outputs:{opened:"cdkMenuOpened",closed:"cdkMenuClosed"},exportAs:["cdkMenuTriggerFor"],features:[I([{provide:W,useExisting:t},Kt]),P,Re]})}return t})(),Ht=(()=>{class t{_dir=o(N,{optional:!0});_elementRef=o(H);_ngZone=o(Q);_inputModalityDetector=o(ue);_renderer=o(L);_cleanupMouseEnter;_menuAim=o(Me,{optional:!0});_menuStack=o(g);_parentMenu=o(ye,{optional:!0});_menuTrigger=o(qt,{optional:!0,self:!0});disabled=!1;typeaheadLabel;triggered=new b;get hasMenu(){return this._menuTrigger?.menuTemplateRef!=null}_tabindex=-1;closeOnSpacebarTrigger=!0;destroyed=new _;constructor(){this._setupMouseEnter(),this._setType(),this._isStandaloneItem()&&(this._tabindex=0)}ngOnDestroy(){this._cleanupMouseEnter?.(),this.destroyed.next(),this.destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}trigger(e){let{keepOpen:i}=x({},e);!this.disabled&&!this.hasMenu&&(this.triggered.next(),i||this._menuStack.closeAll({focusParentTrigger:!0}))}isMenuOpen(){return!!this._menuTrigger?.isOpen()}getMenu(){return this._menuTrigger?.getMenu()}getMenuTrigger(){return this._menuTrigger}getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}_resetTabIndex(){this._isStandaloneItem()||(this._tabindex=-1)}_setTabIndex(e){this.disabled||(!e||!this._menuStack.isEmpty())&&(this._tabindex=0)}_handleClick(e){this.disabled?(e.preventDefault(),e.stopPropagation()):this.trigger()}_onKeydown(e){switch(e.keyCode){case 32:case 13:if(!h(e)&&!_t(this._elementRef,e)){let i=this._elementRef.nativeElement.nodeName;i!=="A"&&i!=="BUTTON"&&e.preventDefault(),this.trigger({keepOpen:e.keyCode===32&&!this.closeOnSpacebarTrigger})}break;case 39:h(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._forwardArrowPressed(e):this._backArrowPressed(e));break;case 37:h(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._backArrowPressed(e):this._forwardArrowPressed(e));break}}_isStandaloneItem(){return!this._parentMenu}_backArrowPressed(e){let i=this._parentMenu;(this._menuStack.hasInlineMenu()||this._menuStack.length()>1)&&(e.preventDefault(),this._menuStack.close(i,{focusNextOnEmpty:this._menuStack.inlineMenuOrientation()==="horizontal"?y.previousItem:y.currentItem,focusParentTrigger:!0}))}_forwardArrowPressed(e){!this.hasMenu&&this._menuStack.inlineMenuOrientation()==="horizontal"&&(e.preventDefault(),this._menuStack.closeAll({focusNextOnEmpty:y.nextItem,focusParentTrigger:!0}))}_setupMouseEnter(){if(!this._isStandaloneItem()){let e=()=>this._ngZone.run(()=>this._menuStack.closeSubMenuOf(this._parentMenu));this._cleanupMouseEnter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{this._inputModalityDetector.mostRecentModality!=="touch"&&!this._menuStack.isEmpty()&&!this.hasMenu&&(this._menuAim?this._menuAim.toggle(e):e())}))}}_isParentVertical(){return this._parentMenu?.orientation==="vertical"}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenuItem",""]],hostAttrs:["role","menuitem",1,"cdk-menu-item"],hostVars:4,hostBindings:function(i,n){i&1&&p("blur",function(){return n._resetTabIndex()})("focus",function(){return n._setTabIndex()})("click",function(a){return n._handleClick(a)})("keydown",function(a){return n._onKeydown(a)}),i&2&&(ie("tabIndex",n._tabindex),D("aria-disabled",n.disabled||null),ne("cdk-menu-item-disabled",n.disabled))},inputs:{disabled:[2,"cdkMenuItemDisabled","disabled",ae],typeaheadLabel:[0,"cdkMenuitemTypeaheadLabel","typeaheadLabel"]},outputs:{triggered:"cdkMenuItemTriggered"},exportAs:["cdkMenuItem"]})}return t})(),ke=class{_renderer;_items;_eventCleanups;_itemsSubscription;entered=new _;exited=new _;activeElement;previousElement;constructor(s,e){this._renderer=s,this._items=e,this._bindEvents(),this.entered.subscribe(i=>this.activeElement=i),this.exited.subscribe(()=>{this.previousElement=this.activeElement,this.activeElement=void 0})}destroy(){this._cleanupEvents(),this._itemsSubscription?.unsubscribe()}_bindEvents(){this._itemsSubscription=this._items.changes.pipe(w(this._items)).subscribe(()=>{this._cleanupEvents(),this._eventCleanups=[],this._items.forEach(s=>{let e=s._elementRef.nativeElement;this._eventCleanups.push(this._renderer.listen(e,"mouseenter",()=>{this.entered.next(s)}),this._renderer.listen(e,"mouseout",()=>{this.exited.next(s)}))})})}_cleanupEvents(){this._eventCleanups?.forEach(s=>s()),this._eventCleanups=void 0}},Qt=(()=>{class t extends pt{_focusMonitor=o(Ze);ngZone=o(Q);_renderer=o(L);nativeElement=o(H).nativeElement;menuStack=o(g);menuAim=o(Me,{optional:!0,self:!0});dir=o(N,{optional:!0});_allItems;id=o(le).getId("cdk-menu-");items=new Ke;orientation="vertical";isInline=!1;keyManager;destroyed=new _;triggerItem;pointerTracker;_menuStackHasFocus=Pe(!1);_tabIndexSignal=Ue(()=>{let e=this._menuStackHasFocus()?-1:0;return this.isInline?e:null});ngAfterContentInit(){this.isInline||this.menuStack.push(this),this._setItems(),this._setKeyManager(),this._handleFocus(),this._subscribeToMenuStackHasFocus(),this._subscribeToMenuOpen(),this._subscribeToMenuStackClosed(),this._setUpPointerTracker()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.nativeElement),this.keyManager?.destroy(),this.destroyed.next(),this.destroyed.complete(),this.pointerTracker?.destroy()}focusFirstItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setFirstItemActive()}focusLastItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setLastItemActive()}setActiveMenuItem(e){this.keyManager?.setActiveItem(e)}_getTabIndex(){return this._tabIndexSignal()}closeOpenMenu(e,i){let{focusParentTrigger:n}=x({},i),r=this.keyManager,a=this.triggerItem;e===a?.getMenuTrigger()?.getMenu()&&(a?.getMenuTrigger()?.close(),n&&(a?r.setActiveItem(a):r.setFirstItemActive()))}_setItems(){this._allItems.changes.pipe(w(this._allItems),m(this.destroyed)).subscribe(e=>{this.items.reset(e.filter(i=>i._parentMenu===this)),this.items.notifyOnChanges()})}_setKeyManager(){this.keyManager=new $e(this.items).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1),this.orientation==="horizontal"?this.keyManager.withHorizontalOrientation(this.dir?.value||"ltr"):this.keyManager.withVerticalOrientation()}_subscribeToMenuOpen(){let e=q(this.items.changes,this.destroyed);this.items.changes.pipe(w(this.items),ve(i=>i.filter(n=>n.hasMenu).map(n=>n.getMenuTrigger().opened.pipe(Se(n),m(e)))),Ie(),Oe(i=>(this.triggerItem=i,i.getMenuTrigger().closed)),m(this.destroyed)).subscribe(()=>this.triggerItem=void 0)}_subscribeToMenuStackClosed(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e,focusParentTrigger:i})=>this.closeOpenMenu(e,{focusParentTrigger:i}))}_subscribeToMenuStackHasFocus(){this.isInline&&this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{this._menuStackHasFocus.set(e)})}_setUpPointerTracker(){this.menuAim&&(this.ngZone.runOutsideAngular(()=>{this.pointerTracker=new ke(this._renderer,this.items)}),this.menuAim.initialize(this,this.pointerTracker))}_handleFocus(){this._focusMonitor.monitor(this.nativeElement,!1).pipe(m(this.destroyed)).subscribe(e=>{e!==null&&e!=="mouse"&&this.focusFirstItem(e)})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ae(t)))(n||t)}})();static \u0275dir=k({type:t,contentQueries:function(i,n,r){if(i&1&&He(r,Ht,5),i&2){let a;Qe(a=Le())&&(n._allItems=a)}},hostAttrs:["role","menu"],hostVars:4,hostBindings:function(i,n){i&1&&p("focusin",function(){return n.menuStack.setHasFocus(!0)})("focusout",function(){return n.menuStack.setHasFocus(!1)}),i&2&&(ie("tabIndex",n._getTabIndex())("id",n.id),D("aria-orientation",n.orientation)("data-cdk-menu-stack-id",n.menuStack.id))},inputs:{id:"id"},features:[P]})}return t})(),Ti=(()=>{class t extends Qt{_parentTrigger=o(W,{optional:!0});closed=new b;orientation="vertical";isInline=!this._parentTrigger;constructor(){super(),this.destroyed.subscribe(this.closed),this._parentTrigger?.registerChildMenu(this)}ngAfterContentInit(){super.ngAfterContentInit(),this._subscribeToMenuStackEmptied()}ngOnDestroy(){super.ngOnDestroy(),this.closed.complete()}_handleKeyEvent(e){let i=this.keyManager;switch(e.keyCode){case 37:case 39:h(e)||(e.preventDefault(),i.setFocusOrigin("keyboard"),i.onKeydown(e));break;case 27:h(e)||(e.preventDefault(),this.menuStack.close(this,{focusNextOnEmpty:y.currentItem,focusParentTrigger:!0}));break;case 9:h(e,"altKey","metaKey","ctrlKey")||this.menuStack.closeAll({focusParentTrigger:!0});break;default:i.onKeydown(e)}}_toggleMenuFocus(e){let i=this.keyManager;switch(e){case y.nextItem:i.setFocusOrigin("keyboard"),i.setNextItemActive();break;case y.previousItem:i.setFocusOrigin("keyboard"),i.setPreviousItemActive();break;case y.currentItem:i.activeItem&&(i.setFocusOrigin("keyboard"),i.setActiveItem(i.activeItem));break}}_subscribeToMenuStackEmptied(){this.menuStack.emptied.pipe(m(this.destroyed)).subscribe(e=>this._toggleMenuFocus(e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenu",""]],hostAttrs:["role","menu",1,"cdk-menu"],hostVars:2,hostBindings:function(i,n){i&1&&p("keydown",function(a){return n._handleKeyEvent(a)}),i&2&&ne("cdk-menu-inline",n.isInline)},outputs:{closed:"closed"},exportAs:["cdkMenu"],features:[I([{provide:pt,useExisting:t},{provide:ye,useExisting:t},Bt("vertical")]),P]})}return t})();var Lt=pe.map(t=>{let s=t.overlayX==="start"?2:-2,e=t.overlayY==="top"?2:-2;return Ce(x({},t),{offsetX:s,offsetY:e})}),Si=(()=>{class t extends ft{_injector=o(S);_directionality=o(N,{optional:!0});_menuTracker=o(ht);_changeDetectorRef=o(re);disabled=!1;constructor(){super(),this._setMenuStackCloseListener()}open(e){this._open(null,e),this._changeDetectorRef.markForCheck()}close(){this.menuStack.closeAll()}_openOnContextMenu(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this._menuTracker.update(this),this._open(e,{x:e.clientX,y:e.clientY}),e.button===2?this.childMenu?.focusFirstItem("mouse"):e.button===0?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusFirstItem("program"))}_getOverlayConfig(e){return new de({positionStrategy:this._getOverlayPositionStrategy(e),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(e){return me(this._injector,e).withLockedPosition().withGrowAfterOpen().withPositions(this.menuPosition??Lt)}_setMenuStackCloseListener(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this.childMenu=void 0,this._changeDetectorRef.markForCheck())})}_subscribeToOutsideClicks(e){if(this.overlayRef){let i=this.overlayRef.outsidePointerEvents();if(e){let[n,r]=xe(i,({type:a})=>a==="auxclick");i=q(r.pipe(we((a,kt)=>e.ctrlKey&&kt===0&&a.ctrlKey)),n.pipe(Ee(1)))}i.pipe(m(this.stopOutsideClicksListener)).subscribe(n=>{this.isElementInsideMenuStack(ce(n))||this.menuStack.closeAll()})}}_open(e,i){this.disabled||(this.isOpen()?(this.menuStack.closeSubMenuOf(this.childMenu),this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):(this.opened.next(),this.overlayRef?(this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):this.overlayRef=he(this._injector,this._getOverlayConfig(i)),this.overlayRef.attach(this.getMenuContentPortal()),this._subscribeToOutsideClicks(e)))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkContextMenuTriggerFor",""]],hostVars:1,hostBindings:function(i,n){i&1&&p("contextmenu",function(a){return n._openOnContextMenu(a)}),i&2&&D("data-cdk-menu-stack-id",null)},inputs:{menuTemplateRef:[0,"cdkContextMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkContextMenuPosition","menuPosition"],menuData:[0,"cdkContextMenuTriggerData","menuData"],disabled:[2,"cdkContextMenuDisabled","disabled",ae]},outputs:{opened:"cdkContextMenuOpened",closed:"cdkContextMenuClosed"},exportAs:["cdkContextMenuTriggerFor"],features:[I([{provide:W,useExisting:t},{provide:g,useClass:be}]),P]})}return t})();var Di=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Ne({type:t});static \u0275inj=Fe({imports:[tt]})}return t})();var gt=class t{icon="";label="";truncate=!1;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=V({type:t,selectors:[["POS-dropdown-item-more-action"]],inputs:{icon:"icon",label:"label",truncate:"truncate"},decls:6,vars:3,consts:[[1,"dropdown-item","px-1"],[1,"row","g-0","d-flex","align-items-center"],[1,"col-2","px-0"],["aria-hidden","true",1,"fs-3"],[1,"col-10","pe-0","ps-4","fs-6"]],template:function(e,i){e&1&&(ee(0,"div",0)(1,"div",1)(2,"div",2),qe(3,"i",3),te(),ee(4,"div",4),f(5),te()()()),e&2&&(c(3),Ve(i.icon),c(2),Y(" ",i.label," "))},dependencies:[it],encapsulation:2})};export{ct as a,Ht as b,Ti as c,Si as d,Di as e,gt as f};
|
|
1
|
+
import{a as at}from"./chunk-GJIFUWGQ.js";import{c as nt,d as st,e as ot}from"./chunk-E4GYCB3G.js";import{a as fe}from"./chunk-OYO4SRAO.js";import{c as it}from"./chunk-VQBUIUJC.js";import{N as rt}from"./chunk-HYXSN2J6.js";import{$ as pe,A as le,C as $e,G as N,O as Xe,V as Je,W as de,Z as me,aa as et,da as he,f as h,ha as tt,k as ce,n as ue,o as Ze}from"./chunk-WACBOZDR.js";import{a as Ge}from"./chunk-OJ5SEYSF.js";import{$ as w,$b as ne,$d as We,Ab as z,Bb as v,Bc as K,Ca as Pe,Cb as u,D as q,Db as d,Ea as Z,Eb as E,Ec as B,F as xe,Fa as $,Fb as ee,Ga as X,Gb as te,Ha as Re,Hb as qe,Ia as Ae,Ja as H,Ka as Ke,Kc as Ue,Lb as R,M as Te,Mb as ie,Nb as p,O as Se,Pb as l,Q as De,Ra as J,Sb as He,Ub as Qe,Vb as Le,Vc as re,Wa as c,Xa as b,Xc as ae,Ya as Q,Z as Ee,Zd as Ye,_ as we,aa as Oe,bb as L,bc as Ve,cc as f,d as _,da as m,dc as A,eb as Be,ec as Y,gb as V,hb as Ne,ib as k,kb as P,la as G,ma as Fe,na as T,pa as o,qd as je,rc as I,rd as ze,sb as D,sc as se,ta as O,tc as oe,ua as F,ub as M,v as ve,w as Ie,wb as C,xa as S,yb as U,zb as j}from"./chunk-VS3RTXZC.js";import{a as x,b as Ce}from"./chunk-SNAKHGZS.js";var lt=()=>["/menu/Outlets/Master/Quick_Key_Templates/Form"],bt=t=>({ID:t}),Mt=t=>({OutletID:t});function Ct(t,s){if(t&1&&E(0,"img",16),t&2){let e=l(2).$implicit;v("src",e.ImageURLClient,J)}}function vt(t,s){if(t&1&&(u(0,"div",14)(1,"div",15),M(2,Ct,1,1,"img",16),d()()),t&2){let e=l().$implicit;c(2),C(e.ImageURLClient?2:-1)}}function It(t,s){if(t&1&&(u(0,"div",15)(1,"p",17)(2,"span"),f(3),K(4,"slice"),d()()()),t&2){let e=l().$implicit;c(3),A(B(4,1,e.Display,0,3))}}function xt(t,s){if(t&1){let e=R();u(0,"div",9)(1,"a",13),p("click",function(){let n=O(e).$implicit,r=l(4);return F(r.onSelectQuickKeyItem(n))}),M(2,vt,3,1,"div",14)(3,It,5,5,"div",15),u(4,"small"),f(5),K(6,"slice"),d()()()}if(t&2){let e=s.$implicit;c(2),C(e.ImageURLClient?2:3),c(3),A(B(6,2,e.Display,0,36))}}function Tt(t,s){if(t&1&&(u(0,"mat-tab",6)(1,"div",7)(2,"div",8),j(3,xt,7,6,"div",9,U),u(5,"div",10)(6,"a",11),E(7,"i",12),d()()()()()),t&2){let e=s.$implicit,i=l(3);v("label",e.Name),c(3),z(e==null?null:e.Items),c(3),v("routerLink",se(3,lt))("queryParams",oe(4,bt,i.quickKey.ID))}}function St(t,s){if(t&1){let e=R();u(0,"mat-tab-group",5),p("selectedIndexChange",function(n){O(e);let r=l(2);return F(r.onChangeTab(n))}),j(1,Tt,8,6,"mat-tab",6,U),d()}if(t&2){let e=l(2);v("disableRipple",!0)("selectedIndex",e.selectedTabIndex),c(),z(e.quickKey==null?null:e.quickKey.Groups)}}function Dt(t,s){if(t&1&&E(0,"img",16),t&2){let e=l(2).$implicit;v("src",e.ImageURLClient,J)}}function Et(t,s){if(t&1&&(u(0,"div",14)(1,"div",15),M(2,Dt,1,1,"img",16),d()()),t&2){let e=l().$implicit;c(2),C(e.ImageURLClient?2:-1)}}function wt(t,s){if(t&1&&(u(0,"div",15)(1,"p",17)(2,"span"),f(3),K(4,"slice"),d()()()),t&2){let e=l().$implicit;c(3),A(B(4,1,e.Model,0,3))}}function Ot(t,s){if(t&1){let e=R();u(0,"div",9)(1,"a",13),p("click",function(){let n=O(e).$implicit,r=l(3);return F(r.onSelectVariant(n.ID))}),M(2,Et,3,1,"div",14)(3,wt,5,5,"div",15),u(4,"small"),f(5),K(6,"slice"),d()()()}if(t&2){let e=s.$implicit;c(2),C(e.ImageURLClient?2:3),c(3),A(B(6,2,e.Model,0,30))}}function Ft(t,s){if(t&1){let e=R();u(0,"div",18)(1,"div",19),p("click",function(){O(e);let n=l(2);return F(n.quickKeyState="QUICKKEY")}),E(2,"i",20),d(),u(3,"div",21)(4,"b"),f(5),d()()(),u(6,"div",7)(7,"div",8),j(8,Ot,7,6,"div",9,U),d()()}if(t&2){let e=l(2);c(5),Y(" ",e.subQuickKeyPack.Display),c(3),z(e.subQuickKeyPack==null?null:e.subQuickKeyPack.Children)}}function Pt(t,s){if(t&1&&M(0,St,3,2,"mat-tab-group",4)(1,Ft,10,1),t&2){let e=l();C(e.quickKeyState=="QUICKKEY"?0:1)}}function Rt(t,s){if(t&1&&(u(0,"div",3)(1,"a",22)(2,"strong"),f(3,"QUICK KEYS UNCONFIGURED"),d(),E(4,"i",23),u(5,"span"),f(6,"Click here to setup your Quick keys"),d()()()),t&2){let e=l();c(),v("routerLink",se(2,lt))("queryParams",oe(3,Mt,e.outletID))}}var ct=class t{sf=o(at);quickKey;get outletID(){return this._outletID}set outletID(s){this._outletID=s,this._outletID&&(this.quickKeyState="QUICKKEY")}_outletID="";_onSelectVariant=new b;quickKeyState="QUICKKEY";subQuickKeyPack;selectedTabIndex=0;disabled=!1;onChange=s=>{};onTouched=()=>{};writeValue(s){}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.disabled=s}onSelectQuickKeyItem(s){s.Children?s.Children.length==1?this.onSelectVariant(s.Children[0].ID):(this.quickKeyState="SUBQUICKKEY",this.subQuickKeyPack={Children:s.Children,Display:s.Display}):this.onSelectVariant(s.ItemID)}onSelectVariant(s){this.quickKeyState="QUICKKEY",this._onSelectVariant.emit(s),this.onChange(s),this.sf.searchFilterNativeEl?.focus()}onChangeTab(s){this.selectedTabIndex=s}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=V({type:t,selectors:[["POS-quick-key"]],inputs:{quickKey:"quickKey",outletID:"outletID"},outputs:{_onSelectVariant:"onSelectVariant"},features:[I([{provide:Ge,multi:!0,useExisting:t}])],decls:5,vars:1,consts:[[1,"row","h-100"],[1,"col-12"],[1,"quick-key-tab","h-100","pt-4"],[1,"no-quick-key"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"disableRipple","selectedIndex"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"selectedIndexChange","disableRipple","selectedIndex"],[3,"label"],[1,"container","tabItems"],[1,"row","g-0"],[1,"col-3","column","px-6"],[1,"col-3","column","px-8","add","pt-8"],[3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-plus-circle","fa-5x","d-flex","align-items-center","justify-content-center","bg-white","h-100","text-primary"],[3,"click"],[1,"img-box","d-flex","align-items-center"],[1,"ratio","ratio-1x1"],[1,"full-screen-image",3,"src"],[1,"fw-normal","fs-1","d-flex","align-items-center","justify-content-center"],[1,"row","g-0","border","align-items-center","subquicKey"],[1,"col-auto","border-end","py-5","px-7","cursor-pointer",3,"click"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"col","text-center","fw-bold","text-uppercase","fs-5"],["id","LinkConfigureQuickkey","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-regular","fa-hand-pointer"]],template:function(e,i){e&1&&(u(0,"div",0)(1,"div",1)(2,"section",2),M(3,Pt,2,1)(4,Rt,7,5,"div",3),d()()()),e&2&&(c(3),C(i.quickKey&&i.quickKey.Groups?3:4))},dependencies:[ze,We,Ye,rt,ot,nt,st,je],styles:[".quick-key-tab{width:100%;position:relative;height:100%;max-height:calc(100vh - 70px)} .quick-key-tab .mat-mdc-tab-header-pagination{display:none!important} .quick-key-tab .mat-mdc-tab-header{border:none} .quick-key-tab .mdc-tab-indicator{display:none!important} .quick-key-tab .mat-mdc-tab-body-wrapper{width:102%} .quick-key-tab .mat-mdc-tab-labels{border-bottom:0px;display:flex;flex-wrap:wrap;border-radius:6px} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab{color:#151515;opacity:1;height:38px;max-height:40px;white-space:normal!important;overflow:hidden;padding:0!important;min-width:25%!important;flex-basis:0;font-size:12px;font-weight:700;outline:none;text-transform:uppercase;background:#fff;display:flex} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab__content{white-space:normal!important;align-self:center;font-size:.875rem!important} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active{background:linear-gradient(to bottom,#fff,#eee);border-radius:6px;border:.5px solid #dadada} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active .mdc-tab__text-label{color:gray!important;font-weight:700} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab:nth-child(n+5){flex-grow:0!important} .quick-key-tab .tabItems{padding:0} .quick-key-tab .tabItems .column{margin-top:15px;margin-bottom:10px;word-break:break-all} .quick-key-tab .tabItems .column>div{border:solid 1px #cfcfcf} .quick-key-tab .tabItems .column>a{text-align:center;display:block;cursor:pointer} .quick-key-tab .tabItems .column>a div.img-box{display:block;margin:0 auto;border-top-left-radius:5px;border-bottom-right-radius:5px;border:solid 1px #dddddd} .quick-key-tab .tabItems .column>a .full-screen-image{position:absolute;object-fit:scale-down} .quick-key-tab .tabItems .column>a p{display:block;margin:0 auto;background-color:#a6a6a6;border:solid 1px #999999;border-top-left-radius:5px;border-bottom-right-radius:5px;color:#fff} .quick-key-tab .tabItems .column>a small{font-size:11px;display:block;margin:5px 0 0} .quick-key-tab .tabItems .column .ion-icon{font-size:75px;margin:10px} .quick-key-tab .col-md-3.column.add{cursor:pointer} .quick-key-tab .col-md-3.column.add i{margin-top:10px} .quick-key-tab ::-webkit-scrollbar{width:3px} .quick-key-tab ::-webkit-scrollbar-track{box-shadow:inset 0 0 5px #bfd2da} .quick-key-tab ::-webkit-scrollbar-thumb{background:#c4c4c4;border-radius:10px} .quick-key-tab .subquicKey{background:linear-gradient(to bottom,#fff,#eee);color:gray;border-radius:6px} .quick-key-tab .no-quick-key{background-image:url(//res.cloudinary.com/pos/image/upload/w_500/POS/Images/Cashier/no-quick-key.png)!important;background-repeat:no-repeat;height:calc(100vh - 70px);background-size:contain}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{background-color:#479ccf;padding:15px 25px;color:#fff;text-decoration:none;width:240px;display:block;opacity:.85;border-radius:6px}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{position:absolute;top:200px;left:calc(50% - 120px)}a#LinkConfigureQuickkey[_ngcontent-%COMP%]:hover{opacity:.95}a#LinkConfigureQuickkey[_ngcontent-%COMP%] Strong[_ngcontent-%COMP%]{border-bottom:1px solid white;font-size:14px;margin:0 0 10px;padding:0 0 3px;display:block}a#LinkConfigureQuickkey[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;height:35px;margin:0 10px 0 0;font-size:28px}a#LinkConfigureQuickkey[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;font-size:14px;width:135px;vertical-align:top}"]})};var pt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenuGroup",""]],hostAttrs:["role","group",1,"cdk-menu-group"],exportAs:["cdkMenuGroup"],features:[I([{provide:fe,useClass:fe}])]})}return t})(),ye=new T("cdk-menu"),y=(function(t){return t[t.nextItem=0]="nextItem",t[t.previousItem=1]="previousItem",t[t.currentItem=2]="currentItem",t})(y||{}),g=new T("cdk-menu-stack"),Kt={provide:g,deps:[[new $,new X,new Z(g)]],useFactory:t=>t||new be},Bt=t=>({provide:g,deps:[[new $,new X,new Z(g)]],useFactory:s=>s||be.inline(t)}),be=(()=>{class t{id=o(le).getId("cdk-menu-stack-");_elements=[];_close=new _;_empty=new _;_hasFocus=new _;closed=this._close;hasFocus=this._hasFocus.pipe(w(!1),Te(0),De());emptied=this._empty;_inlineMenuOrientation=null;static inline(e){let i=new t;return i._inlineMenuOrientation=e,i}push(e){this._elements.push(e)}close(e,i){let{focusNextOnEmpty:n,focusParentTrigger:r}=x({},i);if(this._elements.indexOf(e)>=0){let a;do a=this._elements.pop(),this._close.next({item:a,focusParentTrigger:r});while(a!==e);this.isEmpty()&&this._empty.next(n)}}closeSubMenuOf(e){let i=!1;if(this._elements.indexOf(e)>=0)for(i=this.peek()!==e;this.peek()!==e;)this._close.next({item:this._elements.pop()});return i}closeAll(e){let{focusNextOnEmpty:i,focusParentTrigger:n}=x({},e);if(!this.isEmpty()){for(;!this.isEmpty();){let r=this._elements.pop();r&&this._close.next({item:r,focusParentTrigger:n})}this._empty.next(i)}}isEmpty(){return!this._elements.length}length(){return this._elements.length}peek(){return this._elements[this._elements.length-1]}hasInlineMenu(){return this._inlineMenuOrientation!=null}inlineMenuOrientation(){return this._inlineMenuOrientation}setHasFocus(e){this._hasFocus.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),W=new T("cdk-menu-trigger"),Nt=new T("cdk-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=o(S);return()=>Je(t)}}),ht=(()=>{class t{static _openMenuTrigger;update(e){t._openMenuTrigger!==e&&(t._openMenuTrigger?.close(),t._openMenuTrigger=e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ft=(()=>{class t{injector=o(S);viewContainerRef=o(Be);menuStack=o(g);menuScrollStrategy=o(Nt);menuPosition;opened=new b;closed=new b;menuTemplateRef;menuData;overlayRef=null;destroyed=new _;stopOutsideClicksListener=q(this.closed,this.destroyed);childMenu;_menuPortal;_childMenuInjector;ngOnDestroy(){this._destroyOverlay(),this.destroyed.next(),this.destroyed.complete()}isOpen(){return!!this.overlayRef?.hasAttached()}registerChildMenu(e){this.childMenu=e}getMenuContentPortal(){let e=this.menuTemplateRef!==this._menuPortal?.templateRef;return this.menuTemplateRef&&(!this._menuPortal||e)&&(this._menuPortal=new Xe(this.menuTemplateRef,this.viewContainerRef,this.menuData,this._getChildMenuInjector())),this._menuPortal}isElementInsideMenuStack(e){for(let i=e;i;i=i?.parentElement??null)if(i.getAttribute("data-cdk-menu-stack-id")===this.menuStack.id)return!0;return!1}_destroyOverlay(){this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}_getChildMenuInjector(){return this._childMenuInjector=this._childMenuInjector||S.create({providers:[{provide:W,useValue:this},{provide:g,useValue:this.menuStack}],parent:this.injector}),this._childMenuInjector}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,hostVars:2,hostBindings:function(i,n){i&2&&D("aria-controls",n.childMenu==null?null:n.childMenu.id)("data-cdk-menu-stack-id",n.menuStack.id)}})}return t})();var Me=new T("cdk-menu-aim");function _t(t,s){if(!s.isTrusted)return!1;let e=t.nativeElement,i=s.keyCode;return e.nodeName==="BUTTON"&&!e.disabled?i===13||i===32:e.nodeName==="A"?i===13:!1}var qt=(()=>{class t extends ft{_elementRef=o(H);_ngZone=o(Q);_changeDetectorRef=o(re);_inputModalityDetector=o(ue);_directionality=o(N,{optional:!0});_renderer=o(L);_injector=o(S);_cleanupMouseenter;_menuTracker=o(ht);_parentMenu=o(ye,{optional:!0});_menuAim=o(Me,{optional:!0});constructor(){super(),this._setRole(),this._registerCloseHandler(),this._subscribeToMenuStackClosed(),this._subscribeToMouseEnter(),this._subscribeToMenuStackHasFocus(),this._setType()}toggle(){this.isOpen()?this.close():this.open()}open(){this._parentMenu||this._menuTracker.update(this),!this.isOpen()&&this.menuTemplateRef!=null&&(this.opened.next(),this.overlayRef=this.overlayRef||he(this._injector,this._getOverlayConfig()),this.overlayRef.attach(this.getMenuContentPortal()),this._changeDetectorRef.markForCheck(),this._subscribeToOutsideClicks())}close(){this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this._changeDetectorRef.markForCheck()),this._closeSiblingTriggers()}getMenu(){return this.childMenu}ngOnChanges(e){e.menuPosition&&this.overlayRef&&this.overlayRef.updatePositionStrategy(this._getOverlayPositionStrategy())}ngOnDestroy(){this._cleanupMouseenter(),super.ngOnDestroy()}_toggleOnKeydown(e){let i=this._parentMenu?.orientation==="vertical";switch(e.keyCode){case 32:case 13:!h(e)&&!_t(this._elementRef,e)&&(this.toggle(),this.childMenu?.focusFirstItem("keyboard"));break;case 39:h(e)||this._parentMenu&&i&&this._directionality?.value!=="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 37:h(e)||this._parentMenu&&i&&this._directionality?.value==="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 40:case 38:h(e)||i||(e.preventDefault(),this.open(),e.keyCode===40?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusLastItem("keyboard"));break}}_handleClick(){this.toggle(),this.childMenu?.focusFirstItem("mouse")}_setHasFocus(e){this._parentMenu||this.menuStack.setHasFocus(e)}_subscribeToMouseEnter(){this._cleanupMouseenter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{if(this._inputModalityDetector.mostRecentModality!=="touch"&&!this.menuStack.isEmpty()&&!this.isOpen()){let e=()=>this._ngZone.run(()=>{this._closeSiblingTriggers(),this.open()});this._menuAim?this._menuAim.toggle(e):e()}}))}_closeSiblingTriggers(){this._parentMenu?!this.menuStack.closeSubMenuOf(this._parentMenu)&&this.menuStack.peek()!==this._parentMenu&&this.menuStack.closeAll():this.menuStack.closeAll()}_getOverlayConfig(){return new de({positionStrategy:this._getOverlayPositionStrategy(),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(){return me(this._injector,this._elementRef).withLockedPosition().withFlexibleDimensions(!1).withPositions(this._getOverlayPositions())}_getOverlayPositions(){return this.menuPosition??(!this._parentMenu||this._parentMenu.orientation==="horizontal"?pe:et)}_registerCloseHandler(){this._parentMenu||this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.close()})}_subscribeToOutsideClicks(){this.overlayRef&&this.overlayRef.outsidePointerEvents().pipe(m(this.stopOutsideClicksListener)).subscribe(e=>{let i=ce(e),n=this._elementRef.nativeElement;i!==n&&!n.contains(i)&&(this.isElementInsideMenuStack(i)?this._closeSiblingTriggers():this.menuStack.closeAll())})}_subscribeToMenuStackHasFocus(){this._parentMenu||this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{e||this.menuStack.closeAll()})}_subscribeToMenuStackClosed(){this._parentMenu||this.menuStack.closed.subscribe(({focusParentTrigger:e})=>{e&&!this.menuStack.length()&&this._elementRef.nativeElement.focus()})}_setRole(){this._parentMenu||this._elementRef.nativeElement.setAttribute("role","button")}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenuTriggerFor",""]],hostAttrs:[1,"cdk-menu-trigger"],hostVars:2,hostBindings:function(i,n){i&1&&p("focusin",function(){return n._setHasFocus(!0)})("focusout",function(){return n._setHasFocus(!1)})("keydown",function(a){return n._toggleOnKeydown(a)})("click",function(){return n._handleClick()}),i&2&&D("aria-haspopup",n.menuTemplateRef?"menu":null)("aria-expanded",n.menuTemplateRef==null?null:n.isOpen())},inputs:{menuTemplateRef:[0,"cdkMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkMenuPosition","menuPosition"],menuData:[0,"cdkMenuTriggerData","menuData"]},outputs:{opened:"cdkMenuOpened",closed:"cdkMenuClosed"},exportAs:["cdkMenuTriggerFor"],features:[I([{provide:W,useExisting:t},Kt]),P,Re]})}return t})(),Ht=(()=>{class t{_dir=o(N,{optional:!0});_elementRef=o(H);_ngZone=o(Q);_inputModalityDetector=o(ue);_renderer=o(L);_cleanupMouseEnter;_menuAim=o(Me,{optional:!0});_menuStack=o(g);_parentMenu=o(ye,{optional:!0});_menuTrigger=o(qt,{optional:!0,self:!0});disabled=!1;typeaheadLabel;triggered=new b;get hasMenu(){return this._menuTrigger?.menuTemplateRef!=null}_tabindex=-1;closeOnSpacebarTrigger=!0;destroyed=new _;constructor(){this._setupMouseEnter(),this._setType(),this._isStandaloneItem()&&(this._tabindex=0)}ngOnDestroy(){this._cleanupMouseEnter?.(),this.destroyed.next(),this.destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}trigger(e){let{keepOpen:i}=x({},e);!this.disabled&&!this.hasMenu&&(this.triggered.next(),i||this._menuStack.closeAll({focusParentTrigger:!0}))}isMenuOpen(){return!!this._menuTrigger?.isOpen()}getMenu(){return this._menuTrigger?.getMenu()}getMenuTrigger(){return this._menuTrigger}getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}_resetTabIndex(){this._isStandaloneItem()||(this._tabindex=-1)}_setTabIndex(e){this.disabled||(!e||!this._menuStack.isEmpty())&&(this._tabindex=0)}_handleClick(e){this.disabled?(e.preventDefault(),e.stopPropagation()):this.trigger()}_onKeydown(e){switch(e.keyCode){case 32:case 13:if(!h(e)&&!_t(this._elementRef,e)){let i=this._elementRef.nativeElement.nodeName;i!=="A"&&i!=="BUTTON"&&e.preventDefault(),this.trigger({keepOpen:e.keyCode===32&&!this.closeOnSpacebarTrigger})}break;case 39:h(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._forwardArrowPressed(e):this._backArrowPressed(e));break;case 37:h(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._backArrowPressed(e):this._forwardArrowPressed(e));break}}_isStandaloneItem(){return!this._parentMenu}_backArrowPressed(e){let i=this._parentMenu;(this._menuStack.hasInlineMenu()||this._menuStack.length()>1)&&(e.preventDefault(),this._menuStack.close(i,{focusNextOnEmpty:this._menuStack.inlineMenuOrientation()==="horizontal"?y.previousItem:y.currentItem,focusParentTrigger:!0}))}_forwardArrowPressed(e){!this.hasMenu&&this._menuStack.inlineMenuOrientation()==="horizontal"&&(e.preventDefault(),this._menuStack.closeAll({focusNextOnEmpty:y.nextItem,focusParentTrigger:!0}))}_setupMouseEnter(){if(!this._isStandaloneItem()){let e=()=>this._ngZone.run(()=>this._menuStack.closeSubMenuOf(this._parentMenu));this._cleanupMouseEnter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{this._inputModalityDetector.mostRecentModality!=="touch"&&!this._menuStack.isEmpty()&&!this.hasMenu&&(this._menuAim?this._menuAim.toggle(e):e())}))}}_isParentVertical(){return this._parentMenu?.orientation==="vertical"}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenuItem",""]],hostAttrs:["role","menuitem",1,"cdk-menu-item"],hostVars:4,hostBindings:function(i,n){i&1&&p("blur",function(){return n._resetTabIndex()})("focus",function(){return n._setTabIndex()})("click",function(a){return n._handleClick(a)})("keydown",function(a){return n._onKeydown(a)}),i&2&&(ie("tabIndex",n._tabindex),D("aria-disabled",n.disabled||null),ne("cdk-menu-item-disabled",n.disabled))},inputs:{disabled:[2,"cdkMenuItemDisabled","disabled",ae],typeaheadLabel:[0,"cdkMenuitemTypeaheadLabel","typeaheadLabel"]},outputs:{triggered:"cdkMenuItemTriggered"},exportAs:["cdkMenuItem"]})}return t})(),ke=class{_renderer;_items;_eventCleanups;_itemsSubscription;entered=new _;exited=new _;activeElement;previousElement;constructor(s,e){this._renderer=s,this._items=e,this._bindEvents(),this.entered.subscribe(i=>this.activeElement=i),this.exited.subscribe(()=>{this.previousElement=this.activeElement,this.activeElement=void 0})}destroy(){this._cleanupEvents(),this._itemsSubscription?.unsubscribe()}_bindEvents(){this._itemsSubscription=this._items.changes.pipe(w(this._items)).subscribe(()=>{this._cleanupEvents(),this._eventCleanups=[],this._items.forEach(s=>{let e=s._elementRef.nativeElement;this._eventCleanups.push(this._renderer.listen(e,"mouseenter",()=>{this.entered.next(s)}),this._renderer.listen(e,"mouseout",()=>{this.exited.next(s)}))})})}_cleanupEvents(){this._eventCleanups?.forEach(s=>s()),this._eventCleanups=void 0}},Qt=(()=>{class t extends pt{_focusMonitor=o(Ze);ngZone=o(Q);_renderer=o(L);nativeElement=o(H).nativeElement;menuStack=o(g);menuAim=o(Me,{optional:!0,self:!0});dir=o(N,{optional:!0});_allItems;id=o(le).getId("cdk-menu-");items=new Ke;orientation="vertical";isInline=!1;keyManager;destroyed=new _;triggerItem;pointerTracker;_menuStackHasFocus=Pe(!1);_tabIndexSignal=Ue(()=>{let e=this._menuStackHasFocus()?-1:0;return this.isInline?e:null});ngAfterContentInit(){this.isInline||this.menuStack.push(this),this._setItems(),this._setKeyManager(),this._handleFocus(),this._subscribeToMenuStackHasFocus(),this._subscribeToMenuOpen(),this._subscribeToMenuStackClosed(),this._setUpPointerTracker()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.nativeElement),this.keyManager?.destroy(),this.destroyed.next(),this.destroyed.complete(),this.pointerTracker?.destroy()}focusFirstItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setFirstItemActive()}focusLastItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setLastItemActive()}setActiveMenuItem(e){this.keyManager?.setActiveItem(e)}_getTabIndex(){return this._tabIndexSignal()}closeOpenMenu(e,i){let{focusParentTrigger:n}=x({},i),r=this.keyManager,a=this.triggerItem;e===a?.getMenuTrigger()?.getMenu()&&(a?.getMenuTrigger()?.close(),n&&(a?r.setActiveItem(a):r.setFirstItemActive()))}_setItems(){this._allItems.changes.pipe(w(this._allItems),m(this.destroyed)).subscribe(e=>{this.items.reset(e.filter(i=>i._parentMenu===this)),this.items.notifyOnChanges()})}_setKeyManager(){this.keyManager=new $e(this.items).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1),this.orientation==="horizontal"?this.keyManager.withHorizontalOrientation(this.dir?.value||"ltr"):this.keyManager.withVerticalOrientation()}_subscribeToMenuOpen(){let e=q(this.items.changes,this.destroyed);this.items.changes.pipe(w(this.items),ve(i=>i.filter(n=>n.hasMenu).map(n=>n.getMenuTrigger().opened.pipe(Se(n),m(e)))),Ie(),Oe(i=>(this.triggerItem=i,i.getMenuTrigger().closed)),m(this.destroyed)).subscribe(()=>this.triggerItem=void 0)}_subscribeToMenuStackClosed(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e,focusParentTrigger:i})=>this.closeOpenMenu(e,{focusParentTrigger:i}))}_subscribeToMenuStackHasFocus(){this.isInline&&this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{this._menuStackHasFocus.set(e)})}_setUpPointerTracker(){this.menuAim&&(this.ngZone.runOutsideAngular(()=>{this.pointerTracker=new ke(this._renderer,this.items)}),this.menuAim.initialize(this,this.pointerTracker))}_handleFocus(){this._focusMonitor.monitor(this.nativeElement,!1).pipe(m(this.destroyed)).subscribe(e=>{e!==null&&e!=="mouse"&&this.focusFirstItem(e)})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ae(t)))(n||t)}})();static \u0275dir=k({type:t,contentQueries:function(i,n,r){if(i&1&&He(r,Ht,5),i&2){let a;Qe(a=Le())&&(n._allItems=a)}},hostAttrs:["role","menu"],hostVars:4,hostBindings:function(i,n){i&1&&p("focusin",function(){return n.menuStack.setHasFocus(!0)})("focusout",function(){return n.menuStack.setHasFocus(!1)}),i&2&&(ie("tabIndex",n._getTabIndex())("id",n.id),D("aria-orientation",n.orientation)("data-cdk-menu-stack-id",n.menuStack.id))},inputs:{id:"id"},features:[P]})}return t})(),Ti=(()=>{class t extends Qt{_parentTrigger=o(W,{optional:!0});closed=new b;orientation="vertical";isInline=!this._parentTrigger;constructor(){super(),this.destroyed.subscribe(this.closed),this._parentTrigger?.registerChildMenu(this)}ngAfterContentInit(){super.ngAfterContentInit(),this._subscribeToMenuStackEmptied()}ngOnDestroy(){super.ngOnDestroy(),this.closed.complete()}_handleKeyEvent(e){let i=this.keyManager;switch(e.keyCode){case 37:case 39:h(e)||(e.preventDefault(),i.setFocusOrigin("keyboard"),i.onKeydown(e));break;case 27:h(e)||(e.preventDefault(),this.menuStack.close(this,{focusNextOnEmpty:y.currentItem,focusParentTrigger:!0}));break;case 9:h(e,"altKey","metaKey","ctrlKey")||this.menuStack.closeAll({focusParentTrigger:!0});break;default:i.onKeydown(e)}}_toggleMenuFocus(e){let i=this.keyManager;switch(e){case y.nextItem:i.setFocusOrigin("keyboard"),i.setNextItemActive();break;case y.previousItem:i.setFocusOrigin("keyboard"),i.setPreviousItemActive();break;case y.currentItem:i.activeItem&&(i.setFocusOrigin("keyboard"),i.setActiveItem(i.activeItem));break}}_subscribeToMenuStackEmptied(){this.menuStack.emptied.pipe(m(this.destroyed)).subscribe(e=>this._toggleMenuFocus(e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenu",""]],hostAttrs:["role","menu",1,"cdk-menu"],hostVars:2,hostBindings:function(i,n){i&1&&p("keydown",function(a){return n._handleKeyEvent(a)}),i&2&&ne("cdk-menu-inline",n.isInline)},outputs:{closed:"closed"},exportAs:["cdkMenu"],features:[I([{provide:pt,useExisting:t},{provide:ye,useExisting:t},Bt("vertical")]),P]})}return t})();var Lt=pe.map(t=>{let s=t.overlayX==="start"?2:-2,e=t.overlayY==="top"?2:-2;return Ce(x({},t),{offsetX:s,offsetY:e})}),Si=(()=>{class t extends ft{_injector=o(S);_directionality=o(N,{optional:!0});_menuTracker=o(ht);_changeDetectorRef=o(re);disabled=!1;constructor(){super(),this._setMenuStackCloseListener()}open(e){this._open(null,e),this._changeDetectorRef.markForCheck()}close(){this.menuStack.closeAll()}_openOnContextMenu(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this._menuTracker.update(this),this._open(e,{x:e.clientX,y:e.clientY}),e.button===2?this.childMenu?.focusFirstItem("mouse"):e.button===0?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusFirstItem("program"))}_getOverlayConfig(e){return new de({positionStrategy:this._getOverlayPositionStrategy(e),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(e){return me(this._injector,e).withLockedPosition().withGrowAfterOpen().withPositions(this.menuPosition??Lt)}_setMenuStackCloseListener(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this.childMenu=void 0,this._changeDetectorRef.markForCheck())})}_subscribeToOutsideClicks(e){if(this.overlayRef){let i=this.overlayRef.outsidePointerEvents();if(e){let[n,r]=xe(i,({type:a})=>a==="auxclick");i=q(r.pipe(we((a,kt)=>e.ctrlKey&&kt===0&&a.ctrlKey)),n.pipe(Ee(1)))}i.pipe(m(this.stopOutsideClicksListener)).subscribe(n=>{this.isElementInsideMenuStack(ce(n))||this.menuStack.closeAll()})}}_open(e,i){this.disabled||(this.isOpen()?(this.menuStack.closeSubMenuOf(this.childMenu),this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):(this.opened.next(),this.overlayRef?(this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):this.overlayRef=he(this._injector,this._getOverlayConfig(i)),this.overlayRef.attach(this.getMenuContentPortal()),this._subscribeToOutsideClicks(e)))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkContextMenuTriggerFor",""]],hostVars:1,hostBindings:function(i,n){i&1&&p("contextmenu",function(a){return n._openOnContextMenu(a)}),i&2&&D("data-cdk-menu-stack-id",null)},inputs:{menuTemplateRef:[0,"cdkContextMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkContextMenuPosition","menuPosition"],menuData:[0,"cdkContextMenuTriggerData","menuData"],disabled:[2,"cdkContextMenuDisabled","disabled",ae]},outputs:{opened:"cdkContextMenuOpened",closed:"cdkContextMenuClosed"},exportAs:["cdkContextMenuTriggerFor"],features:[I([{provide:W,useExisting:t},{provide:g,useClass:be}]),P]})}return t})();var Di=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Ne({type:t});static \u0275inj=Fe({imports:[tt]})}return t})();var gt=class t{icon="";label="";truncate=!1;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=V({type:t,selectors:[["POS-dropdown-item-more-action"]],inputs:{icon:"icon",label:"label",truncate:"truncate"},decls:6,vars:3,consts:[[1,"dropdown-item","px-1"],[1,"row","g-0","d-flex","align-items-center"],[1,"col-2","px-0"],["aria-hidden","true",1,"fs-3"],[1,"col-10","pe-0","ps-4","fs-6"]],template:function(e,i){e&1&&(ee(0,"div",0)(1,"div",1)(2,"div",2),qe(3,"i",3),te(),ee(4,"div",4),f(5),te()()()),e&2&&(c(3),Ve(i.icon),c(2),Y(" ",i.label," "))},dependencies:[it],encapsulation:2})};export{ct as a,Ht as b,Ti as c,Si as d,Di as e,gt as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ne}from"./chunk-
|
|
1
|
+
import{a as ne}from"./chunk-AASKAWJ4.js";import{u as re,v as ae,w as se}from"./chunk-EGUIWOC3.js";import{O as le}from"./chunk-HYXSN2J6.js";import{a as J,c as z}from"./chunk-EQLHPWVB.js";import{e as oe}from"./chunk-QGYIPOLS.js";import{a as g}from"./chunk-2FWFPV5I.js";import{E as ee,G as te,c as Q,e as v,h as X,i as Y,t as Z,w as $}from"./chunk-OJ5SEYSF.js";import{a as M}from"./chunk-TS6CZC3J.js";import{Ad as A,Bb as d,Cb as r,Db as a,E as S,Eb as E,H as G,I as B,Nb as w,Pb as F,T as L,W as I,Wa as s,Xa as T,Y as N,aa as U,be as K,cb as P,cc as m,cd as W,e as h,ee as ie,fa as H,gb as q,la as V,n as k,na as j,o as R,p as x,pa as f,t as y,tc as O,ub as p,v as D,wb as u}from"./chunk-VS3RTXZC.js";import{k as C}from"./chunk-SNAKHGZS.js";var b=class{};var Ge=new j("baseURL"),_=class o extends b{connection;_cache=new Map;_Data=new h({});Data=this._Data.asObservable();previousCountByEpc={};httpService=f(ie);toastService=f(K);_isConnected=new h(!1);isConnected=this._isConnected.asObservable();_bufferTime=new h(100);set bufferTime(i){this._bufferTime.next(i)}get bufferTime(){return this._bufferTime.getValue()}intializeWebSocket(i="/"){return C(this,null,function*(){if(i.length<=0){this.toastService.error("RFID URL cannot be empty",g.Error);return}this.connection=new z().withUrl(i).configureLogging(J.Information).build();try{yield this.connection.start(),yield this.initiateGroupSubscription(),this.onWebSocketMessageReceived(),this._isConnected.next(!0),this.toastService.success("RFID Connected",g.Success)}catch(t){throw this._isConnected.next(!1),this.toastService.error(JSON.stringify(t),g.Error),setTimeout(()=>this.intializeWebSocket(),5e3),new Error(JSON.stringify(t))}})}initiateGroupSubscription(){return C(this,null,function*(){try{yield this.connection.invoke("SubscribeGroup",{CurrentID:"TransferOrder"})}catch(i){throw this.toastService.error(JSON.stringify(i),g.Error),new Error(JSON.stringify(i))}})}onWebSocketMessageReceived(){try{this.connection.on("ReceiveSignal",i=>{this._Data.next(i)})}catch(i){throw new Error(JSON.stringify(i))}}getVariantByCode(i,t=M.GuidEmpty){let e=[{key:"Code",value:i},{key:"EntityID",value:t}];return this.httpService.get(le.GetVariantByCode,e).pipe(B(n=>n instanceof A?R(null):x(()=>new Error(n.message))))}processGroupedData(i=M.GuidEmpty){return this._Data.pipe(S(t=>t!==null&&t&&Object.keys(t).length>0),G(this._bufferTime.getValue()),D(t=>k(t)),L(t=>t.epc),D(t=>t.pipe(I((e,n)=>[...e,n],[]),U(e=>{let n=t.key;if(this._cache.has(n))return this._cache.get(n).pipe(y(l=>({epc:n,items:e,response:l})));{let l=this.getVariantByCode(n,i).pipe(S(c=>c),H(c=>this._cache.set(n,R(c))));return this._cache.set(n,l),l.pipe(y(c=>({epc:n,items:e,response:c})))}}))),I((t,e)=>{let n=this.previousCountByEpc&&this.previousCountByEpc[e.epc]||0,l=e.items.length,c=l-n;return t[e.epc]={data:e.items,count:c,variant:e.response},this.previousCountByEpc[e.epc]=l,t},{}),N({bufferSize:1,refCount:!0}))}constructor(){super()}static \u0275fac=function(t){return new(t||o)};static \u0275prov=V({token:o,factory:o.\u0275fac,providedIn:"root"})};var ce=o=>({"is-invalid":o});function pe(o,i){o&1&&(r(0,"span"),m(1,"Host URL is required."),a())}function ue(o,i){if(o&1&&(r(0,"div",6),p(1,pe,2,0,"span"),E(2,"span"),a()),o&2){let t,e=F();s(),u((t=e.form.get("hostURL").errors)!=null&&t.required?1:-1)}}function de(o,i){o&1&&(r(0,"span"),m(1,"Host URL is required."),a())}function Ce(o,i){o&1&&(r(0,"span"),m(1,"BufferTime must be at least 100"),a())}function ge(o,i){if(o&1&&(r(0,"div",6),p(1,de,2,0,"span"),p(2,Ce,2,0,"span"),a()),o&2){let t,e,n=F();s(),u((t=n.form.get("bufferTime").errors)!=null&&t.required?1:-1),s(),u((e=n.form.get("bufferTime").errors)!=null&&e.min?2:-1)}}var me=class o{constructor(i){this.dialogRef=i;this.form=this.fb.group({hostURL:["https://localhost:5001/rfidhub",[v.required]],bufferTime:["100",[v.required,v.min(100)]]},{updateOn:"change"}),this.config.title="Connect RFID",this.config.customWidth="400px"}config=new re;isConnect=new T(!1);RFIDConnectionService=f(_);fb=f(ee);onOK=new T;form;ok(){return C(this,null,function*(){this.onOK.emit(this.form.value),this.dialogRef.close("void")})}close(){this.dialogRef.close()}onBlur(i){this.form.patchValue({bufferTime:Number(i.value)})}static \u0275fac=function(t){return new(t||o)(P(oe))};static \u0275cmp=q({type:o,selectors:[["POS-dialog-connect-rfid"]],outputs:{onOK:"onOK"},decls:15,vars:12,consts:[[3,"onCancel","onClose","onOk","dynamicValidated","config"],[1,"d-flex","flex-column",2,"row-gap","1rem"],[1,"fw-normal"],[1,"form-floating-outline",3,"formGroup"],["formControlName","hostURL","id","floatingInput","placeholder","https://localhost:5030/rfidhub","type","text",1,"form-control",3,"ngClass"],["for","floatingInput"],["id","",1,"invalid-feedback"],["formControlName","bufferTime","id","floatingInput","placeholder","100","type","text",1,"form-control",3,"blur","ngClass"]],template:function(t,e){t&1&&(r(0,"modal-material",0),w("onCancel",function(){return e.close()})("onClose",function(){return e.close()})("onOk",function(){return e.ok()}),r(1,"content")(2,"div",1)(3,"h4",2),m(4,"Please input the RFID Host URL:"),a(),r(5,"div",3),E(6,"input",4),r(7,"label",5),m(8,"Host URL"),a(),p(9,ue,3,1,"div",6),a(),r(10,"div",3)(11,"input",7),w("blur",function(){return e.onBlur(e.form.get("bufferTime"))}),a(),r(12,"label",5),m(13,"Buffer Time (ms)"),a(),p(14,ge,3,2,"div",6),a()()()()),t&2&&(d("dynamicValidated",e.form.valid)("config",e.config),s(5),d("formGroup",e.form),s(),d("ngClass",O(8,ce,e.form.invalid&&e.form.touched)),s(3),u(e.form.get("hostURL").invalid&&e.form.get("hostURL").touched?9:-1),s(),d("formGroup",e.form),s(),d("ngClass",O(10,ce,e.form.invalid&&e.form.touched)),s(3),u(e.form.get("bufferTime").invalid&&e.form.get("bufferTime").touched?14:-1))},dependencies:[se,ae,ne,te,Q,X,Y,Z,$,W],styles:[".form-control.is-invalid[_ngcontent-%COMP%]:focus{box-shadow:none!important}"]})};export{b as a,_ as b,me as c};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as Ze,b as Ye}from"./chunk-JR6SBNDP.js";import{a as K}from"./chunk-NEJRKLYO.js";import{a as Ue,e as Ke,f as We}from"./chunk-YFMVQJRL.js";import{A as He,C as Qe,G as Ve,H as Be,O as $e,S as je,T as qe,f as Re,g as Le,j as Fe,ka as Ge,la as le,o as Ae,q as Pe,r as Ne}from"./chunk-K2M625FR.js";import{f as Oe}from"./chunk-PRROMENK.js";import{$ as S,Ab as u,Bb as d,Ca as f,Cb as c,Db as ie,Fa as be,Ga as ye,Gc as Te,Ha as xe,Ia as te,Ja as O,Jb as M,Jc as G,Ka as R,Kb as Ie,Mb as ne,Ob as p,Pb as F,Qb as A,Rb as g,Sb as P,Tb as m,Ub as h,Uc as U,Wa as s,Wc as z,Xa as E,Xc as ze,Ya as Ce,Yb as re,Zb as Ee,_a as k,_b as D,a as he,aa as _e,ab as Se,ac as q,bc as x,cc as C,d as N,da as b,db as Me,fb as w,gb as Q,hb as y,id as se,jb as L,la as ve,lb as V,ma as H,mb as De,na as ge,nc as ke,o as ue,pa as l,qc as ae,rb as T,sc as oe,t as fe,ta as X,tb as _,ua as ee,uc as we,vb as v,xb as B,yb as $,zb as j}from"./chunk-LBIXL2NM.js";var nt=["*"];function rt(t,a){t&1&&A(0)}var pe=(()=>{class t{_elementRef=l(O);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return t})(),de=(()=>{class t{template=l(k);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var I={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},at=new ge("STEPPER_GLOBAL_OPTIONS"),W=(()=>{class t{_stepperOptions;_stepper=l(Z);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e)}_interacted=f(!1);interactedStream=new E;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e)}_state=f(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e)}_editable=f(!0);optional=!1;get completed(){let e=this._completedOverride(),i=this._interacted();return e??(i&&(!this.stepControl||this.stepControl.valid))}set completed(e){this._completedOverride.set(e)}_completedOverride=f(null);index=f(-1);isSelected=G(()=>this._stepper.selectedIndex===this.index());indicatorType=G(()=>{let e=this.isSelected(),i=this.completed,n=this._state()??I.NUMBER,r=this._editable();return this._showError()&&this.hasError&&!e?I.ERROR:this._displayDefaultIndicatorType?!i||e?I.NUMBER:r?I.EDIT:I.DONE:i&&!e?I.DONE:i&&e?n:r&&e?I.EDIT:n});isNavigable=G(()=>{let e=this.isSelected();return this.completed||e||!this._stepper.linear});get hasError(){let e=this._customError();return e??this._getDefaultError()}set hasError(e){this._customError.set(e)}_customError=f(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=l(at,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),this._completedOverride()!=null&&this._completedOverride.set(!1),this._customError()!=null&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError()!=null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["cdk-step"]],contentQueries:function(i,n,r){if(i&1&&(g(r,de,5),g(r,Oe,5)),i&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._childForms=o)}},viewQuery:function(i,n){if(i&1&&P(k,7),i&2){let r;m(r=h())&&(n.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",z],optional:[2,"optional","optional",z],completed:[2,"completed","completed",z],hasError:[2,"hasError","hasError",z]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[xe],ngContentSelectors:nt,decls:1,vars:0,template:function(i,n){i&1&&(F(),De(0,rt,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),Z=(()=>{class t{_dir=l(Ve,{optional:!0});_changeDetectorRef=l(U);_elementRef=l(O);_destroyed=new N;_keyManager;_steps;steps=new R;_stepHeader;_sortedHeaders=new R;linear=!1;get selectedIndex(){return this._selectedIndex()}set selectedIndex(e){this._steps?(this._isValidIndex(e),this.selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this.selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex.set(e)}_selectedIndex=f(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new E;selectedIndexChange=new E;_groupId=l(He).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(S(this._steps),b(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(i=>i._stepper===this)),this.steps.forEach((i,n)=>i.index.set(n)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(S(this._stepHeader),b(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((i,n)=>i._elementRef.nativeElement.compareDocumentPosition(n._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Qe(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:ue()).pipe(S(this._layoutDirection()),b(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex());for(let i of e)i._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let i=e-this._selectedIndex();return i<0?this._layoutDirection()==="rtl"?"next":"previous":i>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(e){let i=this.steps.toArray(),n=this._selectedIndex();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:n,selectedStep:i[e],previouslySelectedStep:i[n]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex.set(e),this.selectedIndexChange.emit(e),this._stateChanged()}_onKeydown(e){let i=Re(e),n=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!i&&(n===32||n===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(i=>{let n=i.stepControl;return(n?n.invalid||n.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride()}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,i=Fe();return e===i||e.contains(i)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(i,n,r){if(i&1&&(g(r,W,5),g(r,pe,5)),i&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._stepHeader=o)}},inputs:{linear:[2,"linear","linear",z],selectedIndex:[2,"selectedIndex","selectedIndex",ze],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return t})();var Je=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=H({imports:[Be]})}return t})();var ot=(t,a,e)=>({index:t,active:a,optional:e});function st(t,a){if(t&1&&M(0,2),t&2){let e=p();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",we(2,ot,e.index,e.active,e.optional))}}function lt(t,a){if(t&1&&(d(0,"span",7),x(1),c()),t&2){let e=p(2);s(),C(e._getDefaultTextForState(e.state))}}function pt(t,a){if(t&1&&(d(0,"span",8),x(1),c()),t&2){let e=p(3);s(),C(e._intl.completedLabel)}}function dt(t,a){if(t&1&&(d(0,"span",8),x(1),c()),t&2){let e=p(3);s(),C(e._intl.editableLabel)}}function ct(t,a){if(t&1&&(_(0,pt,2,1,"span",8)(1,dt,2,1,"span",8),d(2,"mat-icon",7),x(3),c()),t&2){let e=p(2);v(e.state==="done"?0:e.state==="edit"?1:-1),s(3),C(e._getDefaultTextForState(e.state))}}function mt(t,a){if(t&1&&_(0,lt,2,1,"span",7)(1,ct,4,2),t&2){let e,i=p();v((e=i.state)==="number"?0:1)}}function ht(t,a){t&1&&(d(0,"div",4),M(1,9),c()),t&2&&(s(),u("ngTemplateOutlet",a.template))}function ut(t,a){if(t&1&&(d(0,"div",4),x(1),c()),t&2){let e=p();s(),C(e.label)}}function ft(t,a){if(t&1&&(d(0,"div",5),x(1),c()),t&2){let e=p();s(),C(e._intl.optionalLabel)}}function _t(t,a){if(t&1&&(d(0,"div",6),x(1),c()),t&2){let e=p();s(),C(e.errorMessage)}}var Xe=["*"];function vt(t,a){}function gt(t,a){if(t&1&&(A(0),V(1,vt,0,0,"ng-template",0)),t&2){let e=p();s(),u("cdkPortalOutlet",e._portal)}}var bt=["animatedContainer"],et=t=>({step:t});function yt(t,a){t&1&&A(0)}function xt(t,a){t&1&&ie(0,"div",7)}function Ct(t,a){if(t&1&&(M(0,6),_(1,xt,1,0,"div",7)),t&2){let e=a.$implicit,i=a.$index,n=a.$count;p(2);let r=re(4);u("ngTemplateOutlet",r)("ngTemplateOutletContext",oe(3,et,e)),s(),v(i!==n-1?1:-1)}}function St(t,a){if(t&1&&(d(0,"div",8,1),M(2,9),c()),t&2){let e=a.$implicit,i=a.$index,n=p(2);q("mat-horizontal-stepper-content-"+n._getAnimationDirection(i)),u("id",n._getStepContentId(i)),T("aria-labelledby",n._getStepLabelId(i))("inert",n.selectedIndex===i?null:""),s(2),u("ngTemplateOutlet",e.content)}}function Mt(t,a){if(t&1&&(d(0,"div",2)(1,"div",3),$(2,Ct,2,5,null,null,B),c(),d(4,"div",4),$(5,St,3,6,"div",5,B),c()()),t&2){let e=p();s(2),j(e.steps),s(3),j(e.steps)}}function Dt(t,a){if(t&1&&(d(0,"div",10),M(1,6),d(2,"div",11,1)(4,"div",12)(5,"div",13),M(6,9),c()()()()),t&2){let e=a.$implicit,i=a.$index,n=a.$index,r=a.$count,o=p(2),J=re(4);s(),u("ngTemplateOutlet",J)("ngTemplateOutletContext",oe(10,et,e)),s(),D("mat-stepper-vertical-line",n!==r-1)("mat-vertical-content-container-active",o.selectedIndex===i),T("inert",o.selectedIndex===i?null:""),s(2),u("id",o._getStepContentId(i)),T("aria-labelledby",o._getStepLabelId(i)),s(2),u("ngTemplateOutlet",e.content)}}function It(t,a){if(t&1&&$(0,Dt,7,12,"div",10,B),t&2){let e=p();j(e.steps)}}function Et(t,a){if(t&1){let e=Ie();d(0,"mat-step-header",14),ne("click",function(){let n=X(e).step;return ee(n.select())})("keydown",function(n){X(e);let r=p();return ee(r._onKeydown(n))}),c()}if(t&2){let e=a.step,i=p();D("mat-horizontal-stepper-header",i.orientation==="horizontal")("mat-vertical-stepper-header",i.orientation==="vertical"),u("tabIndex",i._getFocusIndex()===e.index()?0:-1)("id",i._getStepLabelId(e.index()))("index",e.index())("state",e.indicatorType())("label",e.stepLabel||e.label)("selected",e.isSelected())("active",e.isNavigable())("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",i._iconOverrides)("disableRipple",i.disableRipple||!e.isNavigable())("color",e.color||i.color),T("aria-posinset",e.index()+1)("aria-setsize",i.steps.length)("aria-controls",i._getStepContentId(e.index()))("aria-selected",e.isSelected())("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",e.isNavigable()?null:!0)}}var ce=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(n){return(e||(e=te(t)))(n||t)}})();static \u0275dir=y({type:t,selectors:[["","matStepLabel",""]],features:[L]})}return t})(),Y=(()=>{class t{changes=new N;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(i){return new(i||t)};static \u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kt(t){return t||new Y}var wt={provide:Y,deps:[[new be,new ye,Y]],useFactory:kt},me=(()=>{class t extends pe{_intl=l(Y);_focusMonitor=l(Ae);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=l(Pe);e.load(Ue),e.load(Ne);let i=l(U);this._intlSubscription=this._intl.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._elementRef,e,i):this._elementRef.nativeElement.focus(i)}_stringLabel(){return this.label instanceof ce?null:this.label}_templateLabel(){return this.label instanceof ce?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}_hasEmptyLabel(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()}_hasOptionalLabel(){return this.optional&&this.state!=="error"}_hasErrorLabel(){return this.state==="error"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(i,n){i&2&&(q("mat-"+(n.color||"primary")),D("mat-step-header-empty-label",n._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[L],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(i,n){if(i&1&&(ie(0,"div",0),d(1,"div")(2,"div",1),_(3,st,1,6,"ng-container",2)(4,mt,2,1),c()(),d(5,"div",3),_(6,ht,2,1,"div",4)(7,ut,2,1,"div",4),_(8,ft,2,1,"div",5),_(9,_t,2,1,"div",6),c()),i&2){let r;u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disableRipple),s(),q(ke("mat-step-icon-state-",n.state," mat-step-icon")),D("mat-step-icon-selected",n.selected),s(2),v(n.iconOverrides&&n.iconOverrides[n.state]?3:4),s(2),D("mat-step-label-active",n.active)("mat-step-label-selected",n.selected)("mat-step-label-error",n.state=="error"),s(),v((r=n._templateLabel())?6:n._stringLabel()?7:-1,r),s(2),v(n._hasOptionalLabel()?8:-1),s(),v(n._hasErrorLabel()?9:-1)}},dependencies:[Ke,se,Ze],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
|
|
1
|
+
import{a as Ze,b as Ye}from"./chunk-RPJIPLQS.js";import{a as K}from"./chunk-RNEU5YBN.js";import{a as Ue,e as Ke,f as We}from"./chunk-EGUIWOC3.js";import{A as He,C as Qe,G as Ve,H as Be,O as $e,S as je,T as qe,f as Re,g as Le,j as Fe,ka as Ge,la as le,o as Ae,q as Pe,r as Ne}from"./chunk-WACBOZDR.js";import{f as Oe}from"./chunk-OJ5SEYSF.js";import{$ as S,$a as k,$b as D,Ab as j,Bb as u,Ca as f,Cb as d,Db as c,Eb as ie,Fa as be,Ga as ye,Ha as xe,Hc as Te,Ia as te,Ja as O,Ka as R,Kb as M,Kc as G,Lb as Ie,Nb as ne,Pb as p,Qb as F,Rb as A,Sb as g,Tb as P,Ub as m,Vb as h,Vc as U,Wa as s,Xa as E,Xc as z,Ya as Ce,Yc as ze,Zb as re,_b as Ee,a as he,aa as _e,bb as Se,bc as q,cc as x,d as N,da as b,dc as C,eb as Me,gb as w,hb as Q,ib as y,jd as se,kb as L,la as ve,ma as H,mb as V,na as ge,nb as De,o as ue,oc as ke,pa as l,rc as ae,sb as T,t as fe,ta as X,tc as oe,ua as ee,ub as _,vc as we,wb as v,yb as B,zb as $}from"./chunk-VS3RTXZC.js";var nt=["*"];function rt(t,a){t&1&&A(0)}var pe=(()=>{class t{_elementRef=l(O);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return t})(),de=(()=>{class t{template=l(k);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var I={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},at=new ge("STEPPER_GLOBAL_OPTIONS"),W=(()=>{class t{_stepperOptions;_stepper=l(Z);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e)}_interacted=f(!1);interactedStream=new E;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e)}_state=f(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e)}_editable=f(!0);optional=!1;get completed(){let e=this._completedOverride(),i=this._interacted();return e??(i&&(!this.stepControl||this.stepControl.valid))}set completed(e){this._completedOverride.set(e)}_completedOverride=f(null);index=f(-1);isSelected=G(()=>this._stepper.selectedIndex===this.index());indicatorType=G(()=>{let e=this.isSelected(),i=this.completed,n=this._state()??I.NUMBER,r=this._editable();return this._showError()&&this.hasError&&!e?I.ERROR:this._displayDefaultIndicatorType?!i||e?I.NUMBER:r?I.EDIT:I.DONE:i&&!e?I.DONE:i&&e?n:r&&e?I.EDIT:n});isNavigable=G(()=>{let e=this.isSelected();return this.completed||e||!this._stepper.linear});get hasError(){let e=this._customError();return e??this._getDefaultError()}set hasError(e){this._customError.set(e)}_customError=f(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=l(at,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),this._completedOverride()!=null&&this._completedOverride.set(!1),this._customError()!=null&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError()!=null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["cdk-step"]],contentQueries:function(i,n,r){if(i&1&&(g(r,de,5),g(r,Oe,5)),i&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._childForms=o)}},viewQuery:function(i,n){if(i&1&&P(k,7),i&2){let r;m(r=h())&&(n.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",z],optional:[2,"optional","optional",z],completed:[2,"completed","completed",z],hasError:[2,"hasError","hasError",z]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[xe],ngContentSelectors:nt,decls:1,vars:0,template:function(i,n){i&1&&(F(),De(0,rt,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),Z=(()=>{class t{_dir=l(Ve,{optional:!0});_changeDetectorRef=l(U);_elementRef=l(O);_destroyed=new N;_keyManager;_steps;steps=new R;_stepHeader;_sortedHeaders=new R;linear=!1;get selectedIndex(){return this._selectedIndex()}set selectedIndex(e){this._steps?(this._isValidIndex(e),this.selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this.selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex.set(e)}_selectedIndex=f(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new E;selectedIndexChange=new E;_groupId=l(He).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(S(this._steps),b(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(i=>i._stepper===this)),this.steps.forEach((i,n)=>i.index.set(n)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(S(this._stepHeader),b(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((i,n)=>i._elementRef.nativeElement.compareDocumentPosition(n._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Qe(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:ue()).pipe(S(this._layoutDirection()),b(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex());for(let i of e)i._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let i=e-this._selectedIndex();return i<0?this._layoutDirection()==="rtl"?"next":"previous":i>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(e){let i=this.steps.toArray(),n=this._selectedIndex();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:n,selectedStep:i[e],previouslySelectedStep:i[n]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex.set(e),this.selectedIndexChange.emit(e),this._stateChanged()}_onKeydown(e){let i=Re(e),n=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!i&&(n===32||n===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(i=>{let n=i.stepControl;return(n?n.invalid||n.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride()}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,i=Fe();return e===i||e.contains(i)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(i,n,r){if(i&1&&(g(r,W,5),g(r,pe,5)),i&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._stepHeader=o)}},inputs:{linear:[2,"linear","linear",z],selectedIndex:[2,"selectedIndex","selectedIndex",ze],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return t})();var Je=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=H({imports:[Be]})}return t})();var ot=(t,a,e)=>({index:t,active:a,optional:e});function st(t,a){if(t&1&&M(0,2),t&2){let e=p();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",we(2,ot,e.index,e.active,e.optional))}}function lt(t,a){if(t&1&&(d(0,"span",7),x(1),c()),t&2){let e=p(2);s(),C(e._getDefaultTextForState(e.state))}}function pt(t,a){if(t&1&&(d(0,"span",8),x(1),c()),t&2){let e=p(3);s(),C(e._intl.completedLabel)}}function dt(t,a){if(t&1&&(d(0,"span",8),x(1),c()),t&2){let e=p(3);s(),C(e._intl.editableLabel)}}function ct(t,a){if(t&1&&(_(0,pt,2,1,"span",8)(1,dt,2,1,"span",8),d(2,"mat-icon",7),x(3),c()),t&2){let e=p(2);v(e.state==="done"?0:e.state==="edit"?1:-1),s(3),C(e._getDefaultTextForState(e.state))}}function mt(t,a){if(t&1&&_(0,lt,2,1,"span",7)(1,ct,4,2),t&2){let e,i=p();v((e=i.state)==="number"?0:1)}}function ht(t,a){t&1&&(d(0,"div",4),M(1,9),c()),t&2&&(s(),u("ngTemplateOutlet",a.template))}function ut(t,a){if(t&1&&(d(0,"div",4),x(1),c()),t&2){let e=p();s(),C(e.label)}}function ft(t,a){if(t&1&&(d(0,"div",5),x(1),c()),t&2){let e=p();s(),C(e._intl.optionalLabel)}}function _t(t,a){if(t&1&&(d(0,"div",6),x(1),c()),t&2){let e=p();s(),C(e.errorMessage)}}var Xe=["*"];function vt(t,a){}function gt(t,a){if(t&1&&(A(0),V(1,vt,0,0,"ng-template",0)),t&2){let e=p();s(),u("cdkPortalOutlet",e._portal)}}var bt=["animatedContainer"],et=t=>({step:t});function yt(t,a){t&1&&A(0)}function xt(t,a){t&1&&ie(0,"div",7)}function Ct(t,a){if(t&1&&(M(0,6),_(1,xt,1,0,"div",7)),t&2){let e=a.$implicit,i=a.$index,n=a.$count;p(2);let r=re(4);u("ngTemplateOutlet",r)("ngTemplateOutletContext",oe(3,et,e)),s(),v(i!==n-1?1:-1)}}function St(t,a){if(t&1&&(d(0,"div",8,1),M(2,9),c()),t&2){let e=a.$implicit,i=a.$index,n=p(2);q("mat-horizontal-stepper-content-"+n._getAnimationDirection(i)),u("id",n._getStepContentId(i)),T("aria-labelledby",n._getStepLabelId(i))("inert",n.selectedIndex===i?null:""),s(2),u("ngTemplateOutlet",e.content)}}function Mt(t,a){if(t&1&&(d(0,"div",2)(1,"div",3),$(2,Ct,2,5,null,null,B),c(),d(4,"div",4),$(5,St,3,6,"div",5,B),c()()),t&2){let e=p();s(2),j(e.steps),s(3),j(e.steps)}}function Dt(t,a){if(t&1&&(d(0,"div",10),M(1,6),d(2,"div",11,1)(4,"div",12)(5,"div",13),M(6,9),c()()()()),t&2){let e=a.$implicit,i=a.$index,n=a.$index,r=a.$count,o=p(2),J=re(4);s(),u("ngTemplateOutlet",J)("ngTemplateOutletContext",oe(10,et,e)),s(),D("mat-stepper-vertical-line",n!==r-1)("mat-vertical-content-container-active",o.selectedIndex===i),T("inert",o.selectedIndex===i?null:""),s(2),u("id",o._getStepContentId(i)),T("aria-labelledby",o._getStepLabelId(i)),s(2),u("ngTemplateOutlet",e.content)}}function It(t,a){if(t&1&&$(0,Dt,7,12,"div",10,B),t&2){let e=p();j(e.steps)}}function Et(t,a){if(t&1){let e=Ie();d(0,"mat-step-header",14),ne("click",function(){let n=X(e).step;return ee(n.select())})("keydown",function(n){X(e);let r=p();return ee(r._onKeydown(n))}),c()}if(t&2){let e=a.step,i=p();D("mat-horizontal-stepper-header",i.orientation==="horizontal")("mat-vertical-stepper-header",i.orientation==="vertical"),u("tabIndex",i._getFocusIndex()===e.index()?0:-1)("id",i._getStepLabelId(e.index()))("index",e.index())("state",e.indicatorType())("label",e.stepLabel||e.label)("selected",e.isSelected())("active",e.isNavigable())("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",i._iconOverrides)("disableRipple",i.disableRipple||!e.isNavigable())("color",e.color||i.color),T("aria-posinset",e.index()+1)("aria-setsize",i.steps.length)("aria-controls",i._getStepContentId(e.index()))("aria-selected",e.isSelected())("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",e.isNavigable()?null:!0)}}var ce=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(n){return(e||(e=te(t)))(n||t)}})();static \u0275dir=y({type:t,selectors:[["","matStepLabel",""]],features:[L]})}return t})(),Y=(()=>{class t{changes=new N;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(i){return new(i||t)};static \u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kt(t){return t||new Y}var wt={provide:Y,deps:[[new be,new ye,Y]],useFactory:kt},me=(()=>{class t extends pe{_intl=l(Y);_focusMonitor=l(Ae);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=l(Pe);e.load(Ue),e.load(Ne);let i=l(U);this._intlSubscription=this._intl.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._elementRef,e,i):this._elementRef.nativeElement.focus(i)}_stringLabel(){return this.label instanceof ce?null:this.label}_templateLabel(){return this.label instanceof ce?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}_hasEmptyLabel(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()}_hasOptionalLabel(){return this.optional&&this.state!=="error"}_hasErrorLabel(){return this.state==="error"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(i,n){i&2&&(q("mat-"+(n.color||"primary")),D("mat-step-header-empty-label",n._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[L],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(i,n){if(i&1&&(ie(0,"div",0),d(1,"div")(2,"div",1),_(3,st,1,6,"ng-container",2)(4,mt,2,1),c()(),d(5,"div",3),_(6,ht,2,1,"div",4)(7,ut,2,1,"div",4),_(8,ft,2,1,"div",5),_(9,_t,2,1,"div",6),c()),i&2){let r;u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disableRipple),s(),q(ke("mat-step-icon-state-",n.state," mat-step-icon")),D("mat-step-icon-selected",n.selected),s(2),v(n.iconOverrides&&n.iconOverrides[n.state]?3:4),s(2),D("mat-step-label-active",n.active)("mat-step-label-selected",n.selected)("mat-step-label-error",n.state=="error"),s(),v((r=n._templateLabel())?6:n._stringLabel()?7:-1,r),s(2),v(n._hasOptionalLabel()?8:-1),s(),v(n._hasErrorLabel()?9:-1)}},dependencies:[Ke,se,Ze],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return t})(),Tt=(()=>{class t{templateRef=l(k);name;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return t})(),zt=(()=>{class t{_template=l(k);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["ng-template","matStepContent",""]]})}return t})(),Ot=(()=>{class t extends W{_errorStateMatcher=l(K,{skipSelf:!0});_viewContainerRef=l(Me);_isSelected=he.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(_e(()=>this._stepper.selectionChange.pipe(fe(e=>e.selectedStep===this),S(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new $e(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,i){let n=this._errorStateMatcher.isErrorState(e,i),r=!!(e&&e.invalid&&this.interacted);return n||r}static \u0275fac=(()=>{let e;return function(n){return(e||(e=te(t)))(n||t)}})();static \u0275cmp=w({type:t,selectors:[["mat-step"]],contentQueries:function(i,n,r){if(i&1&&(g(r,ce,5),g(r,zt,5)),i&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._lazyContent=o.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[ae([{provide:K,useExisting:t},{provide:W,useExisting:t}]),L],ngContentSelectors:Xe,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(i,n){i&1&&(F(),V(0,gt,2,1,"ng-template"))},dependencies:[je],encapsulation:2,changeDetection:0})}return t})(),Rt=(()=>{class t extends Z{_ngZone=l(Ce);_renderer=l(Se);_animationsDisabled=Ge();_cleanupTransition;_isAnimating=f(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new R;_icons;animationDone=new E;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}_animationDuration="";_isServer=!l(Le).isBrowser;constructor(){super();let i=l(O).nativeElement.nodeName.toLowerCase();this.orientation=i==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:i})=>this._iconOverrides[e]=i),this.steps.changes.pipe(b(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(b(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsDisabled||setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=!1;this._animatedContainers.changes.pipe(S(null),b(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_getAnimationDuration(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let i=e.target;if(!i)return;let n=this.orientation==="horizontal"&&e.propertyName==="transform"&&i.classList.contains("mat-horizontal-stepper-content-current"),r=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&i.classList.contains("mat-vertical-content-container-active");(n||r)&&this._animatedContainers.find(J=>J.nativeElement===i)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(i,n,r){if(i&1&&(g(r,Ot,5),g(r,Tt,5)),i&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._icons=o)}},viewQuery:function(i,n){if(i&1&&(P(me,5),P(bt,5)),i&2){let r;m(r=h())&&(n._stepHeader=r),m(r=h())&&(n._animatedContainers=r)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(i,n){i&2&&(T("aria-orientation",n.orientation),Ee("--mat-stepper-animation-duration",n._getAnimationDuration()),D("mat-stepper-horizontal",n.orientation==="horizontal")("mat-stepper-vertical",n.orientation==="vertical")("mat-stepper-label-position-end",n.orientation==="horizontal"&&n.labelPosition=="end")("mat-stepper-label-position-bottom",n.orientation==="horizontal"&&n.labelPosition=="bottom")("mat-stepper-header-position-bottom",n.headerPosition==="bottom")("mat-stepper-animating",n._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[ae([{provide:Z,useExisting:t}]),L],ngContentSelectors:Xe,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(i,n){if(i&1&&(F(),_(0,yt,1,0),_(1,Mt,7,0,"div",2)(2,It,2,0),V(3,Et,1,23,"ng-template",null,0,Te)),i&2){let r;v(n._isServer?0:-1),s(),v((r=n.orientation)==="horizontal"?1:r==="vertical"?2:-1)}},dependencies:[se,me],styles:[`.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon{margin:0}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}
|
|
3
3
|
`],encapsulation:2,changeDetection:0})}return t})();var Oi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=H({providers:[wt,K],imports:[le,qe,Je,Ye,We,Rt,me,le]})}return t})();export{Je as a,ce as b,Tt as c,zt as d,Ot as e,Rt as f,Oi as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as G,v as q,w as B}from"./chunk-
|
|
1
|
+
import{u as G,v as q,w as B}from"./chunk-EGUIWOC3.js";import{b as P,c as R}from"./chunk-VQBUIUJC.js";import{e as j,f as V,g as W,l as L}from"./chunk-QGYIPOLS.js";import{a as w}from"./chunk-2FWFPV5I.js";import{F as A,a as E,c as O,h as F,o as k}from"./chunk-OJ5SEYSF.js";import{a as D}from"./chunk-TS6CZC3J.js";import{Bb as p,Cb as t,Db as m,E as v,Nb as u,Wa as r,be as S,cb as a,cc as s,cd as y,ec as d,gb as c,hc as N,ic as M,jc as h,rc as _,rd as I,ub as g,uc as T,wb as C}from"./chunk-VS3RTXZC.js";var f=class n{constructor(e,i,o){this.dialogRef=e;this.data=i;this.toastr=o;this.config.title=`Edit ${i.transactionType} Number`,this.config.customWidth="300px",this.invoiceNumber=i.invoiceNumber,this.transactionType=i.transactionType}config=new G;invoiceNumber;transactionType;ok(){D.IsNotEmpty(this.invoiceNumber)?this.dialogRef.close(this.invoiceNumber):this.toastr.info("Invoice number can not be empty",w.Info)}static \u0275fac=function(i){return new(i||n)(a(j),a(V),a(S))};static \u0275cmp=c({type:n,selectors:[["POS-modal-invoice-number"]],decls:6,vars:3,consts:[[3,"onOk","onCancel","onClose","config"],[1,"form-floating-outline","m-0"],["type","text","id","invoiceNumber","name","invoiceNumber",1,"form-control",3,"ngModelChange","ngModel"],["for","invoiceNumber"]],template:function(i,o){i&1&&(t(0,"modal-material",0),u("onOk",function(){return o.ok()})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),t(1,"content")(2,"div",1)(3,"input",2),h("ngModelChange",function(b){return M(o.invoiceNumber,b)||(o.invoiceNumber=b),b}),m(),t(4,"label",3),s(5),m()()()()),i&2&&(p("config",o.config),r(3),N("ngModel",o.invoiceNumber),r(2),d("",o.transactionType," Number"))},dependencies:[A,O,F,k,B,q],encapsulation:2})};var K=(n,e)=>({"px-2 py-2 number-disabled":n,pointer:e});function Q(n,e){n&1&&(t(0,"span"),s(1,"Editing"),m())}var H=class n{constructor(e){this.matDialog=e}isEdit=!1;transactionType="Purchase Order";disabled=!1;invoiceNumber="";onChange=e=>{};onTouched=()=>{};writeValue(e){this.invoiceNumber=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}openModalSelectOutlet(){this.disabled||this.matDialog.open(f,{data:{transactionType:this.transactionType,invoiceNumber:this.invoiceNumber}}).afterClosed().pipe(v(e=>e)).subscribe(e=>{this.invoiceNumber=e,this.onChange(this.invoiceNumber)})}static \u0275fac=function(i){return new(i||n)(a(W))};static \u0275cmp=c({type:n,selectors:[["POS-invoice-number-form"]],inputs:{isEdit:"isEdit",transactionType:"transactionType"},features:[_([{provide:E,multi:!0,useExisting:n}])],decls:3,vars:7,consts:[[1,"fw-normal",3,"click","ngClass","matTooltip"]],template:function(i,o){i&1&&(t(0,"h6",0),u("click",function(){return o.openModalSelectOutlet()}),g(1,Q,2,0,"span"),s(2),m()),i&2&&(p("ngClass",T(4,K,o.disabled,!o.disabled))("matTooltip",o.disabled?"Number Edit role is required":""),r(),C(o.isEdit?1:-1),r(),d(" ",o.invoiceNumber?o.transactionType+" #"+o.invoiceNumber:"Order Number"," "))},dependencies:[I,y,L,R,P],styles:[".number-disabled[_ngcontent-%COMP%]{background-color:#ebebe4}"]})};export{H as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as r,la as n}from"./chunk-
|
|
1
|
+
import{M as r,la as n}from"./chunk-WACBOZDR.js";import{hb as i,ma as t}from"./chunk-VS3RTXZC.js";var s=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275mod=i({type:e});static \u0275inj=t({imports:[r]})}return e})();var ce=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275mod=i({type:e});static \u0275inj=t({imports:[n,s,n]})}return e})();export{ce as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-KPZU3ZPZ.js";import{a as r}from"./chunk-TS6CZC3J.js";var s=(t=>(t[t.IsNew=0]="IsNew",t[t.IsComplete=1]="IsComplete",t[t.IsEdit=2]="IsEdit",t[t.isPark=3]="isPark",t[t.IsRetrieve=4]="IsRetrieve",t[t.IsSplit=5]="IsSplit",t[t.IsBill=6]="IsBill",t[t.IsReturn=7]="IsReturn",t[t.IsUndo=8]="IsUndo",t[t.UploadOrderFail=9]="UploadOrderFail",t))(s||{});var i=class{ID;EntityID;RegisterID;TypeID;Date;Number;CustomerID;SalesID;Discount=0;Discount2=0;DiscountAmount=0;CustomerDiscountRate=0;Note="";DeliveryOutletID;TaxTypeID;CurrencyID;CurrencyRate;PointUsed;InvoicedStateID;ReferenceNumber="";LogisticsServiceID;ParkLabel="";NumberOfPerson;ClientTimestamp;Created;PromotionCoupon="";CouponType=1;PromotionNote="";DeliveryStateID;CouponProvider="Internal";constructor(){this.ID=r.GuidEmpty,this.EntityID=r.GuidEmpty,this.RegisterID=r.GuidEmpty,this.Number="",this.CustomerID=null,this.SalesID=null,this.Discount=0,this.Discount2=0,this.DiscountAmount=0,this.Note="",this.TaxTypeID=r.GuidEmpty,this.CurrencyID=1,this.CurrencyRate=1,this.DeliveryStateID=1,this.PointUsed=0,this.NumberOfPerson=1,this.Date=new Date}removeEnterNote(){this.Note&&(this.Note=this.Note.replace(/\n/g,""))}};var e=class{RegisterID;RegisterCode;EntityID;EntityName;NumberElement;InvoiceNumberElement;ListSales;QuickKeyPack;PrintTemplate;DefaultSalesOrderTag;DefaultTaxType;DefaultWarehouse;MemberPoint;ParkLayoutPack;Promotion;DefaultPrintTemplate;NewOrderID;Payments;constructor(){this.RegisterID=null,this.RegisterCode=null,this.EntityID=null,this.EntityName=null,this.NumberElement=new n,this.InvoiceNumberElement=new n,this.Promotion=[]}};export{s as a,i as b,e as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ab as
|
|
1
|
+
import{Ab as D,Bb as S,Cb as o,Db as a,Eb as C,Lb as E,Nb as I,Pb as m,Pc as l,Qb as p,Rb as u,Sb as N,Ub as F,Vb as V,Wa as i,Xa as x,_b as j,bc as _,cc as h,ec as M,gb as b,hb as w,ma as P,rd as A,ta as O,ua as T,ub as s,uc as Q,wb as g,yb as k,zb as y}from"./chunk-VS3RTXZC.js";var v=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=w({type:n});static \u0275inj=P({imports:[A]})};var B=["*"],f=class n{tabTitle;active=!1;isValid=l(!0);icon=l(null);iconColor=l(null);badge=l(null);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=b({type:n,selectors:[["tab"]],inputs:{tabTitle:"tabTitle",active:"active",isValid:[1,"isValid"],icon:[1,"icon"],iconColor:[1,"iconColor"],badge:[1,"badge"]},standalone:!1,ngContentSelectors:B,decls:2,vars:1,consts:[[1,"pane",3,"hidden"]],template:function(t,c){t&1&&(p(),o(0,"div",0),u(1),a()),t&2&&S("hidden",!c.active)},styles:[".pane[_ngcontent-%COMP%]{padding:0 1px}"]})};var R=["*"],z=(n,e)=>({selected:n,danger:e});function G(n,e){if(n&1&&C(0,"i",9),n&2){let t=m().$implicit;_(t.icon()),j("color",t.iconColor())}}function H(n,e){if(n&1&&(o(0,"span",7),h(1),a()),n&2){let t=m().$implicit;i(),M(" ",t.badge()," ")}}function J(n,e){n&1&&C(0,"i",8)}function K(n,e){if(n&1){let t=E();o(0,"a",4),I("click",function(){let d=O(t).$implicit,r=m();return r.onSelectTab(d),T(r.onTabChange(d))}),s(1,G,1,4,"i",5),o(2,"span",6),h(3),s(4,H,2,1,"span",7),s(5,J,1,0,"i",8),a()()}if(n&2){let t=e.$implicit;_(Q(6,z,(t==null?null:t.active)===!0,t.isValid()===!1)),i(),g(t.icon()?1:-1),i(2),M(" ",t.tabTitle," "),i(),g(t.badge()&&t.badge()>0?4:-1),i(),g(t.isValid()===!1&&(t==null?null:t.active)===!1?5:-1)}}var L=class n{tabs;tabChange;constructor(){this.tabChange=new x}ngAfterContentInit(){this.tabs.filter(t=>t.active).length===0&&this.onSelectTab(this.tabs.first)}onSelectTab(e){this.tabChange.emit(e.tabTitle),this.tabs.toArray().forEach(t=>t.active=!1),e.active=!0}onTabChange(e){this.tabChange.emit(e.tabTitle)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=b({type:n,selectors:[["custom-tabs"]],contentQueries:function(t,c,d){if(t&1&&N(d,f,4),t&2){let r;F(r=V())&&(c.tabs=r)}},outputs:{tabChange:"onTabChange"},standalone:!1,ngContentSelectors:R,decls:7,vars:0,consts:[[1,"row","border-bottom"],[1,"col-12"],[1,"btn","btn-link-tab",3,"class"],[1,"row","mt-6"],[1,"btn","btn-link-tab",3,"click"],[1,"me-2",3,"class","color"],[1,"position-relative"],[1,"position-absolute","top-0","translate-middle","badge","rounded-pill","bg-danger","ms-3"],[1,"fa-regular","fa-circle-exclamation","text-danger"],[1,"me-2"]],template:function(t,c){t&1&&(p(),o(0,"div",0)(1,"div",1),y(2,K,6,9,"a",2,k),a()(),o(4,"div",3)(5,"div",1),u(6),a()()),t&2&&(i(2),D(c.tabs))},styles:[".text-warning[_ngcontent-%COMP%]{color:var(--bs-warning)!important}.bg-light-gray[_ngcontent-%COMP%]{background-color:var(--bs-light-gray);--bs-bg-opacity: .15 !important}.bg-gradient-danger[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px 30px)!important}.bg-gradient-success[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#beeebb,#beeebb 15px,#afeba8 15px 30px)!important}.bg-gradient-warning[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#fcf3cf,#fcf3cf 15px,#f9e79f 15px 30px)!important}.bg-light-orange[_ngcontent-%COMP%]{background-color:var(--bs-light-orange);--bs-bg-opacity: .15 !important}.text-danger[_ngcontent-%COMP%]{color:#fb404b!important}.text-dark[_ngcontent-%COMP%]{color:#5e5e5e!important}.text-success[_ngcontent-%COMP%]{color:#87cb16!important}.text-black[_ngcontent-%COMP%]{color:#000!important}.text-white[_ngcontent-%COMP%]{color:var(--bs-white)!important}.btn-light-blue[_ngcontent-%COMP%]{color:#212529;background-color:#dfeffc!important;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:hover{color:#212529;background-color:#bcdef9;border-color:#b0d8f8}.btn-light-blue[_ngcontent-%COMP%]:focus, .btn-light-blue.focus[_ngcontent-%COMP%]{color:#212529;background-color:#bcdef9;border-color:#b0d8f8;box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-blue.disabled[_ngcontent-%COMP%], .btn-light-blue[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#dfeffc;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#b0d8f8;border-color:#a5d2f7}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-danger[_ngcontent-%COMP%]{color:#212529;background-color:#f8d7da!important;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:hover{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5}.btn-light-danger[_ngcontent-%COMP%]:focus, .btn-light-danger.focus[_ngcontent-%COMP%]{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5;box-shadow:0 0 0 .2rem #dc354540}.btn-light-danger.disabled[_ngcontent-%COMP%], .btn-light-danger[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#f8d7da;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#f1aeb5;border-color:#ea868f}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #dc354540}.btn-link-tab.danger[_ngcontent-%COMP%]{color:#c9302c}"]})};export{v as a,f as b,L as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as se}from"./chunk-NQX7EX5A.js";import{a as oe}from"./chunk-MLFDP74G.js";import{b as le}from"./chunk-JR6SBNDP.js";import{a as te,c as ie,e as ae,f as ne,g as re}from"./chunk-7H3GMZJN.js";import{d as Z,e as ee}from"./chunk-MCPXNQRW.js";import{a as z}from"./chunk-D75PDB6P.js";import{c as Y}from"./chunk-CJFDTLOQ.js";import{a as U,c as X}from"./chunk-JHYJTTAR.js";import{m as q}from"./chunk-YFMVQJRL.js";import{d as J}from"./chunk-UARWMJ5H.js";import{a as G}from"./chunk-2FWFPV5I.js";import{F as j,c as H,h as $,o as K}from"./chunk-PRROMENK.js";import{a as M}from"./chunk-ODGFQ7QJ.js";import{Ab as C,Ac as P,Bb as r,Bc as R,Cb as l,Db as b,Kb as f,Mb as u,Ob as s,Oc as A,Wa as d,Xa as S,Y as Q,Yb as g,ae as L,bb as T,bc as c,cc as O,dc as k,fa as N,fb as F,gc as v,hc as x,ic as y,jd as B,qd as W,t as V,ta as m,tb as _,ua as p,vb as h,xb as D,yb as I,zb as E}from"./chunk-LBIXL2NM.js";function pe(n,t){n&1&&(r(0,"div",2)(1,"div",4),c(2,"Edit Serial is disabled during EDIT MODE"),l(),r(3,"div"),c(4,"If you make a mistake, please delete the item and then add again"),l()())}function ce(n,t){if(n&1){let e=f();r(0,"mat-chip-row",15),u("removed",function(){let a=m(e).$implicit,o=s(3);return p(o.onRemoveSerialChip(a))}),c(1),r(2,"button",16),b(3,"i",17),l()()}if(n&2){let e=t.$implicit;d(),k(" ",e," ")}}function ue(n,t){if(n&1){let e=f();r(0,"div",6)(1,"div",8)(2,"mat-form-field",9),u("keyup.enter",function(a){return m(e),p(a.stopPropagation())}),r(3,"mat-chip-grid",null,0),I(5,ce,4,1,"mat-chip-row",null,D),r(7,"input",10,1),u("matChipInputTokenEnd",function(a){m(e);let o=g(8),w=s(2);return p(w.addSerial(a,o))}),l()()()(),r(9,"div",11)(10,"button",12),u("click",function(){m(e);let a=g(8),o=s(2);return p(o.submitSerial(a))}),b(11,"i",13),r(12,"strong",14),c(13,"ADD"),l()()()()}if(n&2){let e=g(4),i=s(2);d(5),E(i.serials),d(2),C("matChipInputFor",e)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)}}function _e(n,t){if(n&1){let e=f();r(0,"ng-select",18),P(1,"async"),y("ngModelChange",function(a){m(e);let o=s(2);return x(o.serials,a)||(o.serials=a),p(a)}),u("remove",function(a){m(e);let o=s(2);return p(o.onRemoveSerialFromOption(a.value))})("change",function(a){m(e);let o=s(2);return p(o.onSelectSerial(a))}),l()}if(n&2){let e=s(2);C("items",R(1,3,e.variantSerials$)),v("ngModel",e.serials),C("multiple",!0)}}function he(n,t){if(n&1&&(r(0,"div",3)(1,"div",5),_(2,ue,14,2,"div",6)(3,_e,2,5,"ng-select",7),l()()),n&2){let e=s();d(2),h(e.isReturn?3:2)}}function Ce(n,t){n&1&&b(0,"th",22)}function fe(n,t){if(n&1){let e=f();r(0,"td",26)(1,"i",29),u("click",function(){m(e);let a=s(),o=a.$implicit,w=a.$index,me=s(2);return p(me.onRemoveSerial(w,o.Number))}),l()()}}function Se(n,t){if(n&1){let e=f();r(0,"tr"),_(1,fe,2,0,"td",26),r(2,"td"),c(3),l(),r(4,"td")(5,"datepicker",27),y("dateChange",function(a){let o=m(e).$implicit;return x(o.ExpiryDate,a)||(o.ExpiryDate=a),p(a)}),l()(),r(6,"td")(7,"input",28),y("ngModelChange",function(a){let o=m(e).$implicit;return x(o.Quantity,a)||(o.Quantity=a),p(a)}),u("change",function(){m(e);let a=s(2);return p(a.serialQtyChange())}),l()()()}if(n&2){let e=t.$implicit,i=s(2);d(),h(i.disabledEditQty?-1:1),d(2),O(e.Number),d(2),v("date",e.ExpiryDate),C("disabled",i.disabledEditQty&&i.constants.IsNotEmpty(i.variant.ID)),d(2),v("ngModel",e.Quantity),C("disabled",i.disabledEditQty&&i.constants.IsNotEmpty(i.variant.ID))("decimalPlaces",0)}}function be(n,t){if(n&1&&(r(0,"div",3)(1,"div",5)(2,"div",19)(3,"table",20)(4,"thead",21)(5,"tr"),_(6,Ce,1,0,"th",22),r(7,"th",23),c(8,"Serial Number"),l(),r(9,"th",24),c(10,"Expiry Date"),l(),r(11,"th",25),c(12,"Quantity"),l()()(),r(13,"tbody"),I(14,Se,8,7,"tr",null,D),l()()()()()),n&2){let e=s();d(6),h(e.disabledEditQty?-1:6),d(8),E(e.serialData)}}var de=class n{constructor(t,e){this.productService=t;this.toastr=e}disabledAddSerial=A(!1);disabledEditQty=!1;outletID;serials=[];isFocusOnSerialInput=!1;isFocusOnSerialInputChange=new S;constants=M;separatorKeysCodes=[13,188];_variant;set variant(t){this._variant=t,this.initSerial(),t&&t.Quantity<0&&(this.isReturn=!0,this.initVariantSerial())}get variant(){return this._variant}serialsChange=new S;variantChange=new S;onSerialDataChange=new S;isReturn=!1;serialData=[];variantSerials$;initSerial(){M.IsEmpty(this.variant.Serial)&&(this.variant.Serial=[]),this.variant.Serial&&(this.serialData=this.variant.Serial)}initVariantSerial(){let t=this.variant.VariantID,e;this.variantSerials$=this.productService.getVariantSerial(this.outletID,t).pipe(V(i=>i.map(a=>(e=new se,e.Number=a.Number,e.Quantity=a.Quantity,e))),N(()=>{this.serials=this.serialData.map(i=>i.Number)}),Q(1))}onFocusAddSerial(){this.isFocusOnSerialInputChange.emit(!0)}onBlurAddSerial(){this.isFocusOnSerialInputChange.emit(!1)}serialQtyChange(){this.variant.Serial=this.serialData,this.updateItemQty(),this.updateVariant(),this.onSerialDataChange.emit(this.serialData)}onRemoveSerial(t,e){this.serialData.splice(t,1),this.updateItemQty(),this.updateVariant()}onRemoveSerialChip(t){this.serials=this.serials.filter(e=>e!==t),this.serialsChange.emit(this.serials),this.variant.Quantity--}updateVariant(){this.variant.Serial=this.serialData,this.onSerialDataChange.emit(this.serialData),this.variantChange.emit(this.variant)}updateItemQty(){let t=this.calculateSerialQty(this.serialData);this.variant.Quantity=t==0?1:t}calculateSerialQty(t){let e=0;return t.forEach(i=>{e+=i.Quantity}),e}onSelectSerial(t){let e=t.filter(i=>this.serialData.findIndex(a=>a.Number==i.Number)==-1);e.length>0&&(e[0].Quantity=this.isReturn?-1:1,this.serialData=[...this.serialData,...e],this.updateItemQty(),this.updateVariant())}onRemoveSerialFromOption(t){this.serialData=this.serialData.filter(e=>e.Number!=t.Number),this.updateItemQty(),this.updateVariant()}submitSerial(t){t.value.trim()&&(this.serials.push(t.value.trim()),t.value="");let e=this.generateSerialData();this.serialData=[...this.serialData,...e],this.updateItemQty(),this.updateVariant(),this.serials=[],this.serialsChange.emit(this.serials)}generateSerialData(){let t=this.serials.filter(e=>this.serialData.findIndex(i=>i.Number==e)==-1).map(e=>({Number:e,Quantity:this.isReturn?-1:1,ExpiryDate:null}));return this.onSerialDataChange.emit(t),t}addSerial(t,e){let i=(t.value||"").trim();if(i)if(this.serials.find(a=>a==i)){e.value="",this.toastr.info("Serial already exists",G.Info);return}else this.serials.push(i),this.serialsChange.emit(this.serials),this.variant.Quantity=this.serials.length+this.variant.Serial.length,this.updateVariant();t.chipInput.clear()}static \u0275fac=function(e){return new(e||n)(T(oe),T(L))};static \u0275cmp=F({type:n,selectors:[["POS-tab-serial"]],inputs:{disabledAddSerial:[1,"disabledAddSerial"],disabledEditQty:"disabledEditQty",outletID:"outletID",serials:"serials",isFocusOnSerialInput:"isFocusOnSerialInput",variant:"variant"},outputs:{isFocusOnSerialInputChange:"isFocusOnSerialInputChange",serialsChange:"serialsChange",variantChange:"variantChange",onSerialDataChange:"onSerialDataChange"},decls:3,vars:3,consts:[["chipGrid",""],["inputChip",""],[1,"alert","alert-warning","text-center","my-5","py-3"],[1,"row","mt-8"],[1,"fw-bold"],[1,"col-12"],[1,"input-group","mb-3"],["bindLabel","Number","appendTo","body","bindValue","Number","placeholder","Select Serial",3,"items","ngModel","multiple"],[1,"col"],["appearance","outline",1,"serial-chip",3,"keyup.enter"],["placeholder","E.g. Serial1 Serial2",3,"matChipInputTokenEnd","matChipInputFor","matChipInputSeparatorKeyCodes"],[1,"col-auto"],["type","button",1,"btn","btn-outline-secondary","btn-sm","add-chip",3,"click"],["aria-hidden","true",1,"fa","fa-plus","me-1","fs-6"],[1,"headings-font-family","h6","font-weight-bold"],[3,"removed"],["matChipRemove",""],[1,"fa-solid","fa-circle-xmark"],["bindLabel","Number","appendTo","body","bindValue","Number","placeholder","Select Serial",3,"ngModelChange","remove","change","items","ngModel","multiple"],[1,"table-responsive"],[1,"table","table-bordered"],[1,"thead-light"],[1,"border-end",2,"width","40px"],[1,"border-end"],[1,"border-end",2,"width","150px"],[1,"border-end","text-end",2,"width","60px"],[1,"text-center"],["appearance","fill","width","150px","name","orderDate",3,"dateChange","date","disabled"],["type","text","placeholder","Quantity","autoNum","",1,"form-control","text-end",3,"ngModelChange","change","ngModel","disabled","decimalPlaces"],["aria-hidden","true","title","Remove serial",1,"fa","fa-xmark","text-danger","cursor-pointer","fa-2x",3,"click"]],template:function(e,i){e&1&&(_(0,pe,5,0,"div",2),_(1,he,4,1,"div",3),_(2,be,16,1,"div",3)),e&2&&(h(i.disabledEditQty&&i.constants.IsNotEmpty(i.variant.ID)?0:-1),d(),h(i.disabledAddSerial()?-1:1),d(),h((i.serialData==null?null:i.serialData.length)>0?2:-1))},dependencies:[W,j,H,$,K,U,X,J,Y,ee,Z,re,ae,ne,te,ie,z,q,le,B],styles:[".serial-chip[_ngcontent-%COMP%]{width:100%}.serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.serial-chip[_ngcontent-%COMP%] .mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input, .serial-chip[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:40px!important}.serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing, .serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch, .serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading{border-color:#ccc!important}.serial-chip[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:8px;padding-bottom:8px}.add-chip[_ngcontent-%COMP%]{height:calc(100% - 18.4px);margin-left:1px;border-top-left-radius:0;border-bottom-left-radius:0} .mat-mdc-form-field.datepicker{width:150px} .mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input, .mat-mdc-text-field-wrapper[_ngcontent-%COMP%] .mat-mdc-form-field-input-control[_ngcontent-%COMP%]{height:20px!important}"]})};export{de as a};
|
|
1
|
+
import{a as se}from"./chunk-NQX7EX5A.js";import{a as oe}from"./chunk-GDPQI6PI.js";import{b as le}from"./chunk-RPJIPLQS.js";import{a as te,c as ie,e as ae,f as ne,g as re}from"./chunk-MREFZR3I.js";import{d as Z,e as ee}from"./chunk-I4WJ5CEN.js";import{a as z}from"./chunk-CKGJCUHW.js";import{c as Y}from"./chunk-V7HBROQ5.js";import{a as U,c as X}from"./chunk-AASKAWJ4.js";import{m as q}from"./chunk-EGUIWOC3.js";import{d as J}from"./chunk-2JU7KFOZ.js";import{a as G}from"./chunk-2FWFPV5I.js";import{F as j,c as H,h as $,o as K}from"./chunk-OJ5SEYSF.js";import{a as M}from"./chunk-TS6CZC3J.js";import{Ab as E,Bb as C,Bc as P,Cb as r,Cc as R,Db as l,Eb as b,Lb as f,Nb as u,Pb as s,Pc as A,Wa as d,Xa as S,Y as Q,Zb as g,be as L,cb as T,cc as c,dc as O,ec as k,fa as N,gb as F,hc as v,ic as x,jc as y,kd as B,rd as W,t as V,ta as m,ua as p,ub as _,wb as h,yb as D,zb as I}from"./chunk-VS3RTXZC.js";function pe(n,t){n&1&&(r(0,"div",2)(1,"div",4),c(2,"Edit Serial is disabled during EDIT MODE"),l(),r(3,"div"),c(4,"If you make a mistake, please delete the item and then add again"),l()())}function ce(n,t){if(n&1){let e=f();r(0,"mat-chip-row",15),u("removed",function(){let a=m(e).$implicit,o=s(3);return p(o.onRemoveSerialChip(a))}),c(1),r(2,"button",16),b(3,"i",17),l()()}if(n&2){let e=t.$implicit;d(),k(" ",e," ")}}function ue(n,t){if(n&1){let e=f();r(0,"div",6)(1,"div",8)(2,"mat-form-field",9),u("keyup.enter",function(a){return m(e),p(a.stopPropagation())}),r(3,"mat-chip-grid",null,0),I(5,ce,4,1,"mat-chip-row",null,D),r(7,"input",10,1),u("matChipInputTokenEnd",function(a){m(e);let o=g(8),w=s(2);return p(w.addSerial(a,o))}),l()()()(),r(9,"div",11)(10,"button",12),u("click",function(){m(e);let a=g(8),o=s(2);return p(o.submitSerial(a))}),b(11,"i",13),r(12,"strong",14),c(13,"ADD"),l()()()()}if(n&2){let e=g(4),i=s(2);d(5),E(i.serials),d(2),C("matChipInputFor",e)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)}}function _e(n,t){if(n&1){let e=f();r(0,"ng-select",18),P(1,"async"),y("ngModelChange",function(a){m(e);let o=s(2);return x(o.serials,a)||(o.serials=a),p(a)}),u("remove",function(a){m(e);let o=s(2);return p(o.onRemoveSerialFromOption(a.value))})("change",function(a){m(e);let o=s(2);return p(o.onSelectSerial(a))}),l()}if(n&2){let e=s(2);C("items",R(1,3,e.variantSerials$)),v("ngModel",e.serials),C("multiple",!0)}}function he(n,t){if(n&1&&(r(0,"div",3)(1,"div",5),_(2,ue,14,2,"div",6)(3,_e,2,5,"ng-select",7),l()()),n&2){let e=s();d(2),h(e.isReturn?3:2)}}function Ce(n,t){n&1&&b(0,"th",22)}function fe(n,t){if(n&1){let e=f();r(0,"td",26)(1,"i",29),u("click",function(){m(e);let a=s(),o=a.$implicit,w=a.$index,me=s(2);return p(me.onRemoveSerial(w,o.Number))}),l()()}}function Se(n,t){if(n&1){let e=f();r(0,"tr"),_(1,fe,2,0,"td",26),r(2,"td"),c(3),l(),r(4,"td")(5,"datepicker",27),y("dateChange",function(a){let o=m(e).$implicit;return x(o.ExpiryDate,a)||(o.ExpiryDate=a),p(a)}),l()(),r(6,"td")(7,"input",28),y("ngModelChange",function(a){let o=m(e).$implicit;return x(o.Quantity,a)||(o.Quantity=a),p(a)}),u("change",function(){m(e);let a=s(2);return p(a.serialQtyChange())}),l()()()}if(n&2){let e=t.$implicit,i=s(2);d(),h(i.disabledEditQty?-1:1),d(2),O(e.Number),d(2),v("date",e.ExpiryDate),C("disabled",i.disabledEditQty&&i.constants.IsNotEmpty(i.variant.ID)),d(2),v("ngModel",e.Quantity),C("disabled",i.disabledEditQty&&i.constants.IsNotEmpty(i.variant.ID))("decimalPlaces",0)}}function be(n,t){if(n&1&&(r(0,"div",3)(1,"div",5)(2,"div",19)(3,"table",20)(4,"thead",21)(5,"tr"),_(6,Ce,1,0,"th",22),r(7,"th",23),c(8,"Serial Number"),l(),r(9,"th",24),c(10,"Expiry Date"),l(),r(11,"th",25),c(12,"Quantity"),l()()(),r(13,"tbody"),I(14,Se,8,7,"tr",null,D),l()()()()()),n&2){let e=s();d(6),h(e.disabledEditQty?-1:6),d(8),E(e.serialData)}}var de=class n{constructor(t,e){this.productService=t;this.toastr=e}disabledAddSerial=A(!1);disabledEditQty=!1;outletID;serials=[];isFocusOnSerialInput=!1;isFocusOnSerialInputChange=new S;constants=M;separatorKeysCodes=[13,188];_variant;set variant(t){this._variant=t,this.initSerial(),t&&t.Quantity<0&&(this.isReturn=!0,this.initVariantSerial())}get variant(){return this._variant}serialsChange=new S;variantChange=new S;onSerialDataChange=new S;isReturn=!1;serialData=[];variantSerials$;initSerial(){M.IsEmpty(this.variant.Serial)&&(this.variant.Serial=[]),this.variant.Serial&&(this.serialData=this.variant.Serial)}initVariantSerial(){let t=this.variant.VariantID,e;this.variantSerials$=this.productService.getVariantSerial(this.outletID,t).pipe(V(i=>i.map(a=>(e=new se,e.Number=a.Number,e.Quantity=a.Quantity,e))),N(()=>{this.serials=this.serialData.map(i=>i.Number)}),Q(1))}onFocusAddSerial(){this.isFocusOnSerialInputChange.emit(!0)}onBlurAddSerial(){this.isFocusOnSerialInputChange.emit(!1)}serialQtyChange(){this.variant.Serial=this.serialData,this.updateItemQty(),this.updateVariant(),this.onSerialDataChange.emit(this.serialData)}onRemoveSerial(t,e){this.serialData.splice(t,1),this.updateItemQty(),this.updateVariant()}onRemoveSerialChip(t){this.serials=this.serials.filter(e=>e!==t),this.serialsChange.emit(this.serials),this.variant.Quantity--}updateVariant(){this.variant.Serial=this.serialData,this.onSerialDataChange.emit(this.serialData),this.variantChange.emit(this.variant)}updateItemQty(){let t=this.calculateSerialQty(this.serialData);this.variant.Quantity=t==0?1:t}calculateSerialQty(t){let e=0;return t.forEach(i=>{e+=i.Quantity}),e}onSelectSerial(t){let e=t.filter(i=>this.serialData.findIndex(a=>a.Number==i.Number)==-1);e.length>0&&(e[0].Quantity=this.isReturn?-1:1,this.serialData=[...this.serialData,...e],this.updateItemQty(),this.updateVariant())}onRemoveSerialFromOption(t){this.serialData=this.serialData.filter(e=>e.Number!=t.Number),this.updateItemQty(),this.updateVariant()}submitSerial(t){t.value.trim()&&(this.serials.push(t.value.trim()),t.value="");let e=this.generateSerialData();this.serialData=[...this.serialData,...e],this.updateItemQty(),this.updateVariant(),this.serials=[],this.serialsChange.emit(this.serials)}generateSerialData(){let t=this.serials.filter(e=>this.serialData.findIndex(i=>i.Number==e)==-1).map(e=>({Number:e,Quantity:this.isReturn?-1:1,ExpiryDate:null}));return this.onSerialDataChange.emit(t),t}addSerial(t,e){let i=(t.value||"").trim();if(i)if(this.serials.find(a=>a==i)){e.value="",this.toastr.info("Serial already exists",G.Info);return}else this.serials.push(i),this.serialsChange.emit(this.serials),this.variant.Quantity=this.serials.length+this.variant.Serial.length,this.updateVariant();t.chipInput.clear()}static \u0275fac=function(e){return new(e||n)(T(oe),T(L))};static \u0275cmp=F({type:n,selectors:[["POS-tab-serial"]],inputs:{disabledAddSerial:[1,"disabledAddSerial"],disabledEditQty:"disabledEditQty",outletID:"outletID",serials:"serials",isFocusOnSerialInput:"isFocusOnSerialInput",variant:"variant"},outputs:{isFocusOnSerialInputChange:"isFocusOnSerialInputChange",serialsChange:"serialsChange",variantChange:"variantChange",onSerialDataChange:"onSerialDataChange"},decls:3,vars:3,consts:[["chipGrid",""],["inputChip",""],[1,"alert","alert-warning","text-center","my-5","py-3"],[1,"row","mt-8"],[1,"fw-bold"],[1,"col-12"],[1,"input-group","mb-3"],["bindLabel","Number","appendTo","body","bindValue","Number","placeholder","Select Serial",3,"items","ngModel","multiple"],[1,"col"],["appearance","outline",1,"serial-chip",3,"keyup.enter"],["placeholder","E.g. Serial1 Serial2",3,"matChipInputTokenEnd","matChipInputFor","matChipInputSeparatorKeyCodes"],[1,"col-auto"],["type","button",1,"btn","btn-outline-secondary","btn-sm","add-chip",3,"click"],["aria-hidden","true",1,"fa","fa-plus","me-1","fs-6"],[1,"headings-font-family","h6","font-weight-bold"],[3,"removed"],["matChipRemove",""],[1,"fa-solid","fa-circle-xmark"],["bindLabel","Number","appendTo","body","bindValue","Number","placeholder","Select Serial",3,"ngModelChange","remove","change","items","ngModel","multiple"],[1,"table-responsive"],[1,"table","table-bordered"],[1,"thead-light"],[1,"border-end",2,"width","40px"],[1,"border-end"],[1,"border-end",2,"width","150px"],[1,"border-end","text-end",2,"width","60px"],[1,"text-center"],["appearance","fill","width","150px","name","orderDate",3,"dateChange","date","disabled"],["type","text","placeholder","Quantity","autoNum","",1,"form-control","text-end",3,"ngModelChange","change","ngModel","disabled","decimalPlaces"],["aria-hidden","true","title","Remove serial",1,"fa","fa-xmark","text-danger","cursor-pointer","fa-2x",3,"click"]],template:function(e,i){e&1&&(_(0,pe,5,0,"div",2),_(1,he,4,1,"div",3),_(2,be,16,1,"div",3)),e&2&&(h(i.disabledEditQty&&i.constants.IsNotEmpty(i.variant.ID)?0:-1),d(),h(i.disabledAddSerial()?-1:1),d(),h((i.serialData==null?null:i.serialData.length)>0?2:-1))},dependencies:[W,j,H,$,K,U,X,J,Y,ee,Z,re,ae,ne,te,ie,z,q,le,B],styles:[".serial-chip[_ngcontent-%COMP%]{width:100%}.serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.serial-chip[_ngcontent-%COMP%] .mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input, .serial-chip[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:40px!important}.serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing, .serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch, .serial-chip[_ngcontent-%COMP%] .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading{border-color:#ccc!important}.serial-chip[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:8px;padding-bottom:8px}.add-chip[_ngcontent-%COMP%]{height:calc(100% - 18.4px);margin-left:1px;border-top-left-radius:0;border-bottom-left-radius:0} .mat-mdc-form-field.datepicker{width:150px} .mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input, .mat-mdc-text-field-wrapper[_ngcontent-%COMP%] .mat-mdc-form-field-input-control[_ngcontent-%COMP%]{height:20px!important}"]})};export{de as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as g,a as p,h as $,o as Z}from"./chunk-PRROMENK.js";import{A as v,Ab as j,Bb as k,Cb as V,E as R,Ja as U,Ma as F,Mb as x,Oc as z,S as P,Uc as L,Xa as n,Y as I,Ya as B,aa as O,bb as a,d as S,da as b,e as D,fb as u,gb as c,hb as N,jb as T,ka as d,ma as l,na as A,qc as h,qd as m,rd as G,t as _,uc as K}from"./chunk-LBIXL2NM.js";import{a as E,b as M}from"./chunk-SNAKHGZS.js";var f=()=>{let e=typeof window<"u"?window:void 0;return e&&e.tinymce?e.tinymce:null},se=(()=>{class e{onBeforePaste=new n;onBlur=new n;onClick=new n;onCompositionEnd=new n;onCompositionStart=new n;onCompositionUpdate=new n;onContextMenu=new n;onCopy=new n;onCut=new n;onDblclick=new n;onDrag=new n;onDragDrop=new n;onDragEnd=new n;onDragGesture=new n;onDragOver=new n;onDrop=new n;onFocus=new n;onFocusIn=new n;onFocusOut=new n;onKeyDown=new n;onKeyPress=new n;onKeyUp=new n;onMouseDown=new n;onMouseEnter=new n;onMouseLeave=new n;onMouseMove=new n;onMouseOut=new n;onMouseOver=new n;onMouseUp=new n;onPaste=new n;onSelectionChange=new n;onActivate=new n;onAddUndo=new n;onBeforeAddUndo=new n;onBeforeExecCommand=new n;onBeforeGetContent=new n;onBeforeRenderUI=new n;onBeforeSetContent=new n;onChange=new n;onClearUndos=new n;onDeactivate=new n;onDirty=new n;onExecCommand=new n;onGetContent=new n;onHide=new n;onInit=new n;onInput=new n;onInitNgModel=new n;onLoadContent=new n;onNodeChange=new n;onPostProcess=new n;onPostRender=new n;onPreInit=new n;onPreProcess=new n;onProgressState=new n;onRedo=new n;onRemove=new n;onReset=new n;onResizeEditor=new n;onSaveContent=new n;onSetAttrib=new n;onObjectResizeStart=new n;onObjectResized=new n;onObjectSelected=new n;onSetContent=new n;onShow=new n;onSubmit=new n;onUndo=new n;onVisualAid=new n;static \u0275fac=function(t){return new(t||e)};static \u0275dir=N({type:e,outputs:{onBeforePaste:"onBeforePaste",onBlur:"onBlur",onClick:"onClick",onCompositionEnd:"onCompositionEnd",onCompositionStart:"onCompositionStart",onCompositionUpdate:"onCompositionUpdate",onContextMenu:"onContextMenu",onCopy:"onCopy",onCut:"onCut",onDblclick:"onDblclick",onDrag:"onDrag",onDragDrop:"onDragDrop",onDragEnd:"onDragEnd",onDragGesture:"onDragGesture",onDragOver:"onDragOver",onDrop:"onDrop",onFocus:"onFocus",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onKeyDown:"onKeyDown",onKeyPress:"onKeyPress",onKeyUp:"onKeyUp",onMouseDown:"onMouseDown",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave",onMouseMove:"onMouseMove",onMouseOut:"onMouseOut",onMouseOver:"onMouseOver",onMouseUp:"onMouseUp",onPaste:"onPaste",onSelectionChange:"onSelectionChange",onActivate:"onActivate",onAddUndo:"onAddUndo",onBeforeAddUndo:"onBeforeAddUndo",onBeforeExecCommand:"onBeforeExecCommand",onBeforeGetContent:"onBeforeGetContent",onBeforeRenderUI:"onBeforeRenderUI",onBeforeSetContent:"onBeforeSetContent",onChange:"onChange",onClearUndos:"onClearUndos",onDeactivate:"onDeactivate",onDirty:"onDirty",onExecCommand:"onExecCommand",onGetContent:"onGetContent",onHide:"onHide",onInit:"onInit",onInput:"onInput",onInitNgModel:"onInitNgModel",onLoadContent:"onLoadContent",onNodeChange:"onNodeChange",onPostProcess:"onPostProcess",onPostRender:"onPostRender",onPreInit:"onPreInit",onPreProcess:"onPreProcess",onProgressState:"onProgressState",onRedo:"onRedo",onRemove:"onRemove",onReset:"onReset",onResizeEditor:"onResizeEditor",onSaveContent:"onSaveContent",onSetAttrib:"onSetAttrib",onObjectResizeStart:"onObjectResizeStart",onObjectResized:"onObjectResized",onObjectSelected:"onObjectSelected",onSetContent:"onSetContent",onShow:"onShow",onSubmit:"onSubmit",onUndo:"onUndo",onVisualAid:"onVisualAid"},standalone:!1})}return e})(),H=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onCompositionEnd","onCompositionStart","onCompositionUpdate","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onResizeEditor","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],C=(e,i,o)=>v(e,i).pipe(b(o)),re=(e,i,o)=>{ae(e).forEach(s=>{let r=e[s];C(i,s.substring(2),o).subscribe(y=>{ce(r)&&e.ngZone.run(()=>r.emit({event:y,editor:i}))})})},ae=e=>{let i=Y(e.ignoreEvents,[]);return Y(e.allowedEvents,H).filter(t=>H.includes(t)&&!i.includes(t))},Y=(e,i)=>typeof e=="string"?e.split(",").map(o=>o.trim()):Array.isArray(e)?e:i,q=0,de=e=>{let o=new Date().getTime(),t=Math.floor(Math.random()*1e9);return q++,e+"_"+t+q+String(o)},J=e=>typeof e<"u"&&e.tagName.toLowerCase()==="textarea",Q=e=>typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" "),le=(e,i)=>Q(e).concat(Q(i)),ue=()=>{},W=e=>e==null,ce=e=>e.observed||e.observers?.length>0,X=(e,i)=>{typeof e.mode?.set=="function"?e.mode.set(i):"setMode"in e&&typeof e.setMode=="function"&&e.setMode(i)},ee=e=>e.options&&e.options.isRegistered("disabled"),he=()=>e=>e.pipe(P(),_(()=>{})),me=()=>{let e=new D(null),i=e.pipe(R(Boolean),O(([o,t])=>{let s=o.createElement("script");return s.referrerPolicy="origin",s.type="application/javascript",s.src=t,o.head.appendChild(s),v(s,"load").pipe(he())}),I({bufferSize:1,refCount:!0}));return{load:(...o)=>(e.getValue()||e.next(o),i),reinitialize:()=>{e.next(null)}}},pe=me(),ge=new A("TINYMCE_SCRIPT_SRC"),fe={provide:p,useExisting:d(()=>w),multi:!0},w=(()=>{class e extends se{cdRef;platformId;tinymceScriptSrc;cloudChannel="8";apiKey="no-api-key";licenseKey;init;id="";initialValue;outputFormat;inline;tagName;plugins;toolbar;modelEvents="change input undo redo";allowedEvents;ignoreEvents;set readonly(o){this._readonly=o,this._editor&&X(this._editor,o?"readonly":"design")}get readonly(){return this._readonly}set disabled(o){this._disabled=o,this._editor&&(ee(this._editor)?this._editor.options.set("disabled",o??!1):X(this._editor,o?"readonly":"design"))}get disabled(){return this._disabled}get editor(){return this._editor}ngZone;_elementRef;_element;_disabled;_readonly;_editor;onTouchedCallback=ue;onChangeCallback;destroy$=new S;constructor(o,t,s,r,y){super(),this.cdRef=s,this.platformId=r,this.tinymceScriptSrc=y,this._elementRef=o,this.ngZone=t}writeValue(o){this._editor&&this._editor.initialized?this._editor.setContent(W(o)?"":o):this.initialValue=o===null?void 0:o}registerOnChange(o){this.onChangeCallback=o}registerOnTouched(o){this.onTouchedCallback=o}setDisabledState(o){this.disabled=o}ngAfterViewInit(){G(this.platformId)&&(this.id=this.id||de("tiny-angular"),this.inline=this.inline!==void 0?this.inline!==!1:!!this.init?.inline,this.createElement(),f()!==null?this.initialise():this._element&&this._element.ownerDocument&&pe.load(this._element.ownerDocument,this.getScriptSrc()).pipe(b(this.destroy$)).subscribe(this.initialise))}ngOnDestroy(){this.destroy$.next(),f()!==null&&f().remove(this._editor)}createElement(){let o=typeof this.tagName=="string"?this.tagName:"div";if(this._element=document.createElement(this.inline?o:"textarea"),this._element){let t=document.getElementById(this.id);t&&t!==this._elementRef.nativeElement&&console.warn(`TinyMCE-Angular: an element with id [${this.id}] already exists. Editors with duplicate Id will not be able to mount`),this._element.id=this.id,J(this._element)&&(this._element.style.visibility="hidden"),this._elementRef.nativeElement.appendChild(this._element)}}initialise=()=>{let o=M(E({},this.init),{selector:void 0,target:this._element,inline:this.inline,disabled:this.disabled,readonly:this.readonly,license_key:this.licenseKey,plugins:le(this.init&&this.init.plugins,this.plugins),toolbar:this.toolbar||this.init&&this.init.toolbar,setup:t=>{this._editor=t,C(t,"init",this.destroy$).subscribe(()=>{this.initEditor(t)}),re(this,t,this.destroy$),this.init&&typeof this.init.setup=="function"&&this.init.setup(t),this.disabled===!0&&(ee(t)?this._editor.options.set("disabled",this.disabled):this._editor.mode.set("readonly"))}});J(this._element)&&(this._element.style.visibility=""),this.ngZone.runOutsideAngular(()=>{f().init(o)})};getScriptSrc(){return W(this.tinymceScriptSrc)?`https://cdn.tiny.cloud/1/${this.apiKey}/tinymce/${this.cloudChannel}/tinymce.min.js`:this.tinymceScriptSrc}initEditor(o){C(o,"blur",this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.onTouchedCallback())}),C(o,this.modelEvents,this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.emitOnChange(o))}),typeof this.initialValue=="string"&&this.ngZone.run(()=>{o.setContent(this.initialValue),o.getContent()!==this.initialValue&&this.emitOnChange(o),this.onInitNgModel!==void 0&&this.onInitNgModel.emit(o)})}emitOnChange(o){this.onChangeCallback&&this.onChangeCallback(o.getContent({format:this.outputFormat}))}static \u0275fac=function(t){return new(t||e)(a(U),a(B),a(L),a(F),a(ge,8))};static \u0275cmp=u({type:e,selectors:[["editor"]],inputs:{cloudChannel:"cloudChannel",apiKey:"apiKey",licenseKey:"licenseKey",init:"init",id:"id",initialValue:"initialValue",outputFormat:"outputFormat",inline:"inline",tagName:"tagName",plugins:"plugins",toolbar:"toolbar",modelEvents:"modelEvents",allowedEvents:"allowedEvents",ignoreEvents:"ignoreEvents",readonly:"readonly",disabled:"disabled"},features:[h([fe]),T],decls:0,vars:0,template:function(t,s){},dependencies:[m,g],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return e})(),ne=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=c({type:e});static \u0275inj=l({imports:[w]})}return e})();var we=(e,i,o)=>({forced_root_block:"div",newline_behavior:"invert",height:e,menubar:!1,branding:!1,placeholder:i,paste_as_text:!0,toolbar:"bold italic | bullist numlist | outdent indent | alignleft aligncenter alignright alignjustify | table ",auto_focus:o}),oe=class e{placeholder;height="250px";disabled=!1;valueChange=new n;autoFocus=z(!1);plugins=localStorage.getItem("TinyMCEPlugins")??"";value="";onChange=()=>{};onTouched=()=>{};writeValue(i){this.value=i||""}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.disabled=i}onEditorInput(i){this.value=i,this.valueChange.emit(i),this.onChange(i),this.onTouched()}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=u({type:e,selectors:[["POS-tinymce-editor"]],inputs:{placeholder:"placeholder",height:"height",disabled:"disabled",autoFocus:[1,"autoFocus"]},outputs:{valueChange:"valueChange"},standalone:!1,features:[h([{provide:p,useExisting:d(()=>e),multi:!0}])],decls:1,vars:8,consts:[[1,"form-control","p-0","border-0",3,"ngModelChange","init","plugins","ngModel","id"]],template:function(o,t){o&1&&(k(0,"editor",0),x("ngModelChange",function(r){return t.onEditorInput(r)}),V()),o&2&&j("init",K(4,we,t.height,t.placeholder,t.autoFocus()?"tinyMceEditor":null))("plugins",t.plugins)("ngModel",t.value)("id",t.autoFocus()?"tinyMceEditor":null)},dependencies:[w,$,Z],encapsulation:2})},te=class e{static \u0275fac=function(o){return new(o||e)};static \u0275mod=c({type:e});static \u0275inj=l({imports:[m,ne,g]})};export{oe as a,te as b};
|
|
1
|
+
import{F as g,a as p,h as $,o as Z}from"./chunk-OJ5SEYSF.js";import{A as v,Bb as j,Cb as k,Db as V,E as R,Ja as U,Ma as F,Nb as x,Pc as z,S as P,Vc as L,Xa as n,Y as I,Ya as B,aa as O,cb as a,d as S,da as b,e as D,gb as u,hb as c,ib as N,ka as d,kb as T,ma as l,na as A,rc as h,rd as m,sd as G,t as _,vc as K}from"./chunk-VS3RTXZC.js";import{a as E,b as M}from"./chunk-SNAKHGZS.js";var f=()=>{let e=typeof window<"u"?window:void 0;return e&&e.tinymce?e.tinymce:null},se=(()=>{class e{onBeforePaste=new n;onBlur=new n;onClick=new n;onCompositionEnd=new n;onCompositionStart=new n;onCompositionUpdate=new n;onContextMenu=new n;onCopy=new n;onCut=new n;onDblclick=new n;onDrag=new n;onDragDrop=new n;onDragEnd=new n;onDragGesture=new n;onDragOver=new n;onDrop=new n;onFocus=new n;onFocusIn=new n;onFocusOut=new n;onKeyDown=new n;onKeyPress=new n;onKeyUp=new n;onMouseDown=new n;onMouseEnter=new n;onMouseLeave=new n;onMouseMove=new n;onMouseOut=new n;onMouseOver=new n;onMouseUp=new n;onPaste=new n;onSelectionChange=new n;onActivate=new n;onAddUndo=new n;onBeforeAddUndo=new n;onBeforeExecCommand=new n;onBeforeGetContent=new n;onBeforeRenderUI=new n;onBeforeSetContent=new n;onChange=new n;onClearUndos=new n;onDeactivate=new n;onDirty=new n;onExecCommand=new n;onGetContent=new n;onHide=new n;onInit=new n;onInput=new n;onInitNgModel=new n;onLoadContent=new n;onNodeChange=new n;onPostProcess=new n;onPostRender=new n;onPreInit=new n;onPreProcess=new n;onProgressState=new n;onRedo=new n;onRemove=new n;onReset=new n;onResizeEditor=new n;onSaveContent=new n;onSetAttrib=new n;onObjectResizeStart=new n;onObjectResized=new n;onObjectSelected=new n;onSetContent=new n;onShow=new n;onSubmit=new n;onUndo=new n;onVisualAid=new n;static \u0275fac=function(t){return new(t||e)};static \u0275dir=N({type:e,outputs:{onBeforePaste:"onBeforePaste",onBlur:"onBlur",onClick:"onClick",onCompositionEnd:"onCompositionEnd",onCompositionStart:"onCompositionStart",onCompositionUpdate:"onCompositionUpdate",onContextMenu:"onContextMenu",onCopy:"onCopy",onCut:"onCut",onDblclick:"onDblclick",onDrag:"onDrag",onDragDrop:"onDragDrop",onDragEnd:"onDragEnd",onDragGesture:"onDragGesture",onDragOver:"onDragOver",onDrop:"onDrop",onFocus:"onFocus",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onKeyDown:"onKeyDown",onKeyPress:"onKeyPress",onKeyUp:"onKeyUp",onMouseDown:"onMouseDown",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave",onMouseMove:"onMouseMove",onMouseOut:"onMouseOut",onMouseOver:"onMouseOver",onMouseUp:"onMouseUp",onPaste:"onPaste",onSelectionChange:"onSelectionChange",onActivate:"onActivate",onAddUndo:"onAddUndo",onBeforeAddUndo:"onBeforeAddUndo",onBeforeExecCommand:"onBeforeExecCommand",onBeforeGetContent:"onBeforeGetContent",onBeforeRenderUI:"onBeforeRenderUI",onBeforeSetContent:"onBeforeSetContent",onChange:"onChange",onClearUndos:"onClearUndos",onDeactivate:"onDeactivate",onDirty:"onDirty",onExecCommand:"onExecCommand",onGetContent:"onGetContent",onHide:"onHide",onInit:"onInit",onInput:"onInput",onInitNgModel:"onInitNgModel",onLoadContent:"onLoadContent",onNodeChange:"onNodeChange",onPostProcess:"onPostProcess",onPostRender:"onPostRender",onPreInit:"onPreInit",onPreProcess:"onPreProcess",onProgressState:"onProgressState",onRedo:"onRedo",onRemove:"onRemove",onReset:"onReset",onResizeEditor:"onResizeEditor",onSaveContent:"onSaveContent",onSetAttrib:"onSetAttrib",onObjectResizeStart:"onObjectResizeStart",onObjectResized:"onObjectResized",onObjectSelected:"onObjectSelected",onSetContent:"onSetContent",onShow:"onShow",onSubmit:"onSubmit",onUndo:"onUndo",onVisualAid:"onVisualAid"},standalone:!1})}return e})(),H=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onCompositionEnd","onCompositionStart","onCompositionUpdate","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onResizeEditor","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],C=(e,i,o)=>v(e,i).pipe(b(o)),re=(e,i,o)=>{ae(e).forEach(s=>{let r=e[s];C(i,s.substring(2),o).subscribe(y=>{ce(r)&&e.ngZone.run(()=>r.emit({event:y,editor:i}))})})},ae=e=>{let i=Y(e.ignoreEvents,[]);return Y(e.allowedEvents,H).filter(t=>H.includes(t)&&!i.includes(t))},Y=(e,i)=>typeof e=="string"?e.split(",").map(o=>o.trim()):Array.isArray(e)?e:i,q=0,de=e=>{let o=new Date().getTime(),t=Math.floor(Math.random()*1e9);return q++,e+"_"+t+q+String(o)},J=e=>typeof e<"u"&&e.tagName.toLowerCase()==="textarea",Q=e=>typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" "),le=(e,i)=>Q(e).concat(Q(i)),ue=()=>{},W=e=>e==null,ce=e=>e.observed||e.observers?.length>0,X=(e,i)=>{typeof e.mode?.set=="function"?e.mode.set(i):"setMode"in e&&typeof e.setMode=="function"&&e.setMode(i)},ee=e=>e.options&&e.options.isRegistered("disabled"),he=()=>e=>e.pipe(P(),_(()=>{})),me=()=>{let e=new D(null),i=e.pipe(R(Boolean),O(([o,t])=>{let s=o.createElement("script");return s.referrerPolicy="origin",s.type="application/javascript",s.src=t,o.head.appendChild(s),v(s,"load").pipe(he())}),I({bufferSize:1,refCount:!0}));return{load:(...o)=>(e.getValue()||e.next(o),i),reinitialize:()=>{e.next(null)}}},pe=me(),ge=new A("TINYMCE_SCRIPT_SRC"),fe={provide:p,useExisting:d(()=>w),multi:!0},w=(()=>{class e extends se{cdRef;platformId;tinymceScriptSrc;cloudChannel="8";apiKey="no-api-key";licenseKey;init;id="";initialValue;outputFormat;inline;tagName;plugins;toolbar;modelEvents="change input undo redo";allowedEvents;ignoreEvents;set readonly(o){this._readonly=o,this._editor&&X(this._editor,o?"readonly":"design")}get readonly(){return this._readonly}set disabled(o){this._disabled=o,this._editor&&(ee(this._editor)?this._editor.options.set("disabled",o??!1):X(this._editor,o?"readonly":"design"))}get disabled(){return this._disabled}get editor(){return this._editor}ngZone;_elementRef;_element;_disabled;_readonly;_editor;onTouchedCallback=ue;onChangeCallback;destroy$=new S;constructor(o,t,s,r,y){super(),this.cdRef=s,this.platformId=r,this.tinymceScriptSrc=y,this._elementRef=o,this.ngZone=t}writeValue(o){this._editor&&this._editor.initialized?this._editor.setContent(W(o)?"":o):this.initialValue=o===null?void 0:o}registerOnChange(o){this.onChangeCallback=o}registerOnTouched(o){this.onTouchedCallback=o}setDisabledState(o){this.disabled=o}ngAfterViewInit(){G(this.platformId)&&(this.id=this.id||de("tiny-angular"),this.inline=this.inline!==void 0?this.inline!==!1:!!this.init?.inline,this.createElement(),f()!==null?this.initialise():this._element&&this._element.ownerDocument&&pe.load(this._element.ownerDocument,this.getScriptSrc()).pipe(b(this.destroy$)).subscribe(this.initialise))}ngOnDestroy(){this.destroy$.next(),f()!==null&&f().remove(this._editor)}createElement(){let o=typeof this.tagName=="string"?this.tagName:"div";if(this._element=document.createElement(this.inline?o:"textarea"),this._element){let t=document.getElementById(this.id);t&&t!==this._elementRef.nativeElement&&console.warn(`TinyMCE-Angular: an element with id [${this.id}] already exists. Editors with duplicate Id will not be able to mount`),this._element.id=this.id,J(this._element)&&(this._element.style.visibility="hidden"),this._elementRef.nativeElement.appendChild(this._element)}}initialise=()=>{let o=M(E({},this.init),{selector:void 0,target:this._element,inline:this.inline,disabled:this.disabled,readonly:this.readonly,license_key:this.licenseKey,plugins:le(this.init&&this.init.plugins,this.plugins),toolbar:this.toolbar||this.init&&this.init.toolbar,setup:t=>{this._editor=t,C(t,"init",this.destroy$).subscribe(()=>{this.initEditor(t)}),re(this,t,this.destroy$),this.init&&typeof this.init.setup=="function"&&this.init.setup(t),this.disabled===!0&&(ee(t)?this._editor.options.set("disabled",this.disabled):this._editor.mode.set("readonly"))}});J(this._element)&&(this._element.style.visibility=""),this.ngZone.runOutsideAngular(()=>{f().init(o)})};getScriptSrc(){return W(this.tinymceScriptSrc)?`https://cdn.tiny.cloud/1/${this.apiKey}/tinymce/${this.cloudChannel}/tinymce.min.js`:this.tinymceScriptSrc}initEditor(o){C(o,"blur",this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.onTouchedCallback())}),C(o,this.modelEvents,this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.emitOnChange(o))}),typeof this.initialValue=="string"&&this.ngZone.run(()=>{o.setContent(this.initialValue),o.getContent()!==this.initialValue&&this.emitOnChange(o),this.onInitNgModel!==void 0&&this.onInitNgModel.emit(o)})}emitOnChange(o){this.onChangeCallback&&this.onChangeCallback(o.getContent({format:this.outputFormat}))}static \u0275fac=function(t){return new(t||e)(a(U),a(B),a(L),a(F),a(ge,8))};static \u0275cmp=u({type:e,selectors:[["editor"]],inputs:{cloudChannel:"cloudChannel",apiKey:"apiKey",licenseKey:"licenseKey",init:"init",id:"id",initialValue:"initialValue",outputFormat:"outputFormat",inline:"inline",tagName:"tagName",plugins:"plugins",toolbar:"toolbar",modelEvents:"modelEvents",allowedEvents:"allowedEvents",ignoreEvents:"ignoreEvents",readonly:"readonly",disabled:"disabled"},features:[h([fe]),T],decls:0,vars:0,template:function(t,s){},dependencies:[m,g],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return e})(),ne=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=c({type:e});static \u0275inj=l({imports:[w]})}return e})();var we=(e,i,o)=>({forced_root_block:"div",newline_behavior:"invert",height:e,menubar:!1,branding:!1,placeholder:i,paste_as_text:!0,toolbar:"bold italic | bullist numlist | outdent indent | alignleft aligncenter alignright alignjustify | table ",auto_focus:o}),oe=class e{placeholder;height="250px";disabled=!1;valueChange=new n;autoFocus=z(!1);plugins=localStorage.getItem("TinyMCEPlugins")??"";value="";onChange=()=>{};onTouched=()=>{};writeValue(i){this.value=i||""}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.disabled=i}onEditorInput(i){this.value=i,this.valueChange.emit(i),this.onChange(i),this.onTouched()}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=u({type:e,selectors:[["POS-tinymce-editor"]],inputs:{placeholder:"placeholder",height:"height",disabled:"disabled",autoFocus:[1,"autoFocus"]},outputs:{valueChange:"valueChange"},standalone:!1,features:[h([{provide:p,useExisting:d(()=>e),multi:!0}])],decls:1,vars:8,consts:[[1,"form-control","p-0","border-0",3,"ngModelChange","init","plugins","ngModel","id"]],template:function(o,t){o&1&&(k(0,"editor",0),x("ngModelChange",function(r){return t.onEditorInput(r)}),V()),o&2&&j("init",K(4,we,t.height,t.placeholder,t.autoFocus()?"tinyMceEditor":null))("plugins",t.plugins)("ngModel",t.value)("id",t.autoFocus()?"tinyMceEditor":null)},dependencies:[w,$,Z],encapsulation:2})},te=class e{static \u0275fac=function(o){return new(o||e)};static \u0275mod=c({type:e});static \u0275inj=l({imports:[m,ne,g]})};export{oe as a,te as b};
|