@everymatrix/casino-engagement-suite-modal 1.53.0 → 1.53.10

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 (20) 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-11b001d7.entry.js +1 -0
  3. package/dist/casino-engagement-suite-modal/p-5167801a.js +2 -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-35000938.js} +160 -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-49250fb9.js} +160 -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
@@ -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-49250fb9.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-49250fb9.js';
2
+ export { s as setNonce } from './index-49250fb9.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.25.1 | 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.25.1 | 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();
@@ -394,16 +402,18 @@ var attachStyles = (hostRef) => {
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,9 +748,6 @@ 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
751
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
729
752
  patch(oldVNode, rootVnode, isInitialLoad);
730
753
  };
@@ -732,7 +755,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
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 */;
@@ -857,12 +887,12 @@ var appDidLoad = (who) => {
857
887
  }
858
888
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
859
889
  };
860
- var safeCall = (instance, method, arg) => {
890
+ var safeCall = (instance, method, arg, elm) => {
861
891
  if (instance && instance[method]) {
862
892
  try {
863
893
  return instance[method](arg);
864
894
  } catch (e) {
865
- consoleError(e);
895
+ consoleError(e, elm);
866
896
  }
867
897
  }
868
898
  return void 0;
@@ -905,15 +935,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
905
935
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
906
936
  members.map(([memberName, [memberFlags]]) => {
907
937
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
938
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
939
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
940
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
941
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
942
+ Object.defineProperty(prototype, memberName, {
943
+ get() {
944
+ {
945
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
946
+ return getValue(this, memberName);
947
+ }
948
+ const ref = getHostRef(this);
949
+ const instance = ref ? ref.$lazyInstance$ : prototype;
950
+ if (!instance) return;
951
+ return instance[memberName];
952
+ }
953
+ },
954
+ configurable: true,
955
+ enumerable: true
956
+ });
957
+ }
908
958
  Object.defineProperty(prototype, memberName, {
909
- get() {
910
- return getValue(this, memberName);
911
- },
912
959
  set(newValue) {
913
- setValue(this, memberName, newValue, cmpMeta);
914
- },
915
- configurable: true,
916
- enumerable: true
960
+ const ref = getHostRef(this);
961
+ if (origSetter) {
962
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
963
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
964
+ newValue = ref.$instanceValues$.get(memberName);
965
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
966
+ ref.$instanceValues$.set(memberName, currentValue);
967
+ }
968
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
969
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
970
+ setValue(this, memberName, newValue, cmpMeta);
971
+ return;
972
+ }
973
+ {
974
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
975
+ setValue(this, memberName, newValue, cmpMeta);
976
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
977
+ ref.$onReadyPromise$.then(() => {
978
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
979
+ ref.$lazyInstance$[memberName] = newValue;
980
+ }
981
+ });
982
+ }
983
+ return;
984
+ }
985
+ const setterSetVal = () => {
986
+ const currentValue = ref.$lazyInstance$[memberName];
987
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
988
+ ref.$instanceValues$.set(memberName, currentValue);
989
+ }
990
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
991
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
992
+ };
993
+ if (ref.$lazyInstance$) {
994
+ setterSetVal();
995
+ } else {
996
+ ref.$onReadyPromise$.then(() => setterSetVal());
997
+ }
998
+ }
999
+ }
917
1000
  });
918
1001
  }
919
1002
  });
@@ -923,7 +1006,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
923
1006
  plt.jmp(() => {
924
1007
  var _a2;
925
1008
  const propName = attrNameToPropName.get(attrName);
926
- if (this.hasOwnProperty(propName)) {
1009
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
927
1010
  newValue = this[propName];
928
1011
  delete this[propName];
929
1012
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -943,7 +1026,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
943
1026
  }
944
1027
  return;
945
1028
  }
946
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1029
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1030
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1031
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1032
+ this[propName] = newValue;
1033
+ }
947
1034
  });
948
1035
  };
949
1036
  Cstr.observedAttributes = Array.from(
@@ -970,9 +1057,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
970
1057
  let Cstr;
971
1058
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
972
1059
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
973
- const bundleId = cmpMeta.$lazyBundleId$;
974
- if (bundleId) {
975
- const CstrImport = loadModule(cmpMeta);
1060
+ {
1061
+ const CstrImport = loadModule(cmpMeta, hostRef);
976
1062
  if (CstrImport && "then" in CstrImport) {
977
1063
  const endLoad = uniqueTime();
978
1064
  Cstr = await CstrImport;
@@ -994,16 +1080,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
994
1080
  try {
995
1081
  new Cstr(hostRef);
996
1082
  } catch (e) {
997
- consoleError(e);
1083
+ consoleError(e, elm);
998
1084
  }
999
1085
  {
1000
1086
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1001
1087
  }
1002
1088
  endNewInstance();
1003
- } else {
1004
- Cstr = elm.constructor;
1005
- const cmpTag = elm.localName;
1006
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1007
1089
  }
1008
1090
  if (Cstr && Cstr.style) {
1009
1091
  let style;
@@ -1026,7 +1108,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1026
1108
  schedule();
1027
1109
  }
1028
1110
  };
1029
- var fireConnectedCallback = (instance) => {
1111
+ var fireConnectedCallback = (instance, elm) => {
1030
1112
  };
1031
1113
 
1032
1114
  // src/runtime/connected-callback.ts
@@ -1066,7 +1148,7 @@ var connectedCallback = (elm) => {
1066
1148
  endConnected();
1067
1149
  }
1068
1150
  };
1069
- var disconnectInstance = (instance) => {
1151
+ var disconnectInstance = (instance, elm) => {
1070
1152
  };
1071
1153
  var disconnectedCallback = async (elm) => {
1072
1154
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1075,6 +1157,12 @@ var disconnectedCallback = async (elm) => {
1075
1157
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1076
1158
  }
1077
1159
  }
1160
+ if (rootAppliedStyles.has(elm)) {
1161
+ rootAppliedStyles.delete(elm);
1162
+ }
1163
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1164
+ rootAppliedStyles.delete(elm.shadowRoot);
1165
+ }
1078
1166
  };
1079
1167
 
1080
1168
  // src/runtime/bootstrap-lazy.ts
@@ -1151,6 +1239,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1151
1239
  }
1152
1240
  disconnectedCallback() {
1153
1241
  plt.jmp(() => disconnectedCallback(this));
1242
+ plt.raf(() => {
1243
+ var _a3;
1244
+ const hostRef = getHostRef(this);
1245
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1246
+ delete hostRef.$vnode$.$elm$;
1247
+ }
1248
+ });
1154
1249
  }
1155
1250
  componentOnReady() {
1156
1251
  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-49250fb9.js';
2
+ export { s as setNonce } from './index-49250fb9.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.53.0",
3
+ "version": "1.53.10",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",