@everymatrix/casino-engagement-suite-modal 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/casino-engagement-suite-modal.esm.js +1 -1
  2. package/dist/casino-engagement-suite-modal/p-6b988108.js +2 -0
  3. package/dist/casino-engagement-suite-modal/p-c66da26c.entry.js +1 -0
  4. package/dist/cjs/casino-engagement-suite-modal.cjs.entry.js +15 -11
  5. package/dist/cjs/casino-engagement-suite-modal.cjs.js +2 -2
  6. package/dist/cjs/{index-d9714a37.js → index-f0bdc19e.js} +166 -65
  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/casino-engagement-suite-modal.js +32 -10
  10. package/dist/esm/casino-engagement-suite-modal.entry.js +15 -11
  11. package/dist/esm/casino-engagement-suite-modal.js +3 -3
  12. package/dist/esm/{index-9117fdce.js → index-118cee90.js} +166 -65
  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/.stencil/packages/stencil/casino-engagement-suite-modal/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-modal/.stencil/packages/stencil/casino-engagement-suite-modal/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-engagement-suite-modal/p-5790ada5.js +0 -2
  18. package/dist/casino-engagement-suite-modal/p-d9bda8ef.entry.js +0 -1
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-modal/.stencil/packages/stencil/casino-engagement-suite-modal/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-modal/.stencil/packages/stencil/casino-engagement-suite-modal/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/.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/.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/.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/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,6 +1,20 @@
1
1
  import { h } from "@stencil/core";
2
2
  export class CasinoEngagementSuiteModal {
3
3
  constructor() {
4
+ /**
5
+ * Client custom styling via string
6
+ */
7
+ this.clientStyling = '';
8
+ /**
9
+ * Client custom styling via url
10
+ */
11
+ this.clientStylingUrl = '';
12
+ this.device = 'Mobile';
13
+ /**
14
+ * Show win animation
15
+ */
16
+ this.showAnimation = false;
17
+ this.limitStylingAppends = false;
4
18
  this.handleCloseClick = () => {
5
19
  if (this.isLoading)
6
20
  return;
@@ -24,16 +38,6 @@ export class CasinoEngagementSuiteModal {
24
38
  console.log('Error ', err);
25
39
  });
26
40
  };
27
- this.clientStyling = '';
28
- this.clientStylingUrl = '';
29
- this.isOpen = undefined;
30
- this.isLoading = undefined;
31
- this.header = undefined;
32
- this.contentIcon = undefined;
33
- this.modalType = undefined;
34
- this.device = 'Mobile';
35
- this.showAnimation = false;
36
- this.limitStylingAppends = false;
37
41
  }
38
42
  componentDidRender() {
39
43
  if (!this.limitStylingAppends && this.host) {
@@ -77,6 +81,8 @@ export class CasinoEngagementSuiteModal {
77
81
  "tags": [],
78
82
  "text": "Client custom styling via string"
79
83
  },
84
+ "getter": false,
85
+ "setter": false,
80
86
  "attribute": "client-styling",
81
87
  "reflect": true,
82
88
  "defaultValue": "''"
@@ -95,6 +101,8 @@ export class CasinoEngagementSuiteModal {
95
101
  "tags": [],
96
102
  "text": "Client custom styling via url"
97
103
  },
104
+ "getter": false,
105
+ "setter": false,
98
106
  "attribute": "client-styling-url",
99
107
  "reflect": true,
100
108
  "defaultValue": "''"
@@ -113,6 +121,8 @@ export class CasinoEngagementSuiteModal {
113
121
  "tags": [],
114
122
  "text": ""
115
123
  },
124
+ "getter": false,
125
+ "setter": false,
116
126
  "attribute": "is-open",
117
127
  "reflect": false
118
128
  },
@@ -130,6 +140,8 @@ export class CasinoEngagementSuiteModal {
130
140
  "tags": [],
131
141
  "text": ""
132
142
  },
143
+ "getter": false,
144
+ "setter": false,
133
145
  "attribute": "is-loading",
134
146
  "reflect": false
135
147
  },
@@ -147,6 +159,8 @@ export class CasinoEngagementSuiteModal {
147
159
  "tags": [],
148
160
  "text": ""
149
161
  },
162
+ "getter": false,
163
+ "setter": false,
150
164
  "attribute": "header",
151
165
  "reflect": false
152
166
  },
@@ -164,6 +178,8 @@ export class CasinoEngagementSuiteModal {
164
178
  "tags": [],
165
179
  "text": ""
166
180
  },
181
+ "getter": false,
182
+ "setter": false,
167
183
  "attribute": "content-icon",
168
184
  "reflect": false
169
185
  },
@@ -181,6 +197,8 @@ export class CasinoEngagementSuiteModal {
181
197
  "tags": [],
182
198
  "text": ""
183
199
  },
200
+ "getter": false,
201
+ "setter": false,
184
202
  "attribute": "modal-type",
185
203
  "reflect": false
186
204
  },
@@ -198,6 +216,8 @@ export class CasinoEngagementSuiteModal {
198
216
  "tags": [],
199
217
  "text": ""
200
218
  },
219
+ "getter": false,
220
+ "setter": false,
201
221
  "attribute": "device",
202
222
  "reflect": false,
203
223
  "defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
@@ -216,6 +236,8 @@ export class CasinoEngagementSuiteModal {
216
236
  "tags": [],
217
237
  "text": "Show win animation"
218
238
  },
239
+ "getter": false,
240
+ "setter": false,
219
241
  "attribute": "show-animation",
220
242
  "reflect": false,
221
243
  "defaultValue": "false"
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-9117fdce.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-118cee90.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) {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-9117fdce.js';
2
- export { s as setNonce } from './index-9117fdce.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-118cee90.js';
2
+ export { s as setNonce } from './index-118cee90.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.26.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1,17 +1,21 @@
1
1
  const NAMESPACE = 'casino-engagement-suite-modal';
2
- const BUILD = /* casino-engagement-suite-modal */ { 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: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: 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 */ { 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: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: 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 : {};
@@ -128,12 +139,6 @@ var flush = () => {
128
139
  };
129
140
  var nextTick = (cb) => promiseResolve().then(cb);
130
141
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
-
132
- // src/utils/constants.ts
133
- var EMPTY_OBJ = {};
134
-
135
- // src/utils/helpers.ts
136
- var isDef = (v) => v != null;
137
142
  var isComplexType = (o) => {
138
143
  o = typeof o;
139
144
  return o === "object" || o === "function";
@@ -334,7 +339,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
334
339
  }
335
340
  if (!appliedStyles.has(scopeId2)) {
336
341
  {
337
- styleElm = doc.createElement("style");
342
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
338
343
  styleElm.innerHTML = style;
339
344
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
340
345
  if (nonce != null) {
@@ -344,7 +349,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
344
349
  if (styleContainerNode.nodeName === "HEAD") {
345
350
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
346
351
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
347
- styleContainerNode.insertBefore(styleElm, referenceNode2);
352
+ styleContainerNode.insertBefore(
353
+ styleElm,
354
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
355
+ );
348
356
  } else if ("host" in styleContainerNode) {
349
357
  if (supportsConstructableStylesheets) {
350
358
  const stylesheet = new CSSStyleSheet();
@@ -362,7 +370,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
362
370
  styleContainerNode.append(styleElm);
363
371
  }
364
372
  }
365
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
373
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
366
374
  styleContainerNode.insertBefore(styleElm, null);
367
375
  }
368
376
  }
@@ -387,23 +395,25 @@ var attachStyles = (hostRef) => {
387
395
  const scopeId2 = addStyle(
388
396
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
389
397
  cmpMeta);
390
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
398
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
391
399
  elm["s-sc"] = scopeId2;
392
400
  elm.classList.add(scopeId2 + "-h");
393
401
  }
394
402
  endAttachStyles();
395
403
  };
396
404
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
397
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
405
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
398
406
  if (oldValue !== newValue) {
399
407
  let isProp = isMemberInElement(elm, memberName);
400
408
  let ln = memberName.toLowerCase();
401
409
  if (memberName === "class") {
402
410
  const classList = elm.classList;
403
411
  const oldClasses = parseClassList(oldValue);
404
- const newClasses = parseClassList(newValue);
405
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
406
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
412
+ let newClasses = parseClassList(newValue);
413
+ {
414
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
415
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
416
+ }
407
417
  } else if (memberName === "style") {
408
418
  {
409
419
  for (const prop in oldValue) {
@@ -458,7 +468,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
458
468
  elm.setAttribute(memberName, n);
459
469
  }
460
470
  }
461
- } else {
471
+ } else if (elm[memberName] !== newValue) {
462
472
  elm[memberName] = newValue;
463
473
  }
464
474
  } catch (e) {
@@ -480,24 +490,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
480
490
  }
481
491
  };
482
492
  var parseClassListRegex = /\s/;
483
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
493
+ var parseClassList = (value) => {
494
+ if (typeof value === "object" && value && "baseVal" in value) {
495
+ value = value.baseVal;
496
+ }
497
+ if (!value || typeof value !== "string") {
498
+ return [];
499
+ }
500
+ return value.split(parseClassListRegex);
501
+ };
484
502
  var CAPTURE_EVENT_SUFFIX = "Capture";
485
503
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
486
504
 
487
505
  // src/runtime/vdom/update-element.ts
488
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
506
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
489
507
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
490
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
491
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
508
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
509
+ const newVnodeAttrs = newVnode.$attrs$ || {};
492
510
  {
493
511
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
494
512
  if (!(memberName in newVnodeAttrs)) {
495
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
513
+ setAccessor(
514
+ elm,
515
+ memberName,
516
+ oldVnodeAttrs[memberName],
517
+ void 0,
518
+ isSvgMode2,
519
+ newVnode.$flags$);
496
520
  }
497
521
  }
498
522
  }
499
523
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
500
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
524
+ setAccessor(
525
+ elm,
526
+ memberName,
527
+ oldVnodeAttrs[memberName],
528
+ newVnodeAttrs[memberName],
529
+ isSvgMode2,
530
+ newVnode.$flags$);
501
531
  }
502
532
  };
503
533
  function sortedAttrNames(attrNames) {
@@ -509,13 +539,10 @@ function sortedAttrNames(attrNames) {
509
539
  attrNames
510
540
  );
511
541
  }
512
-
513
- // src/runtime/vdom/vdom-render.ts
514
- var scopeId;
515
542
  var hostTagName;
516
543
  var useNativeShadowDom = false;
517
544
  var isSvgMode = false;
518
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
545
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
519
546
  const newVNode2 = newParentVNode.$children$[childIndex];
520
547
  let i2 = 0;
521
548
  let elm;
@@ -529,11 +556,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
529
556
  {
530
557
  updateElement(null, newVNode2, isSvgMode);
531
558
  }
532
- const rootNode = elm.getRootNode();
533
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
534
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
535
- elm.classList.add(elm["s-si"] = scopeId);
536
- }
537
559
  if (newVNode2.$children$) {
538
560
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
539
561
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -662,6 +684,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
662
684
  if (!isInitialRender) {
663
685
  return leftVNode.$key$ === rightVNode.$key$;
664
686
  }
687
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
688
+ leftVNode.$key$ = rightVNode.$key$;
689
+ }
665
690
  return true;
666
691
  }
667
692
  return false;
@@ -696,8 +721,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
696
721
  }
697
722
  };
698
723
  var insertBefore = (parent, newNode, reference) => {
699
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
700
- return inserted;
724
+ {
725
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
726
+ }
701
727
  };
702
728
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
703
729
  const hostElm = hostRef.$hostElement$;
@@ -722,17 +748,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
722
748
  rootVnode.$flags$ |= 4 /* isHost */;
723
749
  hostRef.$vnode$ = rootVnode;
724
750
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
725
- {
726
- scopeId = hostElm["s-sc"];
727
- }
728
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
751
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
729
752
  patch(oldVNode, rootVnode, isInitialLoad);
730
753
  };
731
754
 
732
755
  // src/runtime/update-component.ts
733
756
  var attachToAncestor = (hostRef, ancestorComponent) => {
734
757
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
735
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
758
+ const index = ancestorComponent["s-p"].push(
759
+ new Promise(
760
+ (r) => hostRef.$onRenderResolve$ = () => {
761
+ ancestorComponent["s-p"].splice(index - 1, 1);
762
+ r();
763
+ }
764
+ )
765
+ );
736
766
  }
737
767
  };
738
768
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -823,7 +853,7 @@ var postUpdateComponent = (hostRef) => {
823
853
  const instance = hostRef.$lazyInstance$ ;
824
854
  const ancestorComponent = hostRef.$ancestorComponent$;
825
855
  {
826
- safeCall(instance, "componentDidRender");
856
+ safeCall(instance, "componentDidRender", void 0, elm);
827
857
  }
828
858
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
829
859
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -852,17 +882,14 @@ var postUpdateComponent = (hostRef) => {
852
882
  }
853
883
  };
854
884
  var appDidLoad = (who) => {
855
- {
856
- addHydratedFlag(doc.documentElement);
857
- }
858
885
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
859
886
  };
860
- var safeCall = (instance, method, arg) => {
887
+ var safeCall = (instance, method, arg, elm) => {
861
888
  if (instance && instance[method]) {
862
889
  try {
863
890
  return instance[method](arg);
864
891
  } catch (e) {
865
- consoleError(e);
892
+ consoleError(e, elm);
866
893
  }
867
894
  }
868
895
  return void 0;
@@ -905,15 +932,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
905
932
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
906
933
  members.map(([memberName, [memberFlags]]) => {
907
934
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
935
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
936
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
937
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
938
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
939
+ Object.defineProperty(prototype, memberName, {
940
+ get() {
941
+ {
942
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
943
+ return getValue(this, memberName);
944
+ }
945
+ const ref = getHostRef(this);
946
+ const instance = ref ? ref.$lazyInstance$ : prototype;
947
+ if (!instance) return;
948
+ return instance[memberName];
949
+ }
950
+ },
951
+ configurable: true,
952
+ enumerable: true
953
+ });
954
+ }
908
955
  Object.defineProperty(prototype, memberName, {
909
- get() {
910
- return getValue(this, memberName);
911
- },
912
956
  set(newValue) {
913
- setValue(this, memberName, newValue, cmpMeta);
914
- },
915
- configurable: true,
916
- enumerable: true
957
+ const ref = getHostRef(this);
958
+ if (origSetter) {
959
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
960
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
961
+ newValue = ref.$instanceValues$.get(memberName);
962
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
963
+ ref.$instanceValues$.set(memberName, currentValue);
964
+ }
965
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
966
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
967
+ setValue(this, memberName, newValue, cmpMeta);
968
+ return;
969
+ }
970
+ {
971
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
972
+ setValue(this, memberName, newValue, cmpMeta);
973
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
974
+ ref.$onReadyPromise$.then(() => {
975
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
976
+ ref.$lazyInstance$[memberName] = newValue;
977
+ }
978
+ });
979
+ }
980
+ return;
981
+ }
982
+ const setterSetVal = () => {
983
+ const currentValue = ref.$lazyInstance$[memberName];
984
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
985
+ ref.$instanceValues$.set(memberName, currentValue);
986
+ }
987
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
988
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
989
+ };
990
+ if (ref.$lazyInstance$) {
991
+ setterSetVal();
992
+ } else {
993
+ ref.$onReadyPromise$.then(() => setterSetVal());
994
+ }
995
+ }
996
+ }
917
997
  });
918
998
  }
919
999
  });
@@ -923,7 +1003,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
923
1003
  plt.jmp(() => {
924
1004
  var _a2;
925
1005
  const propName = attrNameToPropName.get(attrName);
926
- if (this.hasOwnProperty(propName)) {
1006
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
927
1007
  newValue = this[propName];
928
1008
  delete this[propName];
929
1009
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -943,7 +1023,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
943
1023
  }
944
1024
  return;
945
1025
  }
946
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1026
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1027
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1028
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1029
+ this[propName] = newValue;
1030
+ }
947
1031
  });
948
1032
  };
949
1033
  Cstr.observedAttributes = Array.from(
@@ -972,7 +1056,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
972
1056
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
973
1057
  const bundleId = cmpMeta.$lazyBundleId$;
974
1058
  if (bundleId) {
975
- const CstrImport = loadModule(cmpMeta);
1059
+ const CstrImport = loadModule(cmpMeta, hostRef);
976
1060
  if (CstrImport && "then" in CstrImport) {
977
1061
  const endLoad = uniqueTime();
978
1062
  Cstr = await CstrImport;
@@ -994,7 +1078,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
994
1078
  try {
995
1079
  new Cstr(hostRef);
996
1080
  } catch (e) {
997
- consoleError(e);
1081
+ consoleError(e, elm);
998
1082
  }
999
1083
  {
1000
1084
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1026,7 +1110,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1026
1110
  schedule();
1027
1111
  }
1028
1112
  };
1029
- var fireConnectedCallback = (instance) => {
1113
+ var fireConnectedCallback = (instance, elm) => {
1030
1114
  };
1031
1115
 
1032
1116
  // src/runtime/connected-callback.ts
@@ -1066,7 +1150,7 @@ var connectedCallback = (elm) => {
1066
1150
  endConnected();
1067
1151
  }
1068
1152
  };
1069
- var disconnectInstance = (instance) => {
1153
+ var disconnectInstance = (instance, elm) => {
1070
1154
  };
1071
1155
  var disconnectedCallback = async (elm) => {
1072
1156
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1075,6 +1159,12 @@ var disconnectedCallback = async (elm) => {
1075
1159
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1076
1160
  }
1077
1161
  }
1162
+ if (rootAppliedStyles.has(elm)) {
1163
+ rootAppliedStyles.delete(elm);
1164
+ }
1165
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1166
+ rootAppliedStyles.delete(elm.shadowRoot);
1167
+ }
1078
1168
  };
1079
1169
 
1080
1170
  // src/runtime/bootstrap-lazy.ts
@@ -1151,6 +1241,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1151
1241
  }
1152
1242
  disconnectedCallback() {
1153
1243
  plt.jmp(() => disconnectedCallback(this));
1244
+ plt.raf(() => {
1245
+ var _a3;
1246
+ const hostRef = getHostRef(this);
1247
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1248
+ if (i2 > -1) {
1249
+ deferredConnectedCallbacks.splice(i2, 1);
1250
+ }
1251
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1252
+ delete hostRef.$vnode$.$elm$;
1253
+ }
1254
+ });
1154
1255
  }
1155
1256
  componentOnReady() {
1156
1257
  return getHostRef(this).$onReadyPromise$;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-9117fdce.js';
2
- export { s as setNonce } from './index-9117fdce.js';
1
+ import { b as bootstrapLazy } from './index-118cee90.js';
2
+ export { s as setNonce } from './index-118cee90.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",
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",