@everymatrix/player-kyc-verification 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.
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'player-kyc-verification';
24
- const BUILD = /* player-kyc-verification */ { 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: false, 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: false, propMutable: false, propNumber: false, propString: true, reflect: false, 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: true, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* player-kyc-verification */ { 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: false, propMutable: false, propNumber: false, propString: true, reflect: false, 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: true, vdomKey: false, 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.22.3 | MIT Licensed | https://stenciljs.com
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) => {
@@ -372,31 +372,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
372
372
  if (nonce != null) {
373
373
  styleElm.setAttribute("nonce", nonce);
374
374
  }
375
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
376
- if (styleContainerNode.nodeName === "HEAD") {
377
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
378
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
379
- styleContainerNode.insertBefore(styleElm, referenceNode2);
380
- } else if ("host" in styleContainerNode) {
381
- if (supportsConstructableStylesheets) {
382
- const stylesheet = new CSSStyleSheet();
383
- stylesheet.replaceSync(style);
384
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
385
- } else {
386
- const existingStyleContainer = styleContainerNode.querySelector("style");
387
- if (existingStyleContainer) {
388
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
389
- } else {
390
- styleContainerNode.prepend(styleElm);
391
- }
392
- }
393
- } else {
394
- styleContainerNode.append(styleElm);
395
- }
396
- }
397
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
398
- styleContainerNode.insertBefore(styleElm, null);
399
- }
375
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
400
376
  }
401
377
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
402
378
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -419,7 +395,7 @@ var attachStyles = (hostRef) => {
419
395
  const scopeId2 = addStyle(
420
396
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
421
397
  cmpMeta);
422
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
398
+ if (flags & 10 /* needsScopedEncapsulation */) {
423
399
  elm["s-sc"] = scopeId2;
424
400
  elm.classList.add(scopeId2 + "-h");
425
401
  }
@@ -488,11 +464,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
488
464
  if (memberName === "list") {
489
465
  isProp = false;
490
466
  } else if (oldValue == null || elm[memberName] != n) {
491
- if (typeof elm.__lookupSetter__(memberName) === "function") {
492
- elm[memberName] = n;
493
- } else {
494
- elm.setAttribute(memberName, n);
495
- }
467
+ elm[memberName] = n;
496
468
  }
497
469
  } else {
498
470
  elm[memberName] = newValue;
@@ -572,9 +544,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
572
544
  {
573
545
  updateElement(null, newVNode2, isSvgMode);
574
546
  }
575
- const rootNode = elm.getRootNode();
576
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
577
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
547
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
578
548
  elm.classList.add(elm["s-si"] = scopeId);
579
549
  }
580
550
  if (newVNode2.$children$) {
@@ -714,10 +684,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
714
684
  elm.textContent = "";
715
685
  }
716
686
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
717
- } else if (
718
- // don't do this on initial render as it can cause non-hydrated content to be removed
719
- !isInitialRender && BUILD.updatable && oldChildren !== null
720
- ) {
687
+ } else if (oldChildren !== null) {
721
688
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
722
689
  }
723
690
  if (isSvgMode && tag === "svg") {
@@ -859,9 +826,6 @@ var postUpdateComponent = (hostRef) => {
859
826
  const endPostUpdate = createTime("postUpdate", tagName);
860
827
  const instance = hostRef.$lazyInstance$ ;
861
828
  const ancestorComponent = hostRef.$ancestorComponent$;
862
- {
863
- safeCall(instance, "componentDidRender");
864
- }
865
829
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
866
830
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
867
831
  {
@@ -982,8 +946,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
982
946
  if (this.hasOwnProperty(propName)) {
983
947
  newValue = this[propName];
984
948
  delete this[propName];
985
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
986
- this[propName] == newValue) {
949
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
987
950
  return;
988
951
  } else if (propName == null) {
989
952
  const hostRef = getHostRef(this);
@@ -1125,12 +1088,17 @@ var connectedCallback = (elm) => {
1125
1088
  }
1126
1089
  };
1127
1090
  var disconnectInstance = (instance) => {
1091
+ {
1092
+ safeCall(instance, "disconnectedCallback");
1093
+ }
1128
1094
  };
1129
1095
  var disconnectedCallback = async (elm) => {
1130
1096
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1131
1097
  const hostRef = getHostRef(elm);
1132
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1133
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1098
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1099
+ disconnectInstance(hostRef.$lazyInstance$);
1100
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1101
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1134
1102
  }
1135
1103
  }
1136
1104
  };
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-daff3a22.js');
5
+ const index = require('./index-a74cde54.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([["player-kyc-verification.cjs",[[1,"player-kyc-verification",{"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"verificationType":[32],"isLoading":[32],"stylingAppends":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"selectedOption":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"]}]]]], options);
11
+ return index.bootstrapLazy([["player-kyc-verification.cjs",[[1,"player-kyc-verification",{"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"verificationType":[32],"isLoading":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"selectedOption":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], 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-daff3a22.js');
5
+ const index = require('./index-a74cde54.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  let TRANSLATIONS = {
@@ -533,6 +533,63 @@ const isMobile = (userAgent) => {
533
533
  userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
534
534
  };
535
535
 
536
+ /**
537
+ * @name setClientStyling
538
+ * @description Method used to create and append to the passed element of the widget a style element with the content received
539
+ * @param {HTMLElement} stylingContainer The reference element of the widget
540
+ * @param {string} clientStyling The style content
541
+ */
542
+ function setClientStyling(stylingContainer, clientStyling) {
543
+ if (stylingContainer) {
544
+ const sheet = document.createElement('style');
545
+ sheet.innerHTML = clientStyling;
546
+ stylingContainer.appendChild(sheet);
547
+ }
548
+ }
549
+
550
+ /**
551
+ * @name setClientStylingURL
552
+ * @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
553
+ * @param {HTMLElement} stylingContainer The reference element of the widget
554
+ * @param {string} clientStylingUrl The URL of the style content
555
+ */
556
+ function setClientStylingURL(stylingContainer, clientStylingUrl) {
557
+ const url = new URL(clientStylingUrl);
558
+
559
+ fetch(url.href)
560
+ .then((res) => res.text())
561
+ .then((data) => {
562
+ const cssFile = document.createElement('style');
563
+ cssFile.innerHTML = data;
564
+ if (stylingContainer) {
565
+ stylingContainer.appendChild(cssFile);
566
+ }
567
+ })
568
+ .catch((err) => {
569
+ console.error('There was an error while trying to load client styling from URL', err);
570
+ });
571
+ }
572
+
573
+ /**
574
+ * @name setStreamLibrary
575
+ * @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
576
+ * @param {HTMLElement} stylingContainer The highest element of the widget
577
+ * @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
578
+ * @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
579
+ */
580
+ function setStreamStyling(stylingContainer, domain, subscription) {
581
+ if (window.emMessageBus) {
582
+ const sheet = document.createElement('style');
583
+
584
+ window.emMessageBus.subscribe(domain, (data) => {
585
+ sheet.innerHTML = data;
586
+ if (stylingContainer) {
587
+ stylingContainer.appendChild(sheet);
588
+ }
589
+ });
590
+ }
591
+ }
592
+
536
593
  const playerKycVerificationCss = ":host {\n font-family: inherit;\n}\n\nbutton, select {\n font-family: inherit;\n}\n\n.ModalContainer {\n container-type: inline-size;\n}\n\n.player-kyc-verification-widget {\n padding: 20px;\n align-items: center;\n}\n.player-kyc-verification-widget h2 {\n margin: 15px;\n}\n.player-kyc-verification-widget .widget-description {\n margin: 24px 0px;\n}\n.player-kyc-verification-widget .verification-types {\n width: 100%;\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 34px;\n}\n.player-kyc-verification-widget .verification-types .verification-box {\n transition: height 0.3s, border-color 0.3s;\n border: solid 1px var(--emw--color-gray-100, #E6E6E6);\n border-radius: 2px;\n display: flex;\n flex-direction: column;\n padding: 0px 14px;\n border-width: 2px 2px 8px 2px;\n align-self: start;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box {\n flex-shrink: 0;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header {\n display: flex;\n padding: 14px 0px;\n justify-content: space-between;\n cursor: pointer;\n align-items: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon {\n flex-grow: 1;\n display: flex;\n justify-content: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon svg {\n height: 24px;\n width: 24px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-title {\n flex-grow: 1;\n font-size: 18px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon {\n flex-grow: 10;\n width: 14px;\n height: 14px;\n display: flex;\n justify-content: flex-end;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon svg {\n width: 20px;\n height: 22px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content {\n flex-grow: 1;\n border-top: 0.4px solid var(--emw--color-gray-100, #E6E6E6);\n padding: 10px 0px;\n flex-grow: 1;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .upload-status {\n text-align: center;\n padding: 20px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown {\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown svg {\n margin: 16px;\n cursor: pointer;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .nice-select {\n cursor: pointer;\n width: 100%;\n height: 30px;\n padding: 4px 14px;\n font-size: 14px;\n border: 1px solid var(--emw--color-gray-150, #828282);\n border-radius: 2px;\n background-color: var(--emw--color-white, #FFFFFF);\n color: #333;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n padding-right: 30px;\n background-repeat: no-repeat;\n background-position: right 10px center;\n background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><path fill=\"%23333\" d=\"M10 18.4l-6.5-6.5h13z\"/><path fill=\"%23333\" d=\"M10 1.6l6.5 6.5H3.5z\"/></svg>');\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button {\n font-family: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--emw--color-white, #FFFFFF);\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));\n border: none;\n font-size: 16px;\n padding: 10px 0px 0px 0px;\n cursor: pointer;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button svg {\n margin-right: 10px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded {\n border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));\n min-height: 120px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.failed {\n border-color: var(--emw--color-error, var(--emw--color-red, #FD2839));\n}\n.player-kyc-verification-widget .verification-types .verification-box.success {\n border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content {\n display: flex;\n justify-content: center;\n flex-direction: column;\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content .verification-status {\n margin: 12px 0px 16px;\n font-size: 18px;\n text-align: center;\n color: var(--emw--color-gray-150, #828282);\n}\n\n.MenuReturnButton {\n display: flex;\n align-items: center;\n}\n\n@container (min-width: 700px) {\n .player-kyc-verification-widget {\n padding: 100px 60px;\n }\n}\n@container (max-width: 700px) {\n .player-kyc-verification-widget h2 {\n margin: 15px;\n text-align: center;\n }\n .player-kyc-verification-widget .verification-types {\n grid-template-columns: 1fr;\n grid-gap: 16px;\n }\n}\n@container (max-width: 475px) {\n .player-kyc-verification-widget .verification-types {\n display: block;\n }\n .player-kyc-verification-widget .verification-types .verification-box {\n margin-bottom: 20px;\n }\n}\n@container (max-width: 1240px) and (min-width: 701px) {\n .player-kyc-verification-widget .verification-types {\n grid-template-columns: repeat(2, 1fr);\n }\n}";
537
594
  const PlayerKycVerificationStyle0 = playerKycVerificationCss;
538
595
 
@@ -543,24 +600,6 @@ const PlayerKycVerificationWidget = class {
543
600
  this.MAX_UPLOAD_SIZE = 50000000;
544
601
  this.userAgent = window.navigator.userAgent;
545
602
  this.isMobile = isMobile(this.userAgent);
546
- this.setClientStyling = () => {
547
- let sheet = document.createElement('style');
548
- sheet.innerHTML = this.clientStyling;
549
- this.stylingContainer.prepend(sheet);
550
- };
551
- this.setClientStylingURL = () => {
552
- let url = new URL(this.clientStylingUrl);
553
- let cssFile = document.createElement('style');
554
- fetch(url.href)
555
- .then((res) => res.text())
556
- .then((data) => {
557
- cssFile.innerHTML = data;
558
- setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
559
- })
560
- .catch((err) => {
561
- console.log('error ', err);
562
- });
563
- };
564
603
  this.handleToggleScreen = () => {
565
604
  this.toggleScreen(this.isMobile);
566
605
  };
@@ -574,9 +613,9 @@ const PlayerKycVerificationWidget = class {
574
613
  this.failedIcon = '';
575
614
  this.defaultIcon = '';
576
615
  this.clientStylingUrl = '';
616
+ this.mbSource = undefined;
577
617
  this.verificationType = [];
578
618
  this.isLoading = false;
579
- this.stylingAppends = false;
580
619
  this.selectedFile = null;
581
620
  this.uploadingStatus = undefined;
582
621
  this.uploadSizeExceeded = false;
@@ -594,18 +633,29 @@ const PlayerKycVerificationWidget = class {
594
633
  await getTranslations(this.translationUrl);
595
634
  }
596
635
  }
597
- componentDidRender() {
598
- // start custom styling area
599
- if (!this.stylingAppends && this.stylingContainer) {
600
- if (this.clientStyling)
601
- this.setClientStyling();
636
+ handleClientStylingChange(newValue, oldValue) {
637
+ if (newValue != oldValue) {
638
+ setClientStyling(this.stylingContainer, this.clientStyling);
639
+ }
640
+ }
641
+ handleClientStylingUrlChange(newValue, oldValue) {
642
+ if (newValue != oldValue) {
602
643
  if (this.clientStylingUrl)
603
- this.setClientStylingURL();
604
- this.stylingAppends = true;
644
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
605
645
  }
606
- // end custom styling area
607
646
  }
608
647
  async componentDidLoad() {
648
+ if (this.stylingContainer) {
649
+ if (window.emMessageBus != undefined) {
650
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
651
+ }
652
+ else {
653
+ if (this.clientStyling)
654
+ setClientStyling(this.stylingContainer, this.clientStyling);
655
+ if (this.clientStylingUrl)
656
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
657
+ }
658
+ }
609
659
  if (window.innerWidth > 700) {
610
660
  this.expandedOnDesktop = true;
611
661
  }
@@ -640,6 +690,9 @@ const PlayerKycVerificationWidget = class {
640
690
  console.error('Error fetching verification types:', error);
641
691
  }
642
692
  }
693
+ disconnectedCallback() {
694
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
695
+ }
643
696
  handleOptionChange(event, verificationTypeId) {
644
697
  const target = event.target;
645
698
  this.selectedOption = target.value;
@@ -829,7 +882,9 @@ const PlayerKycVerificationWidget = class {
829
882
  }
830
883
  }
831
884
  static get watchers() { return {
832
- "translationUrl": ["handleNewTranslations"]
885
+ "translationUrl": ["handleNewTranslations"],
886
+ "clientStyling": ["handleClientStylingChange"],
887
+ "clientStylingUrl": ["handleClientStylingUrlChange"]
833
888
  }; }
834
889
  };
835
890
  PlayerKycVerificationWidget.style = PlayerKycVerificationStyle0;
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-daff3a22.js');
5
+ const index = require('./index-a74cde54.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
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('player-kyc-verification.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([["player-kyc-verification.cjs",[[1,"player-kyc-verification",{"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"verificationType":[32],"isLoading":[32],"stylingAppends":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"selectedOption":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"]}]]]], options);
22
+ return index.bootstrapLazy([["player-kyc-verification.cjs",[[1,"player-kyc-verification",{"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"verificationType":[32],"isLoading":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"selectedOption":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []
@@ -1,30 +1,13 @@
1
1
  import { h, Fragment } from "@stencil/core";
2
2
  import { getTranslations, translate } from "../../utils/locale.utils";
3
3
  import { isMobile } from "../../utils/utils";
4
+ import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
4
5
  export class PlayerKycVerificationWidget {
5
6
  constructor() {
6
7
  this.scriptInjected = false;
7
8
  this.MAX_UPLOAD_SIZE = 50000000;
8
9
  this.userAgent = window.navigator.userAgent;
9
10
  this.isMobile = isMobile(this.userAgent);
10
- this.setClientStyling = () => {
11
- let sheet = document.createElement('style');
12
- sheet.innerHTML = this.clientStyling;
13
- this.stylingContainer.prepend(sheet);
14
- };
15
- this.setClientStylingURL = () => {
16
- let url = new URL(this.clientStylingUrl);
17
- let cssFile = document.createElement('style');
18
- fetch(url.href)
19
- .then((res) => res.text())
20
- .then((data) => {
21
- cssFile.innerHTML = data;
22
- setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
23
- })
24
- .catch((err) => {
25
- console.log('error ', err);
26
- });
27
- };
28
11
  this.handleToggleScreen = () => {
29
12
  this.toggleScreen(this.isMobile);
30
13
  };
@@ -38,9 +21,9 @@ export class PlayerKycVerificationWidget {
38
21
  this.failedIcon = '';
39
22
  this.defaultIcon = '';
40
23
  this.clientStylingUrl = '';
24
+ this.mbSource = undefined;
41
25
  this.verificationType = [];
42
26
  this.isLoading = false;
43
- this.stylingAppends = false;
44
27
  this.selectedFile = null;
45
28
  this.uploadingStatus = undefined;
46
29
  this.uploadSizeExceeded = false;
@@ -58,18 +41,29 @@ export class PlayerKycVerificationWidget {
58
41
  await getTranslations(this.translationUrl);
59
42
  }
60
43
  }
61
- componentDidRender() {
62
- // start custom styling area
63
- if (!this.stylingAppends && this.stylingContainer) {
64
- if (this.clientStyling)
65
- this.setClientStyling();
44
+ handleClientStylingChange(newValue, oldValue) {
45
+ if (newValue != oldValue) {
46
+ setClientStyling(this.stylingContainer, this.clientStyling);
47
+ }
48
+ }
49
+ handleClientStylingUrlChange(newValue, oldValue) {
50
+ if (newValue != oldValue) {
66
51
  if (this.clientStylingUrl)
67
- this.setClientStylingURL();
68
- this.stylingAppends = true;
52
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
69
53
  }
70
- // end custom styling area
71
54
  }
72
55
  async componentDidLoad() {
56
+ if (this.stylingContainer) {
57
+ if (window.emMessageBus != undefined) {
58
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
59
+ }
60
+ else {
61
+ if (this.clientStyling)
62
+ setClientStyling(this.stylingContainer, this.clientStyling);
63
+ if (this.clientStylingUrl)
64
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
65
+ }
66
+ }
73
67
  if (window.innerWidth > 700) {
74
68
  this.expandedOnDesktop = true;
75
69
  }
@@ -104,6 +98,9 @@ export class PlayerKycVerificationWidget {
104
98
  console.error('Error fetching verification types:', error);
105
99
  }
106
100
  }
101
+ disconnectedCallback() {
102
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
103
+ }
107
104
  handleOptionChange(event, verificationTypeId) {
108
105
  const target = event.target;
109
106
  this.selectedOption = target.value;
@@ -484,6 +481,23 @@ export class PlayerKycVerificationWidget {
484
481
  "attribute": "client-styling-url",
485
482
  "reflect": false,
486
483
  "defaultValue": "''"
484
+ },
485
+ "mbSource": {
486
+ "type": "string",
487
+ "mutable": false,
488
+ "complexType": {
489
+ "original": "string",
490
+ "resolved": "string",
491
+ "references": {}
492
+ },
493
+ "required": false,
494
+ "optional": false,
495
+ "docs": {
496
+ "tags": [],
497
+ "text": ""
498
+ },
499
+ "attribute": "mb-source",
500
+ "reflect": false
487
501
  }
488
502
  };
489
503
  }
@@ -491,7 +505,6 @@ export class PlayerKycVerificationWidget {
491
505
  return {
492
506
  "verificationType": {},
493
507
  "isLoading": {},
494
- "stylingAppends": {},
495
508
  "selectedFile": {},
496
509
  "uploadingStatus": {},
497
510
  "uploadSizeExceeded": {},
@@ -503,6 +516,12 @@ export class PlayerKycVerificationWidget {
503
516
  return [{
504
517
  "propName": "translationUrl",
505
518
  "methodName": "handleNewTranslations"
519
+ }, {
520
+ "propName": "clientStyling",
521
+ "methodName": "handleClientStylingChange"
522
+ }, {
523
+ "propName": "clientStylingUrl",
524
+ "methodName": "handleClientStylingUrlChange"
506
525
  }];
507
526
  }
508
527
  }
@@ -1,8 +1,8 @@
1
1
  const NAMESPACE = 'player-kyc-verification';
2
- const BUILD = /* player-kyc-verification */ { 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: false, 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: false, propMutable: false, propNumber: false, propString: true, reflect: false, 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: true, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* player-kyc-verification */ { 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: false, propMutable: false, propNumber: false, propString: true, reflect: false, 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: true, vdomKey: false, 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.22.3 | MIT Licensed | https://stenciljs.com
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) => {
@@ -350,31 +350,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
350
350
  if (nonce != null) {
351
351
  styleElm.setAttribute("nonce", nonce);
352
352
  }
353
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
354
- if (styleContainerNode.nodeName === "HEAD") {
355
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
356
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
357
- styleContainerNode.insertBefore(styleElm, referenceNode2);
358
- } else if ("host" in styleContainerNode) {
359
- if (supportsConstructableStylesheets) {
360
- const stylesheet = new CSSStyleSheet();
361
- stylesheet.replaceSync(style);
362
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
363
- } else {
364
- const existingStyleContainer = styleContainerNode.querySelector("style");
365
- if (existingStyleContainer) {
366
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
367
- } else {
368
- styleContainerNode.prepend(styleElm);
369
- }
370
- }
371
- } else {
372
- styleContainerNode.append(styleElm);
373
- }
374
- }
375
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
376
- styleContainerNode.insertBefore(styleElm, null);
377
- }
353
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
378
354
  }
379
355
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
380
356
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -397,7 +373,7 @@ var attachStyles = (hostRef) => {
397
373
  const scopeId2 = addStyle(
398
374
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
399
375
  cmpMeta);
400
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
376
+ if (flags & 10 /* needsScopedEncapsulation */) {
401
377
  elm["s-sc"] = scopeId2;
402
378
  elm.classList.add(scopeId2 + "-h");
403
379
  }
@@ -466,11 +442,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
466
442
  if (memberName === "list") {
467
443
  isProp = false;
468
444
  } else if (oldValue == null || elm[memberName] != n) {
469
- if (typeof elm.__lookupSetter__(memberName) === "function") {
470
- elm[memberName] = n;
471
- } else {
472
- elm.setAttribute(memberName, n);
473
- }
445
+ elm[memberName] = n;
474
446
  }
475
447
  } else {
476
448
  elm[memberName] = newValue;
@@ -550,9 +522,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
550
522
  {
551
523
  updateElement(null, newVNode2, isSvgMode);
552
524
  }
553
- const rootNode = elm.getRootNode();
554
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
555
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
525
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
556
526
  elm.classList.add(elm["s-si"] = scopeId);
557
527
  }
558
528
  if (newVNode2.$children$) {
@@ -692,10 +662,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
692
662
  elm.textContent = "";
693
663
  }
694
664
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
695
- } else if (
696
- // don't do this on initial render as it can cause non-hydrated content to be removed
697
- !isInitialRender && BUILD.updatable && oldChildren !== null
698
- ) {
665
+ } else if (oldChildren !== null) {
699
666
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
700
667
  }
701
668
  if (isSvgMode && tag === "svg") {
@@ -837,9 +804,6 @@ var postUpdateComponent = (hostRef) => {
837
804
  const endPostUpdate = createTime("postUpdate", tagName);
838
805
  const instance = hostRef.$lazyInstance$ ;
839
806
  const ancestorComponent = hostRef.$ancestorComponent$;
840
- {
841
- safeCall(instance, "componentDidRender");
842
- }
843
807
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
844
808
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
845
809
  {
@@ -960,8 +924,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
960
924
  if (this.hasOwnProperty(propName)) {
961
925
  newValue = this[propName];
962
926
  delete this[propName];
963
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
964
- this[propName] == newValue) {
927
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
965
928
  return;
966
929
  } else if (propName == null) {
967
930
  const hostRef = getHostRef(this);
@@ -1103,12 +1066,17 @@ var connectedCallback = (elm) => {
1103
1066
  }
1104
1067
  };
1105
1068
  var disconnectInstance = (instance) => {
1069
+ {
1070
+ safeCall(instance, "disconnectedCallback");
1071
+ }
1106
1072
  };
1107
1073
  var disconnectedCallback = async (elm) => {
1108
1074
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1109
1075
  const hostRef = getHostRef(elm);
1110
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1111
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1076
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1077
+ disconnectInstance(hostRef.$lazyInstance$);
1078
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1079
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1112
1080
  }
1113
1081
  }
1114
1082
  };
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-0437c9c0.js';
2
- export { s as setNonce } from './index-0437c9c0.js';
1
+ import { b as bootstrapLazy } from './index-9c0f6c58.js';
2
+ export { s as setNonce } from './index-9c0f6c58.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([["player-kyc-verification",[[1,"player-kyc-verification",{"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"verificationType":[32],"isLoading":[32],"stylingAppends":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"selectedOption":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"]}]]]], options);
8
+ return bootstrapLazy([["player-kyc-verification",[[1,"player-kyc-verification",{"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"verificationType":[32],"isLoading":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"selectedOption":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, F as Fragment } from './index-0437c9c0.js';
1
+ import { r as registerInstance, h, F as Fragment } from './index-9c0f6c58.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
4
  let TRANSLATIONS = {
@@ -529,6 +529,63 @@ const isMobile = (userAgent) => {
529
529
  userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
530
530
  };
531
531
 
532
+ /**
533
+ * @name setClientStyling
534
+ * @description Method used to create and append to the passed element of the widget a style element with the content received
535
+ * @param {HTMLElement} stylingContainer The reference element of the widget
536
+ * @param {string} clientStyling The style content
537
+ */
538
+ function setClientStyling(stylingContainer, clientStyling) {
539
+ if (stylingContainer) {
540
+ const sheet = document.createElement('style');
541
+ sheet.innerHTML = clientStyling;
542
+ stylingContainer.appendChild(sheet);
543
+ }
544
+ }
545
+
546
+ /**
547
+ * @name setClientStylingURL
548
+ * @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
549
+ * @param {HTMLElement} stylingContainer The reference element of the widget
550
+ * @param {string} clientStylingUrl The URL of the style content
551
+ */
552
+ function setClientStylingURL(stylingContainer, clientStylingUrl) {
553
+ const url = new URL(clientStylingUrl);
554
+
555
+ fetch(url.href)
556
+ .then((res) => res.text())
557
+ .then((data) => {
558
+ const cssFile = document.createElement('style');
559
+ cssFile.innerHTML = data;
560
+ if (stylingContainer) {
561
+ stylingContainer.appendChild(cssFile);
562
+ }
563
+ })
564
+ .catch((err) => {
565
+ console.error('There was an error while trying to load client styling from URL', err);
566
+ });
567
+ }
568
+
569
+ /**
570
+ * @name setStreamLibrary
571
+ * @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
572
+ * @param {HTMLElement} stylingContainer The highest element of the widget
573
+ * @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
574
+ * @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
575
+ */
576
+ function setStreamStyling(stylingContainer, domain, subscription) {
577
+ if (window.emMessageBus) {
578
+ const sheet = document.createElement('style');
579
+
580
+ window.emMessageBus.subscribe(domain, (data) => {
581
+ sheet.innerHTML = data;
582
+ if (stylingContainer) {
583
+ stylingContainer.appendChild(sheet);
584
+ }
585
+ });
586
+ }
587
+ }
588
+
532
589
  const playerKycVerificationCss = ":host {\n font-family: inherit;\n}\n\nbutton, select {\n font-family: inherit;\n}\n\n.ModalContainer {\n container-type: inline-size;\n}\n\n.player-kyc-verification-widget {\n padding: 20px;\n align-items: center;\n}\n.player-kyc-verification-widget h2 {\n margin: 15px;\n}\n.player-kyc-verification-widget .widget-description {\n margin: 24px 0px;\n}\n.player-kyc-verification-widget .verification-types {\n width: 100%;\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 34px;\n}\n.player-kyc-verification-widget .verification-types .verification-box {\n transition: height 0.3s, border-color 0.3s;\n border: solid 1px var(--emw--color-gray-100, #E6E6E6);\n border-radius: 2px;\n display: flex;\n flex-direction: column;\n padding: 0px 14px;\n border-width: 2px 2px 8px 2px;\n align-self: start;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box {\n flex-shrink: 0;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header {\n display: flex;\n padding: 14px 0px;\n justify-content: space-between;\n cursor: pointer;\n align-items: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon {\n flex-grow: 1;\n display: flex;\n justify-content: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon svg {\n height: 24px;\n width: 24px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-title {\n flex-grow: 1;\n font-size: 18px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon {\n flex-grow: 10;\n width: 14px;\n height: 14px;\n display: flex;\n justify-content: flex-end;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon svg {\n width: 20px;\n height: 22px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content {\n flex-grow: 1;\n border-top: 0.4px solid var(--emw--color-gray-100, #E6E6E6);\n padding: 10px 0px;\n flex-grow: 1;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .upload-status {\n text-align: center;\n padding: 20px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown {\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown svg {\n margin: 16px;\n cursor: pointer;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .nice-select {\n cursor: pointer;\n width: 100%;\n height: 30px;\n padding: 4px 14px;\n font-size: 14px;\n border: 1px solid var(--emw--color-gray-150, #828282);\n border-radius: 2px;\n background-color: var(--emw--color-white, #FFFFFF);\n color: #333;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n padding-right: 30px;\n background-repeat: no-repeat;\n background-position: right 10px center;\n background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><path fill=\"%23333\" d=\"M10 18.4l-6.5-6.5h13z\"/><path fill=\"%23333\" d=\"M10 1.6l6.5 6.5H3.5z\"/></svg>');\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button {\n font-family: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--emw--color-white, #FFFFFF);\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));\n border: none;\n font-size: 16px;\n padding: 10px 0px 0px 0px;\n cursor: pointer;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button svg {\n margin-right: 10px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded {\n border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));\n min-height: 120px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.failed {\n border-color: var(--emw--color-error, var(--emw--color-red, #FD2839));\n}\n.player-kyc-verification-widget .verification-types .verification-box.success {\n border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content {\n display: flex;\n justify-content: center;\n flex-direction: column;\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content .verification-status {\n margin: 12px 0px 16px;\n font-size: 18px;\n text-align: center;\n color: var(--emw--color-gray-150, #828282);\n}\n\n.MenuReturnButton {\n display: flex;\n align-items: center;\n}\n\n@container (min-width: 700px) {\n .player-kyc-verification-widget {\n padding: 100px 60px;\n }\n}\n@container (max-width: 700px) {\n .player-kyc-verification-widget h2 {\n margin: 15px;\n text-align: center;\n }\n .player-kyc-verification-widget .verification-types {\n grid-template-columns: 1fr;\n grid-gap: 16px;\n }\n}\n@container (max-width: 475px) {\n .player-kyc-verification-widget .verification-types {\n display: block;\n }\n .player-kyc-verification-widget .verification-types .verification-box {\n margin-bottom: 20px;\n }\n}\n@container (max-width: 1240px) and (min-width: 701px) {\n .player-kyc-verification-widget .verification-types {\n grid-template-columns: repeat(2, 1fr);\n }\n}";
533
590
  const PlayerKycVerificationStyle0 = playerKycVerificationCss;
534
591
 
@@ -539,24 +596,6 @@ const PlayerKycVerificationWidget = class {
539
596
  this.MAX_UPLOAD_SIZE = 50000000;
540
597
  this.userAgent = window.navigator.userAgent;
541
598
  this.isMobile = isMobile(this.userAgent);
542
- this.setClientStyling = () => {
543
- let sheet = document.createElement('style');
544
- sheet.innerHTML = this.clientStyling;
545
- this.stylingContainer.prepend(sheet);
546
- };
547
- this.setClientStylingURL = () => {
548
- let url = new URL(this.clientStylingUrl);
549
- let cssFile = document.createElement('style');
550
- fetch(url.href)
551
- .then((res) => res.text())
552
- .then((data) => {
553
- cssFile.innerHTML = data;
554
- setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
555
- })
556
- .catch((err) => {
557
- console.log('error ', err);
558
- });
559
- };
560
599
  this.handleToggleScreen = () => {
561
600
  this.toggleScreen(this.isMobile);
562
601
  };
@@ -570,9 +609,9 @@ const PlayerKycVerificationWidget = class {
570
609
  this.failedIcon = '';
571
610
  this.defaultIcon = '';
572
611
  this.clientStylingUrl = '';
612
+ this.mbSource = undefined;
573
613
  this.verificationType = [];
574
614
  this.isLoading = false;
575
- this.stylingAppends = false;
576
615
  this.selectedFile = null;
577
616
  this.uploadingStatus = undefined;
578
617
  this.uploadSizeExceeded = false;
@@ -590,18 +629,29 @@ const PlayerKycVerificationWidget = class {
590
629
  await getTranslations(this.translationUrl);
591
630
  }
592
631
  }
593
- componentDidRender() {
594
- // start custom styling area
595
- if (!this.stylingAppends && this.stylingContainer) {
596
- if (this.clientStyling)
597
- this.setClientStyling();
632
+ handleClientStylingChange(newValue, oldValue) {
633
+ if (newValue != oldValue) {
634
+ setClientStyling(this.stylingContainer, this.clientStyling);
635
+ }
636
+ }
637
+ handleClientStylingUrlChange(newValue, oldValue) {
638
+ if (newValue != oldValue) {
598
639
  if (this.clientStylingUrl)
599
- this.setClientStylingURL();
600
- this.stylingAppends = true;
640
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
601
641
  }
602
- // end custom styling area
603
642
  }
604
643
  async componentDidLoad() {
644
+ if (this.stylingContainer) {
645
+ if (window.emMessageBus != undefined) {
646
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
647
+ }
648
+ else {
649
+ if (this.clientStyling)
650
+ setClientStyling(this.stylingContainer, this.clientStyling);
651
+ if (this.clientStylingUrl)
652
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
653
+ }
654
+ }
605
655
  if (window.innerWidth > 700) {
606
656
  this.expandedOnDesktop = true;
607
657
  }
@@ -636,6 +686,9 @@ const PlayerKycVerificationWidget = class {
636
686
  console.error('Error fetching verification types:', error);
637
687
  }
638
688
  }
689
+ disconnectedCallback() {
690
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
691
+ }
639
692
  handleOptionChange(event, verificationTypeId) {
640
693
  const target = event.target;
641
694
  this.selectedOption = target.value;
@@ -825,7 +878,9 @@ const PlayerKycVerificationWidget = class {
825
878
  }
826
879
  }
827
880
  static get watchers() { return {
828
- "translationUrl": ["handleNewTranslations"]
881
+ "translationUrl": ["handleNewTranslations"],
882
+ "clientStyling": ["handleClientStylingChange"],
883
+ "clientStylingUrl": ["handleClientStylingUrlChange"]
829
884
  }; }
830
885
  };
831
886
  PlayerKycVerificationWidget.style = PlayerKycVerificationStyle0;
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-0437c9c0.js';
2
- export { s as setNonce } from './index-0437c9c0.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-9c0f6c58.js';
2
+ export { s as setNonce } from './index-9c0f6c58.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
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([["player-kyc-verification",[[1,"player-kyc-verification",{"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"verificationType":[32],"isLoading":[32],"stylingAppends":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"selectedOption":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"]}]]]], options);
19
+ return bootstrapLazy([["player-kyc-verification",[[1,"player-kyc-verification",{"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"verificationType":[32],"isLoading":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"selectedOption":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
20
20
  });
@@ -0,0 +1,2 @@
1
+ var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),l=(t,e)=>e in t,r=(t,e)=>(0,console.error)(t,e),s=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={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),m=!1,d=[],y=[],v=(t,e)=>n=>{t.push(n),m||(m=!0,e&&4&f.o?b($):f.raf($))},w=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){r(t)}t.length=0},$=()=>{w(d),w(y),(m=d.length>0)&&f.raf($)},b=t=>h().then(t),g=v(y,!0),S={},j=t=>"object"==(t=typeof t)||"function"===t;function O(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>k,unwrap:()=>P,unwrapErr:()=>L});var k=t=>({isOk:!0,isErr:!1,value:t}),E=t=>({isOk:!1,isErr:!0,value:t});function C(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>k(t))):k(n)}if(t.isErr)return E(t.value);throw"should never get here"}var M,x,P=t=>{if(t.isOk)return t.value;throw t.value},L=t=>{if(t.isErr)return t.value;throw t.value},R=(t,e,...n)=>{let o=null,l=!1,r=!1;const s=[],i=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?i(o):null!=o&&"boolean"!=typeof o&&((l="function"!=typeof t&&!j(o))&&(o+=""),l&&r?s[s.length-1].i+=o:s.push(l?T(null,o):o),r=l)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}if("function"==typeof t)return t(null===e?{}:e,s,F);const c=T(t,null);return c.u=e,s.length>0&&(c.h=s),c},T=(t,e)=>({o:0,p:t,i:e,m:null,h:null,u:null}),A={},F={forEach:(t,e)=>t.map(N).forEach(e),map:(t,e)=>t.map(N).map(e).map(U)},N=t=>({vattrs:t.u,vchildren:t.h,vkey:t.v,vname:t.$,vtag:t.p,vtext:t.i}),U=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),R(t.vtag,e,...t.vchildren||[])}const e=T(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.v=t.vkey,e.$=t.vname,e},W=new WeakMap,D=t=>"sc-"+t.S,H=(t,e,n,o,r,s)=>{if(n!==o){let i=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=G(n),r=G(o);e.remove(...l.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const l=j(o);if((i||l&&null!==o)&&!r)try{if(t.tagName.includes("-"))t[e]=o;else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||(t[e]=l)}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&s||r)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(V);e=e.replace(_,""),n&&f.rel(t,e,n,l),o&&f.ael(t,e,o,l)}}},q=/\s/,G=t=>t?t.split(q):[],V="Capture",_=RegExp(V+"$"),z=(t,e,n)=>{const o=11===e.m.nodeType&&e.m.host?e.m.host:e.m,l=t&&t.u||S,r=e.u||S;for(const t of B(Object.keys(l)))t in r||H(o,t,l[t],void 0,n,e.o);for(const t of B(Object.keys(r)))H(o,t,l[t],r[t],n,e.o)};function B(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var I=!1,J=(t,e,n)=>{const o=e.h[n];let l,r,s=0;if(null!==o.i)l=o.m=a.createTextNode(o.i);else{if(I||(I="svg"===o.p),l=o.m=a.createElementNS(I?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.p),I&&"foreignObject"===o.p&&(I=!1),z(null,o,I),null!=M&&l["s-si"]!==M&&l.classList.add(l["s-si"]=M),o.h)for(s=0;s<o.h.length;++s)r=J(t,o,s),r&&l.appendChild(r);"svg"===o.p?I=!1:"foreignObject"===l.tagName&&(I=!0)}return l["s-hn"]=x,l},K=(t,e,n,o,l,r)=>{let s,i=t;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);l<=r;++l)o[l]&&(s=J(null,n,l),s&&(o[l].m=s,tt(i,s,e)))},Q=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.m;Z(e),t&&t.remove()}}},X=(t,e)=>t.p===e.p,Y=(t,e,n=!1)=>{const o=e.m=t.m,l=t.h,r=e.h,s=e.p,i=e.i;null===i?(z(t,e,I="svg"===s||"foreignObject"!==s&&I),null!==l&&null!==r?((t,e,n,o,l=!1)=>{let r,s=0,i=0,c=e.length-1,u=e[0],a=e[c],f=o.length-1,h=o[0],p=o[f];for(;s<=c&&i<=f;)null==u?u=e[++s]:null==a?a=e[--c]:null==h?h=o[++i]:null==p?p=o[--f]:X(u,h)?(Y(u,h,l),u=e[++s],h=o[++i]):X(a,p)?(Y(a,p,l),a=e[--c],p=o[--f]):X(u,p)?(Y(u,p,l),tt(t,u.m,a.m.nextSibling),u=e[++s],p=o[--f]):X(a,h)?(Y(a,h,l),tt(t,a.m,u.m),a=e[--c],h=o[++i]):(r=J(e&&e[i],n,i),h=o[++i],r&&tt(u.m.parentNode,r,u.m));s>c?K(t,null==o[f+1]?null:o[f+1].m,n,o,i,f):i>f&&Q(e,s,c)})(o,l,e,r,n):null!==r?(null!==t.i&&(o.textContent=""),K(o,null,e,r,0,r.length-1)):null!==l&&Q(l,0,l.length-1),I&&"svg"===s&&(I=!1)):t.i!==i&&(o.data=i)},Z=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(Z)},tt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),et=(t,e)=>{e&&!t.j&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.j=e)))},nt=(t,e)=>{if(t.o|=16,!(4&t.o))return et(t,t.O),g((()=>ot(t,e)));t.o|=512},ot=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$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 o;return e&&(o=at(n,"componentWillLoad")),lt(o,(()=>st(t,n,e)))},lt=(t,e)=>rt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),rt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,st=async(t,e,n)=>{var o;const l=t.$hostElement$,r=l["s-rc"];n&&(t=>{const e=t.k,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=D(e),l=i.get(o);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let r,s=W.get(t=t.head||t);if(s||W.set(t,s=new Set),!s.has(o)){{r=a.createElement("style"),r.innerHTML=l;const e=null!=(n=f.C)?n:O(a);null!=e&&r.setAttribute("nonce",e),t.insertBefore(r,t.querySelector("link"))}4&e.o&&(r.innerHTML+=c),s&&s.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);it(t,e,l,n),r&&(r.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>ct(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},it=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.k,r=t.M||T(null,null),s=(t=>t&&t.p===A)(e)?e:R(null,null,e);if(x=o.tagName,n&&s.u)for(const t of Object.keys(s.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.u[t]=o[t]);s.p=null,s.o|=4,t.M=s,s.m=r.m=o.shadowRoot||o,M=o["s-sc"],Y(r,s,n)})(t,e,o)}catch(e){r(e,t.$hostElement$)}return null},ct=t=>{const e=t.$hostElement$,n=t.t,o=t.O;64&t.o||(t.o|=64,ft(e),at(n,"componentDidLoad"),t.P(e),o||ut()),t.j&&(t.j(),t.j=void 0),512&t.o&&b((()=>nt(t,!1))),t.o&=-517},ut=()=>{ft(a.documentElement),b((()=>(t=>{const e=f.ce("appload",{detail:{namespace:"player-kyc-verification"}});return t.dispatchEvent(e),e})(u)))},at=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){r(t)}},ft=t=>t.classList.add("hydrated"),ht=(t,e,o)=>{var l,s;const i=t.prototype;if(e.L||e.R||t.watchers){t.watchers&&!e.R&&(e.R=t.watchers);const c=Object.entries(null!=(l=e.L)?l:{});if(c.map((([t,[l]])=>{(31&l||2&o&&32&l)&&Object.defineProperty(i,t,{get(){return((t,e)=>n(this).T.get(e))(0,t)},set(o){((t,e,o,l)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${l.S}" 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=s.$hostElement$,c=s.T.get(e),u=s.o,a=s.t;if(o=((t,e)=>null==t||j(t)?t:1&e?t+"":t)(o,l.L[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(s.T.set(e,o),a)){if(l.R&&128&u){const t=l.R[e];t&&t.map((t=>{try{a[t](o,c,e)}catch(t){r(t,i)}}))}2==(18&u)&&nt(s,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,r){f.jmp((()=>{var s;const c=o.get(t);if(this.hasOwnProperty(c))r=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==r)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&r!==l){const n=o.t,i=null==(s=e.R)?void 0:s[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,r,l,t)}))}return}}this[c]=(null!==r||"boolean"!=typeof this[c])&&r}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.R)?s:{}),...c.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},pt=t=>{at(t,"disconnectedCallback")},mt=(t,o={})=>{var l;const h=[],m=o.exclude||[],d=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),w=a.createElement("style"),$=[];let b,g=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],S:o[1],L:o[2],A:o[3]};4&c.o&&(S=!0),c.L=o[2],c.R=null!=(l=o[4])?l:{};const u=c.S,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,k:n,T:new Map};o.F=new Promise((t=>o.P=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(t=>{if(!(1&f.o)){const e=n(t),o=e.k,l=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.F)&&e.F.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){et(e,e.O=n);break}}o.L&&Object.entries(o.L).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.N){const t=(t=>{const e=t.S.replace(/-/g,"_"),n=t.N;if(!n)return;const o=s.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(s.set(n,t),t[e])),r)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.S}#${e.U}" was not found`);o.isProxied||(n.R=o.watchers,ht(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){r(t)}e.o&=-9,e.o|=128,l()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=D(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.O,c=()=>nt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.o)){const t=n(this);(null==t?void 0:t.t)?pt(t.t):(null==t?void 0:t.F)&&t.F.then((()=>pt(t.t)))}})()))}componentOnReady(){return n(this).F}};c.N=t[0],m.includes(u)||d.get(u)||(h.push(u),d.define(u,ht(a,c,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(l=f.C)?l:O(a);null!=t&&w.setAttribute("nonce",t),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,$.length?$.map((t=>t.connectedCallback())):f.jmp((()=>b=setTimeout(ut,30)))},dt=(t,e)=>e,yt=t=>f.C=t;export{dt as F,mt as b,R as h,h as p,o as r,yt as s}
@@ -1 +1 @@
1
- import{r as e,h as i,F as n}from"./p-78759d45.js";let t={en:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Account Verification",kycDescription:"We require some documents to protect your account and to comply with legal and license requirements.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Recheck:"Recheck",Biometric:"Biometric",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document already uploaded.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},de:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Account-Verifizierung",kycDescription:"Wir benötigen einige Dokumente, um Ihr Konto zu schützen und den rechtlichen und Lizenzanforderungen zu entsprechen.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Dokument bereits hochgeladen.",Unknown:"Unbekannt",Passport:"Reisepass",IdCardFront:"Personalausweis (Vorderseite)",IdCardBack:"Personalausweis (Rückseite)",BirthCertificate:"Geburtsurkunde",DrivingLicenseFront:"Führerschein (Vorderseite)",DrivingLicenseBack:"Führerschein (Rückseite)",ResidentialPermit:"Wohnberechtigungsschein",CreditDebitCardFront:"Kredit-/Debitkarte (Vorderseite)",CreditDebitCardBack:"Kredit-/Debitkarte (Rückseite)",UtilityBill:"Nebenkostenabrechnung",TaxBill:"Steuerbescheid",CertifiedCopy:"Beglaubigte Kopie",Selfie:"Selfie",BankStatement:"Kontoauszug",RentAgreement:"Mietvertrag",InsuranceAgreement:"Versicherungsvertrag",Other:"Sonstige",IncomeAndOrSavingsFromEmployment:"Einkommen und/oder Ersparnisse aus Beschäftigung",SaleOfSharesOrOtherInvestments:"Verkauf von Aktien oder anderen Anlagen",DividendsProfitsFromCompany:"Dividenden/Gewinne aus dem Unternehmen",CompanySale:"Firmenverkauf",IndividualOwnsPolicyCompanyPays:"Einzelperson besitzt die Police/Unternehmen zahlt",SaleOfProperty:"Immobilienverkauf",Inheritance:"Erbschaft",MaturityOrSurrenderOfLifeAssurance:"Fälligkeit oder Rückkauf einer Lebensversicherung",InsuranceClaims:"Versicherungsansprüche",CompensationPayment:"Entschädigungszahlung",LotteryBettingCasinoWin:"Lotterie-/Wett-/Casinogewinn",Loan:"Darlehen",Gift:"Geschenk",Ewallet:"E-Wallet",Voucher:"Gutschein"},ro:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Verificarea contului",kycDescription:"Avem nevoie de câteva documente pentru a proteja contul dvs. și pentru a respecta cerințele legale și de licență.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document deja încărcat.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},fr:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Vérification de compte",kycDescription:"Nous avons besoin de certains documents pour protéger votre compte et pour nous conformer aux exigences légales et de licence.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document déjà téléchargé.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},ar:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"التحقق من الحساب",kycDescription:"نحتاج إلى بعض الوثائق لحماية حسابك والامتثال للمتطلبات القانونية والترخيص.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document already uploaded.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},hr:{loading:"Učitavanje, molimo pričekajte ...",noVerificationRequired:"Trenutačno nije potrebna provjera vašeg računa.",verificationComplete:"Provjera dovršena",verificationFailed:"Provjera nije uspjela",verificationExpired:"Provjera je istekla",fileSizeExceeded:"Premašena je maksimalna veličina datoteke. Maksimalna veličina datoteke je: 50mb",uploading:"Prijenos…",successUpload:"Vaš dokument je učitan i uskoro će biti pregledan",successUploadMultipleFiles:"Vaši su dokumenti učitani i uskoro će biti pregledani",failedUpload:"Prijenos nije uspio pokušajte ponovo",chooseDocument:"Odaberite Dokument",kycTitle:"Verifikacija računa",kycDescription:"Potrebni su nam neki dokumenti kako bismo zaštitili vaš račun i kako bismo se pridržavali zakonskih i licencijskih zahtjeva.",download:"Preuzmi",Age:"Dob",Aml:"AML",Documents:"Dokumenti",Pep:"Politički izložena osoba",Sanction:"Sankcija",Biometric:"Verifikacija",Recheck:"Ponovna provjera",ProofOfAddress:"Potvrda adrese",SourceOfWealth:"Izvor sredstava",SocialMedia:"Društvene mreže",ProofOfPayment:"Platna metoda",uploaded:"Dokument je već učitan.",Unknown:"Nepoznato",Passport:"Putovnica",IdCardFront:"Prednja strana osobne iskaznice",IdCardBack:"Stražnja strana osobne iskaznice",BirthCertificate:"Rodni list",DrivingLicenseFront:"Vozačka dozvola (prednja strana)",DrivingLicenseBack:"Vozačka dozvola (stražnja strana)",ResidentialPermit:"Boravišna dozvola",CreditDebitCardFront:"Kreditna/debitna kartica (prednja strana)",CreditDebitCardBack:"Kreditna/debitna kartica (stražnja strana)",UtilityBill:"Račun za komunalne usluge",TaxBill:"Porezni račun",CertifiedCopy:"Ovjereni primjerak",Selfie:"Selfie",BankStatement:"Bankovni izvod",RentAgreement:"Ugovor o najmu",InsuranceAgreement:"Ugovor o osiguranju",Other:"Ostalo",IncomeAndOrSavingsFromEmployment:"Prihod/Ušteđevina ",SaleOfSharesOrOtherInvestments:"Prodaja dionica ili drugih investicija",DividendsProfitsFromCompany:"Dividende/dobit od tvrtke",CompanySale:"Prodaja tvrtke",IndividualOwnsPolicyCompanyPays:"Osoba posjeduje policu/tvrtka plaća",SaleOfProperty:"Prodaja nekretnine",Inheritance:"Nasljeđe",MaturityOrSurrenderOfLifeAssurance:"Dospijeće ili predaja životnog osiguranja",InsuranceClaims:"Zahtjevi za osiguranje",CompensationPayment:"Isplata odštete",LotteryBettingCasinoWin:"Dobitak na lutriji/kladionici/kasinu",Loan:"Zajam",Gift:"Poklon",Ewallet:"Elektronički novčanik",Voucher:"Vaučer"},"pt-br":{Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",Loading:"Carregando, espere por favor…",noVerificationRequired:"Não há necessidade de verificação para sua conta no momento",verificationComplete:"Verificação completa",verificationFailed:"Verificação de falha",verificationExpired:"A verificação expirou",fileSizeExceeded:"Tamanho máximo do arquivo excedido. O tamanho máximo do arquivo é: 50 MB",uploading:"Carregando...",successUpload:"Seu documento foi carregado e será analisado em breve",successUploadMultipleFiles:"Seus documentos foram enviados e serão revisados ​​em breve",failedUpload:"Falha no upload do arquivo, tente novamente",chooseDocument:"Escolha um arquivo",download:"Download",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Documento já carregado.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},"es-mx":{Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",Loading:"Cargando, espere por favor…",noVerificationRequired:"No hay verificación requerida para su cuenta al momento",verificationComplete:"Verificación completa",verificationFailed:"Verificación fallo",verificationExpired:"Verificación expiro",fileSizeExceeded:"Tamaño máximo de archivo se excedió. El tamaño máximo del archivo es: 50mb",uploading:"Cargando ...",successUpload:"Su documento ha sido cargado y será revisado en breve",successUploadMultipleFiles:"Sus documento han sido cargados y serán revisado en breve",failedUpload:"La carga del archivo falló, por favor intente de nuevo",chooseDocument:"Elija un archivo",download:"Download",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Documento ya subido.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"}};const o=e=>new Promise((i=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((i=>{t[i]||(t[i]={});for(let n in e[i])t[i][n]=e[i][n]})),i(!0)}))})),a=(e,i,n)=>{let o=t[void 0!==i&&i in t?i:"en"][e];if(void 0!==n)for(const[e,i]of Object.entries(n.values)){const n=new RegExp(`{${e}}`,"g");o=o.replace(n,i)}return o},r=class{constructor(i){var n;e(this,i),this.scriptInjected=!1,this.MAX_UPLOAD_SIZE=5e7,this.userAgent=window.navigator.userAgent,this.isMobile=!!((n=this.userAgent).toLowerCase().match(/android/i)||n.toLowerCase().match(/blackberry|bb/i)||n.toLowerCase().match(/iphone|ipad|ipod/i)||n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),i=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{i.innerHTML=e,setTimeout((()=>{this.stylingContainer.prepend(i)}),1)})).catch((e=>{console.log("error ",e)}))},this.handleToggleScreen=()=>{this.toggleScreen(this.isMobile)},this.userId="",this.session="",this.language=void 0,this.endpoint="",this.translationUrl="",this.clientStyling="",this.verifiedIcon="",this.failedIcon="",this.defaultIcon="",this.clientStylingUrl="",this.verificationType=[],this.isLoading=!1,this.stylingAppends=!1,this.selectedFile=null,this.uploadingStatus=void 0,this.uploadSizeExceeded=!1,this.selectedOption=void 0,this.expandedOnDesktop=!1}handleNewTranslations(){this.isLoading=!0,o(this.translationUrl).then((()=>{this.isLoading=!1}))}async componentWillLoad(){this.translationUrl.length>2&&await o(this.translationUrl)}componentDidRender(){!this.stylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}async componentDidLoad(){window.innerWidth>700&&(this.expandedOnDesktop=!0);try{let e=new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus`);const i={method:"POST",headers:{"X-SessionId":this.session,"Content-Type":"application/json"},body:JSON.stringify({})};fetch(e.href,i).then((e=>{if(200===e.status)return e.json();throw new Error("HTTP status "+e.status)})).then((e=>{this.verificationType=e.verifications})).catch((e=>{console.error(e)}))}catch(e){console.error("Error fetching verification types:",e)}}handleOptionChange(e,i){const n=e.target;this.selectedOption=n.value,this.verificationType=this.verificationType.map((e=>(e.type===i&&(e.optionChosen=n.value),e)))}handleDocumentsStatus(e,i,n){this.verificationType=this.verificationType.map((t=>{if(t.type===e){const e=t.documents.find((e=>e.code===n));e&&(e.statusUploaded=i)}return t}))}downloadPDF(e){const i=document.createElement("a");i.href=e,i.download="file.pdf",i.target="_blank",i.dispatchEvent(new MouseEvent("click"))}toggleVerificationType(e,i){this.expandedOnDesktop=!1,this.verificationType=this.verificationType.map((n=>{var t;return n.type===e&&(null===(t=n.flowInfo)||void 0===t?void 0:t.type)==i&&(n.expanded=!n.expanded),n}))}toggleScreen(e){window.postMessage({type:"PlayerAccountMenuActive",isMobile:e},window.location.href)}checkFileSize(e){let i=0;return Object.keys(e).forEach((n=>{i+=e[n].size})),i<=this.MAX_UPLOAD_SIZE}handleFileSelection(e,i,n){if(e&&e.length>0)if(this.selectedFile=e,this.checkFileSize(this.selectedFile)){const e={method:"POST",headers:{"Content-Type":"application/json","X-SessionId":this.session},body:JSON.stringify({DocumentCode:i})};fetch(`${this.endpoint}/v1/player/${this.userId}/verification/GetKYCVerificationDocumentUploadUrl`,e).then((e=>{if(e.ok)return this.uploadingStatus=a("uploading",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),e.json()})).then((e=>{const t=new FormData;t.append(i,this.selectedFile[0]),fetch(e.Url,{method:"POST",body:t}).then((e=>{e.ok?(this.uploadingStatus=a(this.selectedFile.length>1?"successUploadMultipleFiles":"successUpload",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i)):(this.uploadingStatus=a("failedUpload",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),console.error("File upload error:",e.status))})).catch((e=>{console.error("File upload error:",e)}))})).catch((e=>{console.error("File upload error:",e)}))}else console.error(a("fileSizeExceeded",this.language)),this.uploadingStatus=a("fileSizeExceeded",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),this.uploadSizeExceeded=!0}importScript(e){return new Promise(((i,n)=>{fetch(e).then((e=>e.text())).then((e=>{if(new Function(e)(),this.scriptInjected)i(!0);else{const e=document.createElement("script");e.src="https://test.insic.de/frontend3/static/js/avs-loader.min.js",document.head.appendChild(e),this.scriptInjected=!0,i(!0)}})).catch((e=>{n(e)}))}))}isStatusUploaded(e){return!(!e||"Uploaded"!==e.status)}renderVerificationTypeBox(e){this.expandedOnDesktop&&(e.expanded=!0);let n=e.expanded,t=e.type.trim(),o=e.optionChosen,r=e.status,s=e.documents,d=e.flowInfo;const c="Verified"===r,l="Failed"===r||"Expired"===r;return i("div",{class:`verification-box ${n?"expanded":""} ${l?"failed":""} ${c?"success":""}`},i("div",{class:"box box-header "+(n?"expanded":""),onClick:()=>{var i;return this.toggleVerificationType(e.type,null===(i=e.flowInfo)||void 0===i?void 0:i.type)}},i("div",{class:"box-icon"},i("div",null,c?this.verifiedIcon?i("img",{class:"CustomVerifiedIcon",src:this.verifiedIcon,alt:""}):i("svg",{width:"100",height:"100",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},i("circle",{cx:"50",cy:"50",r:"40",fill:"#388D79"}),i("circle",{cx:"50",cy:"50",r:"34",fill:"none",stroke:"#fff","stroke-width":"12px"}),i("polyline",{points:"30,50 45,63 70,35",fill:"none",stroke:"#fff","stroke-width":"8px"})):l?this.failedIcon?i("img",{class:"CustomFailedIcon",src:this.failedIcon,alt:""}):i("svg",{width:"100",height:"100",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},i("circle",{cx:"50",cy:"50",r:"40",fill:"red"}),i("line",{x1:"30",y1:"30",x2:"70",y2:"70",stroke:"#fff","stroke-width":"10px"}),i("line",{x1:"30",y1:"70",x2:"70",y2:"30",stroke:"#fff","stroke-width":"10px"})):this.defaultIcon?i("img",{class:"CustomDefaultIcon",src:this.defaultIcon,alt:""}):i("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M4 4V20C4 21.1046 4.89543 22 6 22L18 22C19.1046 22 20 21.1046 20 20V8.34162C20 7.8034 19.7831 7.28789 19.3982 6.91161L14.9579 2.56999C14.5842 2.20459 14.0824 2 13.5597 2L6 2C4.89543 2 4 2.89543 4 4Z",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),i("path",{d:"M9 13H15",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),i("path",{d:"M9 17H12",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),i("path",{d:"M14 2V6C14 7.10457 14.8954 8 16 8H20",stroke:"#000000","stroke-width":"2","stroke-linejoin":"round"})))),i("div",{class:"box-title"},a(t,this.language)),i("div",{class:"chevron-icon"},i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},i("path",{d:n?"M6 15l6-6 6 6":"M6 9l6 6 6-6"})))),n?this.renderExpandedContent(e,o,r,s,d,c,l):i("div",{class:"box box-content"},i("div",{id:"__avs-wrapper"})))}renderDocumentsActions(e,n,t){return i("div",null,this.isStatusUploaded(e)?i("div",{class:"upload-status"},a("uploaded",this.language)):(null==e?void 0:e.statusUploaded)?i("div",{class:"upload-status"},null==e?void 0:e.statusUploaded):i("div",{class:"documents-action"},i("div",{class:"sample-file"},"FileDownload"===(null==e?void 0:e.sampleType)?i("button",{class:"download-button",onClick:()=>this.downloadPDF(null==e?void 0:e.sampleUrl)},i("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M12 0C5.372 0 0 5.372 0 12C0 18.628 5.372 24 12 24C18.628 24 24 18.628 24 12C24 5.372 18.628 0 12 0ZM12 22C6.485 22 2 17.515 2 12C2 6.485 6.485 2 12 2C17.515 2 22 6.485 22 12C22 17.515 17.515 22 12 22Z",fill:"var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))"}),i("path",{d:"M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z",fill:"var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))"})),i("span",null,a("download",this.language))):null),i("div",{class:"upload-button"},n?i("label",null,i("input",{type:"file",accept:"*",onChange:e=>this.handleFileSelection(e.target.files,this.selectedOption,t.type),style:{display:"none"}}),i("svg",{width:"100",height:"100",xmlns:"http://www.w3.org/2000/svg"},i("circle",{cx:"50",cy:"50",r:"40",fill:"var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))"}),i("line",{x1:"30",y1:"50",x2:"70",y2:"50",stroke:"white","stroke-width":"6"}),i("line",{x1:"50",y1:"30",x2:"50",y2:"70",stroke:"white","stroke-width":"6"}))):null)))}renderExpandedContent(e,t,o,r,s,d,c){return"Widget"===(null==s?void 0:s.type)||"Redirect"===(null==s?void 0:s.type)&&"Manual"!==e.vendorName&&"Verified"!==o?i("div",null,i("hr",{style:{margin:"5px"}}),i("iframe",{src:s.url,frameborder:"0",height:"400px",width:"100%",allowfullScreen:!0,allow:"camera *;microphone *"})):i("div",{class:"box box-content"},i(n,null,d?i("div",{class:"verification-status"},a("verificationComplete",this.language)):c?i("div",{class:"verification-status"},a("Failed"===o?"verificationFailed":"verificationExpired",this.language)):r.length>0?i("div",{class:"documents-dropdown"},i("select",{class:"nice-select",onChange:i=>this.handleOptionChange(i,e.type)},i("option",{value:"",selected:!0,disabled:!0,hidden:!0},a("chooseDocument",this.language)),r.map((e=>i("option",{selected:t==e.code,value:e.code},a(e.type,this.language))))),this.renderDocumentsActions(r.find((e=>e.code===t)),t,e)):null))}render(){return this.isLoading?i("div",null,i("p",null,a("loading",this.language))):i("div",{class:"ModalContainer",ref:e=>this.stylingContainer=e},i("div",{class:"player-kyc-verification-widget"},this.isMobile?i("div",{class:"MenuReturnButton",onClick:this.handleToggleScreen},i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},i("defs",null),i("g",{transform:"translate(-20 -158)"},i("g",{transform:"translate(20 158)"},i("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)"})))),i("h2",null,a("kycTitle",this.language))):i("h2",null,a("kycTitle",this.language)),0===this.verificationType.length?i("div",{class:"no-verification-description",style:{padding:"24px",fontSize:"18px"}},a("noVerificationRequired",this.language)):i(n,null,i("div",{class:"widget-description"},a("kycDescription",this.language)),i("div",{class:"verification-types"},this.verificationType.map((e=>e?this.renderVerificationTypeBox(e):null))))))}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};r.style=':host {\n font-family: inherit;\n}\n\nbutton, select {\n font-family: inherit;\n}\n\n.ModalContainer {\n container-type: inline-size;\n}\n\n.player-kyc-verification-widget {\n padding: 20px;\n align-items: center;\n}\n.player-kyc-verification-widget h2 {\n margin: 15px;\n}\n.player-kyc-verification-widget .widget-description {\n margin: 24px 0px;\n}\n.player-kyc-verification-widget .verification-types {\n width: 100%;\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 34px;\n}\n.player-kyc-verification-widget .verification-types .verification-box {\n transition: height 0.3s, border-color 0.3s;\n border: solid 1px var(--emw--color-gray-100, #E6E6E6);\n border-radius: 2px;\n display: flex;\n flex-direction: column;\n padding: 0px 14px;\n border-width: 2px 2px 8px 2px;\n align-self: start;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box {\n flex-shrink: 0;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header {\n display: flex;\n padding: 14px 0px;\n justify-content: space-between;\n cursor: pointer;\n align-items: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon {\n flex-grow: 1;\n display: flex;\n justify-content: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon svg {\n height: 24px;\n width: 24px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-title {\n flex-grow: 1;\n font-size: 18px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon {\n flex-grow: 10;\n width: 14px;\n height: 14px;\n display: flex;\n justify-content: flex-end;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon svg {\n width: 20px;\n height: 22px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content {\n flex-grow: 1;\n border-top: 0.4px solid var(--emw--color-gray-100, #E6E6E6);\n padding: 10px 0px;\n flex-grow: 1;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .upload-status {\n text-align: center;\n padding: 20px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown {\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown svg {\n margin: 16px;\n cursor: pointer;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .nice-select {\n cursor: pointer;\n width: 100%;\n height: 30px;\n padding: 4px 14px;\n font-size: 14px;\n border: 1px solid var(--emw--color-gray-150, #828282);\n border-radius: 2px;\n background-color: var(--emw--color-white, #FFFFFF);\n color: #333;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n padding-right: 30px;\n background-repeat: no-repeat;\n background-position: right 10px center;\n background-image: url(\'data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%23333" d="M10 18.4l-6.5-6.5h13z"/><path fill="%23333" d="M10 1.6l6.5 6.5H3.5z"/></svg>\');\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button {\n font-family: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--emw--color-white, #FFFFFF);\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));\n border: none;\n font-size: 16px;\n padding: 10px 0px 0px 0px;\n cursor: pointer;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button svg {\n margin-right: 10px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded {\n border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));\n min-height: 120px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.failed {\n border-color: var(--emw--color-error, var(--emw--color-red, #FD2839));\n}\n.player-kyc-verification-widget .verification-types .verification-box.success {\n border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content {\n display: flex;\n justify-content: center;\n flex-direction: column;\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content .verification-status {\n margin: 12px 0px 16px;\n font-size: 18px;\n text-align: center;\n color: var(--emw--color-gray-150, #828282);\n}\n\n.MenuReturnButton {\n display: flex;\n align-items: center;\n}\n\n@container (min-width: 700px) {\n .player-kyc-verification-widget {\n padding: 100px 60px;\n }\n}\n@container (max-width: 700px) {\n .player-kyc-verification-widget h2 {\n margin: 15px;\n text-align: center;\n }\n .player-kyc-verification-widget .verification-types {\n grid-template-columns: 1fr;\n grid-gap: 16px;\n }\n}\n@container (max-width: 475px) {\n .player-kyc-verification-widget .verification-types {\n display: block;\n }\n .player-kyc-verification-widget .verification-types .verification-box {\n margin-bottom: 20px;\n }\n}\n@container (max-width: 1240px) and (min-width: 701px) {\n .player-kyc-verification-widget .verification-types {\n grid-template-columns: repeat(2, 1fr);\n }\n}';export{r as player_kyc_verification}
1
+ import{r as e,h as i,F as n}from"./p-25ea8e6b.js";let t={en:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Account Verification",kycDescription:"We require some documents to protect your account and to comply with legal and license requirements.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Recheck:"Recheck",Biometric:"Biometric",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document already uploaded.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},de:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Account-Verifizierung",kycDescription:"Wir benötigen einige Dokumente, um Ihr Konto zu schützen und den rechtlichen und Lizenzanforderungen zu entsprechen.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Dokument bereits hochgeladen.",Unknown:"Unbekannt",Passport:"Reisepass",IdCardFront:"Personalausweis (Vorderseite)",IdCardBack:"Personalausweis (Rückseite)",BirthCertificate:"Geburtsurkunde",DrivingLicenseFront:"Führerschein (Vorderseite)",DrivingLicenseBack:"Führerschein (Rückseite)",ResidentialPermit:"Wohnberechtigungsschein",CreditDebitCardFront:"Kredit-/Debitkarte (Vorderseite)",CreditDebitCardBack:"Kredit-/Debitkarte (Rückseite)",UtilityBill:"Nebenkostenabrechnung",TaxBill:"Steuerbescheid",CertifiedCopy:"Beglaubigte Kopie",Selfie:"Selfie",BankStatement:"Kontoauszug",RentAgreement:"Mietvertrag",InsuranceAgreement:"Versicherungsvertrag",Other:"Sonstige",IncomeAndOrSavingsFromEmployment:"Einkommen und/oder Ersparnisse aus Beschäftigung",SaleOfSharesOrOtherInvestments:"Verkauf von Aktien oder anderen Anlagen",DividendsProfitsFromCompany:"Dividenden/Gewinne aus dem Unternehmen",CompanySale:"Firmenverkauf",IndividualOwnsPolicyCompanyPays:"Einzelperson besitzt die Police/Unternehmen zahlt",SaleOfProperty:"Immobilienverkauf",Inheritance:"Erbschaft",MaturityOrSurrenderOfLifeAssurance:"Fälligkeit oder Rückkauf einer Lebensversicherung",InsuranceClaims:"Versicherungsansprüche",CompensationPayment:"Entschädigungszahlung",LotteryBettingCasinoWin:"Lotterie-/Wett-/Casinogewinn",Loan:"Darlehen",Gift:"Geschenk",Ewallet:"E-Wallet",Voucher:"Gutschein"},ro:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Verificarea contului",kycDescription:"Avem nevoie de câteva documente pentru a proteja contul dvs. și pentru a respecta cerințele legale și de licență.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document deja încărcat.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},fr:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"Vérification de compte",kycDescription:"Nous avons besoin de certains documents pour protéger votre compte et pour nous conformer aux exigences légales et de licence.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document déjà téléchargé.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},ar:{loading:"Loading, please wait ...",noVerificationRequired:"There is no verification required for your account at this moment.",verificationComplete:"Verification complete",verificationFailed:"Verification failed",verificationExpired:"Verification expired",fileSizeExceeded:"Maximum file size exceeded. Max file size is: 50mb",uploading:"Uploading ... ",successUpload:"Your document has been uploaded and it will be reviewed shortly",successUploadMultipleFiles:"Your documents have been uploaded and it will be reviewed shortly",failedUpload:"Upload failed please try again",chooseDocument:"Choose Document",kycTitle:"التحقق من الحساب",kycDescription:"نحتاج إلى بعض الوثائق لحماية حسابك والامتثال للمتطلبات القانونية والترخيص.",download:"Download",Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Document already uploaded.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},hr:{loading:"Učitavanje, molimo pričekajte ...",noVerificationRequired:"Trenutačno nije potrebna provjera vašeg računa.",verificationComplete:"Provjera dovršena",verificationFailed:"Provjera nije uspjela",verificationExpired:"Provjera je istekla",fileSizeExceeded:"Premašena je maksimalna veličina datoteke. Maksimalna veličina datoteke je: 50mb",uploading:"Prijenos…",successUpload:"Vaš dokument je učitan i uskoro će biti pregledan",successUploadMultipleFiles:"Vaši su dokumenti učitani i uskoro će biti pregledani",failedUpload:"Prijenos nije uspio pokušajte ponovo",chooseDocument:"Odaberite Dokument",kycTitle:"Verifikacija računa",kycDescription:"Potrebni su nam neki dokumenti kako bismo zaštitili vaš račun i kako bismo se pridržavali zakonskih i licencijskih zahtjeva.",download:"Preuzmi",Age:"Dob",Aml:"AML",Documents:"Dokumenti",Pep:"Politički izložena osoba",Sanction:"Sankcija",Biometric:"Verifikacija",Recheck:"Ponovna provjera",ProofOfAddress:"Potvrda adrese",SourceOfWealth:"Izvor sredstava",SocialMedia:"Društvene mreže",ProofOfPayment:"Platna metoda",uploaded:"Dokument je već učitan.",Unknown:"Nepoznato",Passport:"Putovnica",IdCardFront:"Prednja strana osobne iskaznice",IdCardBack:"Stražnja strana osobne iskaznice",BirthCertificate:"Rodni list",DrivingLicenseFront:"Vozačka dozvola (prednja strana)",DrivingLicenseBack:"Vozačka dozvola (stražnja strana)",ResidentialPermit:"Boravišna dozvola",CreditDebitCardFront:"Kreditna/debitna kartica (prednja strana)",CreditDebitCardBack:"Kreditna/debitna kartica (stražnja strana)",UtilityBill:"Račun za komunalne usluge",TaxBill:"Porezni račun",CertifiedCopy:"Ovjereni primjerak",Selfie:"Selfie",BankStatement:"Bankovni izvod",RentAgreement:"Ugovor o najmu",InsuranceAgreement:"Ugovor o osiguranju",Other:"Ostalo",IncomeAndOrSavingsFromEmployment:"Prihod/Ušteđevina ",SaleOfSharesOrOtherInvestments:"Prodaja dionica ili drugih investicija",DividendsProfitsFromCompany:"Dividende/dobit od tvrtke",CompanySale:"Prodaja tvrtke",IndividualOwnsPolicyCompanyPays:"Osoba posjeduje policu/tvrtka plaća",SaleOfProperty:"Prodaja nekretnine",Inheritance:"Nasljeđe",MaturityOrSurrenderOfLifeAssurance:"Dospijeće ili predaja životnog osiguranja",InsuranceClaims:"Zahtjevi za osiguranje",CompensationPayment:"Isplata odštete",LotteryBettingCasinoWin:"Dobitak na lutriji/kladionici/kasinu",Loan:"Zajam",Gift:"Poklon",Ewallet:"Elektronički novčanik",Voucher:"Vaučer"},"pt-br":{Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",Loading:"Carregando, espere por favor…",noVerificationRequired:"Não há necessidade de verificação para sua conta no momento",verificationComplete:"Verificação completa",verificationFailed:"Verificação de falha",verificationExpired:"A verificação expirou",fileSizeExceeded:"Tamanho máximo do arquivo excedido. O tamanho máximo do arquivo é: 50 MB",uploading:"Carregando...",successUpload:"Seu documento foi carregado e será analisado em breve",successUploadMultipleFiles:"Seus documentos foram enviados e serão revisados ​​em breve",failedUpload:"Falha no upload do arquivo, tente novamente",chooseDocument:"Escolha um arquivo",download:"Download",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Documento já carregado.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"},"es-mx":{Age:"Age",Aml:"AML",Documents:"Documents",Pep:"PEP",Sanction:"Sanctions",Biometric:"Biometric",Recheck:"Recheck",Loading:"Cargando, espere por favor…",noVerificationRequired:"No hay verificación requerida para su cuenta al momento",verificationComplete:"Verificación completa",verificationFailed:"Verificación fallo",verificationExpired:"Verificación expiro",fileSizeExceeded:"Tamaño máximo de archivo se excedió. El tamaño máximo del archivo es: 50mb",uploading:"Cargando ...",successUpload:"Su documento ha sido cargado y será revisado en breve",successUploadMultipleFiles:"Sus documento han sido cargados y serán revisado en breve",failedUpload:"La carga del archivo falló, por favor intente de nuevo",chooseDocument:"Elija un archivo",download:"Download",ProofOfAddress:"Proof of Address",SourceOfWealth:"Source of Wealth",SocialMedia:"Social Media",ProofOfPayment:"Proof of Payment",uploaded:"Documento ya subido.",Unknown:"Unknown",Passport:"Passport",IdCardFront:"ID Card (front side)",IdCardBack:"ID Card (back side)",BirthCertificate:"Birth Certificate",DrivingLicenseFront:"Driving License (front side)",DrivingLicenseBack:"Driving License (back side)",ResidentialPermit:"Residential Permit",CreditDebitCardFront:"Credit / Debit Card (front side)",CreditDebitCardBack:"Credit / Debit Card (back side)",UtilityBill:"Utility Bill",TaxBill:"Tax Bill",CertifiedCopy:"Certified Copy",Selfie:"Selfie",BankStatement:"Bank Statement",RentAgreement:"Rent Agreement",InsuranceAgreement:"Insurance Agreement",Other:"Other",IncomeAndOrSavingsFromEmployment:"Income and/or savings from employment",SaleOfSharesOrOtherInvestments:"Sale of shares or other investments",DividendsProfitsFromCompany:"Dividends/Profits from company",CompanySale:"Company sale",IndividualOwnsPolicyCompanyPays:"Individual owns policy/company pays",SaleOfProperty:"Sale of Property",Inheritance:"Inheritance",MaturityOrSurrenderOfLifeAssurance:"Maturity or surrender of life assurance",InsuranceClaims:"Insurance Claims",CompensationPayment:"Compensation payment",LotteryBettingCasinoWin:"Lottery/betting/casino win",Loan:"Loan",Gift:"Gift",Ewallet:"eWallet",Voucher:"Voucher"}};const o=e=>new Promise((i=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((i=>{t[i]||(t[i]={});for(let n in e[i])t[i][n]=e[i][n]})),i(!0)}))})),a=(e,i,n)=>{let o=t[void 0!==i&&i in t?i:"en"][e];if(void 0!==n)for(const[e,i]of Object.entries(n.values)){const n=new RegExp(`{${e}}`,"g");o=o.replace(n,i)}return o};function r(e,i){if(e){const n=document.createElement("style");n.innerHTML=i,e.appendChild(n)}}function s(e,i){const n=new URL(i);fetch(n.href).then((e=>e.text())).then((i=>{const n=document.createElement("style");n.innerHTML=i,e&&e.appendChild(n)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}const d=class{constructor(i){var n;e(this,i),this.scriptInjected=!1,this.MAX_UPLOAD_SIZE=5e7,this.userAgent=window.navigator.userAgent,this.isMobile=!!((n=this.userAgent).toLowerCase().match(/android/i)||n.toLowerCase().match(/blackberry|bb/i)||n.toLowerCase().match(/iphone|ipad|ipod/i)||n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),this.handleToggleScreen=()=>{this.toggleScreen(this.isMobile)},this.userId="",this.session="",this.language=void 0,this.endpoint="",this.translationUrl="",this.clientStyling="",this.verifiedIcon="",this.failedIcon="",this.defaultIcon="",this.clientStylingUrl="",this.mbSource=void 0,this.verificationType=[],this.isLoading=!1,this.selectedFile=null,this.uploadingStatus=void 0,this.uploadSizeExceeded=!1,this.selectedOption=void 0,this.expandedOnDesktop=!1}handleNewTranslations(){this.isLoading=!0,o(this.translationUrl).then((()=>{this.isLoading=!1}))}async componentWillLoad(){this.translationUrl.length>2&&await o(this.translationUrl)}handleClientStylingChange(e,i){e!=i&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,i){e!=i&&this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)}async componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(e,i){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(i,(i=>{n.innerHTML=i,e&&e.appendChild(n)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))),window.innerWidth>700&&(this.expandedOnDesktop=!0);try{let e=new URL(`${this.endpoint}/v2/player/${this.userId}/verification/GetKYCCustomerStatus`);const i={method:"POST",headers:{"X-SessionId":this.session,"Content-Type":"application/json"},body:JSON.stringify({})};fetch(e.href,i).then((e=>{if(200===e.status)return e.json();throw new Error("HTTP status "+e.status)})).then((e=>{this.verificationType=e.verifications})).catch((e=>{console.error(e)}))}catch(e){console.error("Error fetching verification types:",e)}}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleOptionChange(e,i){const n=e.target;this.selectedOption=n.value,this.verificationType=this.verificationType.map((e=>(e.type===i&&(e.optionChosen=n.value),e)))}handleDocumentsStatus(e,i,n){this.verificationType=this.verificationType.map((t=>{if(t.type===e){const e=t.documents.find((e=>e.code===n));e&&(e.statusUploaded=i)}return t}))}downloadPDF(e){const i=document.createElement("a");i.href=e,i.download="file.pdf",i.target="_blank",i.dispatchEvent(new MouseEvent("click"))}toggleVerificationType(e,i){this.expandedOnDesktop=!1,this.verificationType=this.verificationType.map((n=>{var t;return n.type===e&&(null===(t=n.flowInfo)||void 0===t?void 0:t.type)==i&&(n.expanded=!n.expanded),n}))}toggleScreen(e){window.postMessage({type:"PlayerAccountMenuActive",isMobile:e},window.location.href)}checkFileSize(e){let i=0;return Object.keys(e).forEach((n=>{i+=e[n].size})),i<=this.MAX_UPLOAD_SIZE}handleFileSelection(e,i,n){if(e&&e.length>0)if(this.selectedFile=e,this.checkFileSize(this.selectedFile)){const e={method:"POST",headers:{"Content-Type":"application/json","X-SessionId":this.session},body:JSON.stringify({DocumentCode:i})};fetch(`${this.endpoint}/v1/player/${this.userId}/verification/GetKYCVerificationDocumentUploadUrl`,e).then((e=>{if(e.ok)return this.uploadingStatus=a("uploading",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),e.json()})).then((e=>{const t=new FormData;t.append(i,this.selectedFile[0]),fetch(e.Url,{method:"POST",body:t}).then((e=>{e.ok?(this.uploadingStatus=a(this.selectedFile.length>1?"successUploadMultipleFiles":"successUpload",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i)):(this.uploadingStatus=a("failedUpload",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),console.error("File upload error:",e.status))})).catch((e=>{console.error("File upload error:",e)}))})).catch((e=>{console.error("File upload error:",e)}))}else console.error(a("fileSizeExceeded",this.language)),this.uploadingStatus=a("fileSizeExceeded",this.language),this.handleDocumentsStatus(n,this.uploadingStatus,i),this.uploadSizeExceeded=!0}importScript(e){return new Promise(((i,n)=>{fetch(e).then((e=>e.text())).then((e=>{if(new Function(e)(),this.scriptInjected)i(!0);else{const e=document.createElement("script");e.src="https://test.insic.de/frontend3/static/js/avs-loader.min.js",document.head.appendChild(e),this.scriptInjected=!0,i(!0)}})).catch((e=>{n(e)}))}))}isStatusUploaded(e){return!(!e||"Uploaded"!==e.status)}renderVerificationTypeBox(e){this.expandedOnDesktop&&(e.expanded=!0);let n=e.expanded,t=e.type.trim(),o=e.optionChosen,r=e.status,s=e.documents,d=e.flowInfo;const c="Verified"===r,l="Failed"===r||"Expired"===r;return i("div",{class:`verification-box ${n?"expanded":""} ${l?"failed":""} ${c?"success":""}`},i("div",{class:"box box-header "+(n?"expanded":""),onClick:()=>{var i;return this.toggleVerificationType(e.type,null===(i=e.flowInfo)||void 0===i?void 0:i.type)}},i("div",{class:"box-icon"},i("div",null,c?this.verifiedIcon?i("img",{class:"CustomVerifiedIcon",src:this.verifiedIcon,alt:""}):i("svg",{width:"100",height:"100",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},i("circle",{cx:"50",cy:"50",r:"40",fill:"#388D79"}),i("circle",{cx:"50",cy:"50",r:"34",fill:"none",stroke:"#fff","stroke-width":"12px"}),i("polyline",{points:"30,50 45,63 70,35",fill:"none",stroke:"#fff","stroke-width":"8px"})):l?this.failedIcon?i("img",{class:"CustomFailedIcon",src:this.failedIcon,alt:""}):i("svg",{width:"100",height:"100",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},i("circle",{cx:"50",cy:"50",r:"40",fill:"red"}),i("line",{x1:"30",y1:"30",x2:"70",y2:"70",stroke:"#fff","stroke-width":"10px"}),i("line",{x1:"30",y1:"70",x2:"70",y2:"30",stroke:"#fff","stroke-width":"10px"})):this.defaultIcon?i("img",{class:"CustomDefaultIcon",src:this.defaultIcon,alt:""}):i("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M4 4V20C4 21.1046 4.89543 22 6 22L18 22C19.1046 22 20 21.1046 20 20V8.34162C20 7.8034 19.7831 7.28789 19.3982 6.91161L14.9579 2.56999C14.5842 2.20459 14.0824 2 13.5597 2L6 2C4.89543 2 4 2.89543 4 4Z",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),i("path",{d:"M9 13H15",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),i("path",{d:"M9 17H12",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),i("path",{d:"M14 2V6C14 7.10457 14.8954 8 16 8H20",stroke:"#000000","stroke-width":"2","stroke-linejoin":"round"})))),i("div",{class:"box-title"},a(t,this.language)),i("div",{class:"chevron-icon"},i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},i("path",{d:n?"M6 15l6-6 6 6":"M6 9l6 6 6-6"})))),n?this.renderExpandedContent(e,o,r,s,d,c,l):i("div",{class:"box box-content"},i("div",{id:"__avs-wrapper"})))}renderDocumentsActions(e,n,t){return i("div",null,this.isStatusUploaded(e)?i("div",{class:"upload-status"},a("uploaded",this.language)):(null==e?void 0:e.statusUploaded)?i("div",{class:"upload-status"},null==e?void 0:e.statusUploaded):i("div",{class:"documents-action"},i("div",{class:"sample-file"},"FileDownload"===(null==e?void 0:e.sampleType)?i("button",{class:"download-button",onClick:()=>this.downloadPDF(null==e?void 0:e.sampleUrl)},i("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M12 0C5.372 0 0 5.372 0 12C0 18.628 5.372 24 12 24C18.628 24 24 18.628 24 12C24 5.372 18.628 0 12 0ZM12 22C6.485 22 2 17.515 2 12C2 6.485 6.485 2 12 2C17.515 2 22 6.485 22 12C22 17.515 17.515 22 12 22Z",fill:"var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))"}),i("path",{d:"M17 11H14V6H10V11H7L12 16L17 11ZM7 17V19H17V17H7Z",fill:"var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))"})),i("span",null,a("download",this.language))):null),i("div",{class:"upload-button"},n?i("label",null,i("input",{type:"file",accept:"*",onChange:e=>this.handleFileSelection(e.target.files,this.selectedOption,t.type),style:{display:"none"}}),i("svg",{width:"100",height:"100",xmlns:"http://www.w3.org/2000/svg"},i("circle",{cx:"50",cy:"50",r:"40",fill:"var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))"}),i("line",{x1:"30",y1:"50",x2:"70",y2:"50",stroke:"white","stroke-width":"6"}),i("line",{x1:"50",y1:"30",x2:"50",y2:"70",stroke:"white","stroke-width":"6"}))):null)))}renderExpandedContent(e,t,o,r,s,d,c){return"Widget"===(null==s?void 0:s.type)||"Redirect"===(null==s?void 0:s.type)&&"Manual"!==e.vendorName&&"Verified"!==o?i("div",null,i("hr",{style:{margin:"5px"}}),i("iframe",{src:s.url,frameborder:"0",height:"400px",width:"100%",allowfullScreen:!0,allow:"camera *;microphone *"})):i("div",{class:"box box-content"},i(n,null,d?i("div",{class:"verification-status"},a("verificationComplete",this.language)):c?i("div",{class:"verification-status"},a("Failed"===o?"verificationFailed":"verificationExpired",this.language)):r.length>0?i("div",{class:"documents-dropdown"},i("select",{class:"nice-select",onChange:i=>this.handleOptionChange(i,e.type)},i("option",{value:"",selected:!0,disabled:!0,hidden:!0},a("chooseDocument",this.language)),r.map((e=>i("option",{selected:t==e.code,value:e.code},a(e.type,this.language))))),this.renderDocumentsActions(r.find((e=>e.code===t)),t,e)):null))}render(){return this.isLoading?i("div",null,i("p",null,a("loading",this.language))):i("div",{class:"ModalContainer",ref:e=>this.stylingContainer=e},i("div",{class:"player-kyc-verification-widget"},this.isMobile?i("div",{class:"MenuReturnButton",onClick:this.handleToggleScreen},i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},i("defs",null),i("g",{transform:"translate(-20 -158)"},i("g",{transform:"translate(20 158)"},i("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)"})))),i("h2",null,a("kycTitle",this.language))):i("h2",null,a("kycTitle",this.language)),0===this.verificationType.length?i("div",{class:"no-verification-description",style:{padding:"24px",fontSize:"18px"}},a("noVerificationRequired",this.language)):i(n,null,i("div",{class:"widget-description"},a("kycDescription",this.language)),i("div",{class:"verification-types"},this.verificationType.map((e=>e?this.renderVerificationTypeBox(e):null))))))}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};d.style=':host {\n font-family: inherit;\n}\n\nbutton, select {\n font-family: inherit;\n}\n\n.ModalContainer {\n container-type: inline-size;\n}\n\n.player-kyc-verification-widget {\n padding: 20px;\n align-items: center;\n}\n.player-kyc-verification-widget h2 {\n margin: 15px;\n}\n.player-kyc-verification-widget .widget-description {\n margin: 24px 0px;\n}\n.player-kyc-verification-widget .verification-types {\n width: 100%;\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 34px;\n}\n.player-kyc-verification-widget .verification-types .verification-box {\n transition: height 0.3s, border-color 0.3s;\n border: solid 1px var(--emw--color-gray-100, #E6E6E6);\n border-radius: 2px;\n display: flex;\n flex-direction: column;\n padding: 0px 14px;\n border-width: 2px 2px 8px 2px;\n align-self: start;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box {\n flex-shrink: 0;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header {\n display: flex;\n padding: 14px 0px;\n justify-content: space-between;\n cursor: pointer;\n align-items: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon {\n flex-grow: 1;\n display: flex;\n justify-content: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-icon svg {\n height: 24px;\n width: 24px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .box-title {\n flex-grow: 1;\n font-size: 18px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon {\n flex-grow: 10;\n width: 14px;\n height: 14px;\n display: flex;\n justify-content: flex-end;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-header .chevron-icon svg {\n width: 20px;\n height: 22px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content {\n flex-grow: 1;\n border-top: 0.4px solid var(--emw--color-gray-100, #E6E6E6);\n padding: 10px 0px;\n flex-grow: 1;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .upload-status {\n text-align: center;\n padding: 20px;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown {\n display: flex;\n flex-direction: column;\n width: 100%;\n align-items: center;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown svg {\n margin: 16px;\n cursor: pointer;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .nice-select {\n cursor: pointer;\n width: 100%;\n height: 30px;\n padding: 4px 14px;\n font-size: 14px;\n border: 1px solid var(--emw--color-gray-150, #828282);\n border-radius: 2px;\n background-color: var(--emw--color-white, #FFFFFF);\n color: #333;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n padding-right: 30px;\n background-repeat: no-repeat;\n background-position: right 10px center;\n background-image: url(\'data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%23333" d="M10 18.4l-6.5-6.5h13z"/><path fill="%23333" d="M10 1.6l6.5 6.5H3.5z"/></svg>\');\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button {\n font-family: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--emw--color-white, #FFFFFF);\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));\n border: none;\n font-size: 16px;\n padding: 10px 0px 0px 0px;\n cursor: pointer;\n}\n.player-kyc-verification-widget .verification-types .verification-box .box-content .documents-dropdown .sample-file .download-button svg {\n margin-right: 10px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded {\n border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));\n min-height: 120px;\n}\n.player-kyc-verification-widget .verification-types .verification-box.failed {\n border-color: var(--emw--color-error, var(--emw--color-red, #FD2839));\n}\n.player-kyc-verification-widget .verification-types .verification-box.success {\n border-color: var(--emw--color-valid, var(--emw--color-green, #48952a));\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content {\n display: flex;\n justify-content: center;\n flex-direction: column;\n}\n.player-kyc-verification-widget .verification-types .verification-box.expanded .box-content .verification-status {\n margin: 12px 0px 16px;\n font-size: 18px;\n text-align: center;\n color: var(--emw--color-gray-150, #828282);\n}\n\n.MenuReturnButton {\n display: flex;\n align-items: center;\n}\n\n@container (min-width: 700px) {\n .player-kyc-verification-widget {\n padding: 100px 60px;\n }\n}\n@container (max-width: 700px) {\n .player-kyc-verification-widget h2 {\n margin: 15px;\n text-align: center;\n }\n .player-kyc-verification-widget .verification-types {\n grid-template-columns: 1fr;\n grid-gap: 16px;\n }\n}\n@container (max-width: 475px) {\n .player-kyc-verification-widget .verification-types {\n display: block;\n }\n .player-kyc-verification-widget .verification-types .verification-box {\n margin-bottom: 20px;\n }\n}\n@container (max-width: 1240px) and (min-width: 701px) {\n .player-kyc-verification-widget .verification-types {\n grid-template-columns: repeat(2, 1fr);\n }\n}';export{d as player_kyc_verification}
@@ -1 +1 @@
1
- import{p as e,b as n}from"./p-78759d45.js";export{s as setNonce}from"./p-78759d45.js";import{g as i}from"./p-e1255160.js";(()=>{const n=import.meta.url,i={};return""!==n&&(i.resourcesUrl=new URL(".",n).href),e(i)})().then((async e=>(await i(),n([["p-b3fd2bad",[[1,"player-kyc-verification",{userId:[1,"user-id"],session:[1],language:[1],endpoint:[1],translationUrl:[1,"translation-url"],clientStyling:[1,"client-styling"],verifiedIcon:[1,"verified-icon"],failedIcon:[1,"failed-icon"],defaultIcon:[1,"default-icon"],clientStylingUrl:[1,"client-styling-url"],verificationType:[32],isLoading:[32],stylingAppends:[32],selectedFile:[32],uploadingStatus:[32],uploadSizeExceeded:[32],selectedOption:[32],expandedOnDesktop:[32]},null,{translationUrl:["handleNewTranslations"]}]]]],e))));
1
+ import{p as e,b as n}from"./p-25ea8e6b.js";export{s as setNonce}from"./p-25ea8e6b.js";import{g as i}from"./p-e1255160.js";(()=>{const n=import.meta.url,i={};return""!==n&&(i.resourcesUrl=new URL(".",n).href),e(i)})().then((async e=>(await i(),n([["p-6ce46f0a",[[1,"player-kyc-verification",{userId:[1,"user-id"],session:[1],language:[1],endpoint:[1],translationUrl:[1,"translation-url"],clientStyling:[1,"client-styling"],verifiedIcon:[1,"verified-icon"],failedIcon:[1,"failed-icon"],defaultIcon:[1,"default-icon"],clientStylingUrl:[1,"client-styling-url"],mbSource:[1,"mb-source"],verificationType:[32],isLoading:[32],selectedFile:[32],uploadingStatus:[32],uploadSizeExceeded:[32],selectedOption:[32],expandedOnDesktop:[32]},null,{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}]]]],e))));
@@ -39,25 +39,26 @@ export declare class PlayerKycVerificationWidget {
39
39
  * Client custom styling via url content
40
40
  */
41
41
  clientStylingUrl: string;
42
+ mbSource: string;
42
43
  verificationType: any;
43
44
  isLoading: boolean;
44
- private stylingAppends;
45
45
  selectedFile: FileList | null;
46
46
  uploadingStatus: string;
47
47
  uploadSizeExceeded: boolean;
48
48
  selectedOption: string;
49
49
  expandedOnDesktop: boolean;
50
50
  private stylingContainer;
51
+ private stylingSubscription;
51
52
  private scriptInjected;
52
53
  MAX_UPLOAD_SIZE: number;
53
54
  private userAgent;
54
55
  isMobile: boolean;
55
56
  handleNewTranslations(): void;
56
57
  componentWillLoad(): Promise<void>;
57
- componentDidRender(): void;
58
- setClientStyling: () => void;
59
- setClientStylingURL: () => void;
58
+ handleClientStylingChange(newValue: any, oldValue: any): void;
59
+ handleClientStylingUrlChange(newValue: any, oldValue: any): void;
60
60
  componentDidLoad(): Promise<void>;
61
+ disconnectedCallback(): void;
61
62
  handleOptionChange(event: Event, verificationTypeId: string): void;
62
63
  handleDocumentsStatus(verificationTypeId: string, documentsStatus: string, documentCode: string): void;
63
64
  downloadPDF(pdfUrl: string): void;
@@ -31,6 +31,7 @@ export namespace Components {
31
31
  * The language
32
32
  */
33
33
  "language": string;
34
+ "mbSource": string;
34
35
  /**
35
36
  * The session
36
37
  */
@@ -86,6 +87,7 @@ declare namespace LocalJSX {
86
87
  * The language
87
88
  */
88
89
  "language"?: string;
90
+ "mbSource"?: string;
89
91
  /**
90
92
  * The session
91
93
  */
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-kyc-verification",
3
- "version": "1.55.0",
3
+ "version": "1.56.2",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1,2 +0,0 @@
1
- var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),l=(t,e)=>e in t,r=(t,e)=>(0,console.error)(t,e),s=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={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),m=!1,d=[],y=[],w=(t,e)=>n=>{t.push(n),m||(m=!0,e&&4&f.o?b($):f.raf($))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){r(t)}t.length=0},$=()=>{v(d),v(y),(m=d.length>0)&&f.raf($)},b=t=>h().then(t),g=w(y,!0),S={},j=t=>"object"==(t=typeof t)||"function"===t;function O(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>C,ok:()=>E,unwrap:()=>x,unwrapErr:()=>P});var E=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function C(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>E(t))):E(n)}if(t.isErr)return k(t.value);throw"should never get here"}var M,x=t=>{if(t.isOk)return t.value;throw t.value},P=t=>{if(t.isErr)return t.value;throw t.value},A=(t,e,...n)=>{let o=null,l=!1,r=!1;const s=[],i=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?i(o):null!=o&&"boolean"!=typeof o&&((l="function"!=typeof t&&!j(o))&&(o+=""),l&&r?s[s.length-1].i+=o:s.push(l?D(null,o):o),r=l)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}if("function"==typeof t)return t(null===e?{}:e,s,H);const c=D(t,null);return c.u=e,s.length>0&&(c.h=s),c},D=(t,e)=>({o:0,p:t,i:e,m:null,h:null,u:null}),R={},H={forEach:(t,e)=>t.map(L).forEach(e),map:(t,e)=>t.map(L).map(e).map(T)},L=t=>({vattrs:t.u,vchildren:t.h,vkey:t.v,vname:t.$,vtag:t.p,vtext:t.i}),T=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),A(t.vtag,e,...t.vchildren||[])}const e=D(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.v=t.vkey,e.$=t.vname,e},F=new WeakMap,N=t=>"sc-"+t.S,U=(t,e,n,o,r,s)=>{if(n!==o){let i=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=q(n),r=q(o);e.remove(...l.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const l=j(o);if((i||l&&null!==o)&&!r)try{if(t.tagName.includes("-"))t[e]=o;else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&s||r)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(G);e=e.replace(V,""),n&&f.rel(t,e,n,l),o&&f.ael(t,e,o,l)}}},W=/\s/,q=t=>t?t.split(W):[],G="Capture",V=RegExp(G+"$"),_=(t,e,n)=>{const o=11===e.m.nodeType&&e.m.host?e.m.host:e.m,l=t&&t.u||S,r=e.u||S;for(const t of z(Object.keys(l)))t in r||U(o,t,l[t],void 0,n,e.o);for(const t of z(Object.keys(r)))U(o,t,l[t],r[t],n,e.o)};function z(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var B=!1,I=(t,e,n)=>{const o=e.h[n];let l,r,s=0;if(null!==o.i)l=o.m=a.createTextNode(o.i);else{if(B||(B="svg"===o.p),l=o.m=a.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.p),B&&"foreignObject"===o.p&&(B=!1),_(null,o,B),l.getRootNode().querySelector("body"),o.h)for(s=0;s<o.h.length;++s)r=I(t,o,s),r&&l.appendChild(r);"svg"===o.p?B=!1:"foreignObject"===l.tagName&&(B=!0)}return l["s-hn"]=M,l},J=(t,e,n,o,l,r)=>{let s,i=t;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);l<=r;++l)o[l]&&(s=I(null,n,l),s&&(o[l].m=s,Z(i,s,e)))},K=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.m;Y(e),t&&t.remove()}}},Q=(t,e)=>t.p===e.p,X=(t,e,n=!1)=>{const o=e.m=t.m,l=t.h,r=e.h,s=e.p,i=e.i;null===i?(_(t,e,B="svg"===s||"foreignObject"!==s&&B),null!==l&&null!==r?((t,e,n,o,l=!1)=>{let r,s=0,i=0,c=e.length-1,u=e[0],a=e[c],f=o.length-1,h=o[0],p=o[f];for(;s<=c&&i<=f;)null==u?u=e[++s]:null==a?a=e[--c]:null==h?h=o[++i]:null==p?p=o[--f]:Q(u,h)?(X(u,h,l),u=e[++s],h=o[++i]):Q(a,p)?(X(a,p,l),a=e[--c],p=o[--f]):Q(u,p)?(X(u,p,l),Z(t,u.m,a.m.nextSibling),u=e[++s],p=o[--f]):Q(a,h)?(X(a,h,l),Z(t,a.m,u.m),a=e[--c],h=o[++i]):(r=I(e&&e[i],n,i),h=o[++i],r&&Z(u.m.parentNode,r,u.m));s>c?J(t,null==o[f+1]?null:o[f+1].m,n,o,i,f):i>f&&K(e,s,c)})(o,l,e,r,n):null!==r?(null!==t.i&&(o.textContent=""),J(o,null,e,r,0,r.length-1)):!n&&null!==l&&K(l,0,l.length-1),B&&"svg"===s&&(B=!1)):t.i!==i&&(o.data=i)},Y=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(Y)},Z=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),tt=(t,e)=>{e&&!t.j&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.j=e)))},et=(t,e)=>{if(t.o|=16,!(4&t.o))return tt(t,t.O),g((()=>nt(t,e)));t.o|=512},nt=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$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 o;return e&&(o=ut(n,"componentWillLoad")),ot(o,(()=>rt(t,n,e)))},ot=(t,e)=>lt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),lt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,rt=async(t,e,n)=>{var o;const l=t.$hostElement$,r=l["s-rc"];n&&(t=>{const e=t.k,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=N(e),l=i.get(o);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let r,s=F.get(t=t.head||t);if(s||F.set(t,s=new Set),!s.has(o)){{r=a.createElement("style"),r.innerHTML=l;const o=null!=(n=f.C)?n:O(a);if(null!=o&&r.setAttribute("nonce",o),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(r,n)}else if("host"in t)if(p){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(r)}else t.append(r);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(r,null)}4&e.o&&(r.innerHTML+=c),s&&s.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);st(t,e,l,n),r&&(r.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>it(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},st=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.k,r=t.M||D(null,null),s=(t=>t&&t.p===R)(e)?e:A(null,null,e);if(M=o.tagName,n&&s.u)for(const t of Object.keys(s.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.u[t]=o[t]);s.p=null,s.o|=4,t.M=s,s.m=r.m=o.shadowRoot||o,X(r,s,n)})(t,e,o)}catch(e){r(e,t.$hostElement$)}return null},it=t=>{const e=t.$hostElement$,n=t.t,o=t.O;ut(n,"componentDidRender"),64&t.o||(t.o|=64,at(e),ut(n,"componentDidLoad"),t.P(e),o||ct()),t.j&&(t.j(),t.j=void 0),512&t.o&&b((()=>et(t,!1))),t.o&=-517},ct=()=>{at(a.documentElement),b((()=>(t=>{const e=f.ce("appload",{detail:{namespace:"player-kyc-verification"}});return t.dispatchEvent(e),e})(u)))},ut=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){r(t)}},at=t=>t.classList.add("hydrated"),ft=(t,e,o)=>{var l,s;const i=t.prototype;if(e.A||e.D||t.watchers){t.watchers&&!e.D&&(e.D=t.watchers);const c=Object.entries(null!=(l=e.A)?l:{});if(c.map((([t,[l]])=>{(31&l||2&o&&32&l)&&Object.defineProperty(i,t,{get(){return((t,e)=>n(this).R.get(e))(0,t)},set(o){((t,e,o,l)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${l.S}" 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=s.$hostElement$,c=s.R.get(e),u=s.o,a=s.t;if(o=((t,e)=>null==t||j(t)?t:1&e?t+"":t)(o,l.A[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(s.R.set(e,o),a)){if(l.D&&128&u){const t=l.D[e];t&&t.map((t=>{try{a[t](o,c,e)}catch(t){r(t,i)}}))}2==(18&u)&&et(s,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,r){f.jmp((()=>{var s;const c=o.get(t);if(this.hasOwnProperty(c))r=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==r)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&r!==l){const n=o.t,i=null==(s=e.D)?void 0:s[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,r,l,t)}))}return}}this[c]=(null!==r||"boolean"!=typeof this[c])&&r}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.D)?s:{}),...c.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},ht=(t,o={})=>{var l;const h=[],m=o.exclude||[],d=u.customElements,y=a.head,w=y.querySelector("meta[charset]"),v=a.createElement("style"),$=[];let b,g=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],S:o[1],A:o[2],H:o[3]};4&c.o&&(S=!0),c.A=o[2],c.D=null!=(l=o[4])?l:{};const u=c.S,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,k:n,R:new Map};o.L=new Promise((t=>o.P=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(t=>{if(!(1&f.o)){const e=n(t),o=e.k,l=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.L)&&e.L.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){tt(e,e.O=n);break}}o.A&&Object.entries(o.A).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.T){const t=(t=>{const e=t.S.replace(/-/g,"_"),n=t.T;if(!n)return;const o=s.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(s.set(n,t),t[e])),r)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.S}#${e.F}" was not found`);o.isProxied||(n.D=o.watchers,ft(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){r(t)}e.o&=-9,e.o|=128,l()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=N(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.O,c=()=>et(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.o)){const t=n(this);(null==t?void 0:t.t)||(null==t?void 0:t.L)&&t.L.then((()=>{}))}})()))}componentOnReady(){return n(this).L}};c.T=t[0],m.includes(u)||d.get(u)||(h.push(u),d.define(u,ft(a,c,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(l=f.C)?l:O(a);null!=t&&v.setAttribute("nonce",t),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,$.length?$.map((t=>t.connectedCallback())):f.jmp((()=>b=setTimeout(ct,30)))},pt=(t,e)=>e,mt=t=>f.C=t;export{pt as F,ht as b,A as h,h as p,o as r,mt as s}