@descope/flow-components 3.22.2 → 3.23.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.
package/dist/index.cjs.js CHANGED
@@ -78110,6 +78110,40 @@ function requireIndex_cjs () {
78110
78110
  observeAttributes$1(ele2, createSyncAttrsCb$1(ele2, ele1), options);
78111
78111
  };
78112
78112
 
78113
+ // A custom element has no shadow root on the first tick, so anything reaching into one has to
78114
+ // wait for it. Takes a function rather than the element, because the element itself is often not
78115
+ // there yet either.
78116
+ //
78117
+ // On giving up it resolves the element it was given, not a shadow root. `portalMixin` relies on
78118
+ // that to carry on with something usable, so a caller that cannot use the element must check what
78119
+ // it got back.
78120
+ const waitForShadowRoot$1 = (getRootElementFn) => async (that) => {
78121
+ const ele = await getRootElementFn(that);
78122
+
78123
+ return new Promise((res) => {
78124
+ const MAX_RETRIES = 20;
78125
+ let counter = 0;
78126
+
78127
+ const check = () => {
78128
+ if (counter > MAX_RETRIES) {
78129
+ // eslint-disable-next-line no-console
78130
+ console.error('could not get shadow root for element', ele);
78131
+ res(ele);
78132
+ return;
78133
+ }
78134
+
78135
+ counter++;
78136
+
78137
+ if (!ele?.shadowRoot) {
78138
+ setTimeout(check);
78139
+ } else {
78140
+ res(ele.shadowRoot);
78141
+ }
78142
+ };
78143
+ check();
78144
+ });
78145
+ };
78146
+
78113
78147
  const getComponentName$1 = (name) => kebabCaseJoin$1(DESCOPE_PREFIX$1, name);
78114
78148
 
78115
78149
  const getCssVarName$1 = (...args) => `--${kebabCaseJoin$1(...args)}`;
@@ -78270,6 +78304,39 @@ function requireIndex_cjs () {
78270
78304
  observeAttributes(ele2, createSyncAttrsCb(ele2, ele1), options);
78271
78305
  };
78272
78306
 
78307
+ // A custom element has no shadow root on the first tick, so anything reaching into one has to
78308
+ // wait for it. Takes a function rather than the element, because the element itself is often not
78309
+ // there yet either.
78310
+ //
78311
+ // On giving up it resolves the element it was given, not a shadow root. `portalMixin` relies on
78312
+ // that to carry on with something usable, so a caller that cannot use the element must check what
78313
+ // it got back.
78314
+ const waitForShadowRoot = (getRootElementFn) => async (that) => {
78315
+ const ele = await getRootElementFn(that);
78316
+
78317
+ return new Promise((res) => {
78318
+ const MAX_RETRIES = 20;
78319
+ let counter = 0;
78320
+
78321
+ const check = () => {
78322
+ if (counter > MAX_RETRIES) {
78323
+ console.error('could not get shadow root for element', ele);
78324
+ res(ele);
78325
+ return;
78326
+ }
78327
+
78328
+ counter++;
78329
+
78330
+ if (!ele?.shadowRoot) {
78331
+ setTimeout(check);
78332
+ } else {
78333
+ res(ele.shadowRoot);
78334
+ }
78335
+ };
78336
+ check();
78337
+ });
78338
+ };
78339
+
78273
78340
  const getComponentName = (name) => kebabCaseJoin(DESCOPE_PREFIX, name);
78274
78341
 
78275
78342
  const getCssVarName = (...args) => `--${kebabCaseJoin(...args)}`;
@@ -79338,7 +79405,7 @@ function requireIndex_cjs () {
79338
79405
  fonts: fonts$1,
79339
79406
  direction: direction$1,
79340
79407
  };
79341
- const vars$1c = getThemeVars(globals$1);
79408
+ const vars$1d = getThemeVars(globals$1);
79342
79409
 
79343
79410
  const direction = 'ltr';
79344
79411
 
@@ -79642,7 +79709,7 @@ function requireIndex_cjs () {
79642
79709
  const STYLE_OVERRIDE_ATTR_PREFIX$1 = 'st';
79643
79710
 
79644
79711
  const createStyleMixin$1 =
79645
- ({ mappings = {}, componentNameOverride = '' }) =>
79712
+ ({ mappings = {}, componentNameOverride = '', style = '' }) =>
79646
79713
  (superclass) => {
79647
79714
  const componentName = componentNameOverride || superclass.componentName;
79648
79715
 
@@ -79696,7 +79763,7 @@ function requireIndex_cjs () {
79696
79763
  );
79697
79764
  }
79698
79765
 
79699
- // eslint-disable-next-line class-methods-use-this
79766
+
79700
79767
  get #componentTheme() {
79701
79768
  return componentsThemeManager.currentTheme?.[componentName] || '';
79702
79769
  }
@@ -79732,6 +79799,7 @@ function requireIndex_cjs () {
79732
79799
  if (elementId) {
79733
79800
  // basically this is enough to make the selector more specific
79734
79801
  // but just in case there is no id, we will also add the class multiple times
79802
+ // eslint-disable-next-line no-undef
79735
79803
  classSpecifier += `#${CSS.escape(elementId)}`;
79736
79804
  }
79737
79805
 
@@ -79779,6 +79847,14 @@ function requireIndex_cjs () {
79779
79847
  }
79780
79848
  }
79781
79849
 
79850
+ // Rules the component needs wherever this mixin writes, which for a portal is a shadow root
79851
+ // it does not own. Prepended after the mapping rules so those still win: the mapping is the
79852
+ // themeable half, this is the structure underneath it.
79853
+ #createStaticStyle() {
79854
+ const css = isFunction(style) ? style() : style;
79855
+ if (css) injectStyle(css, this.#rootElement, { prepend: true });
79856
+ }
79857
+
79782
79858
  #addClassName(className) {
79783
79859
  (
79784
79860
  this.#rootElement?.classList ||
@@ -79796,6 +79872,7 @@ function requireIndex_cjs () {
79796
79872
  this.#addClassName(componentName);
79797
79873
 
79798
79874
  this.#createMappingStyle();
79875
+ this.#createStaticStyle();
79799
79876
  this.#createComponentTheme();
79800
79877
  this.#createOverridesStyle();
79801
79878
 
@@ -80748,46 +80825,31 @@ function requireIndex_cjs () {
80748
80825
 
80749
80826
  const sanitizeSelector = (selector) => selector.replace(/[^\w\s]/gi, '');
80750
80827
 
80751
- const withWaitForShadowRoot$1 = (getRootElementFn) => async (that) => {
80752
- const ele = await getRootElementFn(that);
80753
-
80754
- return new Promise((res) => {
80755
- const MAX_RETRIES = 20;
80756
- let counter = 0;
80757
-
80758
- const check = () => {
80759
- if (counter > MAX_RETRIES) {
80760
- // eslint-disable-next-line no-console
80761
- console.error('could not get shadow root for element', ele);
80762
- res(ele);
80763
- return;
80764
- }
80765
-
80766
- counter++;
80767
-
80768
- if (!ele?.shadowRoot) {
80769
- setTimeout(check);
80770
- } else {
80771
- res(ele.shadowRoot);
80772
- return;
80773
- }
80774
- };
80775
- check();
80776
- });
80777
- };
80778
-
80779
80828
  const portalMixin$1 =
80780
80829
  ({
80781
80830
  name,
80782
80831
  selector,
80783
80832
  mappings = {},
80784
- forward: { attributes = [], include = true } = {},
80833
+ // Static css for the portal's own root, for rules that should not become themeable knobs.
80834
+ style = '',
80835
+ // `false` forwards nothing to the portal element. It needs its own value because an empty
80836
+ // `attributes` list already means "no filter", so it forwards everything rather than nothing.
80837
+ // Forwarding is wrong for a portal whose element is not a copy of the host, where attributes
80838
+ // like `data` or `label` would land somewhere that does not expect them.
80839
+ forward = {},
80785
80840
  }) =>
80786
80841
  (superclass) => {
80842
+ // A function selector has no text to derive a name from, and an empty one would quietly
80843
+ // produce empty css var names, so say so instead.
80844
+ if (isFunction(selector) && !name) {
80845
+ throw new Error('portalMixin: a function selector requires a name');
80846
+ }
80847
+
80787
80848
  const eleDisplayName = name || sanitizeSelector(selector);
80788
80849
 
80789
80850
  const BaseClass = createStyleMixin$1({
80790
80851
  mappings,
80852
+ style,
80791
80853
  })(superclass);
80792
80854
 
80793
80855
  return class PortalMixinClass extends BaseClass {
@@ -80820,13 +80882,18 @@ function requireIndex_cjs () {
80820
80882
 
80821
80883
  // in case we have a selector, we should first wait for the base element shadow root
80822
80884
  // and then look for the internal element
80823
- const baseEleShadowRoot = await withWaitForShadowRoot$1(() => baseEle)(
80885
+ const baseEleShadowRoot = await waitForShadowRoot(() => baseEle)(
80824
80886
  that,
80825
80887
  );
80826
- return baseEleShadowRoot.querySelector(selector);
80888
+
80889
+ // a string selector only reaches inside that one shadow root. a portal that sits deeper
80890
+ // takes a function instead, which receives the root and may await its own way down.
80891
+ return isFunction(selector)
80892
+ ? selector(baseEleShadowRoot)
80893
+ : baseEleShadowRoot.querySelector(selector);
80827
80894
  };
80828
80895
 
80829
- const getPortalElement = withWaitForShadowRoot$1(getRootElement);
80896
+ const getPortalElement = waitForShadowRoot(getRootElement);
80830
80897
 
80831
80898
  super({
80832
80899
  getRootElement: getPortalElement,
@@ -80861,9 +80928,12 @@ function requireIndex_cjs () {
80861
80928
  // Initialize portal element lookup here (deferred from constructor for React compatibility)
80862
80929
  this.#portalEle = this.#getPortalElement();
80863
80930
  const portalEle = await this.#portalEle;
80864
- forwardAttrs(this, portalEle, {
80865
- [include ? 'includeAttrs' : 'excludeAttrs']: attributes,
80866
- });
80931
+ if (forward !== false) {
80932
+ const { attributes = [], include = true } = forward;
80933
+ forwardAttrs(this, portalEle, {
80934
+ [include ? 'includeAttrs' : 'excludeAttrs']: attributes,
80935
+ });
80936
+ }
80867
80937
 
80868
80938
  this.#handleHoverAttribute();
80869
80939
  }
@@ -81188,12 +81258,12 @@ function requireIndex_cjs () {
81188
81258
  }
81189
81259
  };
81190
81260
 
81191
- const componentName$1t = getComponentName('image');
81261
+ const componentName$1u = getComponentName('image');
81192
81262
 
81193
81263
  const srcAttrs = ['src', 'src-dark'];
81194
81264
 
81195
81265
  class RawImage extends createBaseClass$1({
81196
- componentName: componentName$1t,
81266
+ componentName: componentName$1u,
81197
81267
  baseSelector: 'slot',
81198
81268
  }) {
81199
81269
  static get observedAttributes() {
@@ -81321,7 +81391,7 @@ function requireIndex_cjs () {
81321
81391
  componentNameValidationMixin$1,
81322
81392
  )(RawImage);
81323
81393
 
81324
- const componentName$1s = getComponentName('icon');
81394
+ const componentName$1t = getComponentName('icon');
81325
81395
 
81326
81396
  const IconClass = compose(
81327
81397
  createStyleMixin$1({
@@ -81346,7 +81416,7 @@ function requireIndex_cjs () {
81346
81416
  }
81347
81417
  `,
81348
81418
  excludeAttrsSync: ['tabindex', 'class', 'style', 'st-height', 'st-width'],
81349
- componentName: componentName$1s,
81419
+ componentName: componentName$1t,
81350
81420
  }),
81351
81421
  );
81352
81422
 
@@ -81361,7 +81431,7 @@ function requireIndex_cjs () {
81361
81431
  }
81362
81432
  };
81363
81433
 
81364
- const componentName$1r = getComponentName('button');
81434
+ const componentName$1s = getComponentName('button');
81365
81435
 
81366
81436
  const resetStyles = `
81367
81437
  :host {
@@ -81399,7 +81469,7 @@ function requireIndex_cjs () {
81399
81469
 
81400
81470
  const editorOverrides = `vaadin-button::part(label) { pointer-events: none; }`;
81401
81471
 
81402
- const { host: host$E, label: label$a, slottedIcon } = {
81472
+ const { host: host$F, label: label$a, slottedIcon } = {
81403
81473
  host: { selector: () => ':host' },
81404
81474
  label: { selector: '::part(label)' },
81405
81475
  slottedIcon: { selector: () => '::slotted(descope-icon)' },
@@ -81412,9 +81482,9 @@ function requireIndex_cjs () {
81412
81482
  createStyleMixin$1({
81413
81483
  mappings: {
81414
81484
  hostWidth: { property: 'width' },
81415
- hostMaxWidth: { ...host$E, property: 'max-width' },
81485
+ hostMaxWidth: { ...host$F, property: 'max-width' },
81416
81486
  hostHeight: { property: 'height' },
81417
- hostDirection: { ...host$E, property: 'direction' },
81487
+ hostDirection: { ...host$F, property: 'direction' },
81418
81488
  fontSize: {},
81419
81489
  fontFamily: {},
81420
81490
  fontWeight: {},
@@ -81483,7 +81553,7 @@ function requireIndex_cjs () {
81483
81553
  }
81484
81554
  `,
81485
81555
  excludeAttrsSync: ['tabindex', 'class', 'style'],
81486
- componentName: componentName$1r,
81556
+ componentName: componentName$1s,
81487
81557
  }),
81488
81558
  );
81489
81559
 
@@ -81533,7 +81603,7 @@ function requireIndex_cjs () {
81533
81603
 
81534
81604
  const [helperTheme$7, helperRefs$7, helperVars$6] = createHelperVars$1(
81535
81605
  { mode },
81536
- componentName$1r,
81606
+ componentName$1s,
81537
81607
  );
81538
81608
 
81539
81609
  const button = {
@@ -81653,7 +81723,7 @@ function requireIndex_cjs () {
81653
81723
  },
81654
81724
  };
81655
81725
 
81656
- const vars$1b = {
81726
+ const vars$1c = {
81657
81727
  ...compVars$9,
81658
81728
  ...helperVars$6,
81659
81729
  };
@@ -81661,13 +81731,13 @@ function requireIndex_cjs () {
81661
81731
  var button$1 = /*#__PURE__*/Object.freeze({
81662
81732
  __proto__: null,
81663
81733
  default: button,
81664
- vars: vars$1b
81734
+ vars: vars$1c
81665
81735
  });
81666
81736
 
81667
- const componentName$1q = getComponentName('text');
81737
+ const componentName$1r = getComponentName('text');
81668
81738
 
81669
81739
  class RawText extends createBaseClass$1({
81670
- componentName: componentName$1q,
81740
+ componentName: componentName$1r,
81671
81741
  baseSelector: ':host > slot',
81672
81742
  }) {
81673
81743
  constructor() {
@@ -81706,15 +81776,15 @@ function requireIndex_cjs () {
81706
81776
  }
81707
81777
  }
81708
81778
 
81709
- const { host: host$D } = {
81779
+ const { host: host$E } = {
81710
81780
  host: { selector: () => ':host' },
81711
81781
  };
81712
81782
 
81713
81783
  const TextClass = compose(
81714
81784
  createStyleMixin$1({
81715
81785
  mappings: {
81716
- hostWidth: { ...host$D, property: 'width' },
81717
- hostDirection: { ...host$D, property: 'direction' },
81786
+ hostWidth: { ...host$E, property: 'width' },
81787
+ hostDirection: { ...host$E, property: 'direction' },
81718
81788
  fontSize: {},
81719
81789
  textColor: [{ property: 'color' }],
81720
81790
  textLineHeight: { property: 'line-height' },
@@ -81736,106 +81806,106 @@ function requireIndex_cjs () {
81736
81806
  )(RawText);
81737
81807
 
81738
81808
  const globalRefs$J = getThemeRefs$1(globals);
81739
- const vars$1a = TextClass.cssVarList;
81809
+ const vars$1b = TextClass.cssVarList;
81740
81810
 
81741
81811
  const text$3 = {
81742
- [vars$1a.hostDirection]: globalRefs$J.direction,
81743
- [vars$1a.textLineHeight]: '1.35em',
81744
- [vars$1a.textAlign]: 'start',
81745
- [vars$1a.textColor]: globalRefs$J.colors.surface.dark,
81812
+ [vars$1b.hostDirection]: globalRefs$J.direction,
81813
+ [vars$1b.textLineHeight]: '1.35em',
81814
+ [vars$1b.textAlign]: 'start',
81815
+ [vars$1b.textColor]: globalRefs$J.colors.surface.dark,
81746
81816
 
81747
81817
  variant: {
81748
81818
  h1: {
81749
- [vars$1a.fontSize]: globalRefs$J.typography.h1.size,
81750
- [vars$1a.fontWeight]: globalRefs$J.typography.h1.weight,
81751
- [vars$1a.fontFamily]: globalRefs$J.typography.h1.font,
81819
+ [vars$1b.fontSize]: globalRefs$J.typography.h1.size,
81820
+ [vars$1b.fontWeight]: globalRefs$J.typography.h1.weight,
81821
+ [vars$1b.fontFamily]: globalRefs$J.typography.h1.font,
81752
81822
  },
81753
81823
  h2: {
81754
- [vars$1a.fontSize]: globalRefs$J.typography.h2.size,
81755
- [vars$1a.fontWeight]: globalRefs$J.typography.h2.weight,
81756
- [vars$1a.fontFamily]: globalRefs$J.typography.h2.font,
81824
+ [vars$1b.fontSize]: globalRefs$J.typography.h2.size,
81825
+ [vars$1b.fontWeight]: globalRefs$J.typography.h2.weight,
81826
+ [vars$1b.fontFamily]: globalRefs$J.typography.h2.font,
81757
81827
  },
81758
81828
  h3: {
81759
- [vars$1a.fontSize]: globalRefs$J.typography.h3.size,
81760
- [vars$1a.fontWeight]: globalRefs$J.typography.h3.weight,
81761
- [vars$1a.fontFamily]: globalRefs$J.typography.h3.font,
81829
+ [vars$1b.fontSize]: globalRefs$J.typography.h3.size,
81830
+ [vars$1b.fontWeight]: globalRefs$J.typography.h3.weight,
81831
+ [vars$1b.fontFamily]: globalRefs$J.typography.h3.font,
81762
81832
  },
81763
81833
  subtitle1: {
81764
- [vars$1a.fontSize]: globalRefs$J.typography.subtitle1.size,
81765
- [vars$1a.fontWeight]: globalRefs$J.typography.subtitle1.weight,
81766
- [vars$1a.fontFamily]: globalRefs$J.typography.subtitle1.font,
81834
+ [vars$1b.fontSize]: globalRefs$J.typography.subtitle1.size,
81835
+ [vars$1b.fontWeight]: globalRefs$J.typography.subtitle1.weight,
81836
+ [vars$1b.fontFamily]: globalRefs$J.typography.subtitle1.font,
81767
81837
  },
81768
81838
  subtitle2: {
81769
- [vars$1a.fontSize]: globalRefs$J.typography.subtitle2.size,
81770
- [vars$1a.fontWeight]: globalRefs$J.typography.subtitle2.weight,
81771
- [vars$1a.fontFamily]: globalRefs$J.typography.subtitle2.font,
81839
+ [vars$1b.fontSize]: globalRefs$J.typography.subtitle2.size,
81840
+ [vars$1b.fontWeight]: globalRefs$J.typography.subtitle2.weight,
81841
+ [vars$1b.fontFamily]: globalRefs$J.typography.subtitle2.font,
81772
81842
  },
81773
81843
  body1: {
81774
- [vars$1a.fontSize]: globalRefs$J.typography.body1.size,
81775
- [vars$1a.fontWeight]: globalRefs$J.typography.body1.weight,
81776
- [vars$1a.fontFamily]: globalRefs$J.typography.body1.font,
81844
+ [vars$1b.fontSize]: globalRefs$J.typography.body1.size,
81845
+ [vars$1b.fontWeight]: globalRefs$J.typography.body1.weight,
81846
+ [vars$1b.fontFamily]: globalRefs$J.typography.body1.font,
81777
81847
  },
81778
81848
  body2: {
81779
- [vars$1a.fontSize]: globalRefs$J.typography.body2.size,
81780
- [vars$1a.fontWeight]: globalRefs$J.typography.body2.weight,
81781
- [vars$1a.fontFamily]: globalRefs$J.typography.body2.font,
81849
+ [vars$1b.fontSize]: globalRefs$J.typography.body2.size,
81850
+ [vars$1b.fontWeight]: globalRefs$J.typography.body2.weight,
81851
+ [vars$1b.fontFamily]: globalRefs$J.typography.body2.font,
81782
81852
  },
81783
81853
  },
81784
81854
 
81785
81855
  mode: {
81786
81856
  primary: {
81787
- [vars$1a.textColor]: globalRefs$J.colors.surface.contrast,
81857
+ [vars$1b.textColor]: globalRefs$J.colors.surface.contrast,
81788
81858
  },
81789
81859
  secondary: {
81790
- [vars$1a.textColor]: globalRefs$J.colors.surface.dark,
81860
+ [vars$1b.textColor]: globalRefs$J.colors.surface.dark,
81791
81861
  },
81792
81862
  error: {
81793
- [vars$1a.textColor]: globalRefs$J.colors.error.main,
81863
+ [vars$1b.textColor]: globalRefs$J.colors.error.main,
81794
81864
  },
81795
81865
  'error-dark': {
81796
- [vars$1a.textColor]: globalRefs$J.colors.error.dark,
81866
+ [vars$1b.textColor]: globalRefs$J.colors.error.dark,
81797
81867
  },
81798
81868
  success: {
81799
- [vars$1a.textColor]: globalRefs$J.colors.success.main,
81869
+ [vars$1b.textColor]: globalRefs$J.colors.success.main,
81800
81870
  },
81801
81871
  'success-dark': {
81802
- [vars$1a.textColor]: globalRefs$J.colors.success.dark,
81872
+ [vars$1b.textColor]: globalRefs$J.colors.success.dark,
81803
81873
  },
81804
81874
  warning: {
81805
- [vars$1a.textColor]: globalRefs$J.colors.warning.main,
81875
+ [vars$1b.textColor]: globalRefs$J.colors.warning.main,
81806
81876
  },
81807
81877
  'warning-dark': {
81808
- [vars$1a.textColor]: globalRefs$J.colors.warning.dark,
81878
+ [vars$1b.textColor]: globalRefs$J.colors.warning.dark,
81809
81879
  },
81810
81880
  },
81811
81881
 
81812
81882
  textAlign: {
81813
- right: { [vars$1a.textAlign]: 'right' },
81814
- left: { [vars$1a.textAlign]: 'left' },
81815
- center: { [vars$1a.textAlign]: 'center' },
81883
+ right: { [vars$1b.textAlign]: 'right' },
81884
+ left: { [vars$1b.textAlign]: 'left' },
81885
+ center: { [vars$1b.textAlign]: 'center' },
81816
81886
  },
81817
81887
 
81818
81888
  _fullWidth: {
81819
- [vars$1a.hostWidth]: '100%',
81889
+ [vars$1b.hostWidth]: '100%',
81820
81890
  },
81821
81891
 
81822
81892
  _italic: {
81823
- [vars$1a.fontStyle]: 'italic',
81893
+ [vars$1b.fontStyle]: 'italic',
81824
81894
  },
81825
81895
 
81826
81896
  _uppercase: {
81827
- [vars$1a.textTransform]: 'uppercase',
81897
+ [vars$1b.textTransform]: 'uppercase',
81828
81898
  },
81829
81899
 
81830
81900
  _lowercase: {
81831
- [vars$1a.textTransform]: 'lowercase',
81901
+ [vars$1b.textTransform]: 'lowercase',
81832
81902
  },
81833
81903
  };
81834
81904
 
81835
81905
  var text$4 = /*#__PURE__*/Object.freeze({
81836
81906
  __proto__: null,
81837
81907
  default: text$3,
81838
- vars: vars$1a
81908
+ vars: vars$1b
81839
81909
  });
81840
81910
 
81841
81911
  const disableRules = [
@@ -81859,10 +81929,10 @@ function requireIndex_cjs () {
81859
81929
  return textArea.value;
81860
81930
  };
81861
81931
 
81862
- const componentName$1p = getComponentName('enriched-text');
81932
+ const componentName$1q = getComponentName('enriched-text');
81863
81933
 
81864
81934
  class EnrichedText extends createBaseClass$1({
81865
- componentName: componentName$1p,
81935
+ componentName: componentName$1q,
81866
81936
  baseSelector: ':host > div',
81867
81937
  }) {
81868
81938
  #origLinkRenderer;
@@ -81924,6 +81994,13 @@ function requireIndex_cjs () {
81924
81994
  e.stopPropagation();
81925
81995
  }
81926
81996
  });
81997
+
81998
+ // The SDK submits the form (and prevents link activation) on any Enter that reaches the flow root
81999
+ this.contentNode?.addEventListener('keydown', (e) => {
82000
+ if (e.key === 'Enter' && e.target instanceof HTMLAnchorElement) {
82001
+ e.stopPropagation();
82002
+ }
82003
+ });
81927
82004
  }
81928
82005
 
81929
82006
  static get observedAttributes() {
@@ -82099,12 +82176,12 @@ function requireIndex_cjs () {
82099
82176
  componentNameValidationMixin$1,
82100
82177
  )(EnrichedText);
82101
82178
 
82102
- const componentName$1o = getComponentName('link');
82179
+ const componentName$1p = getComponentName('link');
82103
82180
 
82104
82181
  const observedAttrs$8 = ['href', 'readonly'];
82105
82182
 
82106
82183
  class RawLink extends createBaseClass$1({
82107
- componentName: componentName$1o,
82184
+ componentName: componentName$1p,
82108
82185
  baseSelector: ':host a',
82109
82186
  }) {
82110
82187
  static get observedAttributes() {
@@ -82179,12 +82256,12 @@ function requireIndex_cjs () {
82179
82256
  text: { selector: () => TextClass.componentName },
82180
82257
  };
82181
82258
 
82182
- const { anchor, text: text$2, host: host$C, wrapper: wrapper$1, link: link$3 } = selectors$3;
82259
+ const { anchor, text: text$2, host: host$D, wrapper: wrapper$1, link: link$3 } = selectors$3;
82183
82260
 
82184
82261
  const LinkClass = compose(
82185
82262
  createStyleMixin$1({
82186
82263
  mappings: {
82187
- hostWidth: { ...host$C, property: 'width' },
82264
+ hostWidth: { ...host$D, property: 'width' },
82188
82265
  hostDirection: { ...text$2, property: 'direction' },
82189
82266
  textAlign: wrapper$1,
82190
82267
  textDecoration: {
@@ -82205,31 +82282,31 @@ function requireIndex_cjs () {
82205
82282
  )(RawLink);
82206
82283
 
82207
82284
  const globalRefs$I = getThemeRefs$1(globals);
82208
- const vars$19 = LinkClass.cssVarList;
82285
+ const vars$1a = LinkClass.cssVarList;
82209
82286
 
82210
82287
  const link$1 = {
82211
- [vars$19.hostDirection]: globalRefs$I.direction,
82212
- [vars$19.cursor]: 'pointer',
82288
+ [vars$1a.hostDirection]: globalRefs$I.direction,
82289
+ [vars$1a.cursor]: 'pointer',
82213
82290
 
82214
- [vars$19.textColor]: globalRefs$I.colors.primary.main,
82291
+ [vars$1a.textColor]: globalRefs$I.colors.primary.main,
82215
82292
 
82216
82293
  textAlign: {
82217
- right: { [vars$19.textAlign]: 'right' },
82218
- left: { [vars$19.textAlign]: 'left' },
82219
- center: { [vars$19.textAlign]: 'center' },
82294
+ right: { [vars$1a.textAlign]: 'right' },
82295
+ left: { [vars$1a.textAlign]: 'left' },
82296
+ center: { [vars$1a.textAlign]: 'center' },
82220
82297
  },
82221
82298
 
82222
82299
  _fullWidth: {
82223
- [vars$19.hostWidth]: '100%',
82300
+ [vars$1a.hostWidth]: '100%',
82224
82301
  },
82225
82302
 
82226
82303
  _hover: {
82227
- [vars$19.textDecoration]: 'underline',
82304
+ [vars$1a.textDecoration]: 'underline',
82228
82305
  },
82229
82306
 
82230
82307
  mode: {
82231
82308
  secondary: {
82232
- [vars$19.textColor]: globalRefs$I.colors.secondary.main,
82309
+ [vars$1a.textColor]: globalRefs$I.colors.secondary.main,
82233
82310
  },
82234
82311
  },
82235
82312
  };
@@ -82237,37 +82314,37 @@ function requireIndex_cjs () {
82237
82314
  var link$2 = /*#__PURE__*/Object.freeze({
82238
82315
  __proto__: null,
82239
82316
  default: link$1,
82240
- vars: vars$19
82317
+ vars: vars$1a
82241
82318
  });
82242
82319
 
82243
82320
  const globalRefs$H = getThemeRefs$1(globals);
82244
- const vars$18 = EnrichedTextClass.cssVarList;
82321
+ const vars$19 = EnrichedTextClass.cssVarList;
82245
82322
 
82246
82323
  const enrichedText = {
82247
- [vars$18.hostDirection]: globalRefs$H.direction,
82248
- [vars$18.hostWidth]: useVar$1(vars$1a.hostWidth),
82324
+ [vars$19.hostDirection]: globalRefs$H.direction,
82325
+ [vars$19.hostWidth]: useVar$1(vars$1b.hostWidth),
82249
82326
 
82250
- [vars$18.textLineHeight]: useVar$1(vars$1a.textLineHeight),
82251
- [vars$18.textColor]: useVar$1(vars$1a.textColor),
82252
- [vars$18.textAlign]: useVar$1(vars$1a.textAlign),
82327
+ [vars$19.textLineHeight]: useVar$1(vars$1b.textLineHeight),
82328
+ [vars$19.textColor]: useVar$1(vars$1b.textColor),
82329
+ [vars$19.textAlign]: useVar$1(vars$1b.textAlign),
82253
82330
 
82254
- [vars$18.fontSize]: useVar$1(vars$1a.fontSize),
82255
- [vars$18.fontWeight]: useVar$1(vars$1a.fontWeight),
82256
- [vars$18.fontFamily]: useVar$1(vars$1a.fontFamily),
82331
+ [vars$19.fontSize]: useVar$1(vars$1b.fontSize),
82332
+ [vars$19.fontWeight]: useVar$1(vars$1b.fontWeight),
82333
+ [vars$19.fontFamily]: useVar$1(vars$1b.fontFamily),
82257
82334
 
82258
- [vars$18.linkColor]: useVar$1(vars$19.textColor),
82259
- [vars$18.linkTextDecoration]: 'none',
82260
- [vars$18.linkHoverTextDecoration]: 'underline',
82335
+ [vars$19.linkColor]: useVar$1(vars$1a.textColor),
82336
+ [vars$19.linkTextDecoration]: 'none',
82337
+ [vars$19.linkHoverTextDecoration]: 'underline',
82261
82338
 
82262
- [vars$18.fontWeightBold]: '900',
82263
- [vars$18.minWidth]: '0.25em',
82264
- [vars$18.minHeight]: '1.35em',
82339
+ [vars$19.fontWeightBold]: '900',
82340
+ [vars$19.minWidth]: '0.25em',
82341
+ [vars$19.minHeight]: '1.35em',
82265
82342
 
82266
- [vars$18.hostDisplay]: 'inline-block',
82343
+ [vars$19.hostDisplay]: 'inline-block',
82267
82344
 
82268
82345
  _empty: {
82269
82346
  _hideWhenEmpty: {
82270
- [vars$18.hostDisplay]: 'none',
82347
+ [vars$19.hostDisplay]: 'none',
82271
82348
  },
82272
82349
  },
82273
82350
  };
@@ -82275,10 +82352,10 @@ function requireIndex_cjs () {
82275
82352
  var enrichedText$1 = /*#__PURE__*/Object.freeze({
82276
82353
  __proto__: null,
82277
82354
  default: enrichedText,
82278
- vars: vars$18
82355
+ vars: vars$19
82279
82356
  });
82280
82357
 
82281
- const componentName$1n = getComponentName('combo-box');
82358
+ const componentName$1o = getComponentName('combo-box');
82282
82359
 
82283
82360
  const ComboBoxMixin = (superclass) =>
82284
82361
  class ComboBoxMixinClass extends superclass {
@@ -82665,7 +82742,7 @@ function requireIndex_cjs () {
82665
82742
  };
82666
82743
 
82667
82744
  const {
82668
- host: host$B,
82745
+ host: host$C,
82669
82746
  inputField: inputField$6,
82670
82747
  inputElement: inputElement$3,
82671
82748
  placeholder: placeholder$3,
@@ -82697,10 +82774,10 @@ function requireIndex_cjs () {
82697
82774
  const ComboBoxClass = compose(
82698
82775
  createStyleMixin$1({
82699
82776
  mappings: {
82700
- hostWidth: { ...host$B, property: 'width' },
82701
- hostDirection: { ...host$B, property: 'direction' },
82777
+ hostWidth: { ...host$C, property: 'width' },
82778
+ hostDirection: { ...host$C, property: 'direction' },
82702
82779
  // we apply font-size also on the host so we can set its width with em
82703
- fontSize: [{}, host$B],
82780
+ fontSize: [{}, host$C],
82704
82781
  fontFamily: [label$9, placeholder$3, inputField$6, helperText$a, errorMessage$d],
82705
82782
  labelFontSize: { ...label$9, property: 'font-size' },
82706
82783
  labelFontWeight: { ...label$9, property: 'font-weight' },
@@ -82975,12 +83052,12 @@ function requireIndex_cjs () {
82975
83052
  'loading',
82976
83053
  'style',
82977
83054
  ],
82978
- componentName: componentName$1n,
83055
+ componentName: componentName$1o,
82979
83056
  includeForwardProps: ['items', 'renderer', 'selectedItem'],
82980
83057
  }),
82981
83058
  );
82982
83059
 
82983
- const componentName$1m = getComponentName('input-wrapper');
83060
+ const componentName$1n = getComponentName('input-wrapper');
82984
83061
  const globalRefs$G = getThemeRefs$1(globals);
82985
83062
 
82986
83063
  const [theme$2, refs$1] = createHelperVars$1(
@@ -83110,120 +83187,120 @@ function requireIndex_cjs () {
83110
83187
  inputTextSecurity: 'disc',
83111
83188
  },
83112
83189
  },
83113
- componentName$1m,
83190
+ componentName$1n,
83114
83191
  );
83115
83192
 
83116
83193
  const globalRefs$F = getThemeRefs$1(globals);
83117
- const vars$17 = ComboBoxClass.cssVarList;
83118
-
83119
- const comboBox = {
83120
- [vars$17.hostWidth]: refs$1.width,
83121
- [vars$17.hostDirection]: refs$1.direction,
83122
- [vars$17.fontSize]: refs$1.fontSize,
83123
- [vars$17.fontFamily]: refs$1.fontFamily,
83124
- [vars$17.labelFontSize]: refs$1.labelFontSize,
83125
- [vars$17.labelFontWeight]: refs$1.labelFontWeight,
83126
- [vars$17.inputValueFontWeight]: refs$1.inputValueFontWeight,
83127
- [vars$17.inputPlaceholderFontWeight]: refs$1.inputPlaceholderFontWeight,
83128
- [vars$17.helperTextFontWeight]: refs$1.helperTextFontWeight,
83129
- [vars$17.errorMessageFontWeight]: refs$1.errorMessageFontWeight,
83130
- [vars$17.labelTextColor]: refs$1.labelTextColor,
83131
- [vars$17.errorMessageTextColor]: refs$1.errorMessageTextColor,
83132
- [vars$17.inputBorderColor]: refs$1.borderColor,
83133
- [vars$17.inputBorderWidth]: refs$1.borderWidth,
83134
- [vars$17.inputBorderStyle]: refs$1.borderStyle,
83135
- [vars$17.inputBorderRadius]: refs$1.borderRadius,
83136
- [vars$17.inputOutlineColor]: refs$1.outlineColor,
83137
- [vars$17.inputOutlineOffset]: refs$1.outlineOffset,
83138
- [vars$17.inputOutlineWidth]: refs$1.outlineWidth,
83139
- [vars$17.inputOutlineStyle]: refs$1.outlineStyle,
83140
- [vars$17.labelRequiredIndicator]: refs$1.requiredIndicator,
83141
- [vars$17.inputValueTextColor]: refs$1.valueTextColor,
83142
- [vars$17.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
83143
- [vars$17.inputBackgroundColor]: refs$1.backgroundColor,
83144
- [vars$17.inputHorizontalPadding]: refs$1.horizontalPadding,
83145
- [vars$17.inputHeight]: refs$1.inputHeight,
83146
- [vars$17.inputDropdownButtonColor]: globalRefs$F.colors.surface.dark,
83147
- [vars$17.inputDropdownButtonCursor]: 'pointer',
83148
- [vars$17.inputDropdownButtonSize]: refs$1.toggleButtonSize,
83149
- [vars$17.inputDropdownButtonOffset]: globalRefs$F.spacing.xs,
83150
- [vars$17.overlayItemPaddingInlineStart]: globalRefs$F.spacing.xs,
83151
- [vars$17.overlayItemPaddingInlineEnd]: globalRefs$F.spacing.lg,
83152
- [vars$17.labelPosition]: refs$1.labelPosition,
83153
- [vars$17.labelTopPosition]: refs$1.labelTopPosition,
83154
- [vars$17.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
83155
- [vars$17.inputTransformY]: refs$1.inputTransformY,
83156
- [vars$17.inputTransition]: refs$1.inputTransition,
83157
- [vars$17.marginInlineStart]: refs$1.marginInlineStart,
83158
- [vars$17.placeholderOpacity]: refs$1.placeholderOpacity,
83159
- [vars$17.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
83160
- [vars$17.valueInputHeight]: refs$1.valueInputHeight,
83161
- [vars$17.valueInputMarginBottom]: refs$1.valueInputMarginBottom,
83194
+ const vars$18 = ComboBoxClass.cssVarList;
83195
+
83196
+ const comboBox$1 = {
83197
+ [vars$18.hostWidth]: refs$1.width,
83198
+ [vars$18.hostDirection]: refs$1.direction,
83199
+ [vars$18.fontSize]: refs$1.fontSize,
83200
+ [vars$18.fontFamily]: refs$1.fontFamily,
83201
+ [vars$18.labelFontSize]: refs$1.labelFontSize,
83202
+ [vars$18.labelFontWeight]: refs$1.labelFontWeight,
83203
+ [vars$18.inputValueFontWeight]: refs$1.inputValueFontWeight,
83204
+ [vars$18.inputPlaceholderFontWeight]: refs$1.inputPlaceholderFontWeight,
83205
+ [vars$18.helperTextFontWeight]: refs$1.helperTextFontWeight,
83206
+ [vars$18.errorMessageFontWeight]: refs$1.errorMessageFontWeight,
83207
+ [vars$18.labelTextColor]: refs$1.labelTextColor,
83208
+ [vars$18.errorMessageTextColor]: refs$1.errorMessageTextColor,
83209
+ [vars$18.inputBorderColor]: refs$1.borderColor,
83210
+ [vars$18.inputBorderWidth]: refs$1.borderWidth,
83211
+ [vars$18.inputBorderStyle]: refs$1.borderStyle,
83212
+ [vars$18.inputBorderRadius]: refs$1.borderRadius,
83213
+ [vars$18.inputOutlineColor]: refs$1.outlineColor,
83214
+ [vars$18.inputOutlineOffset]: refs$1.outlineOffset,
83215
+ [vars$18.inputOutlineWidth]: refs$1.outlineWidth,
83216
+ [vars$18.inputOutlineStyle]: refs$1.outlineStyle,
83217
+ [vars$18.labelRequiredIndicator]: refs$1.requiredIndicator,
83218
+ [vars$18.inputValueTextColor]: refs$1.valueTextColor,
83219
+ [vars$18.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
83220
+ [vars$18.inputBackgroundColor]: refs$1.backgroundColor,
83221
+ [vars$18.inputHorizontalPadding]: refs$1.horizontalPadding,
83222
+ [vars$18.inputHeight]: refs$1.inputHeight,
83223
+ [vars$18.inputDropdownButtonColor]: globalRefs$F.colors.surface.dark,
83224
+ [vars$18.inputDropdownButtonCursor]: 'pointer',
83225
+ [vars$18.inputDropdownButtonSize]: refs$1.toggleButtonSize,
83226
+ [vars$18.inputDropdownButtonOffset]: globalRefs$F.spacing.xs,
83227
+ [vars$18.overlayItemPaddingInlineStart]: globalRefs$F.spacing.xs,
83228
+ [vars$18.overlayItemPaddingInlineEnd]: globalRefs$F.spacing.lg,
83229
+ [vars$18.labelPosition]: refs$1.labelPosition,
83230
+ [vars$18.labelTopPosition]: refs$1.labelTopPosition,
83231
+ [vars$18.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
83232
+ [vars$18.inputTransformY]: refs$1.inputTransformY,
83233
+ [vars$18.inputTransition]: refs$1.inputTransition,
83234
+ [vars$18.marginInlineStart]: refs$1.marginInlineStart,
83235
+ [vars$18.placeholderOpacity]: refs$1.placeholderOpacity,
83236
+ [vars$18.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
83237
+ [vars$18.valueInputHeight]: refs$1.valueInputHeight,
83238
+ [vars$18.valueInputMarginBottom]: refs$1.valueInputMarginBottom,
83162
83239
 
83163
83240
  // error message icon
83164
- [vars$17.errorMessageIcon]: refs$1.errorMessageIcon,
83165
- [vars$17.errorMessageIconSize]: refs$1.errorMessageIconSize,
83166
- [vars$17.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
83167
- [vars$17.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
83168
- [vars$17.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
83169
- [vars$17.errorMessageFontSize]: refs$1.errorMessageFontSize,
83241
+ [vars$18.errorMessageIcon]: refs$1.errorMessageIcon,
83242
+ [vars$18.errorMessageIconSize]: refs$1.errorMessageIconSize,
83243
+ [vars$18.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
83244
+ [vars$18.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
83245
+ [vars$18.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
83246
+ [vars$18.errorMessageFontSize]: refs$1.errorMessageFontSize,
83170
83247
 
83171
83248
  _readonly: {
83172
- [vars$17.inputDropdownButtonCursor]: 'default',
83249
+ [vars$18.inputDropdownButtonCursor]: 'default',
83173
83250
  },
83174
83251
 
83175
83252
  // Overlay theme exposed via the component:
83176
- [vars$17.overlayFontSize]: refs$1.fontSize,
83177
- [vars$17.overlayFontFamily]: refs$1.fontFamily,
83178
- [vars$17.overlayCursor]: 'pointer',
83179
- [vars$17.overlayItemBoxShadow]: 'none',
83180
- [vars$17.overlayBackground]: refs$1.backgroundColor,
83181
- [vars$17.overlayTextColor]: refs$1.valueTextColor,
83182
- [vars$17.overlayCheckmarkDisplay]: 'initial',
83183
- [vars$17.overlaySelectedItemBackground]: 'initial',
83184
- [vars$17.overlaySelectedItemHoverBackground]:
83253
+ [vars$18.overlayFontSize]: refs$1.fontSize,
83254
+ [vars$18.overlayFontFamily]: refs$1.fontFamily,
83255
+ [vars$18.overlayCursor]: 'pointer',
83256
+ [vars$18.overlayItemBoxShadow]: 'none',
83257
+ [vars$18.overlayBackground]: refs$1.backgroundColor,
83258
+ [vars$18.overlayTextColor]: refs$1.valueTextColor,
83259
+ [vars$18.overlayCheckmarkDisplay]: 'initial',
83260
+ [vars$18.overlaySelectedItemBackground]: 'initial',
83261
+ [vars$18.overlaySelectedItemHoverBackground]:
83185
83262
  globalRefs$F.colors.primary.highlight,
83186
- [vars$17.overlaySelectedItemFocusBackground]:
83263
+ [vars$18.overlaySelectedItemFocusBackground]:
83187
83264
  globalRefs$F.colors.primary.highlight,
83188
- [vars$17.overlayItemHoverBackground]: globalRefs$F.colors.primary.highlight,
83189
- [vars$17.overlayItemFocusBackground]: globalRefs$F.colors.primary.highlight,
83265
+ [vars$18.overlayItemHoverBackground]: globalRefs$F.colors.primary.highlight,
83266
+ [vars$18.overlayItemFocusBackground]: globalRefs$F.colors.primary.highlight,
83190
83267
 
83191
83268
  // Overlay direct theme:
83192
- [vars$17.overlay.margin]: '0',
83269
+ [vars$18.overlay.margin]: '0',
83193
83270
 
83194
- [vars$17.overlay.contentHeight]: '100%',
83195
- [vars$17.overlay.contentOpacity]: '1',
83196
- [vars$17.overlay.scrollerMinHeight]: '1px',
83271
+ [vars$18.overlay.contentHeight]: '100%',
83272
+ [vars$18.overlay.contentOpacity]: '1',
83273
+ [vars$18.overlay.scrollerMinHeight]: '1px',
83197
83274
  _loading: {
83198
- [vars$17.overlay.loaderTop]: '50%',
83199
- [vars$17.overlay.loaderLeft]: '50%',
83200
- [vars$17.overlay.loaderRight]: 'auto',
83275
+ [vars$18.overlay.loaderTop]: '50%',
83276
+ [vars$18.overlay.loaderLeft]: '50%',
83277
+ [vars$18.overlay.loaderRight]: 'auto',
83201
83278
  // Margin has to be negative to center the loader, "transform" can't be used because the animation uses it
83202
83279
  // Margin has to be half of the width/height of the loader to center it
83203
- [vars$17.overlay.loaderMargin]: '-15px 0 0 -15px',
83204
- [vars$17.overlay.loaderWidth]: '30px',
83205
- [vars$17.overlay.loaderHeight]: '30px',
83206
- [vars$17.overlay.loaderBorder]: '2px solid transparent',
83207
- [vars$17.overlay.loaderBorderColor]:
83280
+ [vars$18.overlay.loaderMargin]: '-15px 0 0 -15px',
83281
+ [vars$18.overlay.loaderWidth]: '30px',
83282
+ [vars$18.overlay.loaderHeight]: '30px',
83283
+ [vars$18.overlay.loaderBorder]: '2px solid transparent',
83284
+ [vars$18.overlay.loaderBorderColor]:
83208
83285
  `${globalRefs$F.colors.primary.highlight} ${globalRefs$F.colors.primary.highlight} ${globalRefs$F.colors.primary.main} ${globalRefs$F.colors.primary.main}`,
83209
- [vars$17.overlay.loaderBorderRadius]: '50%',
83210
- [vars$17.overlay.contentHeight]: '100px',
83211
- [vars$17.overlay.scrollerMinHeight]: '100px',
83212
- [vars$17.overlay.contentOpacity]: '0',
83286
+ [vars$18.overlay.loaderBorderRadius]: '50%',
83287
+ [vars$18.overlay.contentHeight]: '100px',
83288
+ [vars$18.overlay.scrollerMinHeight]: '100px',
83289
+ [vars$18.overlay.contentOpacity]: '0',
83213
83290
  },
83214
83291
  };
83215
83292
 
83216
- var comboBox$1 = /*#__PURE__*/Object.freeze({
83293
+ var comboBox$2 = /*#__PURE__*/Object.freeze({
83217
83294
  __proto__: null,
83218
- comboBox: comboBox,
83219
- default: comboBox,
83220
- vars: vars$17
83295
+ comboBox: comboBox$1,
83296
+ default: comboBox$1,
83297
+ vars: vars$18
83221
83298
  });
83222
83299
 
83223
- const componentName$1l = getComponentName('badge');
83300
+ const componentName$1m = getComponentName('badge');
83224
83301
 
83225
83302
  class RawBadge extends createBaseClass$1({
83226
- componentName: componentName$1l,
83303
+ componentName: componentName$1m,
83227
83304
  baseSelector: ':host > div',
83228
83305
  }) {
83229
83306
  static get observedAttributes() {
@@ -83319,46 +83396,46 @@ function requireIndex_cjs () {
83319
83396
  {
83320
83397
  shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
83321
83398
  },
83322
- componentName$1l,
83399
+ componentName$1m,
83323
83400
  );
83324
83401
 
83325
83402
  const { shadowColor: shadowColor$8 } = helperRefs$6;
83326
83403
 
83327
- const vars$16 = BadgeClass.cssVarList;
83404
+ const vars$17 = BadgeClass.cssVarList;
83328
83405
 
83329
83406
  const badge$2 = {
83330
83407
  ...helperTheme$6,
83331
83408
 
83332
- [vars$16.hostWidth]: 'fit-content',
83333
- [vars$16.hostDirection]: globalRefs$E.direction,
83409
+ [vars$17.hostWidth]: 'fit-content',
83410
+ [vars$17.hostDirection]: globalRefs$E.direction,
83334
83411
 
83335
- [vars$16.textAlign]: 'center',
83412
+ [vars$17.textAlign]: 'center',
83336
83413
 
83337
- [vars$16.fontFamily]: globalRefs$E.fonts.font1.family,
83338
- [vars$16.fontWeight]: '400',
83414
+ [vars$17.fontFamily]: globalRefs$E.fonts.font1.family,
83415
+ [vars$17.fontWeight]: '400',
83339
83416
 
83340
- [vars$16.verticalPadding]: '0.25em',
83341
- [vars$16.horizontalPadding]: '0.5em',
83417
+ [vars$17.verticalPadding]: '0.25em',
83418
+ [vars$17.horizontalPadding]: '0.5em',
83342
83419
 
83343
- [vars$16.borderWidth]: globalRefs$E.border.xs,
83344
- [vars$16.borderRadius]: globalRefs$E.radius.xs,
83345
- [vars$16.borderColor]: 'transparent',
83346
- [vars$16.borderStyle]: 'solid',
83420
+ [vars$17.borderWidth]: globalRefs$E.border.xs,
83421
+ [vars$17.borderRadius]: globalRefs$E.radius.xs,
83422
+ [vars$17.borderColor]: 'transparent',
83423
+ [vars$17.borderStyle]: 'solid',
83347
83424
 
83348
83425
  _fullWidth: {
83349
- [vars$16.hostWidth]: '100%',
83426
+ [vars$17.hostWidth]: '100%',
83350
83427
  },
83351
83428
 
83352
83429
  size: {
83353
- xs: { [vars$16.fontSize]: '12px' },
83354
- sm: { [vars$16.fontSize]: '14px' },
83355
- md: { [vars$16.fontSize]: '16px' },
83356
- lg: { [vars$16.fontSize]: '18px' },
83430
+ xs: { [vars$17.fontSize]: '12px' },
83431
+ sm: { [vars$17.fontSize]: '14px' },
83432
+ md: { [vars$17.fontSize]: '16px' },
83433
+ lg: { [vars$17.fontSize]: '18px' },
83357
83434
  },
83358
83435
 
83359
83436
  variant: {
83360
83437
  contained: {
83361
- [vars$16.backgroundColor]: globalRefs$E.colors.surface.main,
83438
+ [vars$17.backgroundColor]: globalRefs$E.colors.surface.main,
83362
83439
  },
83363
83440
  },
83364
83441
 
@@ -83377,58 +83454,58 @@ function requireIndex_cjs () {
83377
83454
  // },
83378
83455
 
83379
83456
  _shrinkToIndicator: {
83380
- [vars$16.hostWidth]: '13px',
83381
- [vars$16.hostHeight]: '13px',
83382
- [vars$16.borderRadius]: '50%',
83383
- [vars$16.fontSize]: '0',
83384
- [vars$16.textIndent]: '-9999px',
83457
+ [vars$17.hostWidth]: '13px',
83458
+ [vars$17.hostHeight]: '13px',
83459
+ [vars$17.borderRadius]: '50%',
83460
+ [vars$17.fontSize]: '0',
83461
+ [vars$17.textIndent]: '-9999px',
83385
83462
  },
83386
83463
 
83387
83464
  mode: {
83388
83465
  default: {
83389
- [vars$16.textColor]: globalRefs$E.colors.surface.dark,
83466
+ [vars$17.textColor]: globalRefs$E.colors.surface.dark,
83390
83467
  _bordered: {
83391
- [vars$16.borderColor]: globalRefs$E.colors.surface.light,
83468
+ [vars$17.borderColor]: globalRefs$E.colors.surface.light,
83392
83469
  },
83393
83470
  },
83394
83471
  primary: {
83395
- [vars$16.textColor]: globalRefs$E.colors.primary.main,
83472
+ [vars$17.textColor]: globalRefs$E.colors.primary.main,
83396
83473
  _bordered: {
83397
- [vars$16.borderColor]: globalRefs$E.colors.primary.light,
83474
+ [vars$17.borderColor]: globalRefs$E.colors.primary.light,
83398
83475
  },
83399
83476
  },
83400
83477
  secondary: {
83401
- [vars$16.textColor]: globalRefs$E.colors.secondary.main,
83478
+ [vars$17.textColor]: globalRefs$E.colors.secondary.main,
83402
83479
  _bordered: {
83403
- [vars$16.borderColor]: globalRefs$E.colors.secondary.light,
83480
+ [vars$17.borderColor]: globalRefs$E.colors.secondary.light,
83404
83481
  },
83405
83482
  },
83406
83483
  error: {
83407
- [vars$16.textColor]: globalRefs$E.colors.error.main,
83484
+ [vars$17.textColor]: globalRefs$E.colors.error.main,
83408
83485
  _bordered: {
83409
- [vars$16.borderColor]: globalRefs$E.colors.error.light,
83486
+ [vars$17.borderColor]: globalRefs$E.colors.error.light,
83410
83487
  },
83411
83488
  },
83412
83489
  success: {
83413
- [vars$16.textColor]: globalRefs$E.colors.success.main,
83490
+ [vars$17.textColor]: globalRefs$E.colors.success.main,
83414
83491
  _bordered: {
83415
- [vars$16.borderColor]: globalRefs$E.colors.success.light,
83492
+ [vars$17.borderColor]: globalRefs$E.colors.success.light,
83416
83493
  },
83417
83494
  },
83418
83495
  },
83419
83496
 
83420
83497
  shadow: {
83421
83498
  sm: {
83422
- [vars$16.boxShadow]: `${globalRefs$E.shadow.wide.sm} ${shadowColor$8}, ${globalRefs$E.shadow.narrow.sm} ${shadowColor$8}`,
83499
+ [vars$17.boxShadow]: `${globalRefs$E.shadow.wide.sm} ${shadowColor$8}, ${globalRefs$E.shadow.narrow.sm} ${shadowColor$8}`,
83423
83500
  },
83424
83501
  md: {
83425
- [vars$16.boxShadow]: `${globalRefs$E.shadow.wide.md} ${shadowColor$8}, ${globalRefs$E.shadow.narrow.md} ${shadowColor$8}`,
83502
+ [vars$17.boxShadow]: `${globalRefs$E.shadow.wide.md} ${shadowColor$8}, ${globalRefs$E.shadow.narrow.md} ${shadowColor$8}`,
83426
83503
  },
83427
83504
  lg: {
83428
- [vars$16.boxShadow]: `${globalRefs$E.shadow.wide.lg} ${shadowColor$8}, ${globalRefs$E.shadow.narrow.lg} ${shadowColor$8}`,
83505
+ [vars$17.boxShadow]: `${globalRefs$E.shadow.wide.lg} ${shadowColor$8}, ${globalRefs$E.shadow.narrow.lg} ${shadowColor$8}`,
83429
83506
  },
83430
83507
  xl: {
83431
- [vars$16.boxShadow]: `${globalRefs$E.shadow.wide.xl} ${shadowColor$8}, ${globalRefs$E.shadow.narrow.xl} ${shadowColor$8}`,
83508
+ [vars$17.boxShadow]: `${globalRefs$E.shadow.wide.xl} ${shadowColor$8}, ${globalRefs$E.shadow.narrow.xl} ${shadowColor$8}`,
83432
83509
  },
83433
83510
  },
83434
83511
  };
@@ -83436,12 +83513,12 @@ function requireIndex_cjs () {
83436
83513
  var badge$3 = /*#__PURE__*/Object.freeze({
83437
83514
  __proto__: null,
83438
83515
  default: badge$2,
83439
- vars: vars$16
83516
+ vars: vars$17
83440
83517
  });
83441
83518
 
83442
- const componentName$1k = getComponentName('avatar');
83519
+ const componentName$1l = getComponentName('avatar');
83443
83520
  class RawAvatar extends createBaseClass$1({
83444
- componentName: componentName$1k,
83521
+ componentName: componentName$1l,
83445
83522
  baseSelector: ':host > .wrapper',
83446
83523
  }) {
83447
83524
  constructor() {
@@ -83519,7 +83596,7 @@ function requireIndex_cjs () {
83519
83596
  }
83520
83597
  }
83521
83598
 
83522
- const { host: host$A, editableBadge, avatar: avatar$2 } = {
83599
+ const { host: host$B, editableBadge, avatar: avatar$2 } = {
83523
83600
  host: { selector: () => ':host' },
83524
83601
  editableBadge: { selector: '> .editableBadge' },
83525
83602
  avatar: { selector: 'vaadin-avatar' },
@@ -83529,12 +83606,12 @@ function requireIndex_cjs () {
83529
83606
  createStyleMixin$1({
83530
83607
  mappings: {
83531
83608
  hostWidth: [
83532
- { ...host$A, property: 'width' },
83533
- { ...host$A, property: 'min-width' },
83609
+ { ...host$B, property: 'width' },
83610
+ { ...host$B, property: 'min-width' },
83534
83611
  ],
83535
- hostHeight: { ...host$A, property: 'height' },
83536
- cursor: [avatar$2, host$A],
83537
- hostDirection: { ...host$A, property: 'direction' },
83612
+ hostHeight: { ...host$B, property: 'height' },
83613
+ cursor: [avatar$2, host$B],
83614
+ hostDirection: { ...host$B, property: 'direction' },
83538
83615
  avatarTextColor: { ...avatar$2, property: 'color' },
83539
83616
  avatarBackgroundColor: { ...avatar$2, property: 'background-color' },
83540
83617
  editableIconColor: { ...editableBadge, property: 'color' },
@@ -83592,39 +83669,39 @@ function requireIndex_cjs () {
83592
83669
  },
83593
83670
  };
83594
83671
 
83595
- const vars$15 = {
83672
+ const vars$16 = {
83596
83673
  ...compVars$8,
83597
83674
  };
83598
83675
 
83599
83676
  var avatar$1 = /*#__PURE__*/Object.freeze({
83600
83677
  __proto__: null,
83601
83678
  default: avatar,
83602
- vars: vars$15
83679
+ vars: vars$16
83603
83680
  });
83604
83681
 
83605
- const vars$14 = IconClass.cssVarList;
83682
+ const vars$15 = IconClass.cssVarList;
83606
83683
 
83607
83684
  const icon$3 = {};
83608
83685
 
83609
83686
  var icon$4 = /*#__PURE__*/Object.freeze({
83610
83687
  __proto__: null,
83611
83688
  default: icon$3,
83612
- vars: vars$14
83689
+ vars: vars$15
83613
83690
  });
83614
83691
 
83615
- const vars$13 = ImageClass.cssVarList;
83692
+ const vars$14 = ImageClass.cssVarList;
83616
83693
 
83617
83694
  const image = {};
83618
83695
 
83619
83696
  var image$1 = /*#__PURE__*/Object.freeze({
83620
83697
  __proto__: null,
83621
83698
  default: image,
83622
- vars: vars$13
83699
+ vars: vars$14
83623
83700
  });
83624
83701
 
83625
- const componentName$1j = getComponentName('list-item');
83702
+ const componentName$1k = getComponentName('list-item');
83626
83703
 
83627
- const customMixin$f = (superclass) =>
83704
+ const customMixin$g = (superclass) =>
83628
83705
  class ListItemMixinClass extends superclass {
83629
83706
  constructor() {
83630
83707
  super();
@@ -83677,14 +83754,14 @@ function requireIndex_cjs () {
83677
83754
  }),
83678
83755
  draggableMixin$1,
83679
83756
  componentNameValidationMixin$1,
83680
- customMixin$f,
83757
+ customMixin$g,
83681
83758
  activeableMixin,
83682
- )(createBaseClass$1({ componentName: componentName$1j, baseSelector: 'slot' }));
83759
+ )(createBaseClass$1({ componentName: componentName$1k, baseSelector: 'slot' }));
83683
83760
 
83684
- const componentName$1i = getComponentName('list');
83761
+ const componentName$1j = getComponentName('list');
83685
83762
 
83686
83763
  class RawList extends createBaseClass$1({
83687
- componentName: componentName$1i,
83764
+ componentName: componentName$1j,
83688
83765
  baseSelector: '.wrapper',
83689
83766
  }) {
83690
83767
  static get observedAttributes() {
@@ -83866,7 +83943,7 @@ function requireIndex_cjs () {
83866
83943
  componentNameValidationMixin$1,
83867
83944
  )(RawList);
83868
83945
 
83869
- const componentName$1h = getComponentName('apps-list');
83946
+ const componentName$1i = getComponentName('apps-list');
83870
83947
 
83871
83948
  const itemRenderer$6 = ({ name, icon, url }, _, ref) => `
83872
83949
  <a ${url ? `href="${url}" title="${url}"` : ''} ${ref.openInSameWindow ? '' : 'target="_blank"'}>
@@ -83886,7 +83963,7 @@ function requireIndex_cjs () {
83886
83963
  </a>
83887
83964
  `;
83888
83965
 
83889
- const customMixin$e = (superclass) =>
83966
+ const customMixin$f = (superclass) =>
83890
83967
  class AppsListMixinClass extends superclass {
83891
83968
  // size controls both item logo size and font size
83892
83969
  get size() {
@@ -83992,13 +84069,13 @@ function requireIndex_cjs () {
83992
84069
  }),
83993
84070
  draggableMixin$1,
83994
84071
  componentNameValidationMixin$1,
83995
- customMixin$e,
84072
+ customMixin$f,
83996
84073
  )(
83997
84074
  createProxy$1({
83998
84075
  slots: ['empty-state'],
83999
84076
  wrappedEleName: 'descope-list',
84000
84077
  excludeAttrsSync: ['tabindex', 'class', 'empty', 'style'],
84001
- componentName: componentName$1h,
84078
+ componentName: componentName$1i,
84002
84079
  style: () => `
84003
84080
  :host {
84004
84081
  width: 100%;
@@ -84033,60 +84110,60 @@ function requireIndex_cjs () {
84033
84110
  }),
84034
84111
  );
84035
84112
 
84036
- const vars$12 = AppsListClass.cssVarList;
84113
+ const vars$13 = AppsListClass.cssVarList;
84037
84114
  const globalRefs$C = getThemeRefs$1(globals);
84038
84115
 
84039
84116
  const defaultHeight = '400px';
84040
84117
 
84041
84118
  const appsList = {
84042
- [vars$12.itemsTextAlign]: 'start',
84043
- [vars$12.hostDirection]: globalRefs$C.direction,
84044
- [vars$12.maxHeight]: defaultHeight,
84045
- [vars$12.itemHoverBackgroundColor]: globalRefs$C.colors.surface.highlight,
84119
+ [vars$13.itemsTextAlign]: 'start',
84120
+ [vars$13.hostDirection]: globalRefs$C.direction,
84121
+ [vars$13.maxHeight]: defaultHeight,
84122
+ [vars$13.itemHoverBackgroundColor]: globalRefs$C.colors.surface.highlight,
84046
84123
 
84047
84124
  _empty: {
84048
- [vars$12.minHeight]: defaultHeight,
84125
+ [vars$13.minHeight]: defaultHeight,
84049
84126
  },
84050
84127
 
84051
84128
  size: {
84052
84129
  xs: {
84053
- [vars$12.itemsFontSize]: '14px',
84054
- [vars$12.itemsFontWeight]: 'normal',
84130
+ [vars$13.itemsFontSize]: '14px',
84131
+ [vars$13.itemsFontWeight]: 'normal',
84055
84132
  },
84056
84133
  sm: {
84057
- [vars$12.itemsFontSize]: '14px',
84058
- [vars$12.itemsFontWeight]: 'normal',
84134
+ [vars$13.itemsFontSize]: '14px',
84135
+ [vars$13.itemsFontWeight]: 'normal',
84059
84136
  },
84060
84137
  md: {
84061
- [vars$12.itemsFontSize]: '16px',
84062
- [vars$12.itemsFontWeight]: 'normal',
84138
+ [vars$13.itemsFontSize]: '16px',
84139
+ [vars$13.itemsFontWeight]: 'normal',
84063
84140
  },
84064
84141
  lg: {
84065
- [vars$12.itemsFontSize]: '20px',
84066
- [vars$12.itemsFontWeight]: 'normal',
84142
+ [vars$13.itemsFontSize]: '20px',
84143
+ [vars$13.itemsFontWeight]: 'normal',
84067
84144
  },
84068
84145
  },
84069
84146
 
84070
84147
  itemPadding: {
84071
84148
  xs: {
84072
- [vars$12.itemVerticalPadding]: globalRefs$C.spacing.xs,
84073
- [vars$12.itemHorizontalPadding]: globalRefs$C.spacing.xs,
84149
+ [vars$13.itemVerticalPadding]: globalRefs$C.spacing.xs,
84150
+ [vars$13.itemHorizontalPadding]: globalRefs$C.spacing.xs,
84074
84151
  },
84075
84152
  sm: {
84076
- [vars$12.itemVerticalPadding]: globalRefs$C.spacing.sm,
84077
- [vars$12.itemHorizontalPadding]: globalRefs$C.spacing.sm,
84153
+ [vars$13.itemVerticalPadding]: globalRefs$C.spacing.sm,
84154
+ [vars$13.itemHorizontalPadding]: globalRefs$C.spacing.sm,
84078
84155
  },
84079
84156
  md: {
84080
- [vars$12.itemVerticalPadding]: globalRefs$C.spacing.md,
84081
- [vars$12.itemHorizontalPadding]: globalRefs$C.spacing.md,
84157
+ [vars$13.itemVerticalPadding]: globalRefs$C.spacing.md,
84158
+ [vars$13.itemHorizontalPadding]: globalRefs$C.spacing.md,
84082
84159
  },
84083
84160
  lg: {
84084
- [vars$12.itemVerticalPadding]: globalRefs$C.spacing.lg,
84085
- [vars$12.itemHorizontalPadding]: globalRefs$C.spacing.lg,
84161
+ [vars$13.itemVerticalPadding]: globalRefs$C.spacing.lg,
84162
+ [vars$13.itemHorizontalPadding]: globalRefs$C.spacing.lg,
84086
84163
  },
84087
84164
  xl: {
84088
- [vars$12.itemVerticalPadding]: globalRefs$C.spacing.xl,
84089
- [vars$12.itemHorizontalPadding]: globalRefs$C.spacing.xl,
84165
+ [vars$13.itemVerticalPadding]: globalRefs$C.spacing.xl,
84166
+ [vars$13.itemHorizontalPadding]: globalRefs$C.spacing.xl,
84090
84167
  },
84091
84168
  },
84092
84169
  };
@@ -84094,7 +84171,7 @@ function requireIndex_cjs () {
84094
84171
  var appsList$1 = /*#__PURE__*/Object.freeze({
84095
84172
  __proto__: null,
84096
84173
  default: appsList,
84097
- vars: vars$12
84174
+ vars: vars$13
84098
84175
  });
84099
84176
 
84100
84177
  const globalRefs$B = getThemeRefs$1(globals);
@@ -84103,7 +84180,7 @@ function requireIndex_cjs () {
84103
84180
 
84104
84181
  const [helperTheme$5, helperRefs$5, helperVars$5] = createHelperVars$1(
84105
84182
  { shadowColor: '#00000020' },
84106
- componentName$1i,
84183
+ componentName$1j,
84107
84184
  );
84108
84185
 
84109
84186
  const { shadowColor: shadowColor$7 } = helperRefs$5;
@@ -84164,7 +84241,7 @@ function requireIndex_cjs () {
84164
84241
  },
84165
84242
  };
84166
84243
 
84167
- const vars$11 = {
84244
+ const vars$12 = {
84168
84245
  ...compVars$7,
84169
84246
  ...helperVars$5,
84170
84247
  };
@@ -84172,53 +84249,53 @@ function requireIndex_cjs () {
84172
84249
  var list$1 = /*#__PURE__*/Object.freeze({
84173
84250
  __proto__: null,
84174
84251
  default: list,
84175
- vars: vars$11
84252
+ vars: vars$12
84176
84253
  });
84177
84254
 
84178
84255
  const globalRefs$A = getThemeRefs$1(globals);
84179
84256
 
84180
- const vars$10 = ListItemClass.cssVarList;
84257
+ const vars$11 = ListItemClass.cssVarList;
84181
84258
 
84182
84259
  const listItem = {
84183
- [vars$10.backgroundColor]: globalRefs$A.colors.surface.main,
84184
- [vars$10.verticalPadding]: globalRefs$A.spacing.lg,
84185
- [vars$10.horizontalPadding]: globalRefs$A.spacing.lg,
84186
- [vars$10.gap]: globalRefs$A.spacing.md,
84187
- [vars$10.borderStyle]: 'solid',
84188
- [vars$10.borderWidth]: globalRefs$A.border.xs,
84189
- [vars$10.borderColor]: globalRefs$A.colors.surface.main,
84190
- [vars$10.borderRadius]: globalRefs$A.radius.sm,
84191
- [vars$10.cursor]: 'pointer',
84192
- [vars$10.alignItems]: 'center',
84193
- [vars$10.flexDirection]: 'row',
84194
- [vars$10.transition]: 'border-color 0.2s, background-color 0.2s',
84260
+ [vars$11.backgroundColor]: globalRefs$A.colors.surface.main,
84261
+ [vars$11.verticalPadding]: globalRefs$A.spacing.lg,
84262
+ [vars$11.horizontalPadding]: globalRefs$A.spacing.lg,
84263
+ [vars$11.gap]: globalRefs$A.spacing.md,
84264
+ [vars$11.borderStyle]: 'solid',
84265
+ [vars$11.borderWidth]: globalRefs$A.border.xs,
84266
+ [vars$11.borderColor]: globalRefs$A.colors.surface.main,
84267
+ [vars$11.borderRadius]: globalRefs$A.radius.sm,
84268
+ [vars$11.cursor]: 'pointer',
84269
+ [vars$11.alignItems]: 'center',
84270
+ [vars$11.flexDirection]: 'row',
84271
+ [vars$11.transition]: 'border-color 0.2s, background-color 0.2s',
84195
84272
 
84196
84273
  variant: {
84197
84274
  tile: {
84198
- [vars$10.alignItems]: 'flex-start',
84199
- [vars$10.flexDirection]: 'column',
84200
- [vars$10.borderColor]: globalRefs$A.colors.surface.light,
84275
+ [vars$11.alignItems]: 'flex-start',
84276
+ [vars$11.flexDirection]: 'column',
84277
+ [vars$11.borderColor]: globalRefs$A.colors.surface.light,
84201
84278
  },
84202
84279
  },
84203
84280
 
84204
84281
  _hover: {
84205
- [vars$10.backgroundColor]: globalRefs$A.colors.surface.highlight,
84282
+ [vars$11.backgroundColor]: globalRefs$A.colors.surface.highlight,
84206
84283
  },
84207
84284
 
84208
84285
  _active: {
84209
- [vars$10.backgroundColor]: globalRefs$A.colors.surface.main,
84210
- [vars$10.borderColor]: globalRefs$A.colors.primary.light,
84211
- [vars$10.outline]: `1px solid ${globalRefs$A.colors.primary.light}`,
84286
+ [vars$11.backgroundColor]: globalRefs$A.colors.surface.main,
84287
+ [vars$11.borderColor]: globalRefs$A.colors.primary.light,
84288
+ [vars$11.outline]: `1px solid ${globalRefs$A.colors.primary.light}`,
84212
84289
  },
84213
84290
  };
84214
84291
 
84215
84292
  var listItem$1 = /*#__PURE__*/Object.freeze({
84216
84293
  __proto__: null,
84217
84294
  default: listItem,
84218
- vars: vars$10
84295
+ vars: vars$11
84219
84296
  });
84220
84297
 
84221
- const componentName$1g = getComponentName('multi-select-combo-box');
84298
+ const componentName$1h = getComponentName('multi-select-combo-box');
84222
84299
 
84223
84300
  const multiSelectComboBoxMixin = (superclass) =>
84224
84301
  class MultiSelectComboBoxMixinClass extends superclass {
@@ -84326,9 +84403,35 @@ function requireIndex_cjs () {
84326
84403
  );
84327
84404
  }
84328
84405
 
84406
+ // Whether `data` is what this combo box builds its items from. Items can instead be given as
84407
+ // light DOM children (see the observeChildren call in init), and those are the consumer's to
84408
+ // manage - so an absent, empty or unparseable `data` attribute means "not my items".
84409
+ #hasDataSource() {
84410
+ if (this.#data) return true;
84411
+
84412
+ const dataAttr = this.getAttribute('data');
84413
+ if (!dataAttr) return false;
84414
+
84415
+ try {
84416
+ return Array.isArray(JSON.parse(dataAttr));
84417
+ } catch {
84418
+ // Already reported by the `data` getter, and a broken attribute is no reason to throw
84419
+ // away items that are on screen.
84420
+ return false;
84421
+ }
84422
+ }
84423
+
84329
84424
  renderItems() {
84330
84425
  const template = this.getItemsTemplate();
84331
- if (template) this.innerHTML = template;
84426
+ if (template) {
84427
+ this.innerHTML = template;
84428
+ return;
84429
+ }
84430
+
84431
+ // An empty list has to empty the dropdown. Without this the previous items stayed on screen
84432
+ // after the data said there were none, so a picker refreshed with nothing left would still
84433
+ // offer the old rows.
84434
+ if (this.#hasDataSource()) this.innerHTML = '';
84332
84435
  }
84333
84436
 
84334
84437
  updateSelectedItems() {
@@ -84597,7 +84700,7 @@ function requireIndex_cjs () {
84597
84700
  };
84598
84701
 
84599
84702
  const {
84600
- host: host$z,
84703
+ host: host$A,
84601
84704
  inputField: inputField$5,
84602
84705
  inputElement: inputElement$2,
84603
84706
  placeholder: placeholder$2,
@@ -84637,9 +84740,9 @@ function requireIndex_cjs () {
84637
84740
  const MultiSelectComboBoxClass = compose(
84638
84741
  createStyleMixin$1({
84639
84742
  mappings: {
84640
- hostWidth: { ...host$z, property: 'width' },
84641
- hostDirection: { ...host$z, property: 'direction' },
84642
- fontSize: [{}, host$z],
84743
+ hostWidth: { ...host$A, property: 'width' },
84744
+ hostDirection: { ...host$A, property: 'direction' },
84745
+ fontSize: [{}, host$A],
84643
84746
  chipFontSize: { ...chipLabel, property: 'font-size' },
84644
84747
  fontFamily: [
84645
84748
  label$8,
@@ -84881,13 +84984,13 @@ function requireIndex_cjs () {
84881
84984
 
84882
84985
  `,
84883
84986
  excludeAttrsSync: ['tabindex', 'size', 'data', 'placeholder', 'style'],
84884
- componentName: componentName$1g,
84987
+ componentName: componentName$1h,
84885
84988
  includeForwardProps: ['items', 'renderer', 'selectedItems'],
84886
84989
  }),
84887
84990
  );
84888
84991
 
84889
- const componentName$1f = getComponentName('multi-line-mappings');
84890
- const BaseClass$9 = createBaseClass$1({ componentName: componentName$1f });
84992
+ const componentName$1g = getComponentName('multi-line-mappings');
84993
+ const BaseClass$9 = createBaseClass$1({ componentName: componentName$1g });
84891
84994
 
84892
84995
  const parseJSON = (value, fallback, source = 'unknown') => {
84893
84996
  if (typeof value !== 'string' || !value?.trim()) {
@@ -85594,7 +85697,7 @@ function requireIndex_cjs () {
85594
85697
  }
85595
85698
  }
85596
85699
 
85597
- const host$y = { selector: () => ':host' };
85700
+ const host$z = { selector: () => ':host' };
85598
85701
  const rows = { selector: '.rows' };
85599
85702
  const row = { selector: '.row' };
85600
85703
  const addAction = { selector: '.add-action' };
@@ -85602,9 +85705,9 @@ function requireIndex_cjs () {
85602
85705
  const MultiLineMappingsClass = compose(
85603
85706
  createStyleMixin$1({
85604
85707
  mappings: {
85605
- hostWidth: { ...host$y, property: 'width' },
85708
+ hostWidth: { ...host$z, property: 'width' },
85606
85709
  hostDirection: [
85607
- { ...host$y, property: 'direction' },
85710
+ { ...host$z, property: 'direction' },
85608
85711
  {
85609
85712
  selector: MultiSelectComboBoxClass.componentName,
85610
85713
  property: MultiSelectComboBoxClass.cssVarList.hostDirection,
@@ -85625,128 +85728,128 @@ function requireIndex_cjs () {
85625
85728
  draggableMixin$1,
85626
85729
  )(RawMultiLineMappingsClass);
85627
85730
 
85628
- const vars$$ = MultiLineMappingsClass.cssVarList;
85731
+ const vars$10 = MultiLineMappingsClass.cssVarList;
85629
85732
 
85630
85733
  const multiLineMappings = {
85631
- [vars$$.hostDirection]: refs$1.direction,
85734
+ [vars$10.hostDirection]: refs$1.direction,
85632
85735
 
85633
- [vars$$.rowsGap]: globals.spacing.sm,
85634
- [vars$$.rowGap]: globals.spacing.sm,
85635
- [vars$$.rowAlignItems]: 'flex-end',
85636
- [vars$$.rowWrap]: 'nowrap',
85736
+ [vars$10.rowsGap]: globals.spacing.sm,
85737
+ [vars$10.rowGap]: globals.spacing.sm,
85738
+ [vars$10.rowAlignItems]: 'flex-end',
85739
+ [vars$10.rowWrap]: 'nowrap',
85637
85740
 
85638
- [vars$$.addActionJustifyContent]: 'flex-start',
85639
- [vars$$.addActionMarginTop]: globals.spacing.xs,
85741
+ [vars$10.addActionJustifyContent]: 'flex-start',
85742
+ [vars$10.addActionMarginTop]: globals.spacing.xs,
85640
85743
 
85641
85744
  _fullWidth: {
85642
- [vars$$.hostWidth]: '100%',
85745
+ [vars$10.hostWidth]: '100%',
85643
85746
  },
85644
85747
  };
85645
85748
 
85646
85749
  var multiLineMappings$1 = /*#__PURE__*/Object.freeze({
85647
85750
  __proto__: null,
85648
85751
  default: multiLineMappings,
85649
- vars: vars$$
85752
+ vars: vars$10
85650
85753
  });
85651
85754
 
85652
85755
  const globalRefs$z = getThemeRefs$1(globals);
85653
- const vars$_ = MultiSelectComboBoxClass.cssVarList;
85756
+ const vars$$ = MultiSelectComboBoxClass.cssVarList;
85654
85757
 
85655
85758
  const multiSelectComboBox = {
85656
- [vars$_.hostWidth]: refs$1.width,
85657
- [vars$_.hostDirection]: refs$1.direction,
85658
- [vars$_.fontSize]: refs$1.fontSize,
85659
- [vars$_.fontFamily]: refs$1.fontFamily,
85660
- [vars$_.labelFontSize]: refs$1.labelFontSize,
85661
- [vars$_.labelFontWeight]: refs$1.labelFontWeight,
85662
- [vars$_.inputValueFontWeight]: refs$1.inputValueFontWeight,
85663
- [vars$_.inputPlaceholderFontWeight]: refs$1.inputPlaceholderFontWeight,
85664
- [vars$_.helperTextFontWeight]: refs$1.helperTextFontWeight,
85665
- [vars$_.errorMessageFontWeight]: refs$1.errorMessageFontWeight,
85666
- [vars$_.labelTextColor]: refs$1.labelTextColor,
85667
- [vars$_.errorMessageTextColor]: refs$1.errorMessageTextColor,
85668
- [vars$_.inputBorderColor]: refs$1.borderColor,
85669
- [vars$_.inputBorderWidth]: refs$1.borderWidth,
85670
- [vars$_.inputBorderStyle]: refs$1.borderStyle,
85671
- [vars$_.inputBorderRadius]: refs$1.borderRadius,
85672
- [vars$_.inputOutlineColor]: refs$1.outlineColor,
85673
- [vars$_.inputOutlineOffset]: refs$1.outlineOffset,
85674
- [vars$_.inputOutlineWidth]: refs$1.outlineWidth,
85675
- [vars$_.inputOutlineStyle]: refs$1.outlineStyle,
85676
- [vars$_.labelRequiredIndicator]: refs$1.requiredIndicator,
85677
- [vars$_.inputValueTextColor]: refs$1.valueTextColor,
85678
- [vars$_.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
85679
- [vars$_.inputBackgroundColor]: refs$1.backgroundColor,
85680
- [vars$_.inputHorizontalPadding]: refs$1.horizontalPadding,
85681
- [vars$_.inputVerticalPadding]: refs$1.verticalPadding,
85682
- [vars$_.inputHeight]: refs$1.inputHeight,
85683
- [vars$_.inputDropdownButtonColor]: globalRefs$z.colors.surface.dark,
85684
- [vars$_.inputDropdownButtonCursor]: 'pointer',
85685
- [vars$_.inputDropdownButtonSize]: refs$1.toggleButtonSize,
85686
- [vars$_.inputDropdownButtonOffset]: globalRefs$z.spacing.xs,
85687
- [vars$_.overlayItemPaddingInlineStart]: globalRefs$z.spacing.xs,
85688
- [vars$_.overlayItemPaddingInlineEnd]: globalRefs$z.spacing.lg,
85689
- [vars$_.chipFontSize]: refs$1.chipFontSize,
85690
- [vars$_.chipTextColor]: globalRefs$z.colors.surface.contrast,
85691
- [vars$_.chipBackgroundColor]: globalRefs$z.colors.surface.light,
85692
- [vars$_.labelPosition]: refs$1.labelPosition,
85693
- [vars$_.labelTopPosition]: refs$1.labelTopPosition,
85694
- [vars$_.labelLeftPosition]: refs$1.labelLeftPosition,
85695
- [vars$_.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
85696
- [vars$_.inputTransformY]: refs$1.inputTransformY,
85697
- [vars$_.inputTransition]: refs$1.inputTransition,
85698
- [vars$_.marginInlineStart]: refs$1.marginInlineStart,
85699
- [vars$_.placeholderOpacity]: refs$1.placeholderOpacity,
85700
- [vars$_.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
85701
-
85702
- [vars$_.errorMessageIcon]: refs$1.errorMessageIcon,
85703
- [vars$_.errorMessageIconSize]: refs$1.errorMessageIconSize,
85704
- [vars$_.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
85705
- [vars$_.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
85706
- [vars$_.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
85707
- [vars$_.errorMessageFontSize]: refs$1.errorMessageFontSize,
85759
+ [vars$$.hostWidth]: refs$1.width,
85760
+ [vars$$.hostDirection]: refs$1.direction,
85761
+ [vars$$.fontSize]: refs$1.fontSize,
85762
+ [vars$$.fontFamily]: refs$1.fontFamily,
85763
+ [vars$$.labelFontSize]: refs$1.labelFontSize,
85764
+ [vars$$.labelFontWeight]: refs$1.labelFontWeight,
85765
+ [vars$$.inputValueFontWeight]: refs$1.inputValueFontWeight,
85766
+ [vars$$.inputPlaceholderFontWeight]: refs$1.inputPlaceholderFontWeight,
85767
+ [vars$$.helperTextFontWeight]: refs$1.helperTextFontWeight,
85768
+ [vars$$.errorMessageFontWeight]: refs$1.errorMessageFontWeight,
85769
+ [vars$$.labelTextColor]: refs$1.labelTextColor,
85770
+ [vars$$.errorMessageTextColor]: refs$1.errorMessageTextColor,
85771
+ [vars$$.inputBorderColor]: refs$1.borderColor,
85772
+ [vars$$.inputBorderWidth]: refs$1.borderWidth,
85773
+ [vars$$.inputBorderStyle]: refs$1.borderStyle,
85774
+ [vars$$.inputBorderRadius]: refs$1.borderRadius,
85775
+ [vars$$.inputOutlineColor]: refs$1.outlineColor,
85776
+ [vars$$.inputOutlineOffset]: refs$1.outlineOffset,
85777
+ [vars$$.inputOutlineWidth]: refs$1.outlineWidth,
85778
+ [vars$$.inputOutlineStyle]: refs$1.outlineStyle,
85779
+ [vars$$.labelRequiredIndicator]: refs$1.requiredIndicator,
85780
+ [vars$$.inputValueTextColor]: refs$1.valueTextColor,
85781
+ [vars$$.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
85782
+ [vars$$.inputBackgroundColor]: refs$1.backgroundColor,
85783
+ [vars$$.inputHorizontalPadding]: refs$1.horizontalPadding,
85784
+ [vars$$.inputVerticalPadding]: refs$1.verticalPadding,
85785
+ [vars$$.inputHeight]: refs$1.inputHeight,
85786
+ [vars$$.inputDropdownButtonColor]: globalRefs$z.colors.surface.dark,
85787
+ [vars$$.inputDropdownButtonCursor]: 'pointer',
85788
+ [vars$$.inputDropdownButtonSize]: refs$1.toggleButtonSize,
85789
+ [vars$$.inputDropdownButtonOffset]: globalRefs$z.spacing.xs,
85790
+ [vars$$.overlayItemPaddingInlineStart]: globalRefs$z.spacing.xs,
85791
+ [vars$$.overlayItemPaddingInlineEnd]: globalRefs$z.spacing.lg,
85792
+ [vars$$.chipFontSize]: refs$1.chipFontSize,
85793
+ [vars$$.chipTextColor]: globalRefs$z.colors.surface.contrast,
85794
+ [vars$$.chipBackgroundColor]: globalRefs$z.colors.surface.light,
85795
+ [vars$$.labelPosition]: refs$1.labelPosition,
85796
+ [vars$$.labelTopPosition]: refs$1.labelTopPosition,
85797
+ [vars$$.labelLeftPosition]: refs$1.labelLeftPosition,
85798
+ [vars$$.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
85799
+ [vars$$.inputTransformY]: refs$1.inputTransformY,
85800
+ [vars$$.inputTransition]: refs$1.inputTransition,
85801
+ [vars$$.marginInlineStart]: refs$1.marginInlineStart,
85802
+ [vars$$.placeholderOpacity]: refs$1.placeholderOpacity,
85803
+ [vars$$.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
85804
+
85805
+ [vars$$.errorMessageIcon]: refs$1.errorMessageIcon,
85806
+ [vars$$.errorMessageIconSize]: refs$1.errorMessageIconSize,
85807
+ [vars$$.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
85808
+ [vars$$.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
85809
+ [vars$$.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
85810
+ [vars$$.errorMessageFontSize]: refs$1.errorMessageFontSize,
85708
85811
 
85709
85812
  labelType: {
85710
85813
  floating: {
85711
- [vars$_.inputHorizontalPadding]: '0.25em',
85814
+ [vars$$.inputHorizontalPadding]: '0.25em',
85712
85815
  _hasValue: {
85713
- [vars$_.inputHorizontalPadding]: '0.45em',
85816
+ [vars$$.inputHorizontalPadding]: '0.45em',
85714
85817
  },
85715
85818
  },
85716
85819
  },
85717
85820
 
85718
85821
  _readonly: {
85719
- [vars$_.inputDropdownButtonCursor]: 'default',
85822
+ [vars$$.inputDropdownButtonCursor]: 'default',
85720
85823
  },
85721
85824
 
85722
- [vars$_.overlayFontSize]: refs$1.fontSize,
85723
- [vars$_.overlayFontFamily]: refs$1.fontFamily,
85724
- [vars$_.overlayCursor]: 'pointer',
85725
- [vars$_.overlayItemBoxShadow]: 'none',
85726
- [vars$_.overlayBackground]: refs$1.backgroundColor,
85727
- [vars$_.overlayTextColor]: refs$1.valueTextColor,
85825
+ [vars$$.overlayFontSize]: refs$1.fontSize,
85826
+ [vars$$.overlayFontFamily]: refs$1.fontFamily,
85827
+ [vars$$.overlayCursor]: 'pointer',
85828
+ [vars$$.overlayItemBoxShadow]: 'none',
85829
+ [vars$$.overlayBackground]: refs$1.backgroundColor,
85830
+ [vars$$.overlayTextColor]: refs$1.valueTextColor,
85728
85831
 
85729
- [vars$_.overlay.minHeight]: '400px',
85730
- [vars$_.overlay.margin]: '0',
85832
+ [vars$$.overlay.minHeight]: '400px',
85833
+ [vars$$.overlay.margin]: '0',
85731
85834
  };
85732
85835
 
85733
85836
  var multiSelectComboBox$1 = /*#__PURE__*/Object.freeze({
85734
85837
  __proto__: null,
85735
85838
  default: multiSelectComboBox,
85736
85839
  multiSelectComboBox: multiSelectComboBox,
85737
- vars: vars$_
85840
+ vars: vars$$
85738
85841
  });
85739
85842
 
85740
- const componentName$1e = getComponentName('autocomplete-field-internal');
85843
+ const componentName$1f = getComponentName('autocomplete-field-internal');
85741
85844
 
85742
85845
  createBaseInputClass$1({
85743
- componentName: componentName$1e,
85846
+ componentName: componentName$1f,
85744
85847
  baseSelector: '',
85745
85848
  });
85746
85849
 
85747
- const componentName$1d = getComponentName('autocomplete-field');
85850
+ const componentName$1e = getComponentName('autocomplete-field');
85748
85851
 
85749
- const customMixin$d = (superclass) =>
85852
+ const customMixin$e = (superclass) =>
85750
85853
  class AutocompleteFieldMixinClass extends superclass {
85751
85854
  get defaultValue() {
85752
85855
  return this.getAttribute('default-value');
@@ -85765,15 +85868,15 @@ function requireIndex_cjs () {
85765
85868
  const template = document.createElement('template');
85766
85869
 
85767
85870
  template.innerHTML = `
85768
- <${componentName$1e}
85871
+ <${componentName$1f}
85769
85872
  tabindex="-1"
85770
- ></${componentName$1e}>
85873
+ ></${componentName$1f}>
85771
85874
  `;
85772
85875
 
85773
85876
  this.baseElement.appendChild(template.content.cloneNode(true));
85774
85877
 
85775
85878
  this.inputElement = this.shadowRoot.querySelector(
85776
- componentName$1e,
85879
+ componentName$1f,
85777
85880
  );
85778
85881
 
85779
85882
  forwardAttrs(this, this.inputElement, {
@@ -85813,7 +85916,7 @@ function requireIndex_cjs () {
85813
85916
  }
85814
85917
  };
85815
85918
 
85816
- const { host: host$x } = {
85919
+ const { host: host$y } = {
85817
85920
  host: { selector: () => ':host' },
85818
85921
  };
85819
85922
 
@@ -85823,9 +85926,9 @@ function requireIndex_cjs () {
85823
85926
  }),
85824
85927
  createStyleMixin$1({
85825
85928
  mappings: {
85826
- hostWidth: { ...host$x, property: 'width' },
85827
- hostDirection: { ...host$x, property: 'direction' },
85828
- fontSize: { ...host$x },
85929
+ hostWidth: { ...host$y, property: 'width' },
85930
+ hostDirection: { ...host$y, property: 'direction' },
85931
+ fontSize: { ...host$y },
85829
85932
  checkmarkDisplay: {
85830
85933
  selector: ComboBoxClass.componentName,
85831
85934
  property: ComboBoxClass.cssVarList.overlayCheckmarkDisplay,
@@ -85863,7 +85966,7 @@ function requireIndex_cjs () {
85863
85966
  proxyParentValidation: true,
85864
85967
  }),
85865
85968
  componentNameValidationMixin$1,
85866
- customMixin$d,
85969
+ customMixin$e,
85867
85970
  )(
85868
85971
  createProxy$1({
85869
85972
  slots: [],
@@ -85892,34 +85995,34 @@ function requireIndex_cjs () {
85892
85995
  }
85893
85996
  `,
85894
85997
  excludeAttrsSync: ['tabindex', 'error-message', 'label', 'style'],
85895
- componentName: componentName$1d,
85998
+ componentName: componentName$1e,
85896
85999
  }),
85897
86000
  );
85898
86001
 
85899
- const vars$Z = AutocompleteFieldClass.cssVarList;
86002
+ const vars$_ = AutocompleteFieldClass.cssVarList;
85900
86003
  const globalRefs$y = getThemeRefs$1(globals);
85901
86004
 
85902
86005
  const autocompleteField = {
85903
- [vars$Z.hostWidth]: refs$1.width,
85904
- [vars$Z.hostDirection]: refs$1.direction,
85905
- [vars$Z.fontSize]: refs$1.fontSize,
85906
- [vars$Z.checkmarkDisplay]: 'none',
85907
- [vars$Z.itemPaddingInlineStart]: globalRefs$y.spacing.lg,
85908
- [vars$Z.itemPaddingInlineEnd]: globalRefs$y.spacing.lg,
85909
- [vars$Z.selectedItemBackground]: globalRefs$y.colors.primary.light,
85910
- [vars$Z.selectedItemHoverBackground]: globalRefs$y.colors.primary.light,
85911
- [vars$Z.selectedItemFocusBackground]: globalRefs$y.colors.primary.light,
85912
- [vars$Z.itemHoverBackground]: globalRefs$y.colors.primary.highlight,
86006
+ [vars$_.hostWidth]: refs$1.width,
86007
+ [vars$_.hostDirection]: refs$1.direction,
86008
+ [vars$_.fontSize]: refs$1.fontSize,
86009
+ [vars$_.checkmarkDisplay]: 'none',
86010
+ [vars$_.itemPaddingInlineStart]: globalRefs$y.spacing.lg,
86011
+ [vars$_.itemPaddingInlineEnd]: globalRefs$y.spacing.lg,
86012
+ [vars$_.selectedItemBackground]: globalRefs$y.colors.primary.light,
86013
+ [vars$_.selectedItemHoverBackground]: globalRefs$y.colors.primary.light,
86014
+ [vars$_.selectedItemFocusBackground]: globalRefs$y.colors.primary.light,
86015
+ [vars$_.itemHoverBackground]: globalRefs$y.colors.primary.highlight,
85913
86016
 
85914
86017
  _fullWidth: {
85915
- [vars$Z.hostWidth]: '100%',
86018
+ [vars$_.hostWidth]: '100%',
85916
86019
  },
85917
86020
  };
85918
86021
 
85919
86022
  var autocompleteField$1 = /*#__PURE__*/Object.freeze({
85920
86023
  __proto__: null,
85921
86024
  default: autocompleteField,
85922
- vars: vars$Z
86025
+ vars: vars$_
85923
86026
  });
85924
86027
 
85925
86028
  const initGoogleMapsLoader = (apiKey) => {
@@ -86146,7 +86249,7 @@ function requireIndex_cjs () {
86146
86249
  }
86147
86250
  }
86148
86251
 
86149
- const componentName$1c = getComponentName('address-field-internal');
86252
+ const componentName$1d = getComponentName('address-field-internal');
86150
86253
 
86151
86254
  const GOOGLE_MAPS_CONNECTOR_TEMPLATE = 'google-maps-places';
86152
86255
  const RADAR_CONNECTOR_TEMPLATE = 'radar';
@@ -86157,7 +86260,7 @@ function requireIndex_cjs () {
86157
86260
  };
86158
86261
 
86159
86262
  const BaseInputClass$8 = createBaseInputClass$1({
86160
- componentName: componentName$1c,
86263
+ componentName: componentName$1d,
86161
86264
  baseSelector: '',
86162
86265
  });
86163
86266
  const initConnectorAttrs = ['public-api-key'];
@@ -86264,9 +86367,9 @@ function requireIndex_cjs () {
86264
86367
  connectorMixin({ connectorClasses: CONNECTOR_CLASSES }),
86265
86368
  )(RawAddressFieldInternal);
86266
86369
 
86267
- const componentName$1b = getComponentName('address-field');
86370
+ const componentName$1c = getComponentName('address-field');
86268
86371
 
86269
- const customMixin$c = (superclass) =>
86372
+ const customMixin$d = (superclass) =>
86270
86373
  class AddressFieldMixinClass extends superclass {
86271
86374
  get defaultValue() {
86272
86375
  return this.getAttribute('default-value');
@@ -86293,15 +86396,15 @@ function requireIndex_cjs () {
86293
86396
  const template = document.createElement('template');
86294
86397
 
86295
86398
  template.innerHTML = `
86296
- <${componentName$1c}
86399
+ <${componentName$1d}
86297
86400
  tabindex="-1"
86298
- ></${componentName$1c}>
86401
+ ></${componentName$1d}>
86299
86402
  `;
86300
86403
 
86301
86404
  this.baseElement.appendChild(template.content.cloneNode(true));
86302
86405
 
86303
86406
  this.inputElement = this.shadowRoot.querySelector(
86304
- componentName$1c,
86407
+ componentName$1d,
86305
86408
  );
86306
86409
 
86307
86410
  forwardAttrs(this, this.inputElement, {
@@ -86342,7 +86445,7 @@ function requireIndex_cjs () {
86342
86445
  }
86343
86446
  };
86344
86447
 
86345
- const { host: host$w } = {
86448
+ const { host: host$x } = {
86346
86449
  host: { selector: () => ':host' },
86347
86450
  };
86348
86451
 
@@ -86352,8 +86455,8 @@ function requireIndex_cjs () {
86352
86455
  }),
86353
86456
  createStyleMixin$1({
86354
86457
  mappings: {
86355
- hostWidth: { ...host$w, property: 'width' },
86356
- hostDirection: { ...host$w, property: 'direction' },
86458
+ hostWidth: { ...host$x, property: 'width' },
86459
+ hostDirection: { ...host$x, property: 'direction' },
86357
86460
  },
86358
86461
  }),
86359
86462
  draggableMixin$1,
@@ -86363,7 +86466,7 @@ function requireIndex_cjs () {
86363
86466
  proxyParentValidation: true,
86364
86467
  }),
86365
86468
  componentNameValidationMixin$1,
86366
- customMixin$c,
86469
+ customMixin$d,
86367
86470
  )(
86368
86471
  createProxy$1({
86369
86472
  slots: [],
@@ -86379,7 +86482,7 @@ function requireIndex_cjs () {
86379
86482
  width: 100%;
86380
86483
  }
86381
86484
 
86382
- ${componentName$1c} {
86485
+ ${componentName$1d} {
86383
86486
  display: inline-block;
86384
86487
  box-sizing: border-box;
86385
86488
  user-select: none;
@@ -86387,30 +86490,30 @@ function requireIndex_cjs () {
86387
86490
  max-width: 100%;
86388
86491
  }
86389
86492
 
86390
- ${componentName$1c} ::slotted {
86493
+ ${componentName$1d} ::slotted {
86391
86494
  padding: 0;
86392
86495
  }
86393
86496
  `,
86394
86497
  excludeAttrsSync: ['tabindex', 'error-message', 'label', 'style'],
86395
- componentName: componentName$1b,
86498
+ componentName: componentName$1c,
86396
86499
  }),
86397
86500
  );
86398
86501
 
86399
- const vars$Y = AddressFieldClass.cssVarList;
86502
+ const vars$Z = AddressFieldClass.cssVarList;
86400
86503
 
86401
86504
  const addressField = {
86402
- [vars$Y.hostWidth]: refs$1.width,
86403
- [vars$Y.hostDirection]: refs$1.direction,
86505
+ [vars$Z.hostWidth]: refs$1.width,
86506
+ [vars$Z.hostDirection]: refs$1.direction,
86404
86507
 
86405
86508
  _fullWidth: {
86406
- [vars$Y.hostWidth]: '100%',
86509
+ [vars$Z.hostWidth]: '100%',
86407
86510
  },
86408
86511
  };
86409
86512
 
86410
86513
  var addressField$1 = /*#__PURE__*/Object.freeze({
86411
86514
  __proto__: null,
86412
86515
  default: addressField,
86413
- vars: vars$Y
86516
+ vars: vars$Z
86414
86517
  });
86415
86518
 
86416
86519
  var clockIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMWVtIiBoZWlnaHQ9IjFlbSIgdmlld0JveD0iMCAwIDEwNCAxMDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01MC4zMzM0IDAuMzMzMjUyQzIyLjgzMzQgMC4zMzMyNTIgMC4zMzMzNzQgMjIuODMzMyAwLjMzMzM3NCA1MC4zMzMzQzAuMzMzMzc0IDc3LjgzMzMgMjIuODMzNCAxMDAuMzMzIDUwLjMzMzQgMTAwLjMzM0M3Ny44MzM0IDEwMC4zMzMgMTAwLjMzMyA3Ny44MzMzIDEwMC4zMzMgNTAuMzMzM0MxMDAuMzMzIDIyLjgzMzMgNzcuODMzNCAwLjMzMzI1MiA1MC4zMzM0IDAuMzMzMjUyWk01MC4zMzM0IDg3LjgzMzNDMjkuNzA4NCA4Ny44MzMzIDEyLjgzMzQgNzAuOTU4MyAxMi44MzM0IDUwLjMzMzNDMTIuODMzNCAyOS43MDgzIDI5LjcwODQgMTIuODMzMyA1MC4zMzM0IDEyLjgzMzNDNzAuOTU4NCAxMi44MzMzIDg3LjgzMzQgMjkuNzA4MyA4Ny44MzM0IDUwLjMzMzNDODcuODMzNCA3MC45NTgzIDcwLjk1ODQgODcuODMzMyA1MC4zMzM0IDg3LjgzMzNaIiBmaWxsPSIjMTgxQTFDIi8+CjxwYXRoIGQ9Ik01MC4zMzI4IDE5LjA4MzNINDQuMDgyOFY1Ni41ODMySDc1LjMzMjhWNTAuMzMzMkg1MC4zMzI4VjE5LjA4MzNaIiBmaWxsPSIjMTgxQTFDIi8+Cjwvc3ZnPgo=";
@@ -86432,12 +86535,12 @@ function requireIndex_cjs () {
86432
86535
  return timeParts.join(':');
86433
86536
  };
86434
86537
 
86435
- const componentName$1a = getComponentName('timer');
86538
+ const componentName$1b = getComponentName('timer');
86436
86539
 
86437
86540
  const observedAttributes$5 = ['seconds', 'hide-icon', 'paused'];
86438
86541
 
86439
86542
  const BaseClass$8 = createBaseClass$1({
86440
- componentName: componentName$1a,
86543
+ componentName: componentName$1b,
86441
86544
  baseSelector: ':host > .wrapper',
86442
86545
  });
86443
86546
 
@@ -86590,7 +86693,7 @@ function requireIndex_cjs () {
86590
86693
  }
86591
86694
  }
86592
86695
 
86593
- const { host: host$v, icon: icon$2, timer: timer$2 } = {
86696
+ const { host: host$w, icon: icon$2, timer: timer$2 } = {
86594
86697
  host: { selector: () => ':host' },
86595
86698
  icon: { selector: () => '.icon' },
86596
86699
  timer: { selector: () => '.timer' },
@@ -86611,8 +86714,8 @@ function requireIndex_cjs () {
86611
86714
  textColor: { ...timer$2, property: 'color' },
86612
86715
  gap: {},
86613
86716
  textAlign: { property: 'justify-content' },
86614
- hostWidth: { ...host$v, property: 'width' },
86615
- hostDirection: { ...host$v, property: 'direction' },
86717
+ hostWidth: { ...host$w, property: 'width' },
86718
+ hostDirection: { ...host$w, property: 'direction' },
86616
86719
  iconColor: { ...icon$2, property: IconClass.cssVarList.fill },
86617
86720
  },
86618
86721
  }),
@@ -86621,44 +86724,44 @@ function requireIndex_cjs () {
86621
86724
  )(RawTimer);
86622
86725
 
86623
86726
  const globalRefs$x = getThemeRefs$1(globals);
86624
- const vars$X = TimerClass.cssVarList;
86727
+ const vars$Y = TimerClass.cssVarList;
86625
86728
 
86626
86729
  const timer = {
86627
- [vars$X.hostDirection]: globalRefs$x.direction,
86628
- [vars$X.gap]: '0.25em',
86629
- [vars$X.fontFamily]: globalRefs$x.fonts.font1.family,
86630
- [vars$X.minHeight]: '1.5em',
86631
- [vars$X.lineHeight]: '1em',
86632
- [vars$X.fontWeight]: globalRefs$x.fonts.font1.fontWeight,
86633
- [vars$X.textColor]: globalRefs$x.colors.surface.contrast,
86634
- [vars$X.iconColor]: globalRefs$x.colors.surface.contrast,
86635
- [vars$X.iconSize]: '1em',
86730
+ [vars$Y.hostDirection]: globalRefs$x.direction,
86731
+ [vars$Y.gap]: '0.25em',
86732
+ [vars$Y.fontFamily]: globalRefs$x.fonts.font1.family,
86733
+ [vars$Y.minHeight]: '1.5em',
86734
+ [vars$Y.lineHeight]: '1em',
86735
+ [vars$Y.fontWeight]: globalRefs$x.fonts.font1.fontWeight,
86736
+ [vars$Y.textColor]: globalRefs$x.colors.surface.contrast,
86737
+ [vars$Y.iconColor]: globalRefs$x.colors.surface.contrast,
86738
+ [vars$Y.iconSize]: '1em',
86636
86739
 
86637
86740
  size: {
86638
- xs: { [vars$X.fontSize]: '12px' },
86639
- sm: { [vars$X.fontSize]: '14px' },
86640
- md: { [vars$X.fontSize]: '16px' },
86641
- lg: { [vars$X.fontSize]: '18px' },
86741
+ xs: { [vars$Y.fontSize]: '12px' },
86742
+ sm: { [vars$Y.fontSize]: '14px' },
86743
+ md: { [vars$Y.fontSize]: '16px' },
86744
+ lg: { [vars$Y.fontSize]: '18px' },
86642
86745
  },
86643
86746
 
86644
86747
  textAlign: {
86645
- right: { [vars$X.textAlign]: 'right' },
86646
- left: { [vars$X.textAlign]: 'left' },
86647
- center: { [vars$X.textAlign]: 'center' },
86748
+ right: { [vars$Y.textAlign]: 'right' },
86749
+ left: { [vars$Y.textAlign]: 'left' },
86750
+ center: { [vars$Y.textAlign]: 'center' },
86648
86751
  },
86649
86752
 
86650
86753
  _fullWidth: {
86651
- [vars$X.hostWidth]: '100%',
86754
+ [vars$Y.hostWidth]: '100%',
86652
86755
  },
86653
86756
  };
86654
86757
 
86655
86758
  var timer$1 = /*#__PURE__*/Object.freeze({
86656
86759
  __proto__: null,
86657
86760
  default: timer,
86658
- vars: vars$X
86761
+ vars: vars$Y
86659
86762
  });
86660
86763
 
86661
- const componentName$19 = getComponentName('timer-button');
86764
+ const componentName$1a = getComponentName('timer-button');
86662
86765
 
86663
86766
  const buttonAttrs = [
86664
86767
  'button-variant',
@@ -86689,7 +86792,7 @@ function requireIndex_cjs () {
86689
86792
  };
86690
86793
 
86691
86794
  const BaseClass$7 = createBaseClass$1({
86692
- componentName: componentName$19,
86795
+ componentName: componentName$1a,
86693
86796
  baseSelector: ':host > div',
86694
86797
  });
86695
86798
 
@@ -86841,7 +86944,7 @@ function requireIndex_cjs () {
86841
86944
  }
86842
86945
 
86843
86946
  const {
86844
- host: host$u,
86947
+ host: host$v,
86845
86948
  nestedTimer,
86846
86949
  nestedButton,
86847
86950
  timerInsideNotReversed,
@@ -86866,8 +86969,8 @@ function requireIndex_cjs () {
86866
86969
  mappings: {
86867
86970
  gap: {},
86868
86971
  flexDirection: {},
86869
- hostWidth: { ...host$u, property: 'width' },
86870
- hostDirection: { ...host$u, property: 'direction' },
86972
+ hostWidth: { ...host$v, property: 'width' },
86973
+ hostDirection: { ...host$v, property: 'direction' },
86871
86974
  timerTextColor: {
86872
86975
  ...nestedTimer,
86873
86976
  property: TimerClass.cssVarList.textColor,
@@ -86899,40 +87002,40 @@ function requireIndex_cjs () {
86899
87002
  )(RawTimerButton);
86900
87003
 
86901
87004
  const globalRefs$w = getThemeRefs$1(globals);
86902
- const vars$W = TimerButtonClass.cssVarList;
87005
+ const vars$X = TimerButtonClass.cssVarList;
86903
87006
 
86904
87007
  const timerButton = {
86905
- [vars$W.gap]: globalRefs$w.spacing.sm,
86906
- [vars$W.flexDirection]: 'column',
87008
+ [vars$X.gap]: globalRefs$w.spacing.sm,
87009
+ [vars$X.flexDirection]: 'column',
86907
87010
 
86908
87011
  _horizontal: {
86909
- [vars$W.flexDirection]: 'row',
87012
+ [vars$X.flexDirection]: 'row',
86910
87013
  timerPosition: {
86911
87014
  end: {
86912
- [vars$W.flexDirection]: 'row-reverse',
87015
+ [vars$X.flexDirection]: 'row-reverse',
86913
87016
  },
86914
87017
  },
86915
87018
  },
86916
87019
 
86917
87020
  timerPosition: {
86918
87021
  end: {
86919
- [vars$W.flexDirection]: 'column-reverse',
87022
+ [vars$X.flexDirection]: 'column-reverse',
86920
87023
  },
86921
87024
  },
86922
87025
 
86923
87026
  _fullWidth: {
86924
- [vars$W.hostWidth]: '100%',
87027
+ [vars$X.hostWidth]: '100%',
86925
87028
  },
86926
87029
 
86927
87030
  _timerInside: {
86928
- [vars$W.timerTextColor]: 'currentColor',
86929
- [vars$W.timerIconColor]: 'currentColor',
86930
- [vars$W.timerHostWidth]: 'auto',
86931
- [vars$W.buttonLabelSpacing]: '0',
86932
- [vars$W.timerInsideGapEnd]: `var(${vars$W.gap})`,
87031
+ [vars$X.timerTextColor]: 'currentColor',
87032
+ [vars$X.timerIconColor]: 'currentColor',
87033
+ [vars$X.timerHostWidth]: 'auto',
87034
+ [vars$X.buttonLabelSpacing]: '0',
87035
+ [vars$X.timerInsideGapEnd]: `var(${vars$X.gap})`,
86933
87036
  timerPosition: {
86934
87037
  end: {
86935
- [vars$W.timerInsideGapStart]: `var(${vars$W.gap})`,
87038
+ [vars$X.timerInsideGapStart]: `var(${vars$X.gap})`,
86936
87039
  },
86937
87040
  },
86938
87041
  },
@@ -86941,12 +87044,12 @@ function requireIndex_cjs () {
86941
87044
  var timerButton$1 = /*#__PURE__*/Object.freeze({
86942
87045
  __proto__: null,
86943
87046
  default: timerButton,
86944
- vars: vars$W
87047
+ vars: vars$X
86945
87048
  });
86946
87049
 
86947
- const componentName$18 = getComponentName('password-strength');
87050
+ const componentName$19 = getComponentName('password-strength');
86948
87051
  class RawPasswordStrength extends createBaseClass$1({
86949
- componentName: componentName$18,
87052
+ componentName: componentName$19,
86950
87053
  baseSelector: ':host > .wrapper',
86951
87054
  }) {
86952
87055
  static get observedAttributes() {
@@ -87060,7 +87163,7 @@ function requireIndex_cjs () {
87060
87163
  }
87061
87164
  }
87062
87165
 
87063
- const { host: host$t, bar, filledBar, barsContainer, text: text$1 } = {
87166
+ const { host: host$u, bar, filledBar, barsContainer, text: text$1 } = {
87064
87167
  host: { selector: () => ':host' },
87065
87168
  bar: { selector: ' .bar' },
87066
87169
  barsContainer: { selector: ' .bars-container' },
@@ -87073,11 +87176,11 @@ function requireIndex_cjs () {
87073
87176
  createStyleMixin$1({
87074
87177
  mappings: {
87075
87178
  hostWidth: [
87076
- { ...host$t, property: 'width' },
87077
- { ...host$t, property: 'min-width' },
87179
+ { ...host$u, property: 'width' },
87180
+ { ...host$u, property: 'min-width' },
87078
87181
  ],
87079
- hostDirection: { ...host$t, property: 'direction' },
87080
- hostMinWidth: { ...host$t, property: 'min-width' },
87182
+ hostDirection: { ...host$u, property: 'direction' },
87183
+ hostMinWidth: { ...host$u, property: 'min-width' },
87081
87184
  barHeight: { ...bar, property: 'height' },
87082
87185
  barBorderRadius: { ...bar, property: 'border-radius' },
87083
87186
  emptyBarColor: { ...bar, property: 'background-color' },
@@ -87137,22 +87240,22 @@ function requireIndex_cjs () {
87137
87240
  }
87138
87241
  };
87139
87242
 
87140
- const vars$V = {
87243
+ const vars$W = {
87141
87244
  ...compVars$6,
87142
87245
  };
87143
87246
 
87144
87247
  var passwordStrength$1 = /*#__PURE__*/Object.freeze({
87145
87248
  __proto__: null,
87146
87249
  default: passwordStrength,
87147
- vars: vars$V
87250
+ vars: vars$W
87148
87251
  });
87149
87252
 
87150
87253
  var chevronIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02Ljc4MDcgMTQuNzI3MkM2LjM0MTYgMTUuMTIwOSA1LjY2NjYgMTUuMDg0MSA1LjI3MjggMTQuNjQ1MUM0Ljg3OTEgMTQuMjA2IDQuOTE1OSAxMy41MzA5IDUuMzU0OSAxMy4xMzcyQzUuMzU0OSAxMy4xMzcyIDEwLjk1NDMgNy45OTc4IDExLjM2IDcuNjM0QzExLjc2NTcgNy4yNzAyIDEyLjIzOTIgNy4yNzAyIDEyLjY0NDggNy42MzRMMTguNjQ1MSAxMy4xMzcyQzE5LjA4NDEgMTMuNTMwOSAxOS4xMjA5IDE0LjIwNiAxOC43MjcyIDE0LjY0NTFDMTguMzMzNCAxNS4wODQxIDE3LjY1ODQgMTUuMTIwOSAxNy4yMTkzIDE0LjcyNzJMMTIgOS44NjMyTDYuNzgwNyAxNC43MjcyWiIvPgo8L3N2Zz4K";
87151
87254
 
87152
- const componentName$17 = getComponentName('collapsible-container');
87255
+ const componentName$18 = getComponentName('collapsible-container');
87153
87256
 
87154
87257
  class RawCollapsibleContainer extends createBaseClass$1({
87155
- componentName: componentName$17,
87258
+ componentName: componentName$18,
87156
87259
  baseSelector: 'slot',
87157
87260
  }) {
87158
87261
  static get observedAttributes() {
@@ -87403,7 +87506,7 @@ function requireIndex_cjs () {
87403
87506
  {
87404
87507
  shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
87405
87508
  },
87406
- componentName$17,
87509
+ componentName$18,
87407
87510
  );
87408
87511
 
87409
87512
  const { shadowColor: shadowColor$6 } = helperRefs$4;
@@ -87504,7 +87607,7 @@ function requireIndex_cjs () {
87504
87607
  },
87505
87608
  };
87506
87609
 
87507
- const vars$U = {
87610
+ const vars$V = {
87508
87611
  ...compVars$5,
87509
87612
  ...helperVars$4,
87510
87613
  };
@@ -87512,10 +87615,10 @@ function requireIndex_cjs () {
87512
87615
  var collapsibleContainer$1 = /*#__PURE__*/Object.freeze({
87513
87616
  __proto__: null,
87514
87617
  default: collapsibleContainer,
87515
- vars: vars$U
87618
+ vars: vars$V
87516
87619
  });
87517
87620
 
87518
- const componentName$16 = getComponentName('recovery-codes');
87621
+ const componentName$17 = getComponentName('recovery-codes');
87519
87622
 
87520
87623
  const NO_ACTION = 'none';
87521
87624
  const DEFAULT_ERROR_MESSAGE =
@@ -87557,7 +87660,7 @@ function requireIndex_cjs () {
87557
87660
  };
87558
87661
 
87559
87662
  class RawRecoveryCodes extends createBaseClass$1({
87560
- componentName: componentName$16,
87663
+ componentName: componentName$17,
87561
87664
  baseSelector: ':host > div',
87562
87665
  }) {
87563
87666
  static get observedAttributes() {
@@ -87970,60 +88073,388 @@ function requireIndex_cjs () {
87970
88073
  )(RawRecoveryCodes);
87971
88074
 
87972
88075
  const globalRefs$t = getThemeRefs$1(globals);
87973
- const vars$T = RecoveryCodesClass.cssVarList;
88076
+ const vars$U = RecoveryCodesClass.cssVarList;
87974
88077
  const textVars$6 = TextClass.cssVarList;
87975
88078
 
87976
88079
  const recoveryCodes = {
87977
- [vars$T.hostMinWidth]: '190px',
87978
- [vars$T.hostDirection]: globalRefs$t.direction,
87979
- [vars$T.iconColor]: useVar$1(textVars$6.textColor),
87980
- [vars$T.iconSize]: useVar$1(textVars$6.fontSize),
88080
+ [vars$U.hostMinWidth]: '190px',
88081
+ [vars$U.hostDirection]: globalRefs$t.direction,
88082
+ [vars$U.iconColor]: useVar$1(textVars$6.textColor),
88083
+ [vars$U.iconSize]: useVar$1(textVars$6.fontSize),
87981
88084
  // gap between the codes and the icon column
87982
- [vars$T.iconGap]: '8px',
88085
+ [vars$U.iconGap]: '8px',
87983
88086
  // gap between the stacked copy and download icons
87984
- [vars$T.iconStackGap]: '16px',
88087
+ [vars$U.iconStackGap]: '16px',
87985
88088
  // gap between the copy and download buttons (buttons variant)
87986
- [vars$T.buttonsGap]: '8px',
88089
+ [vars$U.buttonsGap]: '8px',
87987
88090
  // gap between the codes, the error message and the buttons
87988
- [vars$T.sectionsGap]: '8px',
87989
- [vars$T.bulletGap]: '0.35em',
88091
+ [vars$U.sectionsGap]: '8px',
88092
+ [vars$U.bulletGap]: '0.35em',
87990
88093
 
87991
88094
  // no padding by default so the current look is unchanged; the editor overrides per instance
87992
- [vars$T.verticalPadding]: '0',
87993
- [vars$T.horizontalPadding]: '0',
88095
+ [vars$U.verticalPadding]: '0',
88096
+ [vars$U.horizontalPadding]: '0',
87994
88097
 
87995
88098
  // error ring is transparent until the component is marked invalid (see _invalid below).
87996
88099
  // message color/font + border come from the shared input-wrapper tokens, so customizing
87997
88100
  // inputs in the console updates the recovery-codes error styling from the same place.
87998
- [vars$T.errorBorderColor]: 'transparent',
87999
- [vars$T.errorBorderWidth]: refs$1.borderWidth,
88000
- [vars$T.boxBorderRadius]: refs$1.borderRadius,
88101
+ [vars$U.errorBorderColor]: 'transparent',
88102
+ [vars$U.errorBorderWidth]: refs$1.borderWidth,
88103
+ [vars$U.boxBorderRadius]: refs$1.borderRadius,
88001
88104
  // local default; can later map to the input-wrapper border style if it exposes one
88002
- [vars$T.boxBorderStyle]: 'solid',
88003
- [vars$T.errorMessageColor]: refs$1.errorMessageTextColor,
88004
- [vars$T.errorMessageFontSize]: refs$1.errorMessageFontSize,
88005
- [vars$T.errorMessageFontWeight]: refs$1.errorMessageFontWeight,
88006
- [vars$T.errorMessageFontFamily]: refs$1.fontFamily,
88105
+ [vars$U.boxBorderStyle]: 'solid',
88106
+ [vars$U.errorMessageColor]: refs$1.errorMessageTextColor,
88107
+ [vars$U.errorMessageFontSize]: refs$1.errorMessageFontSize,
88108
+ [vars$U.errorMessageFontWeight]: refs$1.errorMessageFontWeight,
88109
+ [vars$U.errorMessageFontFamily]: refs$1.fontFamily,
88007
88110
 
88008
88111
  textAlign: {
88009
- right: { [vars$T.textAlign]: 'flex-end' },
88010
- left: { [vars$T.textAlign]: 'flex-start' },
88011
- center: { [vars$T.textAlign]: 'center' },
88112
+ right: { [vars$U.textAlign]: 'flex-end' },
88113
+ left: { [vars$U.textAlign]: 'flex-start' },
88114
+ center: { [vars$U.textAlign]: 'center' },
88012
88115
  },
88013
88116
 
88014
88117
  _fullWidth: {
88015
- [vars$T.hostWidth]: '100%',
88118
+ [vars$U.hostWidth]: '100%',
88016
88119
  },
88017
88120
 
88018
88121
  // reflected `invalid` attribute (set by the component on a failed submit)
88019
88122
  _invalid: {
88020
- [vars$T.errorBorderColor]: refs$1.errorMessageTextColor,
88123
+ [vars$U.errorBorderColor]: refs$1.errorMessageTextColor,
88021
88124
  },
88022
88125
  };
88023
88126
 
88024
88127
  var recoveryCodes$1 = /*#__PURE__*/Object.freeze({
88025
88128
  __proto__: null,
88026
88129
  default: recoveryCodes,
88130
+ vars: vars$U
88131
+ });
88132
+
88133
+ var desktopDeviceIconLight$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==";
88134
+
88135
+ var mobileDeviceIconLight$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDFIOEM2LjM0IDEgNSAyLjM0IDUgNFYyMEM1IDIxLjY2IDYuMzQgMjMgOCAyM0gxNkMxNy42NiAyMyAxOSAyMS42NiAxOSAyMFY0QzE5IDIuMzQgMTcuNjYgMSAxNiAxWk0xNyAxOEg3VjRIMTdWMThaTTE0IDIxSDEwVjIwSDE0VjIxWiIgZmlsbD0iIzYzNkM3NCIvPgo8L3N2Zz4K";
88136
+
88137
+ var tabletDeviceIconLight$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzUyNTJfNzY4KSI+CjxwYXRoIGQ9Ik0xOC41IDAuNUg0LjVDMy4xMiAwLjUgMiAxLjYyIDIgM1YyMkMyIDIzLjM4IDMuMTIgMjQuNSA0LjUgMjQuNUgxOC41QzE5Ljg4IDI0LjUgMjEgMjMuMzggMjEgMjJWM0MyMSAxLjYyIDE5Ljg4IDAuNSAxOC41IDAuNVpNMTEuNSAyMy41QzEwLjY3IDIzLjUgMTAgMjIuODMgMTAgMjJDMTAgMjEuMTcgMTAuNjcgMjAuNSAxMS41IDIwLjVDMTIuMzMgMjAuNSAxMyAyMS4xNyAxMyAyMkMxMyAyMi44MyAxMi4zMyAyMy41IDExLjUgMjMuNVpNMTkgMTkuNUg0VjMuNUgxOVYxOS41WiIgZmlsbD0iIzYzNkM3NCIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzUyNTJfNzY4Ij4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAwLjUpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==";
88138
+
88139
+ var unknownDeviceIconLight$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNi41SDIyVjQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTcuNUgwVjIwLjVIMTRWMTcuNUg0VjYuNVpNMjMgOC41SDE3QzE2LjQ1IDguNSAxNiA4Ljk1IDE2IDkuNVYxOS41QzE2IDIwLjA1IDE2LjQ1IDIwLjUgMTcgMjAuNUgyM0MyMy41NSAyMC41IDI0IDIwLjA1IDI0IDE5LjVWOS41QzI0IDguOTUgMjMuNTUgOC41IDIzIDguNVpNMjIgMTcuNUgxOFYxMC41SDIyVjE3LjVaIiBmaWxsPSIjNjM2Qzc0Ii8+Cjwvc3ZnPgo=";
88140
+
88141
+ var desktopDeviceIconDark$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4LjVDMjEuMSAxOC41IDIxLjk5IDE3LjYgMjEuOTkgMTYuNUwyMiA2LjVDMjIgNS40IDIxLjEgNC41IDIwIDQuNUg0QzIuOSA0LjUgMiA1LjQgMiA2LjVWMTYuNUMyIDE3LjYgMi45IDE4LjUgNCAxOC41SDBWMjAuNUgyNFYxOC41SDIwWk00IDYuNUgyMFYxNi41SDRWNi41WiIgZmlsbD0iI0Y0RjVGNiIvPgo8L3N2Zz4K";
88142
+
88143
+ var mobileDeviceIconDark$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDEuNUg4QzYuMzQgMS41IDUgMi44NCA1IDQuNVYyMC41QzUgMjIuMTYgNi4zNCAyMy41IDggMjMuNUgxNkMxNy42NiAyMy41IDE5IDIyLjE2IDE5IDIwLjVWNC41QzE5IDIuODQgMTcuNjYgMS41IDE2IDEuNVpNMTcgMTguNUg3VjQuNUgxN1YxOC41Wk0xNCAyMS41SDEwVjIwLjVIMTRWMjEuNVoiIGZpbGw9IiNGNEY1RjYiLz4KPC9zdmc+Cg==";
88144
+
88145
+ var tabletDeviceIconDark$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzUzMDNfODYzKSI+CjxwYXRoIGQ9Ik0xOC41IDAuNUg0LjVDMy4xMiAwLjUgMiAxLjYyIDIgM1YyMkMyIDIzLjM4IDMuMTIgMjQuNSA0LjUgMjQuNUgxOC41QzE5Ljg4IDI0LjUgMjEgMjMuMzggMjEgMjJWM0MyMSAxLjYyIDE5Ljg4IDAuNSAxOC41IDAuNVpNMTEuNSAyMy41QzEwLjY3IDIzLjUgMTAgMjIuODMgMTAgMjJDMTAgMjEuMTcgMTAuNjcgMjAuNSAxMS41IDIwLjVDMTIuMzMgMjAuNSAxMyAyMS4xNyAxMyAyMkMxMyAyMi44MyAxMi4zMyAyMy41IDExLjUgMjMuNVpNMTkgMTkuNUg0VjMuNUgxOVYxOS41WiIgZmlsbD0iI0Y0RjVGNiIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzUzMDNfODYzIj4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAwLjUpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==";
88146
+
88147
+ var unknownDeviceIconDark$1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkgyMlY0SDRDMi45IDQgMiA0LjkgMiA2VjE3SDBWMjBIMTRWMTdINFY2Wk0yMyA4SDE3QzE2LjQ1IDggMTYgOC40NSAxNiA5VjE5QzE2IDE5LjU1IDE2LjQ1IDIwIDE3IDIwSDIzQzIzLjU1IDIwIDI0IDE5LjU1IDI0IDE5VjlDMjQgOC40NSAyMy41NSA4IDIzIDhaTTIyIDE3SDE4VjEwSDIyVjE3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";
88148
+
88149
+ // Same four device types userservice records. A session created before those columns existed
88150
+ // carries an empty type, so everything unrecognised falls back to the unknown icon rather than
88151
+ // rendering a broken image.
88152
+ const deviceIconMap$1 = {
88153
+ desktop: { light: desktopDeviceIconLight$1, dark: desktopDeviceIconDark$1 },
88154
+ mobile: { light: mobileDeviceIconLight$1, dark: mobileDeviceIconDark$1 },
88155
+ tablet: { light: tabletDeviceIconLight$1, dark: tabletDeviceIconDark$1 },
88156
+ unknown: { light: unknownDeviceIconLight$1, dark: unknownDeviceIconDark$1 },
88157
+ };
88158
+
88159
+ const getDeviceIcon$1 = (deviceType) => {
88160
+ const icon = deviceIconMap$1[deviceType] || deviceIconMap$1.unknown;
88161
+ return { iconSrc: icon.light, iconSrcDark: icon.dark };
88162
+ };
88163
+
88164
+ // "Tel Aviv, IL". Either half may be missing - geo lookup is best effort - so show whichever we
88165
+ // have, and nothing at all when we have neither.
88166
+ const formatLocation = ({ country, city }) =>
88167
+ [city, country].filter(Boolean).join(', ');
88168
+
88169
+ // The login time arrives as epoch SECONDS (userservice stores it that way and the flow passes it
88170
+ // through untouched), while Date wants milliseconds. Getting this wrong shows 1970.
88171
+ const SECONDS_TO_MS = 1000;
88172
+
88173
+ // Rendered in the viewer's own locale and timezone rather than a fixed order, so the same session
88174
+ // reads correctly for someone in Tel Aviv and someone in New York. The offset is spelled out
88175
+ // because the point of this list is telling two of your own sessions apart, and the hour is what
88176
+ // does that.
88177
+ const formatLastLogin = (loginTime) => {
88178
+ const seconds = parseInt(loginTime, 10);
88179
+ if (Number.isNaN(seconds) || seconds <= 0) return '';
88180
+
88181
+ const date = new Date(seconds * SECONDS_TO_MS);
88182
+ // Spelled out as individual components rather than dateStyle/timeStyle: Intl rejects mixing
88183
+ // those with timeZoneName, and the rejection is a throw, so the offset would be silently lost to
88184
+ // the fallback below.
88185
+ const parts = {
88186
+ year: 'numeric',
88187
+ month: '2-digit',
88188
+ day: '2-digit',
88189
+ hour: '2-digit',
88190
+ minute: '2-digit',
88191
+ };
88192
+ try {
88193
+ return date.toLocaleString(undefined, {
88194
+ ...parts,
88195
+ timeZoneName: 'shortOffset',
88196
+ });
88197
+ } catch {
88198
+ // `shortOffset` is not understood everywhere; the time matters more than the offset.
88199
+ return date.toLocaleString(undefined, parts);
88200
+ }
88201
+ };
88202
+
88203
+ const componentName$16 = getComponentName('active-sessions');
88204
+
88205
+ const comboBoxName = MultiSelectComboBoxClass.componentName;
88206
+
88207
+ // Structure only, handed to the portal mixin below, which writes it into the overlay root
88208
+ // alongside the themeable mappings. These are the rules no theme should change, and they have to
88209
+ // be a stylesheet because a `style` attribute would be dropped by the flow runtime's CSP.
88210
+ const OVERLAY_ITEM_STYLE = `
88211
+ .session {
88212
+ display: flex;
88213
+ flex-direction: column;
88214
+ }
88215
+ /* descope-text and its slot are both inline-blocks, which would leave a baseline gap under the
88216
+ title and widen the space to the location line. */
88217
+ .session .device descope-text,
88218
+ .session .device descope-text::part(text-wrapper) {
88219
+ display: block;
88220
+ }
88221
+ /* The flex row has to sit inside descope-text, not around it: descope-text slots its children,
88222
+ so a container outside would only ever see the slot as its single item. */
88223
+ .session .device-row {
88224
+ display: flex;
88225
+ align-items: center;
88226
+ }
88227
+ .session .device-icon {
88228
+ width: 1em;
88229
+ height: 1em;
88230
+ flex-shrink: 0;
88231
+ }
88232
+ `;
88233
+
88234
+ // None of the shadow roots down to the rows exists on the first tick. `waitForShadowRoot` is the
88235
+ // same wait `portalMixin` uses, and it resolves the element rather than a root when it gives up,
88236
+ // so anything that is not a shadow root means stop.
88237
+ const shadowRootOf = async (ele) => {
88238
+ if (!ele) return null;
88239
+ const root = await waitForShadowRoot(() => ele)();
88240
+ return root instanceof ShadowRoot ? root : null;
88241
+ };
88242
+
88243
+ // From the combo box's shadow root down to the element whose own root holds the rows.
88244
+ // the portal mixin takes it as its selector and writes both its mappings and the static css there.
88245
+ const findOverlayElement = async (comboBoxRoot) => {
88246
+ const vaadinRoot = await shadowRootOf(
88247
+ comboBoxRoot?.querySelector('vaadin-multi-select-combo-box'),
88248
+ );
88249
+ return vaadinRoot?.querySelector('vaadin-multi-select-combo-box-internal');
88250
+ };
88251
+
88252
+ // The row's shape, written once as markup so it reads like the thing it produces. Every value is
88253
+ // filled in afterwards with textContent and setAttribute: the combo box assigns the result to
88254
+ // innerHTML, and `deviceName` comes from a user agent the client controls, so interpolating it
88255
+ // into this string would be an HTML injection.
88256
+ // Built on first render rather than at import. This module is the `./class` entry, which has to
88257
+ // stay free of side effects so a server with no `document` can import the bundle.
88258
+ let rowTemplate;
88259
+ const getRowTemplate = () => {
88260
+ if (rowTemplate) return rowTemplate;
88261
+
88262
+ rowTemplate = document.createElement('template');
88263
+ rowTemplate.innerHTML = `
88264
+ <div class="session">
88265
+ <div class="device">
88266
+ <descope-text variant="body1" mode="primary" st-font-size="1em">
88267
+ <div class="device-row">
88268
+ <descope-icon class="device-icon" aria-hidden="true"></descope-icon>
88269
+ <span class="device-name"></span>
88270
+ </div>
88271
+ </descope-text>
88272
+ </div>
88273
+ <div class="location">
88274
+ <descope-text
88275
+ variant="body2"
88276
+ mode="secondary"
88277
+ st-font-size="0.875em"
88278
+ ></descope-text>
88279
+ </div>
88280
+ <div class="last-login">
88281
+ <descope-text
88282
+ variant="body2"
88283
+ mode="secondary"
88284
+ st-font-size="0.875em"
88285
+ ></descope-text>
88286
+ </div>
88287
+ </div>
88288
+ `;
88289
+
88290
+ return rowTemplate;
88291
+ };
88292
+
88293
+ const renderItem =
88294
+ (ref) =>
88295
+ ({ value, deviceName, deviceType, city, country, loginTime } = {}) => {
88296
+ const name = deviceName || ref.unknownDeviceLabel;
88297
+ const row = getRowTemplate().content.cloneNode(true).firstElementChild;
88298
+
88299
+ row.setAttribute('data-id', value ?? '');
88300
+ // The chip shows this once the row is picked.
88301
+ row.setAttribute('data-name', name);
88302
+
88303
+ row.querySelector('.device-name').textContent = name;
88304
+
88305
+ const { iconSrc, iconSrcDark } = getDeviceIcon$1(deviceType);
88306
+ const icon = row.querySelector('.device-icon');
88307
+ icon.setAttribute('src', iconSrc);
88308
+ icon.setAttribute('src-dark', iconSrcDark);
88309
+
88310
+ // Both detail lines are optional, and an empty one would still take up space, so the line is
88311
+ // removed rather than left blank.
88312
+ const fill = (selector, text) => {
88313
+ const ele = row.querySelector(selector);
88314
+ if (text) ele.firstElementChild.textContent = text;
88315
+ else ele.remove();
88316
+ };
88317
+
88318
+ fill('.location', formatLocation({ country, city }));
88319
+
88320
+ const lastLogin = formatLastLogin(loginTime);
88321
+ fill(
88322
+ '.last-login',
88323
+ lastLogin && ref.lastLoginLabel
88324
+ ? `${ref.lastLoginLabel} ${lastLogin}`
88325
+ : lastLogin,
88326
+ );
88327
+
88328
+ return row.outerHTML;
88329
+ };
88330
+
88331
+ const customMixin$c = (superclass) =>
88332
+ class ActiveSessionsMixinClass extends superclass {
88333
+ get lastLoginLabel() {
88334
+ return this.getAttribute('last-login-label') ?? 'Last login:';
88335
+ }
88336
+
88337
+ get unknownDeviceLabel() {
88338
+ return this.getAttribute('unknown-device-label') ?? 'Unknown device';
88339
+ }
88340
+
88341
+ init() {
88342
+ super.init?.();
88343
+
88344
+ this.inputElement = this.baseElement;
88345
+
88346
+ // Set before any `data` arrives, so the list is never painted with the stock one-line rows
88347
+ // first. The SDK sets `data` on a detached fragment, so that first paint is the real one.
88348
+ this.inputElement.renderItem = renderItem(this);
88349
+
88350
+ // The picker never invents a session, so a typed value must not become one.
88351
+ this.inputElement.setAttribute('allow-custom-value', 'false');
88352
+ this.inputElement.setAttribute('item-label-path', 'data-name');
88353
+ this.inputElement.setAttribute('item-value-path', 'data-id');
88354
+ }
88355
+ };
88356
+
88357
+ const host$t = { selector: () => ':host' };
88358
+ const comboBox = { selector: () => comboBoxName };
88359
+
88360
+ // Only the knobs that can actually reach their target. The dropdown row's themeable values are
88361
+ // mapped through the portal below, which writes its rules into the overlay root. Better a small
88362
+ // honest set of variables than knobs that silently do nothing.
88363
+ const ActiveSessionsClass = compose(
88364
+ createStyleMixin$1({
88365
+ mappings: {
88366
+ hostWidth: [
88367
+ { ...host$t, property: 'width' },
88368
+ {
88369
+ ...comboBox,
88370
+ property: MultiSelectComboBoxClass.cssVarList.hostWidth,
88371
+ },
88372
+ ],
88373
+ hostDirection: [
88374
+ { ...host$t, property: 'direction' },
88375
+ {
88376
+ ...comboBox,
88377
+ property: MultiSelectComboBoxClass.cssVarList.hostDirection,
88378
+ },
88379
+ ],
88380
+ },
88381
+ }),
88382
+ draggableMixin$1,
88383
+ // The rows are drawn four shadow roots down, deeper than a query string reaches, so the portal
88384
+ // is found with a function. This puts their themeable values through the normal mapping path:
88385
+ // the style mixin writes its rules into that same root. Nothing is forwarded, because the
88386
+ // element there is vaadin's internal, not a copy of this host, and attributes like `data` would
88387
+ // stop the list rendering.
88388
+ portalMixin$1({
88389
+ name: 'overlay',
88390
+ forward: false,
88391
+ selector: findOverlayElement,
88392
+ style: OVERLAY_ITEM_STYLE,
88393
+ mappings: {
88394
+ rowGap: { selector: '.session', property: 'gap' },
88395
+ deviceRowGap: { selector: '.device-row', property: 'gap' },
88396
+ },
88397
+ }),
88398
+ composedProxyInputMixin$1({
88399
+ proxyProps: ['value'],
88400
+ inputEvent: 'change',
88401
+ proxyParentValidation: true,
88402
+ }),
88403
+ componentNameValidationMixin$1,
88404
+ customMixin$c,
88405
+ )(
88406
+ createProxy$1({
88407
+ slots: [],
88408
+ // The combo box is wrapped directly. It draws its own label, so there is nothing for an outer
88409
+ // field element to add here, and its label follows the input theme instead of vaadin's.
88410
+ wrappedEleName: comboBoxName,
88411
+ style: () => `
88412
+ :host {
88413
+ display: inline-flex;
88414
+ max-width: 100%;
88415
+ }
88416
+ ${comboBoxName} {
88417
+ width: 100%;
88418
+ max-width: 100%;
88419
+ }
88420
+ `,
88421
+ // `name` stays on the host only: that is the element the SDK collects the value from, and a
88422
+ // second match would post the field twice. `error-message` deliberately does reach the combo
88423
+ // box, which is what draws the message under the field. Without it the field only turns red
88424
+ // and the browser's own bubble appears instead.
88425
+ // `class` must not sync: the wrapped element carries its own component classes, and syncing
88426
+ // is two way, so they would land on the host and push off `descope-active-sessions`. Every
88427
+ // theme rule is written as `:host(.descope-active-sessions...)`, so losing that class turns
88428
+ // off all of this component's theming, direction included. descope-apps-list excludes it for
88429
+ // the same reason.
88430
+ excludeAttrsSync: ['tabindex', 'style', 'name', 'class'],
88431
+ componentName: componentName$16,
88432
+ }),
88433
+ );
88434
+
88435
+ const vars$T = ActiveSessionsClass.cssVarList;
88436
+
88437
+ // The dropdown rows are styled by the stylesheet `ActiveSessionsClass` adopts into vaadin's
88438
+ // overlay root (`OVERLAY_ITEM_STYLE`), which no theme variable reaches. A `style` attribute would
88439
+ // not work there either, because the flow runtime's CSP drops it. What is left to theme here is
88440
+ // the field itself.
88441
+ const activeSessions = {
88442
+ [vars$T.hostWidth]: refs$1.width,
88443
+ [vars$T.hostDirection]: refs$1.direction,
88444
+
88445
+ // Spacing inside a dropdown row. These reach the row as custom properties, because the rows are
88446
+ // rendered inside vaadin's overlay where no selector from here applies.
88447
+ [vars$T.overlay.rowGap]: '0.125em',
88448
+ [vars$T.overlay.deviceRowGap]: '0.5em',
88449
+
88450
+ _fullWidth: {
88451
+ [vars$T.hostWidth]: '100%',
88452
+ },
88453
+ };
88454
+
88455
+ var activeSessions$1 = /*#__PURE__*/Object.freeze({
88456
+ __proto__: null,
88457
+ default: activeSessions,
88027
88458
  vars: vars$T
88028
88459
  });
88029
88460
 
@@ -95841,7 +96272,7 @@ function requireIndex_cjs () {
95841
96272
  const STYLE_OVERRIDE_ATTR_PREFIX = 'st';
95842
96273
 
95843
96274
  const createStyleMixin =
95844
- ({ mappings = {}, componentNameOverride = '' }) =>
96275
+ ({ mappings = {}, componentNameOverride = '', style = '' }) =>
95845
96276
  (superclass) => {
95846
96277
  const componentName = componentNameOverride || superclass.componentName;
95847
96278
 
@@ -95963,6 +96394,14 @@ function requireIndex_cjs () {
95963
96394
  }
95964
96395
  }
95965
96396
 
96397
+ // Rules the component needs wherever this mixin writes, which for a portal is a shadow root
96398
+ // it does not own. Prepended after the mapping rules so those still win: the mapping is the
96399
+ // themeable half, this is the structure underneath it.
96400
+ #createStaticStyle() {
96401
+ const css = isFunction$1(style) ? style() : style;
96402
+ if (css) injectStyle(css, this.#rootElement, { prepend: true });
96403
+ }
96404
+
95966
96405
  #addClassName(className) {
95967
96406
  (this.#rootElement.classList || this.#rootElement.host.classList).add(className);
95968
96407
  }
@@ -95975,6 +96414,7 @@ function requireIndex_cjs () {
95975
96414
  this.#addClassName(componentName);
95976
96415
 
95977
96416
  this.#createMappingStyle();
96417
+ this.#createStaticStyle();
95978
96418
  this.#createComponentTheme();
95979
96419
  this.#createOverridesStyle();
95980
96420
 
@@ -96718,40 +97158,26 @@ function requireIndex_cjs () {
96718
97158
  // because of that, we are adding this separator that is also used as a differentiator
96719
97159
  const DISPLAY_NAME_SEPARATOR = '_';
96720
97160
 
96721
- const withWaitForShadowRoot = (getRootElementFn) => async (that) => {
96722
- const ele = await getRootElementFn(that);
96723
-
96724
- return new Promise((res) => {
96725
- const MAX_RETRIES = 20;
96726
- let counter = 0;
96727
-
96728
- const check = () => {
96729
- if (counter > MAX_RETRIES) {
96730
- // eslint-disable-next-line no-console
96731
- console.error('could not get shadow root for element', ele);
96732
- res(ele);
96733
- return;
96734
- }
96735
-
96736
- counter++;
96737
-
96738
- if (!ele?.shadowRoot) {
96739
- setTimeout(check);
96740
- } else {
96741
- res(ele.shadowRoot);
96742
- }
96743
- };
96744
- check();
96745
- });
96746
- };
96747
-
96748
97161
  const portalMixin =
96749
- ({ name, selector, mappings = {}, forward: { attributes = [], include = true } = {} }) =>
97162
+ ({
97163
+ name,
97164
+ selector,
97165
+ mappings = {},
97166
+ // Static css for the portal's own root, for rules that should not become themeable knobs.
97167
+ style = '',
97168
+ // `false` forwards nothing to the portal element. It needs its own value because an empty
97169
+ // `attributes` list already means "no filter", so it forwards everything rather than nothing.
97170
+ // Forwarding is wrong for a portal whose element is not a copy of the host, where attributes
97171
+ // like `data` or `label` would land somewhere that does not expect them.
97172
+ forward = {},
97173
+ }) =>
96750
97174
  (superclass) => {
97175
+
96751
97176
  const eleDisplayName = name;
96752
97177
 
96753
97178
  const BaseClass = createStyleMixin({
96754
97179
  mappings,
97180
+ style,
96755
97181
  })(superclass);
96756
97182
 
96757
97183
  return class PortalMixinClass extends BaseClass {
@@ -96777,7 +97203,7 @@ function requireIndex_cjs () {
96777
97203
  }
96778
97204
  };
96779
97205
 
96780
- const getPortalElement = withWaitForShadowRoot(getRootElement);
97206
+ const getPortalElement = waitForShadowRoot$1(getRootElement);
96781
97207
 
96782
97208
  super({
96783
97209
  getRootElement: getPortalElement,
@@ -96808,9 +97234,12 @@ function requireIndex_cjs () {
96808
97234
  // Initialize portal element lookup here (deferred from constructor for React compatibility)
96809
97235
  this.#portalEle = this.#getPortalElement();
96810
97236
  const portalEle = await this.#portalEle;
96811
- forwardAttrs$1(this, portalEle, {
96812
- [include ? 'includeAttrs' : 'excludeAttrs']: attributes,
96813
- });
97237
+ if (forward !== false) {
97238
+ const { attributes = [], include = true } = forward;
97239
+ forwardAttrs$1(this, portalEle, {
97240
+ [include ? 'includeAttrs' : 'excludeAttrs']: attributes,
97241
+ });
97242
+ }
96814
97243
 
96815
97244
  this.#handleHoverAttribute();
96816
97245
  }
@@ -97241,6 +97670,19 @@ function requireIndex_cjs () {
97241
97670
  this.baseElement._setFocused = this.setFocus.bind(this);
97242
97671
 
97243
97672
  this.initExternalInput();
97673
+ this.stopRevealButtonEnterPropagation();
97674
+ }
97675
+
97676
+ // Vaadin toggles visibility on Enter keydown but lets the event bubble,
97677
+ // and the SDK submits the form on any Enter that reaches the flow root.
97678
+ stopRevealButtonEnterPropagation() {
97679
+ this.revealButton.addEventListener('keydown', (e) => {
97680
+ if (e.key === 'Enter') e.stopPropagation();
97681
+ });
97682
+ }
97683
+
97684
+ get revealButton() {
97685
+ return this.baseElement.querySelector('vaadin-password-field-button');
97244
97686
  }
97245
97687
 
97246
97688
  initExternalInput() {
@@ -97296,9 +97738,7 @@ function requireIndex_cjs () {
97296
97738
  handlePasswordVisibility(externalInput) {
97297
97739
  // disable vaadin's `__boundRevealButtonMouseDown` mouse-down event lisetener
97298
97740
  const origBoundRevealButtonMouseDown = this.baseElement.__boundRevealButtonMouseDown;
97299
- this.baseElement
97300
- .querySelector('vaadin-password-field-button')
97301
- .removeEventListener('mousedown', origBoundRevealButtonMouseDown);
97741
+ this.revealButton.removeEventListener('mousedown', origBoundRevealButtonMouseDown);
97302
97742
 
97303
97743
  // disable vaadin's `_passwordVisibleChanged` observer
97304
97744
  this.baseElement._passwordVisibleChanged = () => {};
@@ -109698,7 +110138,7 @@ descope-enriched-text {
109698
110138
  [vars$2.horizontalPadding]: '0',
109699
110139
  [vars$2.verticalPadding]: '0',
109700
110140
  [vars$2.gap]: `0.5em`,
109701
- [vars$2.fontSize]: useVar(vars$1a.fontSize),
110141
+ [vars$2.fontSize]: useVar(vars$1b.fontSize),
109702
110142
 
109703
110143
  mode: {
109704
110144
  error: {
@@ -109941,7 +110381,7 @@ descope-enriched-text {
109941
110381
  passcode: passcode$1,
109942
110382
  loaderRadial: loaderRadial$1,
109943
110383
  loaderLinear: loaderLinear$1,
109944
- comboBox: comboBox$1,
110384
+ comboBox: comboBox$2,
109945
110385
  phoneField: phoneField$1,
109946
110386
  phoneInputBoxField: phoneInputBoxField$1,
109947
110387
  newPassword: newPassword$1,
@@ -109988,6 +110428,7 @@ descope-enriched-text {
109988
110428
  passwordStrength: passwordStrength$1,
109989
110429
  collapsibleContainer: collapsibleContainer$1,
109990
110430
  recoveryCodes: recoveryCodes$1,
110431
+ activeSessions: activeSessions$1,
109991
110432
  hcaptcha: hcaptcha$1,
109992
110433
  outboundApps: outboundApps$1,
109993
110434
  outboundAppButton: outboundAppButton$1,
@@ -110009,7 +110450,7 @@ descope-enriched-text {
110009
110450
  );
110010
110451
 
110011
110452
  const defaultTheme = { globals: globals$1, components: theme };
110012
- const themeVars = { globals: vars$1c, components: vars };
110453
+ const themeVars = { globals: vars$1d, components: vars };
110013
110454
 
110014
110455
  const colors = {
110015
110456
  surface: {
@@ -110811,6 +111252,7 @@ descope-enriched-text {
110811
111252
  options: options
110812
111253
  });
110813
111254
 
111255
+ index_cjs$4.ActiveSessionsClass = ActiveSessionsClass;
110814
111256
  index_cjs$4.AddressFieldClass = AddressFieldClass;
110815
111257
  index_cjs$4.AlertClass = AlertClass;
110816
111258
  index_cjs$4.AnchoredClass = AnchoredClass;
@@ -110984,6 +111426,7 @@ const CountrySubdivisionCityFieldClass = index_cjsExports.CountrySubdivisionCity
110984
111426
  const TimerButtonClass = index_cjsExports.TimerButtonClass;
110985
111427
  const CollapsibleContainerClass = index_cjsExports.CollapsibleContainerClass;
110986
111428
  const RecoveryCodesClass = index_cjsExports.RecoveryCodesClass;
111429
+ const ActiveSessionsClass = index_cjsExports.ActiveSessionsClass;
110987
111430
  const HcaptchaClass = index_cjsExports.HcaptchaClass;
110988
111431
  const OutboundAppsClass = index_cjsExports.OutboundAppsClass;
110989
111432
  const OutboundAppButtonClass = index_cjsExports.OutboundAppButtonClass;
@@ -111644,6 +112087,22 @@ const UserPasskeys = React__default.default.forwardRef(({ allowRemove, createdAt
111644
112087
  allowRemove && removeIcon && removeIconDark && (React__default.default.createElement(Icon, { key: djb2Hash(removeIcon + removeIconDark), icon: removeIcon, "src-dark": removeIconDark, slot: "remove-button", "st-fill": "currentcolor", "st-height": "1.5em" })),
111645
112088
  allowRemove && React__default.default.createElement("span", { slot: "remove-button" }, removeButtonLabel))));
111646
112089
 
112090
+ const ActiveSessions = React__default.default.forwardRef(({ data, size = 'md', bordered = true, ...props }, ref) => {
112091
+ const serializedData = React.useMemo(() => {
112092
+ if (!data)
112093
+ return undefined;
112094
+ try {
112095
+ return JSON.stringify(data);
112096
+ }
112097
+ catch (e) {
112098
+ // eslint-disable-next-line no-console
112099
+ console.error('could not serialize active sessions data -', e.message);
112100
+ return undefined;
112101
+ }
112102
+ }, [data]);
112103
+ return (React__default.default.createElement("descope-active-sessions", { size: size, bordered: bordered, ...props, data: serializedData, ref: ref }));
112104
+ });
112105
+
111647
112106
  const globalsThemeToStyle = index_cjsExports.globalsThemeToStyle;
111648
112107
  const createComponentsTheme = index_cjsExports.createComponentsTheme;
111649
112108
  const themeToStyle = index_cjsExports.themeToStyle;
@@ -111653,6 +112112,8 @@ const themeVars = index_cjsExports.themeVars;
111653
112112
  const defaultTheme = index_cjsExports.defaultTheme;
111654
112113
  const darkTheme = index_cjsExports.darkTheme;
111655
112114
 
112115
+ exports.ActiveSessions = ActiveSessions;
112116
+ exports.ActiveSessionsClass = ActiveSessionsClass;
111656
112117
  exports.AddressField = AddressField;
111657
112118
  exports.AddressFieldClass = AddressFieldClass;
111658
112119
  exports.Alert = Alert;