@everymatrix/casino-engagement-suite-modal-container 1.55.0 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.esm.js +1 -1
  2. package/dist/casino-engagement-suite-modal-container/p-4866ec93.entry.js +1 -0
  3. package/dist/casino-engagement-suite-modal-container/p-829cf9c9.js +2 -0
  4. package/dist/cjs/casino-engagement-suite-modal-container.cjs.js +2 -2
  5. package/dist/cjs/casino-engagement-suite-modal_2.cjs.entry.js +34 -22
  6. package/dist/cjs/{index-abe824ad.js → index-146a156e.js} +168 -67
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.js +29 -11
  10. package/dist/esm/casino-engagement-suite-modal-container.js +3 -3
  11. package/dist/esm/casino-engagement-suite-modal_2.entry.js +34 -22
  12. package/dist/esm/{index-6c6d5eed.js → index-114dbf36.js} +168 -67
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-engagement-suite-modal-container/p-9bc17463.js +0 -2
  18. package/dist/casino-engagement-suite-modal-container/p-deb88d81.entry.js +0 -1
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-6c6d5eed.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-114dbf36.js';
2
2
 
3
3
  const casinoEngagementSuiteModalCss = ":host{display:block;font-family:inherit}*{box-sizing:border-box;margin:0;padding:0}button{border:none;background:none;cursor:pointer;touch-action:manipulation}button:focus{outline:none}.EngagementSuiteIconButton{width:24px;height:24px}.EngagementSuiteIconButton.Close{background:center/100% url(https://static.everymatrix.com/gic/img/engagement-suite/close.svg) no-repeat}.ModalOverlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);justify-content:center;align-items:center;z-index:1}.ModalOverlay.Open{display:flex}.IconCloseContainer{width:100%;display:flex;justify-content:end}.ModalBodyWrapper{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden}.ModalBodyWrapper::-webkit-scrollbar{width:3px;background:none}.ModalBodyWrapper::-webkit-scrollbar-thumb{border-radius:var(--emw--border-radius-small, 4px);background-color:var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3))}.ModalContent{display:flex;flex-direction:column;align-items:center;font-family:var(--emw--font-family-secondary, \"Montserrat\", sans-serif);position:relative;color:var(--emw--color-typography, #FFFFFF);background-color:var(--emw--color-background, #1E1638);padding:24px;border-radius:var(--emw--border-radius-large, 8px);width:450px;max-width:100%;text-align:center;max-height:90dvh}.GradientBorder::before{content:\"\";position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:var(--emw--border-radius-large, 9px);background:linear-gradient(143.2deg, #FF9401 -0.41%, #FFD32D 45.61%, #FF9401 82.77%);z-index:-1}.ModalHeader h1{font-weight:var(--emw--font-weight-semibold, 600);font-size:var(--emw--font-size-large-plus, 24px);padding:0 16px;margin-bottom:16px}.ModalIcon{width:44px;height:44px;border-radius:50%;background-size:cover;margin:12px 0}.ModalBody{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 400);color:var(--emw--color-secondary, #BBB9C3);padding:0 16px}.ModalFooter{margin-top:40px;margin-bottom:28px;padding:0 16px;width:100%}@keyframes rotate{100%{transform:rotate(1turn)}}.ModalOverlay .ModalWinAnimation{display:none}.ModalOverlay.ShowAnimation .ModalWinAnimation{display:block;position:absolute;width:100%;height:100%;inset:0;background:center/550px url(https://static.everymatrix.com/gic/img/engagement-suite/light.svg) no-repeat, center/550px url(https://static.everymatrix.com/gic/img/engagement-suite/win.svg) no-repeat;animation:6s rotate linear infinite}.ModalOverlay.Mobile .EngagementSuiteIconButton{width:16px;height:16px}.ModalOverlay.Mobile .ModalBody{font-size:var(--emw--font-size-small, 14px)}.ModalOverlay.Mobile .ModalContent{width:318px;padding:12px}.ModalOverlay.Mobile .ModalHeader h1{font-size:var(--emw--font-size-large, 20px);padding:0 60px}.ModalOverlay.Mobile.ShowAnimation .ModalWinAnimation{background-size:400px}";
4
4
  const CasinoEngagementSuiteModalStyle0 = casinoEngagementSuiteModalCss;
@@ -7,6 +7,20 @@ const CasinoEngagementSuiteModal = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
9
  this.closeModal = createEvent(this, "closeModal", 7);
10
+ /**
11
+ * Client custom styling via string
12
+ */
13
+ this.clientStyling = '';
14
+ /**
15
+ * Client custom styling via url
16
+ */
17
+ this.clientStylingUrl = '';
18
+ this.device = 'Mobile';
19
+ /**
20
+ * Show win animation
21
+ */
22
+ this.showAnimation = false;
23
+ this.limitStylingAppends = false;
10
24
  this.handleCloseClick = () => {
11
25
  if (this.isLoading)
12
26
  return;
@@ -30,16 +44,6 @@ const CasinoEngagementSuiteModal = class {
30
44
  console.log('Error ', err);
31
45
  });
32
46
  };
33
- this.clientStyling = '';
34
- this.clientStylingUrl = '';
35
- this.isOpen = undefined;
36
- this.isLoading = undefined;
37
- this.header = undefined;
38
- this.contentIcon = undefined;
39
- this.modalType = undefined;
40
- this.device = 'Mobile';
41
- this.showAnimation = false;
42
- this.limitStylingAppends = false;
43
47
  }
44
48
  componentDidRender() {
45
49
  if (!this.limitStylingAppends && this.host) {
@@ -106,6 +110,25 @@ const CasinoEngagementSuiteModalContainer = class {
106
110
  constructor(hostRef) {
107
111
  registerInstance(this, hostRef);
108
112
  this.closeModal = createEvent(this, "closeModal", 7);
113
+ /**
114
+ * Client custom styling via string
115
+ */
116
+ this.clientStyling = '';
117
+ /**
118
+ * Client custom styling via url
119
+ */
120
+ this.clientStylingUrl = '';
121
+ /**
122
+ * Language of the widget
123
+ */
124
+ this.language = 'en';
125
+ this.device = 'Mobile';
126
+ this.limitStylingAppends = false;
127
+ this.openModals = [];
128
+ this.rewardMessage = '';
129
+ this.hasError = false;
130
+ this.confirmationData = null;
131
+ this.winAmount = { amount: 0, currency: '' };
109
132
  this.handleCloseClick = (e) => {
110
133
  const type = e.currentTarget.getAttribute('data-type');
111
134
  this.closeModal.emit(type);
@@ -137,17 +160,6 @@ const CasinoEngagementSuiteModalContainer = class {
137
160
  this.isModalOpen = (type) => {
138
161
  return Boolean(this.openModals.find(el => el === type));
139
162
  };
140
- this.clientStyling = '';
141
- this.clientStylingUrl = '';
142
- this.language = 'en';
143
- this.isJoiningToChallenge = undefined;
144
- this.device = 'Mobile';
145
- this.limitStylingAppends = false;
146
- this.openModals = [];
147
- this.rewardMessage = '';
148
- this.hasError = false;
149
- this.confirmationData = null;
150
- this.winAmount = { amount: 0, currency: '' };
151
163
  }
152
164
  openModalHandler(event) {
153
165
  const { modalType, rewardMessage, hasError, confirmationData, winAmount } = event.detail;
@@ -1,17 +1,21 @@
1
1
  const NAMESPACE = 'casino-engagement-suite-modal-container';
2
- const BUILD = /* casino-engagement-suite-modal-container */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* casino-engagement-suite-modal-container */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
+
13
+ // src/client/client-host-ref.ts
12
14
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
15
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
16
+ var registerInstance = (lazyInstance, hostRef) => {
17
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
+ };
15
19
  var registerHost = (hostElement, cmpMeta) => {
16
20
  const hostRef = {
17
21
  $flags$: 0,
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
28
  hostElement["s-p"] = [];
25
29
  hostElement["s-rc"] = [];
26
30
  }
27
- return hostRefs.set(hostElement, hostRef);
31
+ const ref = hostRefs.set(hostElement, hostRef);
32
+ return ref;
28
33
  };
29
34
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
35
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
61
66
  /* webpackExclude: /\.system\.entry\.js$/ */
62
67
  /* webpackMode: "lazy" */
63
68
  `./${bundleId}.entry.js${""}`
64
- ).then((importedModule) => {
65
- {
66
- cmpModules.set(bundleId, importedModule);
69
+ ).then(
70
+ (importedModule) => {
71
+ {
72
+ cmpModules.set(bundleId, importedModule);
73
+ }
74
+ return importedModule[exportName];
75
+ },
76
+ (e) => {
77
+ consoleError(e, hostRef.$hostElement$);
67
78
  }
68
- return importedModule[exportName];
69
- }, consoleError);
79
+ );
70
80
  };
71
81
 
72
82
  // src/client/client-style.ts
73
83
  var styles = /* @__PURE__ */ new Map();
84
+ var HYDRATED_STYLE_ID = "sty-id";
74
85
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
75
86
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
76
87
  var win = typeof window !== "undefined" ? window : {};
@@ -144,12 +155,6 @@ var flush = () => {
144
155
  };
145
156
  var nextTick = (cb) => promiseResolve().then(cb);
146
157
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
147
-
148
- // src/utils/constants.ts
149
- var EMPTY_OBJ = {};
150
-
151
- // src/utils/helpers.ts
152
- var isDef = (v) => v != null;
153
158
  var isComplexType = (o) => {
154
159
  o = typeof o;
155
160
  return o === "object" || o === "function";
@@ -350,7 +355,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
350
355
  }
351
356
  if (!appliedStyles.has(scopeId2)) {
352
357
  {
353
- styleElm = doc.createElement("style");
358
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
354
359
  styleElm.innerHTML = style;
355
360
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
356
361
  if (nonce != null) {
@@ -360,7 +365,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
360
365
  if (styleContainerNode.nodeName === "HEAD") {
361
366
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
362
367
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
363
- styleContainerNode.insertBefore(styleElm, referenceNode2);
368
+ styleContainerNode.insertBefore(
369
+ styleElm,
370
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
371
+ );
364
372
  } else if ("host" in styleContainerNode) {
365
373
  if (supportsConstructableStylesheets) {
366
374
  const stylesheet = new CSSStyleSheet();
@@ -378,7 +386,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
378
386
  styleContainerNode.append(styleElm);
379
387
  }
380
388
  }
381
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
389
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
382
390
  styleContainerNode.insertBefore(styleElm, null);
383
391
  }
384
392
  }
@@ -403,23 +411,25 @@ var attachStyles = (hostRef) => {
403
411
  const scopeId2 = addStyle(
404
412
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
405
413
  cmpMeta);
406
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
414
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
407
415
  elm["s-sc"] = scopeId2;
408
416
  elm.classList.add(scopeId2 + "-h");
409
417
  }
410
418
  endAttachStyles();
411
419
  };
412
420
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
413
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
421
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
414
422
  if (oldValue !== newValue) {
415
423
  let isProp = isMemberInElement(elm, memberName);
416
424
  let ln = memberName.toLowerCase();
417
425
  if (memberName === "class") {
418
426
  const classList = elm.classList;
419
427
  const oldClasses = parseClassList(oldValue);
420
- const newClasses = parseClassList(newValue);
421
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
422
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
428
+ let newClasses = parseClassList(newValue);
429
+ {
430
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
431
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
432
+ }
423
433
  } else if (memberName === "style") {
424
434
  {
425
435
  for (const prop in oldValue) {
@@ -474,7 +484,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
474
484
  elm.setAttribute(memberName, n);
475
485
  }
476
486
  }
477
- } else {
487
+ } else if (elm[memberName] !== newValue) {
478
488
  elm[memberName] = newValue;
479
489
  }
480
490
  } catch (e) {
@@ -496,24 +506,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
496
506
  }
497
507
  };
498
508
  var parseClassListRegex = /\s/;
499
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
509
+ var parseClassList = (value) => {
510
+ if (typeof value === "object" && value && "baseVal" in value) {
511
+ value = value.baseVal;
512
+ }
513
+ if (!value || typeof value !== "string") {
514
+ return [];
515
+ }
516
+ return value.split(parseClassListRegex);
517
+ };
500
518
  var CAPTURE_EVENT_SUFFIX = "Capture";
501
519
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
502
520
 
503
521
  // src/runtime/vdom/update-element.ts
504
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
522
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
505
523
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
506
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
507
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
524
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
525
+ const newVnodeAttrs = newVnode.$attrs$ || {};
508
526
  {
509
527
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
510
528
  if (!(memberName in newVnodeAttrs)) {
511
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
529
+ setAccessor(
530
+ elm,
531
+ memberName,
532
+ oldVnodeAttrs[memberName],
533
+ void 0,
534
+ isSvgMode2,
535
+ newVnode.$flags$);
512
536
  }
513
537
  }
514
538
  }
515
539
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
516
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
540
+ setAccessor(
541
+ elm,
542
+ memberName,
543
+ oldVnodeAttrs[memberName],
544
+ newVnodeAttrs[memberName],
545
+ isSvgMode2,
546
+ newVnode.$flags$);
517
547
  }
518
548
  };
519
549
  function sortedAttrNames(attrNames) {
@@ -525,13 +555,10 @@ function sortedAttrNames(attrNames) {
525
555
  attrNames
526
556
  );
527
557
  }
528
-
529
- // src/runtime/vdom/vdom-render.ts
530
- var scopeId;
531
558
  var hostTagName;
532
559
  var useNativeShadowDom = false;
533
560
  var isSvgMode = false;
534
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
561
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
535
562
  const newVNode2 = newParentVNode.$children$[childIndex];
536
563
  let i2 = 0;
537
564
  let elm;
@@ -545,11 +572,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
545
572
  {
546
573
  updateElement(null, newVNode2, isSvgMode);
547
574
  }
548
- const rootNode = elm.getRootNode();
549
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
550
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
551
- elm.classList.add(elm["s-si"] = scopeId);
552
- }
553
575
  if (newVNode2.$children$) {
554
576
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
555
577
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -678,6 +700,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
678
700
  if (!isInitialRender) {
679
701
  return leftVNode.$key$ === rightVNode.$key$;
680
702
  }
703
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
704
+ leftVNode.$key$ = rightVNode.$key$;
705
+ }
681
706
  return true;
682
707
  }
683
708
  return false;
@@ -712,8 +737,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
712
737
  }
713
738
  };
714
739
  var insertBefore = (parent, newNode, reference) => {
715
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
716
- return inserted;
740
+ {
741
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
742
+ }
717
743
  };
718
744
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
719
745
  const hostElm = hostRef.$hostElement$;
@@ -738,17 +764,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
738
764
  rootVnode.$flags$ |= 4 /* isHost */;
739
765
  hostRef.$vnode$ = rootVnode;
740
766
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
741
- {
742
- scopeId = hostElm["s-sc"];
743
- }
744
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
767
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
745
768
  patch(oldVNode, rootVnode, isInitialLoad);
746
769
  };
747
770
 
748
771
  // src/runtime/update-component.ts
749
772
  var attachToAncestor = (hostRef, ancestorComponent) => {
750
773
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
751
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
774
+ const index = ancestorComponent["s-p"].push(
775
+ new Promise(
776
+ (r) => hostRef.$onRenderResolve$ = () => {
777
+ ancestorComponent["s-p"].splice(index - 1, 1);
778
+ r();
779
+ }
780
+ )
781
+ );
752
782
  }
753
783
  };
754
784
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -777,7 +807,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
777
807
  {
778
808
  hostRef.$flags$ |= 256 /* isListenReady */;
779
809
  if (hostRef.$queuedListeners$) {
780
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
810
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
781
811
  hostRef.$queuedListeners$ = void 0;
782
812
  }
783
813
  }
@@ -848,7 +878,7 @@ var postUpdateComponent = (hostRef) => {
848
878
  const instance = hostRef.$lazyInstance$ ;
849
879
  const ancestorComponent = hostRef.$ancestorComponent$;
850
880
  {
851
- safeCall(instance, "componentDidRender");
881
+ safeCall(instance, "componentDidRender", void 0, elm);
852
882
  }
853
883
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
854
884
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -877,17 +907,14 @@ var postUpdateComponent = (hostRef) => {
877
907
  }
878
908
  };
879
909
  var appDidLoad = (who) => {
880
- {
881
- addHydratedFlag(doc.documentElement);
882
- }
883
910
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
884
911
  };
885
- var safeCall = (instance, method, arg) => {
912
+ var safeCall = (instance, method, arg, elm) => {
886
913
  if (instance && instance[method]) {
887
914
  try {
888
915
  return instance[method](arg);
889
916
  } catch (e) {
890
- consoleError(e);
917
+ consoleError(e, elm);
891
918
  }
892
919
  }
893
920
  return void 0;
@@ -930,15 +957,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
930
957
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
931
958
  members.map(([memberName, [memberFlags]]) => {
932
959
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
960
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
961
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
962
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
963
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
964
+ Object.defineProperty(prototype, memberName, {
965
+ get() {
966
+ {
967
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
968
+ return getValue(this, memberName);
969
+ }
970
+ const ref = getHostRef(this);
971
+ const instance = ref ? ref.$lazyInstance$ : prototype;
972
+ if (!instance) return;
973
+ return instance[memberName];
974
+ }
975
+ },
976
+ configurable: true,
977
+ enumerable: true
978
+ });
979
+ }
933
980
  Object.defineProperty(prototype, memberName, {
934
- get() {
935
- return getValue(this, memberName);
936
- },
937
981
  set(newValue) {
938
- setValue(this, memberName, newValue, cmpMeta);
939
- },
940
- configurable: true,
941
- enumerable: true
982
+ const ref = getHostRef(this);
983
+ if (origSetter) {
984
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
985
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
986
+ newValue = ref.$instanceValues$.get(memberName);
987
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
988
+ ref.$instanceValues$.set(memberName, currentValue);
989
+ }
990
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
991
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
992
+ setValue(this, memberName, newValue, cmpMeta);
993
+ return;
994
+ }
995
+ {
996
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
997
+ setValue(this, memberName, newValue, cmpMeta);
998
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
999
+ ref.$onReadyPromise$.then(() => {
1000
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1001
+ ref.$lazyInstance$[memberName] = newValue;
1002
+ }
1003
+ });
1004
+ }
1005
+ return;
1006
+ }
1007
+ const setterSetVal = () => {
1008
+ const currentValue = ref.$lazyInstance$[memberName];
1009
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1010
+ ref.$instanceValues$.set(memberName, currentValue);
1011
+ }
1012
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1013
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1014
+ };
1015
+ if (ref.$lazyInstance$) {
1016
+ setterSetVal();
1017
+ } else {
1018
+ ref.$onReadyPromise$.then(() => setterSetVal());
1019
+ }
1020
+ }
1021
+ }
942
1022
  });
943
1023
  }
944
1024
  });
@@ -948,7 +1028,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
948
1028
  plt.jmp(() => {
949
1029
  var _a2;
950
1030
  const propName = attrNameToPropName.get(attrName);
951
- if (this.hasOwnProperty(propName)) {
1031
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
952
1032
  newValue = this[propName];
953
1033
  delete this[propName];
954
1034
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -968,7 +1048,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
968
1048
  }
969
1049
  return;
970
1050
  }
971
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1051
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1052
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1053
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1054
+ this[propName] = newValue;
1055
+ }
972
1056
  });
973
1057
  };
974
1058
  Cstr.observedAttributes = Array.from(
@@ -997,7 +1081,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
997
1081
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
998
1082
  const bundleId = cmpMeta.$lazyBundleId$;
999
1083
  if (bundleId) {
1000
- const CstrImport = loadModule(cmpMeta);
1084
+ const CstrImport = loadModule(cmpMeta, hostRef);
1001
1085
  if (CstrImport && "then" in CstrImport) {
1002
1086
  const endLoad = uniqueTime();
1003
1087
  Cstr = await CstrImport;
@@ -1019,7 +1103,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1019
1103
  try {
1020
1104
  new Cstr(hostRef);
1021
1105
  } catch (e) {
1022
- consoleError(e);
1106
+ consoleError(e, elm);
1023
1107
  }
1024
1108
  {
1025
1109
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1051,7 +1135,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1051
1135
  schedule();
1052
1136
  }
1053
1137
  };
1054
- var fireConnectedCallback = (instance) => {
1138
+ var fireConnectedCallback = (instance, elm) => {
1055
1139
  };
1056
1140
 
1057
1141
  // src/runtime/connected-callback.ts
@@ -1092,7 +1176,7 @@ var connectedCallback = (elm) => {
1092
1176
  endConnected();
1093
1177
  }
1094
1178
  };
1095
- var disconnectInstance = (instance) => {
1179
+ var disconnectInstance = (instance, elm) => {
1096
1180
  };
1097
1181
  var disconnectedCallback = async (elm) => {
1098
1182
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1107,6 +1191,12 @@ var disconnectedCallback = async (elm) => {
1107
1191
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1108
1192
  }
1109
1193
  }
1194
+ if (rootAppliedStyles.has(elm)) {
1195
+ rootAppliedStyles.delete(elm);
1196
+ }
1197
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1198
+ rootAppliedStyles.delete(elm.shadowRoot);
1199
+ }
1110
1200
  };
1111
1201
 
1112
1202
  // src/runtime/bootstrap-lazy.ts
@@ -1187,6 +1277,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1187
1277
  }
1188
1278
  disconnectedCallback() {
1189
1279
  plt.jmp(() => disconnectedCallback(this));
1280
+ plt.raf(() => {
1281
+ var _a3;
1282
+ const hostRef = getHostRef(this);
1283
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1284
+ if (i2 > -1) {
1285
+ deferredConnectedCallbacks.splice(i2, 1);
1286
+ }
1287
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1288
+ delete hostRef.$vnode$.$elm$;
1289
+ }
1290
+ });
1190
1291
  }
1191
1292
  componentOnReady() {
1192
1293
  return getHostRef(this).$onReadyPromise$;
@@ -1250,7 +1351,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1250
1351
  }
1251
1352
  }
1252
1353
  } catch (e) {
1253
- consoleError(e);
1354
+ consoleError(e, hostRef.$hostElement$);
1254
1355
  }
1255
1356
  };
1256
1357
  var getHostListenerTarget = (elm, flags) => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-6c6d5eed.js';
2
- export { s as setNonce } from './index-6c6d5eed.js';
1
+ import { b as bootstrapLazy } from './index-114dbf36.js';
2
+ export { s as setNonce } from './index-114dbf36.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-engagement-suite-modal-container",
3
- "version": "1.55.0",
3
+ "version": "1.56.0",
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 e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],$=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?w(b):f.raf(b))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{v(m),v(y),(p=m.length>0)&&f.raf(b)},w=e=>h().then(e),S=$(y,!0),g={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>C,ok:()=>E,unwrap:()=>x,unwrapErr:()=>P});var E=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return O(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?R(null,l):l),i=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=R(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=o,u},R=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),D={},H=e=>n(e).$hostElement$,T=(e,t,n)=>{const l=H(e);return{emit:e=>N(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},N=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},U=new WeakMap,F=e=>"sc-"+e.v,L=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=q(n),s=q(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(G);t=t.replace(V,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},W=/\s/,q=e=>e?e.split(W):[],G="Capture",V=RegExp(G+"$"),_=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||g,s=t.u||g;for(const e of z(Object.keys(o)))e in s||L(l,e,o[e],void 0,n,t.l);for(const e of z(Object.keys(s)))L(l,e,o[e],s[e],n,t.l)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var B=!1,I=!1,J=(e,t,n)=>{const l=t.h[n];let o,s,i=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.m),_(null,l,I),o.getRootNode().querySelector("body"),l.h)for(i=0;i<l.h.length;++i)s=J(e,l,i),s&&o.appendChild(s);return o["s-hn"]=M,o},K=(e,t,n,l,o,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===M&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=J(null,n,o),i&&(l[o].$=i,Z(r,i,t)))},Q=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;e&&e.remove()}}},X=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),Y=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,i=t.i;null===i?(("slot"!==t.m||B)&&_(e,t,I),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],y=l[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(X(h,m,o))Y(h,m,o),h=t[++r],m=l[++c];else if(X(d,y,o))Y(d,y,o),d=t[--f],y=l[--p];else if(X(h,y,o))Y(h,y,o),Z(e,h.$,d.$.nextSibling),h=t[++r],y=l[--p];else if(X(d,m,o))Y(d,m,o),Z(e,d.$,h.$),d=t[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=J(t&&t[c],n,u):(Y(i,m,o),t[u]=void 0,s=i.$),m=l[++c]):(s=J(t&&t[c],n,c),m=l[++c]),s&&Z(h.$.parentNode,s,h.$)}r>f?K(e,null==l[p+1]?null:l[p+1].$,n,l,c,p):c>p&&Q(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),K(l,null,t,s,0,s.length-1)):!n&&null!==o&&Q(o,0,o.length-1)):e.i!==i&&(l.data=i)},Z=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ee=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},te=(e,t)=>{if(e.l|=16,!(4&e.l))return ee(e,e.j),S((()=>ne(e,t)));e.l|=512},ne=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return t&&(e.l|=256,e.k&&(e.k.map((([e,t])=>ue(n,e,t))),e.k=void 0)),le(void 0,(()=>se(e,n,t)))},le=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=F(t),o=r.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,i=U.get(e=e.head||e);if(i||U.set(e,i=new Set),!i.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=f.C)?n:k(a);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ie(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>re(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ie=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||R(null,null),i=(e=>e&&e.m===D)(t)?t:A(null,null,t);if(M=l.tagName,o.P&&(i.u=i.u||{},o.P.map((([e,t])=>i.u[t]=l[e]))),n&&i.u)for(const e of Object.keys(i.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=l[e]);i.m=null,i.l|=4,e.M=i,i.$=s.$=l.shadowRoot||l,B=!!(1&o.l),Y(s,i,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},re=e=>{const t=e.$hostElement$,n=e.j;ue(e.t,"componentDidRender"),64&e.l||(e.l|=64,ae(t),e.A(t),n||ce()),e.S&&(e.S(),e.S=void 0),512&e.l&&w((()=>te(e,!1))),e.l&=-517},ce=()=>{ae(a.documentElement),w((()=>N(u,"appload",{detail:{namespace:"casino-engagement-suite-modal-container"}})))},ue=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ae=e=>e.classList.add("hydrated"),fe=(e,t,l)=>{var o,s;const i=e.prototype;if(t.R){const r=Object.entries(null!=(o=t.R)?o:{});if(r.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).D.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.D.get(t),r=s.l,c=s.t;l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.R[t][0]),8&r&&void 0!==i||l===i||Number.isNaN(i)&&Number.isNaN(l)||(s.D.set(t,l),c&&2==(18&r)&&te(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},he=(e,l={})=>{var o;const h=[],p=l.exclude||[],m=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),v=a.createElement("style"),b=[];let w,S=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],v:l[1],R:l[2],T:l[3]};4&o.l&&(g=!0),o.R=l[2],o.T=l[3],o.P=[];const c=o.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,D:new Map};l.N=new Promise((e=>l.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o),1&o.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,de(this,e,o.T)),w&&(clearTimeout(w),w=null),S?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)de(e,t,l.T),(null==t?void 0:t.t)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.j=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.U){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.U;if(!n)return;const l=i.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.F}" was not found`);l.isProxied||(fe(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=F(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>te(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.L&&(e.L.map((e=>e())),e.L=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}))}})()))}componentOnReady(){return n(this).N}};o.U=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,fe(u,o,1)))}))})),h.length>0&&(g&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=f.C)?o:k(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,$?$.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ce,30)))},de=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=me(e,n),i=pe(t,o),r=ye(n);f.ael(s,l,i,r),(t.L=t.L||[]).push((()=>f.rel(s,l,i,r)))}))},pe=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.k=e.k||[]).push([t,n])}catch(e){s(e)}},me=(e,t)=>16&t?a.body:e,ye=e=>({passive:!!(1&e),capture:!!(2&e)}),$e=e=>f.C=e;export{he as b,T as c,H as g,A as h,h as p,l as r,$e as s}