@jaak.ai/stamps 2.1.0-dev.9 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
  2. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  3. package/dist/cjs/{index-BfhtOB0D.js → index-Ga0t6BMe.js} +176 -119
  4. package/dist/cjs/index-Ga0t6BMe.js.map +1 -0
  5. package/dist/cjs/jaak-stamps-webcomponent.cjs.js +5 -4
  6. package/dist/cjs/jaak-stamps-webcomponent.cjs.js.map +1 -1
  7. package/dist/cjs/jaak-stamps.cjs.entry.js +144 -416
  8. package/dist/cjs/jaak-stamps.cjs.entry.js.map +1 -1
  9. package/dist/cjs/jaak-stamps.entry.cjs.js.map +1 -1
  10. package/dist/cjs/loader.cjs.js +4 -3
  11. package/dist/cjs/loader.cjs.js.map +1 -1
  12. package/dist/collection/collection-manifest.json +1 -1
  13. package/dist/collection/components/my-component/my-component.css +1 -1
  14. package/dist/collection/components/my-component/my-component.js +53 -300
  15. package/dist/collection/components/my-component/my-component.js.map +1 -1
  16. package/dist/collection/services/CameraService.js +84 -2
  17. package/dist/collection/services/CameraService.js.map +1 -1
  18. package/dist/collection/services/DetectionService.js +7 -148
  19. package/dist/collection/services/DetectionService.js.map +1 -1
  20. package/dist/collection/services/interfaces/IDetectionService.js.map +1 -1
  21. package/dist/components/index.js +165 -113
  22. package/dist/components/index.js.map +1 -1
  23. package/dist/components/jaak-stamps.js +145 -419
  24. package/dist/components/jaak-stamps.js.map +1 -1
  25. package/dist/esm/app-globals-DQuL1Twl.js +6 -0
  26. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  27. package/dist/esm/{index-BP1Q4KOg.js → index-Drbzcuq-.js} +177 -119
  28. package/dist/esm/index-Drbzcuq-.js.map +1 -0
  29. package/dist/esm/jaak-stamps-webcomponent.js +5 -4
  30. package/dist/esm/jaak-stamps-webcomponent.js.map +1 -1
  31. package/dist/esm/jaak-stamps.entry.js +144 -416
  32. package/dist/esm/jaak-stamps.entry.js.map +1 -1
  33. package/dist/esm/loader.js +4 -3
  34. package/dist/esm/loader.js.map +1 -1
  35. package/dist/jaak-stamps-webcomponent/jaak-stamps-webcomponent.esm.js +1 -1
  36. package/dist/jaak-stamps-webcomponent/jaak-stamps-webcomponent.esm.js.map +1 -1
  37. package/dist/jaak-stamps-webcomponent/jaak-stamps.entry.esm.js.map +1 -1
  38. package/dist/jaak-stamps-webcomponent/loader.esm.js.map +1 -1
  39. package/dist/jaak-stamps-webcomponent/p-DQuL1Twl.js +2 -0
  40. package/dist/jaak-stamps-webcomponent/p-DQuL1Twl.js.map +1 -0
  41. package/dist/jaak-stamps-webcomponent/p-Drbzcuq-.js +3 -0
  42. package/dist/jaak-stamps-webcomponent/p-Drbzcuq-.js.map +1 -0
  43. package/dist/jaak-stamps-webcomponent/p-c06e5d7b.entry.js +2 -0
  44. package/dist/jaak-stamps-webcomponent/p-c06e5d7b.entry.js.map +1 -0
  45. package/dist/types/components/my-component/my-component.d.ts +1 -27
  46. package/dist/types/components.d.ts +1 -3
  47. package/dist/types/services/CameraService.d.ts +1 -0
  48. package/dist/types/services/DetectionService.d.ts +1 -9
  49. package/dist/types/services/interfaces/IDetectionService.d.ts +0 -6
  50. package/dist/types/stencil-public-runtime.d.ts +12 -5
  51. package/package.json +3 -1
  52. package/dist/cjs/index-BfhtOB0D.js.map +0 -1
  53. package/dist/esm/index-BP1Q4KOg.js.map +0 -1
  54. package/dist/jaak-stamps-webcomponent/p-BP1Q4KOg.js +0 -3
  55. package/dist/jaak-stamps-webcomponent/p-BP1Q4KOg.js.map +0 -1
  56. package/dist/jaak-stamps-webcomponent/p-c115e01a.entry.js +0 -2
  57. package/dist/jaak-stamps-webcomponent/p-c115e01a.entry.js.map +0 -1
@@ -0,0 +1,6 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };
4
+ //# sourceMappingURL=app-globals-DQuL1Twl.js.map
5
+
6
+ //# sourceMappingURL=app-globals-DQuL1Twl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-globals-DQuL1Twl.js","sources":["@stencil/core/internal/app-globals"],"sourcesContent":["export const globalScripts = () => {};\nexport const globalStyles = \"\";\n"],"names":[],"mappings":"AAAY,MAAC,aAAa,GAAG,MAAM;;;;"}
@@ -1,11 +1,8 @@
1
1
  const NAMESPACE = 'jaak-stamps-webcomponent';
2
2
  const BUILD = /* jaak-stamps-webcomponent */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
3
3
 
4
- const globalScripts = () => {};
5
- const globalStyles = "";
6
-
7
4
  /*
8
- Stencil Client Platform v4.33.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.36.3 | MIT Licensed | https://stenciljs.com
9
6
  */
10
7
  var __defProp = Object.defineProperty;
11
8
  var __export = (target, all) => {
@@ -107,7 +104,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
107
104
 
108
105
  // src/client/client-style.ts
109
106
  var styles = /* @__PURE__ */ new Map();
110
- var HYDRATED_STYLE_ID = "sty-id";
111
107
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
112
108
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
113
109
  var win = typeof window !== "undefined" ? window : {};
@@ -129,6 +125,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
129
125
  }
130
126
  return false;
131
127
  })() ;
128
+ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
132
129
  var queuePending = false;
133
130
  var queueDomReads = [];
134
131
  var queueDomWrites = [];
@@ -228,12 +225,24 @@ var unwrapErr = (result) => {
228
225
  throw result.value;
229
226
  }
230
227
  };
228
+
229
+ // src/utils/style.ts
230
+ function createStyleSheetIfNeededAndSupported(styles2) {
231
+ return void 0;
232
+ }
233
+
234
+ // src/utils/shadow-root.ts
235
+ var globalStyleSheet;
231
236
  function createShadowRoot(cmpMeta) {
237
+ var _a;
232
238
  const shadowRoot = this.attachShadow({ mode: "open" });
233
- if (supportsConstructableStylesheets) {
234
- const sheet = new CSSStyleSheet();
235
- sheet.replaceSync(globalStyles);
236
- shadowRoot.adoptedStyleSheets.push(sheet);
239
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
240
+ if (globalStyleSheet) {
241
+ if (supportsMutableAdoptedStyleSheets) {
242
+ shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
243
+ } else {
244
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
245
+ }
237
246
  }
238
247
  }
239
248
  var createTime = (fnName, tagName = "") => {
@@ -250,6 +259,110 @@ var uniqueTime = (key, measureText) => {
250
259
  };
251
260
  }
252
261
  };
262
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
263
+ var registerStyle = (scopeId2, cssText, allowCS) => {
264
+ let style = styles.get(scopeId2);
265
+ if (supportsConstructableStylesheets && allowCS) {
266
+ style = style || new CSSStyleSheet();
267
+ if (typeof style === "string") {
268
+ style = cssText;
269
+ } else {
270
+ style.replaceSync(cssText);
271
+ }
272
+ } else {
273
+ style = cssText;
274
+ }
275
+ styles.set(scopeId2, style);
276
+ };
277
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
278
+ var _a;
279
+ const scopeId2 = getScopeId(cmpMeta);
280
+ const style = styles.get(scopeId2);
281
+ if (!win.document) {
282
+ return scopeId2;
283
+ }
284
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
285
+ if (style) {
286
+ if (typeof style === "string") {
287
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
288
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
289
+ let styleElm;
290
+ if (!appliedStyles) {
291
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
292
+ }
293
+ if (!appliedStyles.has(scopeId2)) {
294
+ {
295
+ styleElm = win.document.createElement("style");
296
+ styleElm.innerHTML = style;
297
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
298
+ if (nonce != null) {
299
+ styleElm.setAttribute("nonce", nonce);
300
+ }
301
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
302
+ if (styleContainerNode.nodeName === "HEAD") {
303
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
304
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
305
+ styleContainerNode.insertBefore(
306
+ styleElm,
307
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
308
+ );
309
+ } else if ("host" in styleContainerNode) {
310
+ if (supportsConstructableStylesheets) {
311
+ const stylesheet = new CSSStyleSheet();
312
+ stylesheet.replaceSync(style);
313
+ if (supportsMutableAdoptedStyleSheets) {
314
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
315
+ } else {
316
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
317
+ }
318
+ } else {
319
+ const existingStyleContainer = styleContainerNode.querySelector("style");
320
+ if (existingStyleContainer) {
321
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
322
+ } else {
323
+ styleContainerNode.prepend(styleElm);
324
+ }
325
+ }
326
+ } else {
327
+ styleContainerNode.append(styleElm);
328
+ }
329
+ }
330
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
331
+ styleContainerNode.insertBefore(styleElm, null);
332
+ }
333
+ }
334
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
335
+ styleElm.innerHTML += SLOT_FB_CSS;
336
+ }
337
+ if (appliedStyles) {
338
+ appliedStyles.add(scopeId2);
339
+ }
340
+ }
341
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
342
+ if (supportsMutableAdoptedStyleSheets) {
343
+ styleContainerNode.adoptedStyleSheets.push(style);
344
+ } else {
345
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
346
+ }
347
+ }
348
+ }
349
+ return scopeId2;
350
+ };
351
+ var attachStyles = (hostRef) => {
352
+ const cmpMeta = hostRef.$cmpMeta$;
353
+ const elm = hostRef.$hostElement$;
354
+ const flags = cmpMeta.$flags$;
355
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
356
+ const scopeId2 = addStyle(
357
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
358
+ cmpMeta);
359
+ if (flags & 10 /* needsScopedEncapsulation */) {
360
+ elm["s-sc"] = scopeId2;
361
+ elm.classList.add(scopeId2 + "-h");
362
+ }
363
+ endAttachStyles();
364
+ };
365
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
253
366
  var h = (nodeName, vnodeData, ...children) => {
254
367
  let child = null;
255
368
  let key = null;
@@ -326,10 +439,18 @@ var createSupportsRuleRe = (selector) => {
326
439
  createSupportsRuleRe("::slotted");
327
440
  createSupportsRuleRe(":host");
328
441
  createSupportsRuleRe(":host-context");
329
- var parsePropertyValue = (propValue, propType) => {
442
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
443
+ if (typeof propValue === "string" && (propType & 16 /* Unknown */ || propType & 8 /* Any */) && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
444
+ try {
445
+ return JSON.parse(propValue);
446
+ } catch (e) {
447
+ }
448
+ }
330
449
  if (propValue != null && !isComplexType(propValue)) {
331
450
  if (propType & 4 /* Boolean */) {
332
- return propValue === "false" ? false : propValue === "" || !!propValue;
451
+ {
452
+ return propValue === "false" ? false : propValue === "" || !!propValue;
453
+ }
333
454
  }
334
455
  if (propType & 2 /* Number */) {
335
456
  return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
@@ -341,7 +462,10 @@ var parsePropertyValue = (propValue, propType) => {
341
462
  }
342
463
  return propValue;
343
464
  };
344
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
465
+ var getElement = (ref) => {
466
+ var _a;
467
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
468
+ };
345
469
 
346
470
  // src/runtime/event-emitter.ts
347
471
  var createEvent = (ref, name, flags) => {
@@ -362,102 +486,6 @@ var emitEvent = (elm, name, opts) => {
362
486
  elm.dispatchEvent(ev);
363
487
  return ev;
364
488
  };
365
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
366
- var registerStyle = (scopeId2, cssText, allowCS) => {
367
- let style = styles.get(scopeId2);
368
- if (supportsConstructableStylesheets && allowCS) {
369
- style = style || new CSSStyleSheet();
370
- if (typeof style === "string") {
371
- style = cssText;
372
- } else {
373
- style.replaceSync(cssText);
374
- }
375
- } else {
376
- style = cssText;
377
- }
378
- styles.set(scopeId2, style);
379
- };
380
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
381
- var _a;
382
- const scopeId2 = getScopeId(cmpMeta);
383
- const style = styles.get(scopeId2);
384
- if (!win.document) {
385
- return scopeId2;
386
- }
387
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
388
- if (style) {
389
- if (typeof style === "string") {
390
- styleContainerNode = styleContainerNode.head || styleContainerNode;
391
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
392
- let styleElm;
393
- if (!appliedStyles) {
394
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
395
- }
396
- if (!appliedStyles.has(scopeId2)) {
397
- {
398
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
399
- styleElm.innerHTML = style;
400
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
401
- if (nonce != null) {
402
- styleElm.setAttribute("nonce", nonce);
403
- }
404
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
405
- if (styleContainerNode.nodeName === "HEAD") {
406
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
407
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
408
- styleContainerNode.insertBefore(
409
- styleElm,
410
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
411
- );
412
- } else if ("host" in styleContainerNode) {
413
- if (supportsConstructableStylesheets) {
414
- const stylesheet = new CSSStyleSheet();
415
- stylesheet.replaceSync(style);
416
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
417
- } else {
418
- const existingStyleContainer = styleContainerNode.querySelector("style");
419
- if (existingStyleContainer) {
420
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
421
- } else {
422
- styleContainerNode.prepend(styleElm);
423
- }
424
- }
425
- } else {
426
- styleContainerNode.append(styleElm);
427
- }
428
- }
429
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
430
- styleContainerNode.insertBefore(styleElm, null);
431
- }
432
- }
433
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
434
- styleElm.innerHTML += SLOT_FB_CSS;
435
- }
436
- if (appliedStyles) {
437
- appliedStyles.add(scopeId2);
438
- }
439
- }
440
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
441
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
442
- }
443
- }
444
- return scopeId2;
445
- };
446
- var attachStyles = (hostRef) => {
447
- const cmpMeta = hostRef.$cmpMeta$;
448
- const elm = hostRef.$hostElement$;
449
- const flags = cmpMeta.$flags$;
450
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
451
- const scopeId2 = addStyle(
452
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
453
- cmpMeta);
454
- if (flags & 10 /* needsScopedEncapsulation */) {
455
- elm["s-sc"] = scopeId2;
456
- elm.classList.add(scopeId2 + "-h");
457
- }
458
- endAttachStyles();
459
- };
460
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
461
489
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
462
490
  if (oldValue === newValue) {
463
491
  return;
@@ -778,7 +806,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
778
806
  !isInitialRender && BUILD.updatable && oldChildren !== null
779
807
  ) {
780
808
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
781
- }
809
+ } else ;
782
810
  } else if (oldVNode.$text$ !== text) {
783
811
  elm.data = text;
784
812
  }
@@ -837,6 +865,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
837
865
  }
838
866
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
839
867
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
868
+ if (isInitialLoad) {
869
+ queueMicrotask(() => {
870
+ dispatch();
871
+ });
872
+ return;
873
+ }
840
874
  return writeTask(dispatch) ;
841
875
  };
842
876
  var dispatchHooks = (hostRef, isInitialLoad) => {
@@ -974,6 +1008,9 @@ var addHydratedFlag = (elm) => {
974
1008
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
975
1009
  var setValue = (ref, propName, newVal, cmpMeta) => {
976
1010
  const hostRef = getHostRef(ref);
1011
+ if (!hostRef) {
1012
+ return;
1013
+ }
977
1014
  if (!hostRef) {
978
1015
  throw new Error(
979
1016
  `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/stenciljs/core/issues/5457).`
@@ -982,7 +1019,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
982
1019
  const oldVal = hostRef.$instanceValues$.get(propName);
983
1020
  const flags = hostRef.$flags$;
984
1021
  const instance = hostRef.$lazyInstance$ ;
985
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1022
+ newVal = parsePropertyValue(
1023
+ newVal,
1024
+ cmpMeta.$members$[propName][0]);
986
1025
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
987
1026
  const didValueChange = newVal !== oldVal && !areBothNaN;
988
1027
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
@@ -1031,6 +1070,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1031
1070
  Object.defineProperty(prototype, memberName, {
1032
1071
  set(newValue) {
1033
1072
  const ref = getHostRef(this);
1073
+ if (!ref) {
1074
+ return;
1075
+ }
1034
1076
  if (origSetter) {
1035
1077
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1036
1078
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
@@ -1038,7 +1080,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1038
1080
  } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1039
1081
  ref.$instanceValues$.set(memberName, currentValue);
1040
1082
  }
1041
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1083
+ origSetter.apply(this, [
1084
+ parsePropertyValue(
1085
+ newValue,
1086
+ memberFlags)
1087
+ ]);
1042
1088
  newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1043
1089
  setValue(this, memberName, newValue, cmpMeta);
1044
1090
  return;
@@ -1060,7 +1106,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1060
1106
  if (!ref.$instanceValues$.get(memberName) && currentValue) {
1061
1107
  ref.$instanceValues$.set(memberName, currentValue);
1062
1108
  }
1063
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1109
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
1110
+ newValue,
1111
+ memberFlags);
1064
1112
  setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1065
1113
  };
1066
1114
  if (ref.$lazyInstance$) {
@@ -1099,7 +1147,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1099
1147
  } else if (propName == null) {
1100
1148
  const hostRef = getHostRef(this);
1101
1149
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1102
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1150
+ if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1103
1151
  const instance = hostRef.$lazyInstance$ ;
1104
1152
  const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1105
1153
  entry == null ? void 0 : entry.forEach((callbackName) => {
@@ -1120,7 +1168,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1120
1168
  Cstr.observedAttributes = Array.from(
1121
1169
  /* @__PURE__ */ new Set([
1122
1170
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1123
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1171
+ ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1124
1172
  const attrName = m[1] || propName;
1125
1173
  attrNameToPropName.set(attrName, propName);
1126
1174
  return attrName;
@@ -1204,6 +1252,9 @@ var fireConnectedCallback = (instance, elm) => {
1204
1252
  var connectedCallback = (elm) => {
1205
1253
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1206
1254
  const hostRef = getHostRef(elm);
1255
+ if (!hostRef) {
1256
+ return;
1257
+ }
1207
1258
  const cmpMeta = hostRef.$cmpMeta$;
1208
1259
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1209
1260
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
@@ -1318,7 +1369,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1318
1369
  }
1319
1370
  }
1320
1371
  connectedCallback() {
1321
- getHostRef(this);
1372
+ const hostRef = getHostRef(this);
1373
+ if (!hostRef) {
1374
+ return;
1375
+ }
1322
1376
  if (!this.hasRegisteredEventListeners) {
1323
1377
  this.hasRegisteredEventListeners = true;
1324
1378
  }
@@ -1337,6 +1391,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1337
1391
  plt.raf(() => {
1338
1392
  var _a3;
1339
1393
  const hostRef = getHostRef(this);
1394
+ if (!hostRef) {
1395
+ return;
1396
+ }
1340
1397
  const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1341
1398
  if (i2 > -1) {
1342
1399
  deferredConnectedCallbacks.splice(i2, 1);
@@ -1347,7 +1404,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1347
1404
  });
1348
1405
  }
1349
1406
  componentOnReady() {
1350
- return getHostRef(this).$onReadyPromise$;
1407
+ var _a3;
1408
+ return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
1351
1409
  }
1352
1410
  };
1353
1411
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
@@ -1390,7 +1448,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1390
1448
  // src/runtime/nonce.ts
1391
1449
  var setNonce = (nonce) => plt.$nonce$ = nonce;
1392
1450
 
1393
- export { getElement as a, bootstrapLazy as b, createEvent as c, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1394
- //# sourceMappingURL=index-BP1Q4KOg.js.map
1451
+ export { bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1452
+ //# sourceMappingURL=index-Drbzcuq-.js.map
1395
1453
 
1396
- //# sourceMappingURL=index-BP1Q4KOg.js.map
1454
+ //# sourceMappingURL=index-Drbzcuq-.js.map