@everymatrix/player-account-controller 1.75.0 → 1.76.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.
Files changed (168) hide show
  1. package/components/GeneralLogout-CuvnoUn1.cjs +21 -0
  2. package/components/{GeneralLogout-DIRnj10H.js → GeneralLogout-DSECYo0-.js} +843 -822
  3. package/components/{GeneralLogout-Dd4n6Kp2.js → GeneralLogout-DpZ-BcWm.js} +814 -793
  4. package/components/PlayerAccountBettingHistory-BDYeFmkk.js +310 -0
  5. package/components/PlayerAccountBettingHistory-CNH9wk4q.js +311 -0
  6. package/components/PlayerAccountBettingHistory-Cb9zY2cj.cjs +1 -0
  7. package/components/{PlayerAccountBiometrics-D8lv7JzY.js → PlayerAccountBiometrics-B9d0_egW.js} +22 -22
  8. package/components/{PlayerAccountBiometrics-N164JTVo.cjs → PlayerAccountBiometrics-CSSQNl0K.cjs} +1 -1
  9. package/components/{PlayerAccountBiometrics-DzUvqvfR.js → PlayerAccountBiometrics-DvAjLCSX.js} +22 -22
  10. package/components/{PlayerAccountClosure-ByNnHtUf.cjs → PlayerAccountClosure-D2ovK8jC.cjs} +1 -1
  11. package/components/{PlayerAccountClosure-B7LJRfF_.js → PlayerAccountClosure-DzDcGjw6.js} +17 -17
  12. package/components/{PlayerAccountClosure-VNjXTTeE.js → PlayerAccountClosure-uGbZZ9An.js} +17 -17
  13. package/components/{PlayerAccountController-BNFenXlV.js → PlayerAccountController-BaPQkVoS.js} +317 -317
  14. package/components/{PlayerAccountController-B53eiCm2.cjs → PlayerAccountController-CNO7uWc6.cjs} +1 -1
  15. package/components/{PlayerAccountController-4zAuIhXb.js → PlayerAccountController-DvF_-Gnz.js} +317 -317
  16. package/components/{PlayerAccountGamingLimits-CSFkUiYY.js → PlayerAccountGamingLimits-B6wKBvsB.js} +127 -127
  17. package/components/{PlayerAccountGamingLimits-DLyOkU8g.cjs → PlayerAccountGamingLimits-BPVpte4c.cjs} +1 -1
  18. package/components/{PlayerAccountGamingLimits-BPAFyYb5.js → PlayerAccountGamingLimits-DBraet-_.js} +127 -127
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-DON2ejFa.js → PlayerAccountGamingLimitsConfirmationModal-BKVbjWGo.js} +30 -30
  20. package/components/{PlayerAccountGamingLimitsConfirmationModal-De1JAgPX.js → PlayerAccountGamingLimitsConfirmationModal-C7eo4n91.js} +30 -30
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-cxg0byfD.cjs → PlayerAccountGamingLimitsConfirmationModal-CTub7J3N.cjs} +1 -1
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-B4l5VAbb.js → PlayerAccountGamingLimitsGroupEdit-CfD-M6Qh.js} +127 -129
  23. package/components/{PlayerAccountGamingLimitsGroupEdit-CrgfBvua.js → PlayerAccountGamingLimitsGroupEdit-JjBMtw_4.js} +127 -129
  24. package/components/PlayerAccountGamingLimitsGroupEdit-gUkWnHwu.cjs +2 -0
  25. package/components/{PlayerAccountGamingLimitsHistory2-BRgxAXo_.js → PlayerAccountGamingLimitsHistory2-B41VVq8R.js} +39 -39
  26. package/components/{PlayerAccountGamingLimitsHistory2-RFRr_X30.js → PlayerAccountGamingLimitsHistory2-BM9UlpyS.js} +41 -41
  27. package/components/{PlayerAccountGamingLimitsHistory2-x-v5JjhN.cjs → PlayerAccountGamingLimitsHistory2-Bl-VMGFi.cjs} +1 -1
  28. package/components/{PlayerAccountGamingLimitsInfoCard-XCP1Kxff.cjs → PlayerAccountGamingLimitsInfoCard-B1-rS3C8.cjs} +1 -1
  29. package/components/{PlayerAccountGamingLimitsInfoCard-BRDuV_cd.js → PlayerAccountGamingLimitsInfoCard-B9H7I5Gr.js} +83 -83
  30. package/components/{PlayerAccountGamingLimitsInfoCard-BiwEIF0r.js → PlayerAccountGamingLimitsInfoCard-DwX_bkPR.js} +83 -83
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16-CwwjENW0.js → PlayerAccountGamingLimitsPage2Gm16-Cg-G38ui.js} +595 -598
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16--rQhVE1q.cjs → PlayerAccountGamingLimitsPage2Gm16-DtHQGK21.cjs} +6 -6
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16-BWA71CAl.js → PlayerAccountGamingLimitsPage2Gm16-T6Ii0fag.js} +246 -246
  34. package/components/{PlayerAccountGamingLimitsPopup-DNjM-xS5.cjs → PlayerAccountGamingLimitsPopup-B9mkm7cd.cjs} +1 -1
  35. package/components/{PlayerAccountGamingLimitsPopup-Biyoz4lK.js → PlayerAccountGamingLimitsPopup-BhTuwNDv.js} +42 -42
  36. package/components/{PlayerAccountGamingLimitsPopup-cBscDgFe.js → PlayerAccountGamingLimitsPopup-Bm8wJyt7.js} +42 -42
  37. package/components/{PlayerAccountGamingLimitsWrapper2-D0KtfHqJ.js → PlayerAccountGamingLimitsWrapper2-Bjsb9I8u.js} +37 -37
  38. package/components/{PlayerAccountGamingLimitsWrapper2-BsvByvpk.js → PlayerAccountGamingLimitsWrapper2-CbFe0wKm.js} +37 -37
  39. package/components/{PlayerAccountGamingLimitsWrapper2-BIcWUcMl.cjs → PlayerAccountGamingLimitsWrapper2-CrCkUbSW.cjs} +1 -1
  40. package/components/{PlayerAccountGeneralConfirmationModal-BNoE_P3G.js → PlayerAccountGeneralConfirmationModal-C2j-cezP.js} +32 -32
  41. package/components/{PlayerAccountGeneralConfirmationModal-BFCCI67b.cjs → PlayerAccountGeneralConfirmationModal-OYut1Lou.cjs} +1 -1
  42. package/components/{PlayerAccountGeneralConfirmationModal-q4Du5zdg.js → PlayerAccountGeneralConfirmationModal-TR0re855.js} +32 -32
  43. package/components/{PlayerAccountMenu-CVBew6Nf.cjs → PlayerAccountMenu-BQu1uMXy.cjs} +1 -1
  44. package/components/{PlayerAccountMenu-BbdWpRLe.js → PlayerAccountMenu-DDK28uRA.js} +36 -36
  45. package/components/{PlayerAccountMenu-BicTGCSZ.js → PlayerAccountMenu-DZqChKXK.js} +33 -33
  46. package/components/{PlayerAccountModal-Day4vMPZ.js → PlayerAccountModal-Cw2Mcd-d.js} +23 -23
  47. package/components/{PlayerAccountModal-DaIBO9tP.cjs → PlayerAccountModal-CzspHDhO.cjs} +1 -1
  48. package/components/{PlayerAccountModal-J-6B3L2x.js → PlayerAccountModal-DoBwOdNI.js} +23 -23
  49. package/components/{PlayerAccountNotifications-wc_EBqY2.js → PlayerAccountNotifications-BpsUOj0M.js} +36 -36
  50. package/components/{PlayerAccountNotifications-BbvJAh0S.cjs → PlayerAccountNotifications-CGmkTd-y.cjs} +1 -1
  51. package/components/{PlayerAccountNotifications-PuDZBFQ4.js → PlayerAccountNotifications-CzhNTTTd.js} +35 -35
  52. package/components/{PlayerAccountProductRestriction-BA3Ht4v0.js → PlayerAccountProductRestriction-ClvW28BI.js} +9124 -4058
  53. package/components/{PlayerAccountProductRestriction-BVD0VXs9.js → PlayerAccountProductRestriction-DEGzc5kz.js} +9149 -4083
  54. package/components/PlayerAccountProductRestriction-HFCCxFxz.cjs +7968 -0
  55. package/components/{PlayerAccountSelfExclusion-B9rXp_dv.js → PlayerAccountSelfExclusion-BOViWFS9.js} +113 -116
  56. package/components/{PlayerAccountSelfExclusion-CwlTQfYm.cjs → PlayerAccountSelfExclusion-BWBLv-18.cjs} +87 -87
  57. package/components/{PlayerAccountSelfExclusion-BwFD6ZJu.js → PlayerAccountSelfExclusion-C7Br5VmH.js} +563 -566
  58. package/components/{PlayerAccountTimeout-DfxFUM4s.js → PlayerAccountTimeout-CIHTd0LQ.js} +75 -75
  59. package/components/{PlayerAccountTimeout-mAcIWL2w.js → PlayerAccountTimeout-CfEHZ9pc.js} +75 -75
  60. package/components/{PlayerAccountTimeout-CPLGI8jX.cjs → PlayerAccountTimeout-DtpzMxQd.cjs} +1 -1
  61. package/components/{PlayerAccountTransactionsHistory-J6QX4Mo6.cjs → PlayerAccountTransactionsHistory-CDHvYjjJ.cjs} +1 -1
  62. package/components/{PlayerAccountTransactionsHistory-B61bTygv.js → PlayerAccountTransactionsHistory-CnZ9-j-P.js} +87 -87
  63. package/components/{PlayerAccountTransactionsHistory-D_Rh7xzG.js → PlayerAccountTransactionsHistory-DXz91A1z.js} +87 -87
  64. package/components/{PlayerActiveBonuses-lflDqCU8.js → PlayerActiveBonuses-M2nfyZqa.js} +48 -48
  65. package/components/{PlayerActiveBonuses-VMRnoY1_.cjs → PlayerActiveBonuses-_NK812L8.cjs} +1 -1
  66. package/components/{PlayerActiveBonuses-DBGj3lj2.js → PlayerActiveBonuses-vH3WJNi8.js} +55 -55
  67. package/components/{PlayerBonusCard-D68dTYiw.js → PlayerBonusCard-BXjt3PQh.js} +81 -81
  68. package/components/{PlayerBonusCard-B58kMR83.js → PlayerBonusCard-BYBQy1Si.js} +81 -81
  69. package/components/{PlayerBonusCard-KehruUku.cjs → PlayerBonusCard-C6zYcpN6.cjs} +1 -1
  70. package/components/{PlayerBonusHistory-BxcxPRN7.js → PlayerBonusHistory-CoCvBZgH.js} +33 -33
  71. package/components/{PlayerBonusHistory-WEjZxD6T.cjs → PlayerBonusHistory-DLt5HM6L.cjs} +1 -1
  72. package/components/{PlayerBonusHistory-BZz5QP4A.js → PlayerBonusHistory-DOeREoa9.js} +33 -33
  73. package/components/{PlayerChangePassword-CQqQIyDU.js → PlayerChangePassword-B5A-0Obq.js} +66 -66
  74. package/components/{PlayerChangePassword-DYpl0DV7.cjs → PlayerChangePassword-CTNjnq_r.cjs} +1 -1
  75. package/components/{PlayerChangePassword-VQJYG-HQ.js → PlayerChangePassword-DTahlEtx.js} +66 -66
  76. package/components/PlayerDeposit-BsyYS9xx.cjs +1 -0
  77. package/components/{PlayerDeposit-R4oRYCP7.js → PlayerDeposit-DOzGblzs.js} +80 -80
  78. package/components/{PlayerDeposit-nin4U--Y.js → PlayerDeposit-DqT5-LKW.js} +80 -80
  79. package/components/{PlayerGamingHistory-BxN4Cjj3.cjs → PlayerGamingHistory-8Bo-uc3o.cjs} +1 -1
  80. package/components/{PlayerGamingHistory-CN6XDOWB.js → PlayerGamingHistory-ByLE5wRu.js} +63 -63
  81. package/components/{PlayerGamingHistory-VnHkfl2z.js → PlayerGamingHistory-CfvSHYhg.js} +72 -72
  82. package/components/{PlayerPendingWithdrawals-adHFXpiC.js → PlayerPendingWithdrawals-CGYcCotO.js} +26 -26
  83. package/components/{PlayerPendingWithdrawals-DfQ_PvkY.cjs → PlayerPendingWithdrawals-Dvq9lK8F.cjs} +1 -1
  84. package/components/{PlayerPendingWithdrawals-C1tt1OJl.js → PlayerPendingWithdrawals-iWN6LsIP.js} +26 -26
  85. package/components/{PlayerProfileInfo-CKJNYYA8.cjs → PlayerProfileInfo-CYPlnEWJ.cjs} +1 -1
  86. package/components/{PlayerProfileInfo-CrGJ1yEi.js → PlayerProfileInfo-kZXtGVGK.js} +66 -66
  87. package/components/{PlayerProfileInfo-DpEH00v-.js → PlayerProfileInfo-tCIspsyo.js} +66 -66
  88. package/components/{PlayerRealityCheck-Cq2rIALW.cjs → PlayerRealityCheck-BynMsi1X.cjs} +1 -1
  89. package/components/{PlayerRealityCheck-JkP_hy_p.js → PlayerRealityCheck-Dr5lvwHL.js} +44 -44
  90. package/components/{PlayerRealityCheck-CTGhzTwa.js → PlayerRealityCheck-kgcCV8FV.js} +43 -43
  91. package/components/{PlayerTransactionHistory-DPvvu8Wp.cjs → PlayerTransactionHistory-BU4_vLyx.cjs} +1 -1
  92. package/components/{PlayerTransactionHistory-CQPQw37D.js → PlayerTransactionHistory-CEEirGIE.js} +19 -19
  93. package/components/{PlayerTransactionHistory-DQfalEXN.js → PlayerTransactionHistory-j-FbnqEI.js} +19 -19
  94. package/components/{PlayerWithdrawal-11j92uAk.js → PlayerWithdrawal-B_nHZSvY.js} +19 -19
  95. package/components/{PlayerWithdrawal-BcaC1sEF.cjs → PlayerWithdrawal-CkSCfQ4A.cjs} +1 -1
  96. package/components/{PlayerWithdrawal-yB5c-nTz.js → PlayerWithdrawal-DjRR7TrQ.js} +19 -19
  97. package/es2015/player-account-controller.cjs +1 -1
  98. package/es2015/player-account-controller.js +1 -1
  99. package/esnext/player-account-controller.js +1 -1
  100. package/package.json +1 -1
  101. package/stencil/checkbox-group-input_15-4Hs1gM1f.cjs +8212 -0
  102. package/stencil/{checkbox-group-input_15-BBaHCJ8m.js → checkbox-group-input_15-C9RSqwNE.js} +9701 -4635
  103. package/stencil/{checkbox-group-input_15-B47EbzkJ.js → checkbox-group-input_15-COZrprO3.js} +9698 -4632
  104. package/stencil/index-13661b98-8hgREsxq.cjs +1 -0
  105. package/stencil/index-13661b98-BGWA5lR-.js +595 -0
  106. package/stencil/index-13661b98-C1LBo8p_.js +611 -0
  107. package/stencil/index-1ef3a64c-DR7bpfUj.cjs +1 -0
  108. package/stencil/index-1ef3a64c-HE2lDlEL.js +572 -0
  109. package/stencil/index-1ef3a64c-zEGNB-u8.js +556 -0
  110. package/stencil/{index-7c5e707a-BZ26MA7_.js → index-6e523641-C-aWDr56.js} +217 -206
  111. package/stencil/{index-7c5e707a-CVVnpkZ1.js → index-6e523641-CIqESSFm.js} +224 -213
  112. package/stencil/index-6e523641-D-RFKZXR.cjs +1 -0
  113. package/stencil/{index-9c0f6c58-DH5Ki39B.js → index-9c0f6c58-CWsaYxOT.js} +197 -197
  114. package/stencil/index-9c0f6c58-Cv5Mos03.cjs +1 -0
  115. package/stencil/index-9c0f6c58-ntq_iYNK.js +576 -0
  116. package/stencil/index-b2193545-DQUvHUpa.cjs +1 -0
  117. package/stencil/index-b2193545-DoYU_tL8.js +503 -0
  118. package/stencil/index-b2193545-_I2wisuY.js +519 -0
  119. package/stencil/pam-change-password-CgN62FEK.js +25 -0
  120. package/stencil/pam-change-password-Ck1Dqung.js +7 -0
  121. package/stencil/{pam-change-password-af5033a0-BdPXYjRb.js → pam-change-password-c578e291-ApXrRZhk.js} +2 -2
  122. package/stencil/{pam-change-password-af5033a0-CPFagM2l.cjs → pam-change-password-c578e291-CObxKeQj.cjs} +2 -2
  123. package/stencil/{pam-change-password-af5033a0-CXI6y6VZ.js → pam-change-password-c578e291-DjiJJQNq.js} +2 -2
  124. package/stencil/pam-change-password-q-zLWG5h.cjs +1 -0
  125. package/stencil/{player-kyc-verification-DW2tWbg_.cjs → player-kyc-verification-BOxNJ6x_.cjs} +1 -1
  126. package/stencil/{player-kyc-verification-BJuBsd7A.js → player-kyc-verification-jOo_qPpq.js} +1 -1
  127. package/stencil/{player-kyc-verification-u-XUlDen.js → player-kyc-verification-sZ9OAQ8Z.js} +1 -1
  128. package/stencil/{ui-skeleton-CnxOhYAT.js → ui-skeleton-C_FDz0NJ.js} +2 -2
  129. package/stencil/{ui-skeleton-Bez-iF-R.cjs → ui-skeleton-GEqIXVxo.cjs} +1 -1
  130. package/stencil/{ui-skeleton-ae35c6f2-Bl0_r9TX.js → ui-skeleton-ae35c6f2-BreM325l.js} +1 -1
  131. package/stencil/{ui-skeleton-ae35c6f2-D37mmp9J.cjs → ui-skeleton-ae35c6f2-CeNpgiKf.cjs} +1 -1
  132. package/stencil/{ui-skeleton-ae35c6f2-CXRVKjq-.js → ui-skeleton-ae35c6f2-e6Wte4qi.js} +1 -1
  133. package/stencil/{ui-skeleton-CScGJdv_.js → ui-skeleton-mkMdvWYI.js} +2 -2
  134. package/stencil/{user-deposit-withdrawal-KqJCF9Hl.cjs → user-deposit-withdrawal-BuFBx-hr.cjs} +2 -2
  135. package/stencil/{user-deposit-withdrawal-ar8K3Kn7.js → user-deposit-withdrawal-Cr0-V-2c.js} +1 -1
  136. package/stencil/{user-deposit-withdrawal-B7dnuKq0.js → user-deposit-withdrawal-DdJYJeX1.js} +1 -1
  137. package/stencil/user-transaction-history-ChQcZwtX.js +25 -0
  138. package/stencil/user-transaction-history-D4WBmCh8.cjs +1 -0
  139. package/stencil/user-transaction-history-Dla0Do5o.js +7 -0
  140. package/stencil/user-transaction-history_2-B1al0Y-h.js +3533 -0
  141. package/stencil/user-transaction-history_2-DznYNRIL.js +3555 -0
  142. package/stencil/user-transaction-history_2-bMxqSwYs.cjs +2 -0
  143. package/components/GeneralLogout-TofSUXEw.cjs +0 -21
  144. package/components/PlayerAccountBettingHistory-85apG_ux.cjs +0 -1
  145. package/components/PlayerAccountBettingHistory-CuMJRUaH.js +0 -310
  146. package/components/PlayerAccountBettingHistory-ZZH1M51O.js +0 -311
  147. package/components/PlayerAccountGamingLimitsGroupEdit-BEb7Fv28.cjs +0 -2
  148. package/components/PlayerAccountProductRestriction-DJUublp5.cjs +0 -6061
  149. package/components/PlayerDeposit-BLDWbMBK.cjs +0 -1
  150. package/stencil/checkbox-group-input_15-BPXIBJ9O.cjs +0 -6305
  151. package/stencil/index-13661b98-BzYpZXJ-.js +0 -595
  152. package/stencil/index-13661b98-D93Apl47.js +0 -611
  153. package/stencil/index-13661b98-DBuU9Lk0.cjs +0 -1
  154. package/stencil/index-1ef3a64c-BJwg6KZV.js +0 -572
  155. package/stencil/index-1ef3a64c-BkMv_VME.cjs +0 -1
  156. package/stencil/index-1ef3a64c-Cl4fiqPl.js +0 -556
  157. package/stencil/index-7c5e707a-d0LYIjGl.cjs +0 -1
  158. package/stencil/index-9c0f6c58-8sXzcKbt.js +0 -576
  159. package/stencil/index-9c0f6c58-CbFwvYJ1.cjs +0 -1
  160. package/stencil/index-b2193545-BekNYO1T.js +0 -519
  161. package/stencil/index-b2193545-BteAUmdh.cjs +0 -1
  162. package/stencil/index-b2193545-DfDFpDFs.js +0 -503
  163. package/stencil/pam-change-password-9bMd9dOQ.js +0 -7
  164. package/stencil/pam-change-password-D9deCtek.cjs +0 -1
  165. package/stencil/pam-change-password-h1ivBSP6.js +0 -25
  166. package/stencil/user-transaction-history-D86WcqZY.js +0 -1627
  167. package/stencil/user-transaction-history-o1zvVNkt.js +0 -1651
  168. package/stencil/user-transaction-history-xgpDQYWU.cjs +0 -1
@@ -1,1627 +0,0 @@
1
- import { b as rt, p as it, r as ot, g as R, h as o, H as st, a as lt } from "./index-7c5e707a-BZ26MA7_.js";
2
- import { d as ut } from "./app-globals-0f993ce5-DzSE6TtH.js";
3
- var dt = () => {
4
- const e = import.meta.url, t = {};
5
- return e !== "" && (t.resourcesUrl = new URL(".", e).href), it(t);
6
- };
7
- dt().then(async (e) => (await ut(), rt([["user-transaction-history", [[1, "user-transaction-history", { endpoint: [513], session: [513], language: [513], userId: [513, "user-id"], translationUrl: [513, "translation-url"], mobile: [516], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], mbSource: [513, "mb-source"], dateFormat: [513, "date-format"], page: [32], pageSize: [32], showMobileFilter: [32], to: [32], from: [32], type: [32], transactions: [32], showLoader: [32] }, [[9, "resize", "getComponentHeight"]], { page: ["watchMultiple"], type: ["watchMultiple"], session: ["watchMultiple"], userId: ["watchMultiple"], pageSize: ["watchMultiple"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingUrlChange"], showMobileFilter: ["getComponentHeight"] }]]]], e)));
8
- const ct = {
9
- en: {
10
- deposit: "Deposit",
11
- withdrawals: "Withdrawals",
12
- show: "Show",
13
- from: "From",
14
- to: "To",
15
- filter: "Filter",
16
- transactionId: "Transaction ID",
17
- date: "Date",
18
- amount: "Amount",
19
- productType: "Product Type",
20
- status: "Status",
21
- noData: "There are no account activities",
22
- transactionTitle: "Transaction History"
23
- },
24
- hr: {
25
- deposit: "Uplate",
26
- withdrawals: "Isplate",
27
- show: "Prikaži",
28
- from: "Od",
29
- to: "Do",
30
- filter: "Filter",
31
- transactionId: "ID transakcije",
32
- date: "Datum",
33
- amount: "Iznos",
34
- productType: "Vrsta proizvoda",
35
- status: "Status",
36
- noData: "Nema aktivnosti na računu",
37
- transactionTitle: "Povijest transakcija"
38
- }
39
- };
40
- class l {
41
- constructor() {
42
- }
43
- static async loadCustomTranslations(t) {
44
- try {
45
- const a = await fetch(t, {
46
- headers: {
47
- "Content-Type": "application/json"
48
- }
49
- });
50
- if (!a.ok) {
51
- const r = await a.text();
52
- throw new Error(r);
53
- }
54
- const n = await a.json();
55
- l.updateTranslations(n);
56
- } catch (a) {
57
- console.error(`Failed to load translations ${t}. ${a.message}`);
58
- }
59
- }
60
- static translate(t, a) {
61
- var n, r;
62
- const i = l.getAvaliableLanguages(a);
63
- return ((r = (n = l.customTranslation) === null || n === void 0 ? void 0 : n[i.customLanguage]) === null || r === void 0 ? void 0 : r[t]) || l.defaultTranslation[i.predefinedLanguage][t];
64
- }
65
- static getAvaliableLanguages(t) {
66
- var a;
67
- const n = !((a = l.customLanguages) === null || a === void 0) && a.includes(t) ? t : l.defaultLanguage;
68
- return { predefinedLanguage: l.supportedLanguages.includes(t) ? t : l.defaultLanguage, customLanguage: n };
69
- }
70
- static updateTranslations(t) {
71
- l.customLanguages = Array.from(/* @__PURE__ */ new Set([...l.supportedLanguages, ...Object.keys(t).map((a) => a.toLowerCase())])), l.customTranslation = t;
72
- }
73
- }
74
- l.defaultLanguage = "en";
75
- l.supportedLanguages = ["en"];
76
- l.defaultTranslation = ct;
77
- const ht = () => o(
78
- "div",
79
- { class: "loader" },
80
- o("div", null),
81
- o("div", null),
82
- o("div", null),
83
- o("div", null),
84
- o("div", null),
85
- o("div", null),
86
- o("div", null),
87
- o("div", null),
88
- o("div", null),
89
- o("div", null),
90
- o("div", null),
91
- o("div", null)
92
- );
93
- function Y(e) {
94
- "@babel/helpers - typeof";
95
- return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
96
- return typeof t;
97
- } : function(t) {
98
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
99
- }, Y(e);
100
- }
101
- function v(e, t) {
102
- if (t.length < e)
103
- throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
104
- }
105
- function ft(e) {
106
- return v(1, arguments), e instanceof Date || Y(e) === "object" && Object.prototype.toString.call(e) === "[object Date]";
107
- }
108
- function y(e) {
109
- v(1, arguments);
110
- var t = Object.prototype.toString.call(e);
111
- return e instanceof Date || Y(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
112
- }
113
- function mt(e) {
114
- if (v(1, arguments), !ft(e) && typeof e != "number")
115
- return !1;
116
- var t = y(e);
117
- return !isNaN(Number(t));
118
- }
119
- function k(e) {
120
- if (e === null || e === !0 || e === !1)
121
- return NaN;
122
- var t = Number(e);
123
- return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t);
124
- }
125
- function gt(e, t) {
126
- v(2, arguments);
127
- var a = y(e).getTime(), n = k(t);
128
- return new Date(a + n);
129
- }
130
- function vt(e, t) {
131
- v(2, arguments);
132
- var a = k(t);
133
- return gt(e, -a);
134
- }
135
- var pt = 864e5;
136
- function bt(e) {
137
- v(1, arguments);
138
- var t = y(e), a = t.getTime();
139
- t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
140
- var n = t.getTime(), r = a - n;
141
- return Math.floor(r / pt) + 1;
142
- }
143
- function _(e) {
144
- v(1, arguments);
145
- var t = 1, a = y(e), n = a.getUTCDay(), r = (n < t ? 7 : 0) + n - t;
146
- return a.setUTCDate(a.getUTCDate() - r), a.setUTCHours(0, 0, 0, 0), a;
147
- }
148
- function G(e) {
149
- v(1, arguments);
150
- var t = y(e), a = t.getUTCFullYear(), n = /* @__PURE__ */ new Date(0);
151
- n.setUTCFullYear(a + 1, 0, 4), n.setUTCHours(0, 0, 0, 0);
152
- var r = _(n), i = /* @__PURE__ */ new Date(0);
153
- i.setUTCFullYear(a, 0, 4), i.setUTCHours(0, 0, 0, 0);
154
- var s = _(i);
155
- return t.getTime() >= r.getTime() ? a + 1 : t.getTime() >= s.getTime() ? a : a - 1;
156
- }
157
- function wt(e) {
158
- v(1, arguments);
159
- var t = G(e), a = /* @__PURE__ */ new Date(0);
160
- a.setUTCFullYear(t, 0, 4), a.setUTCHours(0, 0, 0, 0);
161
- var n = _(a);
162
- return n;
163
- }
164
- var yt = 6048e5;
165
- function xt(e) {
166
- v(1, arguments);
167
- var t = y(e), a = _(t).getTime() - wt(t).getTime();
168
- return Math.round(a / yt) + 1;
169
- }
170
- var Tt = {};
171
- function B() {
172
- return Tt;
173
- }
174
- function L(e, t) {
175
- var a, n, r, i, s, d, c, h;
176
- v(1, arguments);
177
- var m = B(), f = k((a = (n = (r = (i = t?.weekStartsOn) !== null && i !== void 0 ? i : t == null || (s = t.locale) === null || s === void 0 || (d = s.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && r !== void 0 ? r : m.weekStartsOn) !== null && n !== void 0 ? n : (c = m.locale) === null || c === void 0 || (h = c.options) === null || h === void 0 ? void 0 : h.weekStartsOn) !== null && a !== void 0 ? a : 0);
178
- if (!(f >= 0 && f <= 6))
179
- throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
180
- var p = y(e), g = p.getUTCDay(), w = (g < f ? 7 : 0) + g - f;
181
- return p.setUTCDate(p.getUTCDate() - w), p.setUTCHours(0, 0, 0, 0), p;
182
- }
183
- function V(e, t) {
184
- var a, n, r, i, s, d, c, h;
185
- v(1, arguments);
186
- var m = y(e), f = m.getUTCFullYear(), p = B(), g = k((a = (n = (r = (i = t?.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (s = t.locale) === null || s === void 0 || (d = s.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && r !== void 0 ? r : p.firstWeekContainsDate) !== null && n !== void 0 ? n : (c = p.locale) === null || c === void 0 || (h = c.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && a !== void 0 ? a : 1);
187
- if (!(g >= 1 && g <= 7))
188
- throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
189
- var w = /* @__PURE__ */ new Date(0);
190
- w.setUTCFullYear(f + 1, 0, g), w.setUTCHours(0, 0, 0, 0);
191
- var D = L(w, t), C = /* @__PURE__ */ new Date(0);
192
- C.setUTCFullYear(f, 0, g), C.setUTCHours(0, 0, 0, 0);
193
- var $ = L(C, t);
194
- return m.getTime() >= D.getTime() ? f + 1 : m.getTime() >= $.getTime() ? f : f - 1;
195
- }
196
- function Ct(e, t) {
197
- var a, n, r, i, s, d, c, h;
198
- v(1, arguments);
199
- var m = B(), f = k((a = (n = (r = (i = t?.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (s = t.locale) === null || s === void 0 || (d = s.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && r !== void 0 ? r : m.firstWeekContainsDate) !== null && n !== void 0 ? n : (c = m.locale) === null || c === void 0 || (h = c.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && a !== void 0 ? a : 1), p = V(e, t), g = /* @__PURE__ */ new Date(0);
200
- g.setUTCFullYear(p, 0, f), g.setUTCHours(0, 0, 0, 0);
201
- var w = L(g, t);
202
- return w;
203
- }
204
- var St = 6048e5;
205
- function kt(e, t) {
206
- v(1, arguments);
207
- var a = y(e), n = L(a, t).getTime() - Ct(a, t).getTime();
208
- return Math.round(n / St) + 1;
209
- }
210
- function u(e, t) {
211
- for (var a = e < 0 ? "-" : "", n = Math.abs(e).toString(); n.length < t; )
212
- n = "0" + n;
213
- return a + n;
214
- }
215
- var Mt = {
216
- // Year
217
- y: function(t, a) {
218
- var n = t.getUTCFullYear(), r = n > 0 ? n : 1 - n;
219
- return u(a === "yy" ? r % 100 : r, a.length);
220
- },
221
- // Month
222
- M: function(t, a) {
223
- var n = t.getUTCMonth();
224
- return a === "M" ? String(n + 1) : u(n + 1, 2);
225
- },
226
- // Day of the month
227
- d: function(t, a) {
228
- return u(t.getUTCDate(), a.length);
229
- },
230
- // AM or PM
231
- a: function(t, a) {
232
- var n = t.getUTCHours() / 12 >= 1 ? "pm" : "am";
233
- switch (a) {
234
- case "a":
235
- case "aa":
236
- return n.toUpperCase();
237
- case "aaa":
238
- return n;
239
- case "aaaaa":
240
- return n[0];
241
- case "aaaa":
242
- default:
243
- return n === "am" ? "a.m." : "p.m.";
244
- }
245
- },
246
- // Hour [1-12]
247
- h: function(t, a) {
248
- return u(t.getUTCHours() % 12 || 12, a.length);
249
- },
250
- // Hour [0-23]
251
- H: function(t, a) {
252
- return u(t.getUTCHours(), a.length);
253
- },
254
- // Minute
255
- m: function(t, a) {
256
- return u(t.getUTCMinutes(), a.length);
257
- },
258
- // Second
259
- s: function(t, a) {
260
- return u(t.getUTCSeconds(), a.length);
261
- },
262
- // Fraction of second
263
- S: function(t, a) {
264
- var n = a.length, r = t.getUTCMilliseconds(), i = Math.floor(r * Math.pow(10, n - 3));
265
- return u(i, a.length);
266
- }
267
- };
268
- const T = Mt;
269
- var M = {
270
- am: "am",
271
- pm: "pm",
272
- midnight: "midnight",
273
- noon: "noon",
274
- morning: "morning",
275
- afternoon: "afternoon",
276
- evening: "evening",
277
- night: "night"
278
- }, Dt = {
279
- // Era
280
- G: function(t, a, n) {
281
- var r = t.getUTCFullYear() > 0 ? 1 : 0;
282
- switch (a) {
283
- case "G":
284
- case "GG":
285
- case "GGG":
286
- return n.era(r, {
287
- width: "abbreviated"
288
- });
289
- case "GGGGG":
290
- return n.era(r, {
291
- width: "narrow"
292
- });
293
- case "GGGG":
294
- default:
295
- return n.era(r, {
296
- width: "wide"
297
- });
298
- }
299
- },
300
- // Year
301
- y: function(t, a, n) {
302
- if (a === "yo") {
303
- var r = t.getUTCFullYear(), i = r > 0 ? r : 1 - r;
304
- return n.ordinalNumber(i, {
305
- unit: "year"
306
- });
307
- }
308
- return T.y(t, a);
309
- },
310
- // Local week-numbering year
311
- Y: function(t, a, n, r) {
312
- var i = V(t, r), s = i > 0 ? i : 1 - i;
313
- if (a === "YY") {
314
- var d = s % 100;
315
- return u(d, 2);
316
- }
317
- return a === "Yo" ? n.ordinalNumber(s, {
318
- unit: "year"
319
- }) : u(s, a.length);
320
- },
321
- // ISO week-numbering year
322
- R: function(t, a) {
323
- var n = G(t);
324
- return u(n, a.length);
325
- },
326
- // Extended year. This is a single number designating the year of this calendar system.
327
- // The main difference between `y` and `u` localizers are B.C. years:
328
- // | Year | `y` | `u` |
329
- // |------|-----|-----|
330
- // | AC 1 | 1 | 1 |
331
- // | BC 1 | 1 | 0 |
332
- // | BC 2 | 2 | -1 |
333
- // Also `yy` always returns the last two digits of a year,
334
- // while `uu` pads single digit years to 2 characters and returns other years unchanged.
335
- u: function(t, a) {
336
- var n = t.getUTCFullYear();
337
- return u(n, a.length);
338
- },
339
- // Quarter
340
- Q: function(t, a, n) {
341
- var r = Math.ceil((t.getUTCMonth() + 1) / 3);
342
- switch (a) {
343
- case "Q":
344
- return String(r);
345
- case "QQ":
346
- return u(r, 2);
347
- case "Qo":
348
- return n.ordinalNumber(r, {
349
- unit: "quarter"
350
- });
351
- case "QQQ":
352
- return n.quarter(r, {
353
- width: "abbreviated",
354
- context: "formatting"
355
- });
356
- case "QQQQQ":
357
- return n.quarter(r, {
358
- width: "narrow",
359
- context: "formatting"
360
- });
361
- case "QQQQ":
362
- default:
363
- return n.quarter(r, {
364
- width: "wide",
365
- context: "formatting"
366
- });
367
- }
368
- },
369
- // Stand-alone quarter
370
- q: function(t, a, n) {
371
- var r = Math.ceil((t.getUTCMonth() + 1) / 3);
372
- switch (a) {
373
- case "q":
374
- return String(r);
375
- case "qq":
376
- return u(r, 2);
377
- case "qo":
378
- return n.ordinalNumber(r, {
379
- unit: "quarter"
380
- });
381
- case "qqq":
382
- return n.quarter(r, {
383
- width: "abbreviated",
384
- context: "standalone"
385
- });
386
- case "qqqqq":
387
- return n.quarter(r, {
388
- width: "narrow",
389
- context: "standalone"
390
- });
391
- case "qqqq":
392
- default:
393
- return n.quarter(r, {
394
- width: "wide",
395
- context: "standalone"
396
- });
397
- }
398
- },
399
- // Month
400
- M: function(t, a, n) {
401
- var r = t.getUTCMonth();
402
- switch (a) {
403
- case "M":
404
- case "MM":
405
- return T.M(t, a);
406
- case "Mo":
407
- return n.ordinalNumber(r + 1, {
408
- unit: "month"
409
- });
410
- case "MMM":
411
- return n.month(r, {
412
- width: "abbreviated",
413
- context: "formatting"
414
- });
415
- case "MMMMM":
416
- return n.month(r, {
417
- width: "narrow",
418
- context: "formatting"
419
- });
420
- case "MMMM":
421
- default:
422
- return n.month(r, {
423
- width: "wide",
424
- context: "formatting"
425
- });
426
- }
427
- },
428
- // Stand-alone month
429
- L: function(t, a, n) {
430
- var r = t.getUTCMonth();
431
- switch (a) {
432
- case "L":
433
- return String(r + 1);
434
- case "LL":
435
- return u(r + 1, 2);
436
- case "Lo":
437
- return n.ordinalNumber(r + 1, {
438
- unit: "month"
439
- });
440
- case "LLL":
441
- return n.month(r, {
442
- width: "abbreviated",
443
- context: "standalone"
444
- });
445
- case "LLLLL":
446
- return n.month(r, {
447
- width: "narrow",
448
- context: "standalone"
449
- });
450
- case "LLLL":
451
- default:
452
- return n.month(r, {
453
- width: "wide",
454
- context: "standalone"
455
- });
456
- }
457
- },
458
- // Local week of year
459
- w: function(t, a, n, r) {
460
- var i = kt(t, r);
461
- return a === "wo" ? n.ordinalNumber(i, {
462
- unit: "week"
463
- }) : u(i, a.length);
464
- },
465
- // ISO week of year
466
- I: function(t, a, n) {
467
- var r = xt(t);
468
- return a === "Io" ? n.ordinalNumber(r, {
469
- unit: "week"
470
- }) : u(r, a.length);
471
- },
472
- // Day of the month
473
- d: function(t, a, n) {
474
- return a === "do" ? n.ordinalNumber(t.getUTCDate(), {
475
- unit: "date"
476
- }) : T.d(t, a);
477
- },
478
- // Day of year
479
- D: function(t, a, n) {
480
- var r = bt(t);
481
- return a === "Do" ? n.ordinalNumber(r, {
482
- unit: "dayOfYear"
483
- }) : u(r, a.length);
484
- },
485
- // Day of week
486
- E: function(t, a, n) {
487
- var r = t.getUTCDay();
488
- switch (a) {
489
- case "E":
490
- case "EE":
491
- case "EEE":
492
- return n.day(r, {
493
- width: "abbreviated",
494
- context: "formatting"
495
- });
496
- case "EEEEE":
497
- return n.day(r, {
498
- width: "narrow",
499
- context: "formatting"
500
- });
501
- case "EEEEEE":
502
- return n.day(r, {
503
- width: "short",
504
- context: "formatting"
505
- });
506
- case "EEEE":
507
- default:
508
- return n.day(r, {
509
- width: "wide",
510
- context: "formatting"
511
- });
512
- }
513
- },
514
- // Local day of week
515
- e: function(t, a, n, r) {
516
- var i = t.getUTCDay(), s = (i - r.weekStartsOn + 8) % 7 || 7;
517
- switch (a) {
518
- case "e":
519
- return String(s);
520
- case "ee":
521
- return u(s, 2);
522
- case "eo":
523
- return n.ordinalNumber(s, {
524
- unit: "day"
525
- });
526
- case "eee":
527
- return n.day(i, {
528
- width: "abbreviated",
529
- context: "formatting"
530
- });
531
- case "eeeee":
532
- return n.day(i, {
533
- width: "narrow",
534
- context: "formatting"
535
- });
536
- case "eeeeee":
537
- return n.day(i, {
538
- width: "short",
539
- context: "formatting"
540
- });
541
- case "eeee":
542
- default:
543
- return n.day(i, {
544
- width: "wide",
545
- context: "formatting"
546
- });
547
- }
548
- },
549
- // Stand-alone local day of week
550
- c: function(t, a, n, r) {
551
- var i = t.getUTCDay(), s = (i - r.weekStartsOn + 8) % 7 || 7;
552
- switch (a) {
553
- case "c":
554
- return String(s);
555
- case "cc":
556
- return u(s, a.length);
557
- case "co":
558
- return n.ordinalNumber(s, {
559
- unit: "day"
560
- });
561
- case "ccc":
562
- return n.day(i, {
563
- width: "abbreviated",
564
- context: "standalone"
565
- });
566
- case "ccccc":
567
- return n.day(i, {
568
- width: "narrow",
569
- context: "standalone"
570
- });
571
- case "cccccc":
572
- return n.day(i, {
573
- width: "short",
574
- context: "standalone"
575
- });
576
- case "cccc":
577
- default:
578
- return n.day(i, {
579
- width: "wide",
580
- context: "standalone"
581
- });
582
- }
583
- },
584
- // ISO day of week
585
- i: function(t, a, n) {
586
- var r = t.getUTCDay(), i = r === 0 ? 7 : r;
587
- switch (a) {
588
- case "i":
589
- return String(i);
590
- case "ii":
591
- return u(i, a.length);
592
- case "io":
593
- return n.ordinalNumber(i, {
594
- unit: "day"
595
- });
596
- case "iii":
597
- return n.day(r, {
598
- width: "abbreviated",
599
- context: "formatting"
600
- });
601
- case "iiiii":
602
- return n.day(r, {
603
- width: "narrow",
604
- context: "formatting"
605
- });
606
- case "iiiiii":
607
- return n.day(r, {
608
- width: "short",
609
- context: "formatting"
610
- });
611
- case "iiii":
612
- default:
613
- return n.day(r, {
614
- width: "wide",
615
- context: "formatting"
616
- });
617
- }
618
- },
619
- // AM or PM
620
- a: function(t, a, n) {
621
- var r = t.getUTCHours(), i = r / 12 >= 1 ? "pm" : "am";
622
- switch (a) {
623
- case "a":
624
- case "aa":
625
- return n.dayPeriod(i, {
626
- width: "abbreviated",
627
- context: "formatting"
628
- });
629
- case "aaa":
630
- return n.dayPeriod(i, {
631
- width: "abbreviated",
632
- context: "formatting"
633
- }).toLowerCase();
634
- case "aaaaa":
635
- return n.dayPeriod(i, {
636
- width: "narrow",
637
- context: "formatting"
638
- });
639
- case "aaaa":
640
- default:
641
- return n.dayPeriod(i, {
642
- width: "wide",
643
- context: "formatting"
644
- });
645
- }
646
- },
647
- // AM, PM, midnight, noon
648
- b: function(t, a, n) {
649
- var r = t.getUTCHours(), i;
650
- switch (r === 12 ? i = M.noon : r === 0 ? i = M.midnight : i = r / 12 >= 1 ? "pm" : "am", a) {
651
- case "b":
652
- case "bb":
653
- return n.dayPeriod(i, {
654
- width: "abbreviated",
655
- context: "formatting"
656
- });
657
- case "bbb":
658
- return n.dayPeriod(i, {
659
- width: "abbreviated",
660
- context: "formatting"
661
- }).toLowerCase();
662
- case "bbbbb":
663
- return n.dayPeriod(i, {
664
- width: "narrow",
665
- context: "formatting"
666
- });
667
- case "bbbb":
668
- default:
669
- return n.dayPeriod(i, {
670
- width: "wide",
671
- context: "formatting"
672
- });
673
- }
674
- },
675
- // in the morning, in the afternoon, in the evening, at night
676
- B: function(t, a, n) {
677
- var r = t.getUTCHours(), i;
678
- switch (r >= 17 ? i = M.evening : r >= 12 ? i = M.afternoon : r >= 4 ? i = M.morning : i = M.night, a) {
679
- case "B":
680
- case "BB":
681
- case "BBB":
682
- return n.dayPeriod(i, {
683
- width: "abbreviated",
684
- context: "formatting"
685
- });
686
- case "BBBBB":
687
- return n.dayPeriod(i, {
688
- width: "narrow",
689
- context: "formatting"
690
- });
691
- case "BBBB":
692
- default:
693
- return n.dayPeriod(i, {
694
- width: "wide",
695
- context: "formatting"
696
- });
697
- }
698
- },
699
- // Hour [1-12]
700
- h: function(t, a, n) {
701
- if (a === "ho") {
702
- var r = t.getUTCHours() % 12;
703
- return r === 0 && (r = 12), n.ordinalNumber(r, {
704
- unit: "hour"
705
- });
706
- }
707
- return T.h(t, a);
708
- },
709
- // Hour [0-23]
710
- H: function(t, a, n) {
711
- return a === "Ho" ? n.ordinalNumber(t.getUTCHours(), {
712
- unit: "hour"
713
- }) : T.H(t, a);
714
- },
715
- // Hour [0-11]
716
- K: function(t, a, n) {
717
- var r = t.getUTCHours() % 12;
718
- return a === "Ko" ? n.ordinalNumber(r, {
719
- unit: "hour"
720
- }) : u(r, a.length);
721
- },
722
- // Hour [1-24]
723
- k: function(t, a, n) {
724
- var r = t.getUTCHours();
725
- return r === 0 && (r = 24), a === "ko" ? n.ordinalNumber(r, {
726
- unit: "hour"
727
- }) : u(r, a.length);
728
- },
729
- // Minute
730
- m: function(t, a, n) {
731
- return a === "mo" ? n.ordinalNumber(t.getUTCMinutes(), {
732
- unit: "minute"
733
- }) : T.m(t, a);
734
- },
735
- // Second
736
- s: function(t, a, n) {
737
- return a === "so" ? n.ordinalNumber(t.getUTCSeconds(), {
738
- unit: "second"
739
- }) : T.s(t, a);
740
- },
741
- // Fraction of second
742
- S: function(t, a) {
743
- return T.S(t, a);
744
- },
745
- // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
746
- X: function(t, a, n, r) {
747
- var i = r._originalDate || t, s = i.getTimezoneOffset();
748
- if (s === 0)
749
- return "Z";
750
- switch (a) {
751
- case "X":
752
- return j(s);
753
- case "XXXX":
754
- case "XX":
755
- return S(s);
756
- case "XXXXX":
757
- case "XXX":
758
- default:
759
- return S(s, ":");
760
- }
761
- },
762
- // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
763
- x: function(t, a, n, r) {
764
- var i = r._originalDate || t, s = i.getTimezoneOffset();
765
- switch (a) {
766
- case "x":
767
- return j(s);
768
- case "xxxx":
769
- case "xx":
770
- return S(s);
771
- case "xxxxx":
772
- case "xxx":
773
- default:
774
- return S(s, ":");
775
- }
776
- },
777
- // Timezone (GMT)
778
- O: function(t, a, n, r) {
779
- var i = r._originalDate || t, s = i.getTimezoneOffset();
780
- switch (a) {
781
- case "O":
782
- case "OO":
783
- case "OOO":
784
- return "GMT" + q(s, ":");
785
- case "OOOO":
786
- default:
787
- return "GMT" + S(s, ":");
788
- }
789
- },
790
- // Timezone (specific non-location)
791
- z: function(t, a, n, r) {
792
- var i = r._originalDate || t, s = i.getTimezoneOffset();
793
- switch (a) {
794
- case "z":
795
- case "zz":
796
- case "zzz":
797
- return "GMT" + q(s, ":");
798
- case "zzzz":
799
- default:
800
- return "GMT" + S(s, ":");
801
- }
802
- },
803
- // Seconds timestamp
804
- t: function(t, a, n, r) {
805
- var i = r._originalDate || t, s = Math.floor(i.getTime() / 1e3);
806
- return u(s, a.length);
807
- },
808
- // Milliseconds timestamp
809
- T: function(t, a, n, r) {
810
- var i = r._originalDate || t, s = i.getTime();
811
- return u(s, a.length);
812
- }
813
- };
814
- function q(e, t) {
815
- var a = e > 0 ? "-" : "+", n = Math.abs(e), r = Math.floor(n / 60), i = n % 60;
816
- if (i === 0)
817
- return a + String(r);
818
- var s = t;
819
- return a + String(r) + s + u(i, 2);
820
- }
821
- function j(e, t) {
822
- if (e % 60 === 0) {
823
- var a = e > 0 ? "-" : "+";
824
- return a + u(Math.abs(e) / 60, 2);
825
- }
826
- return S(e, t);
827
- }
828
- function S(e, t) {
829
- var a = t || "", n = e > 0 ? "-" : "+", r = Math.abs(e), i = u(Math.floor(r / 60), 2), s = u(r % 60, 2);
830
- return n + i + a + s;
831
- }
832
- const Pt = Dt;
833
- var z = function(t, a) {
834
- switch (t) {
835
- case "P":
836
- return a.date({
837
- width: "short"
838
- });
839
- case "PP":
840
- return a.date({
841
- width: "medium"
842
- });
843
- case "PPP":
844
- return a.date({
845
- width: "long"
846
- });
847
- case "PPPP":
848
- default:
849
- return a.date({
850
- width: "full"
851
- });
852
- }
853
- }, J = function(t, a) {
854
- switch (t) {
855
- case "p":
856
- return a.time({
857
- width: "short"
858
- });
859
- case "pp":
860
- return a.time({
861
- width: "medium"
862
- });
863
- case "ppp":
864
- return a.time({
865
- width: "long"
866
- });
867
- case "pppp":
868
- default:
869
- return a.time({
870
- width: "full"
871
- });
872
- }
873
- }, Ot = function(t, a) {
874
- var n = t.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
875
- if (!i)
876
- return z(t, a);
877
- var s;
878
- switch (r) {
879
- case "P":
880
- s = a.dateTime({
881
- width: "short"
882
- });
883
- break;
884
- case "PP":
885
- s = a.dateTime({
886
- width: "medium"
887
- });
888
- break;
889
- case "PPP":
890
- s = a.dateTime({
891
- width: "long"
892
- });
893
- break;
894
- case "PPPP":
895
- default:
896
- s = a.dateTime({
897
- width: "full"
898
- });
899
- break;
900
- }
901
- return s.replace("{{date}}", z(r, a)).replace("{{time}}", J(i, a));
902
- }, Ut = {
903
- p: J,
904
- P: Ot
905
- };
906
- const Wt = Ut;
907
- function Ft(e) {
908
- var t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
909
- return t.setUTCFullYear(e.getFullYear()), e.getTime() - t.getTime();
910
- }
911
- var Et = ["D", "DD"], Yt = ["YY", "YYYY"];
912
- function _t(e) {
913
- return Et.indexOf(e) !== -1;
914
- }
915
- function Lt(e) {
916
- return Yt.indexOf(e) !== -1;
917
- }
918
- function A(e, t, a) {
919
- if (e === "YYYY")
920
- throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t, "`) for formatting years to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
921
- if (e === "YY")
922
- throw new RangeError("Use `yy` instead of `YY` (in `".concat(t, "`) for formatting years to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
923
- if (e === "D")
924
- throw new RangeError("Use `d` instead of `D` (in `".concat(t, "`) for formatting days of the month to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
925
- if (e === "DD")
926
- throw new RangeError("Use `dd` instead of `DD` (in `".concat(t, "`) for formatting days of the month to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
927
- }
928
- var Bt = {
929
- lessThanXSeconds: {
930
- one: "less than a second",
931
- other: "less than {{count}} seconds"
932
- },
933
- xSeconds: {
934
- one: "1 second",
935
- other: "{{count}} seconds"
936
- },
937
- halfAMinute: "half a minute",
938
- lessThanXMinutes: {
939
- one: "less than a minute",
940
- other: "less than {{count}} minutes"
941
- },
942
- xMinutes: {
943
- one: "1 minute",
944
- other: "{{count}} minutes"
945
- },
946
- aboutXHours: {
947
- one: "about 1 hour",
948
- other: "about {{count}} hours"
949
- },
950
- xHours: {
951
- one: "1 hour",
952
- other: "{{count}} hours"
953
- },
954
- xDays: {
955
- one: "1 day",
956
- other: "{{count}} days"
957
- },
958
- aboutXWeeks: {
959
- one: "about 1 week",
960
- other: "about {{count}} weeks"
961
- },
962
- xWeeks: {
963
- one: "1 week",
964
- other: "{{count}} weeks"
965
- },
966
- aboutXMonths: {
967
- one: "about 1 month",
968
- other: "about {{count}} months"
969
- },
970
- xMonths: {
971
- one: "1 month",
972
- other: "{{count}} months"
973
- },
974
- aboutXYears: {
975
- one: "about 1 year",
976
- other: "about {{count}} years"
977
- },
978
- xYears: {
979
- one: "1 year",
980
- other: "{{count}} years"
981
- },
982
- overXYears: {
983
- one: "over 1 year",
984
- other: "over {{count}} years"
985
- },
986
- almostXYears: {
987
- one: "almost 1 year",
988
- other: "almost {{count}} years"
989
- }
990
- }, $t = function(t, a, n) {
991
- var r, i = Bt[t];
992
- return typeof i == "string" ? r = i : a === 1 ? r = i.one : r = i.other.replace("{{count}}", a.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
993
- };
994
- const Nt = $t;
995
- function I(e) {
996
- return function() {
997
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = t.width ? String(t.width) : e.defaultWidth, n = e.formats[a] || e.formats[e.defaultWidth];
998
- return n;
999
- };
1000
- }
1001
- var Ht = {
1002
- full: "EEEE, MMMM do, y",
1003
- long: "MMMM do, y",
1004
- medium: "MMM d, y",
1005
- short: "MM/dd/yyyy"
1006
- }, It = {
1007
- full: "h:mm:ss a zzzz",
1008
- long: "h:mm:ss a z",
1009
- medium: "h:mm:ss a",
1010
- short: "h:mm a"
1011
- }, Rt = {
1012
- full: "{{date}} 'at' {{time}}",
1013
- long: "{{date}} 'at' {{time}}",
1014
- medium: "{{date}}, {{time}}",
1015
- short: "{{date}}, {{time}}"
1016
- }, qt = {
1017
- date: I({
1018
- formats: Ht,
1019
- defaultWidth: "full"
1020
- }),
1021
- time: I({
1022
- formats: It,
1023
- defaultWidth: "full"
1024
- }),
1025
- dateTime: I({
1026
- formats: Rt,
1027
- defaultWidth: "full"
1028
- })
1029
- };
1030
- const jt = qt;
1031
- var zt = {
1032
- lastWeek: "'last' eeee 'at' p",
1033
- yesterday: "'yesterday at' p",
1034
- today: "'today at' p",
1035
- tomorrow: "'tomorrow at' p",
1036
- nextWeek: "eeee 'at' p",
1037
- other: "P"
1038
- }, At = function(t, a, n, r) {
1039
- return zt[t];
1040
- };
1041
- const Qt = At;
1042
- function U(e) {
1043
- return function(t, a) {
1044
- var n = a != null && a.context ? String(a.context) : "standalone", r;
1045
- if (n === "formatting" && e.formattingValues) {
1046
- var i = e.defaultFormattingWidth || e.defaultWidth, s = a != null && a.width ? String(a.width) : i;
1047
- r = e.formattingValues[s] || e.formattingValues[i];
1048
- } else {
1049
- var d = e.defaultWidth, c = a != null && a.width ? String(a.width) : e.defaultWidth;
1050
- r = e.values[c] || e.values[d];
1051
- }
1052
- var h = e.argumentCallback ? e.argumentCallback(t) : t;
1053
- return r[h];
1054
- };
1055
- }
1056
- var Xt = {
1057
- narrow: ["B", "A"],
1058
- abbreviated: ["BC", "AD"],
1059
- wide: ["Before Christ", "Anno Domini"]
1060
- }, Gt = {
1061
- narrow: ["1", "2", "3", "4"],
1062
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
1063
- wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
1064
- }, Vt = {
1065
- narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
1066
- abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
1067
- wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
1068
- }, Jt = {
1069
- narrow: ["S", "M", "T", "W", "T", "F", "S"],
1070
- short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
1071
- abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
1072
- wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
1073
- }, Kt = {
1074
- narrow: {
1075
- am: "a",
1076
- pm: "p",
1077
- midnight: "mi",
1078
- noon: "n",
1079
- morning: "morning",
1080
- afternoon: "afternoon",
1081
- evening: "evening",
1082
- night: "night"
1083
- },
1084
- abbreviated: {
1085
- am: "AM",
1086
- pm: "PM",
1087
- midnight: "midnight",
1088
- noon: "noon",
1089
- morning: "morning",
1090
- afternoon: "afternoon",
1091
- evening: "evening",
1092
- night: "night"
1093
- },
1094
- wide: {
1095
- am: "a.m.",
1096
- pm: "p.m.",
1097
- midnight: "midnight",
1098
- noon: "noon",
1099
- morning: "morning",
1100
- afternoon: "afternoon",
1101
- evening: "evening",
1102
- night: "night"
1103
- }
1104
- }, Zt = {
1105
- narrow: {
1106
- am: "a",
1107
- pm: "p",
1108
- midnight: "mi",
1109
- noon: "n",
1110
- morning: "in the morning",
1111
- afternoon: "in the afternoon",
1112
- evening: "in the evening",
1113
- night: "at night"
1114
- },
1115
- abbreviated: {
1116
- am: "AM",
1117
- pm: "PM",
1118
- midnight: "midnight",
1119
- noon: "noon",
1120
- morning: "in the morning",
1121
- afternoon: "in the afternoon",
1122
- evening: "in the evening",
1123
- night: "at night"
1124
- },
1125
- wide: {
1126
- am: "a.m.",
1127
- pm: "p.m.",
1128
- midnight: "midnight",
1129
- noon: "noon",
1130
- morning: "in the morning",
1131
- afternoon: "in the afternoon",
1132
- evening: "in the evening",
1133
- night: "at night"
1134
- }
1135
- }, te = function(t, a) {
1136
- var n = Number(t), r = n % 100;
1137
- if (r > 20 || r < 10)
1138
- switch (r % 10) {
1139
- case 1:
1140
- return n + "st";
1141
- case 2:
1142
- return n + "nd";
1143
- case 3:
1144
- return n + "rd";
1145
- }
1146
- return n + "th";
1147
- }, ee = {
1148
- ordinalNumber: te,
1149
- era: U({
1150
- values: Xt,
1151
- defaultWidth: "wide"
1152
- }),
1153
- quarter: U({
1154
- values: Gt,
1155
- defaultWidth: "wide",
1156
- argumentCallback: function(t) {
1157
- return t - 1;
1158
- }
1159
- }),
1160
- month: U({
1161
- values: Vt,
1162
- defaultWidth: "wide"
1163
- }),
1164
- day: U({
1165
- values: Jt,
1166
- defaultWidth: "wide"
1167
- }),
1168
- dayPeriod: U({
1169
- values: Kt,
1170
- defaultWidth: "wide",
1171
- formattingValues: Zt,
1172
- defaultFormattingWidth: "wide"
1173
- })
1174
- };
1175
- const ae = ee;
1176
- function W(e) {
1177
- return function(t) {
1178
- var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = a.width, r = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], i = t.match(r);
1179
- if (!i)
1180
- return null;
1181
- var s = i[0], d = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(d) ? re(d, function(f) {
1182
- return f.test(s);
1183
- }) : ne(d, function(f) {
1184
- return f.test(s);
1185
- }), h;
1186
- h = e.valueCallback ? e.valueCallback(c) : c, h = a.valueCallback ? a.valueCallback(h) : h;
1187
- var m = t.slice(s.length);
1188
- return {
1189
- value: h,
1190
- rest: m
1191
- };
1192
- };
1193
- }
1194
- function ne(e, t) {
1195
- for (var a in e)
1196
- if (e.hasOwnProperty(a) && t(e[a]))
1197
- return a;
1198
- }
1199
- function re(e, t) {
1200
- for (var a = 0; a < e.length; a++)
1201
- if (t(e[a]))
1202
- return a;
1203
- }
1204
- function ie(e) {
1205
- return function(t) {
1206
- var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.match(e.matchPattern);
1207
- if (!n)
1208
- return null;
1209
- var r = n[0], i = t.match(e.parsePattern);
1210
- if (!i)
1211
- return null;
1212
- var s = e.valueCallback ? e.valueCallback(i[0]) : i[0];
1213
- s = a.valueCallback ? a.valueCallback(s) : s;
1214
- var d = t.slice(r.length);
1215
- return {
1216
- value: s,
1217
- rest: d
1218
- };
1219
- };
1220
- }
1221
- var oe = /^(\d+)(th|st|nd|rd)?/i, se = /\d+/i, le = {
1222
- narrow: /^(b|a)/i,
1223
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1224
- wide: /^(before christ|before common era|anno domini|common era)/i
1225
- }, ue = {
1226
- any: [/^b/i, /^(a|c)/i]
1227
- }, de = {
1228
- narrow: /^[1234]/i,
1229
- abbreviated: /^q[1234]/i,
1230
- wide: /^[1234](th|st|nd|rd)? quarter/i
1231
- }, ce = {
1232
- any: [/1/i, /2/i, /3/i, /4/i]
1233
- }, he = {
1234
- narrow: /^[jfmasond]/i,
1235
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1236
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1237
- }, fe = {
1238
- narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
1239
- any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
1240
- }, me = {
1241
- narrow: /^[smtwf]/i,
1242
- short: /^(su|mo|tu|we|th|fr|sa)/i,
1243
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1244
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1245
- }, ge = {
1246
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1247
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1248
- }, ve = {
1249
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1250
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1251
- }, pe = {
1252
- any: {
1253
- am: /^a/i,
1254
- pm: /^p/i,
1255
- midnight: /^mi/i,
1256
- noon: /^no/i,
1257
- morning: /morning/i,
1258
- afternoon: /afternoon/i,
1259
- evening: /evening/i,
1260
- night: /night/i
1261
- }
1262
- }, be = {
1263
- ordinalNumber: ie({
1264
- matchPattern: oe,
1265
- parsePattern: se,
1266
- valueCallback: function(t) {
1267
- return parseInt(t, 10);
1268
- }
1269
- }),
1270
- era: W({
1271
- matchPatterns: le,
1272
- defaultMatchWidth: "wide",
1273
- parsePatterns: ue,
1274
- defaultParseWidth: "any"
1275
- }),
1276
- quarter: W({
1277
- matchPatterns: de,
1278
- defaultMatchWidth: "wide",
1279
- parsePatterns: ce,
1280
- defaultParseWidth: "any",
1281
- valueCallback: function(t) {
1282
- return t + 1;
1283
- }
1284
- }),
1285
- month: W({
1286
- matchPatterns: he,
1287
- defaultMatchWidth: "wide",
1288
- parsePatterns: fe,
1289
- defaultParseWidth: "any"
1290
- }),
1291
- day: W({
1292
- matchPatterns: me,
1293
- defaultMatchWidth: "wide",
1294
- parsePatterns: ge,
1295
- defaultParseWidth: "any"
1296
- }),
1297
- dayPeriod: W({
1298
- matchPatterns: ve,
1299
- defaultMatchWidth: "any",
1300
- parsePatterns: pe,
1301
- defaultParseWidth: "any"
1302
- })
1303
- };
1304
- const we = be;
1305
- var ye = {
1306
- code: "en-US",
1307
- formatDistance: Nt,
1308
- formatLong: jt,
1309
- formatRelative: Qt,
1310
- localize: ae,
1311
- match: we,
1312
- options: {
1313
- weekStartsOn: 0,
1314
- firstWeekContainsDate: 1
1315
- }
1316
- };
1317
- const xe = ye;
1318
- var Te = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ce = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Se = /^'([^]*?)'?$/, ke = /''/g, Me = /[a-zA-Z]/;
1319
- function De(e, t, a) {
1320
- var n, r, i, s, d, c, h, m, f, p, g, w, D, C;
1321
- v(2, arguments);
1322
- var $ = String(t), P = B(), O = (n = (r = void 0) !== null && r !== void 0 ? r : P.locale) !== null && n !== void 0 ? n : xe, N = k((i = (s = (d = (c = void 0) !== null && c !== void 0 ? c : void 0) !== null && d !== void 0 ? d : P.firstWeekContainsDate) !== null && s !== void 0 ? s : (h = P.locale) === null || h === void 0 || (m = h.options) === null || m === void 0 ? void 0 : m.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
1323
- if (!(N >= 1 && N <= 7))
1324
- throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1325
- var H = k((f = (p = (g = (w = void 0) !== null && w !== void 0 ? w : void 0) !== null && g !== void 0 ? g : P.weekStartsOn) !== null && p !== void 0 ? p : (D = P.locale) === null || D === void 0 || (C = D.options) === null || C === void 0 ? void 0 : C.weekStartsOn) !== null && f !== void 0 ? f : 0);
1326
- if (!(H >= 0 && H <= 6))
1327
- throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1328
- if (!O.localize)
1329
- throw new RangeError("locale must contain localize property");
1330
- if (!O.formatLong)
1331
- throw new RangeError("locale must contain formatLong property");
1332
- var F = y(e);
1333
- if (!mt(F))
1334
- throw new RangeError("Invalid time value");
1335
- var tt = Ft(F), et = vt(F, tt), at = {
1336
- firstWeekContainsDate: N,
1337
- weekStartsOn: H,
1338
- locale: O,
1339
- _originalDate: F
1340
- }, nt = $.match(Ce).map(function(b) {
1341
- var x = b[0];
1342
- if (x === "p" || x === "P") {
1343
- var E = Wt[x];
1344
- return E(b, O.formatLong);
1345
- }
1346
- return b;
1347
- }).join("").match(Te).map(function(b) {
1348
- if (b === "''")
1349
- return "'";
1350
- var x = b[0];
1351
- if (x === "'")
1352
- return Pe(b);
1353
- var E = Pt[x];
1354
- if (E)
1355
- return Lt(b) && A(b, t, String(e)), _t(b) && A(b, t, String(e)), E(et, b, O.localize, at);
1356
- if (x.match(Me))
1357
- throw new RangeError("Format string contains an unescaped latin alphabet character `" + x + "`");
1358
- return b;
1359
- }).join("");
1360
- return nt;
1361
- }
1362
- function Pe(e) {
1363
- var t = e.match(Se);
1364
- return t ? t[1].replace(ke, "'") : e;
1365
- }
1366
- class K {
1367
- constructor() {
1368
- }
1369
- static dateToFormatedString(t, a) {
1370
- const n = a ? De(t, a) : t.toLocaleDateString("en-gb"), r = t.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: !1 });
1371
- return `${n}, ${r}`;
1372
- }
1373
- }
1374
- class Z {
1375
- constructor() {
1376
- }
1377
- static format(t, a) {
1378
- let n = `${a} ${t}`;
1379
- try {
1380
- n = new Intl.NumberFormat("en-US", {
1381
- style: "currency",
1382
- currency: t
1383
- }).format(a);
1384
- } catch {
1385
- }
1386
- return n;
1387
- }
1388
- }
1389
- const Oe = (e) => o(
1390
- "div",
1391
- { class: "data-transaction" },
1392
- o("p", null, e.productType),
1393
- o(
1394
- "p",
1395
- { class: "text-style text-style-status" },
1396
- o("span", { class: e.status.toLowerCase() }, e.status)
1397
- ),
1398
- o(
1399
- "p",
1400
- { class: "date" },
1401
- e.transId,
1402
- " | ",
1403
- K.dateToFormatedString(new Date(e.created), e.dateformat)
1404
- ),
1405
- o(
1406
- "p",
1407
- { class: "text-style" },
1408
- Z.format(e.currency, e.realAmount),
1409
- " "
1410
- )
1411
- ), Ue = (e) => o(
1412
- "div",
1413
- { class: "page-size" },
1414
- o("span", null, l.translate("show", e.language)),
1415
- e.pageSizes.map((t) => o("button", { class: e.currentPageSize === t ? "active" : "", onClick: () => e.changePageSize(t) }, t))
1416
- ), We = ({ from: e, to: t, applyFilters: a, language: n }) => {
1417
- let r, i;
1418
- const s = () => {
1419
- e = r.value;
1420
- }, d = () => {
1421
- t = i.value;
1422
- };
1423
- return o(
1424
- "div",
1425
- { class: "period" },
1426
- o(
1427
- "div",
1428
- { class: "period-content" },
1429
- o(
1430
- "div",
1431
- { class: "date-input" },
1432
- o("vaadin-date-picker", { value: e, ref: (c) => r = c, label: l.translate("from", n), onChange: s })
1433
- ),
1434
- o(
1435
- "span",
1436
- null,
1437
- o(
1438
- "svg",
1439
- { width: "24px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
1440
- o("path", { d: "m21 11.75c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z", "fill-rule": "nonzero", fill: "#5d687b" })
1441
- )
1442
- ),
1443
- o(
1444
- "div",
1445
- { class: "date-input" },
1446
- o("vaadin-date-picker", { value: t, ref: (c) => i = c, label: l.translate("to", n), onChange: d })
1447
- ),
1448
- o("button", { class: "filter-btn", onClick: () => a(e, t) }, l.translate("filter", n))
1449
- )
1450
- );
1451
- }, Fe = ({ source: e, language: t, dateformat: a }) => {
1452
- const n = [
1453
- { name: l.translate("transactionId", t) },
1454
- {
1455
- name: l.translate("date", t)
1456
- },
1457
- {
1458
- name: l.translate("amount", t)
1459
- },
1460
- { name: l.translate("productType", t) },
1461
- {
1462
- name: l.translate("status", t)
1463
- }
1464
- ];
1465
- return o(
1466
- "table",
1467
- null,
1468
- o(
1469
- "thead",
1470
- null,
1471
- o("tr", null, n.map((r) => o("th", null, r.name)))
1472
- ),
1473
- o("tbody", null, e.map((r) => o(
1474
- "tr",
1475
- null,
1476
- o("td", null, r.transId),
1477
- o("td", null, K.dateToFormatedString(new Date(r.created), a)),
1478
- o(
1479
- "td",
1480
- null,
1481
- Z.format(r.currency, r.realAmount),
1482
- " "
1483
- ),
1484
- o("td", null, r.productType),
1485
- o(
1486
- "td",
1487
- null,
1488
- o("span", { class: r.status.toLowerCase() }, r.status)
1489
- )
1490
- )))
1491
- );
1492
- };
1493
- function Q(e, t) {
1494
- if (e) {
1495
- const a = document.createElement("style");
1496
- a.innerHTML = t, e.appendChild(a);
1497
- }
1498
- }
1499
- function X(e, t) {
1500
- const a = new URL(t);
1501
- fetch(a.href).then((n) => n.text()).then((n) => {
1502
- const r = document.createElement("style");
1503
- r.innerHTML = n, e && e.appendChild(r);
1504
- }).catch((n) => {
1505
- console.error("There was an error while trying to load client styling from URL", n);
1506
- });
1507
- }
1508
- function Ee(e, t, a) {
1509
- if (window.emMessageBus) {
1510
- const n = document.createElement("style");
1511
- window.emMessageBus.subscribe(t, (r) => {
1512
- n.innerHTML = r, e && e.appendChild(n);
1513
- });
1514
- }
1515
- }
1516
- const Ye = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}.MenuReturnButton{font:inherit;color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MenuReturnButton h2.TransactionTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}', _e = Ye, Le = class {
1517
- constructor(e) {
1518
- ot(this, e), this.pageSizes = [10, 25, 50], this.pagination = null, this.toggleScreen = () => {
1519
- window.postMessage({ type: "PlayerAccountMenuActive", isMobile: this.mobile }, window.location.href);
1520
- }, this.endpoint = void 0, this.session = void 0, this.language = l.defaultLanguage, this.userId = void 0, this.translationUrl = void 0, this.mobile = !1, this.clientStyling = null, this.clientStylingUrl = null, this.mbSource = void 0, this.dateFormat = "", this.page = 0, this.pageSize = this.pageSizes[0], this.showMobileFilter = !1, this.to = void 0, this.from = void 0, this.type = "0", this.transactions = void 0, this.showLoader = !0;
1521
- }
1522
- watchMultiple() {
1523
- this.loadTransactions();
1524
- }
1525
- handleClientStylingChange(e, t) {
1526
- e != t && Q(this.stylingContainer, this.clientStyling);
1527
- }
1528
- handleClientStylingUrlChange(e, t) {
1529
- e != t && this.clientStylingUrl && X(this.stylingContainer, this.clientStylingUrl);
1530
- }
1531
- async componentWillLoad() {
1532
- this.translationUrl && await l.loadCustomTranslations(this.translationUrl), this.loadTransactions();
1533
- }
1534
- componentDidLoad() {
1535
- this.stylingContainer && (window.emMessageBus != null ? Ee(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && Q(this.stylingContainer, this.clientStyling), this.clientStylingUrl && X(this.stylingContainer, this.clientStylingUrl)));
1536
- }
1537
- componentDidRender() {
1538
- this.getComponentHeight();
1539
- }
1540
- getComponentHeight() {
1541
- var e;
1542
- if (this.mobile) {
1543
- let t = this.el.getBoundingClientRect().height - ((e = this.el.shadowRoot.querySelector(".table")) === null || e === void 0 ? void 0 : e.getBoundingClientRect().y);
1544
- this.el.style.setProperty("--heightScrollableContainer", t + "px");
1545
- }
1546
- }
1547
- setHeightTableProperty() {
1548
- let e = this.getComponentHeight();
1549
- this.el.style.setProperty("--heightScrollableContainer", e + "px");
1550
- }
1551
- changeTransactionsType(e) {
1552
- this.type = e;
1553
- }
1554
- changePageSize(e) {
1555
- this.pageSize = e;
1556
- }
1557
- prev() {
1558
- var e;
1559
- !((e = this.pagination) === null || e === void 0) && e.previous && this.page--;
1560
- }
1561
- next() {
1562
- var e;
1563
- !((e = this.pagination) === null || e === void 0) && e.next && this.page++;
1564
- }
1565
- applyFilters(e, t) {
1566
- this.from = e ? new Date(e).toISOString() : null, this.to = t ? new Date(t).toISOString() : null, this.loadTransactions();
1567
- }
1568
- showFilter() {
1569
- this.showMobileFilter = !this.showMobileFilter;
1570
- }
1571
- disconnectedCallback() {
1572
- this.stylingSubscription && this.stylingSubscription.unsubscribe();
1573
- }
1574
- render() {
1575
- var e;
1576
- const t = R("../assets/filter.svg"), a = R("../assets/warning.svg");
1577
- return o(st, { key: "2c1d74e9d321eb73796caa26b58faa1b130d1da1" }, this.showLoader ? o(ht, null) : "", o("div", { key: "a33973c114c4baa184a3699d46e8eb970f3b9dcc", class: "wrapper", ref: (n) => this.stylingContainer = n }, this.mobile ? o("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, o("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, o("defs", null), o("g", { transform: "translate(-20 -158)" }, o("g", { transform: "translate(20 158)" }, o("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), o("h2", { class: "TransactionTitleMobile" }, l.translate("transactionTitle", this.language))) : o("h2", { class: "TransactionTitle" }, l.translate("transactionTitle", this.language)), o("div", { key: "2609cf88acf3364e4b40510d451ed49eface97e6", class: { "types types-mobile": this.mobile, "types types-desktop": !this.mobile } }, o("button", { key: "7efdac157edfb5dc08f4219b91cf784ac6961d0c", class: "transaction-type " + (this.type === "0" ? "clicked" : ""), onClick: () => this.changeTransactionsType("0") }, l.translate("deposit", this.language)), o("button", { key: "eaf33173f0e6d6271724816400f63f571874906a", class: "transaction-type " + (this.type === "1" ? "clicked" : ""), onClick: () => this.changeTransactionsType("1") }, l.translate("withdrawals", this.language))), this.mobile ? "" : o(Ue, { language: this.language, pageSizes: this.pageSizes, currentPageSize: this.pageSize, changePageSize: (n) => this.changePageSize(n) }), this.mobile ? o("button", { class: "mobile-filter-button", onClick: () => this.showFilter() }, o("img", { src: t, alt: "Filter" }), l.translate("filter", this.language)) : "", !this.mobile || this.showMobileFilter && this.mobile ? o(We, { language: this.language, applyFilters: (n, r) => this.applyFilters(n, r) }) : "", ((e = this.transactions) === null || e === void 0 ? void 0 : e.length) > 0 ? o("div", { class: "table" }, this.mobile ? o("div", { class: "mobile-table" }, this.transactions.map((n) => o(Oe, Object.assign({}, n, { dateformat: this.dateFormat })))) : o(Fe, { source: this.transactions, language: this.language, dateformat: this.dateFormat })) : o("div", { class: "noData" }, o("img", { src: a, alt: "Warning" }), o("span", null, l.translate("noData", this.language))), o("div", { key: "c8b5f7a1cac64df3fb7879ad020379b81672b8ae", class: "pagination" }, o("button", { key: "ac06e5c8c62367626b2c72c8d5ee552cefafd3fa", onClick: () => this.prev() }, "<"), o("button", { key: "bff70f58f1815d8da93fa8e5b2b541893a4f475c", onClick: () => this.next() }, ">"))));
1578
- }
1579
- async loadTransactions() {
1580
- this.showLoader = !0;
1581
- try {
1582
- const e = `${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`, t = await fetch(e, {
1583
- headers: {
1584
- "X-Sessionid": this.session,
1585
- "Content-Type": "application/json"
1586
- }
1587
- });
1588
- if (!t.ok) {
1589
- const n = await t.text();
1590
- throw new Error(n);
1591
- }
1592
- const a = await t.json();
1593
- this.pagination = a.pagination, this.transactions = a.transactions;
1594
- } catch (e) {
1595
- console.error(e);
1596
- } finally {
1597
- this.showLoader = !1;
1598
- }
1599
- }
1600
- getParams() {
1601
- var e, t;
1602
- const a = /* @__PURE__ */ new Date(), n = (this.page * this.pageSize).toString(), r = (e = this.from) !== null && e !== void 0 ? e : new Date(a.getFullYear(), a.getMonth(), 1).toISOString(), i = (t = this.to) !== null && t !== void 0 ? t : new Date(a.getFullYear(), a.getMonth() + 1, 0).toISOString();
1603
- return `offset=${n}&endDate=${i}&startDate=${r}&type=${this.type}&limit=${this.pageSize}`;
1604
- }
1605
- static get assetsDirs() {
1606
- return ["../assets"];
1607
- }
1608
- get el() {
1609
- return lt(this);
1610
- }
1611
- static get watchers() {
1612
- return {
1613
- page: ["watchMultiple"],
1614
- type: ["watchMultiple"],
1615
- session: ["watchMultiple"],
1616
- userId: ["watchMultiple"],
1617
- pageSize: ["watchMultiple"],
1618
- clientStyling: ["handleClientStylingChange"],
1619
- clientStylingUrl: ["handleClientStylingUrlChange"],
1620
- showMobileFilter: ["getComponentHeight"]
1621
- };
1622
- }
1623
- };
1624
- Le.style = _e;
1625
- export {
1626
- Le as user_transaction_history
1627
- };