@everymatrix/player-account-controller 1.50.0 → 1.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/GeneralLogout-BW6b3iuS.cjs +8 -0
- package/components/{GeneralLogout-CPJ_kgQc.js → GeneralLogout-DMvKimEo.js} +326 -317
- package/components/PlayerAccountBettingHistory-BsFzBNDY.cjs +1 -0
- package/components/{PlayerAccountBettingHistory-DqCRu_Gb.js → PlayerAccountBettingHistory-YNLbWHxl.js} +28 -23
- package/components/PlayerAccountBiometrics-BrlNlZ5N.cjs +1 -0
- package/components/{PlayerAccountBiometrics-_bzqGans.js → PlayerAccountBiometrics-CXLK5_xT.js} +43 -36
- package/components/{PlayerAccountClosure-DgFBQW78.js → PlayerAccountClosure-BkKcpa4J.js} +55 -47
- package/components/PlayerAccountClosure-DfJc6Ip_.cjs +1 -0
- package/components/{PlayerAccountController-BxFXPyr1.js → PlayerAccountController-DN9_dE-L.js} +64 -54
- package/components/PlayerAccountController-DkR5hfDe.cjs +1 -0
- package/components/PlayerAccountGamingLimits-96NZsRcC.cjs +1 -0
- package/components/{PlayerAccountGamingLimits-BOKXx_iz.js → PlayerAccountGamingLimits-CncKhl1f.js} +33 -25
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Cu04ikT5.js → PlayerAccountGamingLimitsConfirmationModal-CNTlXu7V.js} +5 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-IgBYV9F2.cjs +1 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-DKM3If51.cjs +10 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-DYzhhapL.js → PlayerAccountGamingLimitsGroupEdit-xwjN2SUl.js} +253 -231
- package/components/PlayerAccountGamingLimitsHistory2-BwSZ4liw.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsHistory2-Bvh5seHB.js → PlayerAccountGamingLimitsHistory2-DGuhp8SZ.js} +74 -54
- package/components/PlayerAccountGamingLimitsInfoCard-ZuPsBZ-7.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsInfoCard-pHxvjwrl.js → PlayerAccountGamingLimitsInfoCard-mx0b5AlT.js} +87 -62
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CAHA7P8d.js → PlayerAccountGamingLimitsPage2Gm16-B67NLFY_.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CKFzVtAJ.cjs → PlayerAccountGamingLimitsPage2Gm16-lT9sWjHb.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-BwCi8g0-.js → PlayerAccountGamingLimitsPopup-Bt4YlCWi.js} +32 -27
- package/components/PlayerAccountGamingLimitsPopup-ChBLdQR7.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsWrapper2-DPJCVbfG.js → PlayerAccountGamingLimitsWrapper2-CGzfgsbf.js} +6 -3
- package/components/PlayerAccountGamingLimitsWrapper2-CpEUItxc.cjs +1 -0
- package/components/{PlayerAccountMenu-WHbE7mMh.js → PlayerAccountMenu-5esyJ_VN.js} +5 -2
- package/components/PlayerAccountMenu-C704oUrC.cjs +1 -0
- package/components/{PlayerAccountModal-DEtLb1RB.cjs → PlayerAccountModal-C52SG5dV.cjs} +1 -1
- package/components/{PlayerAccountModal-B28RK7-M.js → PlayerAccountModal-xliz3ECZ.js} +1 -1
- package/components/{PlayerAccountNotifications-DmjuynrH.js → PlayerAccountNotifications-B02Ownhe.js} +1 -1
- package/components/{PlayerAccountNotifications-DEqB-PVw.cjs → PlayerAccountNotifications-DkgHtUGj.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusion-DqDkT8iy.cjs → PlayerAccountSelfExclusion-CkKkedxp.cjs} +481 -3
- package/components/{PlayerAccountSelfExclusion-CsS-h2Ai.js → PlayerAccountSelfExclusion-Dj4pFUEZ.js} +481 -2
- package/components/PlayerAccountTimeout-BtDp3SZn.cjs +1 -0
- package/components/{PlayerAccountTimeout-D38oVKnz.js → PlayerAccountTimeout-CAzKEs5R.js} +77 -67
- package/components/{PlayerActiveBonuses-DA6p75G4.cjs → PlayerActiveBonuses-B53gZwaj.cjs} +1 -1
- package/components/{PlayerActiveBonuses-DpYIsm4r.js → PlayerActiveBonuses-ChTcxPXy.js} +101 -89
- package/components/{PlayerBonusCard-BP0WYns1.js → PlayerBonusCard-CT1IXXnh.js} +60 -46
- package/components/PlayerBonusCard-Crm5CyLi.cjs +1 -0
- package/components/{PlayerBonusHistory-BFvXTv4X.js → PlayerBonusHistory-C437SNdz.js} +145 -138
- package/components/PlayerBonusHistory-CHYWDgxe.cjs +1 -0
- package/components/{PlayerChangePassword-BxwRqAxy.cjs → PlayerChangePassword-BmuIKvz7.cjs} +2 -2
- package/components/{PlayerChangePassword-BM5W2zIw.js → PlayerChangePassword-CKHGZCu8.js} +86 -70
- package/components/{PlayerDeposit-CznlyF3J.js → PlayerDeposit-B8pGzPJ5.js} +1 -1
- package/components/{PlayerDeposit-bjlqIdhX.cjs → PlayerDeposit-B_VzcGon.cjs} +1 -1
- package/components/{PlayerGamingHistory-6e4kRRGF.js → PlayerGamingHistory-BXYkdEzG.js} +99 -84
- package/components/PlayerGamingHistory-Cbpm0HSE.cjs +1 -0
- package/components/PlayerPendingWithdrawals-JN84Pftx.cjs +1 -0
- package/components/{PlayerPendingWithdrawals-BxlTm_jb.js → PlayerPendingWithdrawals-Z0kF_zqo.js} +19 -15
- package/components/{PlayerProfileInfo-CNKIiMA-.cjs → PlayerProfileInfo-Bi_j5FDm.cjs} +1 -1
- package/components/{PlayerProfileInfo-B6HDCWAZ.js → PlayerProfileInfo-CBXeUfyO.js} +1 -1
- package/components/{PlayerRealityCheck-Debik71V.js → PlayerRealityCheck-A_mZq3YZ.js} +44 -33
- package/components/PlayerRealityCheck-C26ZBWae.cjs +1 -0
- package/components/PlayerTransactionHistory-CFR4nRHc.cjs +1 -0
- package/components/{PlayerTransactionHistory-Dn_B3c0-.js → PlayerTransactionHistory-fcNe08kf.js} +11 -7
- package/components/{PlayerWithdrawal-CIjAyGsf.js → PlayerWithdrawal-_dZtzUGe.js} +22 -18
- package/components/PlayerWithdrawal-dZ0Dfd2u.cjs +1 -0
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/index-0437c9c0-06LlHN6E.cjs +1 -0
- package/stencil/{index-065b5928-CPoJDIU-.js → index-0437c9c0-1mLvhyVA.js} +193 -185
- package/stencil/{index-04d3e726-C5uhgmrG.js → index-657e7a14-DpOUEft6.js} +248 -240
- package/stencil/index-657e7a14-dS-WIK3f.cjs +1 -0
- package/stencil/index-e8249896-BNsgFr_R.cjs +1 -0
- package/stencil/{index-b111cb50-CuFaYbey.js → index-e8249896-CIP0iOYr.js} +112 -104
- package/stencil/{player-kyc-verification-Dg3VZ8QG.cjs → player-kyc-verification-B9QbNY0o.cjs} +1 -1
- package/stencil/{player-kyc-verification-BrLC5rYt.js → player-kyc-verification-BwGXWzTR.js} +1 -1
- package/stencil/user-deposit-withdrawal-Btrso_5e.js +597 -0
- package/stencil/user-deposit-withdrawal-Cxv_U-OE.cjs +59 -0
- package/stencil/user-transaction-history-AoseShHM.cjs +1 -0
- package/stencil/{user-transaction-history-W4vbS2--.js → user-transaction-history-DcAGbFDl.js} +1 -1
- package/components/GeneralLogout-CnBIvtF1.cjs +0 -8
- package/components/PlayerAccountBettingHistory-Cy59ufCv.cjs +0 -1
- package/components/PlayerAccountBiometrics-BZ8i34dM.cjs +0 -1
- package/components/PlayerAccountClosure-BbvKd11g.cjs +0 -1
- package/components/PlayerAccountController-DJ6AITI5.cjs +0 -1
- package/components/PlayerAccountGamingLimits-CV_NoRFx.cjs +0 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-Dzxus6A7.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-CZNV2Pxd.cjs +0 -10
- package/components/PlayerAccountGamingLimitsHistory2-DpBBoeDK.cjs +0 -1
- package/components/PlayerAccountGamingLimitsInfoCard-BjLZ3MaL.cjs +0 -1
- package/components/PlayerAccountGamingLimitsPopup-Dz_qQuDe.cjs +0 -1
- package/components/PlayerAccountGamingLimitsWrapper2-BvV0-Dlq.cjs +0 -1
- package/components/PlayerAccountMenu-BEWnz4-M.cjs +0 -1
- package/components/PlayerAccountTimeout-CXeEUwpu.cjs +0 -1
- package/components/PlayerBonusCard-DCNIGmVp.cjs +0 -1
- package/components/PlayerBonusHistory-Cw5-GcW4.cjs +0 -1
- package/components/PlayerGamingHistory-CKg80FAa.cjs +0 -1
- package/components/PlayerPendingWithdrawals-C0HSC7tm.cjs +0 -1
- package/components/PlayerRealityCheck-CtU2sJN0.cjs +0 -1
- package/components/PlayerTransactionHistory-Dg7CD0Zs.cjs +0 -1
- package/components/PlayerWithdrawal-CGpOe7ya.cjs +0 -1
- package/stencil/index-04d3e726-CRpZOD6z.cjs +0 -1
- package/stencil/index-065b5928-BRUI7eV0.cjs +0 -1
- package/stencil/index-b111cb50-b1-cqkbU.cjs +0 -1
- package/stencil/user-deposit-withdrawal-CpNKQFA-.cjs +0 -59
- package/stencil/user-deposit-withdrawal-T1uVOjwf.js +0 -242
- package/stencil/user-transaction-history-B5a4uXlv.cjs +0 -1
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
var c = (e, i, t) => new Promise((r, n) => {
|
|
2
|
-
var h = (a) => {
|
|
3
|
-
try {
|
|
4
|
-
s(t.next(a));
|
|
5
|
-
} catch (p) {
|
|
6
|
-
n(p);
|
|
7
|
-
}
|
|
8
|
-
}, d = (a) => {
|
|
9
|
-
try {
|
|
10
|
-
s(t.throw(a));
|
|
11
|
-
} catch (p) {
|
|
12
|
-
n(p);
|
|
13
|
-
}
|
|
14
|
-
}, s = (a) => a.done ? r(a.value) : Promise.resolve(a.value).then(h, d);
|
|
15
|
-
s((t = t.apply(e, i)).next());
|
|
16
|
-
});
|
|
17
|
-
import { b as u, p as w, r as y, h as o, H as f } from "./index-04d3e726-C5uhgmrG.js";
|
|
18
|
-
import { a as g } from "./app-globals-0f993ce5-aPSxk6sG.js";
|
|
19
|
-
var m = () => {
|
|
20
|
-
const e = import.meta.url, i = {};
|
|
21
|
-
return e !== "" && (i.resourcesUrl = new URL(".", e).href), w(i);
|
|
22
|
-
};
|
|
23
|
-
m().then((e) => c(void 0, null, function* () {
|
|
24
|
-
return yield g(), u([["user-deposit-withdrawal", [[1, "user-deposit-withdrawal", { clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], endpoint: [513], type: [513], channel: [513], language: [513], productType: [513, "product-type"], userId: [513, "user-id"], session: [513], successUrl: [513, "success-url"], cancelUrl: [513, "cancel-url"], failUrl: [513, "fail-url"], sportsUrl: [513, "sports-url"], casinoUrl: [513, "casino-url"], contactUrl: [513, "contact-url"], depositUrl: [513, "deposit-url"], currency: [513], showBonusSelectionInput: [513, "show-bonus-selection-input"], isShortCashier: [516, "is-short-cashier"], homeUrl: [513, "home-url"], beforeRedirect: [16], limitStylingAppends: [32], dynamicHeight: [32], cashierInfoUrl: [32] }, null, { session: ["watchLoadWidget"], userId: ["watchLoadWidget"], isShortCashier: ["watchLoadWidget"], currency: ["watchLoadWidget"], showBonusSelectionInput: ["watchLoadWidget"] }]]]], e);
|
|
25
|
-
}));
|
|
26
|
-
const C = "en", v = ["ro", "en", "fr", "hr"], b = {
|
|
27
|
-
en: {
|
|
28
|
-
Deposit: "Deposit",
|
|
29
|
-
Withdraw: "Withdraw",
|
|
30
|
-
denyDeposit: "Please be informed that currently you are not allowed to initiate depost transactions.",
|
|
31
|
-
denyWithdrawal: "Please be informed that currently you are not allowed to initiate withdrawal transactions.",
|
|
32
|
-
notFoundErrorCode: "Not found error code",
|
|
33
|
-
errorCode21122: "Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",
|
|
34
|
-
errorCode21123: "Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"
|
|
35
|
-
},
|
|
36
|
-
ro: {
|
|
37
|
-
Deposit: "Depozit",
|
|
38
|
-
Withdraw: "Retragere",
|
|
39
|
-
denyDeposit: "Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de depunere.",
|
|
40
|
-
denyWithdrawal: "Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de retragere.",
|
|
41
|
-
notFoundErrorCode: "Not found error code",
|
|
42
|
-
errorCode21122: "Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",
|
|
43
|
-
errorCode21123: "Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"
|
|
44
|
-
},
|
|
45
|
-
fr: {
|
|
46
|
-
Deposit: "Deposit",
|
|
47
|
-
Withdraw: "Withdraw",
|
|
48
|
-
denyDeposit: "Veuillez être informé que vous n'êtes actuellement pas autorisé à initier des transactions de dépôt.",
|
|
49
|
-
denyWithdrawal: "Veuillez être informé que vous n'êtes actuellement pas autorisé à initier des transactions de retrait.",
|
|
50
|
-
notFoundErrorCode: "Not found error code",
|
|
51
|
-
errorCode21122: "Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",
|
|
52
|
-
errorCode21123: "Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"
|
|
53
|
-
},
|
|
54
|
-
hr: {
|
|
55
|
-
Deposit: "Uplata",
|
|
56
|
-
Withdraw: "Isplata",
|
|
57
|
-
denyDeposit: "Obavještavamo Vas da trenutno nemate mogućnost uplata.",
|
|
58
|
-
denyWithdrawal: "Obavještavamo vas da trenutno niste ovlašteni za pokretanje transakcija isplate.",
|
|
59
|
-
notFoundErrorCode: "Not found error code",
|
|
60
|
-
errorCode21122: "Poštovani, trenutno nije moguće izvršiti isplatu sa Vašeg računa. Error Code: 21122",
|
|
61
|
-
errorCode21123: "Poštovani, trenutno nije moguće izvršiti uplatu na Vaš račun. Error Code:21123"
|
|
62
|
-
}
|
|
63
|
-
}, l = (e, i) => {
|
|
64
|
-
const t = i;
|
|
65
|
-
return b[t !== void 0 && v.includes(t) ? t : C][e];
|
|
66
|
-
}, S = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), U = `:host {
|
|
67
|
-
font: inherit;
|
|
68
|
-
display: block;
|
|
69
|
-
height: 100%;
|
|
70
|
-
overflow: hidden;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.CategoryTitle {
|
|
74
|
-
font-size: var(--emw--font-size-x-large, 26px);
|
|
75
|
-
color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.MenuReturnButton {
|
|
79
|
-
font: inherit;
|
|
80
|
-
color: var(--emw--color-gray-300, #58586B);
|
|
81
|
-
display: inline-flex;
|
|
82
|
-
align-items: center;
|
|
83
|
-
column-gap: 10px;
|
|
84
|
-
margin-bottom: 10px;
|
|
85
|
-
}
|
|
86
|
-
.MenuReturnButton svg {
|
|
87
|
-
fill: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));
|
|
88
|
-
}
|
|
89
|
-
.MenuReturnButton h2.CategoryTitleMobile {
|
|
90
|
-
font-size: 16px;
|
|
91
|
-
color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.ErrorMessage {
|
|
95
|
-
color: var(--emw--pam-color-typography, var(--emw--color-typography, #FFFFFF));
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.DepositWithdrawalWrapper {
|
|
99
|
-
width: 100%;
|
|
100
|
-
padding: 0;
|
|
101
|
-
margin: 0;
|
|
102
|
-
height: 100vh;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
@container (max-width: 475px) {
|
|
106
|
-
.DepositWithdrawalWrapper {
|
|
107
|
-
height: 100vh;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
.ShortCashier.DepositWithdrawalWrapper {
|
|
111
|
-
height: 500px;
|
|
112
|
-
}
|
|
113
|
-
.ShortCashier.CategoryTitle.CategoryTitle {
|
|
114
|
-
margin-right: 20px;
|
|
115
|
-
padding-top: 20px;
|
|
116
|
-
color: ar(--emw--color-black, #000000);
|
|
117
|
-
}
|
|
118
|
-
.ShortCashier .ErrorMessage {
|
|
119
|
-
margin: auto;
|
|
120
|
-
width: 90%;
|
|
121
|
-
margin-top: 70px;
|
|
122
|
-
text-align: center;
|
|
123
|
-
color: var(--emw--color-black, #000000);
|
|
124
|
-
}`, W = U, D = () => {
|
|
125
|
-
}, M = class {
|
|
126
|
-
constructor(e) {
|
|
127
|
-
y(this, e), this.bindedHandler = this.handleMessage.bind(this), this.userAgent = window.navigator.userAgent, this.isMobile = S(this.userAgent), this.errorCodes = ["21123", "21122"], this.setClientStyling = () => {
|
|
128
|
-
let i = document.createElement("style");
|
|
129
|
-
i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
|
|
130
|
-
}, this.setClientStylingURL = () => {
|
|
131
|
-
let i = new URL(this.clientStylingUrl), t = document.createElement("style");
|
|
132
|
-
fetch(i.href).then((r) => r.text()).then((r) => {
|
|
133
|
-
t.innerHTML = r, setTimeout(() => {
|
|
134
|
-
this.stylingContainer.prepend(t);
|
|
135
|
-
}, 1);
|
|
136
|
-
}).catch((r) => {
|
|
137
|
-
console.log("error ", r);
|
|
138
|
-
});
|
|
139
|
-
}, this.clientStyling = "", this.clientStylingUrl = "", this.endpoint = void 0, this.type = void 0, this.channel = void 0, this.language = void 0, this.productType = void 0, this.userId = void 0, this.session = void 0, this.successUrl = void 0, this.cancelUrl = void 0, this.failUrl = void 0, this.sportsUrl = void 0, this.casinoUrl = void 0, this.contactUrl = void 0, this.depositUrl = void 0, this.currency = "", this.showBonusSelectionInput = "true", this.isShortCashier = !1, this.homeUrl = void 0, this.beforeRedirect = D, this.limitStylingAppends = !1, this.dynamicHeight = void 0, this.cashierInfoUrl = void 0;
|
|
140
|
-
}
|
|
141
|
-
get typeParameter() {
|
|
142
|
-
if (this.type === "deposit")
|
|
143
|
-
return "Deposit";
|
|
144
|
-
if (this.type === "withdraw")
|
|
145
|
-
return "Withdraw";
|
|
146
|
-
}
|
|
147
|
-
watchLoadWidget() {
|
|
148
|
-
this.loadWidget();
|
|
149
|
-
}
|
|
150
|
-
componentWillLoad() {
|
|
151
|
-
return c(this, null, function* () {
|
|
152
|
-
yield this.loadWidget();
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
toggleScreen(e) {
|
|
156
|
-
window.postMessage({ type: "PlayerAccountMenuActive", isMobile: e }, window.location.href);
|
|
157
|
-
}
|
|
158
|
-
componentDidLoad() {
|
|
159
|
-
window.addEventListener("message", this.bindedHandler, !1);
|
|
160
|
-
}
|
|
161
|
-
disconnectedCallback() {
|
|
162
|
-
window.removeEventListener("message", this.bindedHandler, !1);
|
|
163
|
-
}
|
|
164
|
-
componentDidRender() {
|
|
165
|
-
!this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.limitStylingAppends = !0);
|
|
166
|
-
}
|
|
167
|
-
render() {
|
|
168
|
-
return o(f, { key: "ccdd9243da65080f4ac854a4bc6ed4006f0c9f5e" }, o("div", { key: "e39b500a56740d0f7e23f92e2f73ea386a3bbb5c", ref: (e) => this.stylingContainer = e }, !(this.isMobile && !this.isShortCashier) && o("h2", { key: "3e2e8bf8a07a4249674f4dae7df7a76da6435fa3", class: "CategoryTitle" }, l(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language)), o("div", { key: "886bedf58fac20d2f620d4600b6588089d0e502c", class: `DepositWithdrawalWrapper ${this.isShortCashier ? "ShortCashier" : ""}`, style: { height: this.dynamicHeight, marginTop: this.isShortCashier ? "30px" : "0" } }, o("div", { key: "fa038bb3d599cbd894ba6a14ead4c03bbfa425fd" }, this.isMobile && !this.isShortCashier ? o("div", { class: "MenuReturnButton", onClick: () => this.toggleScreen(this.isMobile) }, o("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, o("defs", null), o("g", { transform: "translate(-20 -158)" }, o("g", { transform: "translate(20 158)" }, o("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), o("h2", { class: "CategoryTitleMobile" }, l(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language))) : null), this.cashierInfoUrl ? o("iframe", { width: "100%", height: "100%", src: this.cashierInfoUrl }) : o("h3", { class: "ErrorMessage" }, this.type === "deposit" ? l("denyDeposit", this.language) : l("denyWithdrawal", this.language)))));
|
|
169
|
-
}
|
|
170
|
-
loadWidget() {
|
|
171
|
-
return c(this, null, function* () {
|
|
172
|
-
const e = {
|
|
173
|
-
Channel: this.channel,
|
|
174
|
-
Type: this.typeParameter,
|
|
175
|
-
SuccessUrl: this.successUrl,
|
|
176
|
-
CancelUrl: this.cancelUrl,
|
|
177
|
-
FailUrl: this.failUrl,
|
|
178
|
-
Language: this.language,
|
|
179
|
-
productType: this.productType,
|
|
180
|
-
isShortCashier: this.isShortCashier,
|
|
181
|
-
currency: this.currency,
|
|
182
|
-
showBonusSelectionInput: this.showBonusSelectionInput
|
|
183
|
-
};
|
|
184
|
-
try {
|
|
185
|
-
const i = `${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`, t = yield fetch(i, {
|
|
186
|
-
method: "POST",
|
|
187
|
-
headers: {
|
|
188
|
-
"X-Sessionid": this.session,
|
|
189
|
-
"Content-Type": "application/json"
|
|
190
|
-
},
|
|
191
|
-
body: JSON.stringify(e)
|
|
192
|
-
});
|
|
193
|
-
if (!t.ok) {
|
|
194
|
-
const n = yield t.text();
|
|
195
|
-
throw new Error(n);
|
|
196
|
-
}
|
|
197
|
-
const r = yield t.json();
|
|
198
|
-
if (r.CashierInfo)
|
|
199
|
-
this.cashierInfoUrl = r.CashierInfo.Url;
|
|
200
|
-
else {
|
|
201
|
-
let n;
|
|
202
|
-
if (r.ResponseMessage) {
|
|
203
|
-
let d = this.errorCodes.find((s) => r.ResponseMessage.includes(s)) || null;
|
|
204
|
-
d ? n = l(`errorCode${d}`, this.language) : n = l("notFoundErrorCode", this.language);
|
|
205
|
-
} else
|
|
206
|
-
n = this.type === "deposit" ? l("denyDeposit", this.language) : l("denyWithdrawal", this.language);
|
|
207
|
-
const h = { type: "error", message: n };
|
|
208
|
-
window.postMessage({ type: "DenyDepositOrWithdrawal", data: h }, window.location.href);
|
|
209
|
-
}
|
|
210
|
-
} catch (i) {
|
|
211
|
-
console.error(i);
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
handleMessage(e) {
|
|
216
|
-
var i, t, r, n, h, d, s, a;
|
|
217
|
-
e.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), e.data["MMFE:setQuickDepositHeight"] && this.isShortCashier && (this.dynamicHeight = e.data["MMFE:setQuickDepositHeight"].toString() + "px"), e.data["MMFE:setIFrameHeight"] && this.isShortCashier && (this.dynamicHeight = e.data["MMFE:setIFrameHeight"].toString() + "px"), ((i = e.data) === null || i === void 0 ? void 0 : i.type) === "mm-hcback-to-merchant" && this.doRedirect(e.data.type, this.homeUrl), ((t = e.data) === null || t === void 0 ? void 0 : t.redirect) === "mm-hc-back-tomerchant" && this.doRedirect(e.data.redirect, this.homeUrl), ((r = e.data) === null || r === void 0 ? void 0 : r.redirect) === "mm-hc-sports" && this.doRedirect((n = e.data) === null || n === void 0 ? void 0 : n.redirect, this.sportsUrl), ((h = e.data) === null || h === void 0 ? void 0 : h.redirect) === "mm-hc-casino" && this.doRedirect(window.location.href, this.casinoUrl), ((d = e.data) === null || d === void 0 ? void 0 : d.redirect) === "mm-hc-contact" && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.contactUrl)), (((s = e.data) === null || s === void 0 ? void 0 : s.redirect) === "mm-wm-hc-init-deposit" || ((a = e.data) === null || a === void 0 ? void 0 : a.redirect) === "mm-wm-hc-init-deposit-quick") && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.depositUrl));
|
|
218
|
-
}
|
|
219
|
-
doRedirect(e, i) {
|
|
220
|
-
const t = { reason: e, url: i, cancel: !1 };
|
|
221
|
-
if (this.beforeRedirect(t), !t.cancel) {
|
|
222
|
-
if (!t.url) {
|
|
223
|
-
window.location.href = "/";
|
|
224
|
-
return;
|
|
225
|
-
}
|
|
226
|
-
window.location.href = t.url;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
static get watchers() {
|
|
230
|
-
return {
|
|
231
|
-
session: ["watchLoadWidget"],
|
|
232
|
-
userId: ["watchLoadWidget"],
|
|
233
|
-
isShortCashier: ["watchLoadWidget"],
|
|
234
|
-
currency: ["watchLoadWidget"],
|
|
235
|
-
showBonusSelectionInput: ["watchLoadWidget"]
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
M.style = W;
|
|
240
|
-
export {
|
|
241
|
-
M as user_deposit_withdrawal
|
|
242
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var d=(e,a,n)=>new Promise((o,r)=>{var l=s=>{try{c(n.next(s))}catch(p){r(p)}},h=s=>{try{c(n.throw(s))}catch(p){r(p)}},c=s=>s.done?o(s.value):Promise.resolve(s.value).then(l,h);c((n=n.apply(e,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-b111cb50-b1-cqkbU.cjs"),b=require("./app-globals-0f993ce5-CKh2cbmz.cjs");var u=typeof document!="undefined"?document.currentScript:null,y=()=>{const e=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:u&&u.src||new URL("stencil/user-transaction-history-B5a4uXlv.cjs",document.baseURI).href,a={};return e!==""&&(a.resourcesUrl=new URL(".",e).href),t.promiseResolve(a)};y().then(e=>d(exports,null,function*(){return yield b.globalScripts$2(),t.bootstrapLazy([["user-transaction-history",[[1,"user-transaction-history",{endpoint:[513],session:[513],language:[513],userId:[513,"user-id"],translationUrl:[513,"translation-url"],mobile:[516],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],page:[32],pageSize:[32],showMobileFilter:[32],to:[32],from:[32],type:[32],transactions:[32],showLoader:[32]},[[9,"resize","getComponentHeight"]],{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],showMobileFilter:["getComponentHeight"]}]]]],e)}));const v={en:{deposit:"Deposit",withdrawals:"Withdrawals",show:"Show",from:"From",to:"To",filter:"Filter",transactionId:"Transaction ID",date:"Date",amount:"Amount",productType:"Product Type",status:"Status",noData:"There are no account activities"},hr:{deposit:"Uplate",withdrawals:"Isplate",show:"Prikaži",from:"Od",to:"Do",filter:"Filter",transactionId:"ID transakcije",date:"Datum",amount:"Iznos",productType:"Vrsta proizvoda",status:"Status",noData:"Nema aktivnosti na računu"}};class i{constructor(){}static loadCustomTranslations(a){return d(this,null,function*(){try{const n=yield fetch(a,{headers:{"Content-Type":"application/json"}});if(!n.ok){const r=yield n.text();throw new Error(r)}const o=yield n.json();i.updateTranslations(o)}catch(n){console.error(`Failed to load translations ${a}. ${n.message}`)}})}static translate(a,n){var o,r;const l=i.getAvaliableLanguages(n);return((r=(o=i.customTranslation)===null||o===void 0?void 0:o[l.customLanguage])===null||r===void 0?void 0:r[a])||i.defaultTranslation[l.predefinedLanguage][a]}static getAvaliableLanguages(a){var n;const o=!((n=i.customLanguages)===null||n===void 0)&&n.includes(a)?a:i.defaultLanguage;return{predefinedLanguage:i.supportedLanguages.includes(a)?a:i.defaultLanguage,customLanguage:o}}static updateTranslations(a){i.customLanguages=Array.from(new Set([...i.supportedLanguages,...Object.keys(a).map(n=>n.toLowerCase())])),i.customTranslation=a}}i.defaultLanguage="en";i.supportedLanguages=["en"];i.defaultTranslation=v;const x=()=>t.h("div",{class:"loader"},t.h("div",null),t.h("div",null),t.h("div",null),t.h("div",null),t.h("div",null),t.h("div",null),t.h("div",null),t.h("div",null),t.h("div",null),t.h("div",null),t.h("div",null),t.h("div",null));class g{constructor(){}static dateToFormatedString(a){const n=a.toLocaleDateString("en-gb"),o=a.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return`${n}, ${o}`}}class m{constructor(){}static format(a,n){let o=`${n} ${a}`;try{o=new Intl.NumberFormat("en-US",{style:"currency",currency:a}).format(n)}catch(r){}return o}}const w=e=>t.h("div",{class:"data-transaction"},t.h("p",null,e.productType),t.h("p",{class:"text-style text-style-status"},t.h("span",{class:e.status.toLowerCase()},e.status)),t.h("p",{class:"date"},e.transId," | ",g.dateToFormatedString(new Date(e.created))),t.h("p",{class:"text-style"},m.format(e.currency,e.realAmount)," ")),k=e=>t.h("div",{class:"page-size"},t.h("span",null,i.translate("show",e.language)),e.pageSizes.map(a=>t.h("button",{class:e.currentPageSize===a?"active":"",onClick:()=>e.changePageSize(a)},a))),S=({from:e,to:a,applyFilters:n,language:o})=>{let r,l;const h=()=>{e=r.value},c=()=>{a=l.value};return t.h("div",{class:"period"},t.h("div",{class:"period-content"},t.h("div",{class:"date-input"},t.h("vaadin-date-picker",{value:e,ref:s=>r=s,label:i.translate("from",o),onChange:h})),t.h("span",null,t.h("svg",{width:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{d:"m21 11.75c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z","fill-rule":"nonzero",fill:"#5d687b"}))),t.h("div",{class:"date-input"},t.h("vaadin-date-picker",{value:a,ref:s=>l=s,label:i.translate("to",o),onChange:c})),t.h("button",{class:"filter-btn",onClick:()=>n(e,a)},i.translate("filter",o))))},C=({source:e,language:a})=>{const n=[{name:i.translate("transactionId",a)},{name:i.translate("date",a)},{name:i.translate("amount",a)},{name:i.translate("productType",a)},{name:i.translate("status",a)}];return t.h("table",null,t.h("thead",null,t.h("tr",null,n.map(o=>t.h("th",null,o.name)))),t.h("tbody",null,e.map(o=>t.h("tr",null,t.h("td",null,o.transId),t.h("td",null,g.dateToFormatedString(new Date(o.created))),t.h("td",null,m.format(o.currency,o.realAmount)," "),t.h("td",null,o.productType),t.h("td",null,t.h("span",{class:o.status.toLowerCase()},o.status))))))},T=':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}',B=T,f=class{constructor(e){t.registerInstance(this,e),this.pageSizes=[10,25,50],this.pagination=null,this.stylingAppended=!1,this.endpoint=void 0,this.session=void 0,this.language=i.defaultLanguage,this.userId=void 0,this.translationUrl=void 0,this.mobile=!1,this.clientStyling=null,this.clientStylingUrl=null,this.page=0,this.pageSize=this.pageSizes[0],this.showMobileFilter=!1,this.to=void 0,this.from=void 0,this.type="0",this.transactions=void 0,this.showLoader=!0}watchMultiple(){this.loadTransactions()}componentWillLoad(){return d(this,null,function*(){this.translationUrl&&(yield i.loadCustomTranslations(this.translationUrl)),this.loadTransactions()})}componentDidRender(){this.getComponentHeight(),!this.stylingAppended&&this.stylingContainer&&(this.clientStyling&&this.setStyles(this.clientStyling),this.clientStylingUrl&&this.setClientStylingByURL(),this.stylingAppended=!0)}getComponentHeight(){var e;if(this.mobile){let a=this.el.getBoundingClientRect().height-((e=this.el.shadowRoot.querySelector(".table"))===null||e===void 0?void 0:e.getBoundingClientRect().y);this.el.style.setProperty("--heightScrollableContainer",a+"px")}}setHeightTableProperty(){let e=this.getComponentHeight();this.el.style.setProperty("--heightScrollableContainer",e+"px")}changeTransactionsType(e){this.type=e}changePageSize(e){this.pageSize=e}prev(){var e;!((e=this.pagination)===null||e===void 0)&&e.previous&&this.page--}next(){var e;!((e=this.pagination)===null||e===void 0)&&e.next&&this.page++}applyFilters(e,a){this.from=e?new Date(e).toISOString():null,this.to=a?new Date(a).toISOString():null,this.loadTransactions()}showFilter(){this.showMobileFilter=!this.showMobileFilter}render(){var e;const a=t.getAssetPath("../assets/filter.svg"),n=t.getAssetPath("../assets/warning.svg");return t.h(t.Host,{key:"c850ba36433277706247f4b7c0c08b0ae0fb8c76"},this.showLoader?t.h(x,null):"",t.h("div",{key:"20b817b5c9cf14e8af0db2ba417d09e21b6921d7",class:"wrapper",ref:o=>this.stylingContainer=o},t.h("div",{key:"3943f4ab79cb0e72083821b424000f96779e78a5",class:{"types types-mobile":this.mobile,"types types-desktop":!this.mobile}},t.h("button",{key:"d1f3dfc1f4fc7013bd81c92663f578129f63c0e7",class:"transaction-type "+(this.type==="0"?"clicked":""),onClick:()=>this.changeTransactionsType("0")},i.translate("deposit",this.language)),t.h("button",{key:"46989070ef6703fdf7c8c7ac6628e9dce731fec6",class:"transaction-type "+(this.type==="1"?"clicked":""),onClick:()=>this.changeTransactionsType("1")},i.translate("withdrawals",this.language))),this.mobile?"":t.h(k,{language:this.language,pageSizes:this.pageSizes,currentPageSize:this.pageSize,changePageSize:o=>this.changePageSize(o)}),this.mobile?t.h("button",{class:"mobile-filter-button",onClick:()=>this.showFilter()},t.h("img",{src:a,alt:"Filter"}),i.translate("filter",this.language)):"",!this.mobile||this.showMobileFilter&&this.mobile?t.h(S,{language:this.language,applyFilters:(o,r)=>this.applyFilters(o,r)}):"",((e=this.transactions)===null||e===void 0?void 0:e.length)>0?t.h("div",{class:"table"},this.mobile?t.h("div",{class:"mobile-table"},this.transactions.map(o=>t.h(w,Object.assign({},o)))):t.h(C,{source:this.transactions,language:this.language})):t.h("div",{class:"noData"},t.h("img",{src:n,alt:"Warning"}),t.h("span",null,i.translate("noData",this.language))),t.h("div",{key:"50710657788295389a20d59e0092dd033e428268",class:"pagination"},t.h("button",{key:"cd29c880eab413a06666dc12c8df38d3ffdcfe2f",onClick:()=>this.prev()},"<"),t.h("button",{key:"df351ecd4237433a8ab38766669ac48d2548ed6a",onClick:()=>this.next()},">"))))}loadTransactions(){return d(this,null,function*(){this.showLoader=!0;try{const e=`${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`,a=yield fetch(e,{headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!a.ok){const o=yield a.text();throw new Error(o)}const n=yield a.json();this.pagination=n.pagination,this.transactions=n.transactions}catch(e){console.error(e)}finally{this.showLoader=!1}})}getParams(){var e,a;const n=new Date,o=(this.page*this.pageSize).toString(),r=(e=this.from)!==null&&e!==void 0?e:new Date(n.getFullYear(),n.getMonth(),1).toISOString(),l=(a=this.to)!==null&&a!==void 0?a:new Date(n.getFullYear(),n.getMonth()+1,0).toISOString();return`offset=${o}&endDate=${l}&startDate=${r}&type=${this.type}&limit=${this.pageSize}`}setStyles(e){const a=document.createElement("style");a.innerHTML=e,this.stylingContainer.prepend(a)}setClientStylingByURL(){return d(this,null,function*(){try{const e=yield fetch(this.clientStylingUrl);if(!e.ok){const n=yield e.text();throw new Error(n)}const a=yield e.text();this.setStyles(a)}catch(e){console.error(`Failed to load client styles ${this.clientStylingUrl}`,e)}})}static get assetsDirs(){return["../assets"]}get el(){return t.getElement(this)}static get watchers(){return{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],showMobileFilter:["getComponentHeight"]}}};f.style=B;exports.user_transaction_history=f;
|