genesys-spark-chart-components 4.137.1 → 4.138.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 (45) hide show
  1. package/dist/cjs/{color-palette-c5aba81e.js → color-palette-6ca929a0.js} +3 -3
  2. package/dist/cjs/genesys-chart-webcomponents.cjs.js +2 -2
  3. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +10 -14
  4. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +2 -19
  5. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +10 -17
  6. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +2 -10
  7. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +10 -15
  8. package/dist/cjs/gux-visualization-beta.cjs.entry.js +2 -4
  9. package/dist/cjs/{index-409a039b.js → index-e390a39a.js} +252 -180
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/collection-manifest.json +1 -1
  12. package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +37 -15
  13. package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +41 -20
  14. package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +42 -17
  15. package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.js +20 -10
  16. package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +38 -15
  17. package/dist/collection/components/beta/gux-visualization/gux-visualization.js +6 -4
  18. package/dist/esm/{color-palette-b5b2d207.js → color-palette-8e2dc91b.js} +3 -3
  19. package/dist/esm/genesys-chart-webcomponents.js +3 -3
  20. package/dist/esm/gux-chart-column-beta.entry.js +10 -14
  21. package/dist/esm/gux-chart-donut-beta.entry.js +2 -19
  22. package/dist/esm/gux-chart-line-beta.entry.js +10 -17
  23. package/dist/esm/gux-chart-pie-beta.entry.js +2 -10
  24. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +10 -15
  25. package/dist/esm/gux-visualization-beta.entry.js +2 -4
  26. package/dist/esm/{index-6f89ddc9.js → index-eabc38b4.js} +252 -180
  27. package/dist/esm/loader.js +2 -2
  28. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
  29. package/dist/genesys-chart-webcomponents/{p-62e9c866.js → p-4fe958d6.js} +1 -1
  30. package/dist/genesys-chart-webcomponents/p-86129083.entry.js +1 -0
  31. package/dist/genesys-chart-webcomponents/p-977a4087.js +2 -0
  32. package/dist/genesys-chart-webcomponents/p-b038a88f.entry.js +1 -0
  33. package/dist/genesys-chart-webcomponents/p-bf5b441c.entry.js +1 -0
  34. package/dist/genesys-chart-webcomponents/p-c21311f9.entry.js +1 -0
  35. package/dist/genesys-chart-webcomponents/p-dd1cf093.entry.js +1 -0
  36. package/dist/genesys-chart-webcomponents/{p-38df79fa.entry.js → p-e9e86c24.entry.js} +2 -2
  37. package/dist/stencil-wrapper.js +1 -1
  38. package/dist/types/stencil-wrapper.d.ts +1 -1
  39. package/package.json +3 -3
  40. package/dist/genesys-chart-webcomponents/p-177ee014.entry.js +0 -1
  41. package/dist/genesys-chart-webcomponents/p-58f02284.entry.js +0 -1
  42. package/dist/genesys-chart-webcomponents/p-6240c9bd.entry.js +0 -1
  43. package/dist/genesys-chart-webcomponents/p-6759e12f.entry.js +0 -1
  44. package/dist/genesys-chart-webcomponents/p-699aab7f.js +0 -2
  45. package/dist/genesys-chart-webcomponents/p-eef8d50e.entry.js +0 -1
@@ -1,17 +1,21 @@
1
1
  const NAMESPACE = 'genesys-chart-webcomponents';
2
- const BUILD = /* genesys-chart-webcomponents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, 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: 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: true, hydratedClass: false, 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: false, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* genesys-chart-webcomponents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, 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: 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: true, hydratedClass: false, 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: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.23.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
12
14
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
15
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
16
+ var registerInstance = (lazyInstance, hostRef) => {
17
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
+ };
15
19
  var registerHost = (hostElement, cmpMeta) => {
16
20
  const hostRef = {
17
21
  $flags$: 0,
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
28
  hostElement["s-p"] = [];
25
29
  hostElement["s-rc"] = [];
26
30
  }
27
- return hostRefs.set(hostElement, hostRef);
31
+ const ref = hostRefs.set(hostElement, hostRef);
32
+ return ref;
28
33
  };
29
34
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
35
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -91,6 +96,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
91
96
 
92
97
  // src/client/client-style.ts
93
98
  var styles = /* @__PURE__ */ new Map();
99
+ var HYDRATED_STYLE_ID = "sty-id";
94
100
  var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
95
101
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
96
102
  var win = typeof window !== "undefined" ? window : {};
@@ -148,12 +154,6 @@ var flush = () => {
148
154
  };
149
155
  var nextTick = (cb) => promiseResolve().then(cb);
150
156
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
151
-
152
- // src/utils/constants.ts
153
- var EMPTY_OBJ = {};
154
-
155
- // src/utils/helpers.ts
156
- var isDef = (v) => v != null;
157
157
  var isComplexType = (o) => {
158
158
  o = typeof o;
159
159
  return o === "object" || o === "function";
@@ -213,20 +213,6 @@ var unwrapErr = (result) => {
213
213
  throw result.value;
214
214
  }
215
215
  };
216
- var createTime = (fnName, tagName = "") => {
217
- {
218
- return () => {
219
- return;
220
- };
221
- }
222
- };
223
- var uniqueTime = (key, measureText) => {
224
- {
225
- return () => {
226
- return;
227
- };
228
- }
229
- };
230
216
  var h = (nodeName, vnodeData, ...children) => {
231
217
  let child = null;
232
218
  let key = null;
@@ -291,132 +277,6 @@ var newVNode = (tag, text) => {
291
277
  };
292
278
  var Host = {};
293
279
  var isHost = (node) => node && node.$tag$ === Host;
294
- var parsePropertyValue = (propValue, propType) => {
295
- if (propValue != null && !isComplexType(propValue)) {
296
- if (propType & 4 /* Boolean */) {
297
- return propValue === "false" ? false : propValue === "" || !!propValue;
298
- }
299
- if (propType & 2 /* Number */) {
300
- return parseFloat(propValue);
301
- }
302
- if (propType & 1 /* String */) {
303
- return String(propValue);
304
- }
305
- return propValue;
306
- }
307
- return propValue;
308
- };
309
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
310
-
311
- // src/runtime/event-emitter.ts
312
- var createEvent = (ref, name, flags) => {
313
- const elm = getElement(ref);
314
- return {
315
- emit: (detail) => {
316
- return emitEvent(elm, name, {
317
- bubbles: !!(flags & 4 /* Bubbles */),
318
- composed: !!(flags & 2 /* Composed */),
319
- cancelable: !!(flags & 1 /* Cancellable */),
320
- detail
321
- });
322
- }
323
- };
324
- };
325
- var emitEvent = (elm, name, opts) => {
326
- const ev = plt.ce(name, opts);
327
- elm.dispatchEvent(ev);
328
- return ev;
329
- };
330
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
331
- var registerStyle = (scopeId2, cssText, allowCS) => {
332
- let style = styles.get(scopeId2);
333
- if (supportsConstructableStylesheets && allowCS) {
334
- style = style || new CSSStyleSheet();
335
- if (typeof style === "string") {
336
- style = cssText;
337
- } else {
338
- style.replaceSync(cssText);
339
- }
340
- } else {
341
- style = cssText;
342
- }
343
- styles.set(scopeId2, style);
344
- };
345
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
346
- var _a;
347
- const scopeId2 = getScopeId(cmpMeta);
348
- const style = styles.get(scopeId2);
349
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
350
- if (style) {
351
- if (typeof style === "string") {
352
- styleContainerNode = styleContainerNode.head || styleContainerNode;
353
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
354
- let styleElm;
355
- if (!appliedStyles) {
356
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
357
- }
358
- if (!appliedStyles.has(scopeId2)) {
359
- {
360
- styleElm = doc.createElement("style");
361
- styleElm.innerHTML = style;
362
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
363
- if (nonce != null) {
364
- styleElm.setAttribute("nonce", nonce);
365
- }
366
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
367
- if (styleContainerNode.nodeName === "HEAD") {
368
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
369
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
370
- styleContainerNode.insertBefore(styleElm, referenceNode2);
371
- } else if ("host" in styleContainerNode) {
372
- if (supportsConstructableStylesheets) {
373
- const stylesheet = new CSSStyleSheet();
374
- stylesheet.replaceSync(style);
375
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
376
- } else {
377
- const existingStyleContainer = styleContainerNode.querySelector("style");
378
- if (existingStyleContainer) {
379
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
380
- } else {
381
- styleContainerNode.prepend(styleElm);
382
- }
383
- }
384
- } else {
385
- styleContainerNode.append(styleElm);
386
- }
387
- }
388
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
389
- styleContainerNode.insertBefore(styleElm, null);
390
- }
391
- }
392
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
393
- styleElm.innerHTML += SLOT_FB_CSS;
394
- }
395
- if (appliedStyles) {
396
- appliedStyles.add(scopeId2);
397
- }
398
- }
399
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
400
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
401
- }
402
- }
403
- return scopeId2;
404
- };
405
- var attachStyles = (hostRef) => {
406
- const cmpMeta = hostRef.$cmpMeta$;
407
- const elm = hostRef.$hostElement$;
408
- const flags = cmpMeta.$flags$;
409
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
410
- const scopeId2 = addStyle(
411
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
412
- cmpMeta);
413
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
414
- elm["s-sc"] = scopeId2;
415
- elm.classList.add(scopeId2 + "-h");
416
- }
417
- endAttachStyles();
418
- };
419
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
420
280
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
421
281
  if (oldValue !== newValue) {
422
282
  let isProp = isMemberInElement(elm, memberName);
@@ -424,9 +284,19 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
424
284
  if (memberName === "class") {
425
285
  const classList = elm.classList;
426
286
  const oldClasses = parseClassList(oldValue);
427
- const newClasses = parseClassList(newValue);
428
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
429
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
287
+ let newClasses = parseClassList(newValue);
288
+ if (elm["s-si"]) {
289
+ newClasses.push(elm["s-si"]);
290
+ oldClasses.forEach((c) => {
291
+ if (c.startsWith(elm["s-si"])) newClasses.push(c);
292
+ });
293
+ newClasses = [...new Set(newClasses)];
294
+ classList.add(...newClasses);
295
+ delete elm["s-si"];
296
+ } else {
297
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
298
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
299
+ }
430
300
  } else if (memberName === "key") ; else if (memberName === "ref") {
431
301
  if (newValue) {
432
302
  newValue(elm);
@@ -468,13 +338,21 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
468
338
  }
469
339
  };
470
340
  var parseClassListRegex = /\s/;
471
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
341
+ var parseClassList = (value) => {
342
+ if (typeof value === "object" && "baseVal" in value) {
343
+ value = value.baseVal;
344
+ }
345
+ if (!value) {
346
+ return [];
347
+ }
348
+ return value.split(parseClassListRegex);
349
+ };
472
350
 
473
351
  // src/runtime/vdom/update-element.ts
474
352
  var updateElement = (oldVnode, newVnode, isSvgMode2) => {
475
353
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
476
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
477
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
354
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
355
+ const newVnodeAttrs = newVnode.$attrs$ || {};
478
356
  {
479
357
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
480
358
  if (!(memberName in newVnodeAttrs)) {
@@ -495,13 +373,10 @@ function sortedAttrNames(attrNames) {
495
373
  attrNames
496
374
  );
497
375
  }
498
-
499
- // src/runtime/vdom/vdom-render.ts
500
- var scopeId;
501
376
  var hostTagName;
502
377
  var useNativeShadowDom = false;
503
378
  var isSvgMode = false;
504
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
379
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
505
380
  const newVNode2 = newParentVNode.$children$[childIndex];
506
381
  let i2 = 0;
507
382
  let elm;
@@ -513,11 +388,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
513
388
  {
514
389
  updateElement(null, newVNode2, isSvgMode);
515
390
  }
516
- const rootNode = elm.getRootNode();
517
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
518
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
519
- elm.classList.add(elm["s-si"] = scopeId);
520
- }
521
391
  if (newVNode2.$children$) {
522
392
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
523
393
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -647,6 +517,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
647
517
  if (!isInitialRender) {
648
518
  return leftVNode.$key$ === rightVNode.$key$;
649
519
  }
520
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
521
+ leftVNode.$key$ = rightVNode.$key$;
522
+ }
650
523
  return true;
651
524
  }
652
525
  return false;
@@ -700,12 +573,149 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
700
573
  rootVnode.$flags$ |= 4 /* isHost */;
701
574
  hostRef.$vnode$ = rootVnode;
702
575
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
703
- {
704
- scopeId = hostElm["s-sc"];
705
- }
706
576
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
707
577
  patch(oldVNode, rootVnode, isInitialLoad);
708
578
  };
579
+ var createTime = (fnName, tagName = "") => {
580
+ {
581
+ return () => {
582
+ return;
583
+ };
584
+ }
585
+ };
586
+ var uniqueTime = (key, measureText) => {
587
+ {
588
+ return () => {
589
+ return;
590
+ };
591
+ }
592
+ };
593
+ var parsePropertyValue = (propValue, propType) => {
594
+ if (propValue != null && !isComplexType(propValue)) {
595
+ if (propType & 4 /* Boolean */) {
596
+ return propValue === "false" ? false : propValue === "" || !!propValue;
597
+ }
598
+ if (propType & 2 /* Number */) {
599
+ return parseFloat(propValue);
600
+ }
601
+ if (propType & 1 /* String */) {
602
+ return String(propValue);
603
+ }
604
+ return propValue;
605
+ }
606
+ return propValue;
607
+ };
608
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
609
+
610
+ // src/runtime/event-emitter.ts
611
+ var createEvent = (ref, name, flags) => {
612
+ const elm = getElement(ref);
613
+ return {
614
+ emit: (detail) => {
615
+ return emitEvent(elm, name, {
616
+ bubbles: !!(flags & 4 /* Bubbles */),
617
+ composed: !!(flags & 2 /* Composed */),
618
+ cancelable: !!(flags & 1 /* Cancellable */),
619
+ detail
620
+ });
621
+ }
622
+ };
623
+ };
624
+ var emitEvent = (elm, name, opts) => {
625
+ const ev = plt.ce(name, opts);
626
+ elm.dispatchEvent(ev);
627
+ return ev;
628
+ };
629
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
630
+ var registerStyle = (scopeId2, cssText, allowCS) => {
631
+ let style = styles.get(scopeId2);
632
+ if (supportsConstructableStylesheets && allowCS) {
633
+ style = style || new CSSStyleSheet();
634
+ if (typeof style === "string") {
635
+ style = cssText;
636
+ } else {
637
+ style.replaceSync(cssText);
638
+ }
639
+ } else {
640
+ style = cssText;
641
+ }
642
+ styles.set(scopeId2, style);
643
+ };
644
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
645
+ var _a;
646
+ const scopeId2 = getScopeId(cmpMeta);
647
+ const style = styles.get(scopeId2);
648
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
649
+ if (style) {
650
+ if (typeof style === "string") {
651
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
652
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
653
+ let styleElm;
654
+ if (!appliedStyles) {
655
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
656
+ }
657
+ if (!appliedStyles.has(scopeId2)) {
658
+ {
659
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
660
+ styleElm.innerHTML = style;
661
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
662
+ if (nonce != null) {
663
+ styleElm.setAttribute("nonce", nonce);
664
+ }
665
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
666
+ if (styleContainerNode.nodeName === "HEAD") {
667
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
668
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
669
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
670
+ } else if ("host" in styleContainerNode) {
671
+ if (supportsConstructableStylesheets) {
672
+ const stylesheet = new CSSStyleSheet();
673
+ stylesheet.replaceSync(style);
674
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
675
+ } else {
676
+ const existingStyleContainer = styleContainerNode.querySelector("style");
677
+ if (existingStyleContainer) {
678
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
679
+ } else {
680
+ styleContainerNode.prepend(styleElm);
681
+ }
682
+ }
683
+ } else {
684
+ styleContainerNode.append(styleElm);
685
+ }
686
+ }
687
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
688
+ styleContainerNode.insertBefore(styleElm, null);
689
+ }
690
+ }
691
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
692
+ styleElm.innerHTML += SLOT_FB_CSS;
693
+ }
694
+ if (appliedStyles) {
695
+ appliedStyles.add(scopeId2);
696
+ }
697
+ }
698
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
699
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
700
+ }
701
+ }
702
+ return scopeId2;
703
+ };
704
+ var attachStyles = (hostRef) => {
705
+ const cmpMeta = hostRef.$cmpMeta$;
706
+ const elm = hostRef.$hostElement$;
707
+ const flags = cmpMeta.$flags$;
708
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
709
+ const scopeId2 = addStyle(
710
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
711
+ cmpMeta);
712
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
713
+ elm["s-sc"] = scopeId2;
714
+ elm.classList.add(scopeId2 + "-h");
715
+ }
716
+ endAttachStyles();
717
+ };
718
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
709
719
 
710
720
  // src/runtime/update-component.ts
711
721
  var attachToAncestor = (hostRef, ancestorComponent) => {
@@ -907,16 +917,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
907
917
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
908
918
  members.map(([memberName, [memberFlags]]) => {
909
919
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
910
- Object.defineProperty(prototype, memberName, {
911
- get() {
912
- return getValue(this, memberName);
913
- },
914
- set(newValue) {
915
- setValue(this, memberName, newValue, cmpMeta);
916
- },
917
- configurable: true,
918
- enumerable: true
919
- });
920
+ if ((memberFlags & 2048 /* Getter */) === 0) {
921
+ Object.defineProperty(prototype, memberName, {
922
+ get() {
923
+ return getValue(this, memberName);
924
+ },
925
+ set(newValue) {
926
+ setValue(this, memberName, newValue, cmpMeta);
927
+ },
928
+ configurable: true,
929
+ enumerable: true
930
+ });
931
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
932
+ {
933
+ Object.defineProperty(prototype, memberName, {
934
+ get() {
935
+ const ref = getHostRef(this);
936
+ const instance = ref ? ref.$lazyInstance$ : prototype;
937
+ if (!instance) return;
938
+ return instance[memberName];
939
+ },
940
+ configurable: true,
941
+ enumerable: true
942
+ });
943
+ }
944
+ if (memberFlags & 4096 /* Setter */) {
945
+ const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
946
+ Object.defineProperty(prototype, memberName, {
947
+ set(newValue) {
948
+ const ref = getHostRef(this);
949
+ if (origSetter) {
950
+ const currentValue = ref.$hostElement$[memberName];
951
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
952
+ ref.$instanceValues$.set(memberName, currentValue);
953
+ }
954
+ origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
955
+ setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
956
+ return;
957
+ }
958
+ if (!ref) return;
959
+ const setterSetVal = () => {
960
+ const currentValue = ref.$lazyInstance$[memberName];
961
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
962
+ ref.$instanceValues$.set(memberName, currentValue);
963
+ }
964
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
965
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
966
+ };
967
+ if (ref.$lazyInstance$) {
968
+ setterSetVal();
969
+ } else {
970
+ ref.$onReadyPromise$.then(() => setterSetVal());
971
+ }
972
+ }
973
+ });
974
+ }
975
+ }
920
976
  }
921
977
  });
922
978
  if ((flags & 1 /* isElementConstructor */)) {
@@ -925,7 +981,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
925
981
  plt.jmp(() => {
926
982
  var _a2;
927
983
  const propName = attrNameToPropName.get(attrName);
928
- if (this.hasOwnProperty(propName)) {
984
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
929
985
  newValue = this[propName];
930
986
  delete this[propName];
931
987
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -945,7 +1001,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
945
1001
  }
946
1002
  return;
947
1003
  }
948
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1004
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1005
+ if (!propDesc.get || !!propDesc.set) {
1006
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1007
+ }
949
1008
  });
950
1009
  };
951
1010
  Cstr.observedAttributes = Array.from(
@@ -1084,6 +1143,12 @@ var disconnectedCallback = async (elm) => {
1084
1143
  hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1085
1144
  }
1086
1145
  }
1146
+ if (rootAppliedStyles.has(elm)) {
1147
+ rootAppliedStyles.delete(elm);
1148
+ }
1149
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1150
+ rootAppliedStyles.delete(elm.shadowRoot);
1151
+ }
1087
1152
  };
1088
1153
 
1089
1154
  // src/runtime/bootstrap-lazy.ts
@@ -1161,6 +1226,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1161
1226
  }
1162
1227
  disconnectedCallback() {
1163
1228
  plt.jmp(() => disconnectedCallback(this));
1229
+ plt.raf(() => {
1230
+ var _a3;
1231
+ const hostRef = getHostRef(this);
1232
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1233
+ delete hostRef.$vnode$.$elm$;
1234
+ }
1235
+ });
1164
1236
  }
1165
1237
  componentOnReady() {
1166
1238
  return getHostRef(this).$onReadyPromise$;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-6f89ddc9.js';
2
- export { s as setNonce } from './index-6f89ddc9.js';
1
+ import { b as bootstrapLazy } from './index-eabc38b4.js';
2
+ export { s as setNonce } from './index-eabc38b4.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 e,b as l}from"./p-699aab7f.js";export{s as setNonce}from"./p-699aab7f.js";import{g as a}from"./p-e1255160.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-38df79fa",[[1,"gux-visualization-beta",{visualizationSpec:[16],embedOptions:[16]}]]],["p-6240c9bd",[[1,"gux-chart-column-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],xFieldName:[1,"x-field-name"],yFieldName:[1,"y-field-name"],xAxisTitle:[1,"x-axis-title"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],legendPosition:[1,"legend-position"],chartLayers:[16],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-eef8d50e",[[1,"gux-chart-donut-beta",{chartData:[16],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],outerRadius:[2,"outer-radius"],innerRadius:[2,"inner-radius"],labelRadius:[2,"label-radius"],labelField:[1,"label-field"],gauge:[4],centerText:[1,"center-text"],centerSubText:[1,"center-sub-text"],showTooltip:[4,"show-tooltip"],tooltipOptions:[16],legendX:[2,"legend-x"],legendY:[2,"legend-y"],legendFontSize:[2,"legend-font-size"],legendSymbolSize:[2,"legend-symbol-size"],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-177ee014",[[1,"gux-chart-line-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],includeDataPointMarkers:[4,"include-data-point-markers"],xFieldName:[1,"x-field-name"],xAxisTitle:[1,"x-axis-title"],yFieldName:[1,"y-field-name"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],strokeDash:[4,"stroke-dash"],interpolation:[1],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-58f02284",[[1,"gux-chart-pie-beta",{chartData:[16],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],outerRadius:[2,"outer-radius"],labelRadius:[2,"label-radius"],labelField:[1,"label-field"],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-6759e12f",[[1,"gux-chart-scatter-plot-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],xFieldName:[1,"x-field-name"],xAxisTitle:[1,"x-axis-title"],yFieldName:[1,"y-field-name"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],useShape:[1,"use-shape"],embedOptions:[16]},null,{chartData:["parseData"]}]]]],e))));
1
+ import{p as e,b as l}from"./p-977a4087.js";export{s as setNonce}from"./p-977a4087.js";import{g as a}from"./p-e1255160.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-e9e86c24",[[1,"gux-visualization-beta",{visualizationSpec:[16],embedOptions:[16]}]]],["p-dd1cf093",[[1,"gux-chart-column-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],xFieldName:[1,"x-field-name"],yFieldName:[1,"y-field-name"],xAxisTitle:[1,"x-axis-title"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],legendPosition:[1,"legend-position"],chartLayers:[16],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-c21311f9",[[1,"gux-chart-donut-beta",{chartData:[16],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],outerRadius:[2,"outer-radius"],innerRadius:[2,"inner-radius"],labelRadius:[2,"label-radius"],labelField:[1,"label-field"],gauge:[4],centerText:[1,"center-text"],centerSubText:[1,"center-sub-text"],showTooltip:[4,"show-tooltip"],tooltipOptions:[16],legendX:[2,"legend-x"],legendY:[2,"legend-y"],legendFontSize:[2,"legend-font-size"],legendSymbolSize:[2,"legend-symbol-size"],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-86129083",[[1,"gux-chart-line-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],includeDataPointMarkers:[4,"include-data-point-markers"],xFieldName:[1,"x-field-name"],xAxisTitle:[1,"x-axis-title"],yFieldName:[1,"y-field-name"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],strokeDash:[4,"stroke-dash"],interpolation:[1],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-b038a88f",[[1,"gux-chart-pie-beta",{chartData:[16],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],outerRadius:[2,"outer-radius"],labelRadius:[2,"label-radius"],labelField:[1,"label-field"],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-bf5b441c",[[1,"gux-chart-scatter-plot-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],xFieldName:[1,"x-field-name"],xAxisTitle:[1,"x-axis-title"],yFieldName:[1,"y-field-name"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],useShape:[1,"use-shape"],embedOptions:[16]},null,{chartData:["parseData"]}]]]],e))));
@@ -1 +1 @@
1
- const t="4.137.1",e=20,n=3e4,o=[function(t){const[e,n,...o]=t.split(".");return{name:"spark-library",metadata:{fullVersion:`${e}.${n}.${o.join(".")}`,majorVersion:e,minorVersion:`${e}.${n}`}}}(t)];function a(){const t=window.newrelic;if(t){for(let s=0;s<e;s++){if(0==o.length)return void setTimeout(a,n);const e=o.shift();t.addPageAction(e.name,Object.assign(Object.assign({},e.metadata),{queueDepth:o.length}))}setTimeout(a,n)}}let s=!1;function i(e,n){window.newrelic&&(s||(s=!0,a()),document.contains(e)&&o.push({name:"spark-component",metadata:Object.assign(Object.assign({},n),{component:e.tagName.toLowerCase(),version:t})}))}const r=["#203B73","#1DA8B3","#75A8FF","#8452CF","#B5B5EB","#CC3EBE","#5E5782","#FF8FDD","#868C1E","#DDD933"],c="#596373",m="#596373";export{c as D,r as V,m as a,i as t}
1
+ const t="4.138.0",e=20,n=3e4,o=[function(t){const[e,n,...o]=t.split(".");return{name:"spark-library",metadata:{fullVersion:`${e}.${n}.${o.join(".")}`,majorVersion:e,minorVersion:`${e}.${n}`}}}(t)];function a(){const t=window.newrelic;if(t){for(let s=0;s<e;s++){if(0==o.length)return void setTimeout(a,n);const e=o.shift();t.addPageAction(e.name,Object.assign(Object.assign({},e.metadata),{queueDepth:o.length}))}setTimeout(a,n)}}let s=!1;function i(e,n){window.newrelic&&(s||(s=!0,a()),document.contains(e)&&o.push({name:"spark-component",metadata:Object.assign(Object.assign({},n),{component:e.tagName.toLowerCase(),version:t})}))}const r=["#203B73","#1DA8B3","#75A8FF","#8452CF","#B5B5EB","#CC3EBE","#5E5782","#FF8FDD","#868C1E","#DDD933"],c="#596373",m="#596373";export{c as D,r as V,m as a,i as t}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,g as s}from"./p-977a4087.js";import{D as a,a as e,V as h,t as o}from"./p-4fe958d6.js";import{l as n}from"./p-23610106.js";const l="category",r=class{constructor(i){t(this,i),this.labelColor=a,this.domainColor=e,this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",mark:{type:"line",interpolate:"linear",point:!1},config:{axis:{ticks:!1,titlePadding:8,labelColor:this.labelColor||a,domainColor:this.domainColor||e},axisX:{labelAngle:0},legend:{symbolType:"circle"}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:l,type:"nominal",scale:{range:h},legend:null},tooltip:{aggregate:"count",type:"quantitative"}}},this.legendPosition="right"}parseData(){this.xFieldName&&this.yFieldName||n(this.root,"requires x-field-name and y-field-name");let t={};this.chartData&&(t={data:this.chartData}),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=45),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,s=this.xAxisTitle,a=this.yFieldName,e=this.yAxisTitle,h=this.legendTitle,o=this.colorFieldName||l,r=this.interpolation,c=this.strokeDash,g=this.includeDataPointMarkers;i&&(this.baseChartSpec.encoding.x.field=i),s&&(this.baseChartSpec.encoding.x.title=s),a&&(this.baseChartSpec.encoding.y.field=a),e&&(this.baseChartSpec.encoding.y.title=e),o&&(this.baseChartSpec.encoding.color.field=o),h&&(this.baseChartSpec.encoding.color.title=h),c&&(this.baseChartSpec.encoding.strokeDash={field:o,type:"nominal"}),r&&(this.baseChartSpec.mark.interpolate=r),g&&(this.baseChartSpec.mark.point=g);const p=Object.assign(this.baseChartSpec,t);this.visualizationSpec=p}componentWillLoad(){o(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"9a0bbdde50dc38102cff841ca0b2aa9aa47b47ff",visualizationSpec:this.visualizationSpec})}get root(){return s(this)}static get watchers(){return{chartData:["parseData"]}}};r.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{r as gux_chart_line_beta}
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],p=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&a.o?w($):a.raf($))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},$=()=>{b(m),b(p),(d=m.length>0)&&a.raf($)},w=e=>f().then(e),v=y(p,!0),S=e=>"object"==(e=typeof e)||"function"===e;function g(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>k,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function k(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>j(e))):j(n)}if(e.isErr)return O(e.value);throw"should never get here"}var E,C=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?x(null,o):o),i=s)};if(c(n),t){t.key&&(l=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=x(e,null);return u.u=t,r.length>0&&(u.h=r),u.m=l,u},x=(e,t)=>({o:0,p:e,i:t,$:null,h:null,u:null,m:null}),A={},D=(e,t,n,o,l,s)=>{if(n!==o){let i=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,l=L(n);let s=L(o);e["s-si"]?(s.push(e["s-si"]),l.forEach((t=>{t.startsWith(e["s-si"])&&s.push(t)})),s=[...new Set(s)],t.add(...s),delete e["s-si"]):(t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e)))))}else if("key"===t);else if("ref"===t)o&&o(e);else{const r=S(o);if((i||r&&null!==o)&&!l)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?i=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||l)&&!r&&e.setAttribute(t,o=!0===o?"":o)}}},H=/\s/,L=e=>("object"==typeof e&&"baseVal"in e&&(e=e.baseVal),e?e.split(H):[]),N=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.u||{},s=t.u||{};for(const e of R(Object.keys(l)))e in s||D(o,e,l[e],void 0,n,t.o);for(const e of R(Object.keys(s)))D(o,e,l[e],s[e],n,t.o)};function R(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var T=!1,F=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(l=o.$=u.createElement(o.p),N(null,o,T),o.h)for(i=0;i<o.h.length;++i)s=F(e,o,i),s&&l.appendChild(s);return l["s-hn"]=E,l},U=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===E&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=F(null,n,l),i&&(o[l].$=i,_(r,i,t)))},W=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;G(t),e&&e.remove()}}},V=(e,t,n=!1)=>e.p===t.p&&(n?(n&&!e.m&&t.m&&(e.m=t.m),!0):e.m===t.m),q=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h;N(e,t,T),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],m=o.length-1,p=o[0],y=o[m];for(;r<=f&&c<=m;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==p)p=o[++c];else if(null==y)y=o[--m];else if(V(h,p,l))q(h,p,l),h=t[++r],p=o[++c];else if(V(d,y,l))q(d,y,l),d=t[--f],y=o[--m];else if(V(h,y,l))q(h,y,l),_(e,h.$,d.$.nextSibling),h=t[++r],y=o[--m];else if(V(d,p,l))q(d,p,l),_(e,d.$,h.$),d=t[--f],p=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].m&&t[a].m===p.m){u=a;break}u>=0?(i=t[u],i.p!==p.p?s=F(t&&t[c],n,u):(q(i,p,l),t[u]=void 0,s=i.$),p=o[++c]):(s=F(t&&t[c],n,c),p=o[++c]),s&&_(h.$.parentNode,s,h.$)}r>f?U(e,null==o[m+1]?null:o[m+1].$,n,o,c,m):c>m&&W(t,r,f)})(o,l,t,s,n):null!==s?U(o,null,t,s,0,s.length-1):!n&&null!==l&&W(l,0,l.length-1)},G=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(G)},_=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),z=(e,t)=>null==e||S(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e,B=e=>n(e).$hostElement$,I=(e,t,n)=>{const o=B(e);return{emit:e=>J(o,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},J=(e,t,n)=>{const o=a.ce(t,n);return e.dispatchEvent(o),o},K=new WeakMap,Q=e=>"sc-"+e.v,X=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Y=(e,t)=>{if(e.o|=16,!(4&e.o))return X(e,e.j),v((()=>Z(e,t)));e.o|=512},Z=(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`);let o;return t&&(o=ie(n,"componentWillLoad")),ee(o,(()=>ne(e,n,t)))},ee=(e,t)=>te(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),te=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ne=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=Q(t),l=i.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let s,i=K.get(e=e.head||e);if(i||K.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),s.innerHTML=l;const i=null!=(n=a.k)?n:g(u);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(h){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=r),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);oe(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},oe=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.C||x(null,null),i=(e=>e&&e.p===A)(t)?t:P(null,null,t);if(E=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.p=null,i.o|=4,e.C=i,i.$=s.$=o.shadowRoot||o,q(s,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.t,o=e.j;ie(n,"componentDidRender"),64&e.o||(e.o|=64,re(t),ie(n,"componentDidLoad"),e.M(t),o||se()),e.S&&(e.S(),e.S=void 0),512&e.o&&w((()=>Y(e,!1))),e.o&=-517},se=()=>{re(u.documentElement),w((()=>J(c,"appload",{detail:{namespace:"genesys-chart-webcomponents"}})))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e)}},re=e=>e.setAttribute("hydrated",""),ce=(e,t,o,s)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${s.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=i.$hostElement$,c=i.P.get(t),u=i.o,a=i.t;if(o=z(o,s.A[t][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.P.set(t,o),a)){if(s.D&&128&u){const e=s.D[t];e&&e.map((e=>{try{a[e](o,c,t)}catch(e){l(e,r)}}))}2==(18&u)&&Y(i,!1)}},ue=(e,t,o)=>{var l,s;const i=e.prototype;if(t.A||t.D||e.watchers){e.watchers&&!t.D&&(t.D=e.watchers);const r=Object.entries(null!=(l=t.A)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l)if(2048&l){if(1&o&&2048&l&&(Object.defineProperty(i,e,{get(){const t=n(this),o=t?t.t:i;if(o)return o[e]},configurable:!0,enumerable:!0}),4096&l)){const o=Object.getOwnPropertyDescriptor(i,e).set;Object.defineProperty(i,e,{set(l){const s=n(this);if(o){const n=s.$hostElement$[e];return!s.P.get(e)&&n&&s.P.set(e,n),o.call(this,z(l,t.A[e][0])),void ce(this,e,s.$hostElement$[e],t)}if(!s)return;const i=()=>{const n=s.t[e];!s.P.get(e)&&n&&s.P.set(e,n),s.t[e]=z(l,t.A[e][0]),ce(this,e,s.t[e],t)};s.t?i():s.H.then((()=>i()))}})}}else Object.defineProperty(i,e,{get(){return((e,t)=>n(this).P.get(t))(0,e)},set(n){ce(this,e,n,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.D)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);u.get&&!u.set||(this[c]=(null!==s||"boolean"!=typeof this[c])&&s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.D)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},ae=e=>{ie(e,"disconnectedCallback")},fe=(e,o={})=>{var f;const d=[],m=o.exclude||[],p=c.customElements,y=u.head,b=y.querySelector("meta[charset]"),$=u.createElement("style"),w=[];let v,S=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let j=!1;if(e.map((e=>{e[1].map((o=>{var r;const c={o:o[0],v:o[1],A:o[2],L:o[3]};4&c.o&&(j=!0),c.A=o[2],c.D=null!=(r=o[4])?r:{};const u=c.v,f=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,P:new Map};o.H=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,c),1&c.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.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):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.O,r=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.H)&&t.H.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){X(t,t.j=n);break}}o.A&&Object.entries(o.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.N){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.N;if(!n)return;const o=s.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),l)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.v}#${t.R}" was not found`);o.isProxied||(n.D=o.watchers,ue(o,n,2),o.isProxied=!0);const i=()=>{};t.o|=8;try{new o(t)}catch(e){l(e)}t.o&=-9,t.o|=128,i()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=Q(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.j,c=()=>Y(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,t,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const t=n(e);(null==t?void 0:t.t)?ae(t.t):(null==t?void 0:t.H)&&t.H.then((()=>ae(t.t)))}K.has(e)&&K.delete(e),e.shadowRoot&&K.has(e.shadowRoot)&&K.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const t=n(this);(null==(e=null==t?void 0:t.C)?void 0:e.$)instanceof Node&&!t.C.$.isConnected&&delete t.C.$}))}componentOnReady(){return n(this).H}};c.N=e[0],m.includes(u)||p.get(u)||(d.push(u),p.define(u,ue(f,c,1)))}))})),d.length>0&&(j&&($.textContent+=r),$.textContent+=d.sort()+"{visibility:hidden}[hydrated]{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(f=a.k)?f:g(u);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,b?b.nextSibling:y.firstChild)}S=!1,w.length?w.map((e=>e.connectedCallback())):a.jmp((()=>v=setTimeout(se,30)))},he=e=>a.k=e;export{fe as b,I as c,B as g,P as h,f as p,o as r,he as s}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,g as i}from"./p-977a4087.js";import{V as a,t as s}from"./p-4fe958d6.js";import{l as r}from"./p-23610106.js";const o="category",h="value",n=class{constructor(e){t(this,e),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",config:{legend:{symbolType:"circle"}},encoding:{theta:{field:"value",type:"quantitative",stack:!0},color:{field:o,type:"nominal",scale:{range:a},legend:null},tooltip:{aggregate:"count",type:"quantitative"}},layer:[{mark:{type:"arc",outerRadius:80}},{mark:{type:"text",radius:90},encoding:{text:{field:h,type:"quantitative"}}}],view:{stroke:null}},this.legendPosition="right"}parseData(){this.outerRadius||r(this.root,"requires outer-radius");let t={};this.chartData&&(t={data:this.chartData}),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const e=this.colorFieldName||o;e&&(this.baseChartSpec.encoding.color.field=e);const i=this.legendTitle;i&&(this.baseChartSpec.encoding.color.title=i),this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:this.outerRadius}}];const a=this.labelRadius;a&&this.baseChartSpec.layer.push({mark:{type:"text",radius:a},encoding:{text:{field:this.labelField||h,type:"quantitative"}}});const s=Object.assign(this.baseChartSpec,t);this.visualizationSpec=s}componentWillLoad(){s(this.root),this.parseData()}render(){return e("gux-visualization-beta",{key:"b3049772a9d436bf4d6aa1b0e9ebe21a9d9e84e9",visualizationSpec:this.visualizationSpec})}get root(){return i(this)}static get watchers(){return{chartData:["parseData"]}}};n.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{n as gux_chart_pie_beta}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,g as e}from"./p-977a4087.js";import{D as s,a,V as o,t as h}from"./p-4fe958d6.js";import{l}from"./p-23610106.js";const n="category",r=class{constructor(i){t(this,i),this.labelColor=s,this.domainColor=a,this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",params:[{name:"onHover",select:{type:"point",on:"mouseover"}}],config:{axis:{ticks:!1,titlePadding:8,gridColor:"#F6F7F9",labelColor:this.labelColor||s,domainColor:this.domainColor||a},axisX:{labelAngle:0,grid:!0},legend:{symbolType:"circle"}},width:{step:40},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:n,type:"nominal",scale:{range:o},legend:null},size:{condition:[{param:"onHover",empty:!1,value:100}],value:40}}},this.legendPosition="right"}parseData(){this.xFieldName&&this.yFieldName||l(this.root,"requires x-field-name and y-field-name");let t={};this.chartData&&(t={data:this.chartData}),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=-45),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,e=this.xAxisTitle,s=this.yFieldName,a=this.yAxisTitle,o=this.legendTitle,h=this.useShape||"circle",r=this.colorFieldName||n;this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),i&&(this.baseChartSpec.encoding.x.field=i),e&&(this.baseChartSpec.encoding.x.title=e),s&&(this.baseChartSpec.encoding.y.field=s),a&&(this.baseChartSpec.encoding.y.title=a),r&&(this.baseChartSpec.encoding.color.field=r),o&&(this.baseChartSpec.encoding.color.title=o),this.baseChartSpec.mark={type:h,filled:!0},this.baseChartSpec.config.legend.symbolType=h,this.baseChartSpec.encoding.shape={field:r,type:"nominal"},this.baseChartSpec.encoding.tooltip=[{field:i,type:"nominal",title:e},{field:s,type:"quantitative",title:a},{field:r,type:"nominal",title:o}];const c=Object.assign(this.baseChartSpec,t);this.visualizationSpec=c}componentWillLoad(){h(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"99d30b8b621965db1bb64abc45fa8075f7f1db2f",visualizationSpec:this.visualizationSpec})}get root(){return e(this)}static get watchers(){return{chartData:["parseData"]}}};r.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{r as gux_chart_scatter_plot_beta}