@everymatrix/user-deposit-withdrawal 1.55.0 → 1.56.2
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/dist/cjs/{index-43a33fec.js → index-ef2818c5.js} +8 -45
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/user-deposit-withdrawal.cjs.entry.js +86 -33
- package/dist/cjs/user-deposit-withdrawal.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.js +49 -32
- package/dist/esm/{index-657e7a14.js → index-1ef3a64c.js} +8 -45
- package/dist/esm/loader.js +3 -3
- package/dist/esm/user-deposit-withdrawal.entry.js +86 -33
- package/dist/esm/user-deposit-withdrawal.js +4 -4
- package/dist/types/components/user-deposit-withdrawal/user-deposit-withdrawal.d.ts +7 -4
- package/dist/types/components.d.ts +8 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/dist/user-deposit-withdrawal/p-28da125c.js +2 -0
- package/dist/user-deposit-withdrawal/p-cfe9e501.entry.js +1 -0
- package/dist/user-deposit-withdrawal/user-deposit-withdrawal.esm.js +1 -1
- package/package.json +1 -1
- package/dist/user-deposit-withdrawal/p-0913d346.entry.js +0 -1
- package/dist/user-deposit-withdrawal/p-8690bdb0.js +0 -2
|
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'user-deposit-withdrawal';
|
|
24
|
-
const BUILD = /* user-deposit-withdrawal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender:
|
|
24
|
+
const BUILD = /* user-deposit-withdrawal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -348,31 +348,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
348
348
|
if (nonce != null) {
|
|
349
349
|
styleElm.setAttribute("nonce", nonce);
|
|
350
350
|
}
|
|
351
|
-
|
|
352
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
353
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
354
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
355
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
356
|
-
} else if ("host" in styleContainerNode) {
|
|
357
|
-
if (supportsConstructableStylesheets) {
|
|
358
|
-
const stylesheet = new CSSStyleSheet();
|
|
359
|
-
stylesheet.replaceSync(style);
|
|
360
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
361
|
-
} else {
|
|
362
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
363
|
-
if (existingStyleContainer) {
|
|
364
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
365
|
-
} else {
|
|
366
|
-
styleContainerNode.prepend(styleElm);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
} else {
|
|
370
|
-
styleContainerNode.append(styleElm);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
374
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
375
|
-
}
|
|
351
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
376
352
|
}
|
|
377
353
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
378
354
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -395,7 +371,7 @@ var attachStyles = (hostRef) => {
|
|
|
395
371
|
const scopeId2 = addStyle(
|
|
396
372
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
397
373
|
cmpMeta);
|
|
398
|
-
if (flags & 10 /* needsScopedEncapsulation */
|
|
374
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
399
375
|
elm["s-sc"] = scopeId2;
|
|
400
376
|
elm.classList.add(scopeId2 + "-h");
|
|
401
377
|
}
|
|
@@ -464,11 +440,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
464
440
|
if (memberName === "list") {
|
|
465
441
|
isProp = false;
|
|
466
442
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
467
|
-
|
|
468
|
-
elm[memberName] = n;
|
|
469
|
-
} else {
|
|
470
|
-
elm.setAttribute(memberName, n);
|
|
471
|
-
}
|
|
443
|
+
elm[memberName] = n;
|
|
472
444
|
}
|
|
473
445
|
} else {
|
|
474
446
|
elm[memberName] = newValue;
|
|
@@ -548,9 +520,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
548
520
|
{
|
|
549
521
|
updateElement(null, newVNode2, isSvgMode);
|
|
550
522
|
}
|
|
551
|
-
|
|
552
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
553
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
523
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
554
524
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
555
525
|
}
|
|
556
526
|
if (newVNode2.$children$) {
|
|
@@ -715,10 +685,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
715
685
|
elm.textContent = "";
|
|
716
686
|
}
|
|
717
687
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
718
|
-
} else if (
|
|
719
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
720
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
721
|
-
) {
|
|
688
|
+
} else if (oldChildren !== null) {
|
|
722
689
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
723
690
|
}
|
|
724
691
|
if (isSvgMode && tag === "svg") {
|
|
@@ -866,9 +833,6 @@ var postUpdateComponent = (hostRef) => {
|
|
|
866
833
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
867
834
|
const instance = hostRef.$lazyInstance$ ;
|
|
868
835
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
869
|
-
{
|
|
870
|
-
safeCall(instance, "componentDidRender");
|
|
871
|
-
}
|
|
872
836
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
873
837
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
874
838
|
{
|
|
@@ -989,8 +953,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
989
953
|
if (this.hasOwnProperty(propName)) {
|
|
990
954
|
newValue = this[propName];
|
|
991
955
|
delete this[propName];
|
|
992
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
993
|
-
this[propName] == newValue) {
|
|
956
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
994
957
|
return;
|
|
995
958
|
} else if (propName == null) {
|
|
996
959
|
const hostRef = getHostRef(this);
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ef2818c5.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["user-deposit-withdrawal.cjs",[[1,"user-deposit-withdrawal",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-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],"
|
|
11
|
+
return index.bootstrapLazy([["user-deposit-withdrawal.cjs",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-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],"dynamicHeight":[32],"cashierInfoUrl":[32]},null,{"session":["watchLoadWidget"],"userId":["watchLoadWidget"],"isShortCashier":["watchLoadWidget"],"currency":["watchLoadWidget"],"showBonusSelectionInput":["watchLoadWidget"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ef2818c5.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'hr', 'en-us', 'es-mx', 'pt-br', 'es', 'de', 'pt', 'tr'];
|
|
@@ -126,6 +126,63 @@ const translate = (key, customLang) => {
|
|
|
126
126
|
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
127
127
|
};
|
|
128
128
|
|
|
129
|
+
/**
|
|
130
|
+
* @name setClientStyling
|
|
131
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content received
|
|
132
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
133
|
+
* @param {string} clientStyling The style content
|
|
134
|
+
*/
|
|
135
|
+
function setClientStyling(stylingContainer, clientStyling) {
|
|
136
|
+
if (stylingContainer) {
|
|
137
|
+
const sheet = document.createElement('style');
|
|
138
|
+
sheet.innerHTML = clientStyling;
|
|
139
|
+
stylingContainer.appendChild(sheet);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @name setClientStylingURL
|
|
145
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content fetched from a given URL
|
|
146
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
147
|
+
* @param {string} clientStylingUrl The URL of the style content
|
|
148
|
+
*/
|
|
149
|
+
function setClientStylingURL(stylingContainer, clientStylingUrl) {
|
|
150
|
+
const url = new URL(clientStylingUrl);
|
|
151
|
+
|
|
152
|
+
fetch(url.href)
|
|
153
|
+
.then((res) => res.text())
|
|
154
|
+
.then((data) => {
|
|
155
|
+
const cssFile = document.createElement('style');
|
|
156
|
+
cssFile.innerHTML = data;
|
|
157
|
+
if (stylingContainer) {
|
|
158
|
+
stylingContainer.appendChild(cssFile);
|
|
159
|
+
}
|
|
160
|
+
})
|
|
161
|
+
.catch((err) => {
|
|
162
|
+
console.error('There was an error while trying to load client styling from URL', err);
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @name setStreamLibrary
|
|
168
|
+
* @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
|
|
169
|
+
* @param {HTMLElement} stylingContainer The highest element of the widget
|
|
170
|
+
* @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
|
|
171
|
+
* @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
|
|
172
|
+
*/
|
|
173
|
+
function setStreamStyling(stylingContainer, domain, subscription) {
|
|
174
|
+
if (window.emMessageBus) {
|
|
175
|
+
const sheet = document.createElement('style');
|
|
176
|
+
|
|
177
|
+
window.emMessageBus.subscribe(domain, (data) => {
|
|
178
|
+
sheet.innerHTML = data;
|
|
179
|
+
if (stylingContainer) {
|
|
180
|
+
stylingContainer.appendChild(sheet);
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
129
186
|
/**
|
|
130
187
|
* @name isMobile
|
|
131
188
|
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
@@ -169,24 +226,7 @@ const UserDepositWithdrawal = class {
|
|
|
169
226
|
this.userAgent = window.navigator.userAgent;
|
|
170
227
|
this.isMobile = isMobile(this.userAgent);
|
|
171
228
|
this.errorCodes = ["21123", "21122"];
|
|
172
|
-
this.
|
|
173
|
-
let sheet = document.createElement('style');
|
|
174
|
-
sheet.innerHTML = this.clientStyling;
|
|
175
|
-
this.stylingContainer.prepend(sheet);
|
|
176
|
-
};
|
|
177
|
-
this.setClientStylingURL = () => {
|
|
178
|
-
let url = new URL(this.clientStylingUrl);
|
|
179
|
-
let cssFile = document.createElement('style');
|
|
180
|
-
fetch(url.href)
|
|
181
|
-
.then((res) => res.text())
|
|
182
|
-
.then((data) => {
|
|
183
|
-
cssFile.innerHTML = data;
|
|
184
|
-
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
185
|
-
})
|
|
186
|
-
.catch((err) => {
|
|
187
|
-
console.log('error ', err);
|
|
188
|
-
});
|
|
189
|
-
};
|
|
229
|
+
this.mbSource = undefined;
|
|
190
230
|
this.clientStyling = '';
|
|
191
231
|
this.clientStylingUrl = '';
|
|
192
232
|
this.translationUrl = '';
|
|
@@ -209,7 +249,6 @@ const UserDepositWithdrawal = class {
|
|
|
209
249
|
this.isShortCashier = false;
|
|
210
250
|
this.homeUrl = undefined;
|
|
211
251
|
this.beforeRedirect = emptyFunction;
|
|
212
|
-
this.limitStylingAppends = false;
|
|
213
252
|
this.dynamicHeight = undefined;
|
|
214
253
|
this.cashierInfoUrl = undefined;
|
|
215
254
|
}
|
|
@@ -224,6 +263,17 @@ const UserDepositWithdrawal = class {
|
|
|
224
263
|
watchLoadWidget() {
|
|
225
264
|
this.loadWidget();
|
|
226
265
|
}
|
|
266
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
267
|
+
if (newValue != oldValue) {
|
|
268
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
handleClientStylingChangeURL(newValue, oldValue) {
|
|
272
|
+
if (newValue != oldValue) {
|
|
273
|
+
if (this.clientStylingUrl)
|
|
274
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
227
277
|
async componentWillLoad() {
|
|
228
278
|
await this.loadWidget();
|
|
229
279
|
if (this.translationUrl) {
|
|
@@ -235,24 +285,25 @@ const UserDepositWithdrawal = class {
|
|
|
235
285
|
window.postMessage({ type: 'PlayerAccountMenuActive', isMobile }, window.location.href);
|
|
236
286
|
}
|
|
237
287
|
componentDidLoad() {
|
|
288
|
+
if (this.stylingContainer) {
|
|
289
|
+
if (window.emMessageBus != undefined) {
|
|
290
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
if (this.clientStyling)
|
|
294
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
295
|
+
if (this.clientStylingUrl)
|
|
296
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
238
299
|
window.addEventListener('message', this.bindedHandler, false);
|
|
239
300
|
}
|
|
240
301
|
disconnectedCallback() {
|
|
241
302
|
window.removeEventListener('message', this.bindedHandler, false);
|
|
242
|
-
|
|
243
|
-
componentDidRender() {
|
|
244
|
-
// start custom styling area
|
|
245
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
246
|
-
if (this.clientStyling)
|
|
247
|
-
this.setClientStyling();
|
|
248
|
-
if (this.clientStylingUrl)
|
|
249
|
-
this.setClientStylingURL();
|
|
250
|
-
this.limitStylingAppends = true;
|
|
251
|
-
}
|
|
252
|
-
// end custom styling area
|
|
303
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
253
304
|
}
|
|
254
305
|
render() {
|
|
255
|
-
return (index.h(index.Host, { key: '
|
|
306
|
+
return (index.h(index.Host, { key: '4963fd9b7ce608f13fd464996c085c29045fcd59' }, index.h("div", { key: '1fe503816ddb4f18d50545f0f627dd917e6f62ec', ref: el => this.stylingContainer = el }, (!(this.isMobile && !this.isShortCashier) && (index.h("h2", { key: '5bf653f70da5f95173a7dc2c7067d0968876b50a', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), index.h("div", { key: '44a47893b6b2ce83e45f69e8997aa6e450968941', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}`, style: { height: this.dynamicHeight, marginTop: this.isShortCashier ? '30px' : '0' } }, index.h("div", { key: '949862539b439d5f2375a08115a7389bf355dd2c' }, (this.isMobile && !this.isShortCashier ?
|
|
256
307
|
index.h("div", { class: "MenuReturnButton", onClick: () => this.toggleScreen(this.isMobile) }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, index.h("defs", null), index.h("g", { transform: "translate(-20 -158)" }, index.h("g", { transform: "translate(20 158)" }, index.h("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)" })))), index.h("h2", { class: "CategoryTitleMobile" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))
|
|
257
308
|
: null)), this.cashierInfoUrl ? index.h("iframe", { width: "100%", height: "100%", src: this.cashierInfoUrl }) : index.h("h3", { class: "ErrorMessage" }, this.type === 'deposit' ? translate('denyDeposit', this.language) : translate('denyWithdrawal', this.language))))));
|
|
258
309
|
}
|
|
@@ -362,7 +413,9 @@ const UserDepositWithdrawal = class {
|
|
|
362
413
|
"userId": ["watchLoadWidget"],
|
|
363
414
|
"isShortCashier": ["watchLoadWidget"],
|
|
364
415
|
"currency": ["watchLoadWidget"],
|
|
365
|
-
"showBonusSelectionInput": ["watchLoadWidget"]
|
|
416
|
+
"showBonusSelectionInput": ["watchLoadWidget"],
|
|
417
|
+
"clientStyling": ["handleClientStylingChange"],
|
|
418
|
+
"clientStylingUrl": ["handleClientStylingChangeURL"]
|
|
366
419
|
}; }
|
|
367
420
|
};
|
|
368
421
|
UserDepositWithdrawal.style = UserDepositWithdrawalStyle0;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ef2818c5.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('user-deposit-withdrawal.cjs.js', document.baseURI).href));
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["user-deposit-withdrawal.cjs",[[1,"user-deposit-withdrawal",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-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],"
|
|
22
|
+
return index.bootstrapLazy([["user-deposit-withdrawal.cjs",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-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],"dynamicHeight":[32],"cashierInfoUrl":[32]},null,{"session":["watchLoadWidget"],"userId":["watchLoadWidget"],"isShortCashier":["watchLoadWidget"],"currency":["watchLoadWidget"],"showBonusSelectionInput":["watchLoadWidget"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { translate, getTranslations } from "../../utils/locale.utils";
|
|
3
|
+
import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
|
|
3
4
|
import { isMobile } from "../../utils/utils";
|
|
4
5
|
import dayjs from "dayjs";
|
|
5
6
|
import utc from "dayjs/plugin/utc";
|
|
@@ -11,24 +12,7 @@ export class UserDepositWithdrawal {
|
|
|
11
12
|
this.userAgent = window.navigator.userAgent;
|
|
12
13
|
this.isMobile = isMobile(this.userAgent);
|
|
13
14
|
this.errorCodes = ["21123", "21122"];
|
|
14
|
-
this.
|
|
15
|
-
let sheet = document.createElement('style');
|
|
16
|
-
sheet.innerHTML = this.clientStyling;
|
|
17
|
-
this.stylingContainer.prepend(sheet);
|
|
18
|
-
};
|
|
19
|
-
this.setClientStylingURL = () => {
|
|
20
|
-
let url = new URL(this.clientStylingUrl);
|
|
21
|
-
let cssFile = document.createElement('style');
|
|
22
|
-
fetch(url.href)
|
|
23
|
-
.then((res) => res.text())
|
|
24
|
-
.then((data) => {
|
|
25
|
-
cssFile.innerHTML = data;
|
|
26
|
-
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
27
|
-
})
|
|
28
|
-
.catch((err) => {
|
|
29
|
-
console.log('error ', err);
|
|
30
|
-
});
|
|
31
|
-
};
|
|
15
|
+
this.mbSource = undefined;
|
|
32
16
|
this.clientStyling = '';
|
|
33
17
|
this.clientStylingUrl = '';
|
|
34
18
|
this.translationUrl = '';
|
|
@@ -51,7 +35,6 @@ export class UserDepositWithdrawal {
|
|
|
51
35
|
this.isShortCashier = false;
|
|
52
36
|
this.homeUrl = undefined;
|
|
53
37
|
this.beforeRedirect = emptyFunction;
|
|
54
|
-
this.limitStylingAppends = false;
|
|
55
38
|
this.dynamicHeight = undefined;
|
|
56
39
|
this.cashierInfoUrl = undefined;
|
|
57
40
|
}
|
|
@@ -66,6 +49,17 @@ export class UserDepositWithdrawal {
|
|
|
66
49
|
watchLoadWidget() {
|
|
67
50
|
this.loadWidget();
|
|
68
51
|
}
|
|
52
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
53
|
+
if (newValue != oldValue) {
|
|
54
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
handleClientStylingChangeURL(newValue, oldValue) {
|
|
58
|
+
if (newValue != oldValue) {
|
|
59
|
+
if (this.clientStylingUrl)
|
|
60
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
69
63
|
async componentWillLoad() {
|
|
70
64
|
await this.loadWidget();
|
|
71
65
|
if (this.translationUrl) {
|
|
@@ -77,24 +71,25 @@ export class UserDepositWithdrawal {
|
|
|
77
71
|
window.postMessage({ type: 'PlayerAccountMenuActive', isMobile }, window.location.href);
|
|
78
72
|
}
|
|
79
73
|
componentDidLoad() {
|
|
74
|
+
if (this.stylingContainer) {
|
|
75
|
+
if (window.emMessageBus != undefined) {
|
|
76
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
if (this.clientStyling)
|
|
80
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
81
|
+
if (this.clientStylingUrl)
|
|
82
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
80
85
|
window.addEventListener('message', this.bindedHandler, false);
|
|
81
86
|
}
|
|
82
87
|
disconnectedCallback() {
|
|
83
88
|
window.removeEventListener('message', this.bindedHandler, false);
|
|
84
|
-
|
|
85
|
-
componentDidRender() {
|
|
86
|
-
// start custom styling area
|
|
87
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
88
|
-
if (this.clientStyling)
|
|
89
|
-
this.setClientStyling();
|
|
90
|
-
if (this.clientStylingUrl)
|
|
91
|
-
this.setClientStylingURL();
|
|
92
|
-
this.limitStylingAppends = true;
|
|
93
|
-
}
|
|
94
|
-
// end custom styling area
|
|
89
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
95
90
|
}
|
|
96
91
|
render() {
|
|
97
|
-
return (h(Host, { key: '
|
|
92
|
+
return (h(Host, { key: '4963fd9b7ce608f13fd464996c085c29045fcd59' }, h("div", { key: '1fe503816ddb4f18d50545f0f627dd917e6f62ec', ref: el => this.stylingContainer = el }, (!(this.isMobile && !this.isShortCashier) && (h("h2", { key: '5bf653f70da5f95173a7dc2c7067d0968876b50a', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), h("div", { key: '44a47893b6b2ce83e45f69e8997aa6e450968941', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}`, style: { height: this.dynamicHeight, marginTop: this.isShortCashier ? '30px' : '0' } }, h("div", { key: '949862539b439d5f2375a08115a7389bf355dd2c' }, (this.isMobile && !this.isShortCashier ?
|
|
98
93
|
h("div", { class: "MenuReturnButton", onClick: () => this.toggleScreen(this.isMobile) }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, h("defs", null), h("g", { transform: "translate(-20 -158)" }, h("g", { transform: "translate(20 158)" }, h("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)" })))), h("h2", { class: "CategoryTitleMobile" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))
|
|
99
94
|
: null)), this.cashierInfoUrl ? h("iframe", { width: "100%", height: "100%", src: this.cashierInfoUrl }) : h("h3", { class: "ErrorMessage" }, this.type === 'deposit' ? translate('denyDeposit', this.language) : translate('denyWithdrawal', this.language))))));
|
|
100
95
|
}
|
|
@@ -213,6 +208,23 @@ export class UserDepositWithdrawal {
|
|
|
213
208
|
}
|
|
214
209
|
static get properties() {
|
|
215
210
|
return {
|
|
211
|
+
"mbSource": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"mutable": false,
|
|
214
|
+
"complexType": {
|
|
215
|
+
"original": "string",
|
|
216
|
+
"resolved": "string",
|
|
217
|
+
"references": {}
|
|
218
|
+
},
|
|
219
|
+
"required": false,
|
|
220
|
+
"optional": false,
|
|
221
|
+
"docs": {
|
|
222
|
+
"tags": [],
|
|
223
|
+
"text": "Client custom styling via streamStyling"
|
|
224
|
+
},
|
|
225
|
+
"attribute": "mb-source",
|
|
226
|
+
"reflect": true
|
|
227
|
+
},
|
|
216
228
|
"clientStyling": {
|
|
217
229
|
"type": "string",
|
|
218
230
|
"mutable": false,
|
|
@@ -602,7 +614,6 @@ export class UserDepositWithdrawal {
|
|
|
602
614
|
}
|
|
603
615
|
static get states() {
|
|
604
616
|
return {
|
|
605
|
-
"limitStylingAppends": {},
|
|
606
617
|
"dynamicHeight": {},
|
|
607
618
|
"cashierInfoUrl": {}
|
|
608
619
|
};
|
|
@@ -623,6 +634,12 @@ export class UserDepositWithdrawal {
|
|
|
623
634
|
}, {
|
|
624
635
|
"propName": "showBonusSelectionInput",
|
|
625
636
|
"methodName": "watchLoadWidget"
|
|
637
|
+
}, {
|
|
638
|
+
"propName": "clientStyling",
|
|
639
|
+
"methodName": "handleClientStylingChange"
|
|
640
|
+
}, {
|
|
641
|
+
"propName": "clientStylingUrl",
|
|
642
|
+
"methodName": "handleClientStylingChangeURL"
|
|
626
643
|
}];
|
|
627
644
|
}
|
|
628
645
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const NAMESPACE = 'user-deposit-withdrawal';
|
|
2
|
-
const BUILD = /* user-deposit-withdrawal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender:
|
|
2
|
+
const BUILD = /* user-deposit-withdrawal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -326,31 +326,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
326
326
|
if (nonce != null) {
|
|
327
327
|
styleElm.setAttribute("nonce", nonce);
|
|
328
328
|
}
|
|
329
|
-
|
|
330
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
331
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
332
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
333
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
334
|
-
} else if ("host" in styleContainerNode) {
|
|
335
|
-
if (supportsConstructableStylesheets) {
|
|
336
|
-
const stylesheet = new CSSStyleSheet();
|
|
337
|
-
stylesheet.replaceSync(style);
|
|
338
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
339
|
-
} else {
|
|
340
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
341
|
-
if (existingStyleContainer) {
|
|
342
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
343
|
-
} else {
|
|
344
|
-
styleContainerNode.prepend(styleElm);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
} else {
|
|
348
|
-
styleContainerNode.append(styleElm);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
352
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
353
|
-
}
|
|
329
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
354
330
|
}
|
|
355
331
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
356
332
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -373,7 +349,7 @@ var attachStyles = (hostRef) => {
|
|
|
373
349
|
const scopeId2 = addStyle(
|
|
374
350
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
375
351
|
cmpMeta);
|
|
376
|
-
if (flags & 10 /* needsScopedEncapsulation */
|
|
352
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
377
353
|
elm["s-sc"] = scopeId2;
|
|
378
354
|
elm.classList.add(scopeId2 + "-h");
|
|
379
355
|
}
|
|
@@ -442,11 +418,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
442
418
|
if (memberName === "list") {
|
|
443
419
|
isProp = false;
|
|
444
420
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
445
|
-
|
|
446
|
-
elm[memberName] = n;
|
|
447
|
-
} else {
|
|
448
|
-
elm.setAttribute(memberName, n);
|
|
449
|
-
}
|
|
421
|
+
elm[memberName] = n;
|
|
450
422
|
}
|
|
451
423
|
} else {
|
|
452
424
|
elm[memberName] = newValue;
|
|
@@ -526,9 +498,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
526
498
|
{
|
|
527
499
|
updateElement(null, newVNode2, isSvgMode);
|
|
528
500
|
}
|
|
529
|
-
|
|
530
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
531
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
501
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
532
502
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
533
503
|
}
|
|
534
504
|
if (newVNode2.$children$) {
|
|
@@ -693,10 +663,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
693
663
|
elm.textContent = "";
|
|
694
664
|
}
|
|
695
665
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
696
|
-
} else if (
|
|
697
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
698
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
699
|
-
) {
|
|
666
|
+
} else if (oldChildren !== null) {
|
|
700
667
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
701
668
|
}
|
|
702
669
|
if (isSvgMode && tag === "svg") {
|
|
@@ -844,9 +811,6 @@ var postUpdateComponent = (hostRef) => {
|
|
|
844
811
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
845
812
|
const instance = hostRef.$lazyInstance$ ;
|
|
846
813
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
847
|
-
{
|
|
848
|
-
safeCall(instance, "componentDidRender");
|
|
849
|
-
}
|
|
850
814
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
851
815
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
852
816
|
{
|
|
@@ -967,8 +931,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
967
931
|
if (this.hasOwnProperty(propName)) {
|
|
968
932
|
newValue = this[propName];
|
|
969
933
|
delete this[propName];
|
|
970
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
971
|
-
this[propName] == newValue) {
|
|
934
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
972
935
|
return;
|
|
973
936
|
} else if (propName == null) {
|
|
974
937
|
const hostRef = getHostRef(this);
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-1ef3a64c.js';
|
|
2
|
+
export { s as setNonce } from './index-1ef3a64c.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["user-deposit-withdrawal",[[1,"user-deposit-withdrawal",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-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],"
|
|
8
|
+
return bootstrapLazy([["user-deposit-withdrawal",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-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],"dynamicHeight":[32],"cashierInfoUrl":[32]},null,{"session":["watchLoadWidget"],"userId":["watchLoadWidget"],"isShortCashier":["watchLoadWidget"],"currency":["watchLoadWidget"],"showBonusSelectionInput":["watchLoadWidget"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-1ef3a64c.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'hr', 'en-us', 'es-mx', 'pt-br', 'es', 'de', 'pt', 'tr'];
|
|
@@ -122,6 +122,63 @@ const translate = (key, customLang) => {
|
|
|
122
122
|
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
123
123
|
};
|
|
124
124
|
|
|
125
|
+
/**
|
|
126
|
+
* @name setClientStyling
|
|
127
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content received
|
|
128
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
129
|
+
* @param {string} clientStyling The style content
|
|
130
|
+
*/
|
|
131
|
+
function setClientStyling(stylingContainer, clientStyling) {
|
|
132
|
+
if (stylingContainer) {
|
|
133
|
+
const sheet = document.createElement('style');
|
|
134
|
+
sheet.innerHTML = clientStyling;
|
|
135
|
+
stylingContainer.appendChild(sheet);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @name setClientStylingURL
|
|
141
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content fetched from a given URL
|
|
142
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
143
|
+
* @param {string} clientStylingUrl The URL of the style content
|
|
144
|
+
*/
|
|
145
|
+
function setClientStylingURL(stylingContainer, clientStylingUrl) {
|
|
146
|
+
const url = new URL(clientStylingUrl);
|
|
147
|
+
|
|
148
|
+
fetch(url.href)
|
|
149
|
+
.then((res) => res.text())
|
|
150
|
+
.then((data) => {
|
|
151
|
+
const cssFile = document.createElement('style');
|
|
152
|
+
cssFile.innerHTML = data;
|
|
153
|
+
if (stylingContainer) {
|
|
154
|
+
stylingContainer.appendChild(cssFile);
|
|
155
|
+
}
|
|
156
|
+
})
|
|
157
|
+
.catch((err) => {
|
|
158
|
+
console.error('There was an error while trying to load client styling from URL', err);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @name setStreamLibrary
|
|
164
|
+
* @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
|
|
165
|
+
* @param {HTMLElement} stylingContainer The highest element of the widget
|
|
166
|
+
* @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
|
|
167
|
+
* @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
|
|
168
|
+
*/
|
|
169
|
+
function setStreamStyling(stylingContainer, domain, subscription) {
|
|
170
|
+
if (window.emMessageBus) {
|
|
171
|
+
const sheet = document.createElement('style');
|
|
172
|
+
|
|
173
|
+
window.emMessageBus.subscribe(domain, (data) => {
|
|
174
|
+
sheet.innerHTML = data;
|
|
175
|
+
if (stylingContainer) {
|
|
176
|
+
stylingContainer.appendChild(sheet);
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
125
182
|
/**
|
|
126
183
|
* @name isMobile
|
|
127
184
|
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
@@ -165,24 +222,7 @@ const UserDepositWithdrawal = class {
|
|
|
165
222
|
this.userAgent = window.navigator.userAgent;
|
|
166
223
|
this.isMobile = isMobile(this.userAgent);
|
|
167
224
|
this.errorCodes = ["21123", "21122"];
|
|
168
|
-
this.
|
|
169
|
-
let sheet = document.createElement('style');
|
|
170
|
-
sheet.innerHTML = this.clientStyling;
|
|
171
|
-
this.stylingContainer.prepend(sheet);
|
|
172
|
-
};
|
|
173
|
-
this.setClientStylingURL = () => {
|
|
174
|
-
let url = new URL(this.clientStylingUrl);
|
|
175
|
-
let cssFile = document.createElement('style');
|
|
176
|
-
fetch(url.href)
|
|
177
|
-
.then((res) => res.text())
|
|
178
|
-
.then((data) => {
|
|
179
|
-
cssFile.innerHTML = data;
|
|
180
|
-
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
181
|
-
})
|
|
182
|
-
.catch((err) => {
|
|
183
|
-
console.log('error ', err);
|
|
184
|
-
});
|
|
185
|
-
};
|
|
225
|
+
this.mbSource = undefined;
|
|
186
226
|
this.clientStyling = '';
|
|
187
227
|
this.clientStylingUrl = '';
|
|
188
228
|
this.translationUrl = '';
|
|
@@ -205,7 +245,6 @@ const UserDepositWithdrawal = class {
|
|
|
205
245
|
this.isShortCashier = false;
|
|
206
246
|
this.homeUrl = undefined;
|
|
207
247
|
this.beforeRedirect = emptyFunction;
|
|
208
|
-
this.limitStylingAppends = false;
|
|
209
248
|
this.dynamicHeight = undefined;
|
|
210
249
|
this.cashierInfoUrl = undefined;
|
|
211
250
|
}
|
|
@@ -220,6 +259,17 @@ const UserDepositWithdrawal = class {
|
|
|
220
259
|
watchLoadWidget() {
|
|
221
260
|
this.loadWidget();
|
|
222
261
|
}
|
|
262
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
263
|
+
if (newValue != oldValue) {
|
|
264
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
handleClientStylingChangeURL(newValue, oldValue) {
|
|
268
|
+
if (newValue != oldValue) {
|
|
269
|
+
if (this.clientStylingUrl)
|
|
270
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
223
273
|
async componentWillLoad() {
|
|
224
274
|
await this.loadWidget();
|
|
225
275
|
if (this.translationUrl) {
|
|
@@ -231,24 +281,25 @@ const UserDepositWithdrawal = class {
|
|
|
231
281
|
window.postMessage({ type: 'PlayerAccountMenuActive', isMobile }, window.location.href);
|
|
232
282
|
}
|
|
233
283
|
componentDidLoad() {
|
|
284
|
+
if (this.stylingContainer) {
|
|
285
|
+
if (window.emMessageBus != undefined) {
|
|
286
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
if (this.clientStyling)
|
|
290
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
291
|
+
if (this.clientStylingUrl)
|
|
292
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
234
295
|
window.addEventListener('message', this.bindedHandler, false);
|
|
235
296
|
}
|
|
236
297
|
disconnectedCallback() {
|
|
237
298
|
window.removeEventListener('message', this.bindedHandler, false);
|
|
238
|
-
|
|
239
|
-
componentDidRender() {
|
|
240
|
-
// start custom styling area
|
|
241
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
242
|
-
if (this.clientStyling)
|
|
243
|
-
this.setClientStyling();
|
|
244
|
-
if (this.clientStylingUrl)
|
|
245
|
-
this.setClientStylingURL();
|
|
246
|
-
this.limitStylingAppends = true;
|
|
247
|
-
}
|
|
248
|
-
// end custom styling area
|
|
299
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
249
300
|
}
|
|
250
301
|
render() {
|
|
251
|
-
return (h(Host, { key: '
|
|
302
|
+
return (h(Host, { key: '4963fd9b7ce608f13fd464996c085c29045fcd59' }, h("div", { key: '1fe503816ddb4f18d50545f0f627dd917e6f62ec', ref: el => this.stylingContainer = el }, (!(this.isMobile && !this.isShortCashier) && (h("h2", { key: '5bf653f70da5f95173a7dc2c7067d0968876b50a', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), h("div", { key: '44a47893b6b2ce83e45f69e8997aa6e450968941', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}`, style: { height: this.dynamicHeight, marginTop: this.isShortCashier ? '30px' : '0' } }, h("div", { key: '949862539b439d5f2375a08115a7389bf355dd2c' }, (this.isMobile && !this.isShortCashier ?
|
|
252
303
|
h("div", { class: "MenuReturnButton", onClick: () => this.toggleScreen(this.isMobile) }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, h("defs", null), h("g", { transform: "translate(-20 -158)" }, h("g", { transform: "translate(20 158)" }, h("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)" })))), h("h2", { class: "CategoryTitleMobile" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))
|
|
253
304
|
: null)), this.cashierInfoUrl ? h("iframe", { width: "100%", height: "100%", src: this.cashierInfoUrl }) : h("h3", { class: "ErrorMessage" }, this.type === 'deposit' ? translate('denyDeposit', this.language) : translate('denyWithdrawal', this.language))))));
|
|
254
305
|
}
|
|
@@ -358,7 +409,9 @@ const UserDepositWithdrawal = class {
|
|
|
358
409
|
"userId": ["watchLoadWidget"],
|
|
359
410
|
"isShortCashier": ["watchLoadWidget"],
|
|
360
411
|
"currency": ["watchLoadWidget"],
|
|
361
|
-
"showBonusSelectionInput": ["watchLoadWidget"]
|
|
412
|
+
"showBonusSelectionInput": ["watchLoadWidget"],
|
|
413
|
+
"clientStyling": ["handleClientStylingChange"],
|
|
414
|
+
"clientStylingUrl": ["handleClientStylingChangeURL"]
|
|
362
415
|
}; }
|
|
363
416
|
};
|
|
364
417
|
UserDepositWithdrawal.style = UserDepositWithdrawalStyle0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-1ef3a64c.js';
|
|
2
|
+
export { s as setNonce } from './index-1ef3a64c.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["user-deposit-withdrawal",[[1,"user-deposit-withdrawal",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-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],"
|
|
19
|
+
return bootstrapLazy([["user-deposit-withdrawal",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-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],"dynamicHeight":[32],"cashierInfoUrl":[32]},null,{"session":["watchLoadWidget"],"userId":["watchLoadWidget"],"isShortCashier":["watchLoadWidget"],"currency":["watchLoadWidget"],"showBonusSelectionInput":["watchLoadWidget"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
|
|
20
20
|
});
|
|
@@ -21,6 +21,10 @@ export interface RedirectCallbackArgs {
|
|
|
21
21
|
url: string;
|
|
22
22
|
}
|
|
23
23
|
export declare class UserDepositWithdrawal {
|
|
24
|
+
/**
|
|
25
|
+
* Client custom styling via streamStyling
|
|
26
|
+
*/
|
|
27
|
+
mbSource: string;
|
|
24
28
|
/**
|
|
25
29
|
* Client custom styling via inline style
|
|
26
30
|
*/
|
|
@@ -55,7 +59,6 @@ export declare class UserDepositWithdrawal {
|
|
|
55
59
|
isShortCashier: boolean;
|
|
56
60
|
homeUrl: string;
|
|
57
61
|
beforeRedirect: (params: RedirectCallbackArgs) => void;
|
|
58
|
-
private limitStylingAppends;
|
|
59
62
|
private dynamicHeight;
|
|
60
63
|
private cashierInfoUrl;
|
|
61
64
|
get typeParameter(): "Deposit" | "Withdraw";
|
|
@@ -63,15 +66,15 @@ export declare class UserDepositWithdrawal {
|
|
|
63
66
|
private userAgent;
|
|
64
67
|
isMobile: boolean;
|
|
65
68
|
private stylingContainer;
|
|
69
|
+
private stylingSubscription;
|
|
66
70
|
private errorCodes;
|
|
67
71
|
watchLoadWidget(): void;
|
|
72
|
+
handleClientStylingChange(newValue: any, oldValue: any): void;
|
|
73
|
+
handleClientStylingChangeURL(newValue: any, oldValue: any): void;
|
|
68
74
|
componentWillLoad(): Promise<unknown>;
|
|
69
75
|
toggleScreen(isMobile: any): void;
|
|
70
76
|
componentDidLoad(): void;
|
|
71
77
|
disconnectedCallback(): void;
|
|
72
|
-
setClientStyling: () => void;
|
|
73
|
-
setClientStylingURL: () => void;
|
|
74
|
-
componentDidRender(): void;
|
|
75
78
|
render(): any;
|
|
76
79
|
private loadWidget;
|
|
77
80
|
private handleMessage;
|
|
@@ -32,6 +32,10 @@ export namespace Components {
|
|
|
32
32
|
"homeUrl": string;
|
|
33
33
|
"isShortCashier": boolean;
|
|
34
34
|
"language": string;
|
|
35
|
+
/**
|
|
36
|
+
* Client custom styling via streamStyling
|
|
37
|
+
*/
|
|
38
|
+
"mbSource": string;
|
|
35
39
|
"productType": string;
|
|
36
40
|
"session": string;
|
|
37
41
|
"showBonusSelectionInput": string;
|
|
@@ -81,6 +85,10 @@ declare namespace LocalJSX {
|
|
|
81
85
|
"homeUrl"?: string;
|
|
82
86
|
"isShortCashier"?: boolean;
|
|
83
87
|
"language"?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Client custom styling via streamStyling
|
|
90
|
+
*/
|
|
91
|
+
"mbSource"?: string;
|
|
84
92
|
"productType"?: string;
|
|
85
93
|
"session"?: string;
|
|
86
94
|
"showBonusSelectionInput"?: string;
|
|
@@ -1015,8 +1015,6 @@ export declare namespace JSXBase {
|
|
|
1015
1015
|
autoPlay?: boolean;
|
|
1016
1016
|
autoplay?: boolean | string;
|
|
1017
1017
|
controls?: boolean;
|
|
1018
|
-
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1019
|
-
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1020
1018
|
crossOrigin?: string;
|
|
1021
1019
|
crossorigin?: string;
|
|
1022
1020
|
loop?: boolean;
|
|
@@ -1566,10 +1564,6 @@ export declare namespace JSXBase {
|
|
|
1566
1564
|
onSubmitCapture?: (event: Event) => void;
|
|
1567
1565
|
onInvalid?: (event: Event) => void;
|
|
1568
1566
|
onInvalidCapture?: (event: Event) => void;
|
|
1569
|
-
onBeforeToggle?: (event: Event) => void;
|
|
1570
|
-
onBeforeToggleCapture?: (event: Event) => void;
|
|
1571
|
-
onToggle?: (event: Event) => void;
|
|
1572
|
-
onToggleCapture?: (event: Event) => void;
|
|
1573
1567
|
onLoad?: (event: Event) => void;
|
|
1574
1568
|
onLoadCapture?: (event: Event) => void;
|
|
1575
1569
|
onError?: (event: Event) => void;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],w=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?b(v):f.raf(v))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},v=()=>{$(m),$(w),(d=m.length>0)&&f.raf(v)},b=e=>h().then(e),g=y(w,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>L});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},L=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),A={},H=new WeakMap,N=e=>"sc-"+e.v,U=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=D(n),s=D(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(F);t=t.replace(q,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},W=/\s/,D=e=>e?e.split(W):[],F="Capture",q=RegExp(F+"$"),G=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of V(Object.keys(o)))e in s||U(l,e,o[e],void 0,n,t.l);for(const e of V(Object.keys(s)))U(l,e,o[e],s[e],n,t.l)};function V(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else{if(_||(_="svg"===l.m),o=l.$=a.createElementNS(_?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),_&&"foreignObject"===l.m&&(_=!1),G(null,l,_),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=z(e,l,r),s&&o.appendChild(s);"svg"===l.m?_=!1:"foreignObject"===o.tagName&&(_=!0)}return o["s-hn"]=x,o},B=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=z(null,n,o),r&&(l[o].$=r,X(i,r,t)))},I=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Q(t),e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),K=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(G(e,t,_="svg"===r||"foreignObject"!==r&&_),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],w=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==w)w=l[--d];else if(J(h,m,o))K(h,m,o),h=t[++i],m=l[++c];else if(J(p,w,o))K(p,w,o),p=t[--f],w=l[--d];else if(J(h,w,o))K(h,w,o),X(e,h.$,p.$.nextSibling),h=t[++i],w=l[--d];else if(J(p,m,o))K(p,m,o),X(e,p.$,h.$),p=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=z(t&&t[c],n,u):(K(r,m,o),t[u]=void 0,s=r.$),m=l[++c]):(s=z(t&&t[c],n,c),m=l[++c]),s&&X(h.$.parentNode,s,h.$)}i>f?B(e,null==l[d+1]?null:l[d+1].$,n,l,c,d):c>d&&I(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),B(l,null,t,s,0,s.length-1)):null!==o&&I(o,0,o.length-1),_&&"svg"===r&&(_=!1)):e.i!==i&&(l.data=i)},Q=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Q)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Y=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Z=(e,t)=>{if(e.l|=16,!(4&e.l))return Y(e,e.j),g((()=>ee(e,t)));e.l|=512},ee=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=ie(n,"componentWillLoad")),te(l,(()=>le(e,n,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,le=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=N(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=H.get(e=e.head||e);if(r||H.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.O)?n:k(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);oe(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},oe=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||T(null,null),r=(e=>e&&e.m===A)(t)?t:R(null,null,t);if(x=l.tagName,o.M&&(r.u=r.u||{},o.M.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.C=r,r.$=s.$=l.shadowRoot||l,M=l["s-sc"],K(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,ce(t),ie(n,"componentDidLoad"),e.P(t),l||re()),e.S&&(e.S(),e.S=void 0),512&e.l&&b((()=>Z(e,!1))),e.l&=-517},re=()=>{ce(a.documentElement),b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"user-deposit-withdrawal"}});return e.dispatchEvent(t),t})(u)))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ce=e=>e.classList.add("hydrated"),ue=(e,t,l)=>{var o,r;const i=e.prototype;if(t.L||t.R||e.watchers){e.watchers&&!t.R&&(t.R=e.watchers);const c=Object.entries(null!=(o=t.L)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).T.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.T.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.L[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.T.set(t,l),a)){if(o.R&&128&u){const e=o.R[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&Z(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.R)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.R)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.M)||o.push([e,s])),s}))]))}}return e},ae=e=>{ie(e,"disconnectedCallback")},fe=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,w=a.head,y=w.querySelector("meta[charset]"),$=a.createElement("style"),v=[];let b,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],v:l[1],L:l[2],A:l[3]};4&c.l&&(S=!0),c.L=l[2],c.M=[],c.R=null!=(o=l[4])?o:{};const u=c.v,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,T:new Map};l.H=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?v.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.H)&&t.H.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(t,t.j=n);break}}l.L&&Object.entries(l.L).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.N){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.N;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.U}" was not found`);l.isProxied||(n.R=l.watchers,ue(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=N(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>Z(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)?ae(e.t):(null==e?void 0:e.H)&&e.H.then((()=>ae(e.t)))}})()))}componentOnReady(){return n(this).H}};c.N=e[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,ue(a,c,1)))}))})),h.length>0&&(S&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(o=f.O)?o:k(a);null!=e&&$.setAttribute("nonce",e),w.insertBefore($,y?y.nextSibling:w.firstChild)}g=!1,v.length?v.map((e=>e.connectedCallback())):f.jmp((()=>b=setTimeout(re,30)))},he=e=>f.O=e;export{A as H,fe as b,R as h,h as p,l as r,he as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,H as r}from"./p-28da125c.js";const i=["ro","en","fr","hr","en-us","es-mx","pt-br","es","de","pt","tr"],n={en:{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate depost transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21122:"Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",errorCode21123:"Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"},"en-us":{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate depost transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21122:"Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",errorCode21123:"Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"},ro:{Deposit:"Depunere",Withdraw:"Retragere",denyDeposit:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de depunere.",denyWithdrawal:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de retragere.",notFoundErrorCode:"Cod de eroare negăsit",errorCode21122:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a iniția o tranzacție de retragere din contul dvs. de jucător. Cod de eroare: 21122",errorCode21123:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a efectua o depunere în contul dvs. de jucător. Cod de eroare: 21123"},fr:{Deposit:"Dépôt",Withdraw:"Retrait",denyDeposit:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de dépôt.",denyWithdrawal:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de retrait.",notFoundErrorCode:"Code d’erreur introuvable",errorCode21122:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier une transaction de retrait depuis votre compte joueur. Code d’erreur : 21122",errorCode21123:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à effectuer un dépôt sur votre compte joueur. Code d’erreur : 21123"},hr:{Deposit:"Uplata",Withdraw:"Isplata",denyDeposit:"Obavještavamo Vas da trenutno nemate mogućnost uplata.",denyWithdrawal:"Obavještavamo vas da trenutno niste ovlašteni za pokretanje transakcija isplate.",notFoundErrorCode:"Not found error code",errorCode21122:"Poštovani, trenutno nije moguće izvršiti isplatu sa Vašeg računa. Error Code: 21122",errorCode21123:"Poštovani, trenutno nije moguće izvršiti uplatu na Vaš račun. Error Code:21123"},de:{Deposit:"Einzahlung",Withdraw:"Abhebung",denyDeposit:"Bitte beachten Sie, dass Sie derzeit keine Einzahlungs-Transaktionen durchführen dürfen.",denyWithdrawal:"Bitte beachten Sie, dass Sie derzeit keine Abhebungs-Transaktionen durchführen dürfen.",notFoundErrorCode:"Fehlercode nicht gefunden",errorCode21122:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Abhebung von Ihrem Spielerkonto durchführen dürfen. Fehlercode: 21122",errorCode21123:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Einzahlung auf Ihr Spielerkonto durchführen dürfen. Fehlercode: 21123"},es:{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},pt:{Deposit:"Depósito",Withdraw:"Levantamento",denyDeposit:"Informamos que atualmente não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente não tem permissão para iniciar transações de levantamento.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente não tem permissão para iniciar uma transação de levantamento na sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente não tem permissão para realizar um depósito na sua conta de jogador. Código de erro: 21123"},"es-mx":{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},"pt-br":{Deposit:"Depósito",Withdraw:"Saque",denyDeposit:"Informamos que atualmente você não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente você não tem permissão para iniciar transações de saque.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente você não tem permissão para iniciar uma transação de saque em sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente você não tem permissão para realizar um depósito em sua conta de jogador. Código de erro: 21123"},tr:{Deposit:"Para Yatırma",Withdraw:"Para Çekme",denyDeposit:"Lütfen şu anda para yatırma işlemi başlatamayacağınızı bilgilerinize sunarız.",denyWithdrawal:"Lütfen şu anda para çekme işlemi başlatamayacağınızı bilgilerinize sunarız.",notFoundErrorCode:"Hata kodu bulunamadı",errorCode21122:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınızdan para çekme işlemi başlatamayacağınızı bilgilerinize sunarız. Hata Kodu: 21122",errorCode21123:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınıza para yatırma işlemi yapamayacağınızı bilgilerinize sunarız. Hata Kodu: 21123"}},o=(e,t)=>{const r=t;return n[void 0!==r&&i.includes(r)?r:"en"][e]};function a(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function s(e,t){const r=new URL(t);fetch(r.href).then((e=>e.text())).then((t=>{const r=document.createElement("style");r.innerHTML=t,e&&e.appendChild(r)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var d={exports:{}};d.exports=function(){var e=6e4,t=36e5,r="millisecond",i="second",n="minute",o="hour",a="day",s="week",d="month",u="quarter",h="year",c="date",l="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},w=function(e,t,r){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(r)+e},y={s:w,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),i=Math.floor(r/60),n=r%60;return(t<=0?"+":"-")+w(i,2,"0")+":"+w(n,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var i=12*(r.year()-t.year())+(r.month()-t.month()),n=t.clone().add(i,d),o=r-n<0,a=t.clone().add(i+(o?-1:1),d);return+(-(i+(r-n)/(o?n-a:a-n))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:h,w:s,d:a,D:c,h:o,m:n,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",g={};g[v]=f;var C="$isDayjsObject",D=function(e){return e instanceof W||!(!e||!e[C])},b=function e(t,r,i){var n;if(!t)return v;if("string"==typeof t){var o=t.toLowerCase();g[o]&&(n=o),r&&(g[o]=r,n=o);var a=t.split("-");if(!n&&a.length>1)return e(a[0])}else{var s=t.name;g[s]=t,n=s}return!i&&n&&(v=n),n||!i&&v},S=function(e,t){if(D(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new W(r)},M=y;M.l=b,M.i=D,M.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var W=function(){function f(e){this.$L=b(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[C]=!0}var w=f.prototype;return w.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(M.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(m);if(i){var n=i[2]-1||0,o=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(e),this.init()},w.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},w.$utils=function(){return M},w.isValid=function(){return!(this.$d.toString()===l)},w.isSame=function(e,t){var r=S(e);return this.startOf(t)<=r&&r<=this.endOf(t)},w.isAfter=function(e,t){return S(e)<this.startOf(t)},w.isBefore=function(e,t){return this.endOf(t)<S(e)},w.$g=function(e,t,r){return M.u(e)?this[t]:this.set(r,e)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(e,t){var r=this,u=!!M.u(t)||t,l=M.p(e),m=function(e,t){var i=M.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return u?i:i.endOf(a)},p=function(e,t){return M.w(r.toDate()[e].apply(r.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},f=this.$W,w=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(l){case h:return u?m(1,0):m(31,11);case d:return u?m(1,w):m(0,w+1);case s:var g=this.$locale().weekStart||0,C=(f<g?f+7:f)-g;return m(u?y-C:y+(6-C),w);case a:case c:return p(v+"Hours",0);case o:return p(v+"Minutes",1);case n:return p(v+"Seconds",2);case i:return p(v+"Milliseconds",3);default:return this.clone()}},w.endOf=function(e){return this.startOf(e,!1)},w.$set=function(e,t){var s,u=M.p(e),l="set"+(this.$u?"UTC":""),m=(s={},s[a]=l+"Date",s[c]=l+"Date",s[d]=l+"Month",s[h]=l+"FullYear",s[o]=l+"Hours",s[n]=l+"Minutes",s[i]=l+"Seconds",s[r]=l+"Milliseconds",s)[u],p=u===a?this.$D+(t-this.$W):t;if(u===d||u===h){var f=this.clone().set(c,1);f.$d[m](p),f.init(),this.$d=f.set(c,Math.min(this.$D,f.daysInMonth())).$d}else m&&this.$d[m](p);return this.init(),this},w.set=function(e,t){return this.clone().$set(e,t)},w.get=function(e){return this[M.p(e)]()},w.add=function(r,u){var c,l=this;r=Number(r);var m=M.p(u),p=function(e){var t=S(l);return M.w(t.date(t.date()+Math.round(e*r)),l)};if(m===d)return this.set(d,this.$M+r);if(m===h)return this.set(h,this.$y+r);if(m===a)return p(1);if(m===s)return p(7);var f=(c={},c[n]=e,c[o]=t,c[i]=1e3,c)[m]||1,w=this.$d.getTime()+r*f;return M.w(w,this)},w.subtract=function(e,t){return this.add(-1*e,t)},w.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||l;var i=e||"YYYY-MM-DDTHH:mm:ssZ",n=M.z(this),o=this.$H,a=this.$m,s=this.$M,d=r.weekdays,u=r.months,h=function(e,r,n,o){return e&&(e[r]||e(t,i))||n[r].slice(0,o)},c=function(e){return M.s(o%12||12,e,"0")},m=r.meridiem||function(e,t,r){var i=e<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(p,(function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return M.s(t.$y,4,"0");case"M":return s+1;case"MM":return M.s(s+1,2,"0");case"MMM":return h(r.monthsShort,s,u,3);case"MMMM":return h(u,s);case"D":return t.$D;case"DD":return M.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(r.weekdaysMin,t.$W,d,2);case"ddd":return h(r.weekdaysShort,t.$W,d,3);case"dddd":return d[t.$W];case"H":return String(o);case"HH":return M.s(o,2,"0");case"h":return c(1);case"hh":return c(2);case"a":return m(o,a,!0);case"A":return m(o,a,!1);case"m":return String(a);case"mm":return M.s(a,2,"0");case"s":return String(t.$s);case"ss":return M.s(t.$s,2,"0");case"SSS":return M.s(t.$ms,3,"0");case"Z":return n}return null}(e)||n.replace(":","")}))},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(r,c,l){var m,p=this,f=M.p(c),w=S(r),y=(w.utcOffset()-this.utcOffset())*e,v=this-w,g=function(){return M.m(p,w)};switch(f){case h:m=g()/12;break;case d:m=g();break;case u:m=g()/3;break;case s:m=(v-y)/6048e5;break;case a:m=(v-y)/864e5;break;case o:m=v/t;break;case n:m=v/e;break;case i:m=v/1e3;break;default:m=v}return l?m:M.a(m)},w.daysInMonth=function(){return this.endOf(d).$D},w.$locale=function(){return g[this.$L]},w.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),i=b(e,t,!0);return i&&(r.$L=i),r},w.clone=function(){return M.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},f}(),z=W.prototype;return S.prototype=z,[["$ms",r],["$s",i],["$m",n],["$H",o],["$W",a],["$M",d],["$y",h],["$D",c]].forEach((function(e){z[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,W,S),e.$i=!0),S},S.locale=b,S.isDayjs=D,S.unix=function(e){return S(1e3*e)},S.en=g[v],S.Ls=g,S.p={},S}();const u=d.exports;var h,c,l,m={exports:{}};m.exports=(h="minute",c=/[+-]\d\d(?::?\d\d)?/g,l=/([+-]|\d\d)/g,function(e,t,r){var i=t.prototype;r.utc=function(e){return new t({date:e,utc:!0,args:arguments})},i.utc=function(e){var t=r(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),h):t},i.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var n=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),n.call(this,e)};var o=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else o.call(this)};var a=i.utcOffset;i.utcOffset=function(e,t){var r=this.$utils().u;if(r(e))return this.$u?0:r(this.$offset)?a.call(this):this.$offset;if("string"==typeof e&&(e=function(e){void 0===e&&(e="");var t=e.match(c);if(!t)return null;var r=(""+t[0]).match(l)||["-",0,0],i=60*+r[1]+ +r[2];return 0===i?0:"+"===r[0]?i:-i}(e),null===e))return this;var i=Math.abs(e)<=16?60*e:e,n=this;if(t)return n.$offset=i,n.$u=0===e,n;if(0!==e){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(n=this.local().add(i+o,h)).$offset=i,n.$x.$localOffset=o}else n=this.utc();return n};var s=i.format;i.format=function(e){return s.call(this,e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var u=i.diff;i.diff=function(e,t,i){if(e&&this.$u===e.$u)return u.call(this,e,t,i);var n=this.local(),o=r(e).local();return u.call(n,o,t,i)}}),u.extend(m.exports);const p=()=>{},f=class{constructor(t){var r;e(this,t),this.bindedHandler=this.handleMessage.bind(this),this.userAgent=window.navigator.userAgent,this.isMobile=!!((r=this.userAgent).toLowerCase().match(/android/i)||r.toLowerCase().match(/blackberry|bb/i)||r.toLowerCase().match(/iphone|ipad|ipod/i)||r.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),this.errorCodes=["21123","21122"],this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",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=p,this.dynamicHeight=void 0,this.cashierInfoUrl=void 0}get typeParameter(){return"deposit"===this.type?"Deposit":"withdraw"===this.type?"Withdraw":void 0}watchLoadWidget(){this.loadWidget()}handleClientStylingChange(e,t){e!=t&&a(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){if(await this.loadWidget(),this.translationUrl)return e=this.translationUrl,new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{for(let r in e[t])n[t][r]=e[t][r]})),t(!0)}))}));var e}toggleScreen(e){window.postMessage({type:"PlayerAccountMenuActive",isMobile:e},window.location.href)}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(e,t){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{r.innerHTML=t,e&&e.appendChild(r)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))),window.addEventListener("message",this.bindedHandler,!1)}disconnectedCallback(){window.removeEventListener("message",this.bindedHandler,!1),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return t(r,{key:"4963fd9b7ce608f13fd464996c085c29045fcd59"},t("div",{key:"1fe503816ddb4f18d50545f0f627dd917e6f62ec",ref:e=>this.stylingContainer=e},!(this.isMobile&&!this.isShortCashier)&&t("h2",{key:"5bf653f70da5f95173a7dc2c7067d0968876b50a",class:"CategoryTitle"},o("Withdraw"===this.typeParameter?"Withdraw":"Deposit",this.language)),t("div",{key:"44a47893b6b2ce83e45f69e8997aa6e450968941",class:"DepositWithdrawalWrapper "+(this.isShortCashier?"ShortCashier":""),style:{height:this.dynamicHeight,marginTop:this.isShortCashier?"30px":"0"}},t("div",{key:"949862539b439d5f2375a08115a7389bf355dd2c"},this.isMobile&&!this.isShortCashier?t("div",{class:"MenuReturnButton",onClick:()=>this.toggleScreen(this.isMobile)},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},t("defs",null),t("g",{transform:"translate(-20 -158)"},t("g",{transform:"translate(20 158)"},t("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)"})))),t("h2",{class:"CategoryTitleMobile"},o("Withdraw"===this.typeParameter?"Withdraw":"Deposit",this.language))):null),this.cashierInfoUrl?t("iframe",{width:"100%",height:"100%",src:this.cashierInfoUrl}):t("h3",{class:"ErrorMessage"},o("deposit"===this.type?"denyDeposit":"denyWithdrawal",this.language)))))}async loadWidget(){const e={Channel:this.channel,Type:this.typeParameter,SuccessUrl:this.successUrl,CancelUrl:this.cancelUrl,FailUrl:this.failUrl,Language:this.language,productType:this.productType,isShortCashier:this.isShortCashier,currency:this.currency,showBonusSelectionInput:this.showBonusSelectionInput};try{const t=`${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`,r=await fetch(t,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json","X-Client-Request-Timestamp":u.utc().format("YYYY-MM-DD HH:mm:ss.SSS")},body:JSON.stringify(e)});if(!r.ok){const e=await r.text();throw new Error(e)}const i=await r.json();if(i.CashierInfo)this.cashierInfoUrl=i.CashierInfo.Url;else{let e;if(i.ResponseMessage){let t=this.errorCodes.find((e=>i.ResponseMessage.includes(e)))||null;e=o(t?`errorCode${t}`:"notFoundErrorCode",this.language)}else e=o("deposit"===this.type?"denyDeposit":"denyWithdrawal",this.language);window.postMessage({type:"DenyDepositOrWithdrawal",data:{type:"error",message:e}},window.location.href)}}catch(e){console.error(e)}}handleMessage(e){var t,r,i,n,o,a,s,d;"true"===e.data["MMFE:openFullCashier"]&&(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"),"mm-hcback-to-merchant"===(null===(t=e.data)||void 0===t?void 0:t.type)&&this.doRedirect(e.data.type,this.homeUrl),"mm-hc-back-tomerchant"===(null===(r=e.data)||void 0===r?void 0:r.redirect)&&this.doRedirect(e.data.redirect,this.homeUrl),"mm-hc-sports"===(null===(i=e.data)||void 0===i?void 0:i.redirect)&&this.doRedirect(null===(n=e.data)||void 0===n?void 0:n.redirect,this.sportsUrl),"mm-hc-casino"===(null===(o=e.data)||void 0===o?void 0:o.redirect)&&this.doRedirect(window.location.href,this.casinoUrl),"mm-hc-contact"===(null===(a=e.data)||void 0===a?void 0:a.redirect)&&(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.contactUrl)),"mm-wm-hc-init-deposit"!==(null===(s=e.data)||void 0===s?void 0:s.redirect)&&"mm-wm-hc-init-deposit-quick"!==(null===(d=e.data)||void 0===d?void 0:d.redirect)||(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.depositUrl))}doRedirect(e,t){const r={reason:e,url:t,cancel:!1};this.beforeRedirect(r),r.cancel||(window.location.href=r.url?r.url:"/")}static get watchers(){return{session:["watchLoadWidget"],userId:["watchLoadWidget"],isShortCashier:["watchLoadWidget"],currency:["watchLoadWidget"],showBonusSelectionInput:["watchLoadWidget"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};f.style=":host {\n font: inherit;\n display: block;\n height: 100%;\n overflow: hidden;\n}\n\n.CategoryTitle {\n font-size: var(--emw--font-size-x-large, 26px);\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));\n}\n\n.MenuReturnButton {\n font: inherit;\n color: var(--emw--color-gray-300, #58586B);\n display: inline-flex;\n align-items: center;\n column-gap: 10px;\n margin-bottom: 10px;\n}\n.MenuReturnButton svg {\n fill: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));\n}\n.MenuReturnButton h2.CategoryTitleMobile {\n font-size: 16px;\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));\n}\n\n.ErrorMessage {\n color: var(--emw--pam-color-typography, var(--emw--color-typography, #FFFFFF));\n}\n\n.DepositWithdrawalWrapper {\n width: 100%;\n padding: 0;\n margin: 0;\n height: 100vh;\n}\n\n@container (max-width: 475px) {\n .DepositWithdrawalWrapper {\n height: 100vh;\n }\n}\n.ShortCashier.DepositWithdrawalWrapper {\n height: 500px;\n}\n.ShortCashier.CategoryTitle.CategoryTitle {\n margin-right: 20px;\n padding-top: 20px;\n color: ar(--emw--color-black, #000000);\n}\n.ShortCashier .ErrorMessage {\n margin: auto;\n width: 90%;\n margin-top: 70px;\n text-align: center;\n color: var(--emw--color-black, #000000);\n}";export{f as user_deposit_withdrawal}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,b as t}from"./p-28da125c.js";export{s as setNonce}from"./p-28da125c.js";import{g as r}from"./p-e1255160.js";(()=>{const t=import.meta.url,r={};return""!==t&&(r.resourcesUrl=new URL(".",t).href),e(r)})().then((async e=>(await r(),t([["p-cfe9e501",[[1,"user-deposit-withdrawal",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-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],dynamicHeight:[32],cashierInfoUrl:[32]},null,{session:["watchLoadWidget"],userId:["watchLoadWidget"],isShortCashier:["watchLoadWidget"],currency:["watchLoadWidget"],showBonusSelectionInput:["watchLoadWidget"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}]]]],e))));
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t,H as r}from"./p-8690bdb0.js";const i=["ro","en","fr","hr","en-us","es-mx","pt-br","es","de","pt","tr"],n={en:{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate depost transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21122:"Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",errorCode21123:"Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"},"en-us":{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate depost transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21122:"Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",errorCode21123:"Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"},ro:{Deposit:"Depunere",Withdraw:"Retragere",denyDeposit:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de depunere.",denyWithdrawal:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de retragere.",notFoundErrorCode:"Cod de eroare negăsit",errorCode21122:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a iniția o tranzacție de retragere din contul dvs. de jucător. Cod de eroare: 21122",errorCode21123:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a efectua o depunere în contul dvs. de jucător. Cod de eroare: 21123"},fr:{Deposit:"Dépôt",Withdraw:"Retrait",denyDeposit:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de dépôt.",denyWithdrawal:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de retrait.",notFoundErrorCode:"Code d’erreur introuvable",errorCode21122:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier une transaction de retrait depuis votre compte joueur. Code d’erreur : 21122",errorCode21123:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à effectuer un dépôt sur votre compte joueur. Code d’erreur : 21123"},hr:{Deposit:"Uplata",Withdraw:"Isplata",denyDeposit:"Obavještavamo Vas da trenutno nemate mogućnost uplata.",denyWithdrawal:"Obavještavamo vas da trenutno niste ovlašteni za pokretanje transakcija isplate.",notFoundErrorCode:"Not found error code",errorCode21122:"Poštovani, trenutno nije moguće izvršiti isplatu sa Vašeg računa. Error Code: 21122",errorCode21123:"Poštovani, trenutno nije moguće izvršiti uplatu na Vaš račun. Error Code:21123"},de:{Deposit:"Einzahlung",Withdraw:"Abhebung",denyDeposit:"Bitte beachten Sie, dass Sie derzeit keine Einzahlungs-Transaktionen durchführen dürfen.",denyWithdrawal:"Bitte beachten Sie, dass Sie derzeit keine Abhebungs-Transaktionen durchführen dürfen.",notFoundErrorCode:"Fehlercode nicht gefunden",errorCode21122:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Abhebung von Ihrem Spielerkonto durchführen dürfen. Fehlercode: 21122",errorCode21123:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Einzahlung auf Ihr Spielerkonto durchführen dürfen. Fehlercode: 21123"},es:{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},pt:{Deposit:"Depósito",Withdraw:"Levantamento",denyDeposit:"Informamos que atualmente não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente não tem permissão para iniciar transações de levantamento.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente não tem permissão para iniciar uma transação de levantamento na sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente não tem permissão para realizar um depósito na sua conta de jogador. Código de erro: 21123"},"es-mx":{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},"pt-br":{Deposit:"Depósito",Withdraw:"Saque",denyDeposit:"Informamos que atualmente você não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente você não tem permissão para iniciar transações de saque.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente você não tem permissão para iniciar uma transação de saque em sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente você não tem permissão para realizar um depósito em sua conta de jogador. Código de erro: 21123"},tr:{Deposit:"Para Yatırma",Withdraw:"Para Çekme",denyDeposit:"Lütfen şu anda para yatırma işlemi başlatamayacağınızı bilgilerinize sunarız.",denyWithdrawal:"Lütfen şu anda para çekme işlemi başlatamayacağınızı bilgilerinize sunarız.",notFoundErrorCode:"Hata kodu bulunamadı",errorCode21122:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınızdan para çekme işlemi başlatamayacağınızı bilgilerinize sunarız. Hata Kodu: 21122",errorCode21123:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınıza para yatırma işlemi yapamayacağınızı bilgilerinize sunarız. Hata Kodu: 21123"}},a=(e,t)=>{const r=t;return n[void 0!==r&&i.includes(r)?r:"en"][e]};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var o={exports:{}};o.exports=function(){var e=6e4,t=36e5,r="millisecond",i="second",n="minute",a="hour",o="day",s="week",d="month",u="quarter",h="year",c="date",l="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},w=function(e,t,r){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(r)+e},v={s:w,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),i=Math.floor(r/60),n=r%60;return(t<=0?"+":"-")+w(i,2,"0")+":"+w(n,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var i=12*(r.year()-t.year())+(r.month()-t.month()),n=t.clone().add(i,d),a=r-n<0,o=t.clone().add(i+(a?-1:1),d);return+(-(i+(r-n)/(a?n-o:o-n))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:h,w:s,d:o,D:c,h:a,m:n,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",g={};g[y]=f;var C="$isDayjsObject",b=function(e){return e instanceof W||!(!e||!e[C])},D=function e(t,r,i){var n;if(!t)return y;if("string"==typeof t){var a=t.toLowerCase();g[a]&&(n=a),r&&(g[a]=r,n=a);var o=t.split("-");if(!n&&o.length>1)return e(o[0])}else{var s=t.name;g[s]=t,n=s}return!i&&n&&(y=n),n||!i&&y},S=function(e,t){if(b(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new W(r)},M=v;M.l=D,M.i=b,M.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var W=function(){function f(e){this.$L=D(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[C]=!0}var w=f.prototype;return w.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(M.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(m);if(i){var n=i[2]-1||0,a=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)):new Date(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)}}return new Date(t)}(e),this.init()},w.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},w.$utils=function(){return M},w.isValid=function(){return!(this.$d.toString()===l)},w.isSame=function(e,t){var r=S(e);return this.startOf(t)<=r&&r<=this.endOf(t)},w.isAfter=function(e,t){return S(e)<this.startOf(t)},w.isBefore=function(e,t){return this.endOf(t)<S(e)},w.$g=function(e,t,r){return M.u(e)?this[t]:this.set(r,e)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(e,t){var r=this,u=!!M.u(t)||t,l=M.p(e),m=function(e,t){var i=M.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return u?i:i.endOf(o)},p=function(e,t){return M.w(r.toDate()[e].apply(r.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},f=this.$W,w=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(l){case h:return u?m(1,0):m(31,11);case d:return u?m(1,w):m(0,w+1);case s:var g=this.$locale().weekStart||0,C=(f<g?f+7:f)-g;return m(u?v-C:v+(6-C),w);case o:case c:return p(y+"Hours",0);case a:return p(y+"Minutes",1);case n:return p(y+"Seconds",2);case i:return p(y+"Milliseconds",3);default:return this.clone()}},w.endOf=function(e){return this.startOf(e,!1)},w.$set=function(e,t){var s,u=M.p(e),l="set"+(this.$u?"UTC":""),m=(s={},s[o]=l+"Date",s[c]=l+"Date",s[d]=l+"Month",s[h]=l+"FullYear",s[a]=l+"Hours",s[n]=l+"Minutes",s[i]=l+"Seconds",s[r]=l+"Milliseconds",s)[u],p=u===o?this.$D+(t-this.$W):t;if(u===d||u===h){var f=this.clone().set(c,1);f.$d[m](p),f.init(),this.$d=f.set(c,Math.min(this.$D,f.daysInMonth())).$d}else m&&this.$d[m](p);return this.init(),this},w.set=function(e,t){return this.clone().$set(e,t)},w.get=function(e){return this[M.p(e)]()},w.add=function(r,u){var c,l=this;r=Number(r);var m=M.p(u),p=function(e){var t=S(l);return M.w(t.date(t.date()+Math.round(e*r)),l)};if(m===d)return this.set(d,this.$M+r);if(m===h)return this.set(h,this.$y+r);if(m===o)return p(1);if(m===s)return p(7);var f=(c={},c[n]=e,c[a]=t,c[i]=1e3,c)[m]||1,w=this.$d.getTime()+r*f;return M.w(w,this)},w.subtract=function(e,t){return this.add(-1*e,t)},w.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||l;var i=e||"YYYY-MM-DDTHH:mm:ssZ",n=M.z(this),a=this.$H,o=this.$m,s=this.$M,d=r.weekdays,u=r.months,h=function(e,r,n,a){return e&&(e[r]||e(t,i))||n[r].slice(0,a)},c=function(e){return M.s(a%12||12,e,"0")},m=r.meridiem||function(e,t,r){var i=e<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(p,(function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return M.s(t.$y,4,"0");case"M":return s+1;case"MM":return M.s(s+1,2,"0");case"MMM":return h(r.monthsShort,s,u,3);case"MMMM":return h(u,s);case"D":return t.$D;case"DD":return M.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(r.weekdaysMin,t.$W,d,2);case"ddd":return h(r.weekdaysShort,t.$W,d,3);case"dddd":return d[t.$W];case"H":return String(a);case"HH":return M.s(a,2,"0");case"h":return c(1);case"hh":return c(2);case"a":return m(a,o,!0);case"A":return m(a,o,!1);case"m":return String(o);case"mm":return M.s(o,2,"0");case"s":return String(t.$s);case"ss":return M.s(t.$s,2,"0");case"SSS":return M.s(t.$ms,3,"0");case"Z":return n}return null}(e)||n.replace(":","")}))},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(r,c,l){var m,p=this,f=M.p(c),w=S(r),v=(w.utcOffset()-this.utcOffset())*e,y=this-w,g=function(){return M.m(p,w)};switch(f){case h:m=g()/12;break;case d:m=g();break;case u:m=g()/3;break;case s:m=(y-v)/6048e5;break;case o:m=(y-v)/864e5;break;case a:m=y/t;break;case n:m=y/e;break;case i:m=y/1e3;break;default:m=y}return l?m:M.a(m)},w.daysInMonth=function(){return this.endOf(d).$D},w.$locale=function(){return g[this.$L]},w.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),i=D(e,t,!0);return i&&(r.$L=i),r},w.clone=function(){return M.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},f}(),z=W.prototype;return S.prototype=z,[["$ms",r],["$s",i],["$m",n],["$H",a],["$W",o],["$M",d],["$y",h],["$D",c]].forEach((function(e){z[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,W,S),e.$i=!0),S},S.locale=D,S.isDayjs=b,S.unix=function(e){return S(1e3*e)},S.en=g[y],S.Ls=g,S.p={},S}();const s=o.exports;var d,u,h,c={exports:{}};c.exports=(d="minute",u=/[+-]\d\d(?::?\d\d)?/g,h=/([+-]|\d\d)/g,function(e,t,r){var i=t.prototype;r.utc=function(e){return new t({date:e,utc:!0,args:arguments})},i.utc=function(e){var t=r(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),d):t},i.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var n=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),n.call(this,e)};var a=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else a.call(this)};var o=i.utcOffset;i.utcOffset=function(e,t){var r=this.$utils().u;if(r(e))return this.$u?0:r(this.$offset)?o.call(this):this.$offset;if("string"==typeof e&&(e=function(e){void 0===e&&(e="");var t=e.match(u);if(!t)return null;var r=(""+t[0]).match(h)||["-",0,0],i=60*+r[1]+ +r[2];return 0===i?0:"+"===r[0]?i:-i}(e),null===e))return this;var i=Math.abs(e)<=16?60*e:e,n=this;if(t)return n.$offset=i,n.$u=0===e,n;if(0!==e){var a=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(n=this.local().add(i+a,d)).$offset=i,n.$x.$localOffset=a}else n=this.utc();return n};var s=i.format;i.format=function(e){return s.call(this,e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var c=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var l=i.diff;i.diff=function(e,t,i){if(e&&this.$u===e.$u)return l.call(this,e,t,i);var n=this.local(),a=r(e).local();return l.call(n,a,t,i)}}),s.extend(c.exports);const l=()=>{},m=class{constructor(t){var r;e(this,t),this.bindedHandler=this.handleMessage.bind(this),this.userAgent=window.navigator.userAgent,this.isMobile=!!((r=this.userAgent).toLowerCase().match(/android/i)||r.toLowerCase().match(/blackberry|bb/i)||r.toLowerCase().match(/iphone|ipad|ipod/i)||r.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),this.errorCodes=["21123","21122"],this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{this.stylingContainer.prepend(t)}),1)})).catch((e=>{console.log("error ",e)}))},this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",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=l,this.limitStylingAppends=!1,this.dynamicHeight=void 0,this.cashierInfoUrl=void 0}get typeParameter(){return"deposit"===this.type?"Deposit":"withdraw"===this.type?"Withdraw":void 0}watchLoadWidget(){this.loadWidget()}async componentWillLoad(){if(await this.loadWidget(),this.translationUrl)return e=this.translationUrl,new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{for(let r in e[t])n[t][r]=e[t][r]})),t(!0)}))}));var e}toggleScreen(e){window.postMessage({type:"PlayerAccountMenuActive",isMobile:e},window.location.href)}componentDidLoad(){window.addEventListener("message",this.bindedHandler,!1)}disconnectedCallback(){window.removeEventListener("message",this.bindedHandler,!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){return t(r,{key:"4c6783c9cccc65e31901eb8755729147da7c3771"},t("div",{key:"afbbc15e1210ef1ade3c094b84c12485ff94e438",ref:e=>this.stylingContainer=e},!(this.isMobile&&!this.isShortCashier)&&t("h2",{key:"99b64c5ef99e55335c4f3066f448dd19a4eeaad0",class:"CategoryTitle"},a("Withdraw"===this.typeParameter?"Withdraw":"Deposit",this.language)),t("div",{key:"eba951ef1cb0f291a3a44fd89d8da8f70ee7eba8",class:"DepositWithdrawalWrapper "+(this.isShortCashier?"ShortCashier":""),style:{height:this.dynamicHeight,marginTop:this.isShortCashier?"30px":"0"}},t("div",{key:"abd3d5958091437af76efb311a49a30f6ba4a7eb"},this.isMobile&&!this.isShortCashier?t("div",{class:"MenuReturnButton",onClick:()=>this.toggleScreen(this.isMobile)},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},t("defs",null),t("g",{transform:"translate(-20 -158)"},t("g",{transform:"translate(20 158)"},t("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)"})))),t("h2",{class:"CategoryTitleMobile"},a("Withdraw"===this.typeParameter?"Withdraw":"Deposit",this.language))):null),this.cashierInfoUrl?t("iframe",{width:"100%",height:"100%",src:this.cashierInfoUrl}):t("h3",{class:"ErrorMessage"},a("deposit"===this.type?"denyDeposit":"denyWithdrawal",this.language)))))}async loadWidget(){const e={Channel:this.channel,Type:this.typeParameter,SuccessUrl:this.successUrl,CancelUrl:this.cancelUrl,FailUrl:this.failUrl,Language:this.language,productType:this.productType,isShortCashier:this.isShortCashier,currency:this.currency,showBonusSelectionInput:this.showBonusSelectionInput};try{const t=`${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`,r=await fetch(t,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json","X-Client-Request-Timestamp":s.utc().format("YYYY-MM-DD HH:mm:ss.SSS")},body:JSON.stringify(e)});if(!r.ok){const e=await r.text();throw new Error(e)}const i=await r.json();if(i.CashierInfo)this.cashierInfoUrl=i.CashierInfo.Url;else{let e;if(i.ResponseMessage){let t=this.errorCodes.find((e=>i.ResponseMessage.includes(e)))||null;e=a(t?`errorCode${t}`:"notFoundErrorCode",this.language)}else e=a("deposit"===this.type?"denyDeposit":"denyWithdrawal",this.language);window.postMessage({type:"DenyDepositOrWithdrawal",data:{type:"error",message:e}},window.location.href)}}catch(e){console.error(e)}}handleMessage(e){var t,r,i,n,a,o,s,d;"true"===e.data["MMFE:openFullCashier"]&&(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"),"mm-hcback-to-merchant"===(null===(t=e.data)||void 0===t?void 0:t.type)&&this.doRedirect(e.data.type,this.homeUrl),"mm-hc-back-tomerchant"===(null===(r=e.data)||void 0===r?void 0:r.redirect)&&this.doRedirect(e.data.redirect,this.homeUrl),"mm-hc-sports"===(null===(i=e.data)||void 0===i?void 0:i.redirect)&&this.doRedirect(null===(n=e.data)||void 0===n?void 0:n.redirect,this.sportsUrl),"mm-hc-casino"===(null===(a=e.data)||void 0===a?void 0:a.redirect)&&this.doRedirect(window.location.href,this.casinoUrl),"mm-hc-contact"===(null===(o=e.data)||void 0===o?void 0:o.redirect)&&(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.contactUrl)),"mm-wm-hc-init-deposit"!==(null===(s=e.data)||void 0===s?void 0:s.redirect)&&"mm-wm-hc-init-deposit-quick"!==(null===(d=e.data)||void 0===d?void 0:d.redirect)||(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.depositUrl))}doRedirect(e,t){const r={reason:e,url:t,cancel:!1};this.beforeRedirect(r),r.cancel||(window.location.href=r.url?r.url:"/")}static get watchers(){return{session:["watchLoadWidget"],userId:["watchLoadWidget"],isShortCashier:["watchLoadWidget"],currency:["watchLoadWidget"],showBonusSelectionInput:["watchLoadWidget"]}}};m.style=":host {\n font: inherit;\n display: block;\n height: 100%;\n overflow: hidden;\n}\n\n.CategoryTitle {\n font-size: var(--emw--font-size-x-large, 26px);\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));\n}\n\n.MenuReturnButton {\n font: inherit;\n color: var(--emw--color-gray-300, #58586B);\n display: inline-flex;\n align-items: center;\n column-gap: 10px;\n margin-bottom: 10px;\n}\n.MenuReturnButton svg {\n fill: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));\n}\n.MenuReturnButton h2.CategoryTitleMobile {\n font-size: 16px;\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));\n}\n\n.ErrorMessage {\n color: var(--emw--pam-color-typography, var(--emw--color-typography, #FFFFFF));\n}\n\n.DepositWithdrawalWrapper {\n width: 100%;\n padding: 0;\n margin: 0;\n height: 100vh;\n}\n\n@container (max-width: 475px) {\n .DepositWithdrawalWrapper {\n height: 100vh;\n }\n}\n.ShortCashier.DepositWithdrawalWrapper {\n height: 500px;\n}\n.ShortCashier.CategoryTitle.CategoryTitle {\n margin-right: 20px;\n padding-top: 20px;\n color: ar(--emw--color-black, #000000);\n}\n.ShortCashier .ErrorMessage {\n margin: auto;\n width: 90%;\n margin-top: 70px;\n text-align: center;\n color: var(--emw--color-black, #000000);\n}";export{m as user_deposit_withdrawal}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],w=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?b(v):f.raf(v))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},v=()=>{$(m),$(y),(d=m.length>0)&&f.raf(v)},b=e=>h().then(e),g=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>x,unwrapErr:()=>P});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?D(null,l):l),i=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=D(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=o,u},D=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),H={},R=new WeakMap,L=e=>"sc-"+e.v,T=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=U(n),s=U(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(W);t=t.replace(F,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},N=/\s/,U=e=>e?e.split(N):[],W="Capture",F=RegExp(W+"$"),q=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of G(Object.keys(o)))e in s||T(l,e,o[e],void 0,n,t.l);for(const e of G(Object.keys(s)))T(l,e,o[e],s[e],n,t.l)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var V=!1,_=(e,t,n)=>{const l=t.h[n];let o,s,i=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else{if(V||(V="svg"===l.m),o=l.$=a.createElementNS(V?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),V&&"foreignObject"===l.m&&(V=!1),q(null,l,V),o.getRootNode().querySelector("body"),l.h)for(i=0;i<l.h.length;++i)s=_(e,l,i),s&&o.appendChild(s);"svg"===l.m?V=!1:"foreignObject"===o.tagName&&(V=!0)}return o["s-hn"]=M,o},z=(e,t,n,l,o,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===M&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=_(null,n,o),i&&(l[o].$=i,Q(r,i,t)))},B=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;K(t),e&&e.remove()}}},I=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),J=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,i=t.m,r=t.i;null===r?(q(e,t,V="svg"===i||"foreignObject"!==i&&V),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;r<=f&&c<=d;)if(null==h)h=t[++r];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(I(h,m,o))J(h,m,o),h=t[++r],m=l[++c];else if(I(p,y,o))J(p,y,o),p=t[--f],y=l[--d];else if(I(h,y,o))J(h,y,o),Q(e,h.$,p.$.nextSibling),h=t[++r],y=l[--d];else if(I(p,m,o))J(p,m,o),Q(e,p.$,h.$),p=t[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=_(t&&t[c],n,u):(J(i,m,o),t[u]=void 0,s=i.$),m=l[++c]):(s=_(t&&t[c],n,c),m=l[++c]),s&&Q(h.$.parentNode,s,h.$)}r>f?z(e,null==l[d+1]?null:l[d+1].$,n,l,c,d):c>d&&B(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),z(l,null,t,s,0,s.length-1)):!n&&null!==o&&B(o,0,o.length-1),V&&"svg"===i&&(V=!1)):e.i!==r&&(l.data=r)},K=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(K)},Q=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),X=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Y=(e,t)=>{if(e.l|=16,!(4&e.l))return X(e,e.j),g((()=>Z(e,t)));e.l|=512},Z=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=ie(n,"componentWillLoad")),ee(l,(()=>ne(e,n,t)))},ee=(e,t)=>te(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),te=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ne=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=L(t),o=r.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,i=R.get(e=e.head||e);if(i||R.set(e,i=new Set),!i.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=f.O)?n:k(a);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(p){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);le(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>oe(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},le=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||D(null,null),i=(e=>e&&e.m===H)(t)?t:A(null,null,t);if(M=l.tagName,o.M&&(i.u=i.u||{},o.M.map((([e,t])=>i.u[t]=l[e]))),n&&i.u)for(const e of Object.keys(i.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=l[e]);i.m=null,i.l|=4,e.C=i,i.$=s.$=l.shadowRoot||l,J(s,i,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},oe=e=>{const t=e.$hostElement$,n=e.t,l=e.j;ie(n,"componentDidRender"),64&e.l||(e.l|=64,re(t),ie(n,"componentDidLoad"),e.P(t),l||se()),e.S&&(e.S(),e.S=void 0),512&e.l&&b((()=>Y(e,!1))),e.l&=-517},se=()=>{re(a.documentElement),b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"user-deposit-withdrawal"}});return e.dispatchEvent(t),t})(u)))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},re=e=>e.classList.add("hydrated"),ce=(e,t,l)=>{var o,i;const r=e.prototype;if(t.A||t.D||e.watchers){e.watchers&&!t.D&&(t.D=e.watchers);const c=Object.entries(null!=(o=t.A)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).H.get(t))(0,e)},set(l){((e,t,l,o)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.H.get(t),u=i.l,a=i.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.A[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(i.H.set(t,l),a)){if(o.D&&128&u){const e=o.D[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,r)}}))}2==(18&u)&&Y(i,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.D)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.D)?i:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.M)||o.push([e,s])),s}))]))}}return e},ue=e=>{ie(e,"disconnectedCallback")},ae=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,w=y.querySelector("meta[charset]"),$=a.createElement("style"),v=[];let b,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],v:l[1],A:l[2],R:l[3]};4&c.l&&(S=!0),c.A=l[2],c.M=[],c.D=null!=(o=l[4])?o:{};const u=c.v,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,H:new Map};l.L=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?v.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.L)&&t.L.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){X(t,t.j=n);break}}l.A&&Object.entries(l.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.T){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.T;if(!n)return;const l=i.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.N}" was not found`);l.isProxied||(n.D=l.watchers,ce(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=L(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>Y(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)?ue(e.t):(null==e?void 0:e.L)&&e.L.then((()=>ue(e.t)))}})()))}componentOnReady(){return n(this).L}};c.T=e[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,ce(a,c,1)))}))})),h.length>0&&(S&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(o=f.O)?o:k(a);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,w?w.nextSibling:y.firstChild)}g=!1,v.length?v.map((e=>e.connectedCallback())):f.jmp((()=>b=setTimeout(se,30)))},fe=e=>f.O=e;export{H,ae as b,A as h,h as p,l as r,fe as s}
|