@everymatrix/user-actions 1.90.27 → 1.90.28

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.
@@ -1,5 +1,5 @@
1
1
  const NAMESPACE = 'user-actions';
2
- const BUILD = /* user-actions */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: false, vdomClass: false, vdomFunctional: false, vdomKey: false, vdomListener: false, vdomPropOrAttr: false, vdomRef: false, vdomRender: false, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* user-actions */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: 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: true, 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: true };
3
3
 
4
4
  /*
5
5
  Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
@@ -26,6 +26,7 @@ var registerHost = (hostElement, cmpMeta) => {
26
26
  }
27
27
  return hostRefs.set(hostElement, hostRef);
28
28
  };
29
+ var isMemberInElement = (elm, memberName) => memberName in elm;
29
30
  var consoleError = (e, el) => (0, console.error)(e, el);
30
31
 
31
32
  // src/client/client-load-module.ts
@@ -48,10 +49,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
48
49
  }
49
50
  switch(bundleId) {
50
51
 
51
- case 'user-actions':
52
+ case 'user-actions_2':
52
53
  return import(
53
54
  /* webpackMode: "lazy" */
54
- './user-actions.entry.js').then(processMod, consoleError);
55
+ './user-actions_2.entry.js').then(processMod, consoleError);
55
56
  }
56
57
  }
57
58
  return import(
@@ -143,6 +144,14 @@ var flush = () => {
143
144
  };
144
145
  var nextTick = (cb) => promiseResolve().then(cb);
145
146
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
147
+
148
+ // src/utils/constants.ts
149
+ var EMPTY_OBJ = {};
150
+ var SVG_NS = "http://www.w3.org/2000/svg";
151
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
152
+
153
+ // src/utils/helpers.ts
154
+ var isDef = (v) => v != null;
146
155
  var isComplexType = (o) => {
147
156
  o = typeof o;
148
157
  return o === "object" || o === "function";
@@ -216,6 +225,70 @@ var uniqueTime = (key, measureText) => {
216
225
  };
217
226
  }
218
227
  };
228
+ var h = (nodeName, vnodeData, ...children) => {
229
+ let child = null;
230
+ let key = null;
231
+ let simple = false;
232
+ let lastSimple = false;
233
+ const vNodeChildren = [];
234
+ const walk = (c) => {
235
+ for (let i2 = 0; i2 < c.length; i2++) {
236
+ child = c[i2];
237
+ if (Array.isArray(child)) {
238
+ walk(child);
239
+ } else if (child != null && typeof child !== "boolean") {
240
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
241
+ child = String(child);
242
+ }
243
+ if (simple && lastSimple) {
244
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
245
+ } else {
246
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
247
+ }
248
+ lastSimple = simple;
249
+ }
250
+ }
251
+ };
252
+ walk(children);
253
+ if (vnodeData) {
254
+ if (vnodeData.key) {
255
+ key = vnodeData.key;
256
+ }
257
+ {
258
+ const classData = vnodeData.className || vnodeData.class;
259
+ if (classData) {
260
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
261
+ }
262
+ }
263
+ }
264
+ const vnode = newVNode(nodeName, null);
265
+ vnode.$attrs$ = vnodeData;
266
+ if (vNodeChildren.length > 0) {
267
+ vnode.$children$ = vNodeChildren;
268
+ }
269
+ {
270
+ vnode.$key$ = key;
271
+ }
272
+ return vnode;
273
+ };
274
+ var newVNode = (tag, text) => {
275
+ const vnode = {
276
+ $flags$: 0,
277
+ $tag$: tag,
278
+ $text$: text,
279
+ $elm$: null,
280
+ $children$: null
281
+ };
282
+ {
283
+ vnode.$attrs$ = null;
284
+ }
285
+ {
286
+ vnode.$key$ = null;
287
+ }
288
+ return vnode;
289
+ };
290
+ var Host = {};
291
+ var isHost = (node) => node && node.$tag$ === Host;
219
292
  var parsePropertyValue = (propValue, propType) => {
220
293
  if (propValue != null && !isComplexType(propValue)) {
221
294
  if (propType & 1 /* String */) {
@@ -296,6 +369,341 @@ var attachStyles = (hostRef) => {
296
369
  endAttachStyles();
297
370
  };
298
371
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
372
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
373
+ if (oldValue !== newValue) {
374
+ let isProp = isMemberInElement(elm, memberName);
375
+ let ln = memberName.toLowerCase();
376
+ if (memberName === "class") {
377
+ const classList = elm.classList;
378
+ const oldClasses = parseClassList(oldValue);
379
+ const newClasses = parseClassList(newValue);
380
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
381
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
382
+ } else if (memberName === "key") ; else if (memberName === "ref") {
383
+ if (newValue) {
384
+ newValue(elm);
385
+ }
386
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
387
+ if (memberName[2] === "-") {
388
+ memberName = memberName.slice(3);
389
+ } else if (isMemberInElement(win, ln)) {
390
+ memberName = ln.slice(2);
391
+ } else {
392
+ memberName = ln[2] + memberName.slice(3);
393
+ }
394
+ if (oldValue || newValue) {
395
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
396
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
397
+ if (oldValue) {
398
+ plt.rel(elm, memberName, oldValue, capture);
399
+ }
400
+ if (newValue) {
401
+ plt.ael(elm, memberName, newValue, capture);
402
+ }
403
+ }
404
+ } else {
405
+ const isComplex = isComplexType(newValue);
406
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
407
+ try {
408
+ if (!elm.tagName.includes("-")) {
409
+ const n = newValue == null ? "" : newValue;
410
+ if (memberName === "list") {
411
+ isProp = false;
412
+ } else if (oldValue == null || elm[memberName] != n) {
413
+ elm[memberName] = n;
414
+ }
415
+ } else {
416
+ elm[memberName] = newValue;
417
+ }
418
+ } catch (e) {
419
+ }
420
+ }
421
+ if (newValue == null || newValue === false) {
422
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
423
+ {
424
+ elm.removeAttribute(memberName);
425
+ }
426
+ }
427
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
428
+ newValue = newValue === true ? "" : newValue;
429
+ {
430
+ elm.setAttribute(memberName, newValue);
431
+ }
432
+ }
433
+ }
434
+ }
435
+ };
436
+ var parseClassListRegex = /\s/;
437
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
438
+ var CAPTURE_EVENT_SUFFIX = "Capture";
439
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
440
+
441
+ // src/runtime/vdom/update-element.ts
442
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
443
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
444
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
445
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
446
+ {
447
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
448
+ if (!(memberName in newVnodeAttrs)) {
449
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
450
+ }
451
+ }
452
+ }
453
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
454
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
455
+ }
456
+ };
457
+ function sortedAttrNames(attrNames) {
458
+ return attrNames.includes("ref") ? (
459
+ // we need to sort these to ensure that `'ref'` is the last attr
460
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
461
+ ) : (
462
+ // no need to sort, return the original array
463
+ attrNames
464
+ );
465
+ }
466
+
467
+ // src/runtime/vdom/vdom-render.ts
468
+ var scopeId;
469
+ var hostTagName;
470
+ var useNativeShadowDom = false;
471
+ var isSvgMode = false;
472
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
473
+ const newVNode2 = newParentVNode.$children$[childIndex];
474
+ let i2 = 0;
475
+ let elm;
476
+ let childNode;
477
+ if (newVNode2.$text$ !== null) {
478
+ elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
479
+ } else {
480
+ if (!isSvgMode) {
481
+ isSvgMode = newVNode2.$tag$ === "svg";
482
+ }
483
+ elm = newVNode2.$elm$ = doc.createElementNS(
484
+ isSvgMode ? SVG_NS : HTML_NS,
485
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
486
+ ) ;
487
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
488
+ isSvgMode = false;
489
+ }
490
+ {
491
+ updateElement(null, newVNode2, isSvgMode);
492
+ }
493
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
494
+ elm.classList.add(elm["s-si"] = scopeId);
495
+ }
496
+ if (newVNode2.$children$) {
497
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
498
+ childNode = createElm(oldParentVNode, newVNode2, i2);
499
+ if (childNode) {
500
+ elm.appendChild(childNode);
501
+ }
502
+ }
503
+ }
504
+ {
505
+ if (newVNode2.$tag$ === "svg") {
506
+ isSvgMode = false;
507
+ } else if (elm.tagName === "foreignObject") {
508
+ isSvgMode = true;
509
+ }
510
+ }
511
+ }
512
+ elm["s-hn"] = hostTagName;
513
+ return elm;
514
+ };
515
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
516
+ let containerElm = parentElm;
517
+ let childNode;
518
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
519
+ containerElm = containerElm.shadowRoot;
520
+ }
521
+ for (; startIdx <= endIdx; ++startIdx) {
522
+ if (vnodes[startIdx]) {
523
+ childNode = createElm(null, parentVNode, startIdx);
524
+ if (childNode) {
525
+ vnodes[startIdx].$elm$ = childNode;
526
+ insertBefore(containerElm, childNode, before);
527
+ }
528
+ }
529
+ }
530
+ };
531
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
532
+ for (let index = startIdx; index <= endIdx; ++index) {
533
+ const vnode = vnodes[index];
534
+ if (vnode) {
535
+ const elm = vnode.$elm$;
536
+ nullifyVNodeRefs(vnode);
537
+ if (elm) {
538
+ elm.remove();
539
+ }
540
+ }
541
+ }
542
+ };
543
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
544
+ let oldStartIdx = 0;
545
+ let newStartIdx = 0;
546
+ let idxInOld = 0;
547
+ let i2 = 0;
548
+ let oldEndIdx = oldCh.length - 1;
549
+ let oldStartVnode = oldCh[0];
550
+ let oldEndVnode = oldCh[oldEndIdx];
551
+ let newEndIdx = newCh.length - 1;
552
+ let newStartVnode = newCh[0];
553
+ let newEndVnode = newCh[newEndIdx];
554
+ let node;
555
+ let elmToMove;
556
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
557
+ if (oldStartVnode == null) {
558
+ oldStartVnode = oldCh[++oldStartIdx];
559
+ } else if (oldEndVnode == null) {
560
+ oldEndVnode = oldCh[--oldEndIdx];
561
+ } else if (newStartVnode == null) {
562
+ newStartVnode = newCh[++newStartIdx];
563
+ } else if (newEndVnode == null) {
564
+ newEndVnode = newCh[--newEndIdx];
565
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
566
+ patch(oldStartVnode, newStartVnode, isInitialRender);
567
+ oldStartVnode = oldCh[++oldStartIdx];
568
+ newStartVnode = newCh[++newStartIdx];
569
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
570
+ patch(oldEndVnode, newEndVnode, isInitialRender);
571
+ oldEndVnode = oldCh[--oldEndIdx];
572
+ newEndVnode = newCh[--newEndIdx];
573
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
574
+ patch(oldStartVnode, newEndVnode, isInitialRender);
575
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
576
+ oldStartVnode = oldCh[++oldStartIdx];
577
+ newEndVnode = newCh[--newEndIdx];
578
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
579
+ patch(oldEndVnode, newStartVnode, isInitialRender);
580
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
581
+ oldEndVnode = oldCh[--oldEndIdx];
582
+ newStartVnode = newCh[++newStartIdx];
583
+ } else {
584
+ idxInOld = -1;
585
+ {
586
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
587
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
588
+ idxInOld = i2;
589
+ break;
590
+ }
591
+ }
592
+ }
593
+ if (idxInOld >= 0) {
594
+ elmToMove = oldCh[idxInOld];
595
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
596
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
597
+ } else {
598
+ patch(elmToMove, newStartVnode, isInitialRender);
599
+ oldCh[idxInOld] = void 0;
600
+ node = elmToMove.$elm$;
601
+ }
602
+ newStartVnode = newCh[++newStartIdx];
603
+ } else {
604
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
605
+ newStartVnode = newCh[++newStartIdx];
606
+ }
607
+ if (node) {
608
+ {
609
+ insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
610
+ }
611
+ }
612
+ }
613
+ }
614
+ if (oldStartIdx > oldEndIdx) {
615
+ addVnodes(
616
+ parentElm,
617
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
618
+ newVNode2,
619
+ newCh,
620
+ newStartIdx,
621
+ newEndIdx
622
+ );
623
+ } else if (newStartIdx > newEndIdx) {
624
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
625
+ }
626
+ };
627
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
628
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
629
+ if (!isInitialRender) {
630
+ return leftVNode.$key$ === rightVNode.$key$;
631
+ }
632
+ return true;
633
+ }
634
+ return false;
635
+ };
636
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
637
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
638
+ const oldChildren = oldVNode.$children$;
639
+ const newChildren = newVNode2.$children$;
640
+ const tag = newVNode2.$tag$;
641
+ const text = newVNode2.$text$;
642
+ if (text === null) {
643
+ {
644
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
645
+ }
646
+ {
647
+ if (tag === "slot" && !useNativeShadowDom) ; else {
648
+ updateElement(oldVNode, newVNode2, isSvgMode);
649
+ }
650
+ }
651
+ if (oldChildren !== null && newChildren !== null) {
652
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
653
+ } else if (newChildren !== null) {
654
+ if (oldVNode.$text$ !== null) {
655
+ elm.textContent = "";
656
+ }
657
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
658
+ } else if (oldChildren !== null) {
659
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
660
+ }
661
+ if (isSvgMode && tag === "svg") {
662
+ isSvgMode = false;
663
+ }
664
+ } else if (oldVNode.$text$ !== text) {
665
+ elm.data = text;
666
+ }
667
+ };
668
+ var nullifyVNodeRefs = (vNode) => {
669
+ {
670
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
671
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
672
+ }
673
+ };
674
+ var insertBefore = (parent, newNode, reference) => {
675
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
676
+ return inserted;
677
+ };
678
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
679
+ const hostElm = hostRef.$hostElement$;
680
+ const cmpMeta = hostRef.$cmpMeta$;
681
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
682
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
683
+ hostTagName = hostElm.tagName;
684
+ if (cmpMeta.$attrsToReflect$) {
685
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
686
+ cmpMeta.$attrsToReflect$.map(
687
+ ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
688
+ );
689
+ }
690
+ if (isInitialLoad && rootVnode.$attrs$) {
691
+ for (const key of Object.keys(rootVnode.$attrs$)) {
692
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
693
+ rootVnode.$attrs$[key] = hostElm[key];
694
+ }
695
+ }
696
+ }
697
+ rootVnode.$tag$ = null;
698
+ rootVnode.$flags$ |= 4 /* isHost */;
699
+ hostRef.$vnode$ = rootVnode;
700
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
701
+ {
702
+ scopeId = hostElm["s-sc"];
703
+ }
704
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
705
+ patch(oldVNode, rootVnode, isInitialLoad);
706
+ };
299
707
 
300
708
  // src/runtime/update-component.ts
301
709
  var attachToAncestor = (hostRef, ancestorComponent) => {
@@ -355,7 +763,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
355
763
  }
356
764
  const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
357
765
  {
358
- callRender(hostRef, instance, elm);
766
+ callRender(hostRef, instance, elm, isInitialLoad);
359
767
  }
360
768
  if (rc) {
361
769
  rc.map((cb) => cb());
@@ -386,11 +794,8 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
386
794
  }
387
795
  {
388
796
  {
389
- const shadowRoot = elm.shadowRoot;
390
- if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {
391
- shadowRoot.textContent = instance;
392
- } else {
393
- elm.textContent = instance;
797
+ {
798
+ renderVdom(hostRef, instance, isInitialLoad);
394
799
  }
395
800
  }
396
801
  }
@@ -403,12 +808,16 @@ var postUpdateComponent = (hostRef) => {
403
808
  const tagName = hostRef.$cmpMeta$.$tagName$;
404
809
  const elm = hostRef.$hostElement$;
405
810
  const endPostUpdate = createTime("postUpdate", tagName);
811
+ const instance = hostRef.$lazyInstance$ ;
406
812
  const ancestorComponent = hostRef.$ancestorComponent$;
407
813
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
408
814
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
409
815
  {
410
816
  addHydratedFlag(elm);
411
817
  }
818
+ {
819
+ safeCall(instance, "componentDidLoad");
820
+ }
412
821
  endPostUpdate();
413
822
  {
414
823
  hostRef.$onReadyResolve$(elm);
@@ -460,6 +869,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
460
869
  `Couldn't find host element for "${cmpMeta.$tagName$}" 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).`
461
870
  );
462
871
  }
872
+ const elm = hostRef.$hostElement$ ;
463
873
  const oldVal = hostRef.$instanceValues$.get(propName);
464
874
  const flags = hostRef.$flags$;
465
875
  const instance = hostRef.$lazyInstance$ ;
@@ -469,6 +879,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
469
879
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
470
880
  hostRef.$instanceValues$.set(propName, newVal);
471
881
  if (instance) {
882
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
883
+ const watchMethods = cmpMeta.$watchers$[propName];
884
+ if (watchMethods) {
885
+ watchMethods.map((watchMethodName) => {
886
+ try {
887
+ instance[watchMethodName](newVal, oldVal, propName);
888
+ } catch (e) {
889
+ consoleError(e, elm);
890
+ }
891
+ });
892
+ }
893
+ }
472
894
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
473
895
  scheduleUpdate(hostRef, false);
474
896
  }
@@ -480,7 +902,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
480
902
  var proxyComponent = (Cstr, cmpMeta, flags) => {
481
903
  var _a, _b;
482
904
  const prototype = Cstr.prototype;
483
- if (cmpMeta.$members$ || BUILD.watchCallback ) {
905
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
906
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
907
+ cmpMeta.$watchers$ = Cstr.watchers;
908
+ }
484
909
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
485
910
  members.map(([memberName, [memberFlags]]) => {
486
911
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -528,8 +953,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
528
953
  /* @__PURE__ */ new Set([
529
954
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
530
955
  ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
956
+ var _a2;
531
957
  const attrName = m[1] || propName;
532
958
  attrNameToPropName.set(attrName, propName);
959
+ if (m[0] & 512 /* ReflectAttr */) {
960
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
961
+ }
533
962
  return attrName;
534
963
  })
535
964
  ])
@@ -558,6 +987,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
558
987
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
559
988
  }
560
989
  if (!Cstr.isProxied) {
990
+ {
991
+ cmpMeta.$watchers$ = Cstr.watchers;
992
+ }
561
993
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
562
994
  Cstr.isProxied = true;
563
995
  }
@@ -573,6 +1005,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
573
1005
  {
574
1006
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
575
1007
  }
1008
+ {
1009
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1010
+ }
576
1011
  endNewInstance();
577
1012
  } else {
578
1013
  Cstr = elm.constructor;
@@ -642,6 +1077,9 @@ var connectedCallback = (elm) => {
642
1077
  }
643
1078
  };
644
1079
  var disconnectInstance = (instance) => {
1080
+ {
1081
+ safeCall(instance, "disconnectedCallback");
1082
+ }
645
1083
  };
646
1084
  var disconnectedCallback = async (elm) => {
647
1085
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -652,8 +1090,10 @@ var disconnectedCallback = async (elm) => {
652
1090
  hostRef.$rmListeners$ = void 0;
653
1091
  }
654
1092
  }
655
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
656
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1093
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1094
+ disconnectInstance(hostRef.$lazyInstance$);
1095
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1096
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
657
1097
  }
658
1098
  }
659
1099
  };
@@ -676,6 +1116,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
676
1116
  let hasSlotRelocation = false;
677
1117
  lazyBundles.map((lazyBundle) => {
678
1118
  lazyBundle[1].map((compactMeta) => {
1119
+ var _a2;
679
1120
  const cmpMeta = {
680
1121
  $flags$: compactMeta[0],
681
1122
  $tagName$: compactMeta[1],
@@ -691,6 +1132,12 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
691
1132
  {
692
1133
  cmpMeta.$listeners$ = compactMeta[3];
693
1134
  }
1135
+ {
1136
+ cmpMeta.$attrsToReflect$ = [];
1137
+ }
1138
+ {
1139
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1140
+ }
694
1141
  const tagName = cmpMeta.$tagName$;
695
1142
  const HostElement = class extends HTMLElement {
696
1143
  // StencilLazyHost
@@ -811,4 +1258,4 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
811
1258
  // src/runtime/nonce.ts
812
1259
  var setNonce = (nonce) => plt.$nonce$ = nonce;
813
1260
 
814
- export { bootstrapLazy as b, promiseResolve as p, registerInstance as r, setNonce as s };
1261
+ export { bootstrapLazy as b, h, promiseResolve as p, registerInstance as r, setNonce as s };
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-2b2bb7fc.js';
2
- export { s as setNonce } from './index-2b2bb7fc.js';
1
+ import { b as bootstrapLazy } from './index-ec24e8d4.js';
2
+ export { s as setNonce } from './index-ec24e8d4.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["user-actions",[[1,"user-actions",{"endpoint":[1],"userid":[1],"actionStack":[32]},[[8,"message","handleEvent"]]]]]], options);
8
+ return bootstrapLazy([["user-actions_2",[[1,"user-actions",{"mbSource":[513,"mb-source"],"endpoint":[1],"userid":[1],"operatorid":[1],"playercurrency":[513],"hasfundsacknowledgment":[1],"session":[513],"language":[1537],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"currencylocale":[513],"currencydisplay":[513],"maximumfractiondigits":[513],"minimumfractiondigits":[513],"customdisplayformat":[513],"alwaysshowdecimals":[513],"actionStack":[32],"customerFundsProtectionActive":[32]},[[8,"message","handleEvent"]]],[1,"user-funds-acknowledgment",{"session":[513],"operatorid":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"endpoint":[513],"language":[1537],"translationUrl":[513,"translation-url"],"currencylocale":[513],"currencydisplay":[513],"maximumfractiondigits":[513],"minimumfractiondigits":[513],"customdisplayformat":[513],"alwaysshowdecimals":[513],"playercurrency":[513],"isLoading":[32],"isConsentChecked":[32],"totalCashAmount":[32],"errorMessage":[32],"consentsSubmitted":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-2b2bb7fc.js';
2
- export { s as setNonce } from './index-2b2bb7fc.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-ec24e8d4.js';
2
+ export { s as setNonce } from './index-ec24e8d4.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["user-actions",[[1,"user-actions",{"endpoint":[1],"userid":[1],"actionStack":[32]},[[8,"message","handleEvent"]]]]]], options);
19
+ return bootstrapLazy([["user-actions_2",[[1,"user-actions",{"mbSource":[513,"mb-source"],"endpoint":[1],"userid":[1],"operatorid":[1],"playercurrency":[513],"hasfundsacknowledgment":[1],"session":[513],"language":[1537],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"currencylocale":[513],"currencydisplay":[513],"maximumfractiondigits":[513],"minimumfractiondigits":[513],"customdisplayformat":[513],"alwaysshowdecimals":[513],"actionStack":[32],"customerFundsProtectionActive":[32]},[[8,"message","handleEvent"]]],[1,"user-funds-acknowledgment",{"session":[513],"operatorid":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"endpoint":[513],"language":[1537],"translationUrl":[513,"translation-url"],"currencylocale":[513],"currencydisplay":[513],"maximumfractiondigits":[513],"minimumfractiondigits":[513],"customdisplayformat":[513],"alwaysshowdecimals":[513],"playercurrency":[513],"isLoading":[32],"isConsentChecked":[32],"totalCashAmount":[32],"errorMessage":[32],"consentsSubmitted":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
20
20
  });