@everymatrix/user-deposit-withdrawal 1.54.11 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/cjs/{index-bcd33d7f.js → index-43a33fec.js} +72 -175
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/user-deposit-withdrawal.cjs.entry.js +26 -27
  4. package/dist/cjs/user-deposit-withdrawal.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.js +26 -71
  7. package/dist/esm/{index-45f4006f.js → index-657e7a14.js} +72 -175
  8. package/dist/esm/loader.js +2 -2
  9. package/dist/esm/user-deposit-withdrawal.entry.js +26 -27
  10. package/dist/esm/user-deposit-withdrawal.js +3 -3
  11. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/packages/stencil/user-deposit-withdrawal/stencil.config.d.ts +2 -0
  12. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/packages/stencil/user-deposit-withdrawal/stencil.config.dev.d.ts +2 -0
  13. package/dist/user-deposit-withdrawal/p-0913d346.entry.js +1 -0
  14. package/dist/user-deposit-withdrawal/p-8690bdb0.js +2 -0
  15. package/dist/user-deposit-withdrawal/user-deposit-withdrawal.esm.js +1 -1
  16. package/package.json +1 -1
  17. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/packages/stencil/user-deposit-withdrawal/stencil.config.d.ts +0 -2
  18. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/packages/stencil/user-deposit-withdrawal/stencil.config.dev.d.ts +0 -2
  19. package/dist/user-deposit-withdrawal/p-619e843b.entry.js +0 -1
  20. package/dist/user-deposit-withdrawal/p-d1658e2e.js +0 -2
  21. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,25 +1,17 @@
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: true, 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, modernPropertyDecls: 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 };
2
+ const BUILD = /* user-deposit-withdrawal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, 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.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
-
13
- // src/utils/constants.ts
14
- var SVG_NS = "http://www.w3.org/2000/svg";
15
- var HTML_NS = "http://www.w3.org/1999/xhtml";
16
-
17
- // src/client/client-host-ref.ts
18
12
  var hostRefs = /* @__PURE__ */ new WeakMap();
19
13
  var getHostRef = (ref) => hostRefs.get(ref);
20
- var registerInstance = (lazyInstance, hostRef) => {
21
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
22
- };
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
23
15
  var registerHost = (hostElement, cmpMeta) => {
24
16
  const hostRef = {
25
17
  $flags$: 0,
@@ -32,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
32
24
  hostElement["s-p"] = [];
33
25
  hostElement["s-rc"] = [];
34
26
  }
35
- const ref = hostRefs.set(hostElement, hostRef);
36
- return ref;
27
+ return hostRefs.set(hostElement, hostRef);
37
28
  };
38
29
  var isMemberInElement = (elm, memberName) => memberName in elm;
39
30
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -70,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
70
61
  /* webpackExclude: /\.system\.entry\.js$/ */
71
62
  /* webpackMode: "lazy" */
72
63
  `./${bundleId}.entry.js${""}`
73
- ).then(
74
- (importedModule) => {
75
- {
76
- cmpModules.set(bundleId, importedModule);
77
- }
78
- return importedModule[exportName];
79
- },
80
- (e) => {
81
- consoleError(e, hostRef.$hostElement$);
64
+ ).then((importedModule) => {
65
+ {
66
+ cmpModules.set(bundleId, importedModule);
82
67
  }
83
- );
68
+ return importedModule[exportName];
69
+ }, consoleError);
84
70
  };
85
71
 
86
72
  // src/client/client-style.ts
87
73
  var styles = /* @__PURE__ */ new Map();
88
- var HYDRATED_STYLE_ID = "sty-id";
89
74
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
90
75
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
91
76
  var win = typeof window !== "undefined" ? window : {};
@@ -143,6 +128,14 @@ var flush = () => {
143
128
  };
144
129
  var nextTick = (cb) => promiseResolve().then(cb);
145
130
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
+
132
+ // src/utils/constants.ts
133
+ var EMPTY_OBJ = {};
134
+ var SVG_NS = "http://www.w3.org/2000/svg";
135
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
136
+
137
+ // src/utils/helpers.ts
138
+ var isDef = (v) => v != null;
146
139
  var isComplexType = (o) => {
147
140
  o = typeof o;
148
141
  return o === "object" || o === "function";
@@ -327,7 +320,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
327
320
  }
328
321
  if (!appliedStyles.has(scopeId2)) {
329
322
  {
330
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
323
+ styleElm = doc.createElement("style");
331
324
  styleElm.innerHTML = style;
332
325
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
333
326
  if (nonce != null) {
@@ -337,10 +330,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
337
330
  if (styleContainerNode.nodeName === "HEAD") {
338
331
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
339
332
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
340
- styleContainerNode.insertBefore(
341
- styleElm,
342
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
343
- );
333
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
344
334
  } else if ("host" in styleContainerNode) {
345
335
  if (supportsConstructableStylesheets) {
346
336
  const stylesheet = new CSSStyleSheet();
@@ -358,7 +348,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
358
348
  styleContainerNode.append(styleElm);
359
349
  }
360
350
  }
361
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
351
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
362
352
  styleContainerNode.insertBefore(styleElm, null);
363
353
  }
364
354
  }
@@ -383,25 +373,23 @@ var attachStyles = (hostRef) => {
383
373
  const scopeId2 = addStyle(
384
374
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
385
375
  cmpMeta);
386
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
376
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
387
377
  elm["s-sc"] = scopeId2;
388
378
  elm.classList.add(scopeId2 + "-h");
389
379
  }
390
380
  endAttachStyles();
391
381
  };
392
382
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
393
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
383
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
394
384
  if (oldValue !== newValue) {
395
385
  let isProp = isMemberInElement(elm, memberName);
396
386
  let ln = memberName.toLowerCase();
397
387
  if (memberName === "class") {
398
388
  const classList = elm.classList;
399
389
  const oldClasses = parseClassList(oldValue);
400
- let newClasses = parseClassList(newValue);
401
- {
402
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
403
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
404
- }
390
+ const newClasses = parseClassList(newValue);
391
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
392
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
405
393
  } else if (memberName === "style") {
406
394
  {
407
395
  for (const prop in oldValue) {
@@ -460,7 +448,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
460
448
  elm.setAttribute(memberName, n);
461
449
  }
462
450
  }
463
- } else if (elm[memberName] !== newValue) {
451
+ } else {
464
452
  elm[memberName] = newValue;
465
453
  }
466
454
  } catch (e) {
@@ -482,44 +470,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
482
470
  }
483
471
  };
484
472
  var parseClassListRegex = /\s/;
485
- var parseClassList = (value) => {
486
- if (typeof value === "object" && value && "baseVal" in value) {
487
- value = value.baseVal;
488
- }
489
- if (!value || typeof value !== "string") {
490
- return [];
491
- }
492
- return value.split(parseClassListRegex);
493
- };
473
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
494
474
  var CAPTURE_EVENT_SUFFIX = "Capture";
495
475
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
496
476
 
497
477
  // src/runtime/vdom/update-element.ts
498
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
478
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
499
479
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
500
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
501
- const newVnodeAttrs = newVnode.$attrs$ || {};
480
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
481
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
502
482
  {
503
483
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
504
484
  if (!(memberName in newVnodeAttrs)) {
505
- setAccessor(
506
- elm,
507
- memberName,
508
- oldVnodeAttrs[memberName],
509
- void 0,
510
- isSvgMode2,
511
- newVnode.$flags$);
485
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
512
486
  }
513
487
  }
514
488
  }
515
489
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
516
- setAccessor(
517
- elm,
518
- memberName,
519
- oldVnodeAttrs[memberName],
520
- newVnodeAttrs[memberName],
521
- isSvgMode2,
522
- newVnode.$flags$);
490
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
523
491
  }
524
492
  };
525
493
  function sortedAttrNames(attrNames) {
@@ -531,10 +499,13 @@ function sortedAttrNames(attrNames) {
531
499
  attrNames
532
500
  );
533
501
  }
502
+
503
+ // src/runtime/vdom/vdom-render.ts
504
+ var scopeId;
534
505
  var hostTagName;
535
506
  var useNativeShadowDom = false;
536
507
  var isSvgMode = false;
537
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
508
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
538
509
  const newVNode2 = newParentVNode.$children$[childIndex];
539
510
  let i2 = 0;
540
511
  let elm;
@@ -555,6 +526,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
555
526
  {
556
527
  updateElement(null, newVNode2, isSvgMode);
557
528
  }
529
+ const rootNode = elm.getRootNode();
530
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
531
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
532
+ elm.classList.add(elm["s-si"] = scopeId);
533
+ }
558
534
  if (newVNode2.$children$) {
559
535
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
560
536
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -691,9 +667,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
691
667
  if (!isInitialRender) {
692
668
  return leftVNode.$key$ === rightVNode.$key$;
693
669
  }
694
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
695
- leftVNode.$key$ = rightVNode.$key$;
696
- }
697
670
  return true;
698
671
  }
699
672
  return false;
@@ -740,9 +713,8 @@ var nullifyVNodeRefs = (vNode) => {
740
713
  }
741
714
  };
742
715
  var insertBefore = (parent, newNode, reference) => {
743
- {
744
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
745
- }
716
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
717
+ return inserted;
746
718
  };
747
719
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
748
720
  const hostElm = hostRef.$hostElement$;
@@ -767,21 +739,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
767
739
  rootVnode.$flags$ |= 4 /* isHost */;
768
740
  hostRef.$vnode$ = rootVnode;
769
741
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
770
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
742
+ {
743
+ scopeId = hostElm["s-sc"];
744
+ }
745
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
771
746
  patch(oldVNode, rootVnode, isInitialLoad);
772
747
  };
773
748
 
774
749
  // src/runtime/update-component.ts
775
750
  var attachToAncestor = (hostRef, ancestorComponent) => {
776
751
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
777
- const index = ancestorComponent["s-p"].push(
778
- new Promise(
779
- (r) => hostRef.$onRenderResolve$ = () => {
780
- ancestorComponent["s-p"].splice(index - 1, 1);
781
- r();
782
- }
783
- )
784
- );
752
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
785
753
  }
786
754
  };
787
755
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -808,7 +776,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
808
776
  let maybePromise;
809
777
  if (isInitialLoad) {
810
778
  {
811
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
779
+ maybePromise = safeCall(instance, "componentWillLoad");
812
780
  }
813
781
  }
814
782
  endSchedule();
@@ -877,7 +845,7 @@ var postUpdateComponent = (hostRef) => {
877
845
  const instance = hostRef.$lazyInstance$ ;
878
846
  const ancestorComponent = hostRef.$ancestorComponent$;
879
847
  {
880
- safeCall(instance, "componentDidRender", void 0, elm);
848
+ safeCall(instance, "componentDidRender");
881
849
  }
882
850
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
883
851
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -885,7 +853,7 @@ var postUpdateComponent = (hostRef) => {
885
853
  addHydratedFlag(elm);
886
854
  }
887
855
  {
888
- safeCall(instance, "componentDidLoad", void 0, elm);
856
+ safeCall(instance, "componentDidLoad");
889
857
  }
890
858
  endPostUpdate();
891
859
  {
@@ -909,14 +877,17 @@ var postUpdateComponent = (hostRef) => {
909
877
  }
910
878
  };
911
879
  var appDidLoad = (who) => {
880
+ {
881
+ addHydratedFlag(doc.documentElement);
882
+ }
912
883
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
913
884
  };
914
- var safeCall = (instance, method, arg, elm) => {
885
+ var safeCall = (instance, method, arg) => {
915
886
  if (instance && instance[method]) {
916
887
  try {
917
888
  return instance[method](arg);
918
889
  } catch (e) {
919
- consoleError(e, elm);
890
+ consoleError(e);
920
891
  }
921
892
  }
922
893
  return void 0;
@@ -975,68 +946,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
975
946
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
976
947
  members.map(([memberName, [memberFlags]]) => {
977
948
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
978
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
979
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
980
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
981
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
982
- Object.defineProperty(prototype, memberName, {
983
- get() {
984
- {
985
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
986
- return getValue(this, memberName);
987
- }
988
- const ref = getHostRef(this);
989
- const instance = ref ? ref.$lazyInstance$ : prototype;
990
- if (!instance) return;
991
- return instance[memberName];
992
- }
993
- },
994
- configurable: true,
995
- enumerable: true
996
- });
997
- }
998
949
  Object.defineProperty(prototype, memberName, {
950
+ get() {
951
+ return getValue(this, memberName);
952
+ },
999
953
  set(newValue) {
1000
- const ref = getHostRef(this);
1001
- if (origSetter) {
1002
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1003
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1004
- newValue = ref.$instanceValues$.get(memberName);
1005
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1006
- ref.$instanceValues$.set(memberName, currentValue);
1007
- }
1008
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1009
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1010
- setValue(this, memberName, newValue, cmpMeta);
1011
- return;
1012
- }
1013
- {
1014
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1015
- setValue(this, memberName, newValue, cmpMeta);
1016
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1017
- ref.$onReadyPromise$.then(() => {
1018
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1019
- ref.$lazyInstance$[memberName] = newValue;
1020
- }
1021
- });
1022
- }
1023
- return;
1024
- }
1025
- const setterSetVal = () => {
1026
- const currentValue = ref.$lazyInstance$[memberName];
1027
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1028
- ref.$instanceValues$.set(memberName, currentValue);
1029
- }
1030
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1031
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1032
- };
1033
- if (ref.$lazyInstance$) {
1034
- setterSetVal();
1035
- } else {
1036
- ref.$onReadyPromise$.then(() => setterSetVal());
1037
- }
1038
- }
1039
- }
954
+ setValue(this, memberName, newValue, cmpMeta);
955
+ },
956
+ configurable: true,
957
+ enumerable: true
1040
958
  });
1041
959
  }
1042
960
  });
@@ -1046,7 +964,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1046
964
  plt.jmp(() => {
1047
965
  var _a2;
1048
966
  const propName = attrNameToPropName.get(attrName);
1049
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
967
+ if (this.hasOwnProperty(propName)) {
1050
968
  newValue = this[propName];
1051
969
  delete this[propName];
1052
970
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1066,11 +984,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1066
984
  }
1067
985
  return;
1068
986
  }
1069
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1070
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1071
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1072
- this[propName] = newValue;
1073
- }
987
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1074
988
  });
1075
989
  };
1076
990
  Cstr.observedAttributes = Array.from(
@@ -1099,7 +1013,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1099
1013
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1100
1014
  const bundleId = cmpMeta.$lazyBundleId$;
1101
1015
  if (bundleId) {
1102
- const CstrImport = loadModule(cmpMeta, hostRef);
1016
+ const CstrImport = loadModule(cmpMeta);
1103
1017
  if (CstrImport && "then" in CstrImport) {
1104
1018
  const endLoad = uniqueTime();
1105
1019
  Cstr = await CstrImport;
@@ -1124,7 +1038,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1124
1038
  try {
1125
1039
  new Cstr(hostRef);
1126
1040
  } catch (e) {
1127
- consoleError(e, elm);
1041
+ consoleError(e);
1128
1042
  }
1129
1043
  {
1130
1044
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1159,7 +1073,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1159
1073
  schedule();
1160
1074
  }
1161
1075
  };
1162
- var fireConnectedCallback = (instance, elm) => {
1076
+ var fireConnectedCallback = (instance) => {
1163
1077
  };
1164
1078
 
1165
1079
  // src/runtime/connected-callback.ts
@@ -1199,26 +1113,20 @@ var connectedCallback = (elm) => {
1199
1113
  endConnected();
1200
1114
  }
1201
1115
  };
1202
- var disconnectInstance = (instance, elm) => {
1116
+ var disconnectInstance = (instance) => {
1203
1117
  {
1204
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1118
+ safeCall(instance, "disconnectedCallback");
1205
1119
  }
1206
1120
  };
1207
1121
  var disconnectedCallback = async (elm) => {
1208
1122
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1209
1123
  const hostRef = getHostRef(elm);
1210
1124
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1211
- disconnectInstance(hostRef.$lazyInstance$, elm);
1125
+ disconnectInstance(hostRef.$lazyInstance$);
1212
1126
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1213
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1127
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1214
1128
  }
1215
1129
  }
1216
- if (rootAppliedStyles.has(elm)) {
1217
- rootAppliedStyles.delete(elm);
1218
- }
1219
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1220
- rootAppliedStyles.delete(elm.shadowRoot);
1221
- }
1222
1130
  };
1223
1131
 
1224
1132
  // src/runtime/bootstrap-lazy.ts
@@ -1299,17 +1207,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1299
1207
  }
1300
1208
  disconnectedCallback() {
1301
1209
  plt.jmp(() => disconnectedCallback(this));
1302
- plt.raf(() => {
1303
- var _a3;
1304
- const hostRef = getHostRef(this);
1305
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1306
- if (i2 > -1) {
1307
- deferredConnectedCallbacks.splice(i2, 1);
1308
- }
1309
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1310
- delete hostRef.$vnode$.$elm$;
1311
- }
1312
- });
1313
1210
  }
1314
1211
  componentOnReady() {
1315
1212
  return getHostRef(this).$onReadyPromise$;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-45f4006f.js';
2
- export { s as setNonce } from './index-45f4006f.js';
1
+ import { b as bootstrapLazy } from './index-657e7a14.js';
2
+ export { s as setNonce } from './index-657e7a14.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host } from './index-45f4006f.js';
1
+ import { r as registerInstance, h, H as Host } from './index-657e7a14.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'];
@@ -161,32 +161,6 @@ const emptyFunction = () => { };
161
161
  const UserDepositWithdrawal = class {
162
162
  constructor(hostRef) {
163
163
  registerInstance(this, hostRef);
164
- /**
165
- * Client custom styling via inline style
166
- */
167
- this.clientStyling = '';
168
- /**
169
- * Client custom styling via url
170
- */
171
- this.clientStylingUrl = '';
172
- /**
173
- * Translations via URL
174
- */
175
- this.translationUrl = '';
176
- /*
177
- * Operator selected currency
178
- */
179
- this.currency = '';
180
- /*
181
- * Display bonus dropdown
182
- */
183
- this.showBonusSelectionInput = 'true';
184
- /*
185
- * State of deposit - short cashier enabled or not
186
- */
187
- this.isShortCashier = false;
188
- this.beforeRedirect = emptyFunction;
189
- this.limitStylingAppends = false;
190
164
  this.bindedHandler = this.handleMessage.bind(this);
191
165
  this.userAgent = window.navigator.userAgent;
192
166
  this.isMobile = isMobile(this.userAgent);
@@ -209,6 +183,31 @@ const UserDepositWithdrawal = class {
209
183
  console.log('error ', err);
210
184
  });
211
185
  };
186
+ this.clientStyling = '';
187
+ this.clientStylingUrl = '';
188
+ this.translationUrl = '';
189
+ this.endpoint = undefined;
190
+ this.type = undefined;
191
+ this.channel = undefined;
192
+ this.language = undefined;
193
+ this.productType = undefined;
194
+ this.userId = undefined;
195
+ this.session = undefined;
196
+ this.successUrl = undefined;
197
+ this.cancelUrl = undefined;
198
+ this.failUrl = undefined;
199
+ this.sportsUrl = undefined;
200
+ this.casinoUrl = undefined;
201
+ this.contactUrl = undefined;
202
+ this.depositUrl = undefined;
203
+ this.currency = '';
204
+ this.showBonusSelectionInput = 'true';
205
+ this.isShortCashier = false;
206
+ this.homeUrl = undefined;
207
+ this.beforeRedirect = emptyFunction;
208
+ this.limitStylingAppends = false;
209
+ this.dynamicHeight = undefined;
210
+ this.cashierInfoUrl = undefined;
212
211
  }
213
212
  get typeParameter() {
214
213
  if (this.type === 'deposit') {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-45f4006f.js';
2
- export { s as setNonce } from './index-45f4006f.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-657e7a14.js';
2
+ export { s as setNonce } from './index-657e7a14.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1 @@
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}