@everymatrix/helper-modal 1.56.0 → 1.56.3

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 (25) hide show
  1. package/dist/cjs/helper-modal.cjs.entry.js +6 -14
  2. package/dist/cjs/helper-modal.cjs.js +2 -2
  3. package/dist/cjs/{index-ee7f837d.js → index-51e3dceb.js} +65 -200
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/helper-modal/helper-modal.js +5 -21
  7. package/dist/esm/helper-modal.entry.js +6 -14
  8. package/dist/esm/helper-modal.js +3 -3
  9. package/dist/esm/{index-319c4812.js → index-abfbe08b.js} +65 -200
  10. package/dist/esm/loader.js +2 -2
  11. package/dist/helper-modal/helper-modal.esm.js +1 -1
  12. package/dist/helper-modal/p-3b8cc0b1.js +2 -0
  13. package/dist/helper-modal/p-ddafd842.entry.js +1 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-modal/.stencil/packages/stencil/helper-modal/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-modal/.stencil/packages/stencil/helper-modal/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/helper-modal/p-a261be3b.js +0 -2
  19. package/dist/helper-modal/p-be915d51.entry.js +0 -1
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-modal/.stencil/packages/stencil/helper-modal/stencil.config.d.ts +0 -2
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-modal/.stencil/packages/stencil/helper-modal/stencil.config.dev.d.ts +0 -2
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-modal/.stencil/tools/plugins/index.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-modal/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-modal/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-modal/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-319c4812.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-abfbe08b.js';
2
2
 
3
3
  /**
4
4
  * @name isMobile
@@ -20,19 +20,6 @@ const HelperModal = class {
20
20
  constructor(hostRef) {
21
21
  registerInstance(this, hostRef);
22
22
  this.cancel = createEvent(this, "modalCloseEvent", 7);
23
- /**
24
- * Toggles if the helper is visible or not
25
- */
26
- this.visible = true;
27
- /**
28
- * Client custom styling via string
29
- */
30
- this.clientStyling = '';
31
- /**
32
- * Client custom styling via url content
33
- */
34
- this.clientStylingUrlContent = '';
35
- this.limitStylingAppends = false;
36
23
  this.userAgent = window.navigator.userAgent;
37
24
  this.setClientStyling = () => {
38
25
  let sheet = document.createElement('style');
@@ -46,6 +33,11 @@ const HelperModal = class {
46
33
  this.stylingContainer.prepend(cssFile);
47
34
  }, 1);
48
35
  };
36
+ this.titleModal = undefined;
37
+ this.visible = true;
38
+ this.clientStyling = '';
39
+ this.clientStylingUrlContent = '';
40
+ this.limitStylingAppends = false;
49
41
  }
50
42
  handleHelperModalClose() {
51
43
  this.visible = false;
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-319c4812.js';
2
- export { s as setNonce } from './index-319c4812.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-abfbe08b.js';
2
+ export { s as setNonce } from './index-abfbe08b.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1,21 +1,17 @@
1
1
  const NAMESPACE = 'helper-modal';
2
- const BUILD = /* helper-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: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* helper-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: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
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
14
12
  var hostRefs = /* @__PURE__ */ new WeakMap();
15
13
  var getHostRef = (ref) => hostRefs.get(ref);
16
- var registerInstance = (lazyInstance, hostRef) => {
17
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
- };
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
19
15
  var registerHost = (hostElement, cmpMeta) => {
20
16
  const hostRef = {
21
17
  $flags$: 0,
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
28
24
  hostElement["s-p"] = [];
29
25
  hostElement["s-rc"] = [];
30
26
  }
31
- const ref = hostRefs.set(hostElement, hostRef);
32
- return ref;
27
+ return hostRefs.set(hostElement, hostRef);
33
28
  };
34
29
  var isMemberInElement = (elm, memberName) => memberName in elm;
35
30
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
66
61
  /* webpackExclude: /\.system\.entry\.js$/ */
67
62
  /* webpackMode: "lazy" */
68
63
  `./${bundleId}.entry.js${""}`
69
- ).then(
70
- (importedModule) => {
71
- {
72
- cmpModules.set(bundleId, importedModule);
73
- }
74
- return importedModule[exportName];
75
- },
76
- (e) => {
77
- consoleError(e, hostRef.$hostElement$);
64
+ ).then((importedModule) => {
65
+ {
66
+ cmpModules.set(bundleId, importedModule);
78
67
  }
79
- );
68
+ return importedModule[exportName];
69
+ }, consoleError);
80
70
  };
81
71
 
82
72
  // src/client/client-style.ts
83
73
  var styles = /* @__PURE__ */ new Map();
84
- var HYDRATED_STYLE_ID = "sty-id";
85
74
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
86
75
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
87
76
  var win = typeof window !== "undefined" ? window : {};
@@ -139,6 +128,12 @@ var flush = () => {
139
128
  };
140
129
  var nextTick = (cb) => promiseResolve().then(cb);
141
130
  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;
142
137
  var isComplexType = (o) => {
143
138
  o = typeof o;
144
139
  return o === "object" || o === "function";
@@ -339,40 +334,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
339
334
  }
340
335
  if (!appliedStyles.has(scopeId2)) {
341
336
  {
342
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
337
+ styleElm = doc.createElement("style");
343
338
  styleElm.innerHTML = style;
344
339
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
345
340
  if (nonce != null) {
346
341
  styleElm.setAttribute("nonce", nonce);
347
342
  }
348
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
349
- if (styleContainerNode.nodeName === "HEAD") {
350
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
351
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
352
- styleContainerNode.insertBefore(
353
- styleElm,
354
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
355
- );
356
- } else if ("host" in styleContainerNode) {
357
- if (supportsConstructableStylesheets) {
358
- const stylesheet = new CSSStyleSheet();
359
- stylesheet.replaceSync(style);
360
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
361
- } else {
362
- const existingStyleContainer = styleContainerNode.querySelector("style");
363
- if (existingStyleContainer) {
364
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
365
- } else {
366
- styleContainerNode.prepend(styleElm);
367
- }
368
- }
369
- } else {
370
- styleContainerNode.append(styleElm);
371
- }
372
- }
373
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
374
- styleContainerNode.insertBefore(styleElm, null);
375
- }
343
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
376
344
  }
377
345
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
378
346
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -395,25 +363,23 @@ var attachStyles = (hostRef) => {
395
363
  const scopeId2 = addStyle(
396
364
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
397
365
  cmpMeta);
398
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
366
+ if (flags & 10 /* needsScopedEncapsulation */) {
399
367
  elm["s-sc"] = scopeId2;
400
368
  elm.classList.add(scopeId2 + "-h");
401
369
  }
402
370
  endAttachStyles();
403
371
  };
404
372
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
405
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
373
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
406
374
  if (oldValue !== newValue) {
407
375
  let isProp = isMemberInElement(elm, memberName);
408
376
  let ln = memberName.toLowerCase();
409
377
  if (memberName === "class") {
410
378
  const classList = elm.classList;
411
379
  const oldClasses = parseClassList(oldValue);
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
- }
380
+ const newClasses = parseClassList(newValue);
381
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
382
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
417
383
  } else if (memberName === "key") ; else if (memberName === "ref") {
418
384
  if (newValue) {
419
385
  newValue(elm);
@@ -445,13 +411,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
445
411
  if (memberName === "list") {
446
412
  isProp = false;
447
413
  } else if (oldValue == null || elm[memberName] != n) {
448
- if (typeof elm.__lookupSetter__(memberName) === "function") {
449
- elm[memberName] = n;
450
- } else {
451
- elm.setAttribute(memberName, n);
452
- }
414
+ elm[memberName] = n;
453
415
  }
454
- } else if (elm[memberName] !== newValue) {
416
+ } else {
455
417
  elm[memberName] = newValue;
456
418
  }
457
419
  } catch (e) {
@@ -473,44 +435,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
473
435
  }
474
436
  };
475
437
  var parseClassListRegex = /\s/;
476
- var parseClassList = (value) => {
477
- if (typeof value === "object" && value && "baseVal" in value) {
478
- value = value.baseVal;
479
- }
480
- if (!value || typeof value !== "string") {
481
- return [];
482
- }
483
- return value.split(parseClassListRegex);
484
- };
438
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
485
439
  var CAPTURE_EVENT_SUFFIX = "Capture";
486
440
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
487
441
 
488
442
  // src/runtime/vdom/update-element.ts
489
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
443
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
490
444
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
491
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
492
- const newVnodeAttrs = newVnode.$attrs$ || {};
445
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
446
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
493
447
  {
494
448
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
495
449
  if (!(memberName in newVnodeAttrs)) {
496
- setAccessor(
497
- elm,
498
- memberName,
499
- oldVnodeAttrs[memberName],
500
- void 0,
501
- isSvgMode2,
502
- newVnode.$flags$);
450
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
503
451
  }
504
452
  }
505
453
  }
506
454
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
507
- setAccessor(
508
- elm,
509
- memberName,
510
- oldVnodeAttrs[memberName],
511
- newVnodeAttrs[memberName],
512
- isSvgMode2,
513
- newVnode.$flags$);
455
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
514
456
  }
515
457
  };
516
458
  function sortedAttrNames(attrNames) {
@@ -522,10 +464,13 @@ function sortedAttrNames(attrNames) {
522
464
  attrNames
523
465
  );
524
466
  }
467
+
468
+ // src/runtime/vdom/vdom-render.ts
469
+ var scopeId;
525
470
  var hostTagName;
526
471
  var useNativeShadowDom = false;
527
472
  var isSvgMode = false;
528
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
473
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
529
474
  const newVNode2 = newParentVNode.$children$[childIndex];
530
475
  let i2 = 0;
531
476
  let elm;
@@ -539,6 +484,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
539
484
  {
540
485
  updateElement(null, newVNode2, isSvgMode);
541
486
  }
487
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
488
+ elm.classList.add(elm["s-si"] = scopeId);
489
+ }
542
490
  if (newVNode2.$children$) {
543
491
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
544
492
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -668,9 +616,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
668
616
  if (!isInitialRender) {
669
617
  return leftVNode.$key$ === rightVNode.$key$;
670
618
  }
671
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
672
- leftVNode.$key$ = rightVNode.$key$;
673
- }
674
619
  return true;
675
620
  }
676
621
  return false;
@@ -694,10 +639,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
694
639
  elm.textContent = "";
695
640
  }
696
641
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
697
- } else if (
698
- // don't do this on initial render as it can cause non-hydrated content to be removed
699
- !isInitialRender && BUILD.updatable && oldChildren !== null
700
- ) {
642
+ } else if (oldChildren !== null) {
701
643
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
702
644
  }
703
645
  } else if (oldVNode.$text$ !== text) {
@@ -711,9 +653,8 @@ var nullifyVNodeRefs = (vNode) => {
711
653
  }
712
654
  };
713
655
  var insertBefore = (parent, newNode, reference) => {
714
- {
715
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
716
- }
656
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
657
+ return inserted;
717
658
  };
718
659
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
719
660
  const hostElm = hostRef.$hostElement$;
@@ -738,21 +679,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
738
679
  rootVnode.$flags$ |= 4 /* isHost */;
739
680
  hostRef.$vnode$ = rootVnode;
740
681
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
741
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
682
+ {
683
+ scopeId = hostElm["s-sc"];
684
+ }
685
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
742
686
  patch(oldVNode, rootVnode, isInitialLoad);
743
687
  };
744
688
 
745
689
  // src/runtime/update-component.ts
746
690
  var attachToAncestor = (hostRef, ancestorComponent) => {
747
691
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
748
- const index = ancestorComponent["s-p"].push(
749
- new Promise(
750
- (r) => hostRef.$onRenderResolve$ = () => {
751
- ancestorComponent["s-p"].splice(index - 1, 1);
752
- r();
753
- }
754
- )
755
- );
692
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
756
693
  }
757
694
  };
758
695
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -843,7 +780,7 @@ var postUpdateComponent = (hostRef) => {
843
780
  const instance = hostRef.$lazyInstance$ ;
844
781
  const ancestorComponent = hostRef.$ancestorComponent$;
845
782
  {
846
- safeCall(instance, "componentDidRender", void 0, elm);
783
+ safeCall(instance, "componentDidRender");
847
784
  }
848
785
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
849
786
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -872,14 +809,17 @@ var postUpdateComponent = (hostRef) => {
872
809
  }
873
810
  };
874
811
  var appDidLoad = (who) => {
812
+ {
813
+ addHydratedFlag(doc.documentElement);
814
+ }
875
815
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
876
816
  };
877
- var safeCall = (instance, method, arg, elm) => {
817
+ var safeCall = (instance, method, arg) => {
878
818
  if (instance && instance[method]) {
879
819
  try {
880
820
  return instance[method](arg);
881
821
  } catch (e) {
882
- consoleError(e, elm);
822
+ consoleError(e);
883
823
  }
884
824
  }
885
825
  return void 0;
@@ -922,68 +862,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
922
862
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
923
863
  members.map(([memberName, [memberFlags]]) => {
924
864
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
925
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
926
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
927
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
928
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
929
- Object.defineProperty(prototype, memberName, {
930
- get() {
931
- {
932
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
933
- return getValue(this, memberName);
934
- }
935
- const ref = getHostRef(this);
936
- const instance = ref ? ref.$lazyInstance$ : prototype;
937
- if (!instance) return;
938
- return instance[memberName];
939
- }
940
- },
941
- configurable: true,
942
- enumerable: true
943
- });
944
- }
945
865
  Object.defineProperty(prototype, memberName, {
866
+ get() {
867
+ return getValue(this, memberName);
868
+ },
946
869
  set(newValue) {
947
- const ref = getHostRef(this);
948
- if (origSetter) {
949
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
950
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
951
- newValue = ref.$instanceValues$.get(memberName);
952
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
953
- ref.$instanceValues$.set(memberName, currentValue);
954
- }
955
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
956
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
957
- setValue(this, memberName, newValue, cmpMeta);
958
- return;
959
- }
960
- {
961
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
962
- setValue(this, memberName, newValue, cmpMeta);
963
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
964
- ref.$onReadyPromise$.then(() => {
965
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
966
- ref.$lazyInstance$[memberName] = newValue;
967
- }
968
- });
969
- }
970
- return;
971
- }
972
- const setterSetVal = () => {
973
- const currentValue = ref.$lazyInstance$[memberName];
974
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
975
- ref.$instanceValues$.set(memberName, currentValue);
976
- }
977
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
978
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
979
- };
980
- if (ref.$lazyInstance$) {
981
- setterSetVal();
982
- } else {
983
- ref.$onReadyPromise$.then(() => setterSetVal());
984
- }
985
- }
986
- }
870
+ setValue(this, memberName, newValue, cmpMeta);
871
+ },
872
+ configurable: true,
873
+ enumerable: true
987
874
  });
988
875
  }
989
876
  });
@@ -993,11 +880,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
993
880
  plt.jmp(() => {
994
881
  var _a2;
995
882
  const propName = attrNameToPropName.get(attrName);
996
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
883
+ if (this.hasOwnProperty(propName)) {
997
884
  newValue = this[propName];
998
885
  delete this[propName];
999
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1000
- this[propName] == newValue) {
886
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1001
887
  return;
1002
888
  } else if (propName == null) {
1003
889
  const hostRef = getHostRef(this);
@@ -1013,11 +899,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1013
899
  }
1014
900
  return;
1015
901
  }
1016
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1017
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1018
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1019
- this[propName] = newValue;
1020
- }
902
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1021
903
  });
1022
904
  };
1023
905
  Cstr.observedAttributes = Array.from(
@@ -1046,7 +928,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1046
928
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1047
929
  const bundleId = cmpMeta.$lazyBundleId$;
1048
930
  if (bundleId) {
1049
- const CstrImport = loadModule(cmpMeta, hostRef);
931
+ const CstrImport = loadModule(cmpMeta);
1050
932
  if (CstrImport && "then" in CstrImport) {
1051
933
  const endLoad = uniqueTime();
1052
934
  Cstr = await CstrImport;
@@ -1068,7 +950,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1068
950
  try {
1069
951
  new Cstr(hostRef);
1070
952
  } catch (e) {
1071
- consoleError(e, elm);
953
+ consoleError(e);
1072
954
  }
1073
955
  {
1074
956
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1100,7 +982,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1100
982
  schedule();
1101
983
  }
1102
984
  };
1103
- var fireConnectedCallback = (instance, elm) => {
985
+ var fireConnectedCallback = (instance) => {
1104
986
  };
1105
987
 
1106
988
  // src/runtime/connected-callback.ts
@@ -1140,7 +1022,7 @@ var connectedCallback = (elm) => {
1140
1022
  endConnected();
1141
1023
  }
1142
1024
  };
1143
- var disconnectInstance = (instance, elm) => {
1025
+ var disconnectInstance = (instance) => {
1144
1026
  };
1145
1027
  var disconnectedCallback = async (elm) => {
1146
1028
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1149,12 +1031,6 @@ var disconnectedCallback = async (elm) => {
1149
1031
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1150
1032
  }
1151
1033
  }
1152
- if (rootAppliedStyles.has(elm)) {
1153
- rootAppliedStyles.delete(elm);
1154
- }
1155
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1156
- rootAppliedStyles.delete(elm.shadowRoot);
1157
- }
1158
1034
  };
1159
1035
 
1160
1036
  // src/runtime/bootstrap-lazy.ts
@@ -1231,17 +1107,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1231
1107
  }
1232
1108
  disconnectedCallback() {
1233
1109
  plt.jmp(() => disconnectedCallback(this));
1234
- plt.raf(() => {
1235
- var _a3;
1236
- const hostRef = getHostRef(this);
1237
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1238
- if (i2 > -1) {
1239
- deferredConnectedCallbacks.splice(i2, 1);
1240
- }
1241
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1242
- delete hostRef.$vnode$.$elm$;
1243
- }
1244
- });
1245
1110
  }
1246
1111
  componentOnReady() {
1247
1112
  return getHostRef(this).$onReadyPromise$;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-319c4812.js';
2
- export { s as setNonce } from './index-319c4812.js';
1
+ import { b as bootstrapLazy } from './index-abfbe08b.js';
2
+ export { s as setNonce } from './index-abfbe08b.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1 +1 @@
1
- import{p as t,b as e}from"./p-a261be3b.js";export{s as setNonce}from"./p-a261be3b.js";import{g as i}from"./p-e1255160.js";(()=>{const e=import.meta.url,i={};return""!==e&&(i.resourcesUrl=new URL(".",e).href),t(i)})().then((async t=>(await i(),e([["p-be915d51",[[1,"helper-modal",{titleModal:[513,"title-modal"],visible:[1540],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],limitStylingAppends:[32]}]]]],t))));
1
+ import{p as t,b as e}from"./p-3b8cc0b1.js";export{s as setNonce}from"./p-3b8cc0b1.js";import{g as i}from"./p-e1255160.js";(()=>{const e=import.meta.url,i={};return""!==e&&(i.resourcesUrl=new URL(".",e).href),t(i)})().then((async t=>(await i(),e([["p-ddafd842",[[1,"helper-modal",{titleModal:[513,"title-modal"],visible:[1540],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],limitStylingAppends:[32]}]]]],t))));
@@ -0,0 +1,2 @@
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),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={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})(),m=!1,p=[],y=[],$=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&f.l?v(w):f.raf(w))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{b(p),b(y),(m=p.length>0)&&f.raf(w)},v=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:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>R});var O=e=>({isOk:!0,isErr:!1,value:e}),E=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=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},T=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],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&&r?i[i.length-1].i+=l:i.push(s?A(null,l):l),r=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=A(e,null);return u.u=t,i.length>0&&(u.h=i),u.m=o,u},A=(e,t)=>({l:0,p:e,i:t,$:null,h:null,u:null,m:null}),N={},U=(e,t,l)=>{const o=(e=>n(e).$hostElement$)(e);return{emit:e=>D(o,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},D=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},F=new WeakMap,H=e=>"sc-"+e.v,L=(e,t,n,l,s,r)=>{if(n!==l){let i=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("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||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,r=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.p),_(null,l,I),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=J(e,l,r),s&&o.appendChild(s);return o["s-hn"]=x,o},K=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=J(null,n,o),r&&(l[o].$=r,ee(i,r,t)))},Q=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Z(t),e&&e.remove()}}},X=(e,t,n=!1)=>e.p===t.p&&(!!n||e.m===t.m),Y=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(("slot"!==t.p||B)&&_(e,t,I),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],m=l.length-1,p=l[0],y=l[m];for(;i<=f&&c<=m;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==p)p=l[++c];else if(null==y)y=l[--m];else if(X(h,p,o))Y(h,p,o),h=t[++i],p=l[++c];else if(X(d,y,o))Y(d,y,o),d=t[--f],y=l[--m];else if(X(h,y,o))Y(h,y,o),ee(e,h.$,d.$.nextSibling),h=t[++i],y=l[--m];else if(X(d,p,o))Y(d,p,o),ee(e,d.$,h.$),d=t[--f],p=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].m&&t[a].m===p.m){u=a;break}u>=0?(r=t[u],r.p!==p.p?s=J(t&&t[c],n,u):(Y(r,p,o),t[u]=void 0,s=r.$),p=l[++c]):(s=J(t&&t[c],n,c),p=l[++c]),s&&ee(h.$.parentNode,s,h.$)}i>f?K(e,null==l[m+1]?null:l[m+1].$,n,l,c,m):c>m&&Q(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),K(l,null,t,s,0,s.length-1)):null!==o&&Q(o,0,o.length-1)):e.i!==r&&(l.data=r)},Z=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Z)},ee=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),te=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},ne=(e,t)=>{if(e.l|=16,!(4&e.l))return te(e,e.j),S((()=>le(e,t)));e.l|=512},le=(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 oe(void 0,(()=>re(e,n,t)))},oe=(e,t)=>se(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),se=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,re=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=H(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=F.get(e=e.head||e);if(r||F.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.O)?n:k(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&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=()=>ce(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.k,s=e.C||A(null,null),r=(e=>e&&e.p===N)(t)?t:T(null,null,t);if(x=l.tagName,o.M&&(r.u=r.u||{},o.M.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.p=null,r.l|=4,e.C=r,r.$=s.$=l.shadowRoot||l,M=l["s-sc"],B=!!(1&o.l),Y(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ce=e=>{const t=e.$hostElement$,n=e.j;ae(e.t,"componentDidRender"),64&e.l||(e.l|=64,fe(t),e.P(t),n||ue()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>ne(e,!1))),e.l&=-517},ue=()=>{fe(a.documentElement),v((()=>D(u,"appload",{detail:{namespace:"helper-modal"}})))},ae=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},fe=e=>e.classList.add("hydrated"),he=(e,t,l)=>{var o,s;const r=e.prototype;if(t.R){const i=Object.entries(null!=(o=t.R)?o:{});if(i.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).T.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 r=s.T.get(t),i=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&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.T.set(t,l),c&&2==(18&i)&&ne(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.A)?void 0:i[e];null==r||r.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.A)?s:{}),...i.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.M)||o.push([e,s])),s}))]))}}return e},de=(e,l={})=>{var o;const h=[],m=l.exclude||[],p=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),b=a.createElement("style"),w=[];let v,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],N:l[3]};4&o.l&&(g=!0),o.R=l[2],o.M=[];const c=o.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,T:new Map};l.U=new Promise((e=>l.P=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(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),S?w.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.U)&&t.U.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){te(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.D){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.D;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.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||(he(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=H(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>ne(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);(null==e?void 0:e.t)||(null==e?void 0:e.U)&&e.U.then((()=>{}))}})()))}componentOnReady(){return n(this).U}};o.D=e[0],m.includes(c)||p.get(c)||(h.push(c),p.define(c,he(u,o,1)))}))})),h.length>0&&(g&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(o=f.O)?o:k(a);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,$?$.nextSibling:y.firstChild)}S=!1,w.length?w.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(ue,30)))},me=e=>f.O=e;export{de as b,U as c,T as h,h as p,l as r,me as s}
@@ -0,0 +1 @@
1
+ import{r as e,c as o,h as i}from"./p-3b8cc0b1.js";const t=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),s=class{constructor(i){e(this,i),this.cancel=o(this,"modalCloseEvent",7),this.userAgent=window.navigator.userAgent,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.setClientStylingURL=()=>{let e=document.createElement("style");setTimeout((()=>{e.innerHTML=this.clientStylingUrlContent,this.stylingContainer.prepend(e)}),1)},this.titleModal=void 0,this.visible=!0,this.clientStyling="",this.clientStylingUrlContent="",this.limitStylingAppends=!1}handleHelperModalClose(){this.visible=!1,this.cancel.emit()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){return this.visible&&i("div",{key:"ba2aed789565b37bfdbb34bdf3ccace827231653",class:this.visible?"HelperModalWrapper HelperModalVisible":"HelperModalWrapper",ref:e=>this.stylingContainer=e},i("div",{key:"151ca4cd80d259ac955b92b10bf6f0df2698a937",class:"HelperModalWrapper HelperModalVisible"},i("div",{key:"804cb1dea73321c4935e4a8ddb1136e98e89a070",class:"HelperModalContent"+(t(this.userAgent)?" HelperModalMobileContent":"")},i("span",{key:"30cf7928c1e4baa53f3514fc1930823db76c874c",class:"HelperModalClose"+(t(this.userAgent)?" HelperModalMobileClose":""),onClick:this.handleHelperModalClose.bind(this)},"X"),i("slot",{key:"5c1323a98cdcd09669020a00affe5673856e807e"}))))}};s.style=":host{display:block}.HelperModalWrapper{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.7);opacity:0;visibility:hidden;transform:scale(1.1);transition:visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;z-index:1}.HelperModalVisible{opacity:1;visibility:visible;transform:scale(1);transition:visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s}.HelperModalContent{position:relative;border:solid 1px var(--emw--color-gray-transparency-40, #848e97);box-shadow:2px 2px 2px rgba(0, 0, 0, 0.007);font-size:14px;padding:10px 10px 5px 10px;background-color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:4px;width:600px;max-height:600px;overflow-y:scroll}.HelperModalMobileContent{background:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));top:50%;left:50%;transform:translate(-50%, -50%);border-radius:4px;width:80%;max-height:350px}.HelperModalClose{cursor:pointer;position:absolute;top:15px;right:15px;font-size:20px;color:var(--emw--button-text-color, #000)}.HelperModalMobileClose{position:absolute;top:15px;right:15px;font-size:20px;color:var(--emw--button-text-color, #000)}";export{s as helper_modal}
@@ -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;
@@ -1015,8 +1015,6 @@ export declare namespace JSXBase {
1015
1015
  autoPlay?: boolean;
1016
1016
  autoplay?: boolean | string;
1017
1017
  controls?: boolean;
1018
- controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1019
- controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1020
1018
  crossOrigin?: string;
1021
1019
  crossorigin?: string;
1022
1020
  loop?: boolean;
@@ -1566,10 +1564,6 @@ export declare namespace JSXBase {
1566
1564
  onSubmitCapture?: (event: Event) => void;
1567
1565
  onInvalid?: (event: Event) => void;
1568
1566
  onInvalidCapture?: (event: Event) => void;
1569
- onBeforeToggle?: (event: Event) => void;
1570
- onBeforeToggleCapture?: (event: Event) => void;
1571
- onToggle?: (event: Event) => void;
1572
- onToggleCapture?: (event: Event) => void;
1573
1567
  onLoad?: (event: Event) => void;
1574
1568
  onLoadCapture?: (event: Event) => void;
1575
1569
  onError?: (event: Event) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/helper-modal",
3
- "version": "1.56.0",
3
+ "version": "1.56.3",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",