dealpos 25.50.0 → 25.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/{chunk-HGSF7LOB.js → chunk-27OXTS7Y.js} +1 -1
- package/browser/{chunk-4YZVDERU.js → chunk-2EHLYOAD.js} +1 -1
- package/browser/{chunk-BFNGPKGX.js → chunk-2GIDUMXS.js} +1 -1
- package/browser/{chunk-BRNU2JXC.js → chunk-2MAOKHWO.js} +1 -1
- package/browser/{chunk-KVMBRL53.js → chunk-2WSP3Y6V.js} +1 -1
- package/browser/{chunk-HWPSC7RE.js → chunk-3DL5OLEL.js} +1 -1
- package/browser/{chunk-CFWHBIM3.js → chunk-3DUSH3ND.js} +1 -1
- package/browser/{chunk-NOYC5PIT.js → chunk-3FS7DBBR.js} +1 -1
- package/browser/{chunk-FMKY4THI.js → chunk-3HDEMBWS.js} +1 -1
- package/browser/chunk-3M5FKEPW.js +1 -0
- package/browser/{chunk-O2VVATBW.js → chunk-3MAZIRSX.js} +1 -1
- package/browser/{chunk-OZ3MKU4C.js → chunk-3PKJLXTC.js} +1 -1
- package/browser/{chunk-PHH2AA3W.js → chunk-3Q5WV3VF.js} +1 -1
- package/browser/{chunk-3AZAILT2.js → chunk-3XDE3GJ3.js} +1 -1
- package/browser/{chunk-ZMJLTU5O.js → chunk-3XH2STFE.js} +1 -1
- package/browser/{chunk-26YFRPR2.js → chunk-3ZH3XK5V.js} +1 -1
- package/browser/{chunk-X2GHGFH2.js → chunk-43G72GH2.js} +1 -1
- package/browser/{chunk-MLBTUOHX.js → chunk-4467AQLM.js} +1 -1
- package/browser/chunk-4CYACZL5.js +149 -0
- package/browser/{chunk-2MPRVJXH.js → chunk-4HJHXVYF.js} +1 -1
- package/browser/{chunk-S7FOJJP2.js → chunk-4HLKKTIV.js} +1 -1
- package/browser/{chunk-MNJSQKLX.js → chunk-4L4MSVOU.js} +1 -1
- package/browser/{chunk-ISN5K6K2.js → chunk-4MWVPOV6.js} +1 -1
- package/browser/{chunk-5SIEW7SH.js → chunk-4OTZNFYS.js} +1 -1
- package/browser/{chunk-GDQGP7DV.js → chunk-57WKDIDF.js} +1 -1
- package/browser/{chunk-SOW7VMSU.js → chunk-5HIJCKLY.js} +1 -1
- package/browser/{chunk-TXJJUZ26.js → chunk-5PDQ5UNO.js} +1 -1
- package/browser/{chunk-FW4OCSXV.js → chunk-5RFSSCAR.js} +1 -1
- package/browser/{chunk-36GWLMZX.js → chunk-5RYL4EJ2.js} +1 -1
- package/browser/{chunk-B36P4U32.js → chunk-5VYU6SHE.js} +1 -1
- package/browser/chunk-5YBSS4EL.js +21 -0
- package/browser/{chunk-3ZWJMFYL.js → chunk-5ZPO7V26.js} +1 -1
- package/browser/{chunk-FV4MYFQI.js → chunk-67UFIJ2O.js} +1 -1
- package/browser/{chunk-MZSJCSUV.js → chunk-6AHKVKAZ.js} +2 -2
- package/browser/chunk-6F45DEGR.js +136 -0
- package/browser/{chunk-DC3TCY6D.js → chunk-6G7LPAEQ.js} +1 -1
- package/browser/chunk-6GCAXVFO.js +1 -0
- package/browser/{chunk-7F4QLFQQ.js → chunk-6I2YT4SH.js} +1 -1
- package/browser/{chunk-PLR55YR2.js → chunk-6LZENMYE.js} +1 -1
- package/browser/{chunk-PXIMA665.js → chunk-6O6OE4KQ.js} +14 -14
- package/browser/{chunk-B7BVEOOI.js → chunk-6UY42XOC.js} +1 -1
- package/browser/{chunk-OXWQ7ZZS.js → chunk-6WMEGLEF.js} +1 -1
- package/browser/{chunk-D7DUI5NF.js → chunk-6XNP4ZXB.js} +1 -1
- package/browser/chunk-735YXRQB.js +1 -0
- package/browser/{chunk-OYGBAHVX.js → chunk-73ADHCC2.js} +1 -1
- package/browser/{chunk-QZZ2NRA3.js → chunk-75FYOZH7.js} +1 -1
- package/browser/{chunk-CCD6EYWH.js → chunk-76CUXDTU.js} +1 -1
- package/browser/{chunk-BLEJLNEO.js → chunk-7JBFR3T4.js} +1 -1
- package/browser/{chunk-DWZ5JTI2.js → chunk-7MRUPBXU.js} +1 -1
- package/browser/{chunk-KZFNI67M.js → chunk-7YYWBCWJ.js} +1 -1
- package/browser/{chunk-T7PBUS2H.js → chunk-A2EDYIYP.js} +1 -1
- package/browser/{chunk-HFZ437GH.js → chunk-A5LIALQE.js} +1 -1
- package/browser/{chunk-QI7I46MV.js → chunk-A7C35XPM.js} +1 -1
- package/browser/{chunk-AQW4VS3Y.js → chunk-ACXQ2FOW.js} +1 -1
- package/browser/{chunk-WMZLH4YK.js → chunk-AHTR7XKG.js} +1 -1
- package/browser/{chunk-XTCEZONP.js → chunk-AJAUI7BA.js} +1 -1
- package/browser/{chunk-6C2HPRJZ.js → chunk-AQKJ3LSN.js} +1 -1
- package/browser/{chunk-RESN2GAB.js → chunk-ARAUAPQU.js} +1 -1
- package/browser/{chunk-3HZIDGPN.js → chunk-AXCTEREY.js} +1 -1
- package/browser/{chunk-SIQZO2WM.js → chunk-B4TZQBTN.js} +1 -1
- package/browser/{chunk-2ENLMKGR.js → chunk-B6TCVVAN.js} +1 -1
- package/browser/{chunk-BT7NN7PT.js → chunk-BAXZ74LK.js} +1 -1
- package/browser/{chunk-KB4247J2.js → chunk-BHQZXJKQ.js} +1 -1
- package/browser/{chunk-GRLVYPPM.js → chunk-BVOUQJCA.js} +1 -1
- package/browser/{chunk-RSNEHVIM.js → chunk-C22G4JGX.js} +1 -1
- package/browser/{chunk-4BXCIT62.js → chunk-CCIHCGP5.js} +1 -1
- package/browser/{chunk-FQZELIHB.js → chunk-CERE2LBX.js} +1 -1
- package/browser/{chunk-SK6Y77W4.js → chunk-CRKJEU3Z.js} +1 -1
- package/browser/{chunk-FAED643P.js → chunk-CVN6ZXXJ.js} +1 -1
- package/browser/{chunk-BYTV42NJ.js → chunk-D6HBPIFD.js} +1 -1
- package/browser/{chunk-YUILNWDI.js → chunk-D7YMUC3H.js} +1 -1
- package/browser/{chunk-Y5DX5U5Q.js → chunk-DCONKX6G.js} +1 -1
- package/browser/{chunk-TYE7PH3R.js → chunk-DIWYKKLA.js} +1 -1
- package/browser/{chunk-SBTTKQ4L.js → chunk-DJUOMCAV.js} +1 -1
- package/browser/{chunk-GWKBJZYT.js → chunk-DODZXMH2.js} +1 -1
- package/browser/{chunk-GTPQNPNO.js → chunk-DSXOFWO7.js} +1 -1
- package/browser/{chunk-YBUERVXV.js → chunk-DX56EYRS.js} +1 -1
- package/browser/{chunk-VVYRPW2Y.js → chunk-E4AXPU4U.js} +1 -1
- package/browser/{chunk-R2GUMKAU.js → chunk-E634BI4W.js} +1 -1
- package/browser/chunk-ECW7GAZQ.js +1 -0
- package/browser/{chunk-C2NCV7VC.js → chunk-EMH25BNO.js} +1 -1
- package/browser/{chunk-TCUCRGQD.js → chunk-EXFA6B6P.js} +1 -1
- package/browser/{chunk-B5IABJO5.js → chunk-EZNBK62W.js} +3 -3
- package/browser/chunk-F3HDP5CA.js +1 -0
- package/browser/{chunk-IFIH2CE2.js → chunk-F6LSMAF4.js} +1 -1
- package/browser/{chunk-ESDXMFGP.js → chunk-FINTUPRM.js} +1 -1
- package/browser/{chunk-D4FCXEV4.js → chunk-FM7BHGBW.js} +1 -1
- package/browser/{chunk-VZUPDSBH.js → chunk-FMEMQRBJ.js} +1 -1
- package/browser/{chunk-A565EUMD.js → chunk-FVNQ7SQY.js} +1 -1
- package/browser/{chunk-X44CHNHS.js → chunk-FZQE7J2C.js} +1 -1
- package/browser/{chunk-HSIXOQO7.js → chunk-G7L6AVIG.js} +1 -1
- package/browser/{chunk-DTVCBHPA.js → chunk-GFSJZHCB.js} +1 -1
- package/browser/{chunk-QPAUI5EG.js → chunk-GXAF3JUO.js} +1 -1
- package/browser/{chunk-S4D5UGSM.js → chunk-H2RXYP7A.js} +1 -1
- package/browser/{chunk-4XJWQAS6.js → chunk-HAXEFEKW.js} +1 -1
- package/browser/{chunk-DYBRYTEM.js → chunk-HHCNN3XR.js} +2 -2
- package/browser/{chunk-WXYXGYFH.js → chunk-HHM4L75O.js} +1 -1
- package/browser/{chunk-Y7KCHRMM.js → chunk-HIA4J5DB.js} +1 -1
- package/browser/{chunk-T3ZHKT2K.js → chunk-HQGZC4Y3.js} +1 -1
- package/browser/{chunk-TTCSYFRX.js → chunk-HSLDD424.js} +1 -1
- package/browser/{chunk-YLEKN2EU.js → chunk-HVFYCXLX.js} +1 -1
- package/browser/{chunk-FPRM3L6U.js → chunk-HYCKETL4.js} +1 -1
- package/browser/{chunk-CB6QEEJX.js → chunk-HZP6OUOI.js} +1 -1
- package/browser/{chunk-2ITJBRJU.js → chunk-I7AQHKKG.js} +7 -7
- package/browser/{chunk-4OEDK7YE.js → chunk-IDJEXQ5I.js} +1 -1
- package/browser/{chunk-XMZLK7EB.js → chunk-IDOUPEKS.js} +1 -1
- package/browser/{chunk-H74MLHRV.js → chunk-IET73YWA.js} +1 -1
- package/browser/{chunk-VKWSK452.js → chunk-IEX7S7T7.js} +1 -1
- package/browser/chunk-IHIJW73V.js +1 -0
- package/browser/chunk-IKSROKD5.css +1 -0
- package/browser/{chunk-ISQHQTAS.js → chunk-IM3B5EF2.js} +1 -1
- package/browser/{chunk-WM2DGNWH.js → chunk-ITTFNOLB.js} +1 -1
- package/browser/{chunk-JXXYVM7W.js → chunk-IZF7S2RF.js} +1 -1
- package/browser/{chunk-C3STDN73.js → chunk-JEZMYDZR.js} +1 -1
- package/browser/{chunk-T4MU3R7Y.js → chunk-JIRDK6TJ.js} +1 -1
- package/browser/chunk-JOLAOKHD.js +21 -0
- package/browser/{chunk-6WATOQG3.js → chunk-JQDS4BXR.js} +1 -1
- package/browser/{chunk-J6M7UWVR.js → chunk-JT4M6AIA.js} +1 -1
- package/browser/{chunk-USD2ALDX.js → chunk-K355XAWO.js} +1 -1
- package/browser/{chunk-WFQIMZGL.js → chunk-KBLVOO4J.js} +1 -1
- package/browser/{chunk-7L5VMLEF.js → chunk-KEILLJ6G.js} +1 -1
- package/browser/{chunk-FHB5KLDR.js → chunk-KFOEUAQT.js} +1 -1
- package/browser/chunk-KOZYTEZI.js +1 -0
- package/browser/{chunk-KUG5VVV4.js → chunk-KRBFME4B.js} +1 -1
- package/browser/chunk-L3U6V3BF.js +5 -0
- package/browser/{chunk-45E6XCHN.js → chunk-LB5UXGDG.js} +1 -1
- package/browser/{chunk-NM3IQUNN.js → chunk-LGD5WUG2.js} +1 -1
- package/browser/{chunk-M4EQZHIE.js → chunk-LKVUZZ5J.js} +1 -1
- package/browser/{chunk-4ZITX27A.js → chunk-LMUFX64W.js} +1 -1
- package/browser/{chunk-53VS5DA7.js → chunk-MM4IJDHI.js} +1 -1
- package/browser/chunk-MTUBVUM5.js +1 -0
- package/browser/{chunk-QZRMHLML.js → chunk-MUWJSYXR.js} +1 -1
- package/browser/{chunk-LNDHYAFW.js → chunk-MWGICBEB.js} +1 -1
- package/browser/{chunk-ZTD4APMR.js → chunk-N5RDRDT7.js} +1 -1
- package/browser/{chunk-BZ3GMUQ7.js → chunk-N6EBK52R.js} +3 -3
- package/browser/{chunk-7P3L3ODB.js → chunk-N7OS7SFI.js} +1 -1
- package/browser/{chunk-RACYAEOL.js → chunk-NFWYR26Q.js} +1 -1
- package/browser/{chunk-S27D5MBU.js → chunk-NJ4KEQKH.js} +1 -1
- package/browser/chunk-NQQB5U5S.js +4 -0
- package/browser/{chunk-PVBS6SYW.js → chunk-NRTKHF45.js} +1 -1
- package/browser/{chunk-72RZBOHX.js → chunk-NS6IC2PT.js} +1 -1
- package/browser/{chunk-BNNKSBQ6.js → chunk-O22HDFH6.js} +1 -1
- package/browser/{chunk-IPPIH4F4.js → chunk-OAVGNXY4.js} +1 -1
- package/browser/{chunk-7YUPYNWQ.js → chunk-OB6KFXD6.js} +2 -2
- package/browser/{chunk-5ZD6KTDH.js → chunk-ODYEJFNJ.js} +1 -1
- package/browser/{chunk-EHXF34TI.js → chunk-OEOAWKXA.js} +1 -1
- package/browser/{chunk-LIX7XJ55.js → chunk-OR4H5IKL.js} +1 -1
- package/browser/chunk-OTLU2WY3.js +3 -0
- package/browser/{chunk-TSH564VU.js → chunk-OUJXEQKL.js} +1 -1
- package/browser/{chunk-UZN4OKOJ.js → chunk-OURNAI65.js} +2 -2
- package/browser/chunk-OZ2R2K2V.js +1 -0
- package/browser/{chunk-PRVQ3NAP.js → chunk-P3TFDLWR.js} +2 -2
- package/browser/{chunk-PV4YHZX5.js → chunk-P5XKSQ34.js} +1 -1
- package/browser/{chunk-COA4UL2V.js → chunk-P7KMHPVN.js} +1 -1
- package/browser/{chunk-7JULWG2B.js → chunk-PCRUTQ3T.js} +1 -1
- package/browser/{chunk-T7XU5W5A.js → chunk-PNFJVQUF.js} +1 -1
- package/browser/{chunk-A6Z5ZHVO.js → chunk-PQSGJR4P.js} +1 -1
- package/browser/{chunk-WKM2QOAU.js → chunk-PSFQWURP.js} +1 -1
- package/browser/{chunk-3CUT73ZP.js → chunk-PV27CMZ2.js} +1 -1
- package/browser/{chunk-7MJWZXSK.js → chunk-QERITLZK.js} +2 -2
- package/browser/{chunk-2CL5FM3P.js → chunk-QJ3CWKQT.js} +1 -1
- package/browser/{chunk-PS7477UG.js → chunk-QLSGGWTW.js} +1 -1
- package/browser/{chunk-A5CTHLE4.js → chunk-QS2AUXB7.js} +1 -1
- package/browser/{chunk-TEGIL5RZ.js → chunk-QWLNF7VL.js} +1 -1
- package/browser/chunk-R3HIQ5AX.js +1 -0
- package/browser/{chunk-HFDJ5XSI.js → chunk-RF5FWMSR.js} +1 -1
- package/browser/{chunk-RE6SQEP6.js → chunk-RHDU4PR2.js} +1 -1
- package/browser/{chunk-FU2ZGMX4.js → chunk-RIZ4YVMH.js} +1 -1
- package/browser/chunk-RJYFOAYX.js +1 -0
- package/browser/{chunk-2KI73XNT.js → chunk-RU3GD3GY.js} +1 -1
- package/browser/{chunk-IZLEZJ6U.js → chunk-SCAKRK4B.js} +1 -1
- package/browser/{chunk-THT6CY5E.js → chunk-SCGKVOSE.js} +1 -1
- package/browser/{chunk-S65MPEJS.js → chunk-SCHTN7VQ.js} +1 -1
- package/browser/chunk-SMEVWRVE.js +1 -0
- package/browser/{chunk-CZHWPDAM.js → chunk-SUCJCOST.js} +1 -1
- package/browser/{chunk-BQ7QT5RB.js → chunk-SVUFU2AS.js} +1 -1
- package/browser/{chunk-IKKPP4JS.js → chunk-SWF6XISV.js} +1 -1
- package/browser/{chunk-VVWAYTKN.js → chunk-SWVQK6HM.js} +1 -1
- package/browser/{chunk-7DAPNQYU.js → chunk-SXRKKO75.js} +1 -1
- package/browser/{chunk-KZBVWICA.js → chunk-T5IJP474.js} +1 -1
- package/browser/{chunk-G5JGQBAG.js → chunk-T6GXIGYG.js} +1 -1
- package/browser/{chunk-LGOSIAUC.js → chunk-TANYEHMZ.js} +1 -1
- package/browser/chunk-TCW7SVU5.js +22 -0
- package/browser/{chunk-PQ6W7KXC.js → chunk-TDHDQRJN.js} +1 -1
- package/browser/{chunk-CXWICNFP.js → chunk-TOJPS7BJ.js} +1 -1
- package/browser/{chunk-6P2ASCNY.js → chunk-TP6ZUC53.js} +1 -1
- package/browser/{chunk-ZKOARDC2.js → chunk-TPJWIEYA.js} +1 -1
- package/browser/{chunk-L6PKNRWO.js → chunk-TRK4LJDS.js} +1 -1
- package/browser/{chunk-32QBWLTN.js → chunk-U4MC22BG.js} +1 -1
- package/browser/{chunk-QJUU75N6.js → chunk-U56LRRCE.js} +1 -1
- package/browser/{chunk-B7AC4RMR.js → chunk-UIVJ2JQT.js} +1 -1
- package/browser/chunk-UMFN4AJF.js +1 -0
- package/browser/{chunk-ZTU3TIGR.js → chunk-UPZZHMG6.js} +1 -1
- package/browser/{chunk-MZITJQAC.js → chunk-UX4QS4XQ.js} +1 -1
- package/browser/{chunk-CCJ6SHBL.js → chunk-V36Z6WRV.js} +1 -1
- package/browser/{chunk-PPVORSJQ.js → chunk-V4LDEQZZ.js} +1 -1
- package/browser/chunk-V4V55JMO.js +1 -0
- package/browser/{chunk-JBS5UYZC.js → chunk-V6D6TV7B.js} +1 -1
- package/browser/{chunk-M2HEFQUY.js → chunk-V6NXOOJA.js} +1 -1
- package/browser/{chunk-4MQZXTMM.js → chunk-VA6MHJ5E.js} +1 -1
- package/browser/{chunk-KYXB2UQI.js → chunk-VEQJR5VL.js} +1 -1
- package/browser/{chunk-5USF4MRW.js → chunk-VGHEGWAM.js} +1 -1
- package/browser/{chunk-7BQKGIZM.js → chunk-VL7THV5U.js} +1 -1
- package/browser/{chunk-GESNWWTD.js → chunk-VOY3BJZP.js} +9 -9
- package/browser/{chunk-HFOJZ3B5.js → chunk-VQKO557Q.js} +1 -1
- package/browser/chunk-VRKJC53Z.js +10 -0
- package/browser/{chunk-FSOHJLXB.js → chunk-WFTIOB7Q.js} +1 -1
- package/browser/{chunk-4CPRMZL6.js → chunk-WFVMID6Q.js} +1 -1
- package/browser/{chunk-Z6X5UYRZ.js → chunk-WFWUOLEG.js} +1 -1
- package/browser/{chunk-ARYZHNFV.js → chunk-WGOUSPMF.js} +1 -1
- package/browser/{chunk-3CSCTT6I.js → chunk-WOAKN4QZ.js} +1 -1
- package/browser/chunk-WQMYMJLR.js +4 -0
- package/browser/chunk-WR54IKY6.js +1 -0
- package/browser/{chunk-GDNVMJOU.js → chunk-WSFSSHIX.js} +1 -1
- package/browser/{chunk-ZZBF7AOW.js → chunk-WSWTWRKJ.js} +1 -1
- package/browser/{chunk-COGKLKKE.js → chunk-XEPEGKS2.js} +1 -1
- package/browser/{chunk-O3ENARQZ.js → chunk-XPN6EISF.js} +1 -1
- package/browser/{chunk-XFAV2VZL.js → chunk-XVTXHAKW.js} +1 -1
- package/browser/{chunk-LIXEWT4U.js → chunk-XWV7AI2C.js} +16 -16
- package/browser/{chunk-4W3WYXI2.js → chunk-XWYCNPUZ.js} +1 -1
- package/browser/{chunk-PJ3DTEH2.js → chunk-Y4MERAVA.js} +1 -1
- package/browser/{chunk-363IDTE3.js → chunk-Y7ZKGM5U.js} +1 -1
- package/browser/{chunk-KUF3JPB2.js → chunk-YC2LQSY3.js} +1 -1
- package/browser/{chunk-SIDUUVNA.js → chunk-YDL2MTWE.js} +1 -1
- package/browser/{chunk-JTZHHVPI.js → chunk-YMKZUNJH.js} +1 -1
- package/browser/{chunk-VXPORXGI.js → chunk-YQ5PAXUW.js} +1 -1
- package/browser/{chunk-PIAQ4TBN.js → chunk-YXRJV3RQ.js} +1 -1
- package/browser/{chunk-C5N3GKEC.js → chunk-Z4WEJMVU.js} +1 -1
- package/browser/{chunk-IISHJIET.js → chunk-Z5BFBI3D.js} +1 -1
- package/browser/{chunk-SLX34TWD.js → chunk-Z76C52NM.js} +1 -1
- package/browser/{chunk-A2EVMYAR.js → chunk-ZBHPM2JC.js} +1 -1
- package/browser/{chunk-Q3DS2RLM.js → chunk-ZNJ4JTTS.js} +1 -1
- package/browser/chunk-ZNPC63ZV.js +380 -0
- package/browser/{chunk-G3DZI5XK.js → chunk-ZO3XZXWW.js} +2 -2
- package/browser/{chunk-LGINK7BD.js → chunk-ZOYWCF3Q.js} +1 -1
- package/browser/{chunk-VZBXT2TV.js → chunk-ZRC22L45.js} +1 -1
- package/browser/{chunk-BQUL7SGN.js → chunk-ZV4K4PP6.js} +3 -3
- package/browser/chunk-ZVWC6CBP.js +1 -0
- package/browser/index.html +2 -2
- package/browser/main-4BFS7RVV.css +1 -0
- package/browser/main-PHIUFC5R.js +3 -0
- package/browser/{styles-URIEURGQ.css → styles-LFDMQGKE.css} +1 -1
- package/package.json +1 -1
- package/browser/chunk-2FJNMKCN.js +0 -1
- package/browser/chunk-2SZZVWQD.js +0 -137
- package/browser/chunk-2VE2WNSA.js +0 -21
- package/browser/chunk-4HEJOI53.js +0 -1
- package/browser/chunk-4KYROBKJ.js +0 -4
- package/browser/chunk-4SRWAPD4.js +0 -1
- package/browser/chunk-COL56R4A.js +0 -22
- package/browser/chunk-CQLZHUT4.js +0 -9
- package/browser/chunk-DOCQN2VL.js +0 -1
- package/browser/chunk-DTX2BFBV.js +0 -1
- package/browser/chunk-EAEOJMTA.js +0 -4
- package/browser/chunk-F765TCAS.js +0 -149
- package/browser/chunk-GBSRXCWH.js +0 -380
- package/browser/chunk-IEVGW2RT.js +0 -5
- package/browser/chunk-JB7Y2263.js +0 -1
- package/browser/chunk-JCLYKROE.js +0 -1
- package/browser/chunk-M3DKYPGC.js +0 -1
- package/browser/chunk-MFJH22SW.js +0 -1
- package/browser/chunk-NBMH5YL2.css +0 -1
- package/browser/chunk-PHYDJ3P5.js +0 -1
- package/browser/chunk-PMDFKXZY.js +0 -1
- package/browser/chunk-Q7YUJXQP.js +0 -1
- package/browser/chunk-QWB3USYP.js +0 -3
- package/browser/chunk-V432I4ZE.js +0 -21
- package/browser/chunk-VM4K4MNV.js +0 -1
- package/browser/chunk-XSZJISVJ.js +0 -1
- package/browser/chunk-XY3FCZN2.js +0 -1
- package/browser/chunk-ZCQDZKFQ.js +0 -1
- package/browser/main-4PHVOJ3C.js +0 -3
- package/browser/main-WPNH2WGQ.css +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as X}from"./chunk-KZFNI67M.js";import{a as J,e as tt,f as et,n as at}from"./chunk-26YFRPR2.js";import{A as T,G as Z,f as q,ka as $,la as I,o as K,q as Y}from"./chunk-7P3L3ODB.js";import{a as W}from"./chunk-DWZ5JTI2.js";import{$c as r,Ab as V,Ca as B,Fb as u,Gb as b,Hb as f,Ib as v,Ja as R,Pb as F,Qc as j,Sb as p,Ub as L,Vb as N,Wb as P,Xa as g,Xb as z,Ya as d,Yb as U,Zb as _,Zc as x,_b as y,cc as H,ec as k,ib as A,jb as E,ka as M,kb as O,ma as w,na as h,pa as i,ta as G,ua as C,wb as c,wc as Q,yb as D}from"./chunk-IEVGW2RT.js";var ut=["button"],bt=["*"];function pt(n,S){if(n&1&&(b(0,"div",2),v(1,"mat-pseudo-checkbox",6),f()),n&2){let t=L();g(),u("disabled",t.disabled)}}var ot=new h("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:mt});function mt(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var nt=new h("MatButtonToggleGroup"),ht={provide:W,useExisting:M(()=>ft),multi:!0},m=class{source;value;constructor(S,t){this.source=S,this.value=t}},ft=(()=>{class n{_changeDetector=i(x);_dir=i(Z,{optional:!0});_multiple=!1;_disabled=!1;_disabledInteractive=!1;_selectionModel;_rawValue;_controlValueAccessorChangeFn=()=>{};_onTouched=()=>{};_buttonToggles;appearance;get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}_name=i(T).getId("mat-button-toggle-group-");vertical;get value(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(a=>a.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}valueChange=new d;get selected(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}change=new d;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._markButtonsForCheck()}_hideSingleSelectionIndicator;get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(t){this._hideMultipleSelectionIndicator=t,this._markButtonsForCheck()}_hideMultipleSelectionIndicator;constructor(){let t=i(ot,{optional:!0});this.appearance=t&&t.appearance?t.appearance:"standard",this.hideSingleSelectionIndicator=t?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=t?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new X(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked)),this.multiple||this._initializeTabIndex()}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_keydown(t){if(this.multiple||this.disabled||q(t))return;let e=t.target.id,o=this._buttonToggles.toArray().findIndex(s=>s.buttonId===e),l=null;switch(t.keyCode){case 32:case 13:l=this._buttonToggles.get(o)||null;break;case 38:l=this._getNextButton(o,-1);break;case 37:l=this._getNextButton(o,this.dir==="ltr"?-1:1);break;case 40:l=this._getNextButton(o,1);break;case 39:l=this._getNextButton(o,this.dir==="ltr"?1:-1);break;default:return}l&&(t.preventDefault(),l._onButtonClick(),l.focus())}_emitChangeEvent(t){let a=new m(t,this.value);this._rawValue=a.value,this._controlValueAccessorChangeFn(a.value),this.change.emit(a)}_syncButtonToggle(t,a,e=!1,o=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?a?this._selectionModel.select(t):this._selectionModel.deselect(t):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(t,e)):this._updateModelValue(t,e)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(a=>t.value!=null&&a===t.value):t.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(t=>{t.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let t=0;t<this._buttonToggles.length;t++){let a=this._buttonToggles.get(t);if(!a.disabled){a.tabIndex=0;break}}}_getNextButton(t,a){let e=this._buttonToggles;for(let o=1;o<=e.length;o++){let l=(t+a*o+e.length)%e.length,s=e.get(l);if(s&&!s.disabled)return s}return null}_setSelectionByValue(t){if(this._rawValue=t,!this._buttonToggles)return;let a=this._buttonToggles.toArray();if(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(e=>this._selectValue(e,a))):(this._clearSelection(),this._selectValue(t,a)),!this.multiple&&a.every(e=>e.tabIndex===-1)){for(let e of a)if(!e.disabled){e.tabIndex=0;break}}}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>{t.checked=!1,this.multiple||(t.tabIndex=-1)})}_selectValue(t,a){for(let e of a)if(e.value===t){e.checked=!0,this._selectionModel.select(e),this.multiple||(e.tabIndex=0);break}}_updateModelValue(t,a){a&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}static \u0275fac=function(a){return new(a||n)};static \u0275dir=O({type:n,selectors:[["mat-button-toggle-group"]],contentQueries:function(a,e,o){if(a&1&&z(o,lt,5),a&2){let l;_(l=y())&&(e._buttonToggles=l)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(a,e){a&1&&p("keydown",function(l){return e._keydown(l)}),a&2&&(c("role",e.multiple?"group":"radiogroup")("aria-disabled",e.disabled),k("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard",e.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",r],value:"value",multiple:[2,"multiple","multiple",r],disabled:[2,"disabled","disabled",r],disabledInteractive:[2,"disabledInteractive","disabledInteractive",r],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",r],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",r]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Q([ht,{provide:nt,useExisting:n}])]})}return n})(),lt=(()=>{class n{_changeDetectorRef=i(x);_elementRef=i(R);_focusMonitor=i(K);_idGenerator=i(T);_animationDisabled=$();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(t){this._tabIndex.set(t)}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=t}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t}_disabledInteractive;change=new d;constructor(){i(Y).load(J);let t=i(nt,{optional:!0}),a=i(new j("tabindex"),{optional:!0})||"",e=i(ot,{optional:!0});this._tabIndex=B(parseInt(a)||0),this.buttonToggleGroup=t,this.appearance=e&&e.appearance?e.appearance:"standard",this.disabledInteractive=e?.disabledInteractive??!1}ngOnInit(){let t=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){if(this.disabled)return;let t=this.isSingleSelector()?!0:!this._checked;if(t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let a=this.buttonToggleGroup._buttonToggles.find(e=>e.tabIndex===0);a&&(a.tabIndex=-1),this.tabIndex=0}this.change.emit(new m(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=A({type:n,selectors:[["mat-button-toggle"]],viewQuery:function(a,e){if(a&1&&U(ut,5),a&2){let o;_(o=y())&&(e._buttonElement=o.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(a,e){a&1&&p("focus",function(){return e.focus()}),a&2&&(c("aria-label",null)("aria-labelledby",null)("id",e.id)("name",null),k("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-disabled-interactive",e.disabledInteractive)("mat-button-toggle-appearance-standard",e.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",r],appearance:"appearance",checked:[2,"checked","checked",r],disabled:[2,"disabled","disabled",r],disabledInteractive:[2,"disabledInteractive","disabledInteractive",r]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:bt,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(a,e){if(a&1){let o=F();N(),b(0,"button",1,0),p("click",function(){return G(o),C(e._onButtonClick())}),D(2,pt,2,1,"div",2),b(3,"span",3),P(4),f()(),v(5,"span",4)(6,"span",5)}if(a&2){let o=H(1);u("id",e.buttonId)("disabled",e.disabled&&!e.disabledInteractive||null),c("role",e.isSingleSelector()?"radio":"button")("tabindex",e.disabled&&!e.disabledInteractive?-1:e.tabIndex)("aria-pressed",e.isSingleSelector()?null:e.checked)("aria-checked",e.isSingleSelector()?e.checked:null)("name",e._getButtonName())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-disabled",e.disabled&&e.disabledInteractive?"true":null),g(2),V(e.buttonToggleGroup&&(!e.buttonToggleGroup.multiple&&!e.buttonToggleGroup.hideSingleSelectionIndicator||e.buttonToggleGroup.multiple&&!e.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),g(4),u("matRippleTrigger",o)("matRippleDisabled",e.disableRipple||e.disabled)}},dependencies:[tt,at],styles:[`.mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mat-button-toggle-legacy-shape);transform:translateZ(0)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-button-toggle-legacy-text-color);font-family:var(--mat-button-toggle-legacy-label-text-font);font-size:var(--mat-button-toggle-legacy-label-text-size);line-height:var(--mat-button-toggle-legacy-label-text-line-height);font-weight:var(--mat-button-toggle-legacy-label-text-weight);letter-spacing:var(--mat-button-toggle-legacy-label-text-tracking);--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-legacy-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-button-toggle-legacy-selected-state-text-color);background-color:var(--mat-button-toggle-legacy-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-button-toggle-legacy-disabled-state-text-color);background-color:var(--mat-button-toggle-legacy-disabled-state-background-color);--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-button-toggle-legacy-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-button-toggle-background-color, transparent);font-family:var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-button-toggle-legacy-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-button-toggle-legacy-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}
|
|
1
|
+
import{a as X}from"./chunk-7YYWBCWJ.js";import{a as J,e as tt,f as et,n as at}from"./chunk-3ZH3XK5V.js";import{A as T,G as Z,f as q,ka as $,la as I,o as K,q as Y}from"./chunk-N7OS7SFI.js";import{a as W}from"./chunk-7MRUPBXU.js";import{$b as _,$c as x,Ab as D,Ca as B,Cb as V,Hb as u,Ib as b,Ja as R,Jb as f,Kb as v,Rb as F,Sc as j,Ub as p,Wb as L,Xa as g,Xb as N,Ya as d,Yb as P,Zb as z,_b as U,ac as y,bd as r,ec as H,gc as k,ib as A,jb as E,ka as M,kb as O,ma as w,na as h,pa as i,ta as G,ua as C,wb as c,yc as Q}from"./chunk-L3U6V3BF.js";var ut=["button"],bt=["*"];function pt(n,S){if(n&1&&(b(0,"div",2),v(1,"mat-pseudo-checkbox",6),f()),n&2){let t=L();g(),u("disabled",t.disabled)}}var ot=new h("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:mt});function mt(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var nt=new h("MatButtonToggleGroup"),ht={provide:W,useExisting:M(()=>ft),multi:!0},m=class{source;value;constructor(S,t){this.source=S,this.value=t}},ft=(()=>{class n{_changeDetector=i(x);_dir=i(Z,{optional:!0});_multiple=!1;_disabled=!1;_disabledInteractive=!1;_selectionModel;_rawValue;_controlValueAccessorChangeFn=()=>{};_onTouched=()=>{};_buttonToggles;appearance;get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}_name=i(T).getId("mat-button-toggle-group-");vertical;get value(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(a=>a.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}valueChange=new d;get selected(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}change=new d;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._markButtonsForCheck()}_hideSingleSelectionIndicator;get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(t){this._hideMultipleSelectionIndicator=t,this._markButtonsForCheck()}_hideMultipleSelectionIndicator;constructor(){let t=i(ot,{optional:!0});this.appearance=t&&t.appearance?t.appearance:"standard",this.hideSingleSelectionIndicator=t?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=t?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new X(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked)),this.multiple||this._initializeTabIndex()}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_keydown(t){if(this.multiple||this.disabled||q(t))return;let e=t.target.id,o=this._buttonToggles.toArray().findIndex(s=>s.buttonId===e),l=null;switch(t.keyCode){case 32:case 13:l=this._buttonToggles.get(o)||null;break;case 38:l=this._getNextButton(o,-1);break;case 37:l=this._getNextButton(o,this.dir==="ltr"?-1:1);break;case 40:l=this._getNextButton(o,1);break;case 39:l=this._getNextButton(o,this.dir==="ltr"?1:-1);break;default:return}l&&(t.preventDefault(),l._onButtonClick(),l.focus())}_emitChangeEvent(t){let a=new m(t,this.value);this._rawValue=a.value,this._controlValueAccessorChangeFn(a.value),this.change.emit(a)}_syncButtonToggle(t,a,e=!1,o=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?a?this._selectionModel.select(t):this._selectionModel.deselect(t):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(t,e)):this._updateModelValue(t,e)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(a=>t.value!=null&&a===t.value):t.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(t=>{t.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let t=0;t<this._buttonToggles.length;t++){let a=this._buttonToggles.get(t);if(!a.disabled){a.tabIndex=0;break}}}_getNextButton(t,a){let e=this._buttonToggles;for(let o=1;o<=e.length;o++){let l=(t+a*o+e.length)%e.length,s=e.get(l);if(s&&!s.disabled)return s}return null}_setSelectionByValue(t){if(this._rawValue=t,!this._buttonToggles)return;let a=this._buttonToggles.toArray();if(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(e=>this._selectValue(e,a))):(this._clearSelection(),this._selectValue(t,a)),!this.multiple&&a.every(e=>e.tabIndex===-1)){for(let e of a)if(!e.disabled){e.tabIndex=0;break}}}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>{t.checked=!1,this.multiple||(t.tabIndex=-1)})}_selectValue(t,a){for(let e of a)if(e.value===t){e.checked=!0,this._selectionModel.select(e),this.multiple||(e.tabIndex=0);break}}_updateModelValue(t,a){a&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}static \u0275fac=function(a){return new(a||n)};static \u0275dir=O({type:n,selectors:[["mat-button-toggle-group"]],contentQueries:function(a,e,o){if(a&1&&z(o,lt,5),a&2){let l;_(l=y())&&(e._buttonToggles=l)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(a,e){a&1&&p("keydown",function(l){return e._keydown(l)}),a&2&&(c("role",e.multiple?"group":"radiogroup")("aria-disabled",e.disabled),k("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard",e.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",r],value:"value",multiple:[2,"multiple","multiple",r],disabled:[2,"disabled","disabled",r],disabledInteractive:[2,"disabledInteractive","disabledInteractive",r],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",r],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",r]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Q([ht,{provide:nt,useExisting:n}])]})}return n})(),lt=(()=>{class n{_changeDetectorRef=i(x);_elementRef=i(R);_focusMonitor=i(K);_idGenerator=i(T);_animationDisabled=$();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(t){this._tabIndex.set(t)}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=t}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t}_disabledInteractive;change=new d;constructor(){i(Y).load(J);let t=i(nt,{optional:!0}),a=i(new j("tabindex"),{optional:!0})||"",e=i(ot,{optional:!0});this._tabIndex=B(parseInt(a)||0),this.buttonToggleGroup=t,this.appearance=e&&e.appearance?e.appearance:"standard",this.disabledInteractive=e?.disabledInteractive??!1}ngOnInit(){let t=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){if(this.disabled)return;let t=this.isSingleSelector()?!0:!this._checked;if(t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let a=this.buttonToggleGroup._buttonToggles.find(e=>e.tabIndex===0);a&&(a.tabIndex=-1),this.tabIndex=0}this.change.emit(new m(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=A({type:n,selectors:[["mat-button-toggle"]],viewQuery:function(a,e){if(a&1&&U(ut,5),a&2){let o;_(o=y())&&(e._buttonElement=o.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(a,e){a&1&&p("focus",function(){return e.focus()}),a&2&&(c("aria-label",null)("aria-labelledby",null)("id",e.id)("name",null),k("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-disabled-interactive",e.disabledInteractive)("mat-button-toggle-appearance-standard",e.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",r],appearance:"appearance",checked:[2,"checked","checked",r],disabled:[2,"disabled","disabled",r],disabledInteractive:[2,"disabledInteractive","disabledInteractive",r]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:bt,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(a,e){if(a&1){let o=F();N(),b(0,"button",1,0),p("click",function(){return G(o),C(e._onButtonClick())}),D(2,pt,2,1,"div",2),b(3,"span",3),P(4),f()(),v(5,"span",4)(6,"span",5)}if(a&2){let o=H(1);u("id",e.buttonId)("disabled",e.disabled&&!e.disabledInteractive||null),c("role",e.isSingleSelector()?"radio":"button")("tabindex",e.disabled&&!e.disabledInteractive?-1:e.tabIndex)("aria-pressed",e.isSingleSelector()?null:e.checked)("aria-checked",e.isSingleSelector()?e.checked:null)("name",e._getButtonName())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-disabled",e.disabled&&e.disabledInteractive?"true":null),g(2),V(e.buttonToggleGroup&&(!e.buttonToggleGroup.multiple&&!e.buttonToggleGroup.hideSingleSelectionIndicator||e.buttonToggleGroup.multiple&&!e.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),g(4),u("matRippleTrigger",o)("matRippleDisabled",e.disableRipple||e.disabled)}},dependencies:[tt,at],styles:[`.mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mat-button-toggle-legacy-shape);transform:translateZ(0)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-button-toggle-legacy-text-color);font-family:var(--mat-button-toggle-legacy-label-text-font);font-size:var(--mat-button-toggle-legacy-label-text-size);line-height:var(--mat-button-toggle-legacy-label-text-line-height);font-weight:var(--mat-button-toggle-legacy-label-text-weight);letter-spacing:var(--mat-button-toggle-legacy-label-text-tracking);--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-legacy-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-button-toggle-legacy-selected-state-text-color);background-color:var(--mat-button-toggle-legacy-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-button-toggle-legacy-disabled-state-text-color);background-color:var(--mat-button-toggle-legacy-disabled-state-background-color);--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-button-toggle-legacy-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-button-toggle-background-color, transparent);font-family:var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-button-toggle-legacy-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-button-toggle-legacy-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return n})(),zt=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275mod=E({type:n});static \u0275inj=w({imports:[I,et,lt,I]})}return n})();export{ft as a,lt as b,zt as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as r,la as n}from"./chunk-
|
|
1
|
+
import{M as r,la as n}from"./chunk-N7OS7SFI.js";import{jb as i,ma as t}from"./chunk-L3U6V3BF.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{b as P}from"./chunk-
|
|
1
|
+
import{b as P}from"./chunk-LGD5WUG2.js";import{a as F}from"./chunk-ZBHPM2JC.js";import{a as j}from"./chunk-P3KIIKY4.js";import{b as R}from"./chunk-JOLAOKHD.js";import{u as w,v as T,w as V}from"./chunk-3ZH3XK5V.js";import{e as x,f as O}from"./chunk-N5RDRDT7.js";import{p as E,s as b}from"./chunk-TANYEHMZ.js";import{Ab as _,Ca as S,Cb as C,Hb as d,Hd as D,Ib as m,Jb as c,Nc as y,Rb as u,Ub as f,Wb as s,Xa as U,aa as h,d as g,da as v,eb as p,ib as I,ob as M,ta as l,ua as r}from"./chunk-L3U6V3BF.js";function H(i,e){if(i&1){let t=u();m(0,"POS-uppy",3),f("fileUploaded",function(o){l(t);let a=s(2);return r(a.assignFile(o))}),c()}if(i&2){let t=s(2);d("sampleUrl",t.sampleUrl)}}function k(i,e){if(i&1){let t=u();m(0,"POS-uppy",3),f("fileUploaded",function(o){l(t);let a=s(2);return r(a.assignFile(o))}),c()}if(i&2){let t=s(2);d("sampleUrl",t.sampleUrl)}}function N(i,e){if(i&1&&(_(0,H,1,1,"POS-uppy",2),_(1,k,1,1,"POS-uppy",2)),i&2){let t=s();C(t.uploadState()===t.uploadStateEnum.Idle||t.uploadState()===t.uploadStateEnum.Uploading?0:-1),U(),C(t.uploadState()===t.uploadStateEnum.Success||t.uploadState()===t.uploadStateEnum.Error?1:-1)}}var A=class i{constructor(e,t,n,o,a){this.data=e;this.dialogRef=t;this.toastService=n;this.httpService=o;this.convertCsv=a}useUppy=!1;fileEndpoint="";modalConfig;sampleUrl;apiUploadCsv;outletID;fileInput;destroy$=new g;fileName;loadingVal$;uploadState=S(0);uploadStateEnum=j;timeoutID;ngOnInit(){this.initModalConfig(),this.initUpload()}initModalConfig(){this.modalConfig=new w,this.modalConfig.title="Import Items",this.modalConfig.customWidth=this.data.useUppy?"610px":"484px"}initUpload(){this.data&&(this.sampleUrl=this.data.sampleUrl,this.apiUploadCsv=this.data.API,this.outletID=this.data.outletID,this.useUppy=this.data.useUppy,this.fileEndpoint=this.data.fileEndpoint)}onOk(){if(this.fileInput)if(!this.useUppy)this.convertCsv.convert(this.fileInput).pipe(v(this.destroy$),h(e=>this.httpService.post(this.apiUploadCsv,this.outletID?{EntityID:this.outletID,CartItems:e}:e))).subscribe(e=>{this.dialogRef.close(e)});else{let e=new FormData;e.append("File",this.fileInput),e.append("EntityID",this.outletID),this.httpService.postFormData(this.fileEndpoint,e).subscribe({next:t=>{t&&(this.uploadState.set(2),this.dialogRef.close(t))},error:t=>{t instanceof D&&(console.error("error",t.error.Message),this.uploadState.set(3),this.timeoutID=setTimeout(()=>{this.uploadState.set(0)},100))}})}else this.uploadState.set(0),this.toastService.warning("Please drop a CSV file.","Warning")}onClose(){this.dialogRef.close()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.timeoutID&&clearTimeout(this.timeoutID)}assignFile(e){this.uploadState.set(1),this.fileInput=e}static \u0275fac=function(t){return new(t||i)(p(O),p(x),p(E),p(b),p(F))};static \u0275cmp=I({type:i,selectors:[["POS-modal-upload"]],decls:3,vars:1,consts:[["modalContent",""],[3,"onOk","onCancel","onClose","config"],[3,"sampleUrl"],[3,"fileUploaded","sampleUrl"]],template:function(t,n){if(t&1){let o=u();m(0,"modal-material",1),f("onOk",function(){return l(o),r(n.onOk())})("onCancel",function(){return l(o),r(n.onClose())})("onClose",function(){return l(o),r(n.onClose())}),M(1,N,2,2,"ng-template",null,0,y),c()}t&2&&d("config",n.modalConfig)},dependencies:[V,T,P,R],encapsulation:2})};export{A as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as U}from"./chunk-
|
|
1
|
+
import{a as U}from"./chunk-DJUOMCAV.js";import{a as O}from"./chunk-5RYL4EJ2.js";import{b as R}from"./chunk-KBLVOO4J.js";import{a as f}from"./chunk-WUV22SZ4.js";import{s as h}from"./chunk-TANYEHMZ.js";import{Ma as v,Rd as C,fa as S,la as u,oa as p,pa as g,ya as d,yd as N}from"./chunk-L3U6V3BF.js";var k=(t=>(t[t.PAID=0]="PAID",t[t.OVERDUE=1]="OVERDUE",t[t.SELL_ONLY=2]="SELL_ONLY",t[t.SUSPENDED=3]="SUSPENDED",t))(k||{});var D=(()=>{let e=class e{constructor(){this.document=g(d),this.platformId=g(v),this.documentIsAccessible=N(this.platformId)}static getCookieRegExp(i){let t=i.replace(/([[\]{}()|=;+?,.*^$\\])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(i){try{return decodeURIComponent(i)}catch{return i}}check(i){return this.documentIsAccessible?(i=encodeURIComponent(i),e.getCookieRegExp(i).test(this.document.cookie)):!1}get(i){if(this.check(i)){i=encodeURIComponent(i);let n=e.getCookieRegExp(i).exec(this.document.cookie);return n?.[1]?e.safeDecodeURIComponent(n[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let i={},t=this.document;return t.cookie&&t.cookie!==""&&t.cookie.split(";").forEach(n=>{let[s,c]=n.split("=");i[e.safeDecodeURIComponent(s.replace(/^ /,""))]=e.safeDecodeURIComponent(c)}),i}set(i,t,n,s,c,l,T,b){if(!this.documentIsAccessible)return;if(typeof n=="number"||n instanceof Date||s||c||l||T){let I={expires:n,path:s,domain:c,secure:l,sameSite:T||"Lax",partitioned:b};this.set(i,t,I);return}let a=encodeURIComponent(i)+"="+encodeURIComponent(t)+";",r=n||{};if(r.expires)if(typeof r.expires=="number"){let I=new Date(new Date().getTime()+r.expires*1e3*60*60*24);a+="expires="+I.toUTCString()+";"}else a+="expires="+r.expires.toUTCString()+";";r.path&&(a+="path="+r.path+";"),r.domain&&(a+="domain="+r.domain+";"),r.secure===!1&&r.sameSite==="None"&&(r.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${i} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),r.secure&&(a+="secure;"),r.sameSite||(r.sameSite="Lax"),a+="sameSite="+r.sameSite+";",r.partitioned&&(a+="Partitioned;"),this.document.cookie=a}delete(i,t,n,s,c="Lax"){if(!this.documentIsAccessible)return;let l=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(i,"",{expires:l,path:t,domain:n,secure:s,sameSite:c})}deleteAll(i,t,n,s="Lax"){if(!this.documentIsAccessible)return;let c=this.getAll();for(let l in c)c.hasOwnProperty(l)&&this.delete(l,i,t,n,s)}};e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=u({token:e,factory:e.\u0275fac,providedIn:"root"});let m=e;return m})();var E=class m{constructor(e,o,i,t,n,s){this.httpService=e;this.cookieService=o;this.router=i;this.roleService=t;this.intercomService=n;this.fraction=s}role=[];_returnUrl;_loginResponse;_jwtToken;set returnUrl(e){this._returnUrl=e}get returnUrl(){return this._returnUrl}login(e){return this.httpService.post("/api/Login/Web",e).pipe(S(o=>{this._loginResponse=o,o.Type=="geo"||o.Type=="totp"||this.saveLoginConfigToStorage(o)}))}loginLoader(){return this.httpService.get("/api/login/Loader")}getRedirectUrl(){let e=this.getSubscriptionStatus(),o=this.getRedirectUrlByRole();return(e==2||e==3)&&(o="/menu/Profile/Main/My_Subscription"),o}getRedirectUrlByRole(){let e,o=this.roleService;return o.dashboard.View?e="/menu/Dashboard":o.product.View?e="/menu/Products":e="/menu/Sell",e}logout(){localStorage.removeItem("ConfigData"),localStorage.removeItem("Token"),localStorage.removeItem("Roles"),localStorage.removeItem("AccountInfo"),localStorage.removeItem("CloudinaryConfig"),localStorage.removeItem("SubscriptionStatus"),this.cookieService.delete("ReportFilter","/"),this.intercomService.shutdown(),this._jwtToken=null,this.roleService.resetRoles(),this.router.navigate(["/"])}refreshToken(){this.httpService.post("/API/Authentication/RefreshToken",{}).subscribe(e=>{localStorage.removeItem("Token"),localStorage.setItem("Token",e.Token),this._jwtToken=null,this.roleService.resetRoles(),this.roleService.parseJWTRoles()})}isTokenExpired(){let e=localStorage.getItem("Token");if(e){let o=f.parseJwt(e),i=this.convertUnixTimesTamp(o.exp),t=new Date;if(i.getTime()-t.getTime()>0)return!1}return!0}isInRole(e){e.forEach(o=>o(this.role))}convertUnixTimesTamp(e){return new Date(e*1e3)}saveLoginConfigToStorage(e){localStorage.setItem("quantityFraction",JSON.stringify(e.UIConfig.Fraction.Quantity)),localStorage.setItem("amountFraction",JSON.stringify(e.UIConfig.Fraction.Amount)),this.fraction.setAmountFraction(e.UIConfig.Fraction.Amount.Minimum,e.UIConfig.Fraction.Amount.Maximum),this.fraction.setQuantityFraction(e.UIConfig.Fraction.Quantity.Minimum,e.UIConfig.Fraction.Quantity.Maximum),localStorage.setItem("AccountInfo",JSON.stringify(e?.AccountInfo)),localStorage.setItem("Token",e?.Token),localStorage.setItem("TinyMCEPlugins",e?.UIConfig.TinyMCE),this.intercomService.updateLocalStorage(e?.Intercom),localStorage.setItem("CloudinaryConfig",e?.UIConfig.CloudinaryConfig),localStorage.setItem("DataDaysRange",e?.UIConfig.DataDaysRange),localStorage.setItem("SubscriptionStatus",JSON.stringify(e?.SubscriptionStatus));let o=this.getParseToken();f.IsNotEmpty(o?.NotificationOutletID)&&localStorage.setItem("NotificationOutletID",o?.NotificationOutletID),this.roleService.parseJWTRoles(),this._loginResponse=null}getParseToken(){let e=localStorage.getItem("Token");return e&&!this._jwtToken&&(this._jwtToken=f.parseJwt(e)),this._jwtToken}get loginResponse(){return this._loginResponse}getSubscriptionStatus(){let e=localStorage.getItem("SubscriptionStatus");return e?parseInt(e):null}static \u0275fac=function(o){return new(o||m)(p(h),p(D),p(C),p(R),p(U),p(O))};static \u0275prov=u({token:m,factory:m.\u0275fac,providedIn:"root"})};export{k as a,D as b,E as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as v,f as y}from"./chunk-
|
|
1
|
+
import{e as v,f as y}from"./chunk-2GIDUMXS.js";import"./chunk-3PKJLXTC.js";import"./chunk-E634BI4W.js";import"./chunk-BAXZ74LK.js";import"./chunk-3ZH3XK5V.js";import"./chunk-V6D6TV7B.js";import"./chunk-QWLNF7VL.js";import"./chunk-N5RDRDT7.js";import"./chunk-N7OS7SFI.js";import"./chunk-RIZ4YVMH.js";import"./chunk-2FWFPV5I.js";import"./chunk-Z76C52NM.js";import"./chunk-7MRUPBXU.js";import"./chunk-T5IJP474.js";import"./chunk-DJUOMCAV.js";import"./chunk-5RYL4EJ2.js";import"./chunk-KBLVOO4J.js";import"./chunk-WUV22SZ4.js";import"./chunk-NQQB5U5S.js";import"./chunk-TANYEHMZ.js";import{Hb as h,Ib as o,Jb as i,Kb as g,Rd as M,Ud as u,Xa as c,eb as l,ib as f,jb as m,jc as n,kc as x,ma as a,xd as z}from"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var s=class e{constructor(r){this.router=r;this.previousPage=this.router.lastSuccessfulNavigation?.finalUrl?.root?.children?.primary?.segments?.join("/"),this.role=this.router.getCurrentNavigation()?.extras?.state.role}previousPage="";role="";menuData={H:"Unauthorized"};static \u0275fac=function(t){return new(t||e)(l(M))};static \u0275cmp=f({type:e,selectors:[["POS-unauthorized"]],standalone:!1,decls:13,vars:4,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[1,"text-center"],["src","https://cdn.dealpos.xyz/web-image/locked.svg",2,"width","200px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(t,d){t&1&&(o(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div"),g(5,"img",3),i(),o(6,"h1",4),n(7,"You are not authorized"),i(),o(8,"p"),n(9," This page require "),o(10,"span",5),n(11),i(),n(12," role. Please contact your Administrator to gain access! "),i()()()()()),t&2&&(h("pageData",d.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),c(11),x(d.role))},dependencies:[v],encapsulation:2})};var U=[{path:"Main/Unauthorized",component:s},{path:"",redirectTo:"Main/Unauthorized",pathMatch:"full"}],p=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=m({type:e});static \u0275inj=a({imports:[u.forChild(U),u]})};var S=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=m({type:e});static \u0275inj=a({imports:[z,p,y]})};export{S as UnauthorizedModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ca as M,Cd as b,Dd as Ct,Fb as p,Gb as g,Gd as wt,Hb as C,I as mt,Ib as k,Kd as Dt,Mb as X,Nb as tt,Pa as vt,Pb as et,Pd as It,Qa as J,Rb as bt,Sb as P,Ub as m,Xa as u,Za as K,bb as yt,c as v,d as I,dc as N,eb as x,gc as w,hc as D,ib as W,jb as Tt,jc as E,jd as it,la as H,ma as ft,na as gt,oa as T,ob as R,p as dt,pa as A,qa as _t,r as pt,s as y,sb as V,ta as Q,ua as U,wb as j,xa as L,ya as Y}from"./chunk-IEVGW2RT.js";import{a as d,b as S}from"./chunk-SNAKHGZS.js";var _=(function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s})(_||{}),Ft="*";function ot(s,e){return{type:_.Trigger,name:s,definitions:e,options:{}}}function Z(s,e=null){return{type:_.Animate,styles:e,timings:s}}function se(s,e=null){return{type:_.Sequence,steps:s,options:e}}function B(s){return{type:_.Style,styles:s,offset:null}}function z(s,e,t){return{type:_.State,name:s,styles:e,options:t}}function Mt(s){return{type:_.Keyframes,steps:s}}function q(s,e,t=null){return{type:_.Transition,expr:s,animation:e,options:t}}function Rt(s,e=null){return{type:_.Reference,animation:s,options:e}}function jt(s,e=null){return{type:_.AnimateRef,animation:s,options:e}}var st=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},nt=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,i=0,n=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++t==o&&this._onFinish()}),r.onDestroy(()=>{++i==o&&this._onDestroy()}),r.onStart(()=>{++n==o&&this._onStart()})}),this.totalTime=this.players.reduce((r,a)=>Math.max(r,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(i=>{let n=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(n)})}getPosition(){let e=this.players.reduce((t,i)=>t===null||i.totalTime>t.totalTime?i:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},kt="!";var xt=["toast-component",""];function Nt(s,e){if(s&1){let t=et();g(0,"button",5),P("click",function(){Q(t);let n=m();return U(n.remove())}),g(1,"span",6),D(2,"\xD7"),C()()}}function Bt(s,e){if(s&1&&(X(0),D(1),tt()),s&2){let t=m(2);u(),E("[",t.duplicatesCount+1,"]")}}function zt(s,e){if(s&1&&(g(0,"div"),D(1),R(2,Bt,2,1,"ng-container",4),C()),s&2){let t=m();w(t.options.titleClass),j("aria-label",t.title),u(),E(" ",t.title," "),u(),p("ngIf",t.duplicatesCount)}}function Lt(s,e){if(s&1&&k(0,"div",7),s&2){let t=m();w(t.options.messageClass),p("innerHTML",t.message,J)}}function Vt(s,e){if(s&1&&(g(0,"div",8),D(1),C()),s&2){let t=m();w(t.options.messageClass),j("aria-label",t.message),u(),E(" ",t.message," ")}}function Zt(s,e){if(s&1&&(g(0,"div"),k(1,"div",9),C()),s&2){let t=m();u(),N("width",t.width()+"%")}}function qt(s,e){if(s&1){let t=et();g(0,"button",5),P("click",function(){Q(t);let n=m();return U(n.remove())}),g(1,"span",6),D(2,"\xD7"),C()()}}function Gt(s,e){if(s&1&&(X(0),D(1),tt()),s&2){let t=m(2);u(),E("[",t.duplicatesCount+1,"]")}}function $t(s,e){if(s&1&&(g(0,"div"),D(1),R(2,Gt,2,1,"ng-container",4),C()),s&2){let t=m();w(t.options.titleClass),j("aria-label",t.title),u(),E(" ",t.title," "),u(),p("ngIf",t.duplicatesCount)}}function Qt(s,e){if(s&1&&k(0,"div",7),s&2){let t=m();w(t.options.messageClass),p("innerHTML",t.message,J)}}function Ut(s,e){if(s&1&&(g(0,"div",8),D(1),C()),s&2){let t=m();w(t.options.messageClass),j("aria-label",t.message),u(),E(" ",t.message," ")}}function Yt(s,e){if(s&1&&(g(0,"div"),k(1,"div",9),C()),s&2){let t=m();u(),N("width",t.width()+"%")}}var rt=class{_attachedHost;component;viewContainerRef;injector;constructor(e,t){this.component=e,this.injector=t}attach(e,t){return this._attachedHost=e,e.attach(this,t)}detach(){let e=this._attachedHost;if(e)return this._attachedHost=void 0,e.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},at=class{_attachedPortal;_disposeFn;attach(e,t){return this._attachedPortal=e,this.attachComponentPortal(e,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(e){this._disposeFn=e}},lt=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new I;_activate=new I;_manualClose=new I;_resetTimeout=new I;_countDuplicate=new I;constructor(e){this._overlayRef=e}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(e,t){e&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}},F=class{toastId;config;message;title;toastType;toastRef;_onTap=new I;_onAction=new I;constructor(e,t,i,n,o,r){this.toastId=e,this.config=t,this.message=i,this.title=n,this.toastType=o,this.toastRef=r,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(e){this._onAction.next(e)}onAction(){return this._onAction.asObservable()}},Et={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},Ot=new gt("ToastConfig"),ct=class extends at{_hostDomElement;_componentFactoryResolver;_appRef;constructor(e,t,i){super(),this._hostDomElement=e,this._componentFactoryResolver=t,this._appRef=i}attachComponentPortal(e,t){let i=this._componentFactoryResolver.resolveComponentFactory(e.component),n;return n=i.create(e.injector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(n),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(n)),n}_getComponentRootNode(e){return e.hostView.rootNodes[0]}},Jt=(()=>{class s{_document=A(Y);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(i){return new(i||s)};static \u0275prov=H({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),ut=class{_portalHost;constructor(e){this._portalHost=e}attach(e,t=!0){return this._portalHost.attach(e,t)}detach(){return this._portalHost.detach()}},Kt=(()=>{class s{_overlayContainer=A(Jt);_componentFactoryResolver=A(yt);_appRef=A(V);_document=A(Y);_paneElements=new Map;create(t,i){return this._createOverlayRef(this.getPaneElement(t,i))}getPaneElement(t="",i){return this._paneElements.get(i)||this._paneElements.set(i,{}),this._paneElements.get(i)[t]||(this._paneElements.get(i)[t]=this._createPaneElement(t,i)),this._paneElements.get(i)[t]}_createPaneElement(t,i){let n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),i?i.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new ct(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new ut(this._createPortalHost(t))}static \u0275fac=function(i){return new(i||s)};static \u0275prov=H({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),G=(()=>{class s{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,i,n,o,r){this.overlay=i,this._injector=n,this.sanitizer=o,this.ngZone=r,this.toastrConfig=d(d({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=d(d({},t.default.iconClasses),t.config.iconClasses))}show(t,i,n={},o=""){return this._preBuildNotification(o,t,i,this.applyConfig(n))}success(t,i,n={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,t,i,this.applyConfig(n))}error(t,i,n={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,t,i,this.applyConfig(n))}info(t,i,n={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,t,i,this.applyConfig(n))}warning(t,i,n={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,t,i,this.applyConfig(n))}clear(t){for(let i of this.toasts)if(t!==void 0){if(i.toastId===t){i.toastRef.manualClose();return}}else i.toastRef.manualClose()}remove(t){let i=this._findToast(t);if(!i||(i.activeToast.toastRef.close(),this.toasts.splice(i.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let n=this.toasts[this.currentlyActive].toastRef;n.isInactive()||(this.currentlyActive=this.currentlyActive+1,n.activate())}return!0}findDuplicate(t="",i="",n,o){let{includeTitleDuplicates:r}=this.toastrConfig;for(let a of this.toasts){let c=r&&a.title===t;if((!r||c)&&a.message===i)return a.toastRef.onDuplicate(n,o),a}return null}applyConfig(t={}){return d(d({},this.toastrConfig),t)}_findToast(t){for(let i=0;i<this.toasts.length;i++)if(this.toasts[i].toastId===t)return{index:i,activeToast:this.toasts[i]};return null}_preBuildNotification(t,i,n,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,i,n,o)):this._buildNotification(t,i,n,o)}_buildNotification(t,i,n,o){if(!o.toastComponent)throw new Error("toastComponent required");let r=this.findDuplicate(n,i,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&n||i)&&this.toastrConfig.preventDuplicates&&r!==null)return r;this.previousToastMessage=i;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let c=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let h=i;i&&o.enableHtml&&(h=this.sanitizer.sanitize(vt.HTML,i));let l=new lt(c),O=new F(this.index,o,h,n,t,l),f=[{provide:F,useValue:O}],Ht=L.create({providers:f,parent:this._injector}),At=new rt(o.toastComponent,Ht),ht=c.attach(At,o.newestOnTop);l.componentInstance=ht.instance;let $={toastId:this.index,title:n||"",message:i||"",toastRef:l,onShown:l.afterActivate(),onHidden:l.afterClosed(),onTap:O.onTap(),onAction:O.onAction(),portal:ht};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{$.toastRef.activate()})),this.toasts.push($),$}static \u0275fac=function(i){return new(i||s)(T(Ot),T(Kt),T(L),T(Dt),T(K))};static \u0275prov=H({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Wt=(()=>{class s{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=M(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,i,n){this.toastrService=t,this.toastPackage=i,this.ngZone=n,this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=M({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>S(d({},t),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),i=this.hideTime-t;this.width.set(i/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(n=>100-n),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>S(d({},t),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(t=>S(d({},t),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),i)):this.timeout=setTimeout(()=>t(),i)}outsideInterval(t,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),i)):this.intervalId=setInterval(()=>t(),i)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(i){return new(i||s)(x(G),x(F),x(K))};static \u0275cmp=W({type:s,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(i,n){i&1&&P("click",function(){return n.tapToast()})("mouseenter",function(){return n.stickAround()})("mouseleave",function(){return n.delayedHideToast()}),i&2&&(bt("@flyInOut",n._state),w(n.toastClasses),N("display",n.displayStyle))},attrs:xt,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(i,n){i&1&&R(0,Nt,3,0,"button",0)(1,zt,3,5,"div",1)(2,Lt,1,3,"div",2)(3,Vt,2,4,"div",3)(4,Zt,2,2,"div",4),i&2&&(p("ngIf",n.options.closeButton),u(),p("ngIf",n.title),u(),p("ngIf",n.message&&n.options.enableHtml),u(),p("ngIf",n.message&&!n.options.enableHtml),u(),p("ngIf",n.options.progressBar))},dependencies:[it],encapsulation:2,data:{animation:[ot("flyInOut",[z("inactive",B({opacity:0})),z("active",B({opacity:1})),z("removed",B({opacity:0})),q("inactive => active",Z("{{ easeTime }}ms {{ easing }}")),q("active => removed",Z("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return s})(),Xt=S(d({},Et),{toastComponent:Wt}),te=(s={})=>_t([{provide:Ot,useValue:{default:Xt,config:s}}]),xe=(()=>{class s{static forRoot(t={}){return{ngModule:s,providers:[te(t)]}}static \u0275fac=function(i){return new(i||s)};static \u0275mod=Tt({type:s});static \u0275inj=ft({})}return s})();var ee=(()=>{class s{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=M(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=M("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,i,n){this.toastrService=t,this.toastPackage=i,this.appRef=n,this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),i=this.hideTime-t;this.width.set(i/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(n=>100-n),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(i){return new(i||s)(x(G),x(F),x(V))};static \u0275cmp=W({type:s,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(i,n){i&1&&P("click",function(){return n.tapToast()})("mouseenter",function(){return n.stickAround()})("mouseleave",function(){return n.delayedHideToast()}),i&2&&(w(n.toastClasses),N("display",n.displayStyle))},attrs:xt,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(i,n){i&1&&R(0,qt,3,0,"button",0)(1,$t,3,5,"div",1)(2,Qt,1,3,"div",2)(3,Ut,2,4,"div",3)(4,Yt,2,2,"div",4),i&2&&(p("ngIf",n.options.closeButton),u(),p("ngIf",n.title),u(),p("ngIf",n.message&&n.options.enableHtml),u(),p("ngIf",n.message&&!n.options.enableHtml),u(),p("ngIf",n.options.progressBar))},dependencies:[it],encapsulation:2,changeDetection:0})}return s})(),Ee=S(d({},Et),{toastComponent:ee});var St=class s{constructor(e,t,i){this.http=e;this.toastr=t;this.router=i}PostToUrlEncode(e,t,i=1e5){let n=new b;return n=n.set("Content-Type","application/x-www-form-urlencoded"),new v(o=>{this.http.post(e,t,{headers:n}).pipe(y(i)).subscribe(r=>{o.next(r),o.complete()})})}GetText(e=1e5){let t=localStorage.getItem("Token"),n={responseType:"text",headers:new b({Authorization:"Bearer "+t})};return new v(o=>{this.http.get("/API/Token/GetZendeskJWT",n).pipe(y(e)).subscribe(r=>{o.next(r),o.complete()})})}POSText(e,t,i=1e5){let n=localStorage.getItem("Token"),r={responseType:"text",headers:new b({"Content-Type":"application/json","Cache-Control":"no-cache",Authorization:"Bearer "+n})};return new v(a=>{this.http.post(e,t,r).pipe(y(i)).subscribe(c=>{a.next(c),a.complete()})})}get(e,t=[],i=!1){let n=localStorage.getItem("Token"),o=new b({"Content-Type":"application/json","Cache-Control":"no-cache"});n&&(o=o.append("Authorization","Bearer "+n));let r={headers:o,params:this.generateQueryParams(t)};return this.http.get(e,r).pipe(mt(a=>{if(!i&&!this.unauthorizedErrorHandling(a)){let h=this.errorMessageHandling(a);this.toastr.error(h.Message!=""?h.Message:"An unknown error has occured!",h.header),this.paymentErrorHandling(a)}return dt(()=>a)}))}getNews(e){return this.http.get(e)}paymentErrorHandling(e){e.status==402&&this.router.navigate(["/menu/Profile/Main/My_Subscription"])}post(e,t,i=1e5,n=!1,o={}){return new v(r=>{let a=localStorage.getItem("Token"),c=new b({"Content-Type":"application/json","Cache-Control":"no-cache"});a&&(c=c.append("Authorization","Bearer "+a)),Date.prototype.toJSON=function(){return this.getFullYear()+"-"+h(this.getMonth()+1)+"-"+h(this.getDate())+"T"+h(this.getHours())+":"+h(this.getMinutes())+":"+h(this.getSeconds())+".000"};function h(l){return l<10?"0"+l:l}this.http.post(e,t,o).pipe(y(i)).subscribe({next:l=>{r.next(l),r.complete()},error:l=>{if(l.status==200)r.next(l.error.text),r.complete();else{if(!n&&!this.unauthorizedErrorHandling(l)){let f=this.errorMessageHandling(l);this.toastr.error(f.Message!=""?f.Message:"An unknown error has occured!",f.header,{enableHtml:!0})}r.error(l)}}})})}postFile(e,t,i=1e5){return new v(n=>{let o=localStorage.getItem("Token"),r=new b({"Content-Type":"application/json","Cache-Control":"no-cache"});o&&(r=r.append("Authorization","Bearer "+o)),this.http.post(e,t,{headers:r,observe:"response",responseType:"blob"}).pipe(y(i)).subscribe({next:a=>{n.next({title:a.headers.get("Content-Disposition"),file:a.body}),n.complete()},error:a=>{if(a.headers.get("Content-Type")==="application/json; charset=utf-8"){let c=new FileReader;c.addEventListener("loadend",h=>{let l=JSON.parse(h.srcElement.result)?.Message;if(!this.unauthorizedErrorHandling(a)){let f=this.errorMessageHandling(a);this.toastr.error(l??"An unknown error has occured!",f.header,{enableHtml:!0})}}),c.readAsText(a.error)}n.error(a)}})})}put(e,t,i={},n=1e5,o=!1){return new v(r=>{let a=localStorage.getItem("Token"),c=new b({"Content-Type":"application/json","Cache-Control":"no-cache"});a&&(c=c.append("Authorization","Bearer "+a));let h=d({headers:c},i.params?{params:this.generateQueryParams(i.params)}:{});this.http.put(e,t??{},h).pipe(y(n)).subscribe({next:l=>{r.next(l),r.complete()},error:l=>{if(l.status==200)r.next(l.error.text),r.complete();else{if(!o&&!this.unauthorizedErrorHandling(l)){let f=this.errorMessageHandling(l);this.toastr.error(f.Message!=""?f.Message:"An unknown error has occured!",f.header)}r.error(l)}}})})}delete(e,t={},i=1e5){return new v(n=>{let o=localStorage.getItem("Token"),r=new b({"Content-Type":"application/json","Cache-Control":"no-cache"});o&&(r=r.append("Authorization","Bearer "+o));let a=d(d({headers:r},t.body?{body:t.body}:{}),t.params?{params:this.generateQueryParams(t.params)}:{});this.http.delete(e,a).pipe(y(i)).subscribe({next:c=>{n.next(c),n.complete()},error:c=>{if(c.status==200)n.next(c.error.text),n.complete();else{if(!this.unauthorizedErrorHandling(c)){let l=this.errorMessageHandling(c);this.toastr.error(l.Message!=""?l.Message:"An unknown error has occured!",l.header)}n.error(c)}}})})}generateQueryParams(e=[]){let t=new Ct;return e.forEach(i=>{t=t.append(i.key,i.value)}),t}unauthorizedErrorHandling(e){let t=!1;return(e.status==401||e.status==403)&&(t=!0),t}errorMessageHandling(e){let t="API Error",i="Exception Message";if(e.error)t="API Error - "+e.status,t=`${t} ${e.status==409?"Conflict":""}`,e.status==451&&(t="Error"),e.error&&(i=e.error.Message);else if((e.Message||e.message)&&(t="API Error - "+e.name,i=e.Message?e.Message:e.message,e instanceof pt||e?.name=="TimeoutError")){let n=this.handleTimoutError(e);t=n.header,i=n.message}return{header:t,Message:i}}handleTimoutError(e){let t="Slow Connection Detected",i=e.Message?e.Message:e.message;return{header:t,message:i}}postFormDataWithoutBearer(e,t){return new v(i=>{this.http.post((e.includes("localhost"),e),t).pipe(y(1e5)).subscribe({next:n=>{i.next(n),i.complete()},error:n=>{n.status==200&&(i.next(n.error.text),i.complete()),i.error(n)}})})}postFormData(e,t,i=!0){return new v(n=>{let o=localStorage.getItem("Token"),a={headers:new b({Authorization:"Bearer "+o})};this.http.post(e,t,a).pipe(y(1e5)).subscribe({next:c=>{n.next(c),n.complete()},error:c=>{if(c.status==200)n.next(c.error.text),n.complete();else{if(!this.unauthorizedErrorHandling(c)&&i){let l=this.errorMessageHandling(c);this.toastr.error(l.Message!=""?l.Message:"An unknown error has occured!",l.header)}n.error(c)}}})})}static \u0275fac=function(t){return new(t||s)(T(wt),T(G),T(It))};static \u0275prov=H({token:s,factory:s.\u0275fac,providedIn:"root"})};export{_ as a,Ft as b,ot as c,Z as d,se as e,B as f,z as g,Mt as h,q as i,Rt as j,jt as k,st as l,nt as m,kt as n,F as o,G as p,Wt as q,xe as r,St as s};
|
|
1
|
+
import{Ca as M,Ed as b,Fd as Ct,Hb as p,I as mt,Ib as g,Id as wt,Jb as C,Kb as k,Md as Dt,Ob as X,Pa as vt,Pb as tt,Qa as J,Rb as et,Rd as It,Tb as bt,Ub as P,Wb as m,Xa as u,Za as K,bb as yt,c as v,d as I,eb as x,fc as N,ib as W,ic as w,jb as Tt,jc as D,la as H,lc as E,ld as it,ma as ft,na as gt,oa as T,ob as R,p as dt,pa as A,qa as _t,r as pt,s as y,sb as V,ta as Q,ua as U,wb as j,xa as L,ya as Y}from"./chunk-L3U6V3BF.js";import{a as d,b as S}from"./chunk-SNAKHGZS.js";var _=(function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s})(_||{}),Ft="*";function ot(s,e){return{type:_.Trigger,name:s,definitions:e,options:{}}}function Z(s,e=null){return{type:_.Animate,styles:e,timings:s}}function se(s,e=null){return{type:_.Sequence,steps:s,options:e}}function B(s){return{type:_.Style,styles:s,offset:null}}function z(s,e,t){return{type:_.State,name:s,styles:e,options:t}}function Mt(s){return{type:_.Keyframes,steps:s}}function q(s,e,t=null){return{type:_.Transition,expr:s,animation:e,options:t}}function Rt(s,e=null){return{type:_.Reference,animation:s,options:e}}function jt(s,e=null){return{type:_.AnimateRef,animation:s,options:e}}var st=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},nt=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,i=0,n=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++t==o&&this._onFinish()}),r.onDestroy(()=>{++i==o&&this._onDestroy()}),r.onStart(()=>{++n==o&&this._onStart()})}),this.totalTime=this.players.reduce((r,a)=>Math.max(r,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(i=>{let n=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(n)})}getPosition(){let e=this.players.reduce((t,i)=>t===null||i.totalTime>t.totalTime?i:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},kt="!";var xt=["toast-component",""];function Nt(s,e){if(s&1){let t=et();g(0,"button",5),P("click",function(){Q(t);let n=m();return U(n.remove())}),g(1,"span",6),D(2,"\xD7"),C()()}}function Bt(s,e){if(s&1&&(X(0),D(1),tt()),s&2){let t=m(2);u(),E("[",t.duplicatesCount+1,"]")}}function zt(s,e){if(s&1&&(g(0,"div"),D(1),R(2,Bt,2,1,"ng-container",4),C()),s&2){let t=m();w(t.options.titleClass),j("aria-label",t.title),u(),E(" ",t.title," "),u(),p("ngIf",t.duplicatesCount)}}function Lt(s,e){if(s&1&&k(0,"div",7),s&2){let t=m();w(t.options.messageClass),p("innerHTML",t.message,J)}}function Vt(s,e){if(s&1&&(g(0,"div",8),D(1),C()),s&2){let t=m();w(t.options.messageClass),j("aria-label",t.message),u(),E(" ",t.message," ")}}function Zt(s,e){if(s&1&&(g(0,"div"),k(1,"div",9),C()),s&2){let t=m();u(),N("width",t.width()+"%")}}function qt(s,e){if(s&1){let t=et();g(0,"button",5),P("click",function(){Q(t);let n=m();return U(n.remove())}),g(1,"span",6),D(2,"\xD7"),C()()}}function Gt(s,e){if(s&1&&(X(0),D(1),tt()),s&2){let t=m(2);u(),E("[",t.duplicatesCount+1,"]")}}function $t(s,e){if(s&1&&(g(0,"div"),D(1),R(2,Gt,2,1,"ng-container",4),C()),s&2){let t=m();w(t.options.titleClass),j("aria-label",t.title),u(),E(" ",t.title," "),u(),p("ngIf",t.duplicatesCount)}}function Qt(s,e){if(s&1&&k(0,"div",7),s&2){let t=m();w(t.options.messageClass),p("innerHTML",t.message,J)}}function Ut(s,e){if(s&1&&(g(0,"div",8),D(1),C()),s&2){let t=m();w(t.options.messageClass),j("aria-label",t.message),u(),E(" ",t.message," ")}}function Yt(s,e){if(s&1&&(g(0,"div"),k(1,"div",9),C()),s&2){let t=m();u(),N("width",t.width()+"%")}}var rt=class{_attachedHost;component;viewContainerRef;injector;constructor(e,t){this.component=e,this.injector=t}attach(e,t){return this._attachedHost=e,e.attach(this,t)}detach(){let e=this._attachedHost;if(e)return this._attachedHost=void 0,e.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},at=class{_attachedPortal;_disposeFn;attach(e,t){return this._attachedPortal=e,this.attachComponentPortal(e,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(e){this._disposeFn=e}},lt=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new I;_activate=new I;_manualClose=new I;_resetTimeout=new I;_countDuplicate=new I;constructor(e){this._overlayRef=e}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(e,t){e&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}},F=class{toastId;config;message;title;toastType;toastRef;_onTap=new I;_onAction=new I;constructor(e,t,i,n,o,r){this.toastId=e,this.config=t,this.message=i,this.title=n,this.toastType=o,this.toastRef=r,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(e){this._onAction.next(e)}onAction(){return this._onAction.asObservable()}},Et={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},Ot=new gt("ToastConfig"),ct=class extends at{_hostDomElement;_componentFactoryResolver;_appRef;constructor(e,t,i){super(),this._hostDomElement=e,this._componentFactoryResolver=t,this._appRef=i}attachComponentPortal(e,t){let i=this._componentFactoryResolver.resolveComponentFactory(e.component),n;return n=i.create(e.injector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(n),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(n)),n}_getComponentRootNode(e){return e.hostView.rootNodes[0]}},Jt=(()=>{class s{_document=A(Y);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(i){return new(i||s)};static \u0275prov=H({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),ut=class{_portalHost;constructor(e){this._portalHost=e}attach(e,t=!0){return this._portalHost.attach(e,t)}detach(){return this._portalHost.detach()}},Kt=(()=>{class s{_overlayContainer=A(Jt);_componentFactoryResolver=A(yt);_appRef=A(V);_document=A(Y);_paneElements=new Map;create(t,i){return this._createOverlayRef(this.getPaneElement(t,i))}getPaneElement(t="",i){return this._paneElements.get(i)||this._paneElements.set(i,{}),this._paneElements.get(i)[t]||(this._paneElements.get(i)[t]=this._createPaneElement(t,i)),this._paneElements.get(i)[t]}_createPaneElement(t,i){let n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),i?i.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new ct(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new ut(this._createPortalHost(t))}static \u0275fac=function(i){return new(i||s)};static \u0275prov=H({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),G=(()=>{class s{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,i,n,o,r){this.overlay=i,this._injector=n,this.sanitizer=o,this.ngZone=r,this.toastrConfig=d(d({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=d(d({},t.default.iconClasses),t.config.iconClasses))}show(t,i,n={},o=""){return this._preBuildNotification(o,t,i,this.applyConfig(n))}success(t,i,n={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,t,i,this.applyConfig(n))}error(t,i,n={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,t,i,this.applyConfig(n))}info(t,i,n={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,t,i,this.applyConfig(n))}warning(t,i,n={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,t,i,this.applyConfig(n))}clear(t){for(let i of this.toasts)if(t!==void 0){if(i.toastId===t){i.toastRef.manualClose();return}}else i.toastRef.manualClose()}remove(t){let i=this._findToast(t);if(!i||(i.activeToast.toastRef.close(),this.toasts.splice(i.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let n=this.toasts[this.currentlyActive].toastRef;n.isInactive()||(this.currentlyActive=this.currentlyActive+1,n.activate())}return!0}findDuplicate(t="",i="",n,o){let{includeTitleDuplicates:r}=this.toastrConfig;for(let a of this.toasts){let c=r&&a.title===t;if((!r||c)&&a.message===i)return a.toastRef.onDuplicate(n,o),a}return null}applyConfig(t={}){return d(d({},this.toastrConfig),t)}_findToast(t){for(let i=0;i<this.toasts.length;i++)if(this.toasts[i].toastId===t)return{index:i,activeToast:this.toasts[i]};return null}_preBuildNotification(t,i,n,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,i,n,o)):this._buildNotification(t,i,n,o)}_buildNotification(t,i,n,o){if(!o.toastComponent)throw new Error("toastComponent required");let r=this.findDuplicate(n,i,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&n||i)&&this.toastrConfig.preventDuplicates&&r!==null)return r;this.previousToastMessage=i;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let c=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let h=i;i&&o.enableHtml&&(h=this.sanitizer.sanitize(vt.HTML,i));let l=new lt(c),O=new F(this.index,o,h,n,t,l),f=[{provide:F,useValue:O}],Ht=L.create({providers:f,parent:this._injector}),At=new rt(o.toastComponent,Ht),ht=c.attach(At,o.newestOnTop);l.componentInstance=ht.instance;let $={toastId:this.index,title:n||"",message:i||"",toastRef:l,onShown:l.afterActivate(),onHidden:l.afterClosed(),onTap:O.onTap(),onAction:O.onAction(),portal:ht};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{$.toastRef.activate()})),this.toasts.push($),$}static \u0275fac=function(i){return new(i||s)(T(Ot),T(Kt),T(L),T(Dt),T(K))};static \u0275prov=H({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Wt=(()=>{class s{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=M(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,i,n){this.toastrService=t,this.toastPackage=i,this.ngZone=n,this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=M({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>S(d({},t),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),i=this.hideTime-t;this.width.set(i/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(n=>100-n),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>S(d({},t),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(t=>S(d({},t),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),i)):this.timeout=setTimeout(()=>t(),i)}outsideInterval(t,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),i)):this.intervalId=setInterval(()=>t(),i)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(i){return new(i||s)(x(G),x(F),x(K))};static \u0275cmp=W({type:s,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(i,n){i&1&&P("click",function(){return n.tapToast()})("mouseenter",function(){return n.stickAround()})("mouseleave",function(){return n.delayedHideToast()}),i&2&&(bt("@flyInOut",n._state),w(n.toastClasses),N("display",n.displayStyle))},attrs:xt,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(i,n){i&1&&R(0,Nt,3,0,"button",0)(1,zt,3,5,"div",1)(2,Lt,1,3,"div",2)(3,Vt,2,4,"div",3)(4,Zt,2,2,"div",4),i&2&&(p("ngIf",n.options.closeButton),u(),p("ngIf",n.title),u(),p("ngIf",n.message&&n.options.enableHtml),u(),p("ngIf",n.message&&!n.options.enableHtml),u(),p("ngIf",n.options.progressBar))},dependencies:[it],encapsulation:2,data:{animation:[ot("flyInOut",[z("inactive",B({opacity:0})),z("active",B({opacity:1})),z("removed",B({opacity:0})),q("inactive => active",Z("{{ easeTime }}ms {{ easing }}")),q("active => removed",Z("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return s})(),Xt=S(d({},Et),{toastComponent:Wt}),te=(s={})=>_t([{provide:Ot,useValue:{default:Xt,config:s}}]),xe=(()=>{class s{static forRoot(t={}){return{ngModule:s,providers:[te(t)]}}static \u0275fac=function(i){return new(i||s)};static \u0275mod=Tt({type:s});static \u0275inj=ft({})}return s})();var ee=(()=>{class s{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=M(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=M("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,i,n){this.toastrService=t,this.toastPackage=i,this.appRef=n,this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),i=this.hideTime-t;this.width.set(i/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(n=>100-n),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(i){return new(i||s)(x(G),x(F),x(V))};static \u0275cmp=W({type:s,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(i,n){i&1&&P("click",function(){return n.tapToast()})("mouseenter",function(){return n.stickAround()})("mouseleave",function(){return n.delayedHideToast()}),i&2&&(w(n.toastClasses),N("display",n.displayStyle))},attrs:xt,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(i,n){i&1&&R(0,qt,3,0,"button",0)(1,$t,3,5,"div",1)(2,Qt,1,3,"div",2)(3,Ut,2,4,"div",3)(4,Yt,2,2,"div",4),i&2&&(p("ngIf",n.options.closeButton),u(),p("ngIf",n.title),u(),p("ngIf",n.message&&n.options.enableHtml),u(),p("ngIf",n.message&&!n.options.enableHtml),u(),p("ngIf",n.options.progressBar))},dependencies:[it],encapsulation:2,changeDetection:0})}return s})(),Ee=S(d({},Et),{toastComponent:ee});var St=class s{constructor(e,t,i){this.http=e;this.toastr=t;this.router=i}PostToUrlEncode(e,t,i=1e5){let n=new b;return n=n.set("Content-Type","application/x-www-form-urlencoded"),new v(o=>{this.http.post(e,t,{headers:n}).pipe(y(i)).subscribe(r=>{o.next(r),o.complete()})})}GetText(e=1e5){let t=localStorage.getItem("Token"),n={responseType:"text",headers:new b({Authorization:"Bearer "+t})};return new v(o=>{this.http.get("/API/Token/GetZendeskJWT",n).pipe(y(e)).subscribe(r=>{o.next(r),o.complete()})})}POSText(e,t,i=1e5){let n=localStorage.getItem("Token"),r={responseType:"text",headers:new b({"Content-Type":"application/json","Cache-Control":"no-cache",Authorization:"Bearer "+n})};return new v(a=>{this.http.post(e,t,r).pipe(y(i)).subscribe(c=>{a.next(c),a.complete()})})}get(e,t=[],i=!1){let n=localStorage.getItem("Token"),o=new b({"Content-Type":"application/json","Cache-Control":"no-cache"});n&&(o=o.append("Authorization","Bearer "+n));let r={headers:o,params:this.generateQueryParams(t)};return this.http.get(e,r).pipe(mt(a=>{if(!i&&!this.unauthorizedErrorHandling(a)){let h=this.errorMessageHandling(a);this.toastr.error(h.Message!=""?h.Message:"An unknown error has occured!",h.header),this.paymentErrorHandling(a)}return dt(()=>a)}))}getNews(e){return this.http.get(e)}paymentErrorHandling(e){e.status==402&&this.router.navigate(["/menu/Profile/Main/My_Subscription"])}post(e,t,i=1e5,n=!1,o={}){return new v(r=>{let a=localStorage.getItem("Token"),c=new b({"Content-Type":"application/json","Cache-Control":"no-cache"});a&&(c=c.append("Authorization","Bearer "+a)),Date.prototype.toJSON=function(){return this.getFullYear()+"-"+h(this.getMonth()+1)+"-"+h(this.getDate())+"T"+h(this.getHours())+":"+h(this.getMinutes())+":"+h(this.getSeconds())+".000"};function h(l){return l<10?"0"+l:l}this.http.post(e,t,o).pipe(y(i)).subscribe({next:l=>{r.next(l),r.complete()},error:l=>{if(l.status==200)r.next(l.error.text),r.complete();else{if(!n&&!this.unauthorizedErrorHandling(l)){let f=this.errorMessageHandling(l);this.toastr.error(f.Message!=""?f.Message:"An unknown error has occured!",f.header,{enableHtml:!0})}r.error(l)}}})})}postFile(e,t,i=1e5){return new v(n=>{let o=localStorage.getItem("Token"),r=new b({"Content-Type":"application/json","Cache-Control":"no-cache"});o&&(r=r.append("Authorization","Bearer "+o)),this.http.post(e,t,{headers:r,observe:"response",responseType:"blob"}).pipe(y(i)).subscribe({next:a=>{n.next({title:a.headers.get("Content-Disposition"),file:a.body}),n.complete()},error:a=>{if(a.headers.get("Content-Type")==="application/json; charset=utf-8"){let c=new FileReader;c.addEventListener("loadend",h=>{let l=JSON.parse(h.srcElement.result)?.Message;if(!this.unauthorizedErrorHandling(a)){let f=this.errorMessageHandling(a);this.toastr.error(l??"An unknown error has occured!",f.header,{enableHtml:!0})}}),c.readAsText(a.error)}n.error(a)}})})}put(e,t,i={},n=1e5,o=!1){return new v(r=>{let a=localStorage.getItem("Token"),c=new b({"Content-Type":"application/json","Cache-Control":"no-cache"});a&&(c=c.append("Authorization","Bearer "+a));let h=d({headers:c},i.params?{params:this.generateQueryParams(i.params)}:{});this.http.put(e,t??{},h).pipe(y(n)).subscribe({next:l=>{r.next(l),r.complete()},error:l=>{if(l.status==200)r.next(l.error.text),r.complete();else{if(!o&&!this.unauthorizedErrorHandling(l)){let f=this.errorMessageHandling(l);this.toastr.error(f.Message!=""?f.Message:"An unknown error has occured!",f.header)}r.error(l)}}})})}delete(e,t={},i=1e5){return new v(n=>{let o=localStorage.getItem("Token"),r=new b({"Content-Type":"application/json","Cache-Control":"no-cache"});o&&(r=r.append("Authorization","Bearer "+o));let a=d(d({headers:r},t.body?{body:t.body}:{}),t.params?{params:this.generateQueryParams(t.params)}:{});this.http.delete(e,a).pipe(y(i)).subscribe({next:c=>{n.next(c),n.complete()},error:c=>{if(c.status==200)n.next(c.error.text),n.complete();else{if(!this.unauthorizedErrorHandling(c)){let l=this.errorMessageHandling(c);this.toastr.error(l.Message!=""?l.Message:"An unknown error has occured!",l.header)}n.error(c)}}})})}generateQueryParams(e=[]){let t=new Ct;return e.forEach(i=>{t=t.append(i.key,i.value)}),t}unauthorizedErrorHandling(e){let t=!1;return(e.status==401||e.status==403)&&(t=!0),t}errorMessageHandling(e){let t="API Error",i="Exception Message";if(e.error)t="API Error - "+e.status,t=`${t} ${e.status==409?"Conflict":""}`,e.status==451&&(t="Error"),e.error&&(i=e.error.Message);else if((e.Message||e.message)&&(t="API Error - "+e.name,i=e.Message?e.Message:e.message,e instanceof pt||e?.name=="TimeoutError")){let n=this.handleTimoutError(e);t=n.header,i=n.message}return{header:t,Message:i}}handleTimoutError(e){let t="Slow Connection Detected",i=e.Message?e.Message:e.message;return{header:t,message:i}}postFormDataWithoutBearer(e,t){return new v(i=>{this.http.post((e.includes("localhost"),e),t).pipe(y(1e5)).subscribe({next:n=>{i.next(n),i.complete()},error:n=>{n.status==200&&(i.next(n.error.text),i.complete()),i.error(n)}})})}postFormData(e,t,i=!0){return new v(n=>{let o=localStorage.getItem("Token"),a={headers:new b({Authorization:"Bearer "+o})};this.http.post(e,t,a).pipe(y(1e5)).subscribe({next:c=>{n.next(c),n.complete()},error:c=>{if(c.status==200)n.next(c.error.text),n.complete();else{if(!this.unauthorizedErrorHandling(c)&&i){let l=this.errorMessageHandling(c);this.toastr.error(l.Message!=""?l.Message:"An unknown error has occured!",l.header)}n.error(c)}}})})}static \u0275fac=function(t){return new(t||s)(T(wt),T(G),T(It))};static \u0275prov=H({token:s,factory:s.\u0275fac,providedIn:"root"})};export{_ as a,Ft as b,ot as c,Z as d,se as e,B as f,z as g,Mt as h,q as i,Rt as j,jt as k,st as l,nt as m,kt as n,F as o,G as p,Wt as q,xe as r,St as s};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import{a as Mt,d as kt}from"./chunk-4HLKKTIV.js";import{c as Ot,j as St,k as F,l as It}from"./chunk-RIZ4YVMH.js";import{a as P}from"./chunk-2FWFPV5I.js";import{oa as Tt,pa as k,xa as Et}from"./chunk-Z76C52NM.js";import{F as vt,G as bt,a as ft,c as _t,h as ht,i as wt,k as Ct,o as yt,p as xt}from"./chunk-7MRUPBXU.js";import{a as mt}from"./chunk-NQQB5U5S.js";import{p as gt,s as Pt}from"./chunk-TANYEHMZ.js";import{$b as D,Ab as f,Bc as R,Cb as _,Cc as it,Hb as m,Ia as A,Ib as o,Jb as s,Kb as M,Ob as S,Pb as I,Qb as Z,Qc as ot,Rb as h,Rc as rt,Rd as ct,Ub as g,Vc as j,Wb as r,Wc as at,Xa as l,Ya as T,Zb as N,ac as B,bd as L,cc as J,dc as X,eb as Q,ib as E,ic as y,id as st,jb as K,jc as c,ka as W,kc as tt,kd as pt,la as z,lc as et,ld as lt,ma as U,mb as Y,na as q,nb as $,ob as O,oc as x,pa as C,pc as v,pd as dt,qc as b,ta as d,ua as u,vc as H,wb as G,xd as ut,yc as nt}from"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Ft=`
|
|
2
|
+
.p-inputotp {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: dt('inputotp.gap');
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.p-inputotp-input {
|
|
9
|
+
text-align: center;
|
|
10
|
+
width: dt('inputotp.input.width');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.p-inputotp-input.p-inputtext-sm {
|
|
14
|
+
text-align: center;
|
|
15
|
+
width: dt('inputotp.input.sm.width');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.p-inputotp-input.p-inputtext-lg {
|
|
19
|
+
text-align: center;
|
|
20
|
+
width: dt('inputotp.input.lg.width');
|
|
21
|
+
}
|
|
22
|
+
`;var Rt=["input"],jt=(i,a,t)=>({$implicit:i,events:a,index:t});function Lt(i,a){if(i&1){let t=h();S(0),o(1,"input",2),g("input",function(n){d(t);let p=r().$implicit,w=r();return u(w.onInput(n,p-1))})("focus",function(n){d(t);let p=r(2);return u(p.onInputFocus(n))})("blur",function(n){d(t);let p=r(2);return u(p.onInputBlur(n))})("paste",function(n){d(t);let p=r(2);return u(p.onPaste(n))})("keydown",function(n){d(t);let p=r(2);return u(p.onKeyDown(n))}),s(),I()}if(i&2){let t=r().$implicit,e=r();l(),y(e.cn(e.cx("pcInputText"),e.styleClass)),m("value",e.getModelValue(t))("pSize",e.size())("variant",e.$variant())("invalid",e.invalid())("pAutoFocus",e.getAutofocus(t))("pt",e.ptm("pcInputText")),G("maxlength",t===1?e.length:1)("type",e.inputType)("inputmode",e.inputMode)("name",e.name())("tabindex",e.tabindex)("required",e.required()?"":void 0)("readonly",e.readonly?"":void 0)("disabled",e.$disabled()?"":void 0)}}function Wt(i,a){i&1&&Z(0)}function zt(i,a){if(i&1&&(S(0),O(1,Wt,1,0,"ng-container",3),I()),i&2){let t=r().$implicit,e=r();l(),m("ngTemplateOutlet",e.inputTemplate||e._inputTemplate)("ngTemplateOutletContext",it(2,jt,e.getToken(t-1),e.getTemplateEvents(t-1),t))}}function Ut(i,a){if(i&1&&(S(0),O(1,Lt,2,16,"ng-container",1)(2,zt,2,6,"ng-container",1),I()),i&2){let t=r();l(),m("ngIf",!t.inputTemplate&&!t._inputTemplate),l(),m("ngIf",t.inputTemplate||t._inputTemplate)}}var qt={root:"p-inputotp p-component",pcInputText:"p-inputotp-input"},Vt=(()=>{class i extends Et{name="inputotp";style=Ft;classes=qt;static \u0275fac=(()=>{let t;return function(n){return(t||(t=A(i)))(n||i)}})();static \u0275prov=z({token:i,factory:i.\u0275fac})}return i})();var At=new q("INPUTOTP_INSTANCE"),Qt={provide:ft,useExisting:W(()=>V),multi:!0},V=(()=>{class i extends St{_componentStyle=C(Vt);$pcInputOtp=C(At,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=C(F,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}readonly;tabindex=null;length=4;styleClass;mask=!1;integerOnly=!1;autofocus;variant=j();size=j();onChange=new T;onFocus=new T;onBlur=new T;inputTemplate;templates;_inputTemplate;tokens=[];value;$variant=ot(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());get inputMode(){return this.integerOnly?"numeric":"text"}get inputType(){return this.mask?"password":"text"}onAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"input":this._inputTemplate=t.template;break;default:this._inputTemplate=t.template;break}})}getToken(t){return this.tokens[t]}getTemplateEvents(t){return{input:e=>this.onInput(e,t),keydown:e=>this.onKeyDown(e),focus:e=>this.onFocus.emit(e),blur:e=>this.onBlur.emit(e),paste:e=>this.onPaste(e)}}onInput(t,e){let n=t.target.value;if(e===0&&n.length>1){this.handleOnPaste(n,t),t.stopPropagation();return}this.tokens[e]=n,this.updateModel(t),t.inputType==="deleteContentBackward"?this.moveToPrev(t):(t.inputType==="insertText"||t.inputType==="deleteContentForward")&&this.moveToNext(t)}updateModel(t){let e=this.tokens.join("");this.writeModelValue(e),this.onModelChange(e),this.onChange.emit({originalEvent:t,value:e})}updateTokens(){this.value!==null&&this.value!==void 0?Array.isArray(this.value)?this.tokens=[...this.value]:this.tokens=this.value.toString().split(""):this.tokens=[]}getModelValue(t){return this.tokens[t-1]||""}getAutofocus(t){return t===1&&this.autofocus||!1}moveToPrev(t){let e=this.findPrevInput(t.target);e&&(e.focus(),e.select())}moveToNext(t){let e=this.findNextInput(t.target);e&&(e.focus(),e.select())}findNextInput(t){let e=t.nextElementSibling;if(e)return e.nodeName==="INPUT"?e:this.findNextInput(e)}findPrevInput(t){let e=t.previousElementSibling;if(e)return e.nodeName==="INPUT"?e:this.findPrevInput(e)}onInputFocus(t){t.target.select(),this.onFocus.emit(t)}onInputBlur(t){this.onBlur.emit(t)}onKeyDown(t){if(!(t.altKey||t.ctrlKey||t.metaKey))switch(t.key){case"ArrowLeft":this.moveToPrev(t),t.preventDefault();break;case"ArrowUp":case"ArrowDown":t.preventDefault();break;case"Backspace":t.target.value.length===0&&(this.moveToPrev(t),t.preventDefault());break;case"ArrowRight":this.moveToNext(t),t.preventDefault();break;default:let e=t.target,n=e.selectionStart!==e.selectionEnd,p=this.tokens.join("").length>=this.length;(!(this.integerOnly?/^[0-9]$/.test(t.key):!0)||p&&t.key!=="Delete"&&!n)&&t.preventDefault();break}}onPaste(t){if(!this.$disabled()&&!this.readonly){let e=t.clipboardData.getData("text");e.length&&this.handleOnPaste(e,t),t.preventDefault()}}handleOnPaste(t,e){let n=t.substring(0,this.length+1);(!this.integerOnly||!isNaN(n))&&(this.tokens=n.split(""),this.updateModel(e))}getRange(t){return Array.from({length:t},(e,n)=>n+1)}trackByFn(t){return t}writeControlValue(t,e){t?Array.isArray(t)&&t.length>0?this.value=t.slice(0,this.length):this.value=t.toString().split("").slice(0,this.length):this.value=t,e(this.value),this.updateTokens(),this.cd.markForCheck()}static \u0275fac=(()=>{let t;return function(n){return(t||(t=A(i)))(n||i)}})();static \u0275cmp=E({type:i,selectors:[["p-inputOtp"],["p-inputotp"],["p-input-otp"]],contentQueries:function(e,n,p){if(e&1&&(N(p,Rt,4),N(p,Tt,4)),e&2){let w;D(w=B())&&(n.inputTemplate=w.first),D(w=B())&&(n.templates=w)}},hostVars:2,hostBindings:function(e,n){e&2&&y(n.cx("root"))},inputs:{readonly:[2,"readonly","readonly",L],tabindex:"tabindex",length:"length",styleClass:"styleClass",mask:"mask",integerOnly:"integerOnly",autofocus:[2,"autofocus","autofocus",L],variant:[1,"variant"],size:[1,"size"]},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[nt([Qt,Vt,{provide:At,useExisting:i},{provide:Ot,useExisting:i}]),$([F]),Y],decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["type","text","pInputText","",3,"input","focus","blur","paste","keydown","value","pSize","variant","invalid","pAutoFocus","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){e&1&&O(0,Ut,3,2,"ng-container",0),e&2&&m("ngForOf",n.getRange(n.length))("ngForTrackBy",n.trackByFn)},dependencies:[ut,pt,lt,dt,kt,Mt,k,It],encapsulation:2,changeDetection:0})}return i})(),Nt=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=K({type:i});static \u0275inj=U({imports:[V,k,k]})}return i})();var Yt=["otpInput"],Dt=(i,a)=>({"rounded-end":i,"border-end-0":a});function $t(i,a){if(i&1){let t=h();o(0,"form",11),g("submit",function(){d(t);let n=r();return u(n.requestOtp(n.Email))}),o(1,"h1",12),c(2,"Forgot Password"),s(),o(3,"h6",13),c(4,"Enter the username or email address to reset password"),s(),o(5,"div",14)(6,"div",15)(7,"span"),M(8,"i",16),s()(),o(9,"input",17),b("ngModelChange",function(n){d(t);let p=r();return v(p.Email,n)||(p.Email=n),u(n)}),s()(),o(10,"div",18)(11,"button",19),c(12,"Reset Password"),s()(),o(13,"a",20),c(14,"Return to log in"),s()()}if(i&2){let t=r();l(9),x("ngModel",t.Email),l(2),m("disabled",!t.Email)}}function Gt(i,a){if(i&1){let t=h();o(0,"form",11),g("submit",function(){d(t);let n=r();return u(n.verifyOtp(n.otpEmail,n.otp))}),o(1,"h1",21),c(2,"OTP Code Verification"),s(),o(3,"h6",13),c(4,"Please enter the 6 digit code sent to "),o(5,"span",22),c(6),s()(),o(7,"div",23)(8,"p-inputOtp",24,0),b("ngModelChange",function(n){d(t);let p=r();return v(p.otp,n)||(p.otp=n),u(n)}),g("ngModelChange",function(){d(t);let n=r();return u(n.onInputOtp())}),s()(),o(10,"h6",25),c(11,"Didn't get a code? "),o(12,"span",26),g("click",function(){d(t);let n=r();return u(n.requestOtp(n.otpEmail))}),c(13,"Click to resend"),s()(),o(14,"div",18)(15,"button",19),c(16,"Verify"),s()()()}if(i&2){let t=r();l(6),tt(t.otpEmail),l(2),m("integerOnly",!0),x("ngModel",t.otp),m("autofocus",!0),l(7),m("disabled",!t.otp)}}function Zt(i,a){if(i&1){let t=h();o(0,"i",33),g("click",function(){d(t);let n=r(3);return u(n.showPassword())}),s()}if(i&2){let t=r(3);y(H("",t.showHideClass," fas"))}}function Jt(i,a){if(i&1&&(o(0,"span",30),f(1,Zt,1,3,"i",32),s()),i&2){let t=r(2);l(),_(t.password?1:-1)}}function Xt(i,a){if(i&1){let t=h();o(0,"i",33),g("click",function(){d(t);let n=r(3);return u(n.showPassword())}),s()}if(i&2){let t=r(3);y(H("",t.showHideClassConfirm," fas"))}}function te(i,a){if(i&1&&(o(0,"span",30),f(1,Xt,1,3,"i",32),s()),i&2){let t=r(2);l(),_(t.password?1:-1)}}function ee(i,a){if(i&1){let t=h();o(0,"form",11),g("submit",function(){d(t);let n=r();return u(n.changePassword(n.otpEmail,n.otp,n.password))}),o(1,"h1",21),c(2,"Create New Password"),s(),o(3,"h6",13),c(4,"Create a strong password to keep your account safe"),s(),o(5,"div",27)(6,"div",28)(7,"input",29),b("ngModelChange",function(n){d(t);let p=r();return v(p.password,n)||(p.password=n),u(n)}),s(),f(8,Jt,2,1,"span",30),s(),o(9,"div",28)(10,"input",31),b("ngModelChange",function(n){d(t);let p=r();return v(p.confirmPassword,n)||(p.confirmPassword=n),u(n)}),s(),f(11,te,2,1,"span",30),s()(),o(12,"div",18)(13,"button",19),c(14,"Change Password"),s()()()}if(i&2){let t=r();l(7),m("type",t.inputType)("ngClass",R(9,Dt,t.browserType=="edge",t.browserType!="edge")),x("ngModel",t.password),l(),_(t.browserType!="edge"?8:-1),l(2),m("type",t.inputConfirm)("ngClass",R(12,Dt,t.browserType=="edge",t.browserType!="edge")),x("ngModel",t.confirmPassword),l(),_(t.browserType!="edge"?11:-1),l(2),m("disabled",(!t.password||!t.confirmPassword)&&t.password!=t.confirmPassword)}}var Bt=class i{constructor(a){this.httpService=a;document.title="Outlet | Forgot Password Form",this.alert={Visible:!1,Message:null,Success:!1},this.showHideClass="fas fa-eye fas",this.showHideClassConfirm="fas fa-eye fas",this.browserType=this.findname_browser(),rt(()=>{let t=e=>{e.key==="Enter"&&(e.preventDefault(),this.verifyOtp(this.otpEmail,this.otp))};this.otpInputEl()?document.querySelector(".otp-input input:last-child").addEventListener("keyup",t):document.removeEventListener("keyup",t)})}otpInputEl=at("otpInput");appVersion=mt.version;showHideClass;showHideClassConfirm;inputType="password";inputConfirm="password";password;confirmPassword;browserType;Email;alert;toastr=C(gt);state="Email";otp="";otpEmail="";router=C(ct);findname_browser(){var a=window.navigator.userAgent;if(a.indexOf("Edg/")>-1)return"edge";var t={chrome:/chrome/i,safari:/safari/i,firefox:/firefox/i,ie:/internet explorer/i,edge:/edg/i};for(var e in t)if(t[e].test(a))return e;return"unknown"}ngOnInit(){document.body.classList.add("login-body")}ngOnDestroy(){document.body.classList.remove("login-body")}showPassword(){this.showHideClass=this.showHideClass=="fas fa-eye fas"?"fas fas fa-eye-slash":"fas fa-eye fas",this.inputType=this.showHideClass=="fas fa-eye fas"?"password":"text",this.showHideClassConfirm=this.showHideClassConfirm=="fas fa-eye fas"?"fas fas fa-eye-slash":"fas fa-eye fas",this.inputConfirm=this.showHideClassConfirm=="fas fa-eye fas"?"password":"text"}Submit(){let a={Email:this.Email};this.httpService.post("/api/login/SubmitForgotPassword",a).subscribe({next:t=>{this.alert.Visible=!0,this.alert.Success=!0,this.alert.Message=t.Message},error:t=>{this.alert.Visible=!0,this.alert.Message=t?.error?.Message?t?.error?.Message:t?.error}})}requestOtp(a){this.httpService.post("/api/password/requestotp",{email:a}).subscribe(t=>{this.toastr.info(`OTP sent to ${t.otpEmailTarget}`,P.Info),this.otpEmail=t.otpEmailTarget,this.state="OTP"})}onInputOtp(){this.otp.length==6&&this.verifyOtp(this.otpEmail,this.otp)}verifyOtp(a,t){this.httpService.post("/api/password/verifyotp",{email:a,otp:t}).subscribe(e=>{e.success?(this.toastr.info("You can update your password",P.Info),this.state="Password"):this.toastr.info("You input the wrong OTP",P.Error)})}changePassword(a,t,e){this.httpService.post("/api/password/change",{email:a,otp:t,newPassword:e}).subscribe(()=>{this.toastr.info("Your password has been changed",P.Info),this.router.navigate(["/"])})}static \u0275fac=function(t){return new(t||i)(Q(Pt))};static \u0275cmp=E({type:i,selectors:[["POS-auth-forgot-password"]],viewQuery:function(t,e){t&1&&J(e.otpInputEl,Yt,5),t&2&&X()},decls:15,vars:4,consts:[["otpInput",""],[1,"container-fluid"],[1,"d-flex","justify-content-center","align-items-center","vh-100"],[1,"card",2,"width","30rem"],[1,"card-body","p-12"],[1,"d-flex","copyright",2,"margin-left","20px"],[1,"align-self-center","me-5"],["target","_blank","href","http://www.dealpos.com"],[1,"version",2,"margin-right","18px"],["target","_blank","href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v",1,"text-dark","fst-italic"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],[3,"submit"],[1,"mt-8","fw-normal",2,"margin-bottom","1.3rem"],[1,"fw-normal","text-start",2,"font-size","0.8rem"],[1,"input-group","input-group-lg","mb-3","my-5"],[1,"input-group-text","input-group-text","rounded-start"],[1,"fas","fa-user","fa-lg"],["type","text","data-cy","username","placeholder","Username / Email","aria-label","Username","name","email","aria-describedby","basic-addon1",1,"form-control","form-control-lg","rounded-end","ps-2","border-start-0",2,"height","50px",3,"ngModelChange","ngModel"],[1,"my-6"],["type","submit",1,"btn","btn-primary","w-100",3,"disabled"],["href","/",1,"mt-6"],[1,"mt-8","fw-normal",2,"margin-bottom","3rem"],[1,"fw-bold"],[1,"mb-3","my-5","d-flex","justify-content-center"],["length","6","name","otp",1,"otp-input",3,"ngModelChange","integerOnly","ngModel","autofocus"],[1,"fw-normal","text-start"],[1,"text-primary","pointer",3,"click"],[1,"mb-3","my-5"],[1,"input-group","input-group-lg","mt-8"],["id","txtPassword","data-cy","password","placeholder","New Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password",1,"form-control","form-control-lg","rounded-end","ps-5",2,"height","50px",3,"ngModelChange","type","ngClass","ngModel"],[1,"input-group-text","border-start-0","rounded-end"],["id","txtPassword","data-cy","password","placeholder","Confirm New Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password",1,"form-control","form-control-lg","rounded-end","ps-5",2,"height","50px",3,"ngModelChange","type","ngClass","ngModel"],[3,"class"],[3,"click"]],template:function(t,e){t&1&&(o(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),f(4,$t,15,2,"form"),f(5,Gt,17,5,"form"),f(6,ee,15,15,"form"),s()()(),o(7,"div",5)(8,"span",6),c(9,"powered by :"),s(),M(10,"a",7),s(),o(11,"div",8)(12,"a",9),c(13),M(14,"i",10),s()()()),t&2&&(l(4),_(e.state=="Email"?4:-1),l(),_(e.state=="OTP"?5:-1),l(),_(e.state=="Password"?6:-1),l(7),et("version ",e.appVersion))},dependencies:[st,bt,xt,_t,ht,wt,vt,yt,Ct,Nt,V],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}@media screen and (max-width: 768px){.footer-mobile[_ngcontent-%COMP%]{display:flex!important;justify-content:center!important}div.vh-100[_ngcontent-%COMP%]{height:40vh!important}.fixed-bottom[_ngcontent-%COMP%]{position:static!important}input[type=submit][_ngcontent-%COMP%]{width:98%}.card[_ngcontent-%COMP%]{border:none}} p-inputOtp{width:100%} p-inputOtp input{flex-grow:1;height:42px}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(https://cdn.dealpos.app/public/logo/dealpos_130.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}"]})};export{Bt as AuthForgotPasswordComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as B}from"./chunk-
|
|
1
|
+
import{a as B}from"./chunk-FINTUPRM.js";import"./chunk-BYXBJQAS.js";import{Ab as D,Ac as s,Cb as v,Eb as g,Fb as x,Gb as C,Hb as u,Hc as m,Ib as i,Jb as a,Jc as p,Kb as f,Nc as I,Qb as y,Sd as W,Ud as w,Wb as c,Xa as o,ec as T,fc as h,ib as P,id as R,jc as l,kc as E,lc as r,ob as _,pd as k,ud as O,xd as M,zc as S}from"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var N=t=>({"table-border-bottom-0":t}),F=()=>["/menu/Debt/Debt/Accounts_Receiveable/Accounts_Receiveable_Detail"],A=t=>({ID:t}),$=()=>["/menu/Debt/Debt/Accounts_Payable/Accounts_Payable_Detail"];function q(t,d){if(t&1&&(i(0,"tr",26)(1,"td",23)(2,"a",27),l(3),a()(),i(4,"td",28),l(5),m(6,"number"),a(),i(7,"td",29),l(8),m(9,"number"),a()()),t&2){let e=d.$implicit,n=d.$index,b=c(2);u("ngClass",s(12,N,(b.debtData==null||b.debtData.TopReceivable==null?null:b.debtData.TopReceivable.length)==n+1)),o(2),u("routerLink",S(14,F))("queryParams",s(15,A,e==null?null:e.ID)),o(),r(" ",e==null?null:e.Name," "),o(2),r(" ",p(6,6,e==null?null:e.Credit,"1.0-0")," "),o(3),r(" ",p(9,9,e==null?null:e.Limit,"1.0-0")," ")}}function Y(t,d){if(t&1&&x(0,q,10,17,"tr",26,g),t&2){let e=c();C(e.debtData==null?null:e.debtData.TopReceivable)}}function Q(t,d){t&1&&y(0)}function j(t,d){if(t&1&&_(0,Q,1,0,"ng-container",30),t&2){c();let e=T(82);u("ngTemplateOutlet",e)}}function z(t,d){if(t&1&&(i(0,"tr",26)(1,"td",23)(2,"a",27),l(3),a()(),i(4,"td",28),l(5),m(6,"number"),a(),i(7,"td",29),l(8),m(9,"number"),a()()),t&2){let e=d.$implicit,n=d.$index,b=c(2);u("ngClass",s(12,N,(b.debtData==null||b.debtData.TopPayable==null?null:b.debtData.TopPayable.length)==n+1)),o(2),u("routerLink",S(14,$))("queryParams",s(15,A,e==null?null:e.ID)),o(),r(" ",e==null?null:e.Name," "),o(2),r(" ",p(6,6,e==null?null:e.Credit,"1.0-0")," "),o(3),r(" ",p(9,9,e==null?null:e.Limit,"1.0-0")," ")}}function G(t,d){if(t&1&&x(0,z,10,17,"tr",26,g),t&2){let e=c();C(e.debtData==null?null:e.debtData.TopPayable)}}function H(t,d){t&1&&y(0)}function J(t,d){if(t&1&&_(0,H,1,0,"ng-container",30),t&2){c();let e=T(82);u("ngTemplateOutlet",e)}}function K(t,d){t&1&&(i(0,"tr",31)(1,"td",32),f(2,"empty-state-table"),a()())}var L=class t{debtData;dashboardConfig;constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=P({type:t,selectors:[["app-debt-widget"]],inputs:{debtData:"debtData",dashboardConfig:"dashboardConfig"},decls:83,vars:24,consts:[["EMPTY_STATE",""],[1,"row","mt-12"],[1,"col-md-6","col-xs-12","col-sm-12"],[1,"card","mb-0"],[1,"card-body","py-10"],[1,"row","d-flex","align-items-center"],[1,"col-6","text-center","py-3","border-end"],[1,"d-flex","align-items-center","justify-content-center"],[1,"me-2","fs-5"],[1,"fw-normal",2,"font-size","28px"],["routerLink","/menu/Debt/Debt/Accounts_Receiveable","target","_blank",1,"link-dark"],[1,"fs-5"],[1,"col-6","text-center","py-3"],[1,"mt-6","d-md-none"],[1,"col-md-6","col-xs-12","col-sm-12","mt-xs-12"],[1,"col-6","text-center","py-2","border-end"],["routerLink","/menu/Debt/Debt/Accounts_Payable","target","_blank",1,"link-dark"],[1,"col-6","text-center","py-2"],[1,"fw-normal","ps-2",2,"padding-bottom","12px"],[1,"card"],[1,"card-body","p-0"],[1,"table-responsive"],[1,"table"],[1,"ps-8"],[1,"text-end",2,"width","120px"],[1,"text-end","pe-8",2,"width","150px"],[3,"ngClass"],["target","_blank",3,"routerLink","queryParams"],[1,"text-end"],[1,"text-end","pe-8"],[4,"ngTemplateOutlet"],[1,"table-border-bottom-0"],["colspan","3"]],template:function(e,n){e&1&&(i(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"div",7)(7,"small",8),l(8),a(),i(9,"div",9)(10,"a",10),l(11),m(12,"number"),a()()(),i(13,"div",11),l(14,"Receivable"),a()(),i(15,"div",12)(16,"div",9)(17,"a",10),l(18),m(19,"number"),a()(),i(20,"div",11),l(21,"Number Of Transaction"),a()()()()()(),f(22,"div",13),i(23,"div",14)(24,"div",3)(25,"div",4)(26,"div",5)(27,"div",15)(28,"div",7)(29,"small",8),l(30),a(),i(31,"div",9)(32,"a",16),l(33),m(34,"number"),a()()(),i(35,"div",11),l(36,"Payable"),a()(),i(37,"div",17)(38,"div",9)(39,"a",16),l(40),m(41,"number"),a()(),i(42,"div",11),l(43,"Number Of Transaction"),a()()()()()()(),i(44,"div",1)(45,"div",14)(46,"h4",18),l(47," Top 5 Debt Receivable "),a(),i(48,"div",19)(49,"div",20)(50,"div",21)(51,"table",22)(52,"thead")(53,"tr")(54,"th",23),l(55,"Customer Name"),a(),i(56,"th",24),l(57,"Debt"),a(),i(58,"th",25),l(59,"Limit"),a()()(),i(60,"tbody"),D(61,Y,2,0)(62,j,1,1,"ng-container"),a()()()()()(),i(63,"div",14)(64,"h4",18),l(65," Top 5 Debt Payable "),a(),i(66,"div",19)(67,"div",20)(68,"div",21)(69,"table",22)(70,"thead")(71,"tr")(72,"th",23),l(73,"Supplier Name"),a(),i(74,"th",24),l(75,"Debt"),a(),i(76,"th",25),l(77,"Limit"),a()()(),i(78,"tbody"),D(79,G,2,0)(80,J,1,1,"ng-container"),a()()()()()()(),_(81,K,3,0,"ng-template",null,0,I)),e&2&&(o(8),E(n.dashboardConfig==null?null:n.dashboardConfig.CurrencySymbol),o(3),r(" ",p(12,12,n.debtData==null?null:n.debtData.Receivable,"1.0-0")," "),o(7),r(" ",p(19,15,n.debtData==null?null:n.debtData.ReceivableQuantity,"1.0-0")," "),o(12),E(n.dashboardConfig==null?null:n.dashboardConfig.CurrencySymbol),o(3),r(" ",p(34,18,n.debtData==null?null:n.debtData.Payable,"1.0-0")," "),o(7),r(" ",p(41,21,n.debtData==null?null:n.debtData.PayableQuantity,"1.0-0")," "),o(20),h("height",(n.debtData==null||n.debtData.TopReceivable==null?null:n.debtData.TopReceivable.length)==0?"15.5rem":null),o(),v((n.debtData==null||n.debtData.TopReceivable==null?null:n.debtData.TopReceivable.length)>0?61:62),o(17),h("height",(n.debtData==null||n.debtData.TopPayable==null?null:n.debtData.TopPayable.length)==0?"15.5rem":null),o(),v((n.debtData==null||n.debtData.TopPayable==null?null:n.debtData.TopPayable.length)>0?79:80))},dependencies:[M,R,k,w,W,B,O],styles:["table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-top:0px!important;border-left:0px!important;border-right:0px!important}tbody[_ngcontent-%COMP%] tr.table-border-bottom-0[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:0px!important}"]})};export{L as DebtWidgetComponent};
|