@descope/web-components-ui 3.0.5 → 3.0.7

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.
@@ -1263,7 +1263,7 @@ const globals$1 = {
1263
1263
  fonts: fonts$1,
1264
1264
  direction: direction$1,
1265
1265
  };
1266
- const vars$14 = getThemeVars(globals$1);
1266
+ const vars$15 = getThemeVars(globals$1);
1267
1267
 
1268
1268
  const direction = 'ltr';
1269
1269
 
@@ -1854,6 +1854,9 @@ const booleanAttributesList$1 = [
1854
1854
  'loading',
1855
1855
  'allow-custom-value',
1856
1856
  'collapsed',
1857
+ 'hide-country',
1858
+ 'hide-subdivision',
1859
+ 'hide-city',
1857
1860
  ];
1858
1861
 
1859
1862
  const isBooleanAttribute$1 = (attr) => {
@@ -1881,11 +1884,11 @@ const normalizeBooleanAttributesMixin$1 = (superclass) =>
1881
1884
  } else if (!attrVal) {
1882
1885
  // eslint-disable-next-line no-console
1883
1886
  console.debug(
1884
- `attribute "${attr}" has no value, should it be added to the boolean attributes list?`
1887
+ `attribute "${attr}" has no value, should it be added to the boolean attributes list?`,
1885
1888
  );
1886
1889
  }
1887
1890
  }),
1888
- {}
1891
+ {},
1889
1892
  );
1890
1893
  }
1891
1894
  };
@@ -3056,12 +3059,12 @@ const createImage = async (src, altText) => {
3056
3059
 
3057
3060
  /* eslint-disable no-use-before-define */
3058
3061
 
3059
- const componentName$1h = getComponentName('image');
3062
+ const componentName$1j = getComponentName('image');
3060
3063
 
3061
3064
  const srcAttrs = ['src', 'src-dark'];
3062
3065
 
3063
3066
  class RawImage extends createBaseClass$1({
3064
- componentName: componentName$1h,
3067
+ componentName: componentName$1j,
3065
3068
  baseSelector: 'slot',
3066
3069
  }) {
3067
3070
  static get observedAttributes() {
@@ -3189,7 +3192,7 @@ const ImageClass = compose(
3189
3192
  componentNameValidationMixin$1,
3190
3193
  )(RawImage);
3191
3194
 
3192
- const componentName$1g = getComponentName('icon');
3195
+ const componentName$1i = getComponentName('icon');
3193
3196
 
3194
3197
  const IconClass = compose(
3195
3198
  createStyleMixin$1({
@@ -3210,7 +3213,7 @@ const IconClass = compose(
3210
3213
  }
3211
3214
  `,
3212
3215
  excludeAttrsSync: ['tabindex', 'class', 'style'],
3213
- componentName: componentName$1g,
3216
+ componentName: componentName$1i,
3214
3217
  }),
3215
3218
  );
3216
3219
 
@@ -3225,7 +3228,7 @@ const clickableMixin = (superclass) =>
3225
3228
  }
3226
3229
  };
3227
3230
 
3228
- const componentName$1f = getComponentName('button');
3231
+ const componentName$1h = getComponentName('button');
3229
3232
 
3230
3233
  const resetStyles = `
3231
3234
  :host {
@@ -3263,7 +3266,7 @@ const iconStyles = `
3263
3266
 
3264
3267
  const editorOverrides = `vaadin-button::part(label) { pointer-events: none; }`;
3265
3268
 
3266
- const { host: host$w, label: label$a, slottedIcon } = {
3269
+ const { host: host$x, label: label$a, slottedIcon } = {
3267
3270
  host: { selector: () => ':host' },
3268
3271
  label: { selector: '::part(label)' },
3269
3272
  slottedIcon: { selector: () => '::slotted(descope-icon)' },
@@ -3276,7 +3279,7 @@ const ButtonClass = compose(
3276
3279
  mappings: {
3277
3280
  hostWidth: { property: 'width' },
3278
3281
  hostHeight: { property: 'height' },
3279
- hostDirection: { ...host$w, property: 'direction' },
3282
+ hostDirection: { ...host$x, property: 'direction' },
3280
3283
  fontSize: {},
3281
3284
  fontFamily: {},
3282
3285
 
@@ -3341,7 +3344,7 @@ const ButtonClass = compose(
3341
3344
  }
3342
3345
  `,
3343
3346
  excludeAttrsSync: ['tabindex', 'class', 'style'],
3344
- componentName: componentName$1f,
3347
+ componentName: componentName$1h,
3345
3348
  })
3346
3349
  );
3347
3350
 
@@ -3389,7 +3392,7 @@ const mode = {
3389
3392
  surface: globalRefs$H.colors.surface,
3390
3393
  };
3391
3394
 
3392
- const [helperTheme$6, helperRefs$6, helperVars$6] = createHelperVars$1({ mode }, componentName$1f);
3395
+ const [helperTheme$6, helperRefs$6, helperVars$6] = createHelperVars$1({ mode }, componentName$1h);
3393
3396
 
3394
3397
  const button = {
3395
3398
  ...helperTheme$6,
@@ -3501,7 +3504,7 @@ const button = {
3501
3504
  },
3502
3505
  };
3503
3506
 
3504
- const vars$13 = {
3507
+ const vars$14 = {
3505
3508
  ...compVars$9,
3506
3509
  ...helperVars$6,
3507
3510
  };
@@ -3509,13 +3512,13 @@ const vars$13 = {
3509
3512
  var button$1 = /*#__PURE__*/Object.freeze({
3510
3513
  __proto__: null,
3511
3514
  default: button,
3512
- vars: vars$13
3515
+ vars: vars$14
3513
3516
  });
3514
3517
 
3515
- const componentName$1e = getComponentName('text');
3518
+ const componentName$1g = getComponentName('text');
3516
3519
 
3517
3520
  class RawText extends createBaseClass$1({
3518
- componentName: componentName$1e,
3521
+ componentName: componentName$1g,
3519
3522
  baseSelector: ':host > slot',
3520
3523
  }) {
3521
3524
  constructor() {
@@ -3551,15 +3554,15 @@ class RawText extends createBaseClass$1({
3551
3554
  }
3552
3555
  }
3553
3556
 
3554
- const { host: host$v } = {
3557
+ const { host: host$w } = {
3555
3558
  host: { selector: () => ':host' }
3556
3559
  };
3557
3560
 
3558
3561
  const TextClass = compose(
3559
3562
  createStyleMixin$1({
3560
3563
  mappings: {
3561
- hostWidth: { ...host$v, property: 'width' },
3562
- hostDirection: { ...host$v, property: 'direction' },
3564
+ hostWidth: { ...host$w, property: 'width' },
3565
+ hostDirection: { ...host$w, property: 'direction' },
3563
3566
  fontSize: {},
3564
3567
  textColor: [
3565
3568
  { property: 'color' }
@@ -3582,106 +3585,106 @@ const TextClass = compose(
3582
3585
  )(RawText);
3583
3586
 
3584
3587
  const globalRefs$G = getThemeRefs$1(globals);
3585
- const vars$12 = TextClass.cssVarList;
3588
+ const vars$13 = TextClass.cssVarList;
3586
3589
 
3587
3590
  const text$3 = {
3588
- [vars$12.hostDirection]: globalRefs$G.direction,
3589
- [vars$12.textLineHeight]: '1.35em',
3590
- [vars$12.textAlign]: 'start',
3591
- [vars$12.textColor]: globalRefs$G.colors.surface.dark,
3591
+ [vars$13.hostDirection]: globalRefs$G.direction,
3592
+ [vars$13.textLineHeight]: '1.35em',
3593
+ [vars$13.textAlign]: 'start',
3594
+ [vars$13.textColor]: globalRefs$G.colors.surface.dark,
3592
3595
 
3593
3596
  variant: {
3594
3597
  h1: {
3595
- [vars$12.fontSize]: globalRefs$G.typography.h1.size,
3596
- [vars$12.fontWeight]: globalRefs$G.typography.h1.weight,
3597
- [vars$12.fontFamily]: globalRefs$G.typography.h1.font,
3598
+ [vars$13.fontSize]: globalRefs$G.typography.h1.size,
3599
+ [vars$13.fontWeight]: globalRefs$G.typography.h1.weight,
3600
+ [vars$13.fontFamily]: globalRefs$G.typography.h1.font,
3598
3601
  },
3599
3602
  h2: {
3600
- [vars$12.fontSize]: globalRefs$G.typography.h2.size,
3601
- [vars$12.fontWeight]: globalRefs$G.typography.h2.weight,
3602
- [vars$12.fontFamily]: globalRefs$G.typography.h2.font,
3603
+ [vars$13.fontSize]: globalRefs$G.typography.h2.size,
3604
+ [vars$13.fontWeight]: globalRefs$G.typography.h2.weight,
3605
+ [vars$13.fontFamily]: globalRefs$G.typography.h2.font,
3603
3606
  },
3604
3607
  h3: {
3605
- [vars$12.fontSize]: globalRefs$G.typography.h3.size,
3606
- [vars$12.fontWeight]: globalRefs$G.typography.h3.weight,
3607
- [vars$12.fontFamily]: globalRefs$G.typography.h3.font,
3608
+ [vars$13.fontSize]: globalRefs$G.typography.h3.size,
3609
+ [vars$13.fontWeight]: globalRefs$G.typography.h3.weight,
3610
+ [vars$13.fontFamily]: globalRefs$G.typography.h3.font,
3608
3611
  },
3609
3612
  subtitle1: {
3610
- [vars$12.fontSize]: globalRefs$G.typography.subtitle1.size,
3611
- [vars$12.fontWeight]: globalRefs$G.typography.subtitle1.weight,
3612
- [vars$12.fontFamily]: globalRefs$G.typography.subtitle1.font,
3613
+ [vars$13.fontSize]: globalRefs$G.typography.subtitle1.size,
3614
+ [vars$13.fontWeight]: globalRefs$G.typography.subtitle1.weight,
3615
+ [vars$13.fontFamily]: globalRefs$G.typography.subtitle1.font,
3613
3616
  },
3614
3617
  subtitle2: {
3615
- [vars$12.fontSize]: globalRefs$G.typography.subtitle2.size,
3616
- [vars$12.fontWeight]: globalRefs$G.typography.subtitle2.weight,
3617
- [vars$12.fontFamily]: globalRefs$G.typography.subtitle2.font,
3618
+ [vars$13.fontSize]: globalRefs$G.typography.subtitle2.size,
3619
+ [vars$13.fontWeight]: globalRefs$G.typography.subtitle2.weight,
3620
+ [vars$13.fontFamily]: globalRefs$G.typography.subtitle2.font,
3618
3621
  },
3619
3622
  body1: {
3620
- [vars$12.fontSize]: globalRefs$G.typography.body1.size,
3621
- [vars$12.fontWeight]: globalRefs$G.typography.body1.weight,
3622
- [vars$12.fontFamily]: globalRefs$G.typography.body1.font,
3623
+ [vars$13.fontSize]: globalRefs$G.typography.body1.size,
3624
+ [vars$13.fontWeight]: globalRefs$G.typography.body1.weight,
3625
+ [vars$13.fontFamily]: globalRefs$G.typography.body1.font,
3623
3626
  },
3624
3627
  body2: {
3625
- [vars$12.fontSize]: globalRefs$G.typography.body2.size,
3626
- [vars$12.fontWeight]: globalRefs$G.typography.body2.weight,
3627
- [vars$12.fontFamily]: globalRefs$G.typography.body2.font,
3628
+ [vars$13.fontSize]: globalRefs$G.typography.body2.size,
3629
+ [vars$13.fontWeight]: globalRefs$G.typography.body2.weight,
3630
+ [vars$13.fontFamily]: globalRefs$G.typography.body2.font,
3628
3631
  },
3629
3632
  },
3630
3633
 
3631
3634
  mode: {
3632
3635
  primary: {
3633
- [vars$12.textColor]: globalRefs$G.colors.surface.contrast,
3636
+ [vars$13.textColor]: globalRefs$G.colors.surface.contrast,
3634
3637
  },
3635
3638
  secondary: {
3636
- [vars$12.textColor]: globalRefs$G.colors.surface.dark,
3639
+ [vars$13.textColor]: globalRefs$G.colors.surface.dark,
3637
3640
  },
3638
3641
  error: {
3639
- [vars$12.textColor]: globalRefs$G.colors.error.main,
3642
+ [vars$13.textColor]: globalRefs$G.colors.error.main,
3640
3643
  },
3641
3644
  'error-dark': {
3642
- [vars$12.textColor]: globalRefs$G.colors.error.dark,
3645
+ [vars$13.textColor]: globalRefs$G.colors.error.dark,
3643
3646
  },
3644
3647
  success: {
3645
- [vars$12.textColor]: globalRefs$G.colors.success.main,
3648
+ [vars$13.textColor]: globalRefs$G.colors.success.main,
3646
3649
  },
3647
3650
  'success-dark': {
3648
- [vars$12.textColor]: globalRefs$G.colors.success.dark,
3651
+ [vars$13.textColor]: globalRefs$G.colors.success.dark,
3649
3652
  },
3650
3653
  warning: {
3651
- [vars$12.textColor]: globalRefs$G.colors.warning.main,
3654
+ [vars$13.textColor]: globalRefs$G.colors.warning.main,
3652
3655
  },
3653
3656
  'warning-dark': {
3654
- [vars$12.textColor]: globalRefs$G.colors.warning.dark,
3657
+ [vars$13.textColor]: globalRefs$G.colors.warning.dark,
3655
3658
  },
3656
3659
  },
3657
3660
 
3658
3661
  textAlign: {
3659
- right: { [vars$12.textAlign]: 'right' },
3660
- left: { [vars$12.textAlign]: 'left' },
3661
- center: { [vars$12.textAlign]: 'center' },
3662
+ right: { [vars$13.textAlign]: 'right' },
3663
+ left: { [vars$13.textAlign]: 'left' },
3664
+ center: { [vars$13.textAlign]: 'center' },
3662
3665
  },
3663
3666
 
3664
3667
  _fullWidth: {
3665
- [vars$12.hostWidth]: '100%',
3668
+ [vars$13.hostWidth]: '100%',
3666
3669
  },
3667
3670
 
3668
3671
  _italic: {
3669
- [vars$12.fontStyle]: 'italic',
3672
+ [vars$13.fontStyle]: 'italic',
3670
3673
  },
3671
3674
 
3672
3675
  _uppercase: {
3673
- [vars$12.textTransform]: 'uppercase',
3676
+ [vars$13.textTransform]: 'uppercase',
3674
3677
  },
3675
3678
 
3676
3679
  _lowercase: {
3677
- [vars$12.textTransform]: 'lowercase',
3680
+ [vars$13.textTransform]: 'lowercase',
3678
3681
  },
3679
3682
  };
3680
3683
 
3681
3684
  var text$4 = /*#__PURE__*/Object.freeze({
3682
3685
  __proto__: null,
3683
3686
  default: text$3,
3684
- vars: vars$12
3687
+ vars: vars$13
3685
3688
  });
3686
3689
 
3687
3690
  const disableRules = [
@@ -3708,9 +3711,9 @@ const decodeHTML = (html) => {
3708
3711
  /* eslint-disable no-param-reassign */
3709
3712
 
3710
3713
 
3711
- const componentName$1d = getComponentName('enriched-text');
3714
+ const componentName$1f = getComponentName('enriched-text');
3712
3715
 
3713
- class EnrichedText extends createBaseClass$1({ componentName: componentName$1d, baseSelector: ':host > div' }) {
3716
+ class EnrichedText extends createBaseClass$1({ componentName: componentName$1f, baseSelector: ':host > div' }) {
3714
3717
  #origLinkRenderer;
3715
3718
 
3716
3719
  #origEmRenderer;
@@ -3915,9 +3918,9 @@ const EnrichedTextClass = compose(
3915
3918
  componentNameValidationMixin$1
3916
3919
  )(EnrichedText);
3917
3920
 
3918
- const componentName$1c = getComponentName('link');
3921
+ const componentName$1e = getComponentName('link');
3919
3922
 
3920
- class RawLink extends createBaseClass$1({ componentName: componentName$1c, baseSelector: ':host a' }) {
3923
+ class RawLink extends createBaseClass$1({ componentName: componentName$1e, baseSelector: ':host a' }) {
3921
3924
  constructor() {
3922
3925
  super();
3923
3926
 
@@ -3974,12 +3977,12 @@ const selectors$3 = {
3974
3977
  text: { selector: () => TextClass.componentName },
3975
3978
  };
3976
3979
 
3977
- const { anchor, text: text$2, host: host$u, wrapper: wrapper$1, link: link$3 } = selectors$3;
3980
+ const { anchor, text: text$2, host: host$v, wrapper: wrapper$1, link: link$3 } = selectors$3;
3978
3981
 
3979
3982
  const LinkClass = compose(
3980
3983
  createStyleMixin$1({
3981
3984
  mappings: {
3982
- hostWidth: { ...host$u, property: 'width' },
3985
+ hostWidth: { ...host$v, property: 'width' },
3983
3986
  hostDirection: { ...text$2, property: 'direction' },
3984
3987
  textAlign: wrapper$1,
3985
3988
  textDecoration: { ...link$3, property: 'text-decoration', fallback: 'none' },
@@ -3995,31 +3998,31 @@ const LinkClass = compose(
3995
3998
  )(RawLink);
3996
3999
 
3997
4000
  const globalRefs$F = getThemeRefs$1(globals);
3998
- const vars$11 = LinkClass.cssVarList;
4001
+ const vars$12 = LinkClass.cssVarList;
3999
4002
 
4000
4003
  const link$1 = {
4001
- [vars$11.hostDirection]: globalRefs$F.direction,
4002
- [vars$11.cursor]: 'pointer',
4004
+ [vars$12.hostDirection]: globalRefs$F.direction,
4005
+ [vars$12.cursor]: 'pointer',
4003
4006
 
4004
- [vars$11.textColor]: globalRefs$F.colors.primary.main,
4007
+ [vars$12.textColor]: globalRefs$F.colors.primary.main,
4005
4008
 
4006
4009
  textAlign: {
4007
- right: { [vars$11.textAlign]: 'right' },
4008
- left: { [vars$11.textAlign]: 'left' },
4009
- center: { [vars$11.textAlign]: 'center' },
4010
+ right: { [vars$12.textAlign]: 'right' },
4011
+ left: { [vars$12.textAlign]: 'left' },
4012
+ center: { [vars$12.textAlign]: 'center' },
4010
4013
  },
4011
4014
 
4012
4015
  _fullWidth: {
4013
- [vars$11.hostWidth]: '100%',
4016
+ [vars$12.hostWidth]: '100%',
4014
4017
  },
4015
4018
 
4016
4019
  _hover: {
4017
- [vars$11.textDecoration]: 'underline',
4020
+ [vars$12.textDecoration]: 'underline',
4018
4021
  },
4019
4022
 
4020
4023
  mode: {
4021
4024
  secondary: {
4022
- [vars$11.textColor]: globalRefs$F.colors.secondary.main,
4025
+ [vars$12.textColor]: globalRefs$F.colors.secondary.main,
4023
4026
  },
4024
4027
  },
4025
4028
  };
@@ -4027,37 +4030,37 @@ const link$1 = {
4027
4030
  var link$2 = /*#__PURE__*/Object.freeze({
4028
4031
  __proto__: null,
4029
4032
  default: link$1,
4030
- vars: vars$11
4033
+ vars: vars$12
4031
4034
  });
4032
4035
 
4033
4036
  const globalRefs$E = getThemeRefs$1(globals);
4034
- const vars$10 = EnrichedTextClass.cssVarList;
4037
+ const vars$11 = EnrichedTextClass.cssVarList;
4035
4038
 
4036
4039
  const enrichedText = {
4037
- [vars$10.hostDirection]: globalRefs$E.direction,
4038
- [vars$10.hostWidth]: useVar$1(vars$12.hostWidth),
4040
+ [vars$11.hostDirection]: globalRefs$E.direction,
4041
+ [vars$11.hostWidth]: useVar$1(vars$13.hostWidth),
4039
4042
 
4040
- [vars$10.textLineHeight]: useVar$1(vars$12.textLineHeight),
4041
- [vars$10.textColor]: useVar$1(vars$12.textColor),
4042
- [vars$10.textAlign]: useVar$1(vars$12.textAlign),
4043
+ [vars$11.textLineHeight]: useVar$1(vars$13.textLineHeight),
4044
+ [vars$11.textColor]: useVar$1(vars$13.textColor),
4045
+ [vars$11.textAlign]: useVar$1(vars$13.textAlign),
4043
4046
 
4044
- [vars$10.fontSize]: useVar$1(vars$12.fontSize),
4045
- [vars$10.fontWeight]: useVar$1(vars$12.fontWeight),
4046
- [vars$10.fontFamily]: useVar$1(vars$12.fontFamily),
4047
+ [vars$11.fontSize]: useVar$1(vars$13.fontSize),
4048
+ [vars$11.fontWeight]: useVar$1(vars$13.fontWeight),
4049
+ [vars$11.fontFamily]: useVar$1(vars$13.fontFamily),
4047
4050
 
4048
- [vars$10.linkColor]: useVar$1(vars$11.textColor),
4049
- [vars$10.linkTextDecoration]: 'none',
4050
- [vars$10.linkHoverTextDecoration]: 'underline',
4051
+ [vars$11.linkColor]: useVar$1(vars$12.textColor),
4052
+ [vars$11.linkTextDecoration]: 'none',
4053
+ [vars$11.linkHoverTextDecoration]: 'underline',
4051
4054
 
4052
- [vars$10.fontWeightBold]: '900',
4053
- [vars$10.minWidth]: '0.25em',
4054
- [vars$10.minHeight]: '1.35em',
4055
+ [vars$11.fontWeightBold]: '900',
4056
+ [vars$11.minWidth]: '0.25em',
4057
+ [vars$11.minHeight]: '1.35em',
4055
4058
 
4056
- [vars$10.hostDisplay]: 'inline-block',
4059
+ [vars$11.hostDisplay]: 'inline-block',
4057
4060
 
4058
4061
  _empty: {
4059
4062
  _hideWhenEmpty: {
4060
- [vars$10.hostDisplay]: 'none',
4063
+ [vars$11.hostDisplay]: 'none',
4061
4064
  },
4062
4065
  },
4063
4066
  };
@@ -4065,10 +4068,10 @@ const enrichedText = {
4065
4068
  var enrichedText$1 = /*#__PURE__*/Object.freeze({
4066
4069
  __proto__: null,
4067
4070
  default: enrichedText,
4068
- vars: vars$10
4071
+ vars: vars$11
4069
4072
  });
4070
4073
 
4071
- const componentName$1b = getComponentName('combo-box');
4074
+ const componentName$1d = getComponentName('combo-box');
4072
4075
 
4073
4076
  const ComboBoxMixin = (superclass) =>
4074
4077
  class ComboBoxMixinClass extends superclass {
@@ -4453,7 +4456,7 @@ const ComboBoxMixin = (superclass) =>
4453
4456
  };
4454
4457
 
4455
4458
  const {
4456
- host: host$t,
4459
+ host: host$u,
4457
4460
  inputField: inputField$6,
4458
4461
  inputElement: inputElement$3,
4459
4462
  placeholder: placeholder$3,
@@ -4485,10 +4488,10 @@ const {
4485
4488
  const ComboBoxClass = compose(
4486
4489
  createStyleMixin$1({
4487
4490
  mappings: {
4488
- hostWidth: { ...host$t, property: 'width' },
4489
- hostDirection: { ...host$t, property: 'direction' },
4491
+ hostWidth: { ...host$u, property: 'width' },
4492
+ hostDirection: { ...host$u, property: 'direction' },
4490
4493
  // we apply font-size also on the host so we can set its width with em
4491
- fontSize: [{}, host$t],
4494
+ fontSize: [{}, host$u],
4492
4495
  fontFamily: [label$9, placeholder$3, inputField$6, helperText$a, errorMessage$d],
4493
4496
  labelFontSize: { ...label$9, property: 'font-size' },
4494
4497
  labelFontWeight: { ...label$9, property: 'font-weight' },
@@ -4752,12 +4755,12 @@ const ComboBoxClass = compose(
4752
4755
  // and reset items to an empty array, and opening the list box with no items
4753
4756
  // to display.
4754
4757
  excludeAttrsSync: ['tabindex', 'size', 'data', 'loading', 'style'],
4755
- componentName: componentName$1b,
4758
+ componentName: componentName$1d,
4756
4759
  includeForwardProps: ['items', 'renderer', 'selectedItem'],
4757
4760
  }),
4758
4761
  );
4759
4762
 
4760
- const componentName$1a = getComponentName('input-wrapper');
4763
+ const componentName$1c = getComponentName('input-wrapper');
4761
4764
  const globalRefs$D = getThemeRefs$1(globals);
4762
4765
 
4763
4766
  const [theme$2, refs$1] = createHelperVars$1(
@@ -4880,103 +4883,103 @@ const [theme$2, refs$1] = createHelperVars$1(
4880
4883
  backgroundColor: globalRefs$D.colors.surface.main,
4881
4884
  },
4882
4885
  },
4883
- componentName$1a,
4886
+ componentName$1c,
4884
4887
  );
4885
4888
 
4886
4889
  const globalRefs$C = getThemeRefs$1(globals);
4887
- const vars$$ = ComboBoxClass.cssVarList;
4890
+ const vars$10 = ComboBoxClass.cssVarList;
4888
4891
 
4889
4892
  const comboBox = {
4890
- [vars$$.hostWidth]: refs$1.width,
4891
- [vars$$.hostDirection]: refs$1.direction,
4892
- [vars$$.fontSize]: refs$1.fontSize,
4893
- [vars$$.fontFamily]: refs$1.fontFamily,
4894
- [vars$$.labelFontSize]: refs$1.labelFontSize,
4895
- [vars$$.labelFontWeight]: refs$1.labelFontWeight,
4896
- [vars$$.labelTextColor]: refs$1.labelTextColor,
4897
- [vars$$.errorMessageTextColor]: refs$1.errorMessageTextColor,
4898
- [vars$$.inputBorderColor]: refs$1.borderColor,
4899
- [vars$$.inputBorderWidth]: refs$1.borderWidth,
4900
- [vars$$.inputBorderStyle]: refs$1.borderStyle,
4901
- [vars$$.inputBorderRadius]: refs$1.borderRadius,
4902
- [vars$$.inputOutlineColor]: refs$1.outlineColor,
4903
- [vars$$.inputOutlineOffset]: refs$1.outlineOffset,
4904
- [vars$$.inputOutlineWidth]: refs$1.outlineWidth,
4905
- [vars$$.inputOutlineStyle]: refs$1.outlineStyle,
4906
- [vars$$.labelRequiredIndicator]: refs$1.requiredIndicator,
4907
- [vars$$.inputValueTextColor]: refs$1.valueTextColor,
4908
- [vars$$.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
4909
- [vars$$.inputBackgroundColor]: refs$1.backgroundColor,
4910
- [vars$$.inputHorizontalPadding]: refs$1.horizontalPadding,
4911
- [vars$$.inputHeight]: refs$1.inputHeight,
4912
- [vars$$.inputDropdownButtonColor]: globalRefs$C.colors.surface.dark,
4913
- [vars$$.inputDropdownButtonCursor]: 'pointer',
4914
- [vars$$.inputDropdownButtonSize]: refs$1.toggleButtonSize,
4915
- [vars$$.inputDropdownButtonOffset]: globalRefs$C.spacing.xs,
4916
- [vars$$.overlayItemPaddingInlineStart]: globalRefs$C.spacing.xs,
4917
- [vars$$.overlayItemPaddingInlineEnd]: globalRefs$C.spacing.lg,
4918
- [vars$$.labelPosition]: refs$1.labelPosition,
4919
- [vars$$.labelTopPosition]: refs$1.labelTopPosition,
4920
- [vars$$.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
4921
- [vars$$.inputTransformY]: refs$1.inputTransformY,
4922
- [vars$$.inputTransition]: refs$1.inputTransition,
4923
- [vars$$.marginInlineStart]: refs$1.marginInlineStart,
4924
- [vars$$.placeholderOpacity]: refs$1.placeholderOpacity,
4925
- [vars$$.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
4926
- [vars$$.valueInputHeight]: refs$1.valueInputHeight,
4927
- [vars$$.valueInputMarginBottom]: refs$1.valueInputMarginBottom,
4893
+ [vars$10.hostWidth]: refs$1.width,
4894
+ [vars$10.hostDirection]: refs$1.direction,
4895
+ [vars$10.fontSize]: refs$1.fontSize,
4896
+ [vars$10.fontFamily]: refs$1.fontFamily,
4897
+ [vars$10.labelFontSize]: refs$1.labelFontSize,
4898
+ [vars$10.labelFontWeight]: refs$1.labelFontWeight,
4899
+ [vars$10.labelTextColor]: refs$1.labelTextColor,
4900
+ [vars$10.errorMessageTextColor]: refs$1.errorMessageTextColor,
4901
+ [vars$10.inputBorderColor]: refs$1.borderColor,
4902
+ [vars$10.inputBorderWidth]: refs$1.borderWidth,
4903
+ [vars$10.inputBorderStyle]: refs$1.borderStyle,
4904
+ [vars$10.inputBorderRadius]: refs$1.borderRadius,
4905
+ [vars$10.inputOutlineColor]: refs$1.outlineColor,
4906
+ [vars$10.inputOutlineOffset]: refs$1.outlineOffset,
4907
+ [vars$10.inputOutlineWidth]: refs$1.outlineWidth,
4908
+ [vars$10.inputOutlineStyle]: refs$1.outlineStyle,
4909
+ [vars$10.labelRequiredIndicator]: refs$1.requiredIndicator,
4910
+ [vars$10.inputValueTextColor]: refs$1.valueTextColor,
4911
+ [vars$10.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
4912
+ [vars$10.inputBackgroundColor]: refs$1.backgroundColor,
4913
+ [vars$10.inputHorizontalPadding]: refs$1.horizontalPadding,
4914
+ [vars$10.inputHeight]: refs$1.inputHeight,
4915
+ [vars$10.inputDropdownButtonColor]: globalRefs$C.colors.surface.dark,
4916
+ [vars$10.inputDropdownButtonCursor]: 'pointer',
4917
+ [vars$10.inputDropdownButtonSize]: refs$1.toggleButtonSize,
4918
+ [vars$10.inputDropdownButtonOffset]: globalRefs$C.spacing.xs,
4919
+ [vars$10.overlayItemPaddingInlineStart]: globalRefs$C.spacing.xs,
4920
+ [vars$10.overlayItemPaddingInlineEnd]: globalRefs$C.spacing.lg,
4921
+ [vars$10.labelPosition]: refs$1.labelPosition,
4922
+ [vars$10.labelTopPosition]: refs$1.labelTopPosition,
4923
+ [vars$10.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
4924
+ [vars$10.inputTransformY]: refs$1.inputTransformY,
4925
+ [vars$10.inputTransition]: refs$1.inputTransition,
4926
+ [vars$10.marginInlineStart]: refs$1.marginInlineStart,
4927
+ [vars$10.placeholderOpacity]: refs$1.placeholderOpacity,
4928
+ [vars$10.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
4929
+ [vars$10.valueInputHeight]: refs$1.valueInputHeight,
4930
+ [vars$10.valueInputMarginBottom]: refs$1.valueInputMarginBottom,
4928
4931
 
4929
4932
  // error message icon
4930
- [vars$$.errorMessageIcon]: refs$1.errorMessageIcon,
4931
- [vars$$.errorMessageIconSize]: refs$1.errorMessageIconSize,
4932
- [vars$$.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
4933
- [vars$$.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
4934
- [vars$$.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
4935
- [vars$$.errorMessageFontSize]: refs$1.errorMessageFontSize,
4933
+ [vars$10.errorMessageIcon]: refs$1.errorMessageIcon,
4934
+ [vars$10.errorMessageIconSize]: refs$1.errorMessageIconSize,
4935
+ [vars$10.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
4936
+ [vars$10.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
4937
+ [vars$10.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
4938
+ [vars$10.errorMessageFontSize]: refs$1.errorMessageFontSize,
4936
4939
 
4937
4940
  _readonly: {
4938
- [vars$$.inputDropdownButtonCursor]: 'default',
4941
+ [vars$10.inputDropdownButtonCursor]: 'default',
4939
4942
  },
4940
4943
 
4941
4944
  // Overlay theme exposed via the component:
4942
- [vars$$.overlayFontSize]: refs$1.fontSize,
4943
- [vars$$.overlayFontFamily]: refs$1.fontFamily,
4944
- [vars$$.overlayCursor]: 'pointer',
4945
- [vars$$.overlayItemBoxShadow]: 'none',
4946
- [vars$$.overlayBackground]: refs$1.backgroundColor,
4947
- [vars$$.overlayTextColor]: refs$1.valueTextColor,
4948
- [vars$$.overlayCheckmarkDisplay]: 'initial',
4949
- [vars$$.overlaySelectedItemBackground]: 'initial',
4950
- [vars$$.overlaySelectedItemHoverBackground]:
4945
+ [vars$10.overlayFontSize]: refs$1.fontSize,
4946
+ [vars$10.overlayFontFamily]: refs$1.fontFamily,
4947
+ [vars$10.overlayCursor]: 'pointer',
4948
+ [vars$10.overlayItemBoxShadow]: 'none',
4949
+ [vars$10.overlayBackground]: refs$1.backgroundColor,
4950
+ [vars$10.overlayTextColor]: refs$1.valueTextColor,
4951
+ [vars$10.overlayCheckmarkDisplay]: 'initial',
4952
+ [vars$10.overlaySelectedItemBackground]: 'initial',
4953
+ [vars$10.overlaySelectedItemHoverBackground]:
4951
4954
  globalRefs$C.colors.primary.highlight,
4952
- [vars$$.overlaySelectedItemFocusBackground]:
4955
+ [vars$10.overlaySelectedItemFocusBackground]:
4953
4956
  globalRefs$C.colors.primary.highlight,
4954
- [vars$$.overlayItemHoverBackground]: globalRefs$C.colors.primary.highlight,
4955
- [vars$$.overlayItemFocusBackground]: globalRefs$C.colors.primary.highlight,
4957
+ [vars$10.overlayItemHoverBackground]: globalRefs$C.colors.primary.highlight,
4958
+ [vars$10.overlayItemFocusBackground]: globalRefs$C.colors.primary.highlight,
4956
4959
 
4957
4960
  // Overlay direct theme:
4958
- [vars$$.overlay.minHeight]: '400px',
4959
- [vars$$.overlay.margin]: '0',
4961
+ [vars$10.overlay.minHeight]: '400px',
4962
+ [vars$10.overlay.margin]: '0',
4960
4963
 
4961
- [vars$$.overlay.contentHeight]: '100%',
4962
- [vars$$.overlay.contentOpacity]: '1',
4963
- [vars$$.overlay.scrollerMinHeight]: '1px',
4964
+ [vars$10.overlay.contentHeight]: '100%',
4965
+ [vars$10.overlay.contentOpacity]: '1',
4966
+ [vars$10.overlay.scrollerMinHeight]: '1px',
4964
4967
  _loading: {
4965
- [vars$$.overlay.loaderTop]: '50%',
4966
- [vars$$.overlay.loaderLeft]: '50%',
4967
- [vars$$.overlay.loaderRight]: 'auto',
4968
+ [vars$10.overlay.loaderTop]: '50%',
4969
+ [vars$10.overlay.loaderLeft]: '50%',
4970
+ [vars$10.overlay.loaderRight]: 'auto',
4968
4971
  // Margin has to be negative to center the loader, "transform" can't be used because the animation uses it
4969
4972
  // Margin has to be half of the width/height of the loader to center it
4970
- [vars$$.overlay.loaderMargin]: '-15px 0 0 -15px',
4971
- [vars$$.overlay.loaderWidth]: '30px',
4972
- [vars$$.overlay.loaderHeight]: '30px',
4973
- [vars$$.overlay.loaderBorder]: '2px solid transparent',
4974
- [vars$$.overlay.loaderBorderColor]:
4973
+ [vars$10.overlay.loaderMargin]: '-15px 0 0 -15px',
4974
+ [vars$10.overlay.loaderWidth]: '30px',
4975
+ [vars$10.overlay.loaderHeight]: '30px',
4976
+ [vars$10.overlay.loaderBorder]: '2px solid transparent',
4977
+ [vars$10.overlay.loaderBorderColor]:
4975
4978
  `${globalRefs$C.colors.primary.highlight} ${globalRefs$C.colors.primary.highlight} ${globalRefs$C.colors.primary.main} ${globalRefs$C.colors.primary.main}`,
4976
- [vars$$.overlay.loaderBorderRadius]: '50%',
4977
- [vars$$.overlay.contentHeight]: '100px',
4978
- [vars$$.overlay.scrollerMinHeight]: '100px',
4979
- [vars$$.overlay.contentOpacity]: '0',
4979
+ [vars$10.overlay.loaderBorderRadius]: '50%',
4980
+ [vars$10.overlay.contentHeight]: '100px',
4981
+ [vars$10.overlay.scrollerMinHeight]: '100px',
4982
+ [vars$10.overlay.contentOpacity]: '0',
4980
4983
  },
4981
4984
  };
4982
4985
 
@@ -4984,13 +4987,13 @@ var comboBox$1 = /*#__PURE__*/Object.freeze({
4984
4987
  __proto__: null,
4985
4988
  comboBox: comboBox,
4986
4989
  default: comboBox,
4987
- vars: vars$$
4990
+ vars: vars$10
4988
4991
  });
4989
4992
 
4990
- const componentName$19 = getComponentName('badge');
4993
+ const componentName$1b = getComponentName('badge');
4991
4994
 
4992
4995
  class RawBadge extends createBaseClass$1({
4993
- componentName: componentName$19,
4996
+ componentName: componentName$1b,
4994
4997
  baseSelector: ':host > div',
4995
4998
  }) {
4996
4999
  constructor() {
@@ -5055,65 +5058,65 @@ const BadgeClass = compose(
5055
5058
 
5056
5059
  const globalRefs$B = getThemeRefs$1(globals);
5057
5060
 
5058
- const vars$_ = BadgeClass.cssVarList;
5061
+ const vars$$ = BadgeClass.cssVarList;
5059
5062
 
5060
5063
  const badge$2 = {
5061
- [vars$_.hostWidth]: 'fit-content',
5062
- [vars$_.hostDirection]: globalRefs$B.direction,
5064
+ [vars$$.hostWidth]: 'fit-content',
5065
+ [vars$$.hostDirection]: globalRefs$B.direction,
5063
5066
 
5064
- [vars$_.textAlign]: 'center',
5067
+ [vars$$.textAlign]: 'center',
5065
5068
 
5066
- [vars$_.fontFamily]: globalRefs$B.fonts.font1.family,
5067
- [vars$_.fontWeight]: '400',
5069
+ [vars$$.fontFamily]: globalRefs$B.fonts.font1.family,
5070
+ [vars$$.fontWeight]: '400',
5068
5071
 
5069
- [vars$_.verticalPadding]: '0.25em',
5070
- [vars$_.horizontalPadding]: '0.5em',
5072
+ [vars$$.verticalPadding]: '0.25em',
5073
+ [vars$$.horizontalPadding]: '0.5em',
5071
5074
 
5072
- [vars$_.borderWidth]: globalRefs$B.border.xs,
5073
- [vars$_.borderRadius]: globalRefs$B.radius.xs,
5074
- [vars$_.borderColor]: 'transparent',
5075
- [vars$_.borderStyle]: 'solid',
5075
+ [vars$$.borderWidth]: globalRefs$B.border.xs,
5076
+ [vars$$.borderRadius]: globalRefs$B.radius.xs,
5077
+ [vars$$.borderColor]: 'transparent',
5078
+ [vars$$.borderStyle]: 'solid',
5076
5079
 
5077
5080
  _fullWidth: {
5078
- [vars$_.hostWidth]: '100%',
5081
+ [vars$$.hostWidth]: '100%',
5079
5082
  },
5080
5083
 
5081
5084
  size: {
5082
- xs: { [vars$_.fontSize]: '12px' },
5083
- sm: { [vars$_.fontSize]: '14px' },
5084
- md: { [vars$_.fontSize]: '16px' },
5085
- lg: { [vars$_.fontSize]: '18px' },
5085
+ xs: { [vars$$.fontSize]: '12px' },
5086
+ sm: { [vars$$.fontSize]: '14px' },
5087
+ md: { [vars$$.fontSize]: '16px' },
5088
+ lg: { [vars$$.fontSize]: '18px' },
5086
5089
  },
5087
5090
 
5088
5091
  mode: {
5089
5092
  default: {
5090
- [vars$_.textColor]: globalRefs$B.colors.surface.dark,
5093
+ [vars$$.textColor]: globalRefs$B.colors.surface.dark,
5091
5094
  _bordered: {
5092
- [vars$_.borderColor]: globalRefs$B.colors.surface.light,
5095
+ [vars$$.borderColor]: globalRefs$B.colors.surface.light,
5093
5096
  },
5094
5097
  },
5095
5098
  primary: {
5096
- [vars$_.textColor]: globalRefs$B.colors.primary.main,
5099
+ [vars$$.textColor]: globalRefs$B.colors.primary.main,
5097
5100
  _bordered: {
5098
- [vars$_.borderColor]: globalRefs$B.colors.primary.light,
5101
+ [vars$$.borderColor]: globalRefs$B.colors.primary.light,
5099
5102
  },
5100
5103
  },
5101
5104
  secondary: {
5102
- [vars$_.textColor]: globalRefs$B.colors.secondary.main,
5105
+ [vars$$.textColor]: globalRefs$B.colors.secondary.main,
5103
5106
  _bordered: {
5104
- [vars$_.borderColor]: globalRefs$B.colors.secondary.light,
5107
+ [vars$$.borderColor]: globalRefs$B.colors.secondary.light,
5105
5108
  },
5106
5109
  },
5107
5110
  error: {
5108
- [vars$_.textColor]: globalRefs$B.colors.error.main,
5111
+ [vars$$.textColor]: globalRefs$B.colors.error.main,
5109
5112
  _bordered: {
5110
- [vars$_.borderColor]: globalRefs$B.colors.error.light,
5113
+ [vars$$.borderColor]: globalRefs$B.colors.error.light,
5111
5114
  },
5112
5115
  },
5113
5116
  success: {
5114
- [vars$_.textColor]: globalRefs$B.colors.success.main,
5117
+ [vars$$.textColor]: globalRefs$B.colors.success.main,
5115
5118
  _bordered: {
5116
- [vars$_.borderColor]: globalRefs$B.colors.success.light,
5119
+ [vars$$.borderColor]: globalRefs$B.colors.success.light,
5117
5120
  },
5118
5121
  },
5119
5122
  },
@@ -5122,12 +5125,12 @@ const badge$2 = {
5122
5125
  var badge$3 = /*#__PURE__*/Object.freeze({
5123
5126
  __proto__: null,
5124
5127
  default: badge$2,
5125
- vars: vars$_
5128
+ vars: vars$$
5126
5129
  });
5127
5130
 
5128
- const componentName$18 = getComponentName('avatar');
5131
+ const componentName$1a = getComponentName('avatar');
5129
5132
  class RawAvatar extends createBaseClass$1({
5130
- componentName: componentName$18,
5133
+ componentName: componentName$1a,
5131
5134
  baseSelector: ':host > .wrapper',
5132
5135
  }) {
5133
5136
  constructor() {
@@ -5205,7 +5208,7 @@ class RawAvatar extends createBaseClass$1({
5205
5208
  }
5206
5209
  }
5207
5210
 
5208
- const { host: host$s, editableBadge, avatar: avatar$2 } = {
5211
+ const { host: host$t, editableBadge, avatar: avatar$2 } = {
5209
5212
  host: { selector: () => ':host' },
5210
5213
  editableBadge: { selector: '> .editableBadge' },
5211
5214
  avatar: { selector: 'vaadin-avatar' },
@@ -5215,12 +5218,12 @@ const AvatarClass = compose(
5215
5218
  createStyleMixin$1({
5216
5219
  mappings: {
5217
5220
  hostWidth: [
5218
- { ...host$s, property: 'width' },
5219
- { ...host$s, property: 'min-width' },
5221
+ { ...host$t, property: 'width' },
5222
+ { ...host$t, property: 'min-width' },
5220
5223
  ],
5221
- hostHeight: { ...host$s, property: 'height' },
5222
- cursor: [avatar$2, host$s],
5223
- hostDirection: { ...host$s, property: 'direction' },
5224
+ hostHeight: { ...host$t, property: 'height' },
5225
+ cursor: [avatar$2, host$t],
5226
+ hostDirection: { ...host$t, property: 'direction' },
5224
5227
  avatarTextColor: { ...avatar$2, property: 'color' },
5225
5228
  avatarBackgroundColor: { ...avatar$2, property: 'background-color' },
5226
5229
  editableIconColor: { ...editableBadge, property: 'color' },
@@ -5278,39 +5281,39 @@ const avatar = {
5278
5281
  },
5279
5282
  };
5280
5283
 
5281
- const vars$Z = {
5284
+ const vars$_ = {
5282
5285
  ...compVars$8,
5283
5286
  };
5284
5287
 
5285
5288
  var avatar$1 = /*#__PURE__*/Object.freeze({
5286
5289
  __proto__: null,
5287
5290
  default: avatar,
5288
- vars: vars$Z
5291
+ vars: vars$_
5289
5292
  });
5290
5293
 
5291
- const vars$Y = IconClass.cssVarList;
5294
+ const vars$Z = IconClass.cssVarList;
5292
5295
 
5293
5296
  const icon$3 = {};
5294
5297
 
5295
5298
  var icon$4 = /*#__PURE__*/Object.freeze({
5296
5299
  __proto__: null,
5297
5300
  default: icon$3,
5298
- vars: vars$Y
5301
+ vars: vars$Z
5299
5302
  });
5300
5303
 
5301
- const vars$X = ImageClass.cssVarList;
5304
+ const vars$Y = ImageClass.cssVarList;
5302
5305
 
5303
5306
  const image = {};
5304
5307
 
5305
5308
  var image$1 = /*#__PURE__*/Object.freeze({
5306
5309
  __proto__: null,
5307
5310
  default: image,
5308
- vars: vars$X
5311
+ vars: vars$Y
5309
5312
  });
5310
5313
 
5311
- const componentName$17 = getComponentName('list-item');
5314
+ const componentName$19 = getComponentName('list-item');
5312
5315
 
5313
- const customMixin$e = (superclass) =>
5316
+ const customMixin$f = (superclass) =>
5314
5317
  class ListItemMixinClass extends superclass {
5315
5318
  constructor() {
5316
5319
  super();
@@ -5363,14 +5366,14 @@ const ListItemClass = compose(
5363
5366
  }),
5364
5367
  draggableMixin$1,
5365
5368
  componentNameValidationMixin$1,
5366
- customMixin$e,
5369
+ customMixin$f,
5367
5370
  activeableMixin,
5368
- )(createBaseClass$1({ componentName: componentName$17, baseSelector: 'slot' }));
5371
+ )(createBaseClass$1({ componentName: componentName$19, baseSelector: 'slot' }));
5369
5372
 
5370
- const componentName$16 = getComponentName('list');
5373
+ const componentName$18 = getComponentName('list');
5371
5374
 
5372
5375
  class RawList extends createBaseClass$1({
5373
- componentName: componentName$16,
5376
+ componentName: componentName$18,
5374
5377
  baseSelector: '.wrapper',
5375
5378
  }) {
5376
5379
  static get observedAttributes() {
@@ -5541,7 +5544,7 @@ const ListClass = compose(
5541
5544
  componentNameValidationMixin$1,
5542
5545
  )(RawList);
5543
5546
 
5544
- const componentName$15 = getComponentName('apps-list');
5547
+ const componentName$17 = getComponentName('apps-list');
5545
5548
 
5546
5549
  const itemRenderer$4 = ({ name, icon, url }, _, ref) => `
5547
5550
  <a ${url ? `href="${url}" title="${url}"` : ''} ${ref.openInSameWindow ? '' : 'target="_blank"'}>
@@ -5561,7 +5564,7 @@ const itemRenderer$4 = ({ name, icon, url }, _, ref) => `
5561
5564
  </a>
5562
5565
  `;
5563
5566
 
5564
- const customMixin$d = (superclass) =>
5567
+ const customMixin$e = (superclass) =>
5565
5568
  class AppsListMixinClass extends superclass {
5566
5569
  // size controls both item logo size and font size
5567
5570
  get size() {
@@ -5659,13 +5662,13 @@ const AppsListClass = compose(
5659
5662
  }),
5660
5663
  draggableMixin$1,
5661
5664
  componentNameValidationMixin$1,
5662
- customMixin$d,
5665
+ customMixin$e,
5663
5666
  )(
5664
5667
  createProxy$1({
5665
5668
  slots: ['empty-state'],
5666
5669
  wrappedEleName: 'descope-list',
5667
5670
  excludeAttrsSync: ['tabindex', 'class', 'empty', 'style'],
5668
- componentName: componentName$15,
5671
+ componentName: componentName$17,
5669
5672
  style: () => `
5670
5673
  :host {
5671
5674
  width: 100%;
@@ -5700,60 +5703,60 @@ const AppsListClass = compose(
5700
5703
  }),
5701
5704
  );
5702
5705
 
5703
- const vars$W = AppsListClass.cssVarList;
5706
+ const vars$X = AppsListClass.cssVarList;
5704
5707
  const globalRefs$z = getThemeRefs$1(globals);
5705
5708
 
5706
5709
  const defaultHeight = '400px';
5707
5710
 
5708
5711
  const appsList = {
5709
- [vars$W.itemsTextAlign]: 'start',
5710
- [vars$W.hostDirection]: globalRefs$z.direction,
5711
- [vars$W.maxHeight]: defaultHeight,
5712
- [vars$W.itemHoverBackgroundColor]: globalRefs$z.colors.surface.highlight,
5712
+ [vars$X.itemsTextAlign]: 'start',
5713
+ [vars$X.hostDirection]: globalRefs$z.direction,
5714
+ [vars$X.maxHeight]: defaultHeight,
5715
+ [vars$X.itemHoverBackgroundColor]: globalRefs$z.colors.surface.highlight,
5713
5716
 
5714
5717
  _empty: {
5715
- [vars$W.minHeight]: defaultHeight,
5718
+ [vars$X.minHeight]: defaultHeight,
5716
5719
  },
5717
5720
 
5718
5721
  size: {
5719
5722
  xs: {
5720
- [vars$W.itemsFontSize]: '14px',
5721
- [vars$W.itemsFontWeight]: 'normal',
5723
+ [vars$X.itemsFontSize]: '14px',
5724
+ [vars$X.itemsFontWeight]: 'normal',
5722
5725
  },
5723
5726
  sm: {
5724
- [vars$W.itemsFontSize]: '14px',
5725
- [vars$W.itemsFontWeight]: 'normal',
5727
+ [vars$X.itemsFontSize]: '14px',
5728
+ [vars$X.itemsFontWeight]: 'normal',
5726
5729
  },
5727
5730
  md: {
5728
- [vars$W.itemsFontSize]: '16px',
5729
- [vars$W.itemsFontWeight]: 'normal',
5731
+ [vars$X.itemsFontSize]: '16px',
5732
+ [vars$X.itemsFontWeight]: 'normal',
5730
5733
  },
5731
5734
  lg: {
5732
- [vars$W.itemsFontSize]: '20px',
5733
- [vars$W.itemsFontWeight]: 'normal',
5735
+ [vars$X.itemsFontSize]: '20px',
5736
+ [vars$X.itemsFontWeight]: 'normal',
5734
5737
  },
5735
5738
  },
5736
5739
 
5737
5740
  itemPadding: {
5738
5741
  xs: {
5739
- [vars$W.itemVerticalPadding]: globalRefs$z.spacing.xs,
5740
- [vars$W.itemHorizontalPadding]: globalRefs$z.spacing.xs,
5742
+ [vars$X.itemVerticalPadding]: globalRefs$z.spacing.xs,
5743
+ [vars$X.itemHorizontalPadding]: globalRefs$z.spacing.xs,
5741
5744
  },
5742
5745
  sm: {
5743
- [vars$W.itemVerticalPadding]: globalRefs$z.spacing.sm,
5744
- [vars$W.itemHorizontalPadding]: globalRefs$z.spacing.sm,
5746
+ [vars$X.itemVerticalPadding]: globalRefs$z.spacing.sm,
5747
+ [vars$X.itemHorizontalPadding]: globalRefs$z.spacing.sm,
5745
5748
  },
5746
5749
  md: {
5747
- [vars$W.itemVerticalPadding]: globalRefs$z.spacing.md,
5748
- [vars$W.itemHorizontalPadding]: globalRefs$z.spacing.md,
5750
+ [vars$X.itemVerticalPadding]: globalRefs$z.spacing.md,
5751
+ [vars$X.itemHorizontalPadding]: globalRefs$z.spacing.md,
5749
5752
  },
5750
5753
  lg: {
5751
- [vars$W.itemVerticalPadding]: globalRefs$z.spacing.lg,
5752
- [vars$W.itemHorizontalPadding]: globalRefs$z.spacing.lg,
5754
+ [vars$X.itemVerticalPadding]: globalRefs$z.spacing.lg,
5755
+ [vars$X.itemHorizontalPadding]: globalRefs$z.spacing.lg,
5753
5756
  },
5754
5757
  xl: {
5755
- [vars$W.itemVerticalPadding]: globalRefs$z.spacing.xl,
5756
- [vars$W.itemHorizontalPadding]: globalRefs$z.spacing.xl,
5758
+ [vars$X.itemVerticalPadding]: globalRefs$z.spacing.xl,
5759
+ [vars$X.itemHorizontalPadding]: globalRefs$z.spacing.xl,
5757
5760
  },
5758
5761
  },
5759
5762
  };
@@ -5761,7 +5764,7 @@ const appsList = {
5761
5764
  var appsList$1 = /*#__PURE__*/Object.freeze({
5762
5765
  __proto__: null,
5763
5766
  default: appsList,
5764
- vars: vars$W
5767
+ vars: vars$X
5765
5768
  });
5766
5769
 
5767
5770
  const globalRefs$y = getThemeRefs$1(globals);
@@ -5770,7 +5773,7 @@ const compVars$7 = ListClass.cssVarList;
5770
5773
 
5771
5774
  const [helperTheme$5, helperRefs$5, helperVars$5] = createHelperVars$1(
5772
5775
  { shadowColor: '#00000020' },
5773
- componentName$16,
5776
+ componentName$18,
5774
5777
  );
5775
5778
 
5776
5779
  const { shadowColor: shadowColor$5 } = helperRefs$5;
@@ -5831,7 +5834,7 @@ const list = {
5831
5834
  },
5832
5835
  };
5833
5836
 
5834
- const vars$V = {
5837
+ const vars$W = {
5835
5838
  ...compVars$7,
5836
5839
  ...helperVars$5,
5837
5840
  };
@@ -5839,62 +5842,62 @@ const vars$V = {
5839
5842
  var list$1 = /*#__PURE__*/Object.freeze({
5840
5843
  __proto__: null,
5841
5844
  default: list,
5842
- vars: vars$V
5845
+ vars: vars$W
5843
5846
  });
5844
5847
 
5845
5848
  const globalRefs$x = getThemeRefs$1(globals);
5846
5849
 
5847
- const vars$U = ListItemClass.cssVarList;
5850
+ const vars$V = ListItemClass.cssVarList;
5848
5851
 
5849
5852
  const listItem = {
5850
- [vars$U.backgroundColor]: globalRefs$x.colors.surface.main,
5851
- [vars$U.verticalPadding]: globalRefs$x.spacing.lg,
5852
- [vars$U.horizontalPadding]: globalRefs$x.spacing.lg,
5853
- [vars$U.gap]: globalRefs$x.spacing.md,
5854
- [vars$U.borderStyle]: 'solid',
5855
- [vars$U.borderWidth]: globalRefs$x.border.xs,
5856
- [vars$U.borderColor]: globalRefs$x.colors.surface.main,
5857
- [vars$U.borderRadius]: globalRefs$x.radius.sm,
5858
- [vars$U.cursor]: 'pointer',
5859
- [vars$U.alignItems]: 'center',
5860
- [vars$U.flexDirection]: 'row',
5861
- [vars$U.transition]: 'border-color 0.2s, background-color 0.2s',
5853
+ [vars$V.backgroundColor]: globalRefs$x.colors.surface.main,
5854
+ [vars$V.verticalPadding]: globalRefs$x.spacing.lg,
5855
+ [vars$V.horizontalPadding]: globalRefs$x.spacing.lg,
5856
+ [vars$V.gap]: globalRefs$x.spacing.md,
5857
+ [vars$V.borderStyle]: 'solid',
5858
+ [vars$V.borderWidth]: globalRefs$x.border.xs,
5859
+ [vars$V.borderColor]: globalRefs$x.colors.surface.main,
5860
+ [vars$V.borderRadius]: globalRefs$x.radius.sm,
5861
+ [vars$V.cursor]: 'pointer',
5862
+ [vars$V.alignItems]: 'center',
5863
+ [vars$V.flexDirection]: 'row',
5864
+ [vars$V.transition]: 'border-color 0.2s, background-color 0.2s',
5862
5865
 
5863
5866
  variant: {
5864
5867
  tile: {
5865
- [vars$U.alignItems]: 'flex-start',
5866
- [vars$U.flexDirection]: 'column',
5867
- [vars$U.borderColor]: globalRefs$x.colors.surface.light,
5868
+ [vars$V.alignItems]: 'flex-start',
5869
+ [vars$V.flexDirection]: 'column',
5870
+ [vars$V.borderColor]: globalRefs$x.colors.surface.light,
5868
5871
  },
5869
5872
  },
5870
5873
 
5871
5874
  _hover: {
5872
- [vars$U.backgroundColor]: globalRefs$x.colors.surface.highlight,
5875
+ [vars$V.backgroundColor]: globalRefs$x.colors.surface.highlight,
5873
5876
  },
5874
5877
 
5875
5878
  _active: {
5876
- [vars$U.backgroundColor]: globalRefs$x.colors.surface.main,
5877
- [vars$U.borderColor]: globalRefs$x.colors.primary.light,
5878
- [vars$U.outline]: `1px solid ${globalRefs$x.colors.primary.light}`,
5879
+ [vars$V.backgroundColor]: globalRefs$x.colors.surface.main,
5880
+ [vars$V.borderColor]: globalRefs$x.colors.primary.light,
5881
+ [vars$V.outline]: `1px solid ${globalRefs$x.colors.primary.light}`,
5879
5882
  },
5880
5883
  };
5881
5884
 
5882
5885
  var listItem$1 = /*#__PURE__*/Object.freeze({
5883
5886
  __proto__: null,
5884
5887
  default: listItem,
5885
- vars: vars$U
5888
+ vars: vars$V
5886
5889
  });
5887
5890
 
5888
- const componentName$14 = getComponentName('autocomplete-field-internal');
5891
+ const componentName$16 = getComponentName('autocomplete-field-internal');
5889
5892
 
5890
5893
  createBaseInputClass$1({
5891
- componentName: componentName$14,
5894
+ componentName: componentName$16,
5892
5895
  baseSelector: '',
5893
5896
  });
5894
5897
 
5895
- const componentName$13 = getComponentName('autocomplete-field');
5898
+ const componentName$15 = getComponentName('autocomplete-field');
5896
5899
 
5897
- const customMixin$c = (superclass) =>
5900
+ const customMixin$d = (superclass) =>
5898
5901
  class AutocompleteFieldMixinClass extends superclass {
5899
5902
  get defaultValue() {
5900
5903
  return this.getAttribute('default-value');
@@ -5913,15 +5916,15 @@ const customMixin$c = (superclass) =>
5913
5916
  const template = document.createElement('template');
5914
5917
 
5915
5918
  template.innerHTML = `
5916
- <${componentName$14}
5919
+ <${componentName$16}
5917
5920
  tabindex="-1"
5918
- ></${componentName$14}>
5921
+ ></${componentName$16}>
5919
5922
  `;
5920
5923
 
5921
5924
  this.baseElement.appendChild(template.content.cloneNode(true));
5922
5925
 
5923
5926
  this.inputElement = this.shadowRoot.querySelector(
5924
- componentName$14,
5927
+ componentName$16,
5925
5928
  );
5926
5929
 
5927
5930
  forwardAttrs(this, this.inputElement, {
@@ -5961,7 +5964,7 @@ const customMixin$c = (superclass) =>
5961
5964
  }
5962
5965
  };
5963
5966
 
5964
- const { host: host$r } = {
5967
+ const { host: host$s } = {
5965
5968
  host: { selector: () => ':host' },
5966
5969
  };
5967
5970
 
@@ -5971,9 +5974,9 @@ const AutocompleteFieldClass = compose(
5971
5974
  }),
5972
5975
  createStyleMixin$1({
5973
5976
  mappings: {
5974
- hostWidth: { ...host$r, property: 'width' },
5975
- hostDirection: { ...host$r, property: 'direction' },
5976
- fontSize: { ...host$r },
5977
+ hostWidth: { ...host$s, property: 'width' },
5978
+ hostDirection: { ...host$s, property: 'direction' },
5979
+ fontSize: { ...host$s },
5977
5980
  checkmarkDisplay: {
5978
5981
  selector: ComboBoxClass.componentName,
5979
5982
  property: ComboBoxClass.cssVarList.overlayCheckmarkDisplay,
@@ -6011,7 +6014,7 @@ const AutocompleteFieldClass = compose(
6011
6014
  proxyParentValidation: true,
6012
6015
  }),
6013
6016
  componentNameValidationMixin$1,
6014
- customMixin$c,
6017
+ customMixin$d,
6015
6018
  )(
6016
6019
  createProxy$1({
6017
6020
  slots: [],
@@ -6040,34 +6043,34 @@ const AutocompleteFieldClass = compose(
6040
6043
  }
6041
6044
  `,
6042
6045
  excludeAttrsSync: ['tabindex', 'error-message', 'label', 'style'],
6043
- componentName: componentName$13,
6046
+ componentName: componentName$15,
6044
6047
  }),
6045
6048
  );
6046
6049
 
6047
- const vars$T = AutocompleteFieldClass.cssVarList;
6050
+ const vars$U = AutocompleteFieldClass.cssVarList;
6048
6051
  const globalRefs$w = getThemeRefs$1(globals);
6049
6052
 
6050
6053
  const autocompleteField = {
6051
- [vars$T.hostWidth]: refs$1.width,
6052
- [vars$T.hostDirection]: refs$1.direction,
6053
- [vars$T.fontSize]: refs$1.fontSize,
6054
- [vars$T.checkmarkDisplay]: 'none',
6055
- [vars$T.itemPaddingInlineStart]: globalRefs$w.spacing.lg,
6056
- [vars$T.itemPaddingInlineEnd]: globalRefs$w.spacing.lg,
6057
- [vars$T.selectedItemBackground]: globalRefs$w.colors.primary.light,
6058
- [vars$T.selectedItemHoverBackground]: globalRefs$w.colors.primary.light,
6059
- [vars$T.selectedItemFocusBackground]: globalRefs$w.colors.primary.light,
6060
- [vars$T.itemHoverBackground]: globalRefs$w.colors.primary.highlight,
6054
+ [vars$U.hostWidth]: refs$1.width,
6055
+ [vars$U.hostDirection]: refs$1.direction,
6056
+ [vars$U.fontSize]: refs$1.fontSize,
6057
+ [vars$U.checkmarkDisplay]: 'none',
6058
+ [vars$U.itemPaddingInlineStart]: globalRefs$w.spacing.lg,
6059
+ [vars$U.itemPaddingInlineEnd]: globalRefs$w.spacing.lg,
6060
+ [vars$U.selectedItemBackground]: globalRefs$w.colors.primary.light,
6061
+ [vars$U.selectedItemHoverBackground]: globalRefs$w.colors.primary.light,
6062
+ [vars$U.selectedItemFocusBackground]: globalRefs$w.colors.primary.light,
6063
+ [vars$U.itemHoverBackground]: globalRefs$w.colors.primary.highlight,
6061
6064
 
6062
6065
  _fullWidth: {
6063
- [vars$T.hostWidth]: '100%',
6066
+ [vars$U.hostWidth]: '100%',
6064
6067
  },
6065
6068
  };
6066
6069
 
6067
6070
  var autocompleteField$1 = /*#__PURE__*/Object.freeze({
6068
6071
  __proto__: null,
6069
6072
  default: autocompleteField,
6070
- vars: vars$T
6073
+ vars: vars$U
6071
6074
  });
6072
6075
 
6073
6076
  const initGoogleMapsLoader = (apiKey) => {
@@ -6294,7 +6297,7 @@ class RadarConnector extends createBaseConnectorClass() {
6294
6297
  }
6295
6298
  }
6296
6299
 
6297
- const componentName$12 = getComponentName('address-field-internal');
6300
+ const componentName$14 = getComponentName('address-field-internal');
6298
6301
 
6299
6302
  const GOOGLE_MAPS_CONNECTOR_TEMPLATE = 'google-maps-places';
6300
6303
  const RADAR_CONNECTOR_TEMPLATE = 'radar';
@@ -6304,16 +6307,16 @@ const CONNECTOR_CLASSES = {
6304
6307
  [RADAR_CONNECTOR_TEMPLATE]: RadarConnector,
6305
6308
  };
6306
6309
 
6307
- const BaseInputClass$4 = createBaseInputClass$1({
6308
- componentName: componentName$12,
6310
+ const BaseInputClass$5 = createBaseInputClass$1({
6311
+ componentName: componentName$14,
6309
6312
  baseSelector: '',
6310
6313
  });
6311
6314
  const initConnectorAttrs = ['public-api-key'];
6312
- const observedAttrs$4 = [...initConnectorAttrs];
6315
+ const observedAttrs$5 = [...initConnectorAttrs];
6313
6316
 
6314
- class RawAddressFieldInternal extends BaseInputClass$4 {
6317
+ class RawAddressFieldInternal extends BaseInputClass$5 {
6315
6318
  static get observedAttributes() {
6316
- return [].concat(BaseInputClass$4.observedAttributes || [], observedAttrs$4);
6319
+ return [].concat(BaseInputClass$5.observedAttributes || [], observedAttrs$5);
6317
6320
  }
6318
6321
 
6319
6322
  get errorMsgValueMissing() {
@@ -6412,9 +6415,9 @@ compose(
6412
6415
  connectorMixin({ connectorClasses: CONNECTOR_CLASSES }),
6413
6416
  )(RawAddressFieldInternal);
6414
6417
 
6415
- const componentName$11 = getComponentName('address-field');
6418
+ const componentName$13 = getComponentName('address-field');
6416
6419
 
6417
- const customMixin$b = (superclass) =>
6420
+ const customMixin$c = (superclass) =>
6418
6421
  class AddressFieldMixinClass extends superclass {
6419
6422
  get defaultValue() {
6420
6423
  return this.getAttribute('default-value');
@@ -6441,15 +6444,15 @@ const customMixin$b = (superclass) =>
6441
6444
  const template = document.createElement('template');
6442
6445
 
6443
6446
  template.innerHTML = `
6444
- <${componentName$12}
6447
+ <${componentName$14}
6445
6448
  tabindex="-1"
6446
- ></${componentName$12}>
6449
+ ></${componentName$14}>
6447
6450
  `;
6448
6451
 
6449
6452
  this.baseElement.appendChild(template.content.cloneNode(true));
6450
6453
 
6451
6454
  this.inputElement = this.shadowRoot.querySelector(
6452
- componentName$12,
6455
+ componentName$14,
6453
6456
  );
6454
6457
 
6455
6458
  forwardAttrs(this, this.inputElement, {
@@ -6490,7 +6493,7 @@ const customMixin$b = (superclass) =>
6490
6493
  }
6491
6494
  };
6492
6495
 
6493
- const { host: host$q } = {
6496
+ const { host: host$r } = {
6494
6497
  host: { selector: () => ':host' },
6495
6498
  };
6496
6499
 
@@ -6500,8 +6503,8 @@ const AddressFieldClass = compose(
6500
6503
  }),
6501
6504
  createStyleMixin$1({
6502
6505
  mappings: {
6503
- hostWidth: { ...host$q, property: 'width' },
6504
- hostDirection: { ...host$q, property: 'direction' },
6506
+ hostWidth: { ...host$r, property: 'width' },
6507
+ hostDirection: { ...host$r, property: 'direction' },
6505
6508
  },
6506
6509
  }),
6507
6510
  draggableMixin$1,
@@ -6511,7 +6514,7 @@ const AddressFieldClass = compose(
6511
6514
  proxyParentValidation: true,
6512
6515
  }),
6513
6516
  componentNameValidationMixin$1,
6514
- customMixin$b,
6517
+ customMixin$c,
6515
6518
  )(
6516
6519
  createProxy$1({
6517
6520
  slots: [],
@@ -6527,7 +6530,7 @@ const AddressFieldClass = compose(
6527
6530
  width: 100%;
6528
6531
  }
6529
6532
 
6530
- ${componentName$12} {
6533
+ ${componentName$14} {
6531
6534
  display: inline-block;
6532
6535
  box-sizing: border-box;
6533
6536
  user-select: none;
@@ -6535,30 +6538,30 @@ const AddressFieldClass = compose(
6535
6538
  max-width: 100%;
6536
6539
  }
6537
6540
 
6538
- ${componentName$12} ::slotted {
6541
+ ${componentName$14} ::slotted {
6539
6542
  padding: 0;
6540
6543
  }
6541
6544
  `,
6542
6545
  excludeAttrsSync: ['tabindex', 'error-message', 'label', 'style'],
6543
- componentName: componentName$11,
6546
+ componentName: componentName$13,
6544
6547
  }),
6545
6548
  );
6546
6549
 
6547
- const vars$S = AddressFieldClass.cssVarList;
6550
+ const vars$T = AddressFieldClass.cssVarList;
6548
6551
 
6549
6552
  const addressField = {
6550
- [vars$S.hostWidth]: refs$1.width,
6551
- [vars$S.hostDirection]: refs$1.direction,
6553
+ [vars$T.hostWidth]: refs$1.width,
6554
+ [vars$T.hostDirection]: refs$1.direction,
6552
6555
 
6553
6556
  _fullWidth: {
6554
- [vars$S.hostWidth]: '100%',
6557
+ [vars$T.hostWidth]: '100%',
6555
6558
  },
6556
6559
  };
6557
6560
 
6558
6561
  var addressField$1 = /*#__PURE__*/Object.freeze({
6559
6562
  __proto__: null,
6560
6563
  default: addressField,
6561
- vars: vars$S
6564
+ vars: vars$T
6562
6565
  });
6563
6566
 
6564
6567
  var clockIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMWVtIiBoZWlnaHQ9IjFlbSIgdmlld0JveD0iMCAwIDEwNCAxMDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01MC4zMzM0IDAuMzMzMjUyQzIyLjgzMzQgMC4zMzMyNTIgMC4zMzMzNzQgMjIuODMzMyAwLjMzMzM3NCA1MC4zMzMzQzAuMzMzMzc0IDc3LjgzMzMgMjIuODMzNCAxMDAuMzMzIDUwLjMzMzQgMTAwLjMzM0M3Ny44MzM0IDEwMC4zMzMgMTAwLjMzMyA3Ny44MzMzIDEwMC4zMzMgNTAuMzMzM0MxMDAuMzMzIDIyLjgzMzMgNzcuODMzNCAwLjMzMzI1MiA1MC4zMzM0IDAuMzMzMjUyWk01MC4zMzM0IDg3LjgzMzNDMjkuNzA4NCA4Ny44MzMzIDEyLjgzMzQgNzAuOTU4MyAxMi44MzM0IDUwLjMzMzNDMTIuODMzNCAyOS43MDgzIDI5LjcwODQgMTIuODMzMyA1MC4zMzM0IDEyLjgzMzNDNzAuOTU4NCAxMi44MzMzIDg3LjgzMzQgMjkuNzA4MyA4Ny44MzM0IDUwLjMzMzNDODcuODMzNCA3MC45NTgzIDcwLjk1ODQgODcuODMzMyA1MC4zMzM0IDg3LjgzMzNaIiBmaWxsPSIjMTgxQTFDIi8+CjxwYXRoIGQ9Ik01MC4zMzI4IDE5LjA4MzNINDQuMDgyOFY1Ni41ODMySDc1LjMzMjhWNTAuMzMzMkg1MC4zMzI4VjE5LjA4MzNaIiBmaWxsPSIjMTgxQTFDIi8+Cjwvc3ZnPgo=";
@@ -6580,12 +6583,12 @@ const formatTime = (ms = 0) => {
6580
6583
  return timeParts.join(':');
6581
6584
  };
6582
6585
 
6583
- const componentName$10 = getComponentName('timer');
6586
+ const componentName$12 = getComponentName('timer');
6584
6587
 
6585
6588
  const observedAttributes$5 = ['seconds', 'hide-icon', 'paused'];
6586
6589
 
6587
6590
  const BaseClass$7 = createBaseClass$1({
6588
- componentName: componentName$10,
6591
+ componentName: componentName$12,
6589
6592
  baseSelector: ':host > .wrapper',
6590
6593
  });
6591
6594
 
@@ -6738,7 +6741,7 @@ class RawTimer extends BaseClass$7 {
6738
6741
  }
6739
6742
  }
6740
6743
 
6741
- const { host: host$p, icon: icon$2, timer: timer$2 } = {
6744
+ const { host: host$q, icon: icon$2, timer: timer$2 } = {
6742
6745
  host: { selector: () => ':host' },
6743
6746
  icon: { selector: () => '.icon' },
6744
6747
  timer: { selector: () => '.timer' },
@@ -6759,8 +6762,8 @@ const TimerClass = compose(
6759
6762
  textColor: { ...timer$2, property: 'color' },
6760
6763
  gap: {},
6761
6764
  textAlign: { property: 'justify-content' },
6762
- hostWidth: { ...host$p, property: 'width' },
6763
- hostDirection: { ...host$p, property: 'direction' },
6765
+ hostWidth: { ...host$q, property: 'width' },
6766
+ hostDirection: { ...host$q, property: 'direction' },
6764
6767
  iconColor: { ...icon$2, property: IconClass.cssVarList.fill },
6765
6768
  },
6766
6769
  }),
@@ -6769,44 +6772,44 @@ const TimerClass = compose(
6769
6772
  )(RawTimer);
6770
6773
 
6771
6774
  const globalRefs$v = getThemeRefs$1(globals);
6772
- const vars$R = TimerClass.cssVarList;
6775
+ const vars$S = TimerClass.cssVarList;
6773
6776
 
6774
6777
  const timer = {
6775
- [vars$R.hostDirection]: globalRefs$v.direction,
6776
- [vars$R.gap]: '0.25em',
6777
- [vars$R.fontFamily]: globalRefs$v.fonts.font1.family,
6778
- [vars$R.minHeight]: '1.5em',
6779
- [vars$R.lineHeight]: '1em',
6780
- [vars$R.fontWeight]: globalRefs$v.fonts.font1.fontWeight,
6781
- [vars$R.textColor]: globalRefs$v.colors.surface.contrast,
6782
- [vars$R.iconColor]: globalRefs$v.colors.surface.contrast,
6783
- [vars$R.iconSize]: '1em',
6778
+ [vars$S.hostDirection]: globalRefs$v.direction,
6779
+ [vars$S.gap]: '0.25em',
6780
+ [vars$S.fontFamily]: globalRefs$v.fonts.font1.family,
6781
+ [vars$S.minHeight]: '1.5em',
6782
+ [vars$S.lineHeight]: '1em',
6783
+ [vars$S.fontWeight]: globalRefs$v.fonts.font1.fontWeight,
6784
+ [vars$S.textColor]: globalRefs$v.colors.surface.contrast,
6785
+ [vars$S.iconColor]: globalRefs$v.colors.surface.contrast,
6786
+ [vars$S.iconSize]: '1em',
6784
6787
 
6785
6788
  size: {
6786
- xs: { [vars$R.fontSize]: '12px' },
6787
- sm: { [vars$R.fontSize]: '14px' },
6788
- md: { [vars$R.fontSize]: '16px' },
6789
- lg: { [vars$R.fontSize]: '18px' },
6789
+ xs: { [vars$S.fontSize]: '12px' },
6790
+ sm: { [vars$S.fontSize]: '14px' },
6791
+ md: { [vars$S.fontSize]: '16px' },
6792
+ lg: { [vars$S.fontSize]: '18px' },
6790
6793
  },
6791
6794
 
6792
6795
  textAlign: {
6793
- right: { [vars$R.textAlign]: 'right' },
6794
- left: { [vars$R.textAlign]: 'left' },
6795
- center: { [vars$R.textAlign]: 'center' },
6796
+ right: { [vars$S.textAlign]: 'right' },
6797
+ left: { [vars$S.textAlign]: 'left' },
6798
+ center: { [vars$S.textAlign]: 'center' },
6796
6799
  },
6797
6800
 
6798
6801
  _fullWidth: {
6799
- [vars$R.hostWidth]: '100%',
6802
+ [vars$S.hostWidth]: '100%',
6800
6803
  },
6801
6804
  };
6802
6805
 
6803
6806
  var timer$1 = /*#__PURE__*/Object.freeze({
6804
6807
  __proto__: null,
6805
6808
  default: timer,
6806
- vars: vars$R
6809
+ vars: vars$S
6807
6810
  });
6808
6811
 
6809
- const componentName$$ = getComponentName('timer-button');
6812
+ const componentName$11 = getComponentName('timer-button');
6810
6813
 
6811
6814
  const buttonAttrs = [
6812
6815
  'button-variant',
@@ -6837,7 +6840,7 @@ const mapTimerAttrs = {
6837
6840
  };
6838
6841
 
6839
6842
  const BaseClass$6 = createBaseClass$1({
6840
- componentName: componentName$$,
6843
+ componentName: componentName$11,
6841
6844
  baseSelector: ':host > div',
6842
6845
  });
6843
6846
 
@@ -6929,7 +6932,7 @@ class RawTimerButton extends BaseClass$6 {
6929
6932
  }
6930
6933
  }
6931
6934
 
6932
- const { host: host$o } = {
6935
+ const { host: host$p } = {
6933
6936
  host: { selector: () => ':host' }};
6934
6937
 
6935
6938
  const TimerButtonClass = compose(
@@ -6937,8 +6940,8 @@ const TimerButtonClass = compose(
6937
6940
  mappings: {
6938
6941
  gap: {},
6939
6942
  flexDirection: {},
6940
- hostWidth: { ...host$o, property: 'width' },
6941
- hostDirection: { ...host$o, property: 'direction' },
6943
+ hostWidth: { ...host$p, property: 'width' },
6944
+ hostDirection: { ...host$p, property: 'direction' },
6942
6945
  },
6943
6946
  }),
6944
6947
  draggableMixin$1,
@@ -6946,30 +6949,30 @@ const TimerButtonClass = compose(
6946
6949
  )(RawTimerButton);
6947
6950
 
6948
6951
  const globalRefs$u = getThemeRefs$1(globals);
6949
- const vars$Q = TimerButtonClass.cssVarList;
6952
+ const vars$R = TimerButtonClass.cssVarList;
6950
6953
 
6951
6954
  const timerButton = {
6952
- [vars$Q.gap]: globalRefs$u.spacing.sm,
6953
- [vars$Q.flexDirection]: 'column',
6955
+ [vars$R.gap]: globalRefs$u.spacing.sm,
6956
+ [vars$R.flexDirection]: 'column',
6954
6957
 
6955
6958
  _horizontal: {
6956
- [vars$Q.flexDirection]: 'row',
6959
+ [vars$R.flexDirection]: 'row',
6957
6960
  },
6958
6961
 
6959
6962
  _fullWidth: {
6960
- [vars$Q.hostWidth]: '100%',
6963
+ [vars$R.hostWidth]: '100%',
6961
6964
  },
6962
6965
  };
6963
6966
 
6964
6967
  var timerButton$1 = /*#__PURE__*/Object.freeze({
6965
6968
  __proto__: null,
6966
6969
  default: timerButton,
6967
- vars: vars$Q
6970
+ vars: vars$R
6968
6971
  });
6969
6972
 
6970
- const componentName$_ = getComponentName('password-strength');
6973
+ const componentName$10 = getComponentName('password-strength');
6971
6974
  class RawPasswordStrength extends createBaseClass$1({
6972
- componentName: componentName$_,
6975
+ componentName: componentName$10,
6973
6976
  baseSelector: ':host > .wrapper',
6974
6977
  }) {
6975
6978
  static get observedAttributes() {
@@ -7083,7 +7086,7 @@ class RawPasswordStrength extends createBaseClass$1({
7083
7086
  }
7084
7087
  }
7085
7088
 
7086
- const { host: host$n, bar, filledBar, barsContainer, text: text$1 } = {
7089
+ const { host: host$o, bar, filledBar, barsContainer, text: text$1 } = {
7087
7090
  host: { selector: () => ':host' },
7088
7091
  bar: { selector: ' .bar' },
7089
7092
  barsContainer: { selector: ' .bars-container' },
@@ -7096,11 +7099,11 @@ const PasswordStrengthClass = compose(
7096
7099
  createStyleMixin$1({
7097
7100
  mappings: {
7098
7101
  hostWidth: [
7099
- { ...host$n, property: 'width' },
7100
- { ...host$n, property: 'min-width' },
7102
+ { ...host$o, property: 'width' },
7103
+ { ...host$o, property: 'min-width' },
7101
7104
  ],
7102
- hostDirection: { ...host$n, property: 'direction' },
7103
- hostMinWidth: { ...host$n, property: 'min-width' },
7105
+ hostDirection: { ...host$o, property: 'direction' },
7106
+ hostMinWidth: { ...host$o, property: 'min-width' },
7104
7107
  barHeight: { ...bar, property: 'height' },
7105
7108
  barBorderRadius: { ...bar, property: 'border-radius' },
7106
7109
  emptyBarColor: { ...bar, property: 'background-color' },
@@ -7160,22 +7163,22 @@ const passwordStrength = {
7160
7163
  }
7161
7164
  };
7162
7165
 
7163
- const vars$P = {
7166
+ const vars$Q = {
7164
7167
  ...compVars$6,
7165
7168
  };
7166
7169
 
7167
7170
  var passwordStrength$1 = /*#__PURE__*/Object.freeze({
7168
7171
  __proto__: null,
7169
7172
  default: passwordStrength,
7170
- vars: vars$P
7173
+ vars: vars$Q
7171
7174
  });
7172
7175
 
7173
7176
  var chevronIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xNy4yMTkzIDkuMjcyODNDMTcuNjU4NCA4Ljg3OTEyIDE4LjMzMzQgOC45MTU4NyAxOC43MjcyIDkuMzU0OTJDMTkuMTIwOSA5Ljc5Mzk3IDE5LjA4NDEgMTAuNDY5MSAxOC42NDUxIDEwLjg2MjhDMTguNjQ1MSAxMC44NjI4IDEzLjA0NTcgMTYuMDAyMiAxMi42NCAxNi4zNjZDMTIuMjM0MyAxNi43Mjk4IDExLjc2MDggMTYuNzI5OCAxMS4zNTUyIDE2LjM2Nkw1LjM1NDkyIDEwLjg2MjhDNC45MTU4NyAxMC40NjkxIDQuODc5MTIgOS43OTM5NyA1LjI3MjgzIDkuMzU0OTJDNS42NjY1NSA4LjkxNTg3IDYuMzQxNjQgOC44NzkxMiA2Ljc4MDY5IDkuMjcyODNMMTIgMTQuMTM2OEwxNy4yMTkzIDkuMjcyODNaIi8+Cjwvc3ZnPgo=";
7174
7177
 
7175
- const componentName$Z = getComponentName('collapsible-container');
7178
+ const componentName$$ = getComponentName('collapsible-container');
7176
7179
 
7177
7180
  class RawCollapsibleContainer extends createBaseClass$1({
7178
- componentName: componentName$Z,
7181
+ componentName: componentName$$,
7179
7182
  baseSelector: 'slot',
7180
7183
  }) {
7181
7184
  static get observedAttributes() {
@@ -7410,7 +7413,7 @@ const [helperTheme$4, helperRefs$4, helperVars$4] = createHelperVars$1(
7410
7413
  {
7411
7414
  shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
7412
7415
  },
7413
- componentName$Z
7416
+ componentName$$
7414
7417
  );
7415
7418
 
7416
7419
  const { shadowColor: shadowColor$4 } = helperRefs$4;
@@ -7510,7 +7513,7 @@ const collapsibleContainer = {
7510
7513
  }
7511
7514
  };
7512
7515
 
7513
- const vars$O = {
7516
+ const vars$P = {
7514
7517
  ...compVars$5,
7515
7518
  ...helperVars$4,
7516
7519
  };
@@ -7518,10 +7521,10 @@ const vars$O = {
7518
7521
  var collapsibleContainer$1 = /*#__PURE__*/Object.freeze({
7519
7522
  __proto__: null,
7520
7523
  default: collapsibleContainer,
7521
- vars: vars$O
7524
+ vars: vars$P
7522
7525
  });
7523
7526
 
7524
- const componentName$Y = getComponentName('recovery-codes');
7527
+ const componentName$_ = getComponentName('recovery-codes');
7525
7528
 
7526
7529
  const itemRenderer$3 = ({ value }, _, ref) => {
7527
7530
  return `
@@ -7532,7 +7535,7 @@ const itemRenderer$3 = ({ value }, _, ref) => {
7532
7535
  };
7533
7536
 
7534
7537
  class RawRecoveryCodes extends createBaseClass$1({
7535
- componentName: componentName$Y,
7538
+ componentName: componentName$_,
7536
7539
  baseSelector: ':host > div',
7537
7540
  }) {
7538
7541
  static get observedAttributes() {
@@ -7672,35 +7675,35 @@ const RecoveryCodesClass = compose(
7672
7675
  )(RawRecoveryCodes);
7673
7676
 
7674
7677
  const globalRefs$r = getThemeRefs$1(globals);
7675
- const vars$N = RecoveryCodesClass.cssVarList;
7678
+ const vars$O = RecoveryCodesClass.cssVarList;
7676
7679
  const textVars$5 = TextClass.cssVarList;
7677
7680
 
7678
7681
  const recoveryCodes = {
7679
- [vars$N.hostMinWidth]: '190px',
7680
- [vars$N.hostDirection]: globalRefs$r.direction,
7681
- [vars$N.iconColor]: useVar$1(textVars$5.textColor),
7682
- [vars$N.iconSize]: useVar$1(textVars$5.fontSize),
7683
- [vars$N.iconGap]: '8px',
7684
- [vars$N.bulletGap]: '0.35em',
7682
+ [vars$O.hostMinWidth]: '190px',
7683
+ [vars$O.hostDirection]: globalRefs$r.direction,
7684
+ [vars$O.iconColor]: useVar$1(textVars$5.textColor),
7685
+ [vars$O.iconSize]: useVar$1(textVars$5.fontSize),
7686
+ [vars$O.iconGap]: '8px',
7687
+ [vars$O.bulletGap]: '0.35em',
7685
7688
 
7686
7689
  textAlign: {
7687
- right: { [vars$N.textAlign]: 'flex-end' },
7688
- left: { [vars$N.textAlign]: 'flex-start' },
7689
- center: { [vars$N.textAlign]: 'center' },
7690
+ right: { [vars$O.textAlign]: 'flex-end' },
7691
+ left: { [vars$O.textAlign]: 'flex-start' },
7692
+ center: { [vars$O.textAlign]: 'center' },
7690
7693
  },
7691
7694
 
7692
7695
  _fullWidth: {
7693
- [vars$N.hostWidth]: '100%',
7696
+ [vars$O.hostWidth]: '100%',
7694
7697
  },
7695
7698
  };
7696
7699
 
7697
7700
  var recoveryCodes$1 = /*#__PURE__*/Object.freeze({
7698
7701
  __proto__: null,
7699
7702
  default: recoveryCodes,
7700
- vars: vars$N
7703
+ vars: vars$O
7701
7704
  });
7702
7705
 
7703
- const componentName$X = getComponentName('outbound-apps');
7706
+ const componentName$Z = getComponentName('outbound-apps');
7704
7707
 
7705
7708
  const itemRenderer$2 = (
7706
7709
  { name, description, logo, appId, isConnected },
@@ -7746,7 +7749,7 @@ const itemRenderer$2 = (
7746
7749
  };
7747
7750
 
7748
7751
  const BaseClass$5 = createBaseClass$1({
7749
- componentName: componentName$X,
7752
+ componentName: componentName$Z,
7750
7753
  baseSelector: 'descope-list',
7751
7754
  });
7752
7755
 
@@ -7830,17 +7833,17 @@ class RawOutboundAppsClass extends BaseClass$5 {
7830
7833
  }
7831
7834
  }
7832
7835
 
7833
- const { host: host$m } = {
7836
+ const { host: host$n } = {
7834
7837
  host: { selector: () => ':host' },
7835
7838
  };
7836
7839
 
7837
7840
  const OutboundAppsClass = compose(
7838
7841
  createStyleMixin$1({
7839
7842
  mappings: {
7840
- hostWidth: { ...host$m, property: 'width' },
7843
+ hostWidth: { ...host$n, property: 'width' },
7841
7844
  minHeight: { selector: () => ':host' },
7842
7845
  hostDirection: [
7843
- { ...host$m, property: 'direction' },
7846
+ { ...host$n, property: 'direction' },
7844
7847
  {
7845
7848
  selector: 'descope-list',
7846
7849
  property: 'direction',
@@ -7922,36 +7925,36 @@ const OutboundAppsClass = compose(
7922
7925
  componentNameValidationMixin$1,
7923
7926
  )(RawOutboundAppsClass);
7924
7927
 
7925
- const vars$M = OutboundAppsClass.cssVarList;
7928
+ const vars$N = OutboundAppsClass.cssVarList;
7926
7929
 
7927
7930
  const outboundApps = {
7928
- [vars$M.iconColor]: globals.colors.primary.main,
7929
- [vars$M.errorIconColor]: globals.colors.error.main,
7931
+ [vars$N.iconColor]: globals.colors.primary.main,
7932
+ [vars$N.errorIconColor]: globals.colors.error.main,
7930
7933
 
7931
- [vars$M.appLogoGap]: globals.spacing.md,
7932
- [vars$M.contentGap]: globals.spacing.xs,
7934
+ [vars$N.appLogoGap]: globals.spacing.md,
7935
+ [vars$N.contentGap]: globals.spacing.xs,
7933
7936
 
7934
7937
  // list-item overrides
7935
- [vars$M.itemCursor]: 'default',
7936
- [vars$M.itemOutline]: 'none',
7937
- [vars$M.itemBorderColor]: 'transparent',
7938
+ [vars$N.itemCursor]: 'default',
7939
+ [vars$N.itemOutline]: 'none',
7940
+ [vars$N.itemBorderColor]: 'transparent',
7938
7941
 
7939
- [vars$M.listPadding]: '0',
7940
- [vars$M.listBorderWidth]: '0',
7941
- [vars$M.listBoxShadow]: 'none',
7942
+ [vars$N.listPadding]: '0',
7943
+ [vars$N.listBorderWidth]: '0',
7944
+ [vars$N.listBoxShadow]: 'none',
7942
7945
 
7943
7946
  size: {
7944
7947
  xs: {
7945
- [vars$M.fontSize]: '0.6em',
7948
+ [vars$N.fontSize]: '0.6em',
7946
7949
  },
7947
7950
  sm: {
7948
- [vars$M.fontSize]: '0.8em',
7951
+ [vars$N.fontSize]: '0.8em',
7949
7952
  },
7950
7953
  md: {
7951
- [vars$M.fontSize]: '1em',
7954
+ [vars$N.fontSize]: '1em',
7952
7955
  },
7953
7956
  lg: {
7954
- [vars$M.fontSize]: '1.5em',
7957
+ [vars$N.fontSize]: '1.5em',
7955
7958
  },
7956
7959
  },
7957
7960
  };
@@ -7959,13 +7962,13 @@ const outboundApps = {
7959
7962
  var outboundApps$1 = /*#__PURE__*/Object.freeze({
7960
7963
  __proto__: null,
7961
7964
  default: outboundApps,
7962
- vars: vars$M
7965
+ vars: vars$N
7963
7966
  });
7964
7967
 
7965
- const componentName$W = getComponentName('outbound-app-button');
7968
+ const componentName$Y = getComponentName('outbound-app-button');
7966
7969
 
7967
7970
  class RawOutboundAppButton extends createBaseClass$1({
7968
- componentName: componentName$W,
7971
+ componentName: componentName$Y,
7969
7972
  baseSelector: ':host > descope-button',
7970
7973
  }) {
7971
7974
  static get observedAttributes() {
@@ -8064,12 +8067,12 @@ const outboundAppButton = {
8064
8067
  },
8065
8068
  };
8066
8069
 
8067
- const vars$L = compVars$4;
8070
+ const vars$M = compVars$4;
8068
8071
 
8069
8072
  var outboundAppButton$1 = /*#__PURE__*/Object.freeze({
8070
8073
  __proto__: null,
8071
8074
  default: outboundAppButton,
8072
- vars: vars$L
8075
+ vars: vars$M
8073
8076
  });
8074
8077
 
8075
8078
  var desktopDeviceIconLight = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==";
@@ -8147,7 +8150,7 @@ const getDeviceIcon = (deviceType) => {
8147
8150
  };
8148
8151
  };
8149
8152
 
8150
- const componentName$V = getComponentName('trusted-devices');
8153
+ const componentName$X = getComponentName('trusted-devices');
8151
8154
 
8152
8155
  const itemRenderer$1 = (
8153
8156
  { id, name, lastLoginDate, deviceType, isCurrent },
@@ -8236,7 +8239,7 @@ const itemRenderer$1 = (
8236
8239
  };
8237
8240
 
8238
8241
  const BaseClass$4 = createBaseClass$1({
8239
- componentName: componentName$V,
8242
+ componentName: componentName$X,
8240
8243
  baseSelector: ListClass.componentName,
8241
8244
  });
8242
8245
 
@@ -8385,17 +8388,17 @@ class RawTrustedDevicesClass extends BaseClass$4 {
8385
8388
  }
8386
8389
  }
8387
8390
 
8388
- const { host: host$l } = {
8391
+ const { host: host$m } = {
8389
8392
  host: { selector: () => ':host' },
8390
8393
  };
8391
8394
 
8392
8395
  const TrustedDevicesClass = compose(
8393
8396
  createStyleMixin$1({
8394
8397
  mappings: {
8395
- hostWidth: { ...host$l, property: 'width' },
8396
- hostMinWidth: { ...host$l, property: 'min-width' },
8398
+ hostWidth: { ...host$m, property: 'width' },
8399
+ hostMinWidth: { ...host$m, property: 'min-width' },
8397
8400
  hostDirection: [
8398
- { ...host$l, property: 'direction' },
8401
+ { ...host$m, property: 'direction' },
8399
8402
  {
8400
8403
  selector: () => 'descope-list-item',
8401
8404
  property: 'direction',
@@ -8526,51 +8529,51 @@ const TrustedDevicesClass = compose(
8526
8529
  componentNameValidationMixin$1,
8527
8530
  )(RawTrustedDevicesClass);
8528
8531
 
8529
- const vars$K = TrustedDevicesClass.cssVarList;
8532
+ const vars$L = TrustedDevicesClass.cssVarList;
8530
8533
 
8531
8534
  const TrustedDevices = {
8532
- [vars$K.hostWidth]: 'auto',
8533
- [vars$K.hostWidth]: '300px',
8534
- [vars$K.hostMinWidth]: '300px',
8535
-
8536
- [vars$K.listBackgroundColor]: 'transparent',
8537
- [vars$K.listBorderRadius]: '0',
8538
- [vars$K.listBorderWidth]: '0',
8539
- [vars$K.listPadding]: '0',
8540
- [vars$K.listBoxShadow]: 'none',
8541
- [vars$K.listItemsGap]: globals.spacing.lg,
8542
-
8543
- [vars$K.itemBorderColor]: globals.colors.surface.light,
8544
- [vars$K.itemVerticalPadding]: globals.spacing.lg,
8545
- [vars$K.itemHorizontalPadding]: globals.spacing.lg,
8546
- [vars$K.itemBorderRadius]: globals.radius.xs,
8547
- [vars$K.itemOutline]: 'transparent',
8548
- [vars$K.itemBackgroundColor]: 'transparent',
8549
- [vars$K.itemCursor]: 'default',
8550
- [vars$K.itemContentGap]: globals.spacing.sm,
8551
-
8552
- [vars$K.badgeBorderColor]: globals.colors.surface.light,
8553
- [vars$K.badgeTextColor]: globals.colors.surface.dark,
8554
- [vars$K.badgeBorderRadius]: globals.radius.xs,
8555
- [vars$K.badgeBackgroundColor]: globals.colors.surface.main,
8556
-
8557
- [vars$K.devicePanelGap]: globals.spacing.md,
8558
- [vars$K.deviceIconGap]: globals.spacing.md,
8559
- [vars$K.deviceIconSize]: '24px',
8560
- [vars$K.lastLoginLabelGap]: globals.spacing.xs,
8535
+ [vars$L.hostWidth]: 'auto',
8536
+ [vars$L.hostWidth]: '300px',
8537
+ [vars$L.hostMinWidth]: '300px',
8538
+
8539
+ [vars$L.listBackgroundColor]: 'transparent',
8540
+ [vars$L.listBorderRadius]: '0',
8541
+ [vars$L.listBorderWidth]: '0',
8542
+ [vars$L.listPadding]: '0',
8543
+ [vars$L.listBoxShadow]: 'none',
8544
+ [vars$L.listItemsGap]: globals.spacing.lg,
8545
+
8546
+ [vars$L.itemBorderColor]: globals.colors.surface.light,
8547
+ [vars$L.itemVerticalPadding]: globals.spacing.lg,
8548
+ [vars$L.itemHorizontalPadding]: globals.spacing.lg,
8549
+ [vars$L.itemBorderRadius]: globals.radius.xs,
8550
+ [vars$L.itemOutline]: 'transparent',
8551
+ [vars$L.itemBackgroundColor]: 'transparent',
8552
+ [vars$L.itemCursor]: 'default',
8553
+ [vars$L.itemContentGap]: globals.spacing.sm,
8554
+
8555
+ [vars$L.badgeBorderColor]: globals.colors.surface.light,
8556
+ [vars$L.badgeTextColor]: globals.colors.surface.dark,
8557
+ [vars$L.badgeBorderRadius]: globals.radius.xs,
8558
+ [vars$L.badgeBackgroundColor]: globals.colors.surface.main,
8559
+
8560
+ [vars$L.devicePanelGap]: globals.spacing.md,
8561
+ [vars$L.deviceIconGap]: globals.spacing.md,
8562
+ [vars$L.deviceIconSize]: '24px',
8563
+ [vars$L.lastLoginLabelGap]: globals.spacing.xs,
8561
8564
 
8562
8565
  _fullWidth: {
8563
- [vars$K.hostWidth]: '100%',
8566
+ [vars$L.hostWidth]: '100%',
8564
8567
  },
8565
8568
  };
8566
8569
 
8567
8570
  var trustedDevices = /*#__PURE__*/Object.freeze({
8568
8571
  __proto__: null,
8569
8572
  default: TrustedDevices,
8570
- vars: vars$K
8573
+ vars: vars$L
8571
8574
  });
8572
8575
 
8573
- const componentName$U = getComponentName('tooltip');
8576
+ const componentName$W = getComponentName('tooltip');
8574
8577
 
8575
8578
  const tooltipAttrs = [
8576
8579
  'text',
@@ -8581,7 +8584,7 @@ const tooltipAttrs = [
8581
8584
  ];
8582
8585
 
8583
8586
  const BaseClass$3 = createBaseClass$1({
8584
- componentName: componentName$U,
8587
+ componentName: componentName$W,
8585
8588
  baseSelector: 'vaadin-tooltip',
8586
8589
  });
8587
8590
 
@@ -8814,13 +8817,13 @@ const TooltipClass = compose(
8814
8817
  )(RawTooltip);
8815
8818
 
8816
8819
  const globalRefs$q = getThemeRefs$1(globals);
8817
- const vars$J = TooltipClass.cssVarList;
8820
+ const vars$K = TooltipClass.cssVarList;
8818
8821
 
8819
8822
  const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars$1(
8820
8823
  {
8821
8824
  shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
8822
8825
  },
8823
- componentName$U
8826
+ componentName$W
8824
8827
  );
8825
8828
 
8826
8829
  const { shadowColor: shadowColor$3 } = helperRefs$3;
@@ -8828,36 +8831,36 @@ const defaultShadow = `${globalRefs$q.shadow.wide.sm} ${shadowColor$3}, ${global
8828
8831
 
8829
8832
  const tooltip = {
8830
8833
  ...helperTheme$3,
8831
- [vars$J.fontFamily]: globalRefs$q.fonts.font1.family,
8832
- [vars$J.fontSize]: globals.typography.body2.size,
8833
- [vars$J.fontWeight]: globals.typography.body2.weight,
8834
- [vars$J.textColor]: globalRefs$q.colors.surface.contrast,
8835
- [vars$J.hostDirection]: globalRefs$q.direction,
8836
- [vars$J.backgroundColor]: globalRefs$q.colors.surface.main,
8837
- [vars$J.borderColor]: globalRefs$q.colors.surface.light,
8838
- [vars$J.borderStyle]: 'solid',
8839
- [vars$J.borderWidth]: globalRefs$q.border.xs,
8840
- [vars$J.borderRadius]: globalRefs$q.radius.xs,
8841
- [vars$J.horizontalPadding]: globalRefs$q.spacing.md,
8842
- [vars$J.verticalPadding]: globalRefs$q.spacing.sm,
8843
- [vars$J.boxShadow]: defaultShadow,
8834
+ [vars$K.fontFamily]: globalRefs$q.fonts.font1.family,
8835
+ [vars$K.fontSize]: globals.typography.body2.size,
8836
+ [vars$K.fontWeight]: globals.typography.body2.weight,
8837
+ [vars$K.textColor]: globalRefs$q.colors.surface.contrast,
8838
+ [vars$K.hostDirection]: globalRefs$q.direction,
8839
+ [vars$K.backgroundColor]: globalRefs$q.colors.surface.main,
8840
+ [vars$K.borderColor]: globalRefs$q.colors.surface.light,
8841
+ [vars$K.borderStyle]: 'solid',
8842
+ [vars$K.borderWidth]: globalRefs$q.border.xs,
8843
+ [vars$K.borderRadius]: globalRefs$q.radius.xs,
8844
+ [vars$K.horizontalPadding]: globalRefs$q.spacing.md,
8845
+ [vars$K.verticalPadding]: globalRefs$q.spacing.sm,
8846
+ [vars$K.boxShadow]: defaultShadow,
8844
8847
 
8845
8848
  shadow: {
8846
8849
  sm: {
8847
- [vars$J.boxShadow]: defaultShadow,
8850
+ [vars$K.boxShadow]: defaultShadow,
8848
8851
  },
8849
8852
  md: {
8850
- [vars$J.boxShadow]: `${globalRefs$q.shadow.wide.md} ${shadowColor$3}, ${globalRefs$q.shadow.narrow.md} ${shadowColor$3}`,
8853
+ [vars$K.boxShadow]: `${globalRefs$q.shadow.wide.md} ${shadowColor$3}, ${globalRefs$q.shadow.narrow.md} ${shadowColor$3}`,
8851
8854
  },
8852
8855
  lg: {
8853
- [vars$J.boxShadow]: `${globalRefs$q.shadow.wide.lg} ${shadowColor$3}, ${globalRefs$q.shadow.narrow.lg} ${shadowColor$3}`,
8856
+ [vars$K.boxShadow]: `${globalRefs$q.shadow.wide.lg} ${shadowColor$3}, ${globalRefs$q.shadow.narrow.lg} ${shadowColor$3}`,
8854
8857
  },
8855
8858
  xl: {
8856
- [vars$J.boxShadow]: `${globalRefs$q.shadow.wide.xl} ${shadowColor$3}, ${globalRefs$q.shadow.narrow.xl} ${shadowColor$3}`,
8859
+ [vars$K.boxShadow]: `${globalRefs$q.shadow.wide.xl} ${shadowColor$3}, ${globalRefs$q.shadow.narrow.xl} ${shadowColor$3}`,
8857
8860
  },
8858
8861
  '2xl': {
8859
8862
  [helperVars$3.shadowColor]: '#00000050', // mimic daisyUI shadow settings
8860
- [vars$J.boxShadow]: `${globalRefs$q.shadow.wide['2xl']} ${shadowColor$3}`,
8863
+ [vars$K.boxShadow]: `${globalRefs$q.shadow.wide['2xl']} ${shadowColor$3}`,
8861
8864
  },
8862
8865
  },
8863
8866
  };
@@ -8865,6 +8868,1032 @@ const tooltip = {
8865
8868
  var tooltip$1 = /*#__PURE__*/Object.freeze({
8866
8869
  __proto__: null,
8867
8870
  default: tooltip,
8871
+ vars: vars$K
8872
+ });
8873
+
8874
+ // Data service for country/subdivision/city data.
8875
+ //
8876
+ // Fetches from the CDN/S3 baseUrl. The URL structure (relative to baseUrl):
8877
+ // <baseUrl>/countries.json
8878
+ // <baseUrl>/countries/{iso2}/subdivisions.json
8879
+ // <baseUrl>/countries/{iso2}/subdivisions/{state_code}/cities.json
8880
+ // <baseUrl>/countries/{iso2}/cities.json (all cities for a country, used when subdivision is hidden)
8881
+ // <parent-of-baseUrl>/labels.json (shared labels/translations, one level up)
8882
+
8883
+ const fetchJson = async (url) => {
8884
+ const response = await fetch(url);
8885
+ if (!response.ok) throw new Error(`[dataService] ${response.status} ${url}`);
8886
+ const json = await response.json();
8887
+ // All files use a { data: [...] } envelope
8888
+ return json.data ?? json;
8889
+ };
8890
+
8891
+ const fetchCountries = async (baseUrl) =>
8892
+ fetchJson(`${baseUrl}/countries.json`);
8893
+
8894
+ const normalizeSubdivisions = (data) =>
8895
+ data.map(({ code, ...rest }) => ({ ...rest, state_code: code }));
8896
+
8897
+ const fetchSubdivisions = async (countryIso2, baseUrl) => {
8898
+ try {
8899
+ const data = await fetchJson(
8900
+ `${baseUrl}/countries/${countryIso2}/subdivisions.json`,
8901
+ );
8902
+ return normalizeSubdivisions(data);
8903
+ } catch {
8904
+ // No subdivisions file means the country has no subdivisions
8905
+ return [];
8906
+ }
8907
+ };
8908
+
8909
+ const fetchCities = async (countryIso2, stateCode, baseUrl) =>
8910
+ fetchJson(
8911
+ `${baseUrl}/countries/${countryIso2}/subdivisions/${stateCode}/cities.json`,
8912
+ );
8913
+
8914
+ // labels.json sits one directory above the language-specific base URL
8915
+ // e.g. baseUrl = ".../address/en" → labels URL = ".../address/labels.json"
8916
+ const fetchLabels = async (baseUrl) => {
8917
+ const labelsUrl = new URL('../labels.json', `${baseUrl}/`).href;
8918
+ return fetchJson(labelsUrl);
8919
+ };
8920
+
8921
+ const fetchCitiesForCountry = async (countryIso2, baseUrl) =>
8922
+ fetchJson(`${baseUrl}/countries/${countryIso2}/cities.json`);
8923
+
8924
+ const componentName$V = getComponentName(
8925
+ 'country-subdivision-city-field-internal',
8926
+ );
8927
+
8928
+ // Sentinel used in #pendingValue to signal that programmatic item selection is in progress.
8929
+ // Prevents cascade-clearing logic in input handlers from firing during programmatic selection.
8930
+ const SELECTING = Symbol('selecting');
8931
+
8932
+ // --- Translation ---
8933
+
8934
+ const resolveTranslation = ({ name, translations = {} }, lang) => {
8935
+ if (!lang) return name;
8936
+ return translations[lang] || translations[lang.split('-')[0]] || name;
8937
+ };
8938
+
8939
+ // --- HTML Escaping ---
8940
+
8941
+ const escapeHtml = (str) => {
8942
+ if (!str) return '';
8943
+ return String(str).replace(/[&<>"']/g, (c) => `&#${c.charCodeAt(0)};`);
8944
+ };
8945
+
8946
+ // --- Item renderers ---
8947
+
8948
+ const countryItem = ({ name, iso2, iso3, translations, lang }) => {
8949
+ const displayName = resolveTranslation({ name, translations }, lang);
8950
+ const searchTerms = [displayName, iso2, iso3];
8951
+ if (displayName !== name) searchTerms.push(name);
8952
+ const escapedIso2 = escapeHtml(iso2);
8953
+ const escapedSearchTerms = escapeHtml(searchTerms.join(' '));
8954
+ const escapedLabel = escapeHtml(displayName);
8955
+ return `<div data-id="${escapedIso2}" data-name="${escapedSearchTerms}" data-label="${escapedLabel}">${escapedLabel}</div>`;
8956
+ };
8957
+
8958
+ const subdivisionItem = ({ name, state_code, translations, lang }) => {
8959
+ const displayName = resolveTranslation({ name, translations }, lang);
8960
+ const searchTerms = [displayName, state_code];
8961
+ if (displayName !== name) searchTerms.push(name);
8962
+ const escapedStateCode = escapeHtml(state_code);
8963
+ const escapedSearchTerms = escapeHtml(searchTerms.join(' '));
8964
+ const escapedLabel = escapeHtml(displayName);
8965
+ return `<div data-id="${escapedStateCode}" data-name="${escapedSearchTerms}" data-label="${escapedLabel}">${escapedLabel}</div>`;
8966
+ };
8967
+
8968
+ const cityItem = ({ name }) => {
8969
+ const escapedId = escapeHtml(name);
8970
+ const escapedName = escapeHtml(name);
8971
+ return `<div data-id="${escapedId}" data-name="${escapedName}">${escapedName}</div>`;
8972
+ };
8973
+
8974
+ const comboBoxHTML = (id) =>
8975
+ `<descope-combo-box id="${id}" item-label-path="data-name" item-value-path="data-id" allow-custom-value="false"></descope-combo-box>`;
8976
+
8977
+ // --- Base class ---
8978
+
8979
+ const BaseInputClass$4 = createBaseInputClass$1({
8980
+ componentName: componentName$V,
8981
+ baseSelector: '',
8982
+ });
8983
+
8984
+ const commonAttrs = ['disabled', 'readonly', 'size', 'bordered'];
8985
+ const labelTypeAttrs = [
8986
+ 'label-type',
8987
+ 'country-label',
8988
+ 'subdivision-label',
8989
+ 'city-label',
8990
+ ];
8991
+ const visibilityAttrs = ['hide-country', 'hide-subdivision', 'hide-city'];
8992
+ const countryConfigAttrs = [
8993
+ 'default-country',
8994
+ 'allowed-countries',
8995
+ 'pinned-countries',
8996
+ ];
8997
+ const placeholderAttrs = [
8998
+ 'country-placeholder',
8999
+ 'subdivision-placeholder',
9000
+ 'city-placeholder',
9001
+ ];
9002
+ const observedAttrs$4 = [
9003
+ ...commonAttrs,
9004
+ ...labelTypeAttrs,
9005
+ ...visibilityAttrs,
9006
+ ...countryConfigAttrs,
9007
+ ...placeholderAttrs,
9008
+ 'required',
9009
+ 'invalid',
9010
+ 'data-source-base-url',
9011
+ 'lang',
9012
+ ];
9013
+
9014
+ class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$4 {
9015
+ static get observedAttributes() {
9016
+ return [].concat(BaseInputClass$4.observedAttributes || [], observedAttrs$4);
9017
+ }
9018
+
9019
+ #countryComboBox;
9020
+ #subdivisionComboBox;
9021
+ #cityComboBox;
9022
+
9023
+ // Whether the subdivision/city field should be shown (data was found for selected country/subdivision)
9024
+ #subdivisionVisible = false;
9025
+ #cityVisible = false;
9026
+
9027
+ // iso2 → country object (populated after countries are loaded)
9028
+ #countriesMap = new Map();
9029
+ #cachedCountries = null;
9030
+ #cachedSubdivisions = null;
9031
+ #labels = null;
9032
+
9033
+ // Value requested programmatically before data has loaded.
9034
+ // Applied incrementally as each cascade layer (countries → subdivisions → cities) loads.
9035
+ #pendingValue = null;
9036
+
9037
+ constructor() {
9038
+ super();
9039
+
9040
+ this.innerHTML = `
9041
+ <div class="wrapper">
9042
+ ${comboBoxHTML('country-combo')}
9043
+ ${comboBoxHTML('subdivision-combo')}
9044
+ ${comboBoxHTML('city-combo')}
9045
+ </div>
9046
+ `;
9047
+
9048
+ this.#countryComboBox = this.querySelector('#country-combo');
9049
+ this.#subdivisionComboBox = this.querySelector('#subdivision-combo');
9050
+ this.#cityComboBox = this.querySelector('#city-combo');
9051
+
9052
+ this.#setupValueTransform();
9053
+ this.#setupAttrForwarding();
9054
+ }
9055
+
9056
+ // --- Attribute getters ---
9057
+
9058
+ get #isHideCountry() {
9059
+ return this.getAttribute('hide-country') === 'true';
9060
+ }
9061
+ get #isHideSubdivision() {
9062
+ return this.getAttribute('hide-subdivision') === 'true';
9063
+ }
9064
+ get #isHideCity() {
9065
+ return this.getAttribute('hide-city') === 'true';
9066
+ }
9067
+ get #isNoDataSource() {
9068
+ return !this.#baseUrl;
9069
+ }
9070
+ get #baseUrl() {
9071
+ return this.getAttribute('data-source-base-url') || undefined;
9072
+ }
9073
+ get #lang() {
9074
+ const lang = this.getAttribute('lang') || undefined;
9075
+ if (!lang) return undefined;
9076
+ try {
9077
+ Intl.getCanonicalLocales(lang);
9078
+ return lang;
9079
+ } catch {
9080
+ return undefined; // invalid BCP47 tag — fall back to English
9081
+ }
9082
+ }
9083
+ get #defaultCountry() {
9084
+ return this.getAttribute('default-country')?.toUpperCase() || undefined;
9085
+ }
9086
+ get #subdivisionLabel() {
9087
+ return this.getAttribute('subdivision-label') || undefined;
9088
+ }
9089
+ get #subdivisionPlaceholder() {
9090
+ return this.getAttribute('subdivision-placeholder') || undefined;
9091
+ }
9092
+
9093
+ get #allowedCountries() {
9094
+ return (this.getAttribute('allowed-countries') || '')
9095
+ .split(',')
9096
+ .map((c) => c.trim().toUpperCase())
9097
+ .filter(Boolean);
9098
+ }
9099
+
9100
+ get #pinnedCountries() {
9101
+ return (this.getAttribute('pinned-countries') || '')
9102
+ .split(',')
9103
+ .map((c) => c.trim().toUpperCase())
9104
+ .filter(Boolean);
9105
+ }
9106
+
9107
+ get #allCombos() {
9108
+ return [
9109
+ this.#countryComboBox,
9110
+ this.#subdivisionComboBox,
9111
+ this.#cityComboBox,
9112
+ ];
9113
+ }
9114
+
9115
+ // --- Value ---
9116
+
9117
+ get value() {
9118
+ const country = this.#isHideCountry
9119
+ ? this.#defaultCountry
9120
+ : this.#countryComboBox.value || undefined;
9121
+
9122
+ const subdivision =
9123
+ !this.#isHideSubdivision && this.#subdivisionVisible
9124
+ ? this.#subdivisionComboBox.value || undefined
9125
+ : undefined;
9126
+
9127
+ const city =
9128
+ !this.#isHideCity && this.#cityVisible
9129
+ ? this.#cityComboBox.value || undefined
9130
+ : undefined;
9131
+
9132
+ return { country, subdivision, city };
9133
+ }
9134
+
9135
+ set value(val) {
9136
+ if (!val) return;
9137
+ let parsed;
9138
+ try {
9139
+ parsed = typeof val === 'string' ? JSON.parse(val) : val;
9140
+ } catch {
9141
+ // Invalid JSON — silently ignore to prevent component crash
9142
+ return;
9143
+ }
9144
+ this.#pendingValue = { ...parsed };
9145
+ if (this.#baseUrl) this.#loadForPendingValue();
9146
+ }
9147
+
9148
+ // --- Lifecycle ---
9149
+
9150
+ init() {
9151
+ this.addEventListener('focus', (e) => {
9152
+ if (e.isTrusted) {
9153
+ const firstInvalidCombo = this.#allCombos.find(
9154
+ (combo) =>
9155
+ !combo.classList.contains(`${componentName$V}-hidden`) &&
9156
+ !combo.checkValidity(),
9157
+ );
9158
+ (firstInvalidCombo || this.#getFirstVisibleCombo())?.focus();
9159
+ }
9160
+ });
9161
+
9162
+ super.init?.();
9163
+
9164
+ this.#refreshState();
9165
+ this.#setupChangeListeners();
9166
+ this.#initData();
9167
+ this.#setCombosItemRenderers();
9168
+ }
9169
+
9170
+ #setCombosItemRenderers() {
9171
+ this.#countryComboBox.renderItem = countryItem;
9172
+ this.#subdivisionComboBox.renderItem = subdivisionItem;
9173
+ this.#cityComboBox.renderItem = cityItem;
9174
+ }
9175
+
9176
+ attributeChangedCallback(attrName, oldValue, newValue) {
9177
+ super.attributeChangedCallback?.(attrName, oldValue, newValue);
9178
+
9179
+ if (oldValue === newValue) return;
9180
+
9181
+ if (attrName === 'required') {
9182
+ this.#updateRequiredOnCombos();
9183
+ } else if (
9184
+ visibilityAttrs.includes(attrName) ||
9185
+ attrName === 'data-source-base-url'
9186
+ ) {
9187
+ this.#refreshState();
9188
+ if (attrName === 'data-source-base-url') this.#initData();
9189
+ } else if (attrName === 'default-country') {
9190
+ const upper = newValue?.toUpperCase();
9191
+ if (upper && upper !== newValue) {
9192
+ this.setAttribute('default-country', upper);
9193
+ return;
9194
+ }
9195
+ if (upper && this.#countriesMap.size) {
9196
+ this.#onCountrySelected(upper); // countries already loaded — trigger immediately
9197
+ } else if (upper && this.#isHideCountry) {
9198
+ // hide-country mode: countries may not have been loaded yet (e.g. no default-country at init).
9199
+ // Kick off loading now; #loadCountries will call #onCountrySelected once done.
9200
+ this.#loadCountries();
9201
+ }
9202
+ } else if (attrName === 'lang') {
9203
+ this.#rerenderOnLangChange();
9204
+ } else if (attrName === 'invalid') {
9205
+ if (newValue === 'true') this.#handleInvalidCombos();
9206
+ } else if (
9207
+ attrName === 'allowed-countries' ||
9208
+ attrName === 'pinned-countries'
9209
+ ) {
9210
+ if (!this.#isHideCountry) {
9211
+ // Re-render from cache if available to avoid a race condition between two simultaneous
9212
+ // fetch calls (one from data-source-base-url, one from the filter attribute change).
9213
+ if (this.#cachedCountries) {
9214
+ this.#renderCountryItems(this.#cachedCountries);
9215
+ } else {
9216
+ this.#loadCountries();
9217
+ }
9218
+ }
9219
+ } else if (attrName === 'country-label') {
9220
+ this.#setOrRemoveAttr(this.#countryComboBox, 'label', newValue);
9221
+ } else if (attrName === 'subdivision-label') {
9222
+ this.#setOrRemoveAttr(this.#subdivisionComboBox, 'label', newValue);
9223
+ } else if (attrName === 'city-label') {
9224
+ this.#setOrRemoveAttr(this.#cityComboBox, 'label', newValue);
9225
+ }
9226
+ }
9227
+
9228
+ // --- Validation ---
9229
+
9230
+ getValidity() {
9231
+ if (!this.isRequired) return {};
9232
+
9233
+ const countryMissing = !this.#isHideCountry && !this.#countryComboBox.value;
9234
+ const subdivisionMissing =
9235
+ !this.#isHideSubdivision &&
9236
+ (this.#isNoDataSource || this.#subdivisionVisible) &&
9237
+ !this.#subdivisionComboBox.value;
9238
+ const cityMissing =
9239
+ !this.#isHideCity &&
9240
+ (this.#isNoDataSource || this.#cityVisible) &&
9241
+ !this.#cityComboBox.value;
9242
+
9243
+ return countryMissing || subdivisionMissing || cityMissing
9244
+ ? { valueMissing: true }
9245
+ : {};
9246
+ }
9247
+
9248
+ // Show validation errors on the specific combos that are missing a value.
9249
+ // Iterate in reverse so reportValidity's focus() lands on the first invalid combo last.
9250
+ #handleInvalidCombos() {
9251
+ for (const combo of [...this.#allCombos].reverse()) {
9252
+ if (combo.classList.contains(`${componentName$V}-hidden`)) continue;
9253
+ if (!combo.checkValidity()) combo.reportValidity();
9254
+ }
9255
+ }
9256
+
9257
+ // --- Setup ---
9258
+
9259
+ #setupValueTransform() {
9260
+ // Display only the item name in the input, while data-name includes ISO codes for search
9261
+ [this.#countryComboBox, this.#subdivisionComboBox].forEach((combo) => {
9262
+
9263
+ combo.customValueTransformFn = (val) => {
9264
+ const item = combo.baseElement?.items?.find(
9265
+ (i) => i['data-name'] === val,
9266
+ );
9267
+ return item?.getAttribute('data-label') ?? val;
9268
+ };
9269
+ });
9270
+ }
9271
+
9272
+ #setupAttrForwarding() {
9273
+ // Forward common attrs and label-type to all combos
9274
+ this.#allCombos.forEach((combo) => {
9275
+ forwardAttrs(this, combo, {
9276
+ includeAttrs: [...commonAttrs, 'label-type'],
9277
+ });
9278
+ });
9279
+
9280
+ // Forward default-country as default-value to let the combo box handle initial selection
9281
+ forwardAttrs(this, this.#countryComboBox, {
9282
+ includeAttrs: ['default-country'],
9283
+ mapAttrs: { 'default-country': 'default-value' },
9284
+ });
9285
+
9286
+ // Forward per-field placeholders
9287
+ [
9288
+ [this.#countryComboBox, 'country-placeholder'],
9289
+ [this.#subdivisionComboBox, 'subdivision-placeholder'],
9290
+ [this.#cityComboBox, 'city-placeholder'],
9291
+ ].forEach(([combo, attr]) => {
9292
+ forwardAttrs(this, combo, {
9293
+ includeAttrs: [attr],
9294
+ mapAttrs: { [attr]: 'placeholder' },
9295
+ });
9296
+ });
9297
+ }
9298
+
9299
+ #setupChangeListeners() {
9300
+ // descope-combo-box dispatches 'input' (not 'change') on selection
9301
+ this.#countryComboBox.addEventListener('input', () =>
9302
+ this.#handleCountryChange(),
9303
+ );
9304
+ this.#subdivisionComboBox.addEventListener('input', () =>
9305
+ this.#handleSubdivisionChange(),
9306
+ );
9307
+ this.#cityComboBox.addEventListener('input', () =>
9308
+ this.#dispatchInputEvent(),
9309
+ );
9310
+
9311
+ this.handleFocusEventsDispatching(this.#allCombos);
9312
+ }
9313
+
9314
+ #initData() {
9315
+ // baseUrl is forwarded by the outer component after this element is connected;
9316
+ // wait for the attributeChangedCallback('data-source-base-url') to re-trigger.
9317
+ if (!this.#baseUrl) return;
9318
+
9319
+ if (this.#pendingValue) {
9320
+ this.#loadForPendingValue();
9321
+ return;
9322
+ }
9323
+
9324
+ if (!this.#isHideCountry || this.#defaultCountry) {
9325
+ // Load countries to populate #countriesMap even when hide-country=true, so that
9326
+ // #onCountrySelected can apply the correct subdivision type label for the default country.
9327
+ this.#loadCountries();
9328
+ }
9329
+ }
9330
+
9331
+ // --- Programmatic value loading (parallel fetch) ---
9332
+
9333
+ async #loadForPendingValue() {
9334
+ const {
9335
+ country: pendingCountry,
9336
+ subdivision: pendingSubdivision,
9337
+ city: pendingCity,
9338
+ } = this.#pendingValue;
9339
+
9340
+ const shouldLoadSubdivisions =
9341
+ !!pendingSubdivision && !this.#isHideSubdivision;
9342
+ const shouldLoadCities = !!pendingCity && !this.#isHideCity;
9343
+
9344
+ const countriesPromise =
9345
+ this.#cachedCountries ?? fetchCountries(this.#baseUrl);
9346
+ const labelsPromise = this.#labels ?? fetchLabels(this.#baseUrl);
9347
+ const subdivisionsPromise =
9348
+ shouldLoadSubdivisions && pendingCountry
9349
+ ? fetchSubdivisions(pendingCountry, this.#baseUrl)
9350
+ : null;
9351
+ const citiesPromise =
9352
+ shouldLoadCities && pendingCountry
9353
+ ? shouldLoadSubdivisions && pendingSubdivision
9354
+ ? fetchCities(pendingCountry, pendingSubdivision, this.#baseUrl)
9355
+ : fetchCitiesForCountry(pendingCountry, this.#baseUrl)
9356
+ : null;
9357
+
9358
+ // Fetch everything in parallel; null entries resolve immediately as null
9359
+ const [countries, labels, subdivisions, cities] = (
9360
+ await Promise.allSettled([
9361
+ countriesPromise,
9362
+ labelsPromise,
9363
+ subdivisionsPromise,
9364
+ citiesPromise,
9365
+ ])
9366
+ ).map((result) => (result.status === 'fulfilled' ? result.value : null));
9367
+
9368
+ // Cancelled by a subsequent set value call or user interaction
9369
+ if (!this.#pendingValue) return;
9370
+
9371
+ if (labels) this.#labels = labels;
9372
+
9373
+ // Collect items to select — do this before rendering so we can batch-select below
9374
+ const toSelect = [];
9375
+
9376
+ if (countries) {
9377
+ if (!this.#cachedCountries) {
9378
+ this.#cachedCountries = countries;
9379
+ this.#renderCountryItems(countries);
9380
+ }
9381
+ if (pendingCountry && !this.#isHideCountry)
9382
+ toSelect.push([this.#countryComboBox, pendingCountry]);
9383
+ }
9384
+
9385
+ const countryObj = pendingCountry
9386
+ ? this.#countriesMap.get(pendingCountry)
9387
+ : null;
9388
+ if (countryObj?.subdivisionType)
9389
+ this.#applySubdivisionType(countryObj.subdivisionType);
9390
+
9391
+ if (subdivisions) {
9392
+ this.#cachedSubdivisions = subdivisions;
9393
+ this.#subdivisionVisible = subdivisions.length > 0;
9394
+ if (subdivisions.length > 0) {
9395
+ this.#subdivisionComboBox.data = subdivisions.map((s) => ({
9396
+ ...s,
9397
+ lang: this.#lang,
9398
+ }));
9399
+ if (pendingSubdivision)
9400
+ toSelect.push([this.#subdivisionComboBox, pendingSubdivision]);
9401
+ }
9402
+ }
9403
+
9404
+ if (cities) {
9405
+ this.#cityVisible = cities.length > 0;
9406
+ if (cities.length > 0) {
9407
+ this.#cityComboBox.data = cities;
9408
+ if (pendingCity) toSelect.push([this.#cityComboBox, pendingCity]);
9409
+ }
9410
+ }
9411
+
9412
+ this.#refreshState();
9413
+
9414
+ // Apply all selections in one batch. #pendingValue is set to SELECTING so that
9415
+ // input events fired by selectedItem= don't trigger cascade-clearing in change handlers.
9416
+ this.#pendingValue = SELECTING;
9417
+ setTimeout(() => {
9418
+ if (this.#pendingValue !== SELECTING) return; // cancelled by a new set value call
9419
+ for (const [combo, id] of toSelect) {
9420
+ const item = combo.items?.find((i) => i['data-id'] === id);
9421
+ if (item) combo.selectedItem = item;
9422
+ }
9423
+ this.#pendingValue = null;
9424
+ });
9425
+ }
9426
+
9427
+ // --- Change handlers ---
9428
+
9429
+ #handleCountryChange() {
9430
+ if (this.#pendingValue === SELECTING) return; // programmatic selection in progress
9431
+ this.#pendingValue = null; // cancel any in-flight fetch
9432
+ this.#resetSubdivision();
9433
+ this.#resetCity();
9434
+ this.#onCountrySelected(this.#countryComboBox.value);
9435
+ this.#dispatchInputEvent();
9436
+ }
9437
+
9438
+ #handleSubdivisionChange() {
9439
+ if (this.#pendingValue === SELECTING) return; // programmatic selection in progress
9440
+ this.#pendingValue = null; // cancel any in-flight fetch
9441
+ const subdivisionCode = this.#subdivisionComboBox.value;
9442
+ this.#resetCity();
9443
+
9444
+ if (!this.#isHideCity && subdivisionCode) {
9445
+ const countryIso2 = this.#countryComboBox.value;
9446
+ if (countryIso2) this.#loadCities(countryIso2, subdivisionCode);
9447
+ }
9448
+ this.#dispatchInputEvent();
9449
+ }
9450
+
9451
+ // --- Country selection ---
9452
+
9453
+ #onCountrySelected(countryIso2) {
9454
+ if (!countryIso2) return;
9455
+
9456
+ const country = this.#countriesMap.get(countryIso2);
9457
+ if (!country) return;
9458
+
9459
+ const { hasSubdivisions, subdivisionType } = country;
9460
+
9461
+ if (!this.#isHideSubdivision && hasSubdivisions) {
9462
+ this.#applySubdivisionType(subdivisionType);
9463
+ this.#loadSubdivisions(countryIso2);
9464
+ } else if (!this.#isHideCity) {
9465
+ this.#loadCities(countryIso2);
9466
+ }
9467
+ }
9468
+
9469
+ // Apply subdivisionType as label/placeholder, but only when not overridden by an explicit attribute.
9470
+ #applySubdivisionType(subdivisionType) {
9471
+ const label = this.#resolveSubdivisionTypeLabel(subdivisionType);
9472
+ if (!this.#subdivisionLabel)
9473
+ this.#setOrRemoveAttr(this.#subdivisionComboBox, 'label', label || null);
9474
+ if (!this.#subdivisionPlaceholder)
9475
+ this.#setOrRemoveAttr(
9476
+ this.#subdivisionComboBox,
9477
+ 'placeholder',
9478
+ label || null,
9479
+ );
9480
+ }
9481
+
9482
+ #resolveSubdivisionTypeLabel(subdivisionType) {
9483
+ const types = this.#labels?.subdivisionTypes;
9484
+ const entry = types?.[subdivisionType] ?? types?._fallback;
9485
+ if (!entry) return subdivisionType;
9486
+ const lang = this.#lang;
9487
+ return (
9488
+ (lang && (entry[lang] || entry[lang.split('-')[0]])) ||
9489
+ entry.en ||
9490
+ subdivisionType
9491
+ );
9492
+ }
9493
+
9494
+ // --- Data loading ---
9495
+
9496
+ async #loadLabels() {
9497
+ try {
9498
+ this.#labels = await fetchLabels(this.#baseUrl);
9499
+ } catch {
9500
+ // Labels are optional; fall back to raw subdivisionType name
9501
+ }
9502
+ }
9503
+
9504
+ async #loadCountries() {
9505
+ if (!this.#baseUrl) return;
9506
+ this.#countryComboBox.setAttribute('loading', 'true');
9507
+ try {
9508
+ const [countries] = await Promise.all([
9509
+ fetchCountries(this.#baseUrl),
9510
+ this.#loadLabels(),
9511
+ ]);
9512
+ this.#cachedCountries = countries;
9513
+ this.#renderCountryItems(countries);
9514
+ // Skip defaultCountry if a programmatic set value is in flight
9515
+ if (!this.#pendingValue && this.#defaultCountry)
9516
+ this.#onCountrySelected(this.#defaultCountry);
9517
+ } catch (e) {
9518
+
9519
+ console.error(`[${componentName$V}] Failed to load countries`, e);
9520
+ } finally {
9521
+ this.#countryComboBox.removeAttribute('loading');
9522
+ }
9523
+ }
9524
+
9525
+ async #loadSubdivisions(countryIso2) {
9526
+ this.#setVisible(this.#subdivisionComboBox, true);
9527
+ this.#subdivisionComboBox.setAttribute('loading', 'true');
9528
+ try {
9529
+ const subdivisions = await fetchSubdivisions(countryIso2, this.#baseUrl);
9530
+ this.#cachedSubdivisions = subdivisions;
9531
+ this.#subdivisionVisible = subdivisions.length > 0;
9532
+ this.#refreshState();
9533
+
9534
+ if (subdivisions.length > 0) {
9535
+ this.#subdivisionComboBox.data = subdivisions.map((s) => ({
9536
+ ...s,
9537
+ lang: this.#lang,
9538
+ }));
9539
+ } else if (!this.#isHideCity) {
9540
+ this.#loadCities(countryIso2);
9541
+ }
9542
+ } catch (e) {
9543
+
9544
+ console.error(
9545
+ `[${componentName$V}] Failed to load subdivisions for ${countryIso2}`,
9546
+ e,
9547
+ );
9548
+ this.#subdivisionVisible = false;
9549
+ this.#applyVisibility();
9550
+ } finally {
9551
+ this.#subdivisionComboBox.removeAttribute('loading');
9552
+ }
9553
+ }
9554
+
9555
+ // stateCode is optional: when omitted, loads all cities for the country
9556
+ async #loadCities(countryIso2, stateCode) {
9557
+ this.#cityComboBox.setAttribute('loading', 'true');
9558
+ try {
9559
+ const cities = await (stateCode
9560
+ ? fetchCities(countryIso2, stateCode, this.#baseUrl)
9561
+ : fetchCitiesForCountry(countryIso2, this.#baseUrl));
9562
+ this.#cityVisible = cities.length > 0;
9563
+ this.#refreshState();
9564
+ if (cities.length > 0) {
9565
+ this.#cityComboBox.data = cities;
9566
+ }
9567
+ } catch (e) {
9568
+
9569
+ console.error(
9570
+ `[${componentName$V}] Failed to load cities for ${countryIso2}${stateCode ? `/${stateCode}` : ''}`,
9571
+ e,
9572
+ );
9573
+ } finally {
9574
+ this.#cityComboBox.removeAttribute('loading');
9575
+ }
9576
+ }
9577
+
9578
+ #rerenderOnLangChange() {
9579
+ if (this.#cachedCountries) {
9580
+ const prevCountry = this.#countryComboBox.value;
9581
+ this.#renderCountryItems(this.#cachedCountries);
9582
+ if (prevCountry) this.#selectItemById(this.#countryComboBox, prevCountry);
9583
+ }
9584
+ if (this.#cachedSubdivisions && this.#subdivisionVisible) {
9585
+ const prevSubdivision = this.#subdivisionComboBox.value;
9586
+ this.#subdivisionComboBox.data = this.#cachedSubdivisions.map((s) => ({
9587
+ ...s,
9588
+ lang: this.#lang,
9589
+ }));
9590
+ if (prevSubdivision)
9591
+ this.#selectItemById(this.#subdivisionComboBox, prevSubdivision);
9592
+ }
9593
+ // Re-apply translated subdivision type label for the new lang
9594
+ const currentIso2 = this.#countryComboBox.value;
9595
+ if (currentIso2) {
9596
+ const country = this.#countriesMap.get(currentIso2);
9597
+ if (country?.subdivisionType)
9598
+ this.#applySubdivisionType(country.subdivisionType);
9599
+ }
9600
+ }
9601
+
9602
+ // --- Country item rendering ---
9603
+
9604
+ #renderCountryItems(countries) {
9605
+ const result = this.#applyCountryFilters(countries);
9606
+ this.#countryComboBox.data = result.map((c) => ({
9607
+ ...c,
9608
+ // Include the translated name in the data for search purposes, but not in the label which is rendered by renderItem
9609
+ lang: this.#lang,
9610
+ }));
9611
+ this.#countriesMap = new Map(countries.map((c) => [c.iso2, c]));
9612
+ }
9613
+
9614
+ #applyCountryFilters(countries) {
9615
+ const allowed = this.#allowedCountries;
9616
+ const pinned = this.#pinnedCountries;
9617
+
9618
+ let filtered = allowed.length
9619
+ ? countries.filter((c) => allowed.includes(c.iso2))
9620
+ : [...countries];
9621
+
9622
+ filtered.sort((a, b) =>
9623
+ resolveTranslation(a, this.#lang).localeCompare(
9624
+ resolveTranslation(b, this.#lang),
9625
+ this.#lang,
9626
+ ),
9627
+ );
9628
+
9629
+ if (!pinned.length) return filtered;
9630
+
9631
+ const pinnedItems = pinned
9632
+ .map((iso2) => filtered.find((c) => c.iso2 === iso2))
9633
+ .filter(Boolean);
9634
+ const rest = filtered.filter((c) => !pinned.includes(c.iso2));
9635
+ return [...pinnedItems, ...rest];
9636
+ }
9637
+
9638
+ // --- Visibility & required ---
9639
+
9640
+ #applyVisibility() {
9641
+ this.#setVisible(this.#countryComboBox, !this.#isHideCountry);
9642
+ this.#setVisible(
9643
+ this.#subdivisionComboBox,
9644
+ !this.#isHideSubdivision &&
9645
+ (this.#isNoDataSource || this.#subdivisionVisible),
9646
+ );
9647
+ this.#setVisible(
9648
+ this.#cityComboBox,
9649
+ !this.#isHideCity && (this.#isNoDataSource || this.#cityVisible),
9650
+ );
9651
+ }
9652
+
9653
+ #setVisible(el, visible) {
9654
+ el?.classList.toggle(`${componentName$V}-hidden`, !visible);
9655
+ }
9656
+
9657
+ #updateRequiredOnCombos() {
9658
+ const required = this.hasAttribute('required') ? 'true' : null;
9659
+ this.#setOrRemoveAttr(
9660
+ this.#countryComboBox,
9661
+ 'required',
9662
+ !this.#isHideCountry ? required : null,
9663
+ );
9664
+ this.#setOrRemoveAttr(
9665
+ this.#subdivisionComboBox,
9666
+ 'required',
9667
+ !this.#isHideSubdivision &&
9668
+ (this.#isNoDataSource || this.#subdivisionVisible)
9669
+ ? required
9670
+ : null,
9671
+ );
9672
+ this.#setOrRemoveAttr(
9673
+ this.#cityComboBox,
9674
+ 'required',
9675
+ !this.#isHideCity && (this.#isNoDataSource || this.#cityVisible)
9676
+ ? required
9677
+ : null,
9678
+ );
9679
+ }
9680
+
9681
+ #refreshState() {
9682
+ this.#applyVisibility();
9683
+ this.#updateRequiredOnCombos();
9684
+ // Re-evaluate validity so that the form knows when newly-visible required fields become empty.
9685
+ // e.g. subdivision becomes required after a country with states is selected.
9686
+ this.setCustomValidity('');
9687
+ }
9688
+
9689
+ // --- Reset helpers ---
9690
+
9691
+ #resetSubdivision() {
9692
+ this.#subdivisionComboBox.value = '';
9693
+ this.#subdivisionComboBox.data = [];
9694
+ this.#subdivisionVisible = false;
9695
+ // Clear any dynamically set label/placeholder from subdivisionType
9696
+ if (!this.#subdivisionLabel)
9697
+ this.#subdivisionComboBox.removeAttribute('label');
9698
+ if (!this.#subdivisionPlaceholder)
9699
+ this.#subdivisionComboBox.removeAttribute('placeholder');
9700
+ this.#refreshState();
9701
+ }
9702
+
9703
+ #resetCity() {
9704
+ this.#cityComboBox.value = '';
9705
+ this.#cityComboBox.data = [];
9706
+ this.#cityVisible = false;
9707
+ this.#refreshState();
9708
+ }
9709
+
9710
+ // --- Utility helpers ---
9711
+
9712
+ #dispatchInputEvent() {
9713
+ this.dispatchEvent(new Event('input', { bubbles: true, composed: true }));
9714
+ }
9715
+
9716
+ #setOrRemoveAttr(el, attr, value) {
9717
+ if (value) el.setAttribute(attr, value);
9718
+ else el.removeAttribute(attr);
9719
+ }
9720
+
9721
+ #getFirstVisibleCombo() {
9722
+ return this.#allCombos.find(
9723
+ (combo) => !combo.classList.contains(`${componentName$V}-hidden`),
9724
+ );
9725
+ }
9726
+
9727
+ #selectItemById(comboBox, id) {
9728
+ // Defer the lookup so MutationObserver has time to populate comboBox.items
9729
+ setTimeout(() => {
9730
+ const item = comboBox.items?.find((i) => i['data-id'] === id);
9731
+ if (item) comboBox.selectedItem = item;
9732
+ });
9733
+ }
9734
+ }
9735
+
9736
+ compose()(
9737
+ RawCountrySubdivisionCityFieldInternal,
9738
+ );
9739
+
9740
+ const componentName$U = getComponentName('country-subdivision-city-field');
9741
+
9742
+ const customMixin$b = (superclass) =>
9743
+ class CountrySubdivisionCityFieldMixinClass extends superclass {
9744
+ init() {
9745
+ super.init?.();
9746
+
9747
+ const template = document.createElement('template');
9748
+
9749
+ template.innerHTML = `
9750
+ <${componentName$V}
9751
+ tabindex="-1"
9752
+ ></${componentName$V}>
9753
+ `;
9754
+
9755
+ this.baseElement.appendChild(template.content.cloneNode(true));
9756
+
9757
+ this.inputElement = this.shadowRoot.querySelector(
9758
+ componentName$V,
9759
+ );
9760
+
9761
+ forwardAttrs(this, this.inputElement, {
9762
+ includeAttrs: [
9763
+ 'size',
9764
+ 'bordered',
9765
+ 'required',
9766
+ 'label-type',
9767
+ 'disabled',
9768
+ 'readonly',
9769
+ 'hide-country',
9770
+ 'hide-subdivision',
9771
+ 'hide-city',
9772
+ 'default-country',
9773
+ 'allowed-countries',
9774
+ 'pinned-countries',
9775
+ 'country-label',
9776
+ 'subdivision-label',
9777
+ 'city-label',
9778
+ 'country-placeholder',
9779
+ 'subdivision-placeholder',
9780
+ 'city-placeholder',
9781
+ 'data-source-base-url',
9782
+ 'lang',
9783
+ 'invalid',
9784
+ ],
9785
+ });
9786
+
9787
+ // Sync invalid attribute bidirectionally so external validation feedback propagates
9788
+ syncAttrs(this, this.inputElement, { includeAttrs: ['invalid'] });
9789
+ }
9790
+ };
9791
+
9792
+ const host$l = { selector: () => ':host' };
9793
+
9794
+ const internalWrapper$2 = {
9795
+ selector: `${componentName$V} > .wrapper`,
9796
+ };
9797
+
9798
+ const internalComboBoxes = {
9799
+ selector: `${componentName$V} > .wrapper > descope-combo-box`,
9800
+ };
9801
+
9802
+ const CountrySubdivisionCityFieldClass = compose(
9803
+ createStyleMixin$1({
9804
+ componentNameOverride: getComponentName('input-wrapper'),
9805
+ }),
9806
+ createStyleMixin$1({
9807
+ mappings: {
9808
+ hostWidth: { ...host$l, property: 'width' },
9809
+ hostDirection: [
9810
+ { ...host$l, property: 'direction' },
9811
+ {
9812
+ ...internalComboBoxes,
9813
+ property: ComboBoxClass.cssVarList.hostDirection,
9814
+ },
9815
+ ],
9816
+ flexDirection: { ...internalWrapper$2, property: 'flex-direction' },
9817
+ flexGap: { ...internalWrapper$2, property: 'gap' },
9818
+ itemAlignment: { ...internalWrapper$2, property: 'align-items' },
9819
+ itemMinWidth: { ...internalComboBoxes, property: 'min-width' },
9820
+ itemFlexGrow: { ...internalComboBoxes, property: 'flex-grow' },
9821
+ itemWidth: {
9822
+ ...internalComboBoxes,
9823
+ property: ComboBoxClass.cssVarList.hostWidth,
9824
+ },
9825
+ },
9826
+ }),
9827
+ draggableMixin$1,
9828
+ composedProxyInputMixin$1({
9829
+ proxyProps: ['value'],
9830
+ inputEvent: 'input',
9831
+ proxyParentValidation: true,
9832
+ }),
9833
+ componentNameValidationMixin$1,
9834
+ customMixin$b,
9835
+ )(
9836
+ createProxy$1({
9837
+ slots: [],
9838
+ wrappedEleName: 'vaadin-custom-field',
9839
+ style: () => `
9840
+ :host {
9841
+ display: inline-flex;
9842
+ max-width: 100%;
9843
+ }
9844
+ vaadin-custom-field {
9845
+ line-height: unset;
9846
+ width: 100%;
9847
+ }
9848
+
9849
+ ${componentName$V} {
9850
+ display: inline-block;
9851
+ box-sizing: border-box;
9852
+ user-select: none;
9853
+ width: 100%;
9854
+ max-width: 100%;
9855
+ }
9856
+
9857
+ ${componentName$V} > .wrapper {
9858
+ display: flex;
9859
+ width: 100%;
9860
+ flex-wrap: wrap;
9861
+ }
9862
+
9863
+ .${componentName$V}-hidden {
9864
+ display: none;
9865
+ }
9866
+
9867
+ `,
9868
+ excludeAttrsSync: ['tabindex', 'style', 'error-message'],
9869
+ componentName: componentName$U,
9870
+ }),
9871
+ );
9872
+
9873
+ const vars$J = CountrySubdivisionCityFieldClass.cssVarList;
9874
+
9875
+ const countrySubdivisionCityField = {
9876
+ [vars$J.hostWidth]: refs$1.width,
9877
+ [vars$J.hostDirection]: refs$1.direction,
9878
+ [vars$J.flexDirection]: 'column',
9879
+ [vars$J.flexGap]: '0.5em',
9880
+ [vars$J.itemAlignment]: 'stretch',
9881
+ [vars$J.itemFlexGrow]: '0',
9882
+ [vars$J.itemWidth]: 'auto',
9883
+
9884
+ _fullWidth: {
9885
+ [vars$J.hostWidth]: '100%',
9886
+ },
9887
+
9888
+ _horizontal: {
9889
+ [vars$J.flexDirection]: 'row',
9890
+ [vars$J.itemFlexGrow]: '1',
9891
+ },
9892
+ };
9893
+
9894
+ var countrySubdivisionCityField$1 = /*#__PURE__*/Object.freeze({
9895
+ __proto__: null,
9896
+ default: countrySubdivisionCityField,
8868
9897
  vars: vars$J
8869
9898
  });
8870
9899
 
@@ -23259,7 +24288,7 @@ const alert = {
23259
24288
  [vars$2.horizontalPadding]: '0',
23260
24289
  [vars$2.verticalPadding]: '0',
23261
24290
  [vars$2.gap]: `0.5em`,
23262
- [vars$2.fontSize]: useVar(vars$12.fontSize),
24291
+ [vars$2.fontSize]: useVar(vars$13.fontSize),
23263
24292
 
23264
24293
  mode: {
23265
24294
  error: {
@@ -23540,6 +24569,7 @@ const components = {
23540
24569
  alert: alert$1,
23541
24570
  autocompleteField: autocompleteField$1,
23542
24571
  addressField: addressField$1,
24572
+ countrySubdivisionCityField: countrySubdivisionCityField$1,
23543
24573
  timer: timer$1,
23544
24574
  timerButton: timerButton$1,
23545
24575
  passwordStrength: passwordStrength$1,
@@ -23562,7 +24592,7 @@ const vars = Object.keys(components).reduce(
23562
24592
  );
23563
24593
 
23564
24594
  const defaultTheme = { globals: globals$1, components: theme };
23565
- const themeVars = { globals: vars$14, components: vars };
24595
+ const themeVars = { globals: vars$15, components: vars };
23566
24596
 
23567
24597
  const colors = {
23568
24598
  surface: {
@@ -24079,6 +25109,7 @@ exports.CodeSnippetClass = CodeSnippetClass;
24079
25109
  exports.CollapsibleContainerClass = CollapsibleContainerClass;
24080
25110
  exports.ComboBoxClass = ComboBoxClass;
24081
25111
  exports.ContainerClass = ContainerClass;
25112
+ exports.CountrySubdivisionCityFieldClass = CountrySubdivisionCityFieldClass;
24082
25113
  exports.DateFieldClass = DateFieldClass;
24083
25114
  exports.DividerClass = DividerClass;
24084
25115
  exports.EmailFieldClass = EmailFieldClass;