xv-webcomponents 0.1.5 → 0.1.6

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 (46) hide show
  1. package/dist/cjs/{index-ff2499dc.js → index-888a60d0.js} +113 -80
  2. package/dist/cjs/index-888a60d0.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/xv-button-v2_2.cjs.entry.js +3 -8
  5. package/dist/cjs/xv-button-v2_2.cjs.entry.js.map +1 -1
  6. package/dist/cjs/xv-webcomponents.cjs.js +3 -3
  7. package/dist/cjs/xv-webcomponents.cjs.js.map +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/xv-button/xv-button.js +1 -30
  10. package/dist/collection/components/xv-button/xv-button.js.map +1 -1
  11. package/dist/collection/components/xv-checkbox/xv-checkbox.js +1 -9
  12. package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +1 -1
  13. package/dist/esm/{index-48e3f7fe.js → index-5147034e.js} +113 -80
  14. package/dist/esm/index-5147034e.js.map +1 -0
  15. package/dist/esm/loader.js +3 -3
  16. package/dist/esm/xv-button-v2_2.entry.js +3 -8
  17. package/dist/esm/xv-button-v2_2.entry.js.map +1 -1
  18. package/dist/esm/xv-webcomponents.js +4 -4
  19. package/dist/esm/xv-webcomponents.js.map +1 -1
  20. package/dist/types/components/xv-button/xv-button.d.ts +0 -4
  21. package/dist/types/components/xv-checkbox/xv-checkbox.d.ts +0 -1
  22. package/dist/types/components.d.ts +0 -8
  23. package/dist/xv-webcomponents/p-02843f6e.entry.js +2 -0
  24. package/dist/xv-webcomponents/p-02843f6e.entry.js.map +1 -0
  25. package/dist/xv-webcomponents/p-b6c1c52d.js +3 -0
  26. package/dist/xv-webcomponents/p-b6c1c52d.js.map +1 -0
  27. package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
  28. package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
  29. package/package.json +1 -1
  30. package/dist/cjs/index-ff2499dc.js.map +0 -1
  31. package/dist/components/index.d.ts +0 -33
  32. package/dist/components/index.js +0 -9
  33. package/dist/components/index.js.map +0 -1
  34. package/dist/components/p-892a2cc1.js +0 -958
  35. package/dist/components/p-892a2cc1.js.map +0 -1
  36. package/dist/components/xv-button-v2.d.ts +0 -11
  37. package/dist/components/xv-button-v2.js +0 -70
  38. package/dist/components/xv-button-v2.js.map +0 -1
  39. package/dist/components/xv-checkbox-v2.d.ts +0 -11
  40. package/dist/components/xv-checkbox-v2.js +0 -49
  41. package/dist/components/xv-checkbox-v2.js.map +0 -1
  42. package/dist/esm/index-48e3f7fe.js.map +0 -1
  43. package/dist/xv-webcomponents/p-690a0beb.js +0 -3
  44. package/dist/xv-webcomponents/p-690a0beb.js.map +0 -1
  45. package/dist/xv-webcomponents/p-757d39ae.entry.js +0 -2
  46. package/dist/xv-webcomponents/p-757d39ae.entry.js.map +0 -1
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'xv-webcomponents';
24
- const BUILD = /* xv-webcomponents */ { 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: 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: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: false, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* xv-webcomponents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: 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: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: false, style: false, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.27.1 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -33,10 +33,15 @@ var __export = (target, all) => {
33
33
  };
34
34
 
35
35
  // src/client/client-host-ref.ts
36
- var hostRefs = /* @__PURE__ */ new WeakMap();
37
- var getHostRef = (ref) => hostRefs.get(ref);
36
+ var getHostRef = (ref) => {
37
+ if (ref.__stencil__getHostRef) {
38
+ return ref.__stencil__getHostRef();
39
+ }
40
+ return void 0;
41
+ };
38
42
  var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
43
+ lazyInstance.__stencil__getHostRef = () => hostRef;
44
+ hostRef.$lazyInstance$ = lazyInstance;
40
45
  };
41
46
  var registerHost = (hostElement, cmpMeta) => {
42
47
  const hostRef = {
@@ -50,7 +55,8 @@ var registerHost = (hostElement, cmpMeta) => {
50
55
  hostElement["s-p"] = [];
51
56
  hostElement["s-rc"] = [];
52
57
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
58
+ const ref = hostRef;
59
+ hostElement.__stencil__getHostRef = () => ref;
54
60
  return ref;
55
61
  };
56
62
  var isMemberInElement = (elm, memberName) => memberName in elm;
@@ -90,7 +96,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
90
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
91
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
92
98
  var win = typeof window !== "undefined" ? window : {};
93
- var doc = win.document || { head: {} };
94
99
  var plt = {
95
100
  $flags$: 0,
96
101
  $resourcesUrl$: "",
@@ -142,9 +147,9 @@ var isComplexType = (o) => {
142
147
  };
143
148
 
144
149
  // src/utils/query-nonce-meta-tag-content.ts
145
- function queryNonceMetaTagContent(doc2) {
150
+ function queryNonceMetaTagContent(doc) {
146
151
  var _a, _b, _c;
147
- return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
152
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
148
153
  }
149
154
 
150
155
  // src/utils/result.ts
@@ -308,68 +313,69 @@ var emitEvent = (elm, name, opts) => {
308
313
  };
309
314
  var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
310
315
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
311
- if (oldValue !== newValue) {
312
- let isProp = isMemberInElement(elm, memberName);
313
- let ln = memberName.toLowerCase();
314
- if (memberName === "class") {
315
- const classList = elm.classList;
316
- const oldClasses = parseClassList(oldValue);
317
- let newClasses = parseClassList(newValue);
318
- {
319
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
320
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
321
- }
322
- } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
323
- if (memberName[2] === "-") {
324
- memberName = memberName.slice(3);
325
- } else if (isMemberInElement(win, ln)) {
326
- memberName = ln.slice(2);
327
- } else {
328
- memberName = ln[2] + memberName.slice(3);
316
+ if (oldValue === newValue) {
317
+ return;
318
+ }
319
+ let isProp = isMemberInElement(elm, memberName);
320
+ let ln = memberName.toLowerCase();
321
+ if (memberName === "class") {
322
+ const classList = elm.classList;
323
+ const oldClasses = parseClassList(oldValue);
324
+ let newClasses = parseClassList(newValue);
325
+ {
326
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
327
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
328
+ }
329
+ } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
330
+ if (memberName[2] === "-") {
331
+ memberName = memberName.slice(3);
332
+ } else if (isMemberInElement(win, ln)) {
333
+ memberName = ln.slice(2);
334
+ } else {
335
+ memberName = ln[2] + memberName.slice(3);
336
+ }
337
+ if (oldValue || newValue) {
338
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
339
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
340
+ if (oldValue) {
341
+ plt.rel(elm, memberName, oldValue, capture);
329
342
  }
330
- if (oldValue || newValue) {
331
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
332
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
333
- if (oldValue) {
334
- plt.rel(elm, memberName, oldValue, capture);
335
- }
336
- if (newValue) {
337
- plt.ael(elm, memberName, newValue, capture);
338
- }
343
+ if (newValue) {
344
+ plt.ael(elm, memberName, newValue, capture);
339
345
  }
340
- } else {
341
- const isComplex = isComplexType(newValue);
342
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
343
- try {
344
- if (!elm.tagName.includes("-")) {
345
- const n = newValue == null ? "" : newValue;
346
- if (memberName === "list") {
347
- isProp = false;
348
- } else if (oldValue == null || elm[memberName] != n) {
349
- if (typeof elm.__lookupSetter__(memberName) === "function") {
350
- elm[memberName] = n;
351
- } else {
352
- elm.setAttribute(memberName, n);
353
- }
346
+ }
347
+ } else {
348
+ const isComplex = isComplexType(newValue);
349
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
350
+ try {
351
+ if (!elm.tagName.includes("-")) {
352
+ const n = newValue == null ? "" : newValue;
353
+ if (memberName === "list") {
354
+ isProp = false;
355
+ } else if (oldValue == null || elm[memberName] != n) {
356
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
357
+ elm[memberName] = n;
358
+ } else {
359
+ elm.setAttribute(memberName, n);
354
360
  }
355
- } else if (elm[memberName] !== newValue) {
356
- elm[memberName] = newValue;
357
361
  }
358
- } catch (e) {
362
+ } else if (elm[memberName] !== newValue) {
363
+ elm[memberName] = newValue;
359
364
  }
365
+ } catch (e) {
360
366
  }
361
- if (newValue == null || newValue === false) {
362
- if (newValue !== false || elm.getAttribute(memberName) === "") {
363
- {
364
- elm.removeAttribute(memberName);
365
- }
366
- }
367
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
368
- newValue = newValue === true ? "" : newValue;
367
+ }
368
+ if (newValue == null || newValue === false) {
369
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
369
370
  {
370
- elm.setAttribute(memberName, newValue);
371
+ elm.removeAttribute(memberName);
371
372
  }
372
373
  }
374
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
375
+ newValue = newValue === true ? "" : newValue;
376
+ {
377
+ elm.setAttribute(memberName, newValue);
378
+ }
373
379
  }
374
380
  }
375
381
  };
@@ -432,9 +438,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
432
438
  let elm;
433
439
  let childNode;
434
440
  if (newVNode2.$text$ !== null) {
435
- elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
441
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
436
442
  } else {
437
- elm = newVNode2.$elm$ = doc.createElement(
443
+ if (!win.document) {
444
+ throw new Error(
445
+ "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
446
+ );
447
+ }
448
+ elm = newVNode2.$elm$ = win.document.createElement(
438
449
  !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
439
450
  );
440
451
  {
@@ -579,13 +590,10 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
579
590
  const elm = newVNode2.$elm$ = oldVNode.$elm$;
580
591
  const oldChildren = oldVNode.$children$;
581
592
  const newChildren = newVNode2.$children$;
582
- const tag = newVNode2.$tag$;
583
593
  const text = newVNode2.$text$;
584
594
  if (text === null) {
585
595
  {
586
- if (tag === "slot" && !useNativeShadowDom) ; else {
587
- updateElement(oldVNode, newVNode2, isSvgMode);
588
- }
596
+ updateElement(oldVNode, newVNode2, isSvgMode);
589
597
  }
590
598
  if (oldChildren !== null && newChildren !== null) {
591
599
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
@@ -666,10 +674,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
666
674
  }
667
675
  let maybePromise;
668
676
  if (isInitialLoad) {
669
- {
670
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
671
- }
677
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
678
+ } else {
679
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
672
680
  }
681
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
673
682
  endSchedule();
674
683
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
675
684
  };
@@ -730,12 +739,15 @@ var postUpdateComponent = (hostRef) => {
730
739
  const tagName = hostRef.$cmpMeta$.$tagName$;
731
740
  const elm = hostRef.$hostElement$;
732
741
  const endPostUpdate = createTime("postUpdate", tagName);
742
+ const instance = hostRef.$lazyInstance$ ;
733
743
  const ancestorComponent = hostRef.$ancestorComponent$;
744
+ safeCall(instance, "componentDidRender", void 0, elm);
734
745
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
735
746
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
736
747
  {
737
748
  addHydratedFlag(elm);
738
749
  }
750
+ safeCall(instance, "componentDidLoad", void 0, elm);
739
751
  endPostUpdate();
740
752
  {
741
753
  hostRef.$onReadyResolve$(elm);
@@ -744,6 +756,7 @@ var postUpdateComponent = (hostRef) => {
744
756
  }
745
757
  }
746
758
  } else {
759
+ safeCall(instance, "componentDidUpdate", void 0, elm);
747
760
  endPostUpdate();
748
761
  }
749
762
  {
@@ -794,6 +807,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
794
807
  hostRef.$instanceValues$.set(propName, newVal);
795
808
  if (instance) {
796
809
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
810
+ if (instance.componentShouldUpdate) {
811
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
812
+ return;
813
+ }
814
+ }
797
815
  scheduleUpdate(hostRef, false);
798
816
  }
799
817
  }
@@ -956,6 +974,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
956
974
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
957
975
  }
958
976
  endNewInstance();
977
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
959
978
  } else {
960
979
  Cstr = elm.constructor;
961
980
  const cmpTag = elm.localName;
@@ -971,6 +990,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
971
990
  }
972
991
  };
973
992
  var fireConnectedCallback = (instance, elm) => {
993
+ {
994
+ safeCall(instance, "connectedCallback", void 0, elm);
995
+ }
974
996
  };
975
997
 
976
998
  // src/runtime/connected-callback.ts
@@ -1003,20 +1025,27 @@ var connectedCallback = (elm) => {
1003
1025
  initializeComponent(elm, hostRef, cmpMeta);
1004
1026
  }
1005
1027
  } else {
1006
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1007
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1028
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1029
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1030
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1031
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1008
1032
  }
1009
1033
  }
1010
1034
  endConnected();
1011
1035
  }
1012
1036
  };
1013
1037
  var disconnectInstance = (instance, elm) => {
1038
+ {
1039
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1040
+ }
1014
1041
  };
1015
1042
  var disconnectedCallback = async (elm) => {
1016
1043
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1017
1044
  const hostRef = getHostRef(elm);
1018
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1019
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1045
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1046
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1047
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1048
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1020
1049
  }
1021
1050
  }
1022
1051
  if (rootAppliedStyles.has(elm)) {
@@ -1030,18 +1059,22 @@ var disconnectedCallback = async (elm) => {
1030
1059
  // src/runtime/bootstrap-lazy.ts
1031
1060
  var bootstrapLazy = (lazyBundles, options = {}) => {
1032
1061
  var _a;
1062
+ if (!win.document) {
1063
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
1064
+ return;
1065
+ }
1033
1066
  const endBootstrap = createTime();
1034
1067
  const cmpTags = [];
1035
1068
  const exclude = options.exclude || [];
1036
1069
  const customElements2 = win.customElements;
1037
- const head = doc.head;
1070
+ const head = win.document.head;
1038
1071
  const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1039
- const dataStyles = /* @__PURE__ */ doc.createElement("style");
1072
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
1040
1073
  const deferredConnectedCallbacks = [];
1041
1074
  let appLoadFallback;
1042
1075
  let isBootstrapping = true;
1043
1076
  Object.assign(plt, options);
1044
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
1077
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1045
1078
  let hasSlotRelocation = false;
1046
1079
  lazyBundles.map((lazyBundle) => {
1047
1080
  lazyBundle[1].map((compactMeta) => {
@@ -1133,7 +1166,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1133
1166
  }
1134
1167
  if (dataStyles.innerHTML.length) {
1135
1168
  dataStyles.setAttribute("data-styles", "");
1136
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1169
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1137
1170
  if (nonce != null) {
1138
1171
  dataStyles.setAttribute("nonce", nonce);
1139
1172
  }
@@ -1162,4 +1195,4 @@ exports.promiseResolve = promiseResolve;
1162
1195
  exports.registerInstance = registerInstance;
1163
1196
  exports.setNonce = setNonce;
1164
1197
 
1165
- //# sourceMappingURL=index-ff2499dc.js.map
1198
+ //# sourceMappingURL=index-888a60d0.js.map