@everymatrix/player-account-controller 1.65.2 → 1.65.3
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/components/{GeneralLogout-CgxHUYZx.js → GeneralLogout-BvHI6IRl.js} +1439 -1474
- package/components/{GeneralLogout-CYE3twI-.js → GeneralLogout-DC1eQria.js} +1458 -1493
- package/components/GeneralLogout-DweBl3EQ.cjs +21 -0
- package/components/{PlayerAccountBettingHistory-BXBMy618.js → PlayerAccountBettingHistory-BTEzWQvN.js} +27 -27
- package/components/{PlayerAccountBettingHistory-B0IsJ01N.js → PlayerAccountBettingHistory-Bo3-gODs.js} +27 -27
- package/components/{PlayerAccountBettingHistory-BtDZukYI.cjs → PlayerAccountBettingHistory-DgHU9Jz9.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-DrmVF6dX.js → PlayerAccountBiometrics-DRMe1Ngk.js} +22 -22
- package/components/{PlayerAccountBiometrics-CEEVheLt.cjs → PlayerAccountBiometrics-DXk7ouzk.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-CCk_4MyI.js → PlayerAccountBiometrics-eJ0NsGhR.js} +22 -22
- package/components/{PlayerAccountClosure-B_xwOPds.js → PlayerAccountClosure-CenyN-4X.js} +17 -17
- package/components/{PlayerAccountClosure-UwL_V2IO.js → PlayerAccountClosure-D4FSDBR-.js} +17 -17
- package/components/{PlayerAccountClosure-DoZ91aH2.cjs → PlayerAccountClosure-DMF66IyF.cjs} +1 -1
- package/components/{PlayerAccountController-Dy_EYTXi.js → PlayerAccountController-CE3DCARp.js} +138 -138
- package/components/{PlayerAccountController-N9ebI09s.cjs → PlayerAccountController-CJqLJFq9.cjs} +1 -1
- package/components/{PlayerAccountController-Du23H-Ha.js → PlayerAccountController-_H7Suh7X.js} +140 -140
- package/components/{PlayerAccountGamingLimits-DZBzKFyv.cjs → PlayerAccountGamingLimits-C5-wP3x8.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-BF1Dd_Yw.js → PlayerAccountGamingLimits-bgH5yldD.js} +19 -19
- package/components/{PlayerAccountGamingLimits-BKHRQo_P.js → PlayerAccountGamingLimits-qvefhQXf.js} +19 -19
- package/components/{PlayerAccountGamingLimitsConfirmationModal-57Q5qtf8.js → PlayerAccountGamingLimitsConfirmationModal-B-Zcfwzu.js} +53 -53
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CztJ5DKd.js → PlayerAccountGamingLimitsConfirmationModal-BSuURD9X.js} +53 -53
- package/components/PlayerAccountGamingLimitsConfirmationModal-DzBevsyQ.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-B7O4IGQB.js → PlayerAccountGamingLimitsGroupEdit-CgtvM5l0.js} +415 -413
- package/components/{PlayerAccountGamingLimitsGroupEdit-DlaRG8Hg.js → PlayerAccountGamingLimitsGroupEdit-DflmfEfo.js} +415 -413
- package/components/PlayerAccountGamingLimitsGroupEdit-JOrwbKuQ.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsHistory2-BLK-Rk6N.js → PlayerAccountGamingLimitsHistory2-B0Hm0NN-.js} +48 -48
- package/components/{PlayerAccountGamingLimitsHistory2-CreFMkf_.cjs → PlayerAccountGamingLimitsHistory2-C0g0UlRl.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-Br4h7_eS.js → PlayerAccountGamingLimitsHistory2-CkXX1K7L.js} +46 -46
- package/components/{PlayerAccountGamingLimitsInfoCard-BlMfsPqJ.js → PlayerAccountGamingLimitsInfoCard-ByqimrlU.js} +80 -80
- package/components/{PlayerAccountGamingLimitsInfoCard-BqsEfU1b.js → PlayerAccountGamingLimitsInfoCard-D2xDA5AE.js} +80 -80
- package/components/{PlayerAccountGamingLimitsInfoCard-DWbZBNtU.cjs → PlayerAccountGamingLimitsInfoCard-DxIPZWF4.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-C4Cf53bH.js → PlayerAccountGamingLimitsPage2Gm16-6oqp3QDs.js} +101 -101
- package/components/{PlayerAccountGamingLimitsPage2Gm16-D0UaSH_1.js → PlayerAccountGamingLimitsPage2Gm16-B7VpqKm8.js} +118 -118
- package/components/{PlayerAccountGamingLimitsPage2Gm16-isbaVllo.cjs → PlayerAccountGamingLimitsPage2Gm16-BeMRmv-L.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsPopup-DTb6cpuT.js → PlayerAccountGamingLimitsPopup-Bhe4pnzt.js} +28 -28
- package/components/{PlayerAccountGamingLimitsPopup-CmNqLNxB.cjs → PlayerAccountGamingLimitsPopup-DkQcpWO7.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-Dz9ROowj.js → PlayerAccountGamingLimitsPopup-LjmHojBJ.js} +28 -28
- package/components/{PlayerAccountGamingLimitsWrapper2-BxbHvpZn.js → PlayerAccountGamingLimitsWrapper2-BnAOuyMV.js} +36 -36
- package/components/{PlayerAccountGamingLimitsWrapper2-B1gV6va3.js → PlayerAccountGamingLimitsWrapper2-BnahUpgU.js} +36 -36
- package/components/{PlayerAccountGamingLimitsWrapper2-BNIPTcA9.cjs → PlayerAccountGamingLimitsWrapper2-DNBhGOWx.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-DQ7Oklqf.js → PlayerAccountGeneralConfirmationModal-BXvbser8.js} +95 -95
- package/components/{PlayerAccountGeneralConfirmationModal-lHX_vmhB.js → PlayerAccountGeneralConfirmationModal-Ct4ffM2k.js} +95 -95
- package/components/PlayerAccountGeneralConfirmationModal-dy9TCHFm.cjs +1 -0
- package/components/{PlayerAccountMenu-BZnkRiU-.cjs → PlayerAccountMenu-BZSV920e.cjs} +1 -1
- package/components/{PlayerAccountMenu-D4d9TQsD.js → PlayerAccountMenu-COhw6RUO.js} +29 -29
- package/components/{PlayerAccountMenu-j3TA2Osb.js → PlayerAccountMenu-CXkbGum8.js} +29 -29
- package/components/{PlayerAccountModal-Cbpkb5P6.js → PlayerAccountModal-BlJKMVDD.js} +44 -44
- package/components/{PlayerAccountModal-Co5a_OZZ.js → PlayerAccountModal-C2BAyjz8.js} +44 -44
- package/components/{PlayerAccountModal-SsGlrcmj.cjs → PlayerAccountModal-lwDOdDa4.cjs} +1 -1
- package/components/{PlayerAccountNotifications-CkbUxjuk.js → PlayerAccountNotifications-Br27rQuw.js} +35 -35
- package/components/{PlayerAccountNotifications-ejASOsrU.cjs → PlayerAccountNotifications-CzMMRPni.cjs} +1 -1
- package/components/{PlayerAccountNotifications-f0A-2obd.js → PlayerAccountNotifications-YIzJUJtW.js} +120 -120
- package/components/{PlayerAccountSelfExclusion-tbEoY1fJ.cjs → PlayerAccountSelfExclusion-DOBXVbGp.cjs} +155 -155
- package/components/{PlayerAccountSelfExclusion-eVbVBZeH.js → PlayerAccountSelfExclusion-DcjyVbyI.js} +1305 -1303
- package/components/{PlayerAccountSelfExclusion-Dkhb_rb2.js → PlayerAccountSelfExclusion-r_y8NKk9.js} +1042 -1040
- package/components/{PlayerAccountTimeout-B7te1qrD.cjs → PlayerAccountTimeout-BTWCScSA.cjs} +1 -1
- package/components/{PlayerAccountTimeout-BF6i8Aq1.js → PlayerAccountTimeout-Bj1lGwNr.js} +150 -150
- package/components/{PlayerAccountTimeout-CgPnhFC2.js → PlayerAccountTimeout-D2BFCkW4.js} +150 -150
- package/components/{PlayerAccountTransactionsHistory-DtHWhYf2.js → PlayerAccountTransactionsHistory-BTZrAMpd.js} +1533 -1515
- package/components/{PlayerAccountTransactionsHistory-_Sm0nfWr.cjs → PlayerAccountTransactionsHistory-CLtNxF1E.cjs} +253 -253
- package/components/{PlayerAccountTransactionsHistory-sQOFDhsn.js → PlayerAccountTransactionsHistory-DamCdY8r.js} +1922 -1944
- package/components/{PlayerActiveBonuses-CVhSMdRf.cjs → PlayerActiveBonuses-C7G2b4x9.cjs} +1 -1
- package/components/{PlayerActiveBonuses-Cakyx19i.js → PlayerActiveBonuses-TAb_daVK.js} +54 -54
- package/components/{PlayerActiveBonuses-uCEkihFw.js → PlayerActiveBonuses-f9Tnt64h.js} +52 -52
- package/components/{PlayerBonusCard-6xOKi384.js → PlayerBonusCard-CBO8neP8.js} +54 -54
- package/components/{PlayerBonusCard-BNNcjGWn.cjs → PlayerBonusCard-nwlvuWsq.cjs} +1 -1
- package/components/{PlayerBonusCard-CXbETnCF.js → PlayerBonusCard-uudC6LGS.js} +54 -54
- package/components/{PlayerBonusHistory-B7mav-9J.js → PlayerBonusHistory-BhFNlaSf.js} +30 -30
- package/components/{PlayerBonusHistory-ClKYGr0v.js → PlayerBonusHistory-DqURmCme.js} +30 -30
- package/components/{PlayerBonusHistory-CIDfTu9W.cjs → PlayerBonusHistory-DvfiMpJt.cjs} +1 -1
- package/components/{PlayerChangePassword-ChwKfBC6.js → PlayerChangePassword-BUbXMFnB.js} +66 -66
- package/components/{PlayerChangePassword-LgjKzYU1.cjs → PlayerChangePassword-D0aYOkoZ.cjs} +1 -1
- package/components/{PlayerChangePassword-C2ZoKuCq.js → PlayerChangePassword-D4DzBZed.js} +66 -66
- package/components/{PlayerDeposit-VLcz0tQH.js → PlayerDeposit-BB64hmyO.js} +29 -29
- package/components/{PlayerDeposit-Dzg8Ltb1.cjs → PlayerDeposit-DAFmH9HW.cjs} +1 -1
- package/components/{PlayerDeposit-BPZ5wCAZ.js → PlayerDeposit-lfkc7jOj.js} +29 -29
- package/components/{PlayerGamingHistory-Cqze0dx8.cjs → PlayerGamingHistory-CsAD_iks.cjs} +1 -1
- package/components/{PlayerGamingHistory-CWN1CL1Y.js → PlayerGamingHistory-DxVgYcre.js} +63 -63
- package/components/{PlayerGamingHistory-C00k3Mj3.js → PlayerGamingHistory-e4Kr6TRi.js} +63 -63
- package/components/{PlayerPendingWithdrawals-DeNKdUgJ.js → PlayerPendingWithdrawals-B6qiUkpB.js} +26 -26
- package/components/{PlayerPendingWithdrawals-BMwtFNQT.cjs → PlayerPendingWithdrawals-DbuXpIXl.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-go7okUzL.js → PlayerPendingWithdrawals-QAaJbf_-.js} +26 -26
- package/components/PlayerProfileInfo-B-Cly6nt.js +2463 -0
- package/components/PlayerProfileInfo-DFtxyN-C.cjs +4 -0
- package/components/PlayerProfileInfo-DsBGGdCC.js +2426 -0
- package/components/{PlayerRealityCheck-BrVF76qp.cjs → PlayerRealityCheck-CFJVJn17.cjs} +1 -1
- package/components/{PlayerRealityCheck-DMNAglZN.js → PlayerRealityCheck-CyxiiYoi.js} +44 -44
- package/components/{PlayerRealityCheck-C2TUMl9-.js → PlayerRealityCheck-DQ-_y3IT.js} +45 -45
- package/components/{PlayerTransactionHistory-A-aVfyoc.js → PlayerTransactionHistory-6G6ws2ky.js} +19 -19
- package/components/{PlayerTransactionHistory-4VtQqLAc.cjs → PlayerTransactionHistory-BOtRm_b6.cjs} +1 -1
- package/components/{PlayerTransactionHistory-BFV_XJw9.js → PlayerTransactionHistory-BjRhtwD4.js} +19 -19
- package/components/{PlayerWithdrawal-B_wQZI_t.js → PlayerWithdrawal-BIBZrL0i.js} +19 -19
- package/components/{PlayerWithdrawal-CTttZqLr.js → PlayerWithdrawal-CuR6Pb4o.js} +19 -19
- package/components/{PlayerWithdrawal-BMLgaRLc.cjs → PlayerWithdrawal-OBRjEIH9.cjs} +1 -1
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{checkbox-group-input_9-CNtARK8C.js → checkbox-group-input_9-BwrWZeLB.js} +92 -90
- package/stencil/checkbox-group-input_9-CImFZbCv.cjs +2 -0
- package/stencil/{checkbox-group-input_9-BBp8uUcZ.js → checkbox-group-input_9-DdpCHvWb.js} +92 -90
- package/stencil/{general-input-Bv0i36QX.js → general-input-BDPI_fW2.js} +1590 -1592
- package/stencil/{general-input-wub-4Sk2.js → general-input-DpokfhP6.js} +1592 -1594
- package/stencil/{general-input-Bcw5i0ZC.cjs → general-input-y1CIV_-r.cjs} +254 -254
- package/stencil/{index-1ef3a64c-DsTe-fF4.js → index-1ef3a64c-B1Hda3TY.js} +185 -185
- package/stencil/index-1ef3a64c-CCWt3IAA.cjs +1 -0
- package/stencil/{index-1ef3a64c-BNosNJnU.js → index-1ef3a64c-Dd-0nq4l.js} +192 -192
- package/stencil/index-7c5e707a-8-4_dLFT.js +643 -0
- package/stencil/{index-7c5e707a-C9R6jYpt.js → index-7c5e707a-CuTkyLaW.js} +209 -209
- package/stencil/index-7c5e707a-nBsW029h.cjs +1 -0
- package/stencil/index-9c0f6c58-DbSOntvG.cjs +1 -0
- package/stencil/{index-9c0f6c58-BNoMpTuB.js → index-9c0f6c58-NlVKpLut.js} +180 -180
- package/stencil/{index-9c0f6c58-pr1WGVFu.js → index-9c0f6c58-RPoO1End.js} +176 -176
- package/stencil/{index-9cd44522-CsUuNLBU.js → index-9cd44522-Cto_o6sQ.js} +202 -202
- package/stencil/{index-9cd44522-Bs5-rSFb.js → index-9cd44522-DrlRFYrB.js} +196 -196
- package/stencil/index-9cd44522-lYql7AfG.cjs +1 -0
- package/stencil/index-b2193545-BXNomIzV.js +519 -0
- package/stencil/index-b2193545-CYe2oVMy.js +503 -0
- package/stencil/index-b2193545-DxRobzZI.cjs +1 -0
- package/stencil/locale-CB060R77.cjs +1 -0
- package/stencil/{locale-ioQf6ZrW.js → locale-Cxpe53Ym.js} +9 -3
- package/stencil/{password-input_2-BMAMY-nX.cjs → password-input_2-BFXxkcXV.cjs} +2 -2
- package/stencil/{password-input_2-ClvpWVfZ.js → password-input_2-CqbOPSSZ.js} +26 -24
- package/stencil/{password-input_2-CJq7wtMJ.js → password-input_2-DQst8UHp.js} +26 -24
- package/stencil/{player-change-password-gm2-5cb5c6c1-BqiJMiOw.js → player-change-password-gm2-5cb5c6c1-BhDKCfuN.js} +1 -1
- package/stencil/{player-change-password-gm2-5cb5c6c1-D-Az5JzJ.js → player-change-password-gm2-5cb5c6c1-Ch9RyZ2b.js} +1 -1
- package/stencil/{player-change-password-gm2-5cb5c6c1-C1DPqzV1.cjs → player-change-password-gm2-5cb5c6c1-n4BjzEVs.cjs} +1 -1
- package/stencil/{player-change-password-gm2-AbQzJtHf.js → player-change-password-gm2-Bg9HNK0A.js} +1 -1
- package/stencil/{player-change-password-gm2-Cr2Rfbg8.js → player-change-password-gm2-CNOsEIfo.js} +1 -1
- package/stencil/{player-change-password-gm2-DSVGYS4v.cjs → player-change-password-gm2-COsfG6W5.cjs} +1 -1
- package/stencil/{player-kyc-verification-CUhrMPde.js → player-kyc-verification-Cxnz1raa.js} +79 -76
- package/stencil/{player-kyc-verification-DPUx1txP.js → player-kyc-verification-DA_O1Dqu.js} +36 -33
- package/stencil/player-kyc-verification-qKWuqiUm.cjs +180 -0
- package/stencil/{toggle-checkbox-input-CYU_o2ph.js → toggle-checkbox-input-B4lb8oMh.js} +2 -2
- package/stencil/{toggle-checkbox-input-Dsxm6_EO.cjs → toggle-checkbox-input-BhQAILyC.cjs} +1 -1
- package/stencil/{toggle-checkbox-input-BlXLUVpo.js → toggle-checkbox-input-rocW3Yvz.js} +2 -2
- package/stencil/{ui-skeleton-1cb75d00-CwDKR1VD.js → ui-skeleton-1cb75d00-CZJ4UoDJ.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-BI5A-j0y.js → ui-skeleton-1cb75d00-D5Bub0nv.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-Batko5iK.cjs → ui-skeleton-1cb75d00-dFWe5qbW.cjs} +1 -1
- package/stencil/{ui-skeleton-t0bb1jH7.cjs → ui-skeleton-BH5oLkn9.cjs} +1 -1
- package/stencil/{ui-skeleton-C974aG7g.js → ui-skeleton-CZ5yC1WO.js} +2 -2
- package/stencil/{ui-skeleton-DoX-UmRU.js → ui-skeleton-vLKdvRqw.js} +2 -2
- package/stencil/{user-deposit-withdrawal-Dzz_fEvK.js → user-deposit-withdrawal-BMWb-WJE.js} +45 -45
- package/stencil/{user-deposit-withdrawal-C7W58646.js → user-deposit-withdrawal-ByE9O4TW.js} +45 -45
- package/stencil/{user-deposit-withdrawal-Dfu_1g2v.cjs → user-deposit-withdrawal-DGTrOlxS.cjs} +2 -2
- package/stencil/{user-transaction-history-DhQ6RqNc.js → user-transaction-history-BU4-cXt6.js} +11 -11
- package/stencil/{user-transaction-history-BAK7MHHa.js → user-transaction-history-CXBKXul8.js} +14 -14
- package/stencil/{user-transaction-history-DiRXpfbN.cjs → user-transaction-history-DLLIZ5Ck.cjs} +1 -1
- package/components/GeneralLogout-Dzu2Sl-x.cjs +0 -21
- package/components/PlayerAccountGamingLimitsConfirmationModal-CVJUvbSC.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-BvnqlbPp.cjs +0 -1
- package/components/PlayerAccountGeneralConfirmationModal-BiNxgQbD.cjs +0 -1
- package/components/PlayerProfileInfo-C--m-_0F.js +0 -2419
- package/components/PlayerProfileInfo-CD0xjooF.js +0 -2383
- package/components/PlayerProfileInfo-D5YZWH2T.cjs +0 -4
- package/stencil/checkbox-group-input_9-CQr3DUDJ.cjs +0 -2
- package/stencil/index-1ef3a64c-CFvPR_NP.cjs +0 -1
- package/stencil/index-7c5e707a-DvxqcEpc.js +0 -643
- package/stencil/index-7c5e707a-ESX_oqGB.cjs +0 -1
- package/stencil/index-9c0f6c58-DkHHwpww.cjs +0 -1
- package/stencil/index-9cd44522-D6uuyxLp.cjs +0 -1
- package/stencil/index-b2193545-CnMZ4-Ff.js +0 -519
- package/stencil/index-b2193545-Ct5AhxM8.cjs +0 -1
- package/stencil/index-b2193545-DePry399.js +0 -503
- package/stencil/locale-BB2iZ4t0.cjs +0 -1
- package/stencil/player-kyc-verification-DAy-szI5.cjs +0 -180
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./GeneralLogout-DweBl3EQ.cjs");if(typeof window!="undefined"){let t=function(e){return function(...i){try{return e.apply(this,i)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountModal-lwDOdDa4.cjs")).then(({default:e})=>{!customElements.get("player-account-modal")&&customElements.define("player-account-modal",e.element)})}function ue(t){"@babel/helpers - typeof";return ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ue(t)}function R(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function A(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function q(t){A(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||ue(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console!="undefined"&&(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)),new Date(NaN))}function Ke(t,e){A(2,arguments);var i=q(t),a=R(e);return isNaN(a)?new Date(NaN):(a&&i.setDate(i.getDate()+a),i)}function Ze(t,e){A(2,arguments);var i=q(t),a=R(e);if(isNaN(a))return new Date(NaN);if(!a)return i;var r=i.getDate(),o=new Date(i.getTime());o.setMonth(i.getMonth()+a+1,0);var s=o.getDate();return r>=s?o:(i.setFullYear(o.getFullYear(),o.getMonth(),r),i)}function $e(t,e){A(2,arguments);var i=q(t).getTime(),a=R(e);return new Date(i+a)}var et={};function ce(){return et}function tt(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function it(t){A(1,arguments);var e=q(t);return e.setHours(0,0,0,0),e}function nt(t){return A(1,arguments),t instanceof Date||ue(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function at(t){if(A(1,arguments),!nt(t)&&typeof t!="number")return!1;var e=q(t);return!isNaN(Number(e))}function rt(t){A(1,arguments);var e=q(t);return e.setHours(23,59,59,999),e}function ot(t,e){A(2,arguments);var i=R(e);return $e(t,-i)}var st=864e5;function lt(t){A(1,arguments);var e=q(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),r=i-a;return Math.floor(r/st)+1}function me(t){A(1,arguments);var e=1,i=q(t),a=i.getUTCDay(),r=(a<e?7:0)+a-e;return i.setUTCDate(i.getUTCDate()-r),i.setUTCHours(0,0,0,0),i}function Ue(t){A(1,arguments);var e=q(t),i=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(i+1,0,4),a.setUTCHours(0,0,0,0);var r=me(a),o=new Date(0);o.setUTCFullYear(i,0,4),o.setUTCHours(0,0,0,0);var s=me(o);return e.getTime()>=r.getTime()?i+1:e.getTime()>=s.getTime()?i:i-1}function ut(t){A(1,arguments);var e=Ue(t),i=new Date(0);i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0);var a=me(i);return a}var mt=6048e5;function dt(t){A(1,arguments);var e=q(t),i=me(e).getTime()-ut(e).getTime();return Math.round(i/mt)+1}function de(t,e){var i,a,r,o,s,l,u,d;A(1,arguments);var c=ce(),y=R((i=(a=(r=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:c.weekStartsOn)!==null&&a!==void 0?a:(u=c.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&i!==void 0?i:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=q(t),p=v.getUTCDay(),k=(p<y?7:0)+p-y;return v.setUTCDate(v.getUTCDate()-k),v.setUTCHours(0,0,0,0),v}function Fe(t,e){var i,a,r,o,s,l,u,d;A(1,arguments);var c=q(t),y=c.getUTCFullYear(),v=ce(),p=R((i=(a=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:v.firstWeekContainsDate)!==null&&a!==void 0?a:(u=v.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=new Date(0);k.setUTCFullYear(y+1,0,p),k.setUTCHours(0,0,0,0);var f=de(k,e),h=new Date(0);h.setUTCFullYear(y,0,p),h.setUTCHours(0,0,0,0);var w=de(h,e);return c.getTime()>=f.getTime()?y+1:c.getTime()>=w.getTime()?y:y-1}function ct(t,e){var i,a,r,o,s,l,u,d;A(1,arguments);var c=ce(),y=R((i=(a=(r=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:c.firstWeekContainsDate)!==null&&a!==void 0?a:(u=c.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&i!==void 0?i:1),v=Fe(t,e),p=new Date(0);p.setUTCFullYear(v,0,y),p.setUTCHours(0,0,0,0);var k=de(p,e);return k}var ft=6048e5;function pt(t,e){A(1,arguments);var i=q(t),a=de(i,e).getTime()-ct(i,e).getTime();return Math.round(a/ft)+1}function T(t,e){for(var i=t<0?"-":"",a=Math.abs(t).toString();a.length<e;)a="0"+a;return i+a}var K={y:function(e,i){var a=e.getUTCFullYear(),r=a>0?a:1-a;return T(i==="yy"?r%100:r,i.length)},M:function(e,i){var a=e.getUTCMonth();return i==="M"?String(a+1):T(a+1,2)},d:function(e,i){return T(e.getUTCDate(),i.length)},a:function(e,i){var a=e.getUTCHours()/12>=1?"pm":"am";switch(i){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(e,i){return T(e.getUTCHours()%12||12,i.length)},H:function(e,i){return T(e.getUTCHours(),i.length)},m:function(e,i){return T(e.getUTCMinutes(),i.length)},s:function(e,i){return T(e.getUTCSeconds(),i.length)},S:function(e,i){var a=i.length,r=e.getUTCMilliseconds(),o=Math.floor(r*Math.pow(10,a-3));return T(o,i.length)}},re={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ht={G:function(e,i,a){var r=e.getUTCFullYear()>0?1:0;switch(i){case"G":case"GG":case"GGG":return a.era(r,{width:"abbreviated"});case"GGGGG":return a.era(r,{width:"narrow"});case"GGGG":default:return a.era(r,{width:"wide"})}},y:function(e,i,a){if(i==="yo"){var r=e.getUTCFullYear(),o=r>0?r:1-r;return a.ordinalNumber(o,{unit:"year"})}return K.y(e,i)},Y:function(e,i,a,r){var o=Fe(e,r),s=o>0?o:1-o;if(i==="YY"){var l=s%100;return T(l,2)}return i==="Yo"?a.ordinalNumber(s,{unit:"year"}):T(s,i.length)},R:function(e,i){var a=Ue(e);return T(a,i.length)},u:function(e,i){var a=e.getUTCFullYear();return T(a,i.length)},Q:function(e,i,a){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(i){case"Q":return String(r);case"QQ":return T(r,2);case"Qo":return a.ordinalNumber(r,{unit:"quarter"});case"QQQ":return a.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,i,a){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(i){case"q":return String(r);case"qq":return T(r,2);case"qo":return a.ordinalNumber(r,{unit:"quarter"});case"qqq":return a.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,i,a){var r=e.getUTCMonth();switch(i){case"M":case"MM":return K.M(e,i);case"Mo":return a.ordinalNumber(r+1,{unit:"month"});case"MMM":return a.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(r,{width:"wide",context:"formatting"})}},L:function(e,i,a){var r=e.getUTCMonth();switch(i){case"L":return String(r+1);case"LL":return T(r+1,2);case"Lo":return a.ordinalNumber(r+1,{unit:"month"});case"LLL":return a.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(r,{width:"wide",context:"standalone"})}},w:function(e,i,a,r){var o=pt(e,r);return i==="wo"?a.ordinalNumber(o,{unit:"week"}):T(o,i.length)},I:function(e,i,a){var r=dt(e);return i==="Io"?a.ordinalNumber(r,{unit:"week"}):T(r,i.length)},d:function(e,i,a){return i==="do"?a.ordinalNumber(e.getUTCDate(),{unit:"date"}):K.d(e,i)},D:function(e,i,a){var r=lt(e);return i==="Do"?a.ordinalNumber(r,{unit:"dayOfYear"}):T(r,i.length)},E:function(e,i,a){var r=e.getUTCDay();switch(i){case"E":case"EE":case"EEE":return a.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(r,{width:"short",context:"formatting"});case"EEEE":default:return a.day(r,{width:"wide",context:"formatting"})}},e:function(e,i,a,r){var o=e.getUTCDay(),s=(o-r.weekStartsOn+8)%7||7;switch(i){case"e":return String(s);case"ee":return T(s,2);case"eo":return a.ordinalNumber(s,{unit:"day"});case"eee":return a.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(o,{width:"short",context:"formatting"});case"eeee":default:return a.day(o,{width:"wide",context:"formatting"})}},c:function(e,i,a,r){var o=e.getUTCDay(),s=(o-r.weekStartsOn+8)%7||7;switch(i){case"c":return String(s);case"cc":return T(s,i.length);case"co":return a.ordinalNumber(s,{unit:"day"});case"ccc":return a.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(o,{width:"narrow",context:"standalone"});case"cccccc":return a.day(o,{width:"short",context:"standalone"});case"cccc":default:return a.day(o,{width:"wide",context:"standalone"})}},i:function(e,i,a){var r=e.getUTCDay(),o=r===0?7:r;switch(i){case"i":return String(o);case"ii":return T(o,i.length);case"io":return a.ordinalNumber(o,{unit:"day"});case"iii":return a.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(r,{width:"short",context:"formatting"});case"iiii":default:return a.day(r,{width:"wide",context:"formatting"})}},a:function(e,i,a){var r=e.getUTCHours(),o=r/12>=1?"pm":"am";switch(i){case"a":case"aa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,i,a){var r=e.getUTCHours(),o;switch(r===12?o=re.noon:r===0?o=re.midnight:o=r/12>=1?"pm":"am",i){case"b":case"bb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,i,a){var r=e.getUTCHours(),o;switch(r>=17?o=re.evening:r>=12?o=re.afternoon:r>=4?o=re.morning:o=re.night,i){case"B":case"BB":case"BBB":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,i,a){if(i==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),a.ordinalNumber(r,{unit:"hour"})}return K.h(e,i)},H:function(e,i,a){return i==="Ho"?a.ordinalNumber(e.getUTCHours(),{unit:"hour"}):K.H(e,i)},K:function(e,i,a){var r=e.getUTCHours()%12;return i==="Ko"?a.ordinalNumber(r,{unit:"hour"}):T(r,i.length)},k:function(e,i,a){var r=e.getUTCHours();return r===0&&(r=24),i==="ko"?a.ordinalNumber(r,{unit:"hour"}):T(r,i.length)},m:function(e,i,a){return i==="mo"?a.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):K.m(e,i)},s:function(e,i,a){return i==="so"?a.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):K.s(e,i)},S:function(e,i){return K.S(e,i)},X:function(e,i,a,r){var o=r._originalDate||e,s=o.getTimezoneOffset();if(s===0)return"Z";switch(i){case"X":return ye(s);case"XXXX":case"XX":return ne(s);case"XXXXX":case"XXX":default:return ne(s,":")}},x:function(e,i,a,r){var o=r._originalDate||e,s=o.getTimezoneOffset();switch(i){case"x":return ye(s);case"xxxx":case"xx":return ne(s);case"xxxxx":case"xxx":default:return ne(s,":")}},O:function(e,i,a,r){var o=r._originalDate||e,s=o.getTimezoneOffset();switch(i){case"O":case"OO":case"OOO":return"GMT"+ve(s,":");case"OOOO":default:return"GMT"+ne(s,":")}},z:function(e,i,a,r){var o=r._originalDate||e,s=o.getTimezoneOffset();switch(i){case"z":case"zz":case"zzz":return"GMT"+ve(s,":");case"zzzz":default:return"GMT"+ne(s,":")}},t:function(e,i,a,r){var o=r._originalDate||e,s=Math.floor(o.getTime()/1e3);return T(s,i.length)},T:function(e,i,a,r){var o=r._originalDate||e,s=o.getTime();return T(s,i.length)}};function ve(t,e){var i=t>0?"-":"+",a=Math.abs(t),r=Math.floor(a/60),o=a%60;if(o===0)return i+String(r);var s=e;return i+String(r)+s+T(o,2)}function ye(t,e){if(t%60===0){var i=t>0?"-":"+";return i+T(Math.abs(t)/60,2)}return ne(t,e)}function ne(t,e){var i=e||"",a=t>0?"-":"+",r=Math.abs(t),o=T(Math.floor(r/60),2),s=T(r%60,2);return a+o+i+s}var we=function(e,i){switch(e){case"P":return i.date({width:"short"});case"PP":return i.date({width:"medium"});case"PPP":return i.date({width:"long"});case"PPPP":default:return i.date({width:"full"})}},je=function(e,i){switch(e){case"p":return i.time({width:"short"});case"pp":return i.time({width:"medium"});case"ppp":return i.time({width:"long"});case"pppp":default:return i.time({width:"full"})}},gt=function(e,i){var a=e.match(/(P+)(p+)?/)||[],r=a[1],o=a[2];if(!o)return we(e,i);var s;switch(r){case"P":s=i.dateTime({width:"short"});break;case"PP":s=i.dateTime({width:"medium"});break;case"PPP":s=i.dateTime({width:"long"});break;case"PPPP":default:s=i.dateTime({width:"full"});break}return s.replace("{{date}}",we(r,i)).replace("{{time}}",je(o,i))},vt={p:je,P:gt},yt=["D","DD"],wt=["YY","YYYY"];function bt(t){return yt.indexOf(t)!==-1}function _t(t){return wt.indexOf(t)!==-1}function be(t,e,i){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Lt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Tt=function(e,i,a){var r,o=Lt[e];return typeof o=="string"?r=o:i===1?r=o.one:r=o.other.replace("{{count}}",i.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+r:r+" ago":r};function pe(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth,a=t.formats[i]||t.formats[t.defaultWidth];return a}}var kt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Et={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Mt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ct={date:pe({formats:kt,defaultWidth:"full"}),time:pe({formats:Et,defaultWidth:"full"}),dateTime:pe({formats:Mt,defaultWidth:"full"})},Dt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},At=function(e,i,a,r){return Dt[e]};function oe(t){return function(e,i){var a=i!=null&&i.context?String(i.context):"standalone",r;if(a==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,s=i!=null&&i.width?String(i.width):o;r=t.formattingValues[s]||t.formattingValues[o]}else{var l=t.defaultWidth,u=i!=null&&i.width?String(i.width):t.defaultWidth;r=t.values[u]||t.values[l]}var d=t.argumentCallback?t.argumentCallback(e):e;return r[d]}}var Ot={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},St={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Pt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Wt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Nt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},xt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Bt=function(e,i){var a=Number(e),r=a%100;if(r>20||r<10)switch(r%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Yt={ordinalNumber:Bt,era:oe({values:Ot,defaultWidth:"wide"}),quarter:oe({values:St,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:oe({values:Pt,defaultWidth:"wide"}),day:oe({values:Wt,defaultWidth:"wide"}),dayPeriod:oe({values:Nt,defaultWidth:"wide",formattingValues:xt,defaultFormattingWidth:"wide"})};function se(t){return function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.width,r=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],o=e.match(r);if(!o)return null;var s=o[0],l=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(l)?Ut(l,function(y){return y.test(s)}):It(l,function(y){return y.test(s)}),d;d=t.valueCallback?t.valueCallback(u):u,d=i.valueCallback?i.valueCallback(d):d;var c=e.slice(s.length);return{value:d,rest:c}}}function It(t,e){for(var i in t)if(t.hasOwnProperty(i)&&e(t[i]))return i}function Ut(t,e){for(var i=0;i<t.length;i++)if(e(t[i]))return i}function Ft(t){return function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=e.match(t.matchPattern);if(!a)return null;var r=a[0],o=e.match(t.parsePattern);if(!o)return null;var s=t.valueCallback?t.valueCallback(o[0]):o[0];s=i.valueCallback?i.valueCallback(s):s;var l=e.slice(r.length);return{value:s,rest:l}}}var jt=/^(\d+)(th|st|nd|rd)?/i,qt=/\d+/i,Ht={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},zt={any:[/^b/i,/^(a|c)/i]},Vt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Gt={any:[/1/i,/2/i,/3/i,/4/i]},Rt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Qt={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],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]},Xt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Jt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Kt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Zt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},$t={ordinalNumber:Ft({matchPattern:jt,parsePattern:qt,valueCallback:function(e){return parseInt(e,10)}}),era:se({matchPatterns:Ht,defaultMatchWidth:"wide",parsePatterns:zt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Vt,defaultMatchWidth:"wide",parsePatterns:Gt,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:se({matchPatterns:Rt,defaultMatchWidth:"wide",parsePatterns:Qt,defaultParseWidth:"any"}),day:se({matchPatterns:Xt,defaultMatchWidth:"wide",parsePatterns:Jt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Kt,defaultMatchWidth:"any",parsePatterns:Zt,defaultParseWidth:"any"})},ei={code:"en-US",formatDistance:Tt,formatLong:Ct,formatRelative:At,localize:Yt,match:$t,options:{weekStartsOn:0,firstWeekContainsDate:1}},ti=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ii=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ni=/^'([^]*?)'?$/,ai=/''/g,ri=/[a-zA-Z]/;function le(t,e,i){var a,r,o,s,l,u,d,c,y,v,p,k,f,h;A(2,arguments);var w=String(e),_=ce(),b=(a=(r=void 0)!==null&&r!==void 0?r:_.locale)!==null&&a!==void 0?a:ei,x=R((o=(s=(l=(u=void 0)!==null&&u!==void 0?u:void 0)!==null&&l!==void 0?l:_.firstWeekContainsDate)!==null&&s!==void 0?s:(d=_.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(x>=1&&x<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=R((y=(v=(p=(k=void 0)!==null&&k!==void 0?k:void 0)!==null&&p!==void 0?p:_.weekStartsOn)!==null&&v!==void 0?v:(f=_.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&y!==void 0?y:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!b.localize)throw new RangeError("locale must contain localize property");if(!b.formatLong)throw new RangeError("locale must contain formatLong property");var M=q(t);if(!at(M))throw new RangeError("Invalid time value");var V=tt(M),E=ot(M,V),B={firstWeekContainsDate:x,weekStartsOn:W,locale:b,_originalDate:M},j=w.match(ii).map(function(C){var Y=C[0];if(Y==="p"||Y==="P"){var H=vt[Y];return H(C,b.formatLong)}return C}).join("").match(ti).map(function(C){if(C==="''")return"'";var Y=C[0];if(Y==="'")return oi(C);var H=ht[Y];if(H)return _t(C)&&be(C,e,String(t)),bt(C)&&be(C,e,String(t)),H(E,C,b.localize,B);if(Y.match(ri))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Y+"`");return C}).join("");return j}function oi(t){var e=t.match(ni);return e?e[1].replace(ai,"'"):t}function si(t){return A(1,arguments),q(t).getFullYear()}function li(t,e){A(2,arguments);var i=R(e);return Ke(t,-i)}function ui(t,e){A(2,arguments);var i=R(e);return Ze(t,-i)}if(typeof window!="undefined"){let t=function(e){return function(...i){try{return e.apply(this,i)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsPopup-DkQcpWO7.cjs")).then(({default:e})=>{!customElements.get("player-account-gaming-limits-popup")&&customElements.define("player-account-gaming-limits-popup",e.element)})}function _e(t,e){n.addMessages(t,e)}function mi(t){n.$locale.set(t)}const Le={en:{back:"Back to Gaming Limits",limit:"Limit",amount:"Amount",noLimit:"No limit",changeLimitsText:"Are you sure you want to change the {limit}s?",success:"Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"You have requested to remove this limit. This will be applied on",invalidInputMessageLimit:"The amount needs to be between 1 and 99,999,999.",invalidInputMessageTime:"The time amount needs to be greater than {minTime} and below {maxTime} minutes.",expirationDate:"Expiration Date:",save:"Save",changedLimitTextBefore:"Your limit has been changed or increased:",changedLimitTextAfter:"You will have to wait for the expiration date for your new limit to take effect.",daily:"Daily",weekly:"Weekly",monthly:"Monthly",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"},"zh-hk":{back:"返回游戲限制",limit:"限制",amount:"數量",noLimit:"沒有限制t",changeLimitsText:"您確定要更改 {limit} 嗎?",success:"您的遊戲限制已成功設置。",remove:"您已請求取消此限制。 這將應用於",invalidInputMessageLimit:"金額需要在 0 到 99,999,999 之間",invalidInputMessageTime:"時間量需要大於 {minTime} 且低於 {maxTime} 分鐘",expirationDate:"截止日期:",save:"節省",changedLimitTextBefore:"您的限額已更改或增加:",changedLimitTextAfter:"您必須等待到期日期才能使新限制生效",daily:"日常的",weekly:"每周",monthly:"月刊",depositLimit:"存款限额",timeLimit:"时限",wageringLimit:"投注限额",lossLimit:"损失限额"},fr:{back:"Retour aux limites de jeu",daily:"Quotidiennement",weekly:"Hebdomadaire",monthly:"Mensuel",limit:"Limite",amount:"Montant",noLimit:"Aucune limite",changeLimitsText:"Etes-vous sûr de vouloir changer les {limit}s??",success:"Vos limites de jeu ont été respectées.",remove:"Vous avez demandé à ce que cette limite soit supprimée,elle sera appliquée",invalidInputMessageLimit:"Le montant doit être compris entre 1 et 99,999,999.",invalidInputMessageTime:"La durée doit être supérieure au {minTime} et inférieur au {maxTime} minutes .",expirationDate:"Date d'expiration:",save:"Sauvez",changedLimitTextBefore:"Votre limit a été modifiée ou augmentée:",changedLimitTextAfter:"Vous devrez attendre la date d'expiration pour que votre nouvelle limite prenne effet",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte"},ro:{back:"Înapoi la limite de joc",limit:"Limită",amount:"Sumă",noLimit:"Fără Limită",changeLimitsText:"Ești sigur că vrei să modifici {limit}?",success:"Limitele tale de joc au fost configurate cu success.",remove:"Ai solicitat eliminarea acestei limite. Acest lucru va avea loc la data expirării limitei",invalidInputMessageLimit:"Trebuie să setezi o sumă intre 1 și 99,999,999.",invalidInputMessageTime:"Trebuie să setezi o limită intre {minTime} minute și {maxTime} minute",expirationDate:"Dată Expirare:",save:"Salvează",changedLimitTextBefore:"Limita ta a fost schimbată sau a crescut:",changedLimitTextAfter:". Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",daily:"Zilnic",weekly:"Săptămânal",monthly:"Lunar",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limite de pierdere"},es:{back:"Regresa a límites de juego",limit:"Límite",amount:"Monto",noLimit:"Sin Límite",changeLimitsText:"Esta seguro que desea cambiar los {limit}es?",success:"Limite actualizado satisfactoriamente",remove:"Ha solicitado retirar este limite. Esto será aplicado",invalidInputMessageLimit:"El monto debe ser entre 1 y 99",invalidInputMessageTime:"La cantidad de tiempo debe ser superior a {minTime} y por debajo de {maxTime} minutos.",expirationDate:"Fecha de expiración:",save:"Guardar",changedLimitTextBefore:"Tú limite ha sido cambiado o incrementado:",changedLimitTextAfter:"Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia.",daily:"Diario",weekly:"Semanal",monthly:"Mensual",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"},pt:{back:"Voltar para Limites de jogos",limit:"Limite",amount:"Montante",noLimit:"Sem limite",changeLimitsText:"Tem certeza de que deseja alterar os {limite}s?",success:"Seus limites de jogo foram definidos com sucesso.",remove:"Você solicitou a remoção deste limite. Isso será aplicado em",invalidInputMessageLimit:"O valor precisa estar entre 1 e 99.999.999",invalidInputMessageTime:"A quantidade de tempo precisa ser maior que {1} e menor que {99999999} minutos",expirationDate:"Data de Validade",save:"Guardar",changedLimitTextBefore:"Seu limite foi alterado ou aumentado:",changedLimitTextAfter:"Você terá que aguardar a data de expiração para que seu novo limite entre em vigor",daily:"Diariamente",weekly:"Semanalmente",monthly:"Mensalmente",depositLimit:"Limite de Depósito",timeLimit:"Limite de Tempo",wageringLimit:"Limite de Apostas",lossLimit:"Limite de Perda"},hr:{back:"Povratak na ograničenja igranja",limit:"Limit",amount:"Iznos",noLimit:"Nema ograničenja",changeLimitsText:"Jeste li sigurni da želite promijeniti {limit}e?",success:"Uspješno",remove:"Zatražili ste uklanjanje ovog ograničenja. Ovo će se primijeniti na",invalidInputMessageLimit:"Iznos mora biti između 1 i 99",invalidInputMessageTime:"Vremenski iznos mora biti veći od {minTime} i manji od {maxTime} minuta.",expirationDate:"Datum isteka:",save:"Spremi",changedLimitTextBefore:"Vaše ograničenje je promijenjeno ili povećano:",changedLimitTextAfter:"Morat ćete pričekati datum isteka da bi vaše novo ograničenje stupilo na snagu.",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka"},"pt-br":{back:"Retornar aos limites do jogo",limit:"Limite",amount:"Quantidade",noLimit:"Sem limite",changeLimitsText:"Tem certeza de que deseja alterar o(s) limite(s)?",success:"A operação bem-sucedida lorem Ipsum é simplesmente um texto fictício da indústria de impressão e composição tipográfica.",remove:"Você solicitou a remoção deste limite. Isto será aplicado a partir de",invalidInputMessageLimit:"A Quantia deve estar entre 1 e 99",invalidInputMessageTime:"A quantidade de tempo precisa ser maior que {minTime} e menor que {maxTime} minutos.",expirationDate:"Data de expiração:",save:"Manter",changedLimitTextBefore:"Seu limite de tempo foi alterado ou aumentado:",changedLimitTextAfter:"Você deve aguardar a data de expiração para que seu novo limite entre em vigor.",daily:"Diário",weekly:"Semanalmente",monthly:"Por mês",depositLimit:"Limite de depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de aposta",lossLimit:"Limite de perda"},"es-mx":{back:"Regresar a límites de juego",limit:"Límite",amount:"Monto",noLimit:"Sin límite",changeLimitsText:"¿Está seguro que quiere cambiar el/los límite(s)?",success:"Operación exitosa lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"Ha solicitado remover este límite. Esto se aplicará a partir de",invalidInputMessageLimit:"El monto debe ser entre 1 y 99,999,999",invalidInputMessageTime:"El monto de tiempo necesita ser mayor a {minTime} y menor a {maxTime} minutos.",expirationDate:"Fecha de expiración:",save:"Guardar",changedLimitTextBefore:"Tú límite de tiempo ha sido cambiado o aumentado:",changedLimitTextAfter:"Tiene que esperar a la fecha de expiración para que su nuevo límite entre en efecto.",daily:"Diario",weekly:"Semanal",monthly:"Mensual",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuesta",lossLimit:"Límite de pérdida"},tr:{back:"Oyun Sınırlarına Geri Dön",limit:"Sınır",amount:"Miktar",noLimit:"Limit yok",changeLimitsText:"{limit}'leri değiştirmek istediğinizden emin misiniz?",success:"Başarı lorem Ipsum, basım ve dizgi endüstrisinin sahte metnidir.",remove:"Bu sınırın kaldırılmasını talep ettiniz. Bu şu tarihte uygulanacaktır:",invalidInputMessageLimit:"Tutarın 1 ile 99.999.999 arasında olması gerekir.",invalidInputMessageTime:"Süre miktarının {minTime} değerinden büyük ve {maxTime} dakikanın altında olması gerekir.",expirationDate:"Son kullanma tarihi:",save:"Kaydetmek",changedLimitTextBefore:"Limitiniz değiştirildi veya artırıldı:",changedLimitTextAfter:"Yeni limitinizin geçerlilik kazanması için son kullanma tarihini beklemeniz gerekecektir.",daily:"Günlük",weekly:"Haftalık",monthly:"Aylık",depositLimit:"Para Yatırma Limiti",timeLimit:"Zaman sınırı",wageringLimit:"Bahis Limiti",lossLimit:"Kayıp Limiti"},"en-us":{back:"Back to Gaming Limits",limit:"Limit",amount:"Amount",noLimit:"No limit",changeLimitsText:"Are you sure you want to change the {limit}s?",success:"Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"You have requested to remove this limit. This will be applied on",invalidInputMessageLimit:"The amount needs to be between 1 and 99,999,999.",invalidInputMessageTime:"The time amount needs to be greater than {minTime} and below {maxTime} minutes.",expirationDate:"Expiration Date:",save:"Save",changedLimitTextBefore:"Your limit has been changed or increased:",changedLimitTextAfter:"You will have to wait for the expiration date for your new limit to take effect.",daily:"Daily",weekly:"Weekly",monthly:"Monthly",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"}};if(typeof window!="undefined"){let t=function(e){return function(...i){try{return e.apply(this,i)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsConfirmationModal-DzBevsyQ.cjs")).then(({default:e})=>{!customElements.get("player-account-gaming-limits-confirmation-modal")&&customElements.define("player-account-gaming-limits-confirmation-modal",e.element)})}function di(t){n.append_styles(t,"svelte-5vl9hz",".MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MyAccountCategoryTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditBackButton{display:inline-block;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:26px;font-weight:300;cursor:pointer;margin-bottom:30px}.AccountEditBackButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emw--color-gray-300, #58586B);background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emw--color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emw--color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emw--color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emw--color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #FD2839));font-size:10px;position:absolute;top:6px;margin:0;line-height:10px}.AccountEditLimitsInputContainer{position:relative;padding-top:10px;width:94%}")}function Te(t,e,i){const a=t.slice();return a[56]=e[i],a[57]=e,a[58]=i,a}function ke(t,e,i){const a=t.slice();return a[59]=e[i],a}function Ee(t,e,i){const a=t.slice();return a[56]=e[i],a[58]=i,a}function ci(t){let e,i,a,r,o,s,l,u,d,c,y=t[18]("back")+"",v,p,k;return{c(){e=n.element("div"),i=n.svg_element("svg"),a=n.svg_element("defs"),r=n.svg_element("style"),o=n.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),s=n.svg_element("g"),l=n.svg_element("g"),u=n.svg_element("path"),d=n.space(),c=n.element("h2"),v=n.text(y),n.attr(u,"class","aaa"),n.attr(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),n.attr(u,"transform","translate(15 15) rotate(180)"),n.attr(l,"transform","translate(20 158)"),n.attr(s,"transform","translate(-20 -158)"),n.attr(i,"xmlns","http://www.w3.org/2000/svg"),n.attr(i,"width","15"),n.attr(i,"height","15"),n.attr(i,"viewBox","0 0 15 15"),n.attr(c,"class","MyAccountCategoryTitleMobile"),n.attr(e,"class","MenuReturnButton")},m(f,h){n.insert(f,e,h),n.append(e,i),n.append(i,a),n.append(a,r),n.append(r,o),n.append(i,s),n.append(s,l),n.append(l,u),n.append(e,d),n.append(e,c),n.append(c,v),p||(k=n.listen(e,"click",t[22]),p=!0)},p(f,h){h[0]&262144&&y!==(y=f[18]("back")+"")&&n.set_data(v,y)},d(f){f&&n.detach(e),p=!1,k()}}}function Me(t){let e,i,a=t[18]("success")+"",r;return{c(){e=n.element("div"),i=n.element("p"),r=n.text(a),n.attr(e,"class","AccountEditLimitSuccessfulChangeContainer")},m(o,s){n.insert(o,e,s),n.append(e,i),n.append(i,r)},p(o,s){s[0]&262144&&a!==(a=o[18]("success")+"")&&n.set_data(r,a)},d(o){o&&n.detach(e)}}}function Ce(t){let e,i=n.ensure_array_like(t[14]),a=[];for(let r=0;r<i.length;r+=1)a[r]=Ae(Ee(t,i,r));return{c(){e=n.element("div");for(let r=0;r<a.length;r+=1)a[r].c();n.attr(e,"class","AccountEditLimitSuccessfulChangeContainer")},m(r,o){n.insert(r,e,o);for(let s=0;s<a.length;s+=1)a[s]&&a[s].m(e,null)},p(r,o){if(o[0]&409600){i=n.ensure_array_like(r[14]);let s;for(s=0;s<i.length;s+=1){const l=Ee(r,i,s);a[s]?a[s].p(l,o):(a[s]=Ae(l),a[s].c(),a[s].m(e,null))}for(;s<a.length;s+=1)a[s].d(1);a.length=i.length}},d(r){r&&n.detach(e),n.destroy_each(a,r)}}}function De(t){let e,i=t[18]("remove")+"",a,r,o=(t[56].expiryDate?le(new Date(t[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"",s;return{c(){e=n.element("p"),a=n.text(i),r=n.space(),s=n.text(o)},m(l,u){n.insert(l,e,u),n.append(e,a),n.append(e,r),n.append(e,s)},p(l,u){u[0]&262144&&i!==(i=l[18]("remove")+"")&&n.set_data(a,i),u[0]&16384&&o!==(o=(l[56].expiryDate?le(new Date(l[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"")&&n.set_data(s,o)},d(l){l&&n.detach(e)}}}function Ae(t){let e,i=t[56].period==t[17][t[58]].period&&De(t);return{c(){i&&i.c(),e=n.empty()},m(a,r){i&&i.m(a,r),n.insert(a,e,r)},p(a,r){a[56].period==a[17][a[58]].period?i?i.p(a,r):(i=De(a),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(a){a&&n.detach(e),i&&i.d(a)}}}function Oe(t){let e,i,a=n.ensure_array_like(t[14]),r=[];for(let o=0;o<a.length;o+=1)r[o]=Ie(Te(t,a,o));return{c(){e=n.element("div"),i=n.element("div");for(let o=0;o<r.length;o+=1)r[o].c();n.attr(i,"class","AccountEditLimitsContainer"),n.attr(e,"class","AccountEditContent")},m(o,s){n.insert(o,e,s),n.append(e,i);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(i,null)},p(o,s){if(s[0]&18836560){a=n.ensure_array_like(o[14]);let l;for(l=0;l<a.length;l+=1){const u=Te(o,a,l);r[l]?r[l].p(u,s):(r[l]=Ie(u),r[l].c(),r[l].m(i,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(o){o&&n.detach(e),n.destroy_each(r,o)}}}function Se(t){let e,i,a=t[18]("noLimit")+"",r,o,s,l,u,d,c,y,v=n.ensure_array_like(t[20].get(t[6])[t[58]].values),p=[];for(let w=0;w<v.length;w+=1)p[w]=We(ke(t,v,w));function k(){t[30].call(e,t[58])}let f=t[17][t[58]].amount==="Custom"&&Ne(t),h=t[56].isModified===!0&&Ye(t);return{c(){e=n.element("select"),i=n.element("option"),r=n.text(a);for(let w=0;w<p.length;w+=1)p[w].c();s=n.space(),l=n.element("div"),f&&f.c(),u=n.space(),h&&h.c(),d=n.empty(),i.__value="",n.set_input_value(i,i.__value),i.disabled=!0,i.selected=!0,i.hidden=!0,n.attr(e,"class","AccountEditField "+(t[19]?"TimeoutSelectMobile":"")),e.disabled=o=t[56].isModified===!0,t[17][t[58]].amount===void 0&&n.add_render_callback(k),n.attr(l,"class","AccountEditLimitsInputContainer")},m(w,_){n.insert(w,e,_),n.append(e,i),n.append(i,r);for(let b=0;b<p.length;b+=1)p[b]&&p[b].m(e,null);n.select_option(e,t[17][t[58]].amount,!0),n.insert(w,s,_),n.insert(w,l,_),f&&f.m(l,null),n.insert(w,u,_),h&&h.m(w,_),n.insert(w,d,_),c||(y=[n.listen(e,"change",k),n.listen(e,"change",function(){n.is_function(t[24](t[17][t[58]],t[58],!1,t[16]))&&t[24](t[17][t[58]],t[58],!1,t[16]).apply(this,arguments)})],c=!0)},p(w,_){if(t=w,_[0]&262144&&a!==(a=t[18]("noLimit")+"")&&n.set_data(r,a),_[0]&1048656){v=n.ensure_array_like(t[20].get(t[6])[t[58]].values);let b;for(b=0;b<v.length;b+=1){const x=ke(t,v,b);p[b]?p[b].p(x,_):(p[b]=We(x),p[b].c(),p[b].m(e,null))}for(;b<p.length;b+=1)p[b].d(1);p.length=v.length}_[0]&16384&&o!==(o=t[56].isModified===!0)&&(e.disabled=o),_[0]&1179712&&n.select_option(e,t[17][t[58]].amount),t[17][t[58]].amount==="Custom"?f?f.p(t,_):(f=Ne(t),f.c(),f.m(l,null)):f&&(f.d(1),f=null),t[56].isModified===!0?h?h.p(t,_):(h=Ye(t),h.c(),h.m(d.parentNode,d)):h&&(h.d(1),h=null)},d(w){w&&(n.detach(e),n.detach(s),n.detach(l),n.detach(u),n.detach(d)),n.destroy_each(p,w),f&&f.d(),h&&h.d(w),c=!1,n.run_all(y)}}}function Pe(t){let e=(t[6]!=="Time Limit"?t[4]:" minutes")+"",i;return{c(){i=n.text(e)},m(a,r){n.insert(a,i,r)},p(a,r){r[0]&80&&e!==(e=(a[6]!=="Time Limit"?a[4]:" minutes")+"")&&n.set_data(i,e)},d(a){a&&n.detach(i)}}}function We(t){let e,i=t[59]+"",a,r,o,s,l=t[59]!=="No limit"&&t[59]!=="Custom"&&Pe(t);return{c(){e=n.element("option"),a=n.text(i),r=n.space(),l&&l.c(),o=n.space(),e.__value=s=t[59],n.set_input_value(e,e.__value)},m(u,d){n.insert(u,e,d),n.append(e,a),n.append(e,r),l&&l.m(e,null),n.append(e,o)},p(u,d){d[0]&64&&i!==(i=u[59]+"")&&n.set_data(a,i),u[59]!=="No limit"&&u[59]!=="Custom"?l?l.p(u,d):(l=Pe(u),l.c(),l.m(e,o)):l&&(l.d(1),l=null),d[0]&64&&s!==(s=u[59])&&(e.__value=s,n.set_input_value(e,e.__value))},d(u){u&&n.detach(e),l&&l.d()}}}function Ne(t){let e;function i(o,s){return o[6]!=="Time Limit"?pi:fi}let a=i(t),r=a(t);return{c(){r.c(),e=n.empty()},m(o,s){r.m(o,s),n.insert(o,e,s)},p(o,s){a===(a=i(o))&&r?r.p(o,s):(r.d(1),r=a(o),r&&(r.c(),r.m(e.parentNode,e)))},d(o){o&&n.detach(e),r.d(o)}}}function fi(t){let e,i,a,r,o,s;function l(){t[32].call(e,t[58])}let u=t[13][t[58]]==1&&xe(t);return{c(){e=n.element("input"),a=n.space(),r=n.element("p"),u&&u.c(),n.attr(e,"type","number"),n.attr(e,"class","AccountEditField AccountEditFieldCustom"),e.disabled=i=t[56].isModified===!0,n.attr(r,"class","AccountEditWarningText")},m(d,c){n.insert(d,e,c),n.set_input_value(e,t[17][t[58]].value),n.insert(d,a,c),n.insert(d,r,c),u&&u.m(r,null),o||(s=[n.listen(e,"keyup",function(){n.is_function(t[24](t[17][t[58]],t[58],!0,t[16]))&&t[24](t[17][t[58]],t[58],!0,t[16]).apply(this,arguments)}),n.listen(e,"input",l)],o=!0)},p(d,c){t=d,c[0]&16384&&i!==(i=t[56].isModified===!0)&&(e.disabled=i),c[0]&1179712&&n.to_number(e.value)!==t[17][t[58]].value&&n.set_input_value(e,t[17][t[58]].value),t[13][t[58]]==1?u?u.p(t,c):(u=xe(t),u.c(),u.m(r,null)):u&&(u.d(1),u=null)},d(d){d&&(n.detach(e),n.detach(a),n.detach(r)),u&&u.d(),o=!1,n.run_all(s)}}}function pi(t){let e,i,a,r,o,s;function l(){t[31].call(e,t[58])}let u=t[13][t[58]]==1&&Be(t);return{c(){e=n.element("input"),a=n.space(),r=n.element("p"),u&&u.c(),n.attr(e,"type","number"),n.attr(e,"class","AccountEditField AccountEditFieldCustom"),e.disabled=i=t[56].isModified===!0,n.attr(r,"class","AccountEditWarningText")},m(d,c){n.insert(d,e,c),n.set_input_value(e,t[17][t[58]].value),n.insert(d,a,c),n.insert(d,r,c),u&&u.m(r,null),o||(s=[n.listen(e,"keyup",function(){n.is_function(t[24](t[17][t[58]],t[58],!1,t[16]))&&t[24](t[17][t[58]],t[58],!1,t[16]).apply(this,arguments)}),n.listen(e,"input",l)],o=!0)},p(d,c){t=d,c[0]&16384&&i!==(i=t[56].isModified===!0)&&(e.disabled=i),c[0]&1179712&&n.to_number(e.value)!==t[17][t[58]].value&&n.set_input_value(e,t[17][t[58]].value),t[13][t[58]]==1?u?u.p(t,c):(u=Be(t),u.c(),u.m(r,null)):u&&(u.d(1),u=null)},d(d){d&&(n.detach(e),n.detach(a),n.detach(r)),u&&u.d(),o=!1,n.run_all(s)}}}function xe(t){let e,i=t[18]("invalidInputMessageTime",{values:{minTime:t[10],maxTime:t[11]}})+"",a;return{c(){e=n.element("p"),a=n.text(i),n.attr(e,"class","InvalidInput")},m(r,o){n.insert(r,e,o),n.append(e,a)},p(r,o){o[0]&265216&&i!==(i=r[18]("invalidInputMessageTime",{values:{minTime:r[10],maxTime:r[11]}})+"")&&n.set_data(a,i)},d(r){r&&n.detach(e)}}}function Be(t){let e,i=t[18]("invalidInputMessageLimit")+"",a;return{c(){e=n.element("p"),a=n.text(i),n.attr(e,"class","InvalidInput")},m(r,o){n.insert(r,e,o),n.append(e,a)},p(r,o){o[0]&262144&&i!==(i=r[18]("invalidInputMessageLimit")+"")&&n.set_data(a,i)},d(r){r&&n.detach(e)}}}function Ye(t){let e,i=t[18]("expirationDate")+"",a,r,o,s=(t[56].expiryDate?le(new Date(t[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"",l,u,d,c,y,v,p=t[18]("changedLimitTextBefore")+"",k,f,h=(t[56].updateAmount>0?t[56].updateAmount:0)+"",w,_,b=(t[56].minutes!==void 0?" minutes":t[4])+"",x,W,M=t[18]("changedLimitTextAfter")+"",V;return{c(){e=n.element("p"),a=n.text(i),r=n.space(),o=n.element("span"),l=n.text(s),u=n.space(),d=n.element("div"),c=n.element("p"),y=n.element("span"),y.textContent="i",v=n.element("span"),k=n.text(p),f=n.space(),w=n.text(h),_=n.space(),x=n.text(b),W=n.text(". "),V=n.text(M),n.attr(e,"class","AccountEditLimitsExpiryDate"),n.attr(y,"class","AccountEditLimitChangePeriodIcon"),n.attr(d,"class","AccountEditLimitsPeriodChangeContainer")},m(E,B){n.insert(E,e,B),n.append(e,a),n.append(e,r),n.append(e,o),n.append(o,l),n.insert(E,u,B),n.insert(E,d,B),n.append(d,c),n.append(c,y),n.append(c,v),n.append(v,k),n.append(v,f),n.append(v,w),n.append(v,_),n.append(v,x),n.append(v,W),n.append(v,V)},p(E,B){B[0]&262144&&i!==(i=E[18]("expirationDate")+"")&&n.set_data(a,i),B[0]&16384&&s!==(s=(E[56].expiryDate?le(new Date(E[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"")&&n.set_data(l,s),B[0]&262144&&p!==(p=E[18]("changedLimitTextBefore")+"")&&n.set_data(k,p),B[0]&16384&&h!==(h=(E[56].updateAmount>0?E[56].updateAmount:0)+"")&&n.set_data(w,h),B[0]&16400&&b!==(b=(E[56].minutes!==void 0?" minutes":E[4])+"")&&n.set_data(x,b),B[0]&262144&&M!==(M=E[18]("changedLimitTextAfter")+"")&&n.set_data(V,M)},d(E){E&&(n.detach(e),n.detach(u),n.detach(d))}}}function Ie(t){let e,i,a=t[18](""+t[56].period.charAt(0).toLowerCase()+t[56].period.substring(1))+"",r,o,s,l=t[56].period==t[17][t[58]].period&&Se(t);return{c(){e=n.element("div"),i=n.element("p"),r=n.text(a),o=n.space(),l&&l.c(),s=n.space(),n.attr(i,"class","AccountEditLimitsTitle"),n.attr(e,"class","AccountEditLimitsBox")},m(u,d){n.insert(u,e,d),n.append(e,i),n.append(i,r),n.append(e,o),l&&l.m(e,null),n.append(e,s)},p(u,d){d[0]&278528&&a!==(a=u[18](""+u[56].period.charAt(0).toLowerCase()+u[56].period.substring(1))+"")&&n.set_data(r,a),u[56].period==u[17][u[58]].period?l?l.p(u,d):(l=Se(u),l.c(),l.m(e,s)):l&&(l.d(1),l=null)},d(u){u&&n.detach(e),l&&l.d()}}}function hi(t){let e,i,a,r,o,s,l,u,d,c,y,v,p=t[18]("back")+"",k,f,h,w,_=(t[1]?t[9]:"")+"",b,x,W,M,V,E,B,j,C,Y,H,D,J=t[18]("save")+"",Z,N,$,ae,ee,Q,te,ie,X=t[19]&&ci(t),U=t[2]&&Me(t),I=t[3]&&Ce(t),F=t[8]&&Oe(t);return{c(){e=n.element("div"),X&&X.c(),i=n.space(),a=n.element("div"),r=n.svg_element("svg"),o=n.svg_element("defs"),s=n.svg_element("style"),l=n.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),u=n.svg_element("g"),d=n.svg_element("g"),c=n.svg_element("path"),y=n.space(),v=n.element("h2"),k=n.text(p),f=n.space(),h=n.element("div"),w=n.element("h6"),b=n.text(_),x=n.space(),W=n.element("div"),M=n.element("span"),M.textContent="i",V=n.space(),E=n.element("player-account-gaming-limits-popup"),B=n.space(),U&&U.c(),j=n.space(),I&&I.c(),C=n.space(),F&&F.c(),Y=n.space(),H=n.element("div"),D=n.element("button"),Z=n.text(J),ae=n.space(),ee=n.element("player-account-modal"),Q=n.element("player-account-gaming-limits-confirmation-modal"),n.attr(c,"class","aaa"),n.attr(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),n.attr(c,"transform","translate(15 15) rotate(180)"),n.attr(d,"transform","translate(20 158)"),n.attr(u,"transform","translate(-20 -158)"),n.attr(r,"xmlns","http://www.w3.org/2000/svg"),n.attr(r,"width","20"),n.attr(r,"height","20"),n.attr(r,"viewBox","0 0 15 15"),n.attr(v,"class","MyAccountCategoryTitle "+(t[19]?"MyAccountCategoryTitleNone":"")),n.attr(a,"class","MenuReturnButton "+(t[19]?"MyAccountCategoryTitleNone":"")),n.attr(M,"class","AccountEditLimitsIcon"),n.set_custom_element_data(E,"showpopup",t[7]),n.set_custom_element_data(E,"lang",t[0]),n.attr(W,"class","AccountEditLimitsIconWrapper"),n.attr(h,"class","AccountEditLimitsHeader"),n.attr(D,"class",N="AccountEditLimitsSaveButton "+(t[15]?"":"AccountEditLimitsButtonDisabled")),D.disabled=$=!t[15],n.attr(H,"class","AccountEditLimitsControlArea"),n.attr(e,"class","AccountEditLimitsWrapper "+(t[19]?"AccountEditLimitsMobileWrapper":"")),n.set_custom_element_data(Q,"modaltext",t[12]),n.set_custom_element_data(Q,"modalsource","groupEdit"),n.set_custom_element_data(Q,"lang",t[0])},m(L,O){n.insert(L,e,O),X&&X.m(e,null),n.append(e,i),n.append(e,a),n.append(a,r),n.append(r,o),n.append(o,s),n.append(s,l),n.append(r,u),n.append(u,d),n.append(d,c),n.append(a,y),n.append(a,v),n.append(v,k),n.append(e,f),n.append(e,h),n.append(h,w),n.append(w,b),n.append(h,x),n.append(h,W),n.append(W,M),n.append(W,V),n.append(W,E),n.append(e,B),U&&U.m(e,null),n.append(e,j),I&&I.m(e,null),n.append(e,C),F&&F.m(e,null),n.append(e,Y),n.append(e,H),n.append(H,D),n.append(D,Z),t[34](e),n.insert(L,ae,O),n.insert(L,ee,O),n.append(ee,Q),te||(ie=[n.listen(a,"click",t[22]),n.listen(M,"click",n.prevent_default(t[21])),n.listen(D,"click",t[33])],te=!0)},p(L,O){L[19]&&X.p(L,O),O[0]&262144&&p!==(p=L[18]("back")+"")&&n.set_data(k,p),O[0]&514&&_!==(_=(L[1]?L[9]:"")+"")&&n.set_data(b,_),O[0]&128&&n.set_custom_element_data(E,"showpopup",L[7]),O[0]&1&&n.set_custom_element_data(E,"lang",L[0]),L[2]?U?U.p(L,O):(U=Me(L),U.c(),U.m(e,j)):U&&(U.d(1),U=null),L[3]?I?I.p(L,O):(I=Ce(L),I.c(),I.m(e,C)):I&&(I.d(1),I=null),L[8]?F?F.p(L,O):(F=Oe(L),F.c(),F.m(e,Y)):F&&(F.d(1),F=null),O[0]&262144&&J!==(J=L[18]("save")+"")&&n.set_data(Z,J),O[0]&32768&&N!==(N="AccountEditLimitsSaveButton "+(L[15]?"":"AccountEditLimitsButtonDisabled"))&&n.attr(D,"class",N),O[0]&32768&&$!==($=!L[15])&&(D.disabled=$),O[0]&4096&&n.set_custom_element_data(Q,"modaltext",L[12]),O[0]&1&&n.set_custom_element_data(Q,"lang",L[0])},i:n.noop,o:n.noop,d(L){L&&(n.detach(e),n.detach(ae),n.detach(ee)),X&&X.d(),U&&U.d(),I&&I.d(),F&&F.d(),t[34](null),te=!1,n.run_all(ie)}}}function gi(t,e,i){let a;n.component_subscribe(t,n.$format,m=>i(18,a=m));let{limitsdata:r=[]}=e,{showsuccessnotification:o=!1}=e,{showdeletenotification:s=!1}=e,{currency:l=""}=e,{lang:u="en"}=e,{separatelimits:d="true"}=e,{clientstyling:c=""}=e,{clientstylingurl:y=""}=e,{mbsource:v}=e,{translationurl:p=""}=e;const k=()=>{fetch(p).then(g=>g.json()).then(g=>{Object.keys(g).forEach(S=>{_e(S,g[S])})}).catch(g=>{console.log(g)})};Object.keys(Le).forEach(m=>{_e(m,Le[m])});let f,h,w=!1,_=!1,b="",x=!1,W=0,M=0,V="",E=window.navigator.userAgent,B=n.getDevice(E)!=="PC",j=new Array(3).fill(0),C={},Y=[],H=[],D=!1,J=[];const Z={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let N=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],$=[{period:"Daily",values:["10000","20000","50000","No limit","Custom"]},{period:"Weekly",values:["10000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["50000","100000","200000","No limit","Custom"]}],ae=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],ee=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],Q=[{period:"Daily",values:["500","1000","1430","No limit","Custom"]},{period:"Weekly",values:["5000","7000","10000","No limit","Custom"]},{period:"Monthly",values:["20000","30000","43000","No limit","Custom"]}];const te=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),ie=new Map([["Deposit Limit",$],["Time Limit",Q],["Wagering Limit",ae],["Loss Limit",ee]]),X=()=>{i(7,w=!0)},U=()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},I=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},F=()=>{if(x){f==="Time Limit"?N.forEach(g=>{if(d=="true"){if(g.value!=0){let S={period:g.period,minutes:g.value};Y.push(S)}}else C.forEach(S=>{S.period===g.period&&(S.minutes=g.value)})}):N.forEach(g=>{if(d=="true"){if(g.value!=0){let S={period:g.period,amount:g.value,currency:l};Y.push(S)}}else C.forEach(S=>{S.period===g.period&&(S.amount=g.value,S.currency=l)})});let m={};d=="true"?m={[te.get(f)]:[...Y]}:m={[te.get(f)]:[...C]},Y.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:m,limitsCategory:te.get(f)},window.location.href),i(15,D=!1)}},L=(m,g,S,P)=>{switch(m.amount){case"Custom":if(f=="Time Limit")if(i(10,W=60),m.period==="Daily"?i(11,M=1440):m.period=="Weekly"?i(11,M=10080):i(11,M=43200),m.value&&Z.time.test(m.value)&&m.value>W&&m.value<=M){i(13,j[g]=0,j);let z=P[g];m.period==z.period&&m.value==z.amount?(i(15,D=!1),O(m,P)):i(15,D=!0)}else i(13,j[g]=1,j),i(15,D=!1);else m.value&&Z.amount.test(m.value)?(i(13,j[g]=0,j),m.period==P[g].period&&m.value==P[g].amount?(i(15,D=!!D),O(m,P)):i(15,D=!0),d!="true"&&N.forEach(z=>{z.value==0&&i(15,D=!1)})):(i(13,j[g]=1,j),i(15,D=!1));break;default:m.period==P[g].period?(O(m,P),i(15,D=m.value!=P[g].amount)):i(15,D=!0),N.forEach(z=>{(z.value==0&&d!="true"||z.amount=="Custom"&&!Z.amount.test(z.value.toString()))&&i(15,D=!1)});break}},O=(m,g)=>{let S=JSON.parse(JSON.stringify(g));N.forEach(P=>{S.forEach(z=>{P.period==m.period&&(P.amount!=="Custom"&&P.amount!=="No limit"?P.value=JSON.parse(P.amount):P.amount==="No limit"&&(P.value=0)),z.period===P.period&&(z.amount=P.value)})})},He=(m,g,S,P)=>{let z=m.values;!g.amount||g.amount==="No limit"?S.forEach(G=>{G.period===g.period&&(G.amount=g.amount,G.value=0)}):z.includes(JSON.stringify(g.amount))?S.forEach(G=>{G.period===g.period&&(G.amount=JSON.stringify(g.amount),G.value=g.amount)}):S.forEach(G=>{G.period===g.period&&(G.amount="Custom",G.value=g.amount)})},ze=m=>{H.forEach(g=>{m.period===g.period&&(f==="Time Limit"&&(i(10,W=60),m.period==="Daily"?i(11,M=1440):m.period=="Weekly"?i(11,M=10080):i(11,M=43200)),g.values.indexOf(m.amount)>-1&&(m.amount==="No limit"?m.amount=0:m.amount=JSON.parse(m.amount)))})},Ve=()=>{J.forEach(m=>{ze(m)}),C.forEach(m=>{H.forEach(g=>{m.period===g.period&&He(g,m,N)})})},he=()=>{let m="";m=f==="Time Limit"?"time limit":f==="Deposit Limit"?"deposit limit":f==="Wagering Limit"?"wagering limit":"loss limit",i(12,V=a("changeLimitsText",{values:{limit:m}}))},fe=()=>{mi(u),he(),i(16,J=JSON.parse(JSON.stringify(r))),i(14,C=JSON.parse(JSON.stringify(r))),H=f==="Wagering Limit"?ae:f==="Loss Limit"?ee:f==="Deposit Limit"?$:f==="Time Limit"?Q:[],Ve()},ge=m=>{if(m.data)switch(m.data.type){case"LanguageChanged":i(0,u=m.data.lang),he();break;case"EditPlayerLimit":i(6,f=m.data.name),i(9,b=a(f.charAt(0).toLowerCase()+f.substring(1).replace(/\s/g,""))),fe(),i(8,_=!0);break;case"ClosePlayerAccountGamingLimitsPopup":i(7,w=!1);break;case"GamingLimitsConfirmChanges":x=!0,F();break;case"CancelGamingLimitsChanges":i(8,_=!1),setTimeout(()=>{i(8,_=!0)},10),fe(),i(15,D=!1),x=!1;break}};n.onMount(()=>(window.addEventListener("message",ge,!1),()=>{window.removeEventListener("message",ge)}));function Ge(m){N[m].amount=n.select_value(this),i(17,N),i(20,ie),i(6,f)}function Re(m){N[m].value=n.to_number(this.value),i(17,N),i(20,ie),i(6,f)}function Qe(m){N[m].value=n.to_number(this.value),i(17,N),i(20,ie),i(6,f)}const Xe=()=>I();function Je(m){n.binding_callbacks[m?"unshift":"push"](()=>{h=m,i(5,h)})}return t.$$set=m=>{"limitsdata"in m&&i(1,r=m.limitsdata),"showsuccessnotification"in m&&i(2,o=m.showsuccessnotification),"showdeletenotification"in m&&i(3,s=m.showdeletenotification),"currency"in m&&i(4,l=m.currency),"lang"in m&&i(0,u=m.lang),"separatelimits"in m&&i(25,d=m.separatelimits),"clientstyling"in m&&i(26,c=m.clientstyling),"clientstylingurl"in m&&i(27,y=m.clientstylingurl),"mbsource"in m&&i(28,v=m.mbsource),"translationurl"in m&&i(29,p=m.translationurl)},t.$$.update=()=>{t.$$.dirty[0]&12&&o&&s&&fe(),t.$$.dirty[0]&3,t.$$.dirty[0]&67108896&&c&&h&&n.setClientStyling(h,c),t.$$.dirty[0]&134217760&&y&&h&&n.setClientStylingURL(h,y),t.$$.dirty[0]&268435488&&v&&h&&n.setStreamStyling(h,`${v}.Style`),t.$$.dirty[0]&536870912&&p&&k()},[u,r,o,s,l,h,f,w,_,b,W,M,V,j,C,D,J,N,a,B,ie,X,U,I,L,d,c,y,v,p,Ge,Re,Qe,Xe,Je]}class qe extends n.SvelteComponent{constructor(e){super(),n.init(this,e,gi,hi,n.safe_not_equal,{limitsdata:1,showsuccessnotification:2,showdeletenotification:3,currency:4,lang:0,separatelimits:25,clientstyling:26,clientstylingurl:27,mbsource:28,translationurl:29},di,[-1,-1,-1])}get limitsdata(){return this.$$.ctx[1]}set limitsdata(e){this.$$set({limitsdata:e}),n.flush()}get showsuccessnotification(){return this.$$.ctx[2]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),n.flush()}get showdeletenotification(){return this.$$.ctx[3]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),n.flush()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),n.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),n.flush()}get separatelimits(){return this.$$.ctx[25]}set separatelimits(e){this.$$set({separatelimits:e}),n.flush()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(e){this.$$set({clientstyling:e}),n.flush()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),n.flush()}get mbsource(){return this.$$.ctx[28]}set mbsource(e){this.$$set({mbsource:e}),n.flush()}get translationurl(){return this.$$.ctx[29]}set translationurl(e){this.$$set({translationurl:e}),n.flush()}}n.create_custom_element(qe,{limitsdata:{},showsuccessnotification:{type:"Boolean"},showdeletenotification:{type:"Boolean"},currency:{},lang:{},separatelimits:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);const vi=Object.freeze(Object.defineProperty({__proto__:null,default:qe},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountGamingLimitsGroupEdit_ce=vi;exports.endOfDay=rt;exports.format=le;exports.getYear=si;exports.startOfDay=it;exports.subDays=li;exports.subMonths=ui;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ge, $ as he, S as Le, i as fe,
|
|
1
|
+
import { a as ge, $ as he, S as Le, i as fe, f as A, c as ve, s as Te, b as Se, e as w, g as a, k as x, o as D, p as R, q as we, X as be, v as _e, x as q, y as Ae, z as Pe, A as ke, O as J, t as C, d as K, w as V, h as F, l as g, m as Ie, n as E, P as Ce, Y as Z, B as Ee } from "./GeneralLogout-BvHI6IRl.js";
|
|
2
2
|
function $(t, e) {
|
|
3
3
|
ge(t, e);
|
|
4
4
|
}
|
|
@@ -257,7 +257,7 @@ const X = {
|
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
function xe(t) {
|
|
260
|
-
|
|
260
|
+
Se(t, "svelte-19ml84y", ':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-19ml84y.svelte-19ml84y,.svelte-19ml84y.svelte-19ml84y::before,.svelte-19ml84y.svelte-19ml84y::after{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-19ml84y.svelte-19ml84y{color:var(--emw--color-white, #FFFFFF)}button.svelte-19ml84y.svelte-19ml84y{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-19ml84y.svelte-19ml84y{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton.svelte-19ml84y svg.svelte-19ml84y{width:28px;height:auto;margin-left:-4px}.extended.svelte-19ml84y.svelte-19ml84y{transform:rotate(180deg)}.HistoryWrapper.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column}.HistoryWrapper.Desktop.svelte-19ml84y.svelte-19ml84y{width:320px;padding:0 12px;margin:12px auto}.hidden.svelte-19ml84y.svelte-19ml84y{display:none}.HistoryRow.svelte-19ml84y.svelte-19ml84y{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column;gap:4px}.LimitType.svelte-19ml84y.svelte-19ml84y{font-size:1.3rem}.LimitAmountPeriod.svelte-19ml84y.svelte-19ml84y{color:#999}.LimitContainer.svelte-19ml84y.svelte-19ml84y{animation:svelte-19ml84y-animateEntry 0.7s ease-in}@keyframes svelte-19ml84y-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}');
|
|
261
261
|
}
|
|
262
262
|
function ee(t, e, i) {
|
|
263
263
|
const r = t.slice();
|
|
@@ -267,7 +267,7 @@ function Re(t) {
|
|
|
267
267
|
let e, i, r, o = (
|
|
268
268
|
/*$_*/
|
|
269
269
|
t[9]("expandLimits") + ""
|
|
270
|
-
), n, m, l, v, L, d, p, u, f, P =
|
|
270
|
+
), n, m, l, v, L, d, p, u, f, P = J(
|
|
271
271
|
/*lazyShowedHistoryArray*/
|
|
272
272
|
t[7]
|
|
273
273
|
), T = [];
|
|
@@ -275,7 +275,7 @@ function Re(t) {
|
|
|
275
275
|
T[h] = te(ee(t, P, h));
|
|
276
276
|
return {
|
|
277
277
|
c() {
|
|
278
|
-
e = w("div"), i = w("div"), r = w("button"), n =
|
|
278
|
+
e = w("div"), i = w("div"), r = w("button"), n = C(o), m = K(), l = V("svg"), v = V("path"), L = V("path"), d = K(), p = w("div");
|
|
279
279
|
for (let h = 0; h < T.length; h += 1)
|
|
280
280
|
T[h].c();
|
|
281
281
|
a(v, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), a(v, "class", "svelte-19ml84y"), a(L, "d", "M0 0h36v36h-36z"), a(L, "fill", "none"), a(L, "class", "svelte-19ml84y"), a(l, "class", "ExpandArrow svelte-19ml84y"), a(l, "xmlns", "http://www.w3.org/2000/svg"), a(l, "width", "36"), a(l, "height", "36"), a(l, "viewBox", "0 0 36 36"), a(l, "fill", "#999"), F(
|
|
@@ -292,10 +292,10 @@ function Re(t) {
|
|
|
292
292
|
(t[10] ? "Desktop" : "") + " svelte-19ml84y"), a(e, "class", "player-account-gaming-limits-history-2 svelte-19ml84y");
|
|
293
293
|
},
|
|
294
294
|
m(h, b) {
|
|
295
|
-
|
|
295
|
+
x(h, e, b), g(e, i), g(i, r), g(r, n), g(r, m), g(r, l), g(l, v), g(l, L), g(i, d), g(i, p);
|
|
296
296
|
for (let y = 0; y < T.length; y += 1)
|
|
297
297
|
T[y] && T[y].m(p, null);
|
|
298
|
-
u || (f =
|
|
298
|
+
u || (f = Ie(
|
|
299
299
|
r,
|
|
300
300
|
"click",
|
|
301
301
|
/*toggleHistoryDisplayArea*/
|
|
@@ -305,7 +305,7 @@ function Re(t) {
|
|
|
305
305
|
p(h, b) {
|
|
306
306
|
if (b[0] & /*$_*/
|
|
307
307
|
512 && o !== (o = /*$_*/
|
|
308
|
-
h[9]("expandLimits") + "") &&
|
|
308
|
+
h[9]("expandLimits") + "") && E(n, o), b[0] & /*extended*/
|
|
309
309
|
256 && F(
|
|
310
310
|
l,
|
|
311
311
|
"extended",
|
|
@@ -313,7 +313,7 @@ function Re(t) {
|
|
|
313
313
|
h[8]
|
|
314
314
|
), b[0] & /*numberofentries, limitContainer, lazyShowedHistoryArray, $_*/
|
|
315
315
|
650) {
|
|
316
|
-
P =
|
|
316
|
+
P = J(
|
|
317
317
|
/*lazyShowedHistoryArray*/
|
|
318
318
|
h[7]
|
|
319
319
|
);
|
|
@@ -335,14 +335,14 @@ function Re(t) {
|
|
|
335
335
|
);
|
|
336
336
|
},
|
|
337
337
|
d(h) {
|
|
338
|
-
h &&
|
|
338
|
+
h && R(e), Ce(T, h), u = !1, f();
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
function Oe(t) {
|
|
343
343
|
return { c: D, m: D, p: D, d: D };
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function We(t) {
|
|
346
346
|
let e, i = (
|
|
347
347
|
/*lang*/
|
|
348
348
|
(t[0] ? (
|
|
@@ -352,10 +352,10 @@ function je(t) {
|
|
|
352
352
|
), r;
|
|
353
353
|
return {
|
|
354
354
|
c() {
|
|
355
|
-
e = w("p"), r =
|
|
355
|
+
e = w("p"), r = C(i), a(e, "class", "svelte-19ml84y");
|
|
356
356
|
},
|
|
357
357
|
m(o, n) {
|
|
358
|
-
|
|
358
|
+
x(o, e, n), g(e, r);
|
|
359
359
|
},
|
|
360
360
|
p(o, n) {
|
|
361
361
|
n[0] & /*lang, $_*/
|
|
@@ -363,14 +363,14 @@ function je(t) {
|
|
|
363
363
|
(o[0] ? (
|
|
364
364
|
/*$_*/
|
|
365
365
|
o[9]("error")
|
|
366
|
-
) : "500 Server Error") + "") &&
|
|
366
|
+
) : "500 Server Error") + "") && E(r, i);
|
|
367
367
|
},
|
|
368
368
|
d(o) {
|
|
369
|
-
o &&
|
|
369
|
+
o && R(e);
|
|
370
370
|
}
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function je(t) {
|
|
374
374
|
let e, i, r, o = (
|
|
375
375
|
/*history*/
|
|
376
376
|
t[37].type + ""
|
|
@@ -383,22 +383,22 @@ function We(t) {
|
|
|
383
383
|
), p;
|
|
384
384
|
return {
|
|
385
385
|
c() {
|
|
386
|
-
e = w("div"), i = w("span"), r = w("span"), n =
|
|
386
|
+
e = w("div"), i = w("span"), r = w("span"), n = C(o), m = w("span"), v = C(l), L = w("span"), p = C(d), a(r, "class", "LimitType svelte-19ml84y"), a(m, "class", "LimitAmountPeriod svelte-19ml84y"), a(i, "class", "GeneralLimitInformation svelte-19ml84y"), a(L, "class", "DateLimitInformation svelte-19ml84y"), a(e, "class", "HistoryRow svelte-19ml84y");
|
|
387
387
|
},
|
|
388
388
|
m(u, f) {
|
|
389
|
-
|
|
389
|
+
x(u, e, f), g(e, i), g(i, r), g(r, n), g(i, m), g(m, v), g(e, L), g(L, p);
|
|
390
390
|
},
|
|
391
391
|
p(u, f) {
|
|
392
392
|
f[0] & /*lazyShowedHistoryArray*/
|
|
393
393
|
128 && o !== (o = /*history*/
|
|
394
|
-
u[37].type + "") &&
|
|
394
|
+
u[37].type + "") && E(n, o), f[0] & /*lazyShowedHistoryArray*/
|
|
395
395
|
128 && l !== (l = /*history*/
|
|
396
|
-
u[37].amount + "") &&
|
|
396
|
+
u[37].amount + "") && E(v, l), f[0] & /*lazyShowedHistoryArray*/
|
|
397
397
|
128 && d !== (d = /*history*/
|
|
398
|
-
u[37].date + "") &&
|
|
398
|
+
u[37].date + "") && E(p, d);
|
|
399
399
|
},
|
|
400
400
|
d(u) {
|
|
401
|
-
u &&
|
|
401
|
+
u && R(e);
|
|
402
402
|
}
|
|
403
403
|
};
|
|
404
404
|
}
|
|
@@ -415,22 +415,22 @@ function ze(t) {
|
|
|
415
415
|
), p;
|
|
416
416
|
return {
|
|
417
417
|
c() {
|
|
418
|
-
e = w("div"), i = w("span"), r = w("span"), n =
|
|
418
|
+
e = w("div"), i = w("span"), r = w("span"), n = C(o), m = w("span"), v = C(l), L = w("span"), p = C(d), a(r, "class", "LimitType svelte-19ml84y"), a(m, "class", "LimitAmountPeriod svelte-19ml84y"), a(i, "class", "GeneralLimitInformation svelte-19ml84y"), a(L, "class", "DateLimitInformation svelte-19ml84y"), a(e, "class", "HistoryRow svelte-19ml84y");
|
|
419
419
|
},
|
|
420
420
|
m(u, f) {
|
|
421
|
-
|
|
421
|
+
x(u, e, f), g(e, i), g(i, r), g(r, n), g(i, m), g(m, v), g(e, L), g(L, p);
|
|
422
422
|
},
|
|
423
423
|
p(u, f) {
|
|
424
424
|
f[0] & /*lazyShowedHistoryArray*/
|
|
425
425
|
128 && o !== (o = /*history*/
|
|
426
|
-
u[37].type + "") &&
|
|
426
|
+
u[37].type + "") && E(n, o), f[0] & /*$_*/
|
|
427
427
|
512 && l !== (l = /*$_*/
|
|
428
|
-
u[9]("limitRemoved") + "") &&
|
|
428
|
+
u[9]("limitRemoved") + "") && E(v, l), f[0] & /*lazyShowedHistoryArray*/
|
|
429
429
|
128 && d !== (d = /*history*/
|
|
430
|
-
u[37].date + "") &&
|
|
430
|
+
u[37].date + "") && E(p, d);
|
|
431
431
|
},
|
|
432
432
|
d(u) {
|
|
433
|
-
u &&
|
|
433
|
+
u && R(e);
|
|
434
434
|
}
|
|
435
435
|
};
|
|
436
436
|
}
|
|
@@ -442,7 +442,7 @@ function te(t) {
|
|
|
442
442
|
function n(d, p) {
|
|
443
443
|
return (
|
|
444
444
|
/*history*/
|
|
445
|
-
d[37].removed ? ze :
|
|
445
|
+
d[37].removed ? ze : je
|
|
446
446
|
);
|
|
447
447
|
}
|
|
448
448
|
let m = n(t), l = m(t);
|
|
@@ -462,7 +462,7 @@ function te(t) {
|
|
|
462
462
|
) + " svelte-19ml84y");
|
|
463
463
|
},
|
|
464
464
|
m(d, p) {
|
|
465
|
-
|
|
465
|
+
x(d, e, p), l.m(e, null), g(e, i), v();
|
|
466
466
|
},
|
|
467
467
|
p(d, p) {
|
|
468
468
|
t = d, m === (m = n(t)) && l ? l.p(t, p) : (l.d(1), l = m(t), l && (l.c(), l.m(e, i))), p[0] & /*numberofentries*/
|
|
@@ -475,7 +475,7 @@ function te(t) {
|
|
|
475
475
|
t[39], v());
|
|
476
476
|
},
|
|
477
477
|
d(d) {
|
|
478
|
-
d &&
|
|
478
|
+
d && R(e), l.d(), L();
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
481
|
}
|
|
@@ -484,7 +484,7 @@ function He(t) {
|
|
|
484
484
|
function i(n, m) {
|
|
485
485
|
return (
|
|
486
486
|
/*hasErrors*/
|
|
487
|
-
n[6] ?
|
|
487
|
+
n[6] ? We : (
|
|
488
488
|
/*isLoading*/
|
|
489
489
|
n[4] ? Oe : Re
|
|
490
490
|
)
|
|
@@ -496,7 +496,7 @@ function He(t) {
|
|
|
496
496
|
e = w("div"), o.c(), a(e, "class", "svelte-19ml84y");
|
|
497
497
|
},
|
|
498
498
|
m(n, m) {
|
|
499
|
-
|
|
499
|
+
x(n, e, m), o.m(e, null), t[23](e);
|
|
500
500
|
},
|
|
501
501
|
p(n, m) {
|
|
502
502
|
r === (r = i(n)) && o ? o.p(n, m) : (o.d(1), o = r(n), o && (o.c(), o.m(e, null)));
|
|
@@ -504,14 +504,14 @@ function He(t) {
|
|
|
504
504
|
i: D,
|
|
505
505
|
o: D,
|
|
506
506
|
d(n) {
|
|
507
|
-
n &&
|
|
507
|
+
n && R(e), o.d(), t[23](null);
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
511
|
function Me(t, e, i) {
|
|
512
512
|
let r;
|
|
513
|
-
|
|
514
|
-
let o = window.navigator.userAgent, n = !
|
|
513
|
+
we(t, Ee, (s) => i(9, r = s));
|
|
514
|
+
let o = window.navigator.userAgent, n = !be(o), { lang: m = "" } = e, { userid: l = "" } = e, { session: v = "" } = e, { endpoint: L = "" } = e, { apiversion: d = "" } = e, { numberofentries: p = "10" } = e, { customcurrencysymbols: u = "" } = e, { limitformat: f = "" } = e, { clientstyling: P = "" } = e, { clientstylingurl: T = "" } = e, { mbsource: h } = e, { translationurl: b = "" } = e, y, k = new Array(), B = parseInt(p, 10), N = !1, W = !0, j = [], z = [], H = !0, U = !1, O = { EUR: "€", RON: "lei", TRY: "₺" };
|
|
515
515
|
const ie = () => {
|
|
516
516
|
fetch(b).then((c) => c.json()).then((c) => {
|
|
517
517
|
Object.keys(c).forEach((_) => {
|
|
@@ -533,11 +533,11 @@ function Me(t, e, i) {
|
|
|
533
533
|
};
|
|
534
534
|
fetch(c.href, _).then((S) => {
|
|
535
535
|
if (S.status >= 300)
|
|
536
|
-
throw i(4,
|
|
536
|
+
throw i(4, W = !1), i(6, N = !0), new Error("There was an error fetching the limits");
|
|
537
537
|
return S.json();
|
|
538
538
|
}).then(
|
|
539
539
|
(S) => {
|
|
540
|
-
S.length && (
|
|
540
|
+
S.length && (j = re(S), i(7, z = j.slice(0, B))), i(4, W = !1);
|
|
541
541
|
},
|
|
542
542
|
(S) => {
|
|
543
543
|
console.error("There was an error", S), i(6, N = !0);
|
|
@@ -576,7 +576,7 @@ function Me(t, e, i) {
|
|
|
576
576
|
};
|
|
577
577
|
let Q = new IntersectionObserver((s) => {
|
|
578
578
|
s.forEach((c) => {
|
|
579
|
-
c.isIntersecting && (B += parseInt(p, 10) || 10, z.length <
|
|
579
|
+
c.isIntersecting && (B += parseInt(p, 10) || 10, z.length < j.length && i(7, z = j.slice(0, B)));
|
|
580
580
|
});
|
|
581
581
|
});
|
|
582
582
|
const ne = () => {
|
|
@@ -592,16 +592,16 @@ function Me(t, e, i) {
|
|
|
592
592
|
}, me = () => {
|
|
593
593
|
De(m);
|
|
594
594
|
};
|
|
595
|
-
|
|
595
|
+
_e(() => () => {
|
|
596
596
|
Q.unobserve(k[k.length - 1]);
|
|
597
597
|
});
|
|
598
598
|
function ye(s, c) {
|
|
599
|
-
|
|
599
|
+
q[s ? "unshift" : "push"](() => {
|
|
600
600
|
k[c] = s, i(3, k);
|
|
601
601
|
});
|
|
602
602
|
}
|
|
603
603
|
function de(s) {
|
|
604
|
-
|
|
604
|
+
q[s ? "unshift" : "push"](() => {
|
|
605
605
|
y = s, i(2, y);
|
|
606
606
|
});
|
|
607
607
|
}
|
|
@@ -611,18 +611,18 @@ function Me(t, e, i) {
|
|
|
611
611
|
t.$$.dirty[0] & /*customcurrencysymbols*/
|
|
612
612
|
65536 && u && ae(), t.$$.dirty[0] & /*endpoint, userid, session, apiversion*/
|
|
613
613
|
61440 && L && l && v && d && se(), t.$$.dirty[0] & /*limitContainer, isLoading, hidden*/
|
|
614
|
-
56 && k[0] && !
|
|
614
|
+
56 && k[0] && !W && !H && ne(), t.$$.dirty[0] & /*lang*/
|
|
615
615
|
1 && m && me(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
616
|
-
262148 && P && y &&
|
|
617
|
-
524292 && T && y &&
|
|
618
|
-
1048580 && h && y &&
|
|
616
|
+
262148 && P && y && Ae(y, P), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
617
|
+
524292 && T && y && Pe(y, T), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
618
|
+
1048580 && h && y && ke(y, `${h}.Style`), t.$$.dirty[0] & /*translationurl, customStylingContainer*/
|
|
619
619
|
2097156 && b && y && ie();
|
|
620
620
|
}, [
|
|
621
621
|
m,
|
|
622
622
|
p,
|
|
623
623
|
y,
|
|
624
624
|
k,
|
|
625
|
-
|
|
625
|
+
W,
|
|
626
626
|
H,
|
|
627
627
|
N,
|
|
628
628
|
z,
|
|
@@ -651,7 +651,7 @@ class Fe extends Le {
|
|
|
651
651
|
e,
|
|
652
652
|
Me,
|
|
653
653
|
He,
|
|
654
|
-
|
|
654
|
+
Te,
|
|
655
655
|
{
|
|
656
656
|
lang: 0,
|
|
657
657
|
userid: 12,
|
|
@@ -743,7 +743,7 @@ class Fe extends Le {
|
|
|
743
743
|
this.$$set({ translationurl: e }), A();
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
|
-
|
|
746
|
+
ve(Fe, { lang: {}, userid: {}, session: {}, endpoint: {}, apiversion: {}, numberofentries: {}, customcurrencysymbols: {}, limitformat: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
747
747
|
export {
|
|
748
748
|
Fe as default
|
|
749
749
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var oe=Object.defineProperty;var F=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var N=(i,t,s)=>t in i?oe(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s,z=(i,t)=>{for(var s in t||(t={}))ne.call(t,s)&&N(i,s,t[s]);if(F)for(var s of F(t))le.call(t,s)&&N(i,s,t[s]);return i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-Dzu2Sl-x.cjs");function U(i,t){e.addMessages(i,t)}function ae(i){e.$locale.set(i)}const M={en:{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},de:{expandLimits:"LIMIT-VERLAUF",daily:"pro Tag",weekly:"pro Woche",monthly:"pro Monat",loss:"Verlustlimit",deposit:"Einzahlungslimit",wagering:"Einsatzlimit",max:"Einsatzlimit",loading:"Lädt ...",error:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",limitRemoved:"Limit entfernt",historyProductTypeSports:"Sport",historyProductTypeAll:"Alle",historyProductTypeCasino:"Slots",historyLimitTypeDeposit:"Einzahlungslimit",historyLimitTypeWagering:"Einsatzlimit",historyLimitTypeLoss:"Verlustlimit"},hr:{expandLimits:"POVIJEST OGRANIČENJA",daily:"dnevno",weekly:"tjedno",monthly:"mjesečno",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wagering:"Ograničenje igranja",max:"Ograničenje uloga",loading:"Učitavanje povijesti ograničenja...",error:"Nešto je pošlo po zlu. Molimo vas pokušajte ponovno.",limitRemoved:"Ograničenje uklonjeno",historyProductTypeSports:"Sportovi",historyProductTypeAll:"Sve",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Ograničenje uplate",historyLimitTypeWagering:"Ograničenje igranja",historyLimitTypeLoss:"Ograničenje gubitka",wageringSports:"Ograničenje uloga"},sl:{expandLimits:"LIMIT ZGODOVINA",daily:"na dan",weekly:"na teden",monthly:"na mesec",loss:"Limit izgube",deposit:"Limit vplačila",wagering:"Limit na vložek",max:"Limit vložkov",loading:"Nalaga...",error:"Nekaj je šlo narobe. Prosim poskusite ponovno.",limitRemoved:"Limit odstranjen",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},pl:{expandLimits:"HISTORIA LIMITU",daily:"na dzień",weekly:"na tydzień",monthly:"na miesiąc",loss:"Limit Strat",deposit:"Limit depozytów",wagering:"Limit Stawek",max:"Limit stawek",loading:"Ładowanie...",error:"Coś poszło nie tak. Proszę spróbuj ponownie.",limitRemoved:"Usunięty limit",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"zh-hk":{expandLimits:"极限历史",daily:"每天",weekly:"每个星期",monthly:"每月",loss:"损失限额",deposit:"存款限额",wagering:"投注限额",loading:"加载请稍候...",error:"500 - 服务器错误",limitRemoved:"移除限制",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},fr:{expandLimits:"LIMITER L'HISTORIQUE",daily:"par jour",weekly:"par semaine",monthly:"par mois",loss:"Limite de perte",deposit:"Limite de dépôt",wagering:"Limite de mise",loading:"Chargement, veuillez patienter...",error:"500 - Erreur de serveur",limitRemoved:"Limite supprimée",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},ro:{expandLimits:"ISTORIC LIMITE",daily:"pe zi",weekly:"pe saptamana",monthly:"pe luna",loss:"Limita de pierdere",deposit:"Limita de incarcare",loading:"Se incarca, va rugam asteptati...",error:"500 - Eroare de server",limitRemoved:"Limita eliminata",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Limita depunere",historyLimitTypeWagering:"Limita pariere",historyLimitTypeLoss:"Limita pierdere"},es:{expandLimits:"HISTORIAL DE LÍMITES",daily:"por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdida",deposit:"Límite de depósito",wagering:"Límite de apuestas",max:"Límite de apuesta",loading:"Cargando historial de límites…",error:"Algo salió mal. Por favor inténtalo de nuevo.",limitRemoved:"Límite eliminado",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"pt-br":{expandLimits:"HISTÓRICO DE LIMITE",daily:"Por dia",weekly:"por semana",monthly:"por mês",loss:"Limite de perda",deposit:"Limite de depósito",wagering:"Limite de Quantidade de Apostas",max:"Limite de apostas",wageringSports:"Limite de Quantidade de Apostas Esportivas",Loading:"Carregando histórico de limite...",error:"Algo deu errado. Por favor, tente novamente",limitRemoved:"Limite removido",historyProductTypeSports:"Esportes",historyProductTypeAll:"Todos",historyProductTypeCasino:"casino",historyLimitTypeDeposit:"Limite de depósito",historyLimitTypeWagering:"Limite de valor da aposta",historyLimitTypeLoss:"Limite de perda"},"es-mx":{expandLimits:"HISTORIAL DE LÍMITES",daily:"Por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdidas",deposit:"Límite de depósito",wagering:"Límite de monto de apuestas",max:"Límite de apuestas",wageringSports:"Límite de monto de apuestas deportivas",Loading:"Cargando historial de límites...",error:"Algo salió mal. Por favor intente de nuevo",limitRemoved:"Límite removido",historyProductTypeSports:"Deportes",historyProductTypeAll:"Todo",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Límite de depósito",historyLimitTypeWagering:"Límite de monto de apuesta",historyLimitTypeLoss:"Límite de pérdida"},tr:{expandLimits:"SINIR GEÇMİŞİ",daily:"günlük",weekly:"haftada",monthly:"her ay",loss:"Kayıp Limiti",deposit:"Para Yatırma Limiti",wagering:"Bahis Limiti",max:"Bahis limiti",wageringSports:"Bahis Limiti",loading:"Limit geçmişi yükleniyor...",error:"Bir şeyler yanlış gitti. Lütfen tekrar deneyin.",limitRemoved:"Sınır kaldırıldı",historyProductTypeSports:"Spor Dalları",historyProductTypeAll:"Tüm",historyProductTypeCasino:"Kumarhane",historyLimitTypeDeposit:"Para Yatırma Limiti",historyLimitTypeWagering:"Bahis Limiti",historyLimitTypeLoss:"Kayıp Limiti"},"en-us":{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"}};function me(i){e.append_styles(i,"svelte-19ml84y",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-19ml84y.svelte-19ml84y,.svelte-19ml84y.svelte-19ml84y::before,.svelte-19ml84y.svelte-19ml84y::after{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-19ml84y.svelte-19ml84y{color:var(--emw--color-white, #FFFFFF)}button.svelte-19ml84y.svelte-19ml84y{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-19ml84y.svelte-19ml84y{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton.svelte-19ml84y svg.svelte-19ml84y{width:28px;height:auto;margin-left:-4px}.extended.svelte-19ml84y.svelte-19ml84y{transform:rotate(180deg)}.HistoryWrapper.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column}.HistoryWrapper.Desktop.svelte-19ml84y.svelte-19ml84y{width:320px;padding:0 12px;margin:12px auto}.hidden.svelte-19ml84y.svelte-19ml84y{display:none}.HistoryRow.svelte-19ml84y.svelte-19ml84y{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column;gap:4px}.LimitType.svelte-19ml84y.svelte-19ml84y{font-size:1.3rem}.LimitAmountPeriod.svelte-19ml84y.svelte-19ml84y{color:#999}.LimitContainer.svelte-19ml84y.svelte-19ml84y{animation:svelte-19ml84y-animateEntry 0.7s ease-in}@keyframes svelte-19ml84y-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}')}function B(i,t,s){const o=i.slice();return o[37]=t[s],o[38]=t,o[39]=s,o}function ye(i){let t,s,o,n=i[9]("expandLimits")+"",a,m,l,f,h,d,p,u,L,w=e.ensure_array_like(i[7]),v=[];for(let g=0;g<w.length;g+=1)v[g]=G(B(i,w,g));return{c(){t=e.element("div"),s=e.element("div"),o=e.element("button"),a=e.text(n),m=e.space(),l=e.svg_element("svg"),f=e.svg_element("path"),h=e.svg_element("path"),d=e.space(),p=e.element("div");for(let g=0;g<v.length;g+=1)v[g].c();e.attr(f,"d","M10.5 15l7.5 7.5 7.5-7.5z"),e.attr(f,"class","svelte-19ml84y"),e.attr(h,"d","M0 0h36v36h-36z"),e.attr(h,"fill","none"),e.attr(h,"class","svelte-19ml84y"),e.attr(l,"class","ExpandArrow svelte-19ml84y"),e.attr(l,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"width","36"),e.attr(l,"height","36"),e.attr(l,"viewBox","0 0 36 36"),e.attr(l,"fill","#999"),e.toggle_class(l,"extended",i[8]),e.attr(o,"class","ExpandButton svelte-19ml84y"),e.attr(p,"class","HistoryDisplayArea svelte-19ml84y"),e.toggle_class(p,"hidden",i[5]),e.attr(s,"class","HistoryWrapper "+(i[10]?"Desktop":"")+" svelte-19ml84y"),e.attr(t,"class","player-account-gaming-limits-history-2 svelte-19ml84y")},m(g,S){e.insert(g,t,S),e.append(t,s),e.append(s,o),e.append(o,a),e.append(o,m),e.append(o,l),e.append(l,f),e.append(l,h),e.append(s,d),e.append(s,p);for(let y=0;y<v.length;y+=1)v[y]&&v[y].m(p,null);u||(L=e.listen(o,"click",i[11]),u=!0)},p(g,S){if(S[0]&512&&n!==(n=g[9]("expandLimits")+"")&&e.set_data(a,n),S[0]&256&&e.toggle_class(l,"extended",g[8]),S[0]&650){w=e.ensure_array_like(g[7]);let y;for(y=0;y<w.length;y+=1){const b=B(g,w,y);v[y]?v[y].p(b,S):(v[y]=G(b),v[y].c(),v[y].m(p,null))}for(;y<v.length;y+=1)v[y].d(1);v.length=w.length}S[0]&32&&e.toggle_class(p,"hidden",g[5])},d(g){g&&e.detach(t),e.destroy_each(v,g),u=!1,L()}}}function de(i){return{c:e.noop,m:e.noop,p:e.noop,d:e.noop}}function pe(i){let t,s=(i[0]?i[9]("error"):"500 Server Error")+"",o;return{c(){t=e.element("p"),o=e.text(s),e.attr(t,"class","svelte-19ml84y")},m(n,a){e.insert(n,t,a),e.append(t,o)},p(n,a){a[0]&513&&s!==(s=(n[0]?n[9]("error"):"500 Server Error")+"")&&e.set_data(o,s)},d(n){n&&e.detach(t)}}}function ue(i){let t,s,o,n=i[37].type+"",a,m,l=i[37].amount+"",f,h,d=i[37].date+"",p;return{c(){t=e.element("div"),s=e.element("span"),o=e.element("span"),a=e.text(n),m=e.element("span"),f=e.text(l),h=e.element("span"),p=e.text(d),e.attr(o,"class","LimitType svelte-19ml84y"),e.attr(m,"class","LimitAmountPeriod svelte-19ml84y"),e.attr(s,"class","GeneralLimitInformation svelte-19ml84y"),e.attr(h,"class","DateLimitInformation svelte-19ml84y"),e.attr(t,"class","HistoryRow svelte-19ml84y")},m(u,L){e.insert(u,t,L),e.append(t,s),e.append(s,o),e.append(o,a),e.append(s,m),e.append(m,f),e.append(t,h),e.append(h,p)},p(u,L){L[0]&128&&n!==(n=u[37].type+"")&&e.set_data(a,n),L[0]&128&&l!==(l=u[37].amount+"")&&e.set_data(f,l),L[0]&128&&d!==(d=u[37].date+"")&&e.set_data(p,d)},d(u){u&&e.detach(t)}}}function ce(i){let t,s,o,n=i[37].type+"",a,m,l=i[9]("limitRemoved")+"",f,h,d=i[37].date+"",p;return{c(){t=e.element("div"),s=e.element("span"),o=e.element("span"),a=e.text(n),m=e.element("span"),f=e.text(l),h=e.element("span"),p=e.text(d),e.attr(o,"class","LimitType svelte-19ml84y"),e.attr(m,"class","LimitAmountPeriod svelte-19ml84y"),e.attr(s,"class","GeneralLimitInformation svelte-19ml84y"),e.attr(h,"class","DateLimitInformation svelte-19ml84y"),e.attr(t,"class","HistoryRow svelte-19ml84y")},m(u,L){e.insert(u,t,L),e.append(t,s),e.append(s,o),e.append(o,a),e.append(s,m),e.append(m,f),e.append(t,h),e.append(h,p)},p(u,L){L[0]&128&&n!==(n=u[37].type+"")&&e.set_data(a,n),L[0]&512&&l!==(l=u[9]("limitRemoved")+"")&&e.set_data(f,l),L[0]&128&&d!==(d=u[37].date+"")&&e.set_data(p,d)},d(u){u&&e.detach(t)}}}function G(i){let t,s,o,n=i[39];function a(d,p){return d[37].removed?ce:ue}let m=a(i),l=m(i);const f=()=>i[22](t,n),h=()=>i[22](null,n);return{c(){t=e.element("div"),l.c(),s=e.space(),e.attr(t,"class",o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-19ml84y")},m(d,p){e.insert(d,t,p),l.m(t,null),e.append(t,s),f()},p(d,p){i=d,m===(m=a(i))&&l?l.p(i,p):(l.d(1),l=m(i),l&&(l.c(),l.m(t,s))),p[0]&2&&o!==(o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-19ml84y")&&e.attr(t,"class",o),n!==i[39]&&(h(),n=i[39],f())},d(d){d&&e.detach(t),l.d(),h()}}}function ge(i){let t;function s(a,m){return a[6]?pe:a[4]?de:ye}let o=s(i),n=o(i);return{c(){t=e.element("div"),n.c(),e.attr(t,"class","svelte-19ml84y")},m(a,m){e.insert(a,t,m),n.m(t,null),i[23](t)},p(a,m){o===(o=s(a))&&n?n.p(a,m):(n.d(1),n=o(a),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),n.d(),i[23](null)}}}function he(i,t,s){let o;e.component_subscribe(i,e.$format,r=>s(9,o=r));let n=window.navigator.userAgent,a=!e.isMobile(n),{lang:m=""}=t,{userid:l=""}=t,{session:f=""}=t,{endpoint:h=""}=t,{apiversion:d=""}=t,{numberofentries:p="10"}=t,{customcurrencysymbols:u=""}=t,{limitformat:L=""}=t,{clientstyling:w=""}=t,{clientstylingurl:v=""}=t,{mbsource:g}=t,{translationurl:S=""}=t,y,b=new Array,D=parseInt(p,10),R=!1,k=!0,I=[],C=[],E=!0,O=!1,A={EUR:"€",RON:"lei",TRY:"₺"};const Y=()=>{fetch(S).then(c=>c.json()).then(c=>{Object.keys(c).forEach(_=>{U(_,c[_])})}).catch(c=>{console.log(c)})};Object.keys(M).forEach(r=>{U(r,M[r])});const K=()=>{let r=d==="gmcore"?`/v2/player/${l}/transactions/limit`:`/v1/player/${l}/limits/monetary/history`,c=new URL(r,h);c.searchParams.append("startDate",`${new Date("2022").toISOString()}`),c.searchParams.append("endDate",`${new Date("2099").toISOString()}`),c.searchParams.append("limit","10000");let _={method:"GET",headers:{"X-SessionID":f}};fetch(c.href,_).then(T=>{if(T.status>=300)throw s(4,k=!1),s(6,R=!0),new Error("There was an error fetching the limits");return T.json()}).then(T=>{T.length&&(I=Q(T),s(7,C=I.slice(0,D))),s(4,k=!1)},T=>{console.error("There was an error",T),s(6,R=!0)})},Q=r=>{const c=!!M[m];return r.map(T=>{let P={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return P.amount=X(T),P.currency=c?A[T.limitCurrencyCode]:T.limitCurrencyCode,P.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(T.limitDate)),P.period=o(`${T.limitPeriod.toLowerCase()}`),P.type=d==="gmcore"?o(`historyLimitType${T.limitType.split(" ")[0]}`):o(`historyLimitType${T.limitType.split(" ")[0]}`)+" "+o(`historyProductType${T.limitProductType}`),P.removed=T.limitAmount===-1,P})},X=r=>{let c=L||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.limitAmount);if(!L){let re=A[r.limitCurrencyCode]||r.limitCurrencyCode;return`${c}${re}`}typeof r.limitAmount=="string"&&r.limitAmount.includes(",")&&(r.limitAmount=r.limitAmount.replaceAll(",",""));const _=c.match(/\{(\d+)decimals\}/),T=_?parseInt(_[1],10):2,P=_?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let x=parseFloat(r.limitAmount).toFixed(T);const[ie,j]=L.includes(".")?[",","."]:[".",","];let[W,se]=x.split(".");return W=W.replace(/\B(?=(\d{3})+(?!\d))/g,ie),x=`${W}${j}${se}`,c=c.replace("{currency}",A[r.limitCurrencyCode]||r.limitCurrencyCode).replace("{amount}",x.split(j)[0]).replace(P,x.split(j)[1]),c},q=()=>{s(5,E=!E),s(8,O=!O)};let H=new IntersectionObserver(r=>{r.forEach(c=>{c.isIntersecting&&(D+=parseInt(p,10)||10,C.length<I.length&&s(7,C=I.slice(0,D)))})});const J=()=>{H.observe(b[b.length-1])},Z=()=>{if(!u)return;let r={};u.split(",").forEach(c=>{let _=c.split(":");r[_[0].trim()]=_[1].trim()}),A=z(z({},A),r)},$=()=>{ae(m)};e.onMount(()=>()=>{H.unobserve(b[b.length-1])});function ee(r,c){e.binding_callbacks[r?"unshift":"push"](()=>{b[c]=r,s(3,b)})}function te(r){e.binding_callbacks[r?"unshift":"push"](()=>{y=r,s(2,y)})}return i.$$set=r=>{"lang"in r&&s(0,m=r.lang),"userid"in r&&s(12,l=r.userid),"session"in r&&s(13,f=r.session),"endpoint"in r&&s(14,h=r.endpoint),"apiversion"in r&&s(15,d=r.apiversion),"numberofentries"in r&&s(1,p=r.numberofentries),"customcurrencysymbols"in r&&s(16,u=r.customcurrencysymbols),"limitformat"in r&&s(17,L=r.limitformat),"clientstyling"in r&&s(18,w=r.clientstyling),"clientstylingurl"in r&&s(19,v=r.clientstylingurl),"mbsource"in r&&s(20,g=r.mbsource),"translationurl"in r&&s(21,S=r.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&65536&&u&&Z(),i.$$.dirty[0]&61440&&h&&l&&f&&d&&K(),i.$$.dirty[0]&56&&b[0]&&!k&&!E&&J(),i.$$.dirty[0]&1&&m&&$(),i.$$.dirty[0]&262148&&w&&y&&e.setClientStyling(y,w),i.$$.dirty[0]&524292&&v&&y&&e.setClientStylingURL(y,v),i.$$.dirty[0]&1048580&&g&&y&&e.setStreamStyling(y,`${g}.Style`),i.$$.dirty[0]&2097156&&S&&y&&Y()},[m,p,y,b,k,E,R,C,O,o,a,q,l,f,h,d,u,L,w,v,g,S,ee,te]}class V extends e.SvelteComponent{constructor(t){super(),e.init(this,t,he,ge,e.safe_not_equal,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,customcurrencysymbols:16,limitformat:17,clientstyling:18,clientstylingurl:19,mbsource:20,translationurl:21},me,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get userid(){return this.$$.ctx[12]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[13]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[15]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(t){this.$$set({numberofentries:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[16]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get limitformat(){return this.$$.ctx[17]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[20]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(V,{lang:{},userid:{},session:{},endpoint:{},apiversion:{},numberofentries:{},customcurrencysymbols:{},limitformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=V;
|
|
1
|
+
"use strict";var oe=Object.defineProperty;var F=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var N=(i,t,s)=>t in i?oe(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s,z=(i,t)=>{for(var s in t||(t={}))ne.call(t,s)&&N(i,s,t[s]);if(F)for(var s of F(t))le.call(t,s)&&N(i,s,t[s]);return i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-DweBl3EQ.cjs");function U(i,t){e.addMessages(i,t)}function ae(i){e.$locale.set(i)}const M={en:{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},de:{expandLimits:"LIMIT-VERLAUF",daily:"pro Tag",weekly:"pro Woche",monthly:"pro Monat",loss:"Verlustlimit",deposit:"Einzahlungslimit",wagering:"Einsatzlimit",max:"Einsatzlimit",loading:"Lädt ...",error:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",limitRemoved:"Limit entfernt",historyProductTypeSports:"Sport",historyProductTypeAll:"Alle",historyProductTypeCasino:"Slots",historyLimitTypeDeposit:"Einzahlungslimit",historyLimitTypeWagering:"Einsatzlimit",historyLimitTypeLoss:"Verlustlimit"},hr:{expandLimits:"POVIJEST OGRANIČENJA",daily:"dnevno",weekly:"tjedno",monthly:"mjesečno",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wagering:"Ograničenje igranja",max:"Ograničenje uloga",loading:"Učitavanje povijesti ograničenja...",error:"Nešto je pošlo po zlu. Molimo vas pokušajte ponovno.",limitRemoved:"Ograničenje uklonjeno",historyProductTypeSports:"Sportovi",historyProductTypeAll:"Sve",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Ograničenje uplate",historyLimitTypeWagering:"Ograničenje igranja",historyLimitTypeLoss:"Ograničenje gubitka",wageringSports:"Ograničenje uloga"},sl:{expandLimits:"LIMIT ZGODOVINA",daily:"na dan",weekly:"na teden",monthly:"na mesec",loss:"Limit izgube",deposit:"Limit vplačila",wagering:"Limit na vložek",max:"Limit vložkov",loading:"Nalaga...",error:"Nekaj je šlo narobe. Prosim poskusite ponovno.",limitRemoved:"Limit odstranjen",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},pl:{expandLimits:"HISTORIA LIMITU",daily:"na dzień",weekly:"na tydzień",monthly:"na miesiąc",loss:"Limit Strat",deposit:"Limit depozytów",wagering:"Limit Stawek",max:"Limit stawek",loading:"Ładowanie...",error:"Coś poszło nie tak. Proszę spróbuj ponownie.",limitRemoved:"Usunięty limit",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"zh-hk":{expandLimits:"极限历史",daily:"每天",weekly:"每个星期",monthly:"每月",loss:"损失限额",deposit:"存款限额",wagering:"投注限额",loading:"加载请稍候...",error:"500 - 服务器错误",limitRemoved:"移除限制",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},fr:{expandLimits:"LIMITER L'HISTORIQUE",daily:"par jour",weekly:"par semaine",monthly:"par mois",loss:"Limite de perte",deposit:"Limite de dépôt",wagering:"Limite de mise",loading:"Chargement, veuillez patienter...",error:"500 - Erreur de serveur",limitRemoved:"Limite supprimée",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},ro:{expandLimits:"ISTORIC LIMITE",daily:"pe zi",weekly:"pe saptamana",monthly:"pe luna",loss:"Limita de pierdere",deposit:"Limita de incarcare",loading:"Se incarca, va rugam asteptati...",error:"500 - Eroare de server",limitRemoved:"Limita eliminata",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Limita depunere",historyLimitTypeWagering:"Limita pariere",historyLimitTypeLoss:"Limita pierdere"},es:{expandLimits:"HISTORIAL DE LÍMITES",daily:"por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdida",deposit:"Límite de depósito",wagering:"Límite de apuestas",max:"Límite de apuesta",loading:"Cargando historial de límites…",error:"Algo salió mal. Por favor inténtalo de nuevo.",limitRemoved:"Límite eliminado",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"pt-br":{expandLimits:"HISTÓRICO DE LIMITE",daily:"Por dia",weekly:"por semana",monthly:"por mês",loss:"Limite de perda",deposit:"Limite de depósito",wagering:"Limite de Quantidade de Apostas",max:"Limite de apostas",wageringSports:"Limite de Quantidade de Apostas Esportivas",Loading:"Carregando histórico de limite...",error:"Algo deu errado. Por favor, tente novamente",limitRemoved:"Limite removido",historyProductTypeSports:"Esportes",historyProductTypeAll:"Todos",historyProductTypeCasino:"casino",historyLimitTypeDeposit:"Limite de depósito",historyLimitTypeWagering:"Limite de valor da aposta",historyLimitTypeLoss:"Limite de perda"},"es-mx":{expandLimits:"HISTORIAL DE LÍMITES",daily:"Por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdidas",deposit:"Límite de depósito",wagering:"Límite de monto de apuestas",max:"Límite de apuestas",wageringSports:"Límite de monto de apuestas deportivas",Loading:"Cargando historial de límites...",error:"Algo salió mal. Por favor intente de nuevo",limitRemoved:"Límite removido",historyProductTypeSports:"Deportes",historyProductTypeAll:"Todo",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Límite de depósito",historyLimitTypeWagering:"Límite de monto de apuesta",historyLimitTypeLoss:"Límite de pérdida"},tr:{expandLimits:"SINIR GEÇMİŞİ",daily:"günlük",weekly:"haftada",monthly:"her ay",loss:"Kayıp Limiti",deposit:"Para Yatırma Limiti",wagering:"Bahis Limiti",max:"Bahis limiti",wageringSports:"Bahis Limiti",loading:"Limit geçmişi yükleniyor...",error:"Bir şeyler yanlış gitti. Lütfen tekrar deneyin.",limitRemoved:"Sınır kaldırıldı",historyProductTypeSports:"Spor Dalları",historyProductTypeAll:"Tüm",historyProductTypeCasino:"Kumarhane",historyLimitTypeDeposit:"Para Yatırma Limiti",historyLimitTypeWagering:"Bahis Limiti",historyLimitTypeLoss:"Kayıp Limiti"},"en-us":{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"}};function me(i){e.append_styles(i,"svelte-19ml84y",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-19ml84y.svelte-19ml84y,.svelte-19ml84y.svelte-19ml84y::before,.svelte-19ml84y.svelte-19ml84y::after{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-19ml84y.svelte-19ml84y{color:var(--emw--color-white, #FFFFFF)}button.svelte-19ml84y.svelte-19ml84y{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-19ml84y.svelte-19ml84y{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton.svelte-19ml84y svg.svelte-19ml84y{width:28px;height:auto;margin-left:-4px}.extended.svelte-19ml84y.svelte-19ml84y{transform:rotate(180deg)}.HistoryWrapper.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column}.HistoryWrapper.Desktop.svelte-19ml84y.svelte-19ml84y{width:320px;padding:0 12px;margin:12px auto}.hidden.svelte-19ml84y.svelte-19ml84y{display:none}.HistoryRow.svelte-19ml84y.svelte-19ml84y{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column;gap:4px}.LimitType.svelte-19ml84y.svelte-19ml84y{font-size:1.3rem}.LimitAmountPeriod.svelte-19ml84y.svelte-19ml84y{color:#999}.LimitContainer.svelte-19ml84y.svelte-19ml84y{animation:svelte-19ml84y-animateEntry 0.7s ease-in}@keyframes svelte-19ml84y-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}')}function B(i,t,s){const o=i.slice();return o[37]=t[s],o[38]=t,o[39]=s,o}function ye(i){let t,s,o,n=i[9]("expandLimits")+"",a,m,l,f,h,d,p,u,L,w=e.ensure_array_like(i[7]),v=[];for(let g=0;g<w.length;g+=1)v[g]=G(B(i,w,g));return{c(){t=e.element("div"),s=e.element("div"),o=e.element("button"),a=e.text(n),m=e.space(),l=e.svg_element("svg"),f=e.svg_element("path"),h=e.svg_element("path"),d=e.space(),p=e.element("div");for(let g=0;g<v.length;g+=1)v[g].c();e.attr(f,"d","M10.5 15l7.5 7.5 7.5-7.5z"),e.attr(f,"class","svelte-19ml84y"),e.attr(h,"d","M0 0h36v36h-36z"),e.attr(h,"fill","none"),e.attr(h,"class","svelte-19ml84y"),e.attr(l,"class","ExpandArrow svelte-19ml84y"),e.attr(l,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"width","36"),e.attr(l,"height","36"),e.attr(l,"viewBox","0 0 36 36"),e.attr(l,"fill","#999"),e.toggle_class(l,"extended",i[8]),e.attr(o,"class","ExpandButton svelte-19ml84y"),e.attr(p,"class","HistoryDisplayArea svelte-19ml84y"),e.toggle_class(p,"hidden",i[5]),e.attr(s,"class","HistoryWrapper "+(i[10]?"Desktop":"")+" svelte-19ml84y"),e.attr(t,"class","player-account-gaming-limits-history-2 svelte-19ml84y")},m(g,S){e.insert(g,t,S),e.append(t,s),e.append(s,o),e.append(o,a),e.append(o,m),e.append(o,l),e.append(l,f),e.append(l,h),e.append(s,d),e.append(s,p);for(let y=0;y<v.length;y+=1)v[y]&&v[y].m(p,null);u||(L=e.listen(o,"click",i[11]),u=!0)},p(g,S){if(S[0]&512&&n!==(n=g[9]("expandLimits")+"")&&e.set_data(a,n),S[0]&256&&e.toggle_class(l,"extended",g[8]),S[0]&650){w=e.ensure_array_like(g[7]);let y;for(y=0;y<w.length;y+=1){const b=B(g,w,y);v[y]?v[y].p(b,S):(v[y]=G(b),v[y].c(),v[y].m(p,null))}for(;y<v.length;y+=1)v[y].d(1);v.length=w.length}S[0]&32&&e.toggle_class(p,"hidden",g[5])},d(g){g&&e.detach(t),e.destroy_each(v,g),u=!1,L()}}}function de(i){return{c:e.noop,m:e.noop,p:e.noop,d:e.noop}}function pe(i){let t,s=(i[0]?i[9]("error"):"500 Server Error")+"",o;return{c(){t=e.element("p"),o=e.text(s),e.attr(t,"class","svelte-19ml84y")},m(n,a){e.insert(n,t,a),e.append(t,o)},p(n,a){a[0]&513&&s!==(s=(n[0]?n[9]("error"):"500 Server Error")+"")&&e.set_data(o,s)},d(n){n&&e.detach(t)}}}function ue(i){let t,s,o,n=i[37].type+"",a,m,l=i[37].amount+"",f,h,d=i[37].date+"",p;return{c(){t=e.element("div"),s=e.element("span"),o=e.element("span"),a=e.text(n),m=e.element("span"),f=e.text(l),h=e.element("span"),p=e.text(d),e.attr(o,"class","LimitType svelte-19ml84y"),e.attr(m,"class","LimitAmountPeriod svelte-19ml84y"),e.attr(s,"class","GeneralLimitInformation svelte-19ml84y"),e.attr(h,"class","DateLimitInformation svelte-19ml84y"),e.attr(t,"class","HistoryRow svelte-19ml84y")},m(u,L){e.insert(u,t,L),e.append(t,s),e.append(s,o),e.append(o,a),e.append(s,m),e.append(m,f),e.append(t,h),e.append(h,p)},p(u,L){L[0]&128&&n!==(n=u[37].type+"")&&e.set_data(a,n),L[0]&128&&l!==(l=u[37].amount+"")&&e.set_data(f,l),L[0]&128&&d!==(d=u[37].date+"")&&e.set_data(p,d)},d(u){u&&e.detach(t)}}}function ce(i){let t,s,o,n=i[37].type+"",a,m,l=i[9]("limitRemoved")+"",f,h,d=i[37].date+"",p;return{c(){t=e.element("div"),s=e.element("span"),o=e.element("span"),a=e.text(n),m=e.element("span"),f=e.text(l),h=e.element("span"),p=e.text(d),e.attr(o,"class","LimitType svelte-19ml84y"),e.attr(m,"class","LimitAmountPeriod svelte-19ml84y"),e.attr(s,"class","GeneralLimitInformation svelte-19ml84y"),e.attr(h,"class","DateLimitInformation svelte-19ml84y"),e.attr(t,"class","HistoryRow svelte-19ml84y")},m(u,L){e.insert(u,t,L),e.append(t,s),e.append(s,o),e.append(o,a),e.append(s,m),e.append(m,f),e.append(t,h),e.append(h,p)},p(u,L){L[0]&128&&n!==(n=u[37].type+"")&&e.set_data(a,n),L[0]&512&&l!==(l=u[9]("limitRemoved")+"")&&e.set_data(f,l),L[0]&128&&d!==(d=u[37].date+"")&&e.set_data(p,d)},d(u){u&&e.detach(t)}}}function G(i){let t,s,o,n=i[39];function a(d,p){return d[37].removed?ce:ue}let m=a(i),l=m(i);const f=()=>i[22](t,n),h=()=>i[22](null,n);return{c(){t=e.element("div"),l.c(),s=e.space(),e.attr(t,"class",o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-19ml84y")},m(d,p){e.insert(d,t,p),l.m(t,null),e.append(t,s),f()},p(d,p){i=d,m===(m=a(i))&&l?l.p(i,p):(l.d(1),l=m(i),l&&(l.c(),l.m(t,s))),p[0]&2&&o!==(o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-19ml84y")&&e.attr(t,"class",o),n!==i[39]&&(h(),n=i[39],f())},d(d){d&&e.detach(t),l.d(),h()}}}function ge(i){let t;function s(a,m){return a[6]?pe:a[4]?de:ye}let o=s(i),n=o(i);return{c(){t=e.element("div"),n.c(),e.attr(t,"class","svelte-19ml84y")},m(a,m){e.insert(a,t,m),n.m(t,null),i[23](t)},p(a,m){o===(o=s(a))&&n?n.p(a,m):(n.d(1),n=o(a),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),n.d(),i[23](null)}}}function he(i,t,s){let o;e.component_subscribe(i,e.$format,r=>s(9,o=r));let n=window.navigator.userAgent,a=!e.isMobile(n),{lang:m=""}=t,{userid:l=""}=t,{session:f=""}=t,{endpoint:h=""}=t,{apiversion:d=""}=t,{numberofentries:p="10"}=t,{customcurrencysymbols:u=""}=t,{limitformat:L=""}=t,{clientstyling:w=""}=t,{clientstylingurl:v=""}=t,{mbsource:g}=t,{translationurl:S=""}=t,y,b=new Array,D=parseInt(p,10),R=!1,k=!0,I=[],C=[],E=!0,O=!1,A={EUR:"€",RON:"lei",TRY:"₺"};const Y=()=>{fetch(S).then(c=>c.json()).then(c=>{Object.keys(c).forEach(_=>{U(_,c[_])})}).catch(c=>{console.log(c)})};Object.keys(M).forEach(r=>{U(r,M[r])});const K=()=>{let r=d==="gmcore"?`/v2/player/${l}/transactions/limit`:`/v1/player/${l}/limits/monetary/history`,c=new URL(r,h);c.searchParams.append("startDate",`${new Date("2022").toISOString()}`),c.searchParams.append("endDate",`${new Date("2099").toISOString()}`),c.searchParams.append("limit","10000");let _={method:"GET",headers:{"X-SessionID":f}};fetch(c.href,_).then(T=>{if(T.status>=300)throw s(4,k=!1),s(6,R=!0),new Error("There was an error fetching the limits");return T.json()}).then(T=>{T.length&&(I=Q(T),s(7,C=I.slice(0,D))),s(4,k=!1)},T=>{console.error("There was an error",T),s(6,R=!0)})},Q=r=>{const c=!!M[m];return r.map(T=>{let P={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return P.amount=X(T),P.currency=c?A[T.limitCurrencyCode]:T.limitCurrencyCode,P.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(T.limitDate)),P.period=o(`${T.limitPeriod.toLowerCase()}`),P.type=d==="gmcore"?o(`historyLimitType${T.limitType.split(" ")[0]}`):o(`historyLimitType${T.limitType.split(" ")[0]}`)+" "+o(`historyProductType${T.limitProductType}`),P.removed=T.limitAmount===-1,P})},X=r=>{let c=L||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.limitAmount);if(!L){let re=A[r.limitCurrencyCode]||r.limitCurrencyCode;return`${c}${re}`}typeof r.limitAmount=="string"&&r.limitAmount.includes(",")&&(r.limitAmount=r.limitAmount.replaceAll(",",""));const _=c.match(/\{(\d+)decimals\}/),T=_?parseInt(_[1],10):2,P=_?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let x=parseFloat(r.limitAmount).toFixed(T);const[ie,j]=L.includes(".")?[",","."]:[".",","];let[W,se]=x.split(".");return W=W.replace(/\B(?=(\d{3})+(?!\d))/g,ie),x=`${W}${j}${se}`,c=c.replace("{currency}",A[r.limitCurrencyCode]||r.limitCurrencyCode).replace("{amount}",x.split(j)[0]).replace(P,x.split(j)[1]),c},q=()=>{s(5,E=!E),s(8,O=!O)};let H=new IntersectionObserver(r=>{r.forEach(c=>{c.isIntersecting&&(D+=parseInt(p,10)||10,C.length<I.length&&s(7,C=I.slice(0,D)))})});const J=()=>{H.observe(b[b.length-1])},Z=()=>{if(!u)return;let r={};u.split(",").forEach(c=>{let _=c.split(":");r[_[0].trim()]=_[1].trim()}),A=z(z({},A),r)},$=()=>{ae(m)};e.onMount(()=>()=>{H.unobserve(b[b.length-1])});function ee(r,c){e.binding_callbacks[r?"unshift":"push"](()=>{b[c]=r,s(3,b)})}function te(r){e.binding_callbacks[r?"unshift":"push"](()=>{y=r,s(2,y)})}return i.$$set=r=>{"lang"in r&&s(0,m=r.lang),"userid"in r&&s(12,l=r.userid),"session"in r&&s(13,f=r.session),"endpoint"in r&&s(14,h=r.endpoint),"apiversion"in r&&s(15,d=r.apiversion),"numberofentries"in r&&s(1,p=r.numberofentries),"customcurrencysymbols"in r&&s(16,u=r.customcurrencysymbols),"limitformat"in r&&s(17,L=r.limitformat),"clientstyling"in r&&s(18,w=r.clientstyling),"clientstylingurl"in r&&s(19,v=r.clientstylingurl),"mbsource"in r&&s(20,g=r.mbsource),"translationurl"in r&&s(21,S=r.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&65536&&u&&Z(),i.$$.dirty[0]&61440&&h&&l&&f&&d&&K(),i.$$.dirty[0]&56&&b[0]&&!k&&!E&&J(),i.$$.dirty[0]&1&&m&&$(),i.$$.dirty[0]&262148&&w&&y&&e.setClientStyling(y,w),i.$$.dirty[0]&524292&&v&&y&&e.setClientStylingURL(y,v),i.$$.dirty[0]&1048580&&g&&y&&e.setStreamStyling(y,`${g}.Style`),i.$$.dirty[0]&2097156&&S&&y&&Y()},[m,p,y,b,k,E,R,C,O,o,a,q,l,f,h,d,u,L,w,v,g,S,ee,te]}class V extends e.SvelteComponent{constructor(t){super(),e.init(this,t,he,ge,e.safe_not_equal,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,customcurrencysymbols:16,limitformat:17,clientstyling:18,clientstylingurl:19,mbsource:20,translationurl:21},me,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get userid(){return this.$$.ctx[12]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[13]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[15]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(t){this.$$set({numberofentries:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[16]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get limitformat(){return this.$$.ctx[17]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[20]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(V,{lang:{},userid:{},session:{},endpoint:{},apiversion:{},numberofentries:{},customcurrencysymbols:{},limitformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=V;
|