@maggioli-design-system/mds-input-select 3.5.0 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/cjs/{index-18f29026.js → index-a7de269b.js} +18 -1
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/mds-input-select.cjs.entry.js +17 -5
  4. package/dist/cjs/mds-input-select.cjs.js +2 -2
  5. package/dist/collection/components/mds-input-select/mds-input-select.js +41 -4
  6. package/dist/collection/components/mds-input-select/test/mds-input-select.stories.js +4 -0
  7. package/dist/components/mds-input-select.js +18 -5
  8. package/dist/documentation.json +37 -2
  9. package/dist/esm/{index-60887c04.js → index-fb47df34.js} +18 -1
  10. package/dist/esm/loader.js +3 -3
  11. package/dist/esm/mds-input-select.entry.js +17 -5
  12. package/dist/esm/mds-input-select.js +3 -3
  13. package/dist/esm-es5/index-fb47df34.js +1 -0
  14. package/dist/esm-es5/loader.js +1 -1
  15. package/dist/esm-es5/mds-input-select.entry.js +1 -1
  16. package/dist/esm-es5/mds-input-select.js +1 -1
  17. package/dist/mds-input-select/mds-input-select.esm.js +1 -1
  18. package/dist/mds-input-select/mds-input-select.js +1 -1
  19. package/dist/mds-input-select/p-5c70e69d.js +2 -0
  20. package/dist/mds-input-select/p-7266e108.system.js +2 -0
  21. package/dist/mds-input-select/p-a9fd4a04.entry.js +1 -0
  22. package/dist/mds-input-select/p-bddba7bd.system.js +1 -0
  23. package/dist/mds-input-select/p-db3a570d.system.entry.js +1 -0
  24. package/dist/stats.json +84 -32
  25. package/dist/types/components/mds-input-select/mds-input-select.d.ts +5 -0
  26. package/dist/types/components/mds-input-select/test/mds-input-select.stories.d.ts +6 -0
  27. package/dist/types/components.d.ts +4 -0
  28. package/dist/types/dictionary/icon.d.ts +1 -1
  29. package/documentation.json +42 -2
  30. package/package.json +2 -2
  31. package/readme.md +19 -0
  32. package/src/components/mds-input-select/mds-input-select.tsx +15 -1
  33. package/src/components/mds-input-select/readme.md +19 -0
  34. package/src/components/mds-input-select/test/mds-input-select.stories.tsx +4 -0
  35. package/src/components.d.ts +4 -0
  36. package/src/fixtures/icons.json +473 -0
  37. package/www/build/mds-input-select.esm.js +1 -1
  38. package/www/build/mds-input-select.js +1 -1
  39. package/www/build/p-5c70e69d.js +2 -0
  40. package/www/build/p-7266e108.system.js +2 -0
  41. package/www/build/p-a9fd4a04.entry.js +1 -0
  42. package/www/build/p-bddba7bd.system.js +1 -0
  43. package/www/build/p-db3a570d.system.entry.js +1 -0
  44. package/dist/esm-es5/index-60887c04.js +0 -1
  45. package/dist/mds-input-select/p-0760aca1.system.entry.js +0 -1
  46. package/dist/mds-input-select/p-39d143a4.system.js +0 -1
  47. package/dist/mds-input-select/p-41875927.js +0 -2
  48. package/dist/mds-input-select/p-9758de3c.entry.js +0 -1
  49. package/dist/mds-input-select/p-db5fddbf.system.js +0 -2
  50. package/www/build/p-0760aca1.system.entry.js +0 -1
  51. package/www/build/p-39d143a4.system.js +0 -1
  52. package/www/build/p-41875927.js +0 -2
  53. package/www/build/p-9758de3c.entry.js +0 -1
  54. package/www/build/p-db5fddbf.system.js +0 -2
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'mds-input-select';
24
- const BUILD = /* mds-input-select */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* mds-input-select */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
27
  Stencil Client Platform v4.27.2 | MIT Licensed | https://stenciljs.com
@@ -50,6 +50,9 @@ var registerHost = (hostElement, cmpMeta) => {
50
50
  $cmpMeta$: cmpMeta,
51
51
  $instanceValues$: /* @__PURE__ */ new Map()
52
52
  };
53
+ {
54
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
55
+ }
53
56
  {
54
57
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
55
58
  hostElement["s-p"] = [];
@@ -908,6 +911,9 @@ var postUpdateComponent = (hostRef) => {
908
911
  safeCall(instance, "componentDidUpdate", void 0, elm);
909
912
  endPostUpdate();
910
913
  }
914
+ {
915
+ hostRef.$onInstanceResolve$(elm);
916
+ }
911
917
  {
912
918
  if (hostRef.$onRenderResolve$) {
913
919
  hostRef.$onRenderResolve$();
@@ -1073,6 +1079,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1073
1079
  }
1074
1080
  }
1075
1081
  });
1082
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1083
+ Object.defineProperty(prototype, memberName, {
1084
+ value(...args) {
1085
+ var _a2;
1086
+ const ref = getHostRef(this);
1087
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1088
+ var _a3;
1089
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1090
+ });
1091
+ }
1092
+ });
1076
1093
  }
1077
1094
  });
1078
1095
  if ((flags & 1 /* isElementConstructor */)) {
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-18f29026.js');
5
+ const index = require('./index-a7de269b.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["mds-input-select.cjs",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
11
+ return index.bootstrapLazy([["mds-input-select.cjs",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32],"setValue":[64]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-18f29026.js');
5
+ const index = require('./index-a7de269b.js');
6
6
 
7
7
  const miBaselineKeyboardArrowDown = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6l-6-6l1.41-1.41z"/></svg>`;
8
8
 
@@ -71,7 +71,7 @@ const MdsInputSelect = class {
71
71
  });
72
72
  };
73
73
  this.onSlotChangeHandler = () => {
74
- var _a, _b, _c, _d;
74
+ var _a, _b, _c;
75
75
  const elements = (_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('slot')[0]) === null || _b === void 0 ? void 0 : _b.assignedNodes();
76
76
  const options = (_c = this.selectEl) === null || _c === void 0 ? void 0 : _c.querySelectorAll('option');
77
77
  if (!options) {
@@ -87,22 +87,34 @@ const MdsInputSelect = class {
87
87
  var _a;
88
88
  (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.appendChild(element.cloneNode(true));
89
89
  });
90
+ this.setCurrentValue();
91
+ };
92
+ this.setCurrentValue = () => {
93
+ var _a;
90
94
  if (this.value && this.selectEl) {
91
95
  this.selectEl.querySelectorAll('option').forEach((element) => {
92
96
  element.selected = element.value === this.value;
93
97
  });
94
98
  }
95
99
  else if (!this.placeholder) {
96
- this.value = (_d = this.selectEl) === null || _d === void 0 ? void 0 : _d.querySelectorAll('option')[0].value;
100
+ this.value = (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll('option')[0].value;
97
101
  }
98
102
  };
99
103
  }
104
+ /**
105
+ * Sets the value of the component
106
+ */
107
+ async setValue(value) {
108
+ this.value = value;
109
+ return Promise.resolve();
110
+ }
100
111
  /**
101
112
  * Emits the change event when the component value changes
102
113
  */
103
114
  valueChanged() {
104
115
  var _a, _b, _c;
105
116
  this.changeEvent.emit({ value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString() });
117
+ this.setCurrentValue();
106
118
  this.internals.setFormValue((_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : null);
107
119
  }
108
120
  disabledChanged(newValue) {
@@ -152,8 +164,8 @@ const MdsInputSelect = class {
152
164
  }
153
165
  }
154
166
  render() {
155
- return (index.h(index.Host, { key: '1e31a254cadf3141f66b003aeed3bbcb1912f748' }, index.h("select", { key: '0af51ed5c0daa0a5969d13edc7814e8f482eecea', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, index.h("option", { key: '597095579dc1e50a927d14c111fb8ab82c7ac971', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), index.h("div", { key: '3daf36535e69bf3909b184ea9658b7b7b4850a7d', class: "icon-container" }, index.h("i", { key: 'b98d5e916a2e050af8ed94066dcf51152b90738d', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), index.h("div", { key: '964828e831559130e018cfc62e1fb076e0b2478b', class: "option-container" }, index.h("slot", { key: '394d87e522c0c6fceadcc829d39c9a277b014ae3', onSlotchange: this.onSlotChangeHandler })), index.h("mds-input-tip", { key: '019abf7e5d56dd4eb93864bd7fd0fa28446ba0b5', position: "top", active: this.hasFocus }, this.disabled && index.h("mds-input-tip-item", { key: '8fc9b96596eea2eb99adc0c0e7b580fa9f92a355', expanded: true, variant: "disabled" }), this.required &&
156
- index.h("mds-input-tip-item", { key: '0eec9f0ade26adfba03eb3f3f38af1c1e831af55', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
167
+ return (index.h(index.Host, { key: 'f5b5ffd3983324fef83e63b212135a688e3f8336' }, index.h("select", { key: '67c86ac306d2bfc7ee4ce26ee50b968640eccafc', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, index.h("option", { key: '47b09304e9c28d86d48bcdbb055860e7269bb1c0', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), index.h("div", { key: '64ef4114e36b597a0c45992c6ca9aababf651412', class: "icon-container" }, index.h("i", { key: 'cf45fd24685de10b18a2c0a03ece69d418f33f5a', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), index.h("div", { key: '889234fa40fbce6a6035bab27e291697a4dfd285', class: "option-container" }, index.h("slot", { key: '1af68dbb885ef165c3a6f812f06dce5cd09ddfb3', onSlotchange: this.onSlotChangeHandler })), index.h("mds-input-tip", { key: '3fcb2450452d9b62edeabaece40aad76fdae524e', position: "top", active: this.hasFocus }, this.disabled && index.h("mds-input-tip-item", { key: '33a6063b9509dee5bed86e4f8f5acf04083a0d2d', expanded: true, variant: "disabled" }), this.required &&
168
+ index.h("mds-input-tip-item", { key: '0fb3eb015646a0ef73ca3f829b9d7818478712ec', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
157
169
  }
158
170
  static get formAssociated() { return true; }
159
171
  get host() { return index.getElement(this); }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-18f29026.js');
5
+ const index = require('./index-a7de269b.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["mds-input-select.cjs",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
22
+ return index.bootstrapLazy([["mds-input-select.cjs",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32],"setValue":[64]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -56,7 +56,7 @@ export class MdsInputSelect {
56
56
  });
57
57
  };
58
58
  this.onSlotChangeHandler = () => {
59
- var _a, _b, _c, _d;
59
+ var _a, _b, _c;
60
60
  const elements = (_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('slot')[0]) === null || _b === void 0 ? void 0 : _b.assignedNodes();
61
61
  const options = (_c = this.selectEl) === null || _c === void 0 ? void 0 : _c.querySelectorAll('option');
62
62
  if (!options) {
@@ -72,22 +72,34 @@ export class MdsInputSelect {
72
72
  var _a;
73
73
  (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.appendChild(element.cloneNode(true));
74
74
  });
75
+ this.setCurrentValue();
76
+ };
77
+ this.setCurrentValue = () => {
78
+ var _a;
75
79
  if (this.value && this.selectEl) {
76
80
  this.selectEl.querySelectorAll('option').forEach((element) => {
77
81
  element.selected = element.value === this.value;
78
82
  });
79
83
  }
80
84
  else if (!this.placeholder) {
81
- this.value = (_d = this.selectEl) === null || _d === void 0 ? void 0 : _d.querySelectorAll('option')[0].value;
85
+ this.value = (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll('option')[0].value;
82
86
  }
83
87
  };
84
88
  }
89
+ /**
90
+ * Sets the value of the component
91
+ */
92
+ async setValue(value) {
93
+ this.value = value;
94
+ return Promise.resolve();
95
+ }
85
96
  /**
86
97
  * Emits the change event when the component value changes
87
98
  */
88
99
  valueChanged() {
89
100
  var _a, _b, _c;
90
101
  this.changeEvent.emit({ value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString() });
102
+ this.setCurrentValue();
91
103
  this.internals.setFormValue((_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : null);
92
104
  }
93
105
  disabledChanged(newValue) {
@@ -137,8 +149,8 @@ export class MdsInputSelect {
137
149
  }
138
150
  }
139
151
  render() {
140
- return (h(Host, { key: '1e31a254cadf3141f66b003aeed3bbcb1912f748' }, h("select", { key: '0af51ed5c0daa0a5969d13edc7814e8f482eecea', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, h("option", { key: '597095579dc1e50a927d14c111fb8ab82c7ac971', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), h("div", { key: '3daf36535e69bf3909b184ea9658b7b7b4850a7d', class: "icon-container" }, h("i", { key: 'b98d5e916a2e050af8ed94066dcf51152b90738d', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), h("div", { key: '964828e831559130e018cfc62e1fb076e0b2478b', class: "option-container" }, h("slot", { key: '394d87e522c0c6fceadcc829d39c9a277b014ae3', onSlotchange: this.onSlotChangeHandler })), h("mds-input-tip", { key: '019abf7e5d56dd4eb93864bd7fd0fa28446ba0b5', position: "top", active: this.hasFocus }, this.disabled && h("mds-input-tip-item", { key: '8fc9b96596eea2eb99adc0c0e7b580fa9f92a355', expanded: true, variant: "disabled" }), this.required &&
141
- h("mds-input-tip-item", { key: '0eec9f0ade26adfba03eb3f3f38af1c1e831af55', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
152
+ return (h(Host, { key: 'f5b5ffd3983324fef83e63b212135a688e3f8336' }, h("select", { key: '67c86ac306d2bfc7ee4ce26ee50b968640eccafc', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, h("option", { key: '47b09304e9c28d86d48bcdbb055860e7269bb1c0', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), h("div", { key: '64ef4114e36b597a0c45992c6ca9aababf651412', class: "icon-container" }, h("i", { key: 'cf45fd24685de10b18a2c0a03ece69d418f33f5a', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), h("div", { key: '889234fa40fbce6a6035bab27e291697a4dfd285', class: "option-container" }, h("slot", { key: '1af68dbb885ef165c3a6f812f06dce5cd09ddfb3', onSlotchange: this.onSlotChangeHandler })), h("mds-input-tip", { key: '3fcb2450452d9b62edeabaece40aad76fdae524e', position: "top", active: this.hasFocus }, this.disabled && h("mds-input-tip-item", { key: '33a6063b9509dee5bed86e4f8f5acf04083a0d2d', expanded: true, variant: "disabled" }), this.required &&
153
+ h("mds-input-tip-item", { key: '0fb3eb015646a0ef73ca3f829b9d7818478712ec', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
142
154
  }
143
155
  static get is() { return "mds-input-select"; }
144
156
  static get encapsulation() { return "shadow"; }
@@ -406,6 +418,31 @@ export class MdsInputSelect {
406
418
  }
407
419
  }];
408
420
  }
421
+ static get methods() {
422
+ return {
423
+ "setValue": {
424
+ "complexType": {
425
+ "signature": "(value: string | number | null) => Promise<void>",
426
+ "parameters": [{
427
+ "name": "value",
428
+ "type": "string | number | null",
429
+ "docs": ""
430
+ }],
431
+ "references": {
432
+ "Promise": {
433
+ "location": "global",
434
+ "id": "global::Promise"
435
+ }
436
+ },
437
+ "return": "Promise<void>"
438
+ },
439
+ "docs": {
440
+ "text": "Sets the value of the component",
441
+ "tags": []
442
+ }
443
+ }
444
+ };
445
+ }
409
446
  static get elementRef() { return "host"; }
410
447
  static get watchers() {
411
448
  return [{
@@ -48,6 +48,10 @@ export default {
48
48
  control: { type: 'select' },
49
49
  description: 'Sets the variant of the component',
50
50
  },
51
+ setValue: {
52
+ type: { name: 'function' },
53
+ description: 'Sets the value of the component',
54
+ },
51
55
  },
52
56
  };
53
57
  const Template = args => (h("mds-input-select", Object.assign({}, args), h("option", { value: "1" }, "First contact"), h("option", { value: "2" }, "Second impact"), h("option", { value: "3" }, "The Third Man"), h("option", { value: "4" }, "The Fourth Emendament")));
@@ -63,7 +63,7 @@ const MdsInputSelect$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputSelect e
63
63
  });
64
64
  };
65
65
  this.onSlotChangeHandler = () => {
66
- var _a, _b, _c, _d;
66
+ var _a, _b, _c;
67
67
  const elements = (_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('slot')[0]) === null || _b === void 0 ? void 0 : _b.assignedNodes();
68
68
  const options = (_c = this.selectEl) === null || _c === void 0 ? void 0 : _c.querySelectorAll('option');
69
69
  if (!options) {
@@ -79,22 +79,34 @@ const MdsInputSelect$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputSelect e
79
79
  var _a;
80
80
  (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.appendChild(element.cloneNode(true));
81
81
  });
82
+ this.setCurrentValue();
83
+ };
84
+ this.setCurrentValue = () => {
85
+ var _a;
82
86
  if (this.value && this.selectEl) {
83
87
  this.selectEl.querySelectorAll('option').forEach((element) => {
84
88
  element.selected = element.value === this.value;
85
89
  });
86
90
  }
87
91
  else if (!this.placeholder) {
88
- this.value = (_d = this.selectEl) === null || _d === void 0 ? void 0 : _d.querySelectorAll('option')[0].value;
92
+ this.value = (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll('option')[0].value;
89
93
  }
90
94
  };
91
95
  }
96
+ /**
97
+ * Sets the value of the component
98
+ */
99
+ async setValue(value) {
100
+ this.value = value;
101
+ return Promise.resolve();
102
+ }
92
103
  /**
93
104
  * Emits the change event when the component value changes
94
105
  */
95
106
  valueChanged() {
96
107
  var _a, _b, _c;
97
108
  this.changeEvent.emit({ value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString() });
109
+ this.setCurrentValue();
98
110
  this.internals.setFormValue((_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : null);
99
111
  }
100
112
  disabledChanged(newValue) {
@@ -144,8 +156,8 @@ const MdsInputSelect$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputSelect e
144
156
  }
145
157
  }
146
158
  render() {
147
- return (h(Host, { key: '1e31a254cadf3141f66b003aeed3bbcb1912f748' }, h("select", { key: '0af51ed5c0daa0a5969d13edc7814e8f482eecea', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, h("option", { key: '597095579dc1e50a927d14c111fb8ab82c7ac971', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), h("div", { key: '3daf36535e69bf3909b184ea9658b7b7b4850a7d', class: "icon-container" }, h("i", { key: 'b98d5e916a2e050af8ed94066dcf51152b90738d', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), h("div", { key: '964828e831559130e018cfc62e1fb076e0b2478b', class: "option-container" }, h("slot", { key: '394d87e522c0c6fceadcc829d39c9a277b014ae3', onSlotchange: this.onSlotChangeHandler })), h("mds-input-tip", { key: '019abf7e5d56dd4eb93864bd7fd0fa28446ba0b5', position: "top", active: this.hasFocus }, this.disabled && h("mds-input-tip-item", { key: '8fc9b96596eea2eb99adc0c0e7b580fa9f92a355', expanded: true, variant: "disabled" }), this.required &&
148
- h("mds-input-tip-item", { key: '0eec9f0ade26adfba03eb3f3f38af1c1e831af55', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
159
+ return (h(Host, { key: 'f5b5ffd3983324fef83e63b212135a688e3f8336' }, h("select", { key: '67c86ac306d2bfc7ee4ce26ee50b968640eccafc', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, h("option", { key: '47b09304e9c28d86d48bcdbb055860e7269bb1c0', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), h("div", { key: '64ef4114e36b597a0c45992c6ca9aababf651412', class: "icon-container" }, h("i", { key: 'cf45fd24685de10b18a2c0a03ece69d418f33f5a', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), h("div", { key: '889234fa40fbce6a6035bab27e291697a4dfd285', class: "option-container" }, h("slot", { key: '1af68dbb885ef165c3a6f812f06dce5cd09ddfb3', onSlotchange: this.onSlotChangeHandler })), h("mds-input-tip", { key: '3fcb2450452d9b62edeabaece40aad76fdae524e', position: "top", active: this.hasFocus }, this.disabled && h("mds-input-tip-item", { key: '33a6063b9509dee5bed86e4f8f5acf04083a0d2d', expanded: true, variant: "disabled" }), this.required &&
160
+ h("mds-input-tip-item", { key: '0fb3eb015646a0ef73ca3f829b9d7818478712ec', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
149
161
  }
150
162
  static get formAssociated() { return true; }
151
163
  get host() { return this; }
@@ -167,7 +179,8 @@ const MdsInputSelect$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputSelect e
167
179
  "value": [520],
168
180
  "defaultValue": [520, "default-value"],
169
181
  "variant": [513],
170
- "hasFocus": [32]
182
+ "hasFocus": [32],
183
+ "setValue": [64]
171
184
  }, undefined, {
172
185
  "value": ["valueChanged"],
173
186
  "disabled": ["disabledChanged"],
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-12-03T10:39:23",
2
+ "timestamp": "2026-02-19T19:19:45",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.27.2",
@@ -343,7 +343,42 @@
343
343
  "setter": false
344
344
  }
345
345
  ],
346
- "methods": [],
346
+ "methods": [
347
+ {
348
+ "name": "setValue",
349
+ "returns": {
350
+ "type": "Promise<void>",
351
+ "docs": ""
352
+ },
353
+ "complexType": {
354
+ "signature": "(value: string | number | null) => Promise<void>",
355
+ "parameters": [
356
+ {
357
+ "name": "value",
358
+ "type": "string | number | null",
359
+ "docs": ""
360
+ }
361
+ ],
362
+ "references": {
363
+ "Promise": {
364
+ "location": "global",
365
+ "id": "global::Promise"
366
+ }
367
+ },
368
+ "return": "Promise<void>"
369
+ },
370
+ "signature": "setValue(value: string | number | null) => Promise<void>",
371
+ "parameters": [
372
+ {
373
+ "name": "value",
374
+ "type": "string | number | null",
375
+ "docs": ""
376
+ }
377
+ ],
378
+ "docs": "Sets the value of the component",
379
+ "docsTags": []
380
+ }
381
+ ],
347
382
  "events": [
348
383
  {
349
384
  "event": "mdsInputSelectChange",
@@ -1,5 +1,5 @@
1
1
  const NAMESPACE = 'mds-input-select';
2
- const BUILD = /* mds-input-select */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* mds-input-select */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
5
  Stencil Client Platform v4.27.2 | MIT Licensed | https://stenciljs.com
@@ -28,6 +28,9 @@ var registerHost = (hostElement, cmpMeta) => {
28
28
  $cmpMeta$: cmpMeta,
29
29
  $instanceValues$: /* @__PURE__ */ new Map()
30
30
  };
31
+ {
32
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
33
+ }
31
34
  {
32
35
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
33
36
  hostElement["s-p"] = [];
@@ -886,6 +889,9 @@ var postUpdateComponent = (hostRef) => {
886
889
  safeCall(instance, "componentDidUpdate", void 0, elm);
887
890
  endPostUpdate();
888
891
  }
892
+ {
893
+ hostRef.$onInstanceResolve$(elm);
894
+ }
889
895
  {
890
896
  if (hostRef.$onRenderResolve$) {
891
897
  hostRef.$onRenderResolve$();
@@ -1051,6 +1057,17 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1051
1057
  }
1052
1058
  }
1053
1059
  });
1060
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1061
+ Object.defineProperty(prototype, memberName, {
1062
+ value(...args) {
1063
+ var _a2;
1064
+ const ref = getHostRef(this);
1065
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1066
+ var _a3;
1067
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1068
+ });
1069
+ }
1070
+ });
1054
1071
  }
1055
1072
  });
1056
1073
  if ((flags & 1 /* isElementConstructor */)) {
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-60887c04.js';
2
- export { s as setNonce } from './index-60887c04.js';
1
+ import { b as bootstrapLazy } from './index-fb47df34.js';
2
+ export { s as setNonce } from './index-fb47df34.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["mds-input-select",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
8
+ return bootstrapLazy([["mds-input-select",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32],"setValue":[64]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-60887c04.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-fb47df34.js';
2
2
 
3
3
  const miBaselineKeyboardArrowDown = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6l-6-6l1.41-1.41z"/></svg>`;
4
4
 
@@ -67,7 +67,7 @@ const MdsInputSelect = class {
67
67
  });
68
68
  };
69
69
  this.onSlotChangeHandler = () => {
70
- var _a, _b, _c, _d;
70
+ var _a, _b, _c;
71
71
  const elements = (_b = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('slot')[0]) === null || _b === void 0 ? void 0 : _b.assignedNodes();
72
72
  const options = (_c = this.selectEl) === null || _c === void 0 ? void 0 : _c.querySelectorAll('option');
73
73
  if (!options) {
@@ -83,22 +83,34 @@ const MdsInputSelect = class {
83
83
  var _a;
84
84
  (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.appendChild(element.cloneNode(true));
85
85
  });
86
+ this.setCurrentValue();
87
+ };
88
+ this.setCurrentValue = () => {
89
+ var _a;
86
90
  if (this.value && this.selectEl) {
87
91
  this.selectEl.querySelectorAll('option').forEach((element) => {
88
92
  element.selected = element.value === this.value;
89
93
  });
90
94
  }
91
95
  else if (!this.placeholder) {
92
- this.value = (_d = this.selectEl) === null || _d === void 0 ? void 0 : _d.querySelectorAll('option')[0].value;
96
+ this.value = (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll('option')[0].value;
93
97
  }
94
98
  };
95
99
  }
100
+ /**
101
+ * Sets the value of the component
102
+ */
103
+ async setValue(value) {
104
+ this.value = value;
105
+ return Promise.resolve();
106
+ }
96
107
  /**
97
108
  * Emits the change event when the component value changes
98
109
  */
99
110
  valueChanged() {
100
111
  var _a, _b, _c;
101
112
  this.changeEvent.emit({ value: (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString() });
113
+ this.setCurrentValue();
102
114
  this.internals.setFormValue((_c = (_b = this.value) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : null);
103
115
  }
104
116
  disabledChanged(newValue) {
@@ -148,8 +160,8 @@ const MdsInputSelect = class {
148
160
  }
149
161
  }
150
162
  render() {
151
- return (h(Host, { key: '1e31a254cadf3141f66b003aeed3bbcb1912f748' }, h("select", { key: '0af51ed5c0daa0a5969d13edc7814e8f482eecea', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, h("option", { key: '597095579dc1e50a927d14c111fb8ab82c7ac971', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), h("div", { key: '3daf36535e69bf3909b184ea9658b7b7b4850a7d', class: "icon-container" }, h("i", { key: 'b98d5e916a2e050af8ed94066dcf51152b90738d', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), h("div", { key: '964828e831559130e018cfc62e1fb076e0b2478b', class: "option-container" }, h("slot", { key: '394d87e522c0c6fceadcc829d39c9a277b014ae3', onSlotchange: this.onSlotChangeHandler })), h("mds-input-tip", { key: '019abf7e5d56dd4eb93864bd7fd0fa28446ba0b5', position: "top", active: this.hasFocus }, this.disabled && h("mds-input-tip-item", { key: '8fc9b96596eea2eb99adc0c0e7b580fa9f92a355', expanded: true, variant: "disabled" }), this.required &&
152
- h("mds-input-tip-item", { key: '0eec9f0ade26adfba03eb3f3f38af1c1e831af55', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
163
+ return (h(Host, { key: 'f5b5ffd3983324fef83e63b212135a688e3f8336' }, h("select", { key: '67c86ac306d2bfc7ee4ce26ee50b968640eccafc', class: 'input', onInput: this.onInput.bind(this), onBlur: this.onBlur, onFocus: this.onFocus, name: this.name, required: this.required, disabled: this.disabled, multiple: this.multiple, size: this.size, part: "select", ref: el => this.selectEl = el }, h("option", { key: '47b09304e9c28d86d48bcdbb055860e7269bb1c0', class: "placeholder-option", value: "", disabled: !this.required ? undefined : true, selected: this.defaultValue ? undefined : true }, this.placeholder)), h("div", { key: '64ef4114e36b597a0c45992c6ca9aababf651412', class: "icon-container" }, h("i", { key: 'cf45fd24685de10b18a2c0a03ece69d418f33f5a', class: "icon", innerHTML: miBaselineKeyboardArrowDown })), h("div", { key: '889234fa40fbce6a6035bab27e291697a4dfd285', class: "option-container" }, h("slot", { key: '1af68dbb885ef165c3a6f812f06dce5cd09ddfb3', onSlotchange: this.onSlotChangeHandler })), h("mds-input-tip", { key: '3fcb2450452d9b62edeabaece40aad76fdae524e', position: "top", active: this.hasFocus }, this.disabled && h("mds-input-tip-item", { key: '33a6063b9509dee5bed86e4f8f5acf04083a0d2d', expanded: true, variant: "disabled" }), this.required &&
164
+ h("mds-input-tip-item", { key: '0fb3eb015646a0ef73ca3f829b9d7818478712ec', expanded: this.hasFocus, variant: this.value === '' ? 'required' : 'required-success' }))));
153
165
  }
154
166
  static get formAssociated() { return true; }
155
167
  get host() { return getElement(this); }
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-60887c04.js';
2
- export { s as setNonce } from './index-60887c04.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-fb47df34.js';
2
+ export { s as setNonce } from './index-fb47df34.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["mds-input-select",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
19
+ return bootstrapLazy([["mds-input-select",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32],"setValue":[64]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]]], options);
20
20
  });
@@ -0,0 +1 @@
1
+ var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,r,t,n){function i(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,a){function o(e){try{s(n.next(e))}catch(e){a(e)}}function u(e){try{s(n["throw"](e))}catch(e){a(e)}}function s(e){e.done?t(e.value):i(e.value).then(o,u)}s((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(r){return s([e,r])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(t=0)),t)try{if(n=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:t.label++;return{value:u[1],done:false};case 5:t.label++;i=u[1];u=[0];continue;case 7:u=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1];a=u;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(u);break}if(a[2])t.ops.pop();t.trys.pop();continue}u=r.call(e,t)}catch(e){u=[6,e];i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++){if(a||!(n in r)){if(!a)a=Array.prototype.slice.call(r,0,n);a[n]=r[n]}}return e.concat(a||Array.prototype.slice.call(r))};var NAMESPACE="mds-input-select";var BUILD={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,constructableCSS:true,cssAnnotations:true,devTools:false,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:true,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:true,hydratedClass:false,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,modernPropertyDecls:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:false,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:false,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:false,vdomText:true,vdomXlink:false,watchCallback:true};var __defProp=Object.defineProperty;var __export=function(e,r){for(var t in r)__defProp(e,t,{get:r[t],enumerable:true})};var getHostRef=function(e){if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var registerInstance=function(e,r){e.__stencil__getHostRef=function(){return r};r.t=e};var registerHost=function(e,r){var t={i:0,$hostElement$:e,o:r,u:new Map};{t.l=new Promise((function(e){return t.v=e}))}{t.p=new Promise((function(e){return t.m=e}));e["s-p"]=[];e["s-rc"]=[]}var n=t;e.__stencil__getHostRef=function(){return n};return n};var isMemberInElement=function(e,r){return r in e};var consoleError=function(e,r){return(0,console.error)(e,r)};var cmpModules=new Map;var loadModule=function(e,r,t){var n=e.h.replace(/-/g,"_");var i=e.S;if(!i){return void 0}var a=cmpModules.get(i);if(a){return a[n]}if(!t||!BUILD.hotModuleReplacement){var o=function(e){cmpModules.set(i,e);return e[n]};switch(i){case"mds-input-select":return import("./mds-input-select.entry.js").then(o,consoleError)}}return import("./".concat(i,".entry.js").concat("")).then((function(e){{cmpModules.set(i,e)}return e[n]}),(function(e){consoleError(e,r.$hostElement$)}))};var styles=new Map;var HYDRATED_STYLE_ID="sty-id";var HYDRATED_CSS="{visibility:hidden}[hydrated]{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var win=typeof window!=="undefined"?window:{};var plt={i:0,C:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,t,n){return e.addEventListener(r,t,n)},rel:function(e,r,t,n){return e.removeEventListener(r,t,n)},ce:function(e,r){return new CustomEvent(e,r)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queuePending=false;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,r){return function(t){e.push(t);if(!queuePending){queuePending=true;if(r&&plt.i&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var r,t,n;return(n=(t=(r=e.head)==null?void 0:r.querySelector('meta[name="csp-nonce"]'))==null?void 0:t.getAttribute("content"))!=null?n:void 0}var result_exports={};__export(result_exports,{err:function(){return err},map:function(){return map},ok:function(){return ok},unwrap:function(){return unwrap},unwrapErr:function(){return unwrapErr}});var ok=function(e){return{isOk:true,isErr:false,value:e}};var err=function(e){return{isOk:false,isErr:true,value:e}};function map(e,r){if(e.isOk){var t=r(e.value);if(t instanceof Promise){return t.then((function(e){return ok(e)}))}else{return ok(t)}}if(e.isErr){var n=e.value;return err(n)}throw"should never get here"}var unwrap=function(e){if(e.isOk){return e.value}else{throw e.value}};var unwrapErr=function(e){if(e.isErr){return e.value}else{throw e.value}};var createTime=function(e,r){if(r===void 0){r=""}{return function(){return}}};var uniqueTime=function(e,r){{return function(){return}}};var h=function(e,r){var t=[];for(var n=2;n<arguments.length;n++){t[n-2]=arguments[n]}var i=null;var a=null;var o=false;var u=false;var s=[];var l=function(r){for(var t=0;t<r.length;t++){i=r[t];if(Array.isArray(i)){l(i)}else if(i!=null&&typeof i!=="boolean"){if(o=typeof e!=="function"&&!isComplexType(i)){i=String(i)}if(o&&u){s[s.length-1]._+=i}else{s.push(o?newVNode(null,i):i)}u=o}}};l(t);if(r){if(r.key){a=r.key}{var f=r.className||r.class;if(f){r.class=typeof f!=="object"?f:Object.keys(f).filter((function(e){return f[e]})).join(" ")}}}var c=newVNode(e,null);c.T=r;if(s.length>0){c.A=s}{c.R=a}return c};var newVNode=function(e,r){var t={i:0,k:e,_:r,D:null,A:null};{t.T=null}{t.R=null}return t};var Host={};var isHost=function(e){return e&&e.k===Host};var parsePropertyValue=function(e,r){if(e!=null&&!isComplexType(e)){if(r&4){return e==="false"?false:e===""||!!e}if(r&2){return parseFloat(e)}if(r&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,r,t){var n=getElement(e);return{emit:function(e){return emitEvent(n,r,{bubbles:!!(t&4),composed:!!(t&2),cancelable:!!(t&1),detail:e})}}};var emitEvent=function(e,r,t){var n=plt.ce(r,t);e.dispatchEvent(n);return n};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,r,t){var n=styles.get(e);if(supportsConstructableStylesheets&&t){n=n||new CSSStyleSheet;if(typeof n==="string"){n=r}else{n.replaceSync(r)}}else{n=r}styles.set(e,n)};var addStyle=function(e,r,t){var n;var i=getScopeId(r);var a=styles.get(i);if(!win.document){return i}e=e.nodeType===11?e:win.document;if(a){if(typeof a==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var u=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(i)){{u=document.querySelector("[".concat(HYDRATED_STYLE_ID,'="').concat(i,'"]'))||win.document.createElement("style");u.innerHTML=a;var s=(n=plt.N)!=null?n:queryNonceMetaTagContent(win.document);if(s!=null){u.setAttribute("nonce",s)}if(!(r.i&1)){if(e.nodeName==="HEAD"){var l=e.querySelectorAll("link[rel=preconnect]");var f=l.length>0?l[l.length-1].nextSibling:e.querySelector("style");e.insertBefore(u,(f==null?void 0:f.parentNode)===e?f:null)}else if("host"in e){if(supportsConstructableStylesheets){var c=new CSSStyleSheet;c.replaceSync(a);e.adoptedStyleSheets=__spreadArray([c],e.adoptedStyleSheets,true)}else{var v=e.querySelector("style");if(v){v.innerHTML=a+v.innerHTML}else{e.prepend(u)}}}else{e.append(u)}}if(r.i&1){e.insertBefore(u,null)}}if(r.i&4){u.innerHTML+=SLOT_FB_CSS}if(o){o.add(i)}}}else if(!e.adoptedStyleSheets.includes(a)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[a],false)}}return i};var attachStyles=function(e){var r=e.o;var t=e.$hostElement$;var n=r.i;var i=createTime("attachStyles",r.h);var a=addStyle(t.shadowRoot?t.shadowRoot:t.getRootNode(),r);if(n&10&&n&2||n&128){t["s-sc"]=a;t.classList.add(a+"-h")}i()};var getScopeId=function(e,r){return"sc-"+e.h};var setAccessor=function(e,r,t,n,i,a,o){if(t===n){return}var u=isMemberInElement(e,r);var s=r.toLowerCase();if(r==="class"){var l=e.classList;var f=parseClassList(t);var c=parseClassList(n);{l.remove.apply(l,f.filter((function(e){return e&&!c.includes(e)})));l.add.apply(l,c.filter((function(e){return e&&!f.includes(e)})))}}else if(r==="key");else if(r==="ref"){if(n){n(e)}}else if(!u&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(isMemberInElement(win,s)){r=s.slice(2)}else{r=s[2]+r.slice(3)}if(t||n){var v=r.endsWith(CAPTURE_EVENT_SUFFIX);r=r.replace(CAPTURE_EVENT_REGEX,"");if(t){plt.rel(e,r,t,v)}if(n){plt.ael(e,r,n,v)}}}else{var d=isComplexType(n);if((u||d&&n!==null)&&!i){try{if(!e.tagName.includes("-")){var p=n==null?"":n;if(r==="list"){u=false}else if(t==null||e[r]!=p){if(typeof e.__lookupSetter__(r)==="function"){e[r]=p}else{e.setAttribute(r,p)}}}else if(e[r]!==n){e[r]=n}}catch(e){}}if(n==null||n===false){if(n!==false||e.getAttribute(r)===""){{e.removeAttribute(r)}}}else if((!u||a&4||i)&&!d&&e.nodeType===1){n=n===true?"":n;{e.setAttribute(r,n)}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(parseClassListRegex)};var CAPTURE_EVENT_SUFFIX="Capture";var CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$");var updateElement=function(e,r,t,n){var i=r.D.nodeType===11&&r.D.host?r.D.host:r.D;var a=e&&e.T||{};var o=r.T||{};{for(var u=0,s=sortedAttrNames(Object.keys(a));u<s.length;u++){var l=s[u];if(!(l in o)){setAccessor(i,l,a[l],void 0,t,r.i)}}}for(var f=0,c=sortedAttrNames(Object.keys(o));f<c.length;f++){var l=c[f];setAccessor(i,l,a[l],o[l],t,r.i)}};function sortedAttrNames(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var hostTagName;var useNativeShadowDom=false;var isSvgMode=false;var createElm=function(e,r,t){var n=r.A[t];var i=0;var a;var o;if(n._!==null){a=n.D=win.document.createTextNode(n._)}else{if(!win.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}a=n.D=win.document.createElement(!useNativeShadowDom&&BUILD.slotRelocation&&n.i&2?"slot-fb":n.k);{updateElement(null,n,isSvgMode)}if(n.A){for(i=0;i<n.A.length;++i){o=createElm(e,n,i);if(o){a.appendChild(o)}}}}a["s-hn"]=hostTagName;return a};var addVnodes=function(e,r,t,n,i,a){var o=e;var u;if(o.shadowRoot&&o.tagName===hostTagName){o=o.shadowRoot}for(;i<=a;++i){if(n[i]){u=createElm(null,t,i);if(u){n[i].D=u;insertBefore(o,u,r)}}}};var removeVnodes=function(e,r,t){for(var n=r;n<=t;++n){var i=e[n];if(i){var a=i.D;nullifyVNodeRefs(i);if(a){a.remove()}}}};var updateChildren=function(e,r,t,n,i){if(i===void 0){i=false}var a=0;var o=0;var u=0;var s=0;var l=r.length-1;var f=r[0];var c=r[l];var v=n.length-1;var d=n[0];var p=n[v];var m;var h;while(a<=l&&o<=v){if(f==null){f=r[++a]}else if(c==null){c=r[--l]}else if(d==null){d=n[++o]}else if(p==null){p=n[--v]}else if(isSameVnode(f,d,i)){patch(f,d,i);f=r[++a];d=n[++o]}else if(isSameVnode(c,p,i)){patch(c,p,i);c=r[--l];p=n[--v]}else if(isSameVnode(f,p,i)){patch(f,p,i);insertBefore(e,f.D,c.D.nextSibling);f=r[++a];p=n[--v]}else if(isSameVnode(c,d,i)){patch(c,d,i);insertBefore(e,c.D,f.D);c=r[--l];d=n[++o]}else{u=-1;{for(s=a;s<=l;++s){if(r[s]&&r[s].R!==null&&r[s].R===d.R){u=s;break}}}if(u>=0){h=r[u];if(h.k!==d.k){m=createElm(r&&r[o],t,u)}else{patch(h,d,i);r[u]=void 0;m=h.D}d=n[++o]}else{m=createElm(r&&r[o],t,o);d=n[++o]}if(m){{insertBefore(f.D.parentNode,m,f.D)}}}}if(a>l){addVnodes(e,n[v+1]==null?null:n[v+1].D,t,n,o,v)}else if(o>v){removeVnodes(r,a,l)}};var isSameVnode=function(e,r,t){if(t===void 0){t=false}if(e.k===r.k){if(!t){return e.R===r.R}if(t&&!e.R&&r.R){e.R=r.R}return true}return false};var patch=function(e,r,t){if(t===void 0){t=false}var n=r.D=e.D;var i=e.A;var a=r.A;var o=r._;if(o===null){{updateElement(e,r,isSvgMode)}if(i!==null&&a!==null){updateChildren(n,i,r,a,t)}else if(a!==null){if(e._!==null){n.textContent=""}addVnodes(n,null,r,a,0,a.length-1)}else if(!t&&BUILD.updatable&&i!==null){removeVnodes(i,0,i.length-1)}}else if(e._!==o){n.data=o}};var nullifyVNodeRefs=function(e){{e.T&&e.T.ref&&e.T.ref(null);e.A&&e.A.map(nullifyVNodeRefs)}};var insertBefore=function(e,r,t){{return e==null?void 0:e.insertBefore(r,t)}};var renderVdom=function(e,r,t){if(t===void 0){t=false}var n=e.$hostElement$;var i=e.o;var a=e.L||newVNode(null,null);var o=isHost(r)?r:h(null,null,r);hostTagName=n.tagName;if(i.M){o.T=o.T||{};i.M.map((function(e){var r=e[0],t=e[1];return o.T[t]=n[r]}))}if(t&&o.T){for(var u=0,s=Object.keys(o.T);u<s.length;u++){var l=s[u];if(n.hasAttribute(l)&&!["key","ref","style","class"].includes(l)){o.T[l]=n[l]}}}o.k=null;o.i|=4;e.L=o;o.D=a.D=n.shadowRoot||n;useNativeShadowDom=!!(i.i&1)&&!(i.i&128);patch(a,o,t)};var attachToAncestor=function(e,r){if(r&&!e.V&&r["s-p"]){var t=r["s-p"].push(new Promise((function(n){return e.V=function(){r["s-p"].splice(t-1,1);n()}})))}};var scheduleUpdate=function(e,r){{e.i|=16}if(e.i&4){e.i|=512;return}attachToAncestor(e,e.H);var t=function(){return dispatchHooks(e,r)};return writeTask(t)};var dispatchHooks=function(e,r){var t=e.$hostElement$;var n=createTime("scheduleUpdate",e.o.h);var i=e.t;if(!i){throw new Error("Can't render component <".concat(t.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(r){a=safeCall(i,"componentWillLoad",void 0,t)}else{a=safeCall(i,"componentWillUpdate",void 0,t)}a=enqueue(a,(function(){return safeCall(i,"componentWillRender",void 0,t)}));n();return enqueue(a,(function(){return updateComponent(e,i,r)}))};var enqueue=function(e,r){return isPromisey(e)?e.then(r).catch((function(e){console.error(e);r()})):r()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,r,t){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,u,s,l;return __generator(this,(function(f){i=e.$hostElement$;a=createTime("update",e.o.h);o=i["s-rc"];if(t){attachStyles(e)}u=createTime("render",e.o.h);{callRender(e,r,i,t)}if(o){o.map((function(e){return e()}));i["s-rc"]=void 0}u();a();{s=(n=i["s-p"])!=null?n:[];l=function(){return postUpdateComponent(e)};if(s.length===0){l()}else{Promise.all(s).then(l);e.i|=4;s.length=0}}return[2]}))}))};var callRender=function(e,r,t,n){try{r=r.render();{e.i&=~16}{e.i|=2}{{{renderVdom(e,r,n)}}}}catch(r){consoleError(r,e.$hostElement$)}return null};var postUpdateComponent=function(e){var r=e.o.h;var t=e.$hostElement$;var n=createTime("postUpdate",r);var i=e.t;var a=e.H;safeCall(i,"componentDidRender",void 0,t);if(!(e.i&64)){e.i|=64;{addHydratedFlag(t)}safeCall(i,"componentDidLoad",void 0,t);n();{e.m(t);if(!a){appDidLoad()}}}else{safeCall(i,"componentDidUpdate",void 0,t);n()}{e.v(t)}{if(e.V){e.V();e.V=void 0}if(e.i&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.i&=~(4|512)}};var appDidLoad=function(e){nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,r,t,n){if(e&&e[r]){try{return e[r](t)}catch(e){consoleError(e,n)}}return void 0};var addHydratedFlag=function(e){var r;return e.setAttribute((r=BUILD.hydratedSelectorName)!=null?r:"hydrated","")};var getValue=function(e,r){return getHostRef(e).u.get(r)};var setValue=function(e,r,t,n){var i=getHostRef(e);if(!i){throw new Error("Couldn't find host element for \"".concat(n.h,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).'))}var a=i.$hostElement$;var o=i.u.get(r);var u=i.i;var s=i.t;t=parsePropertyValue(t,n.O[r][0]);var l=Number.isNaN(o)&&Number.isNaN(t);var f=t!==o&&!l;if((!(u&8)||o===void 0)&&f){i.u.set(r,t);if(s){if(n.P&&u&128){var c=n.P[r];if(c){c.map((function(e){try{s[e](t,o,r)}catch(e){consoleError(e,a)}}))}}if((u&(2|16))===2){if(s.componentShouldUpdate){if(s.componentShouldUpdate(t,o,r)===false){return}}scheduleUpdate(i,false)}}}};var proxyComponent=function(e,r,t){var n,i;var a=e.prototype;if(r.i&64&&t&1){FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((function(e){Object.defineProperty(a,e,{value:function(){var r=[];for(var t=0;t<arguments.length;t++){r[t]=arguments[t]}var n=getHostRef(this);var i=n.t;if(!i){n.p.then((function(t){var n=t[e];typeof n==="function"&&n.call.apply(n,__spreadArray([t],r,false))}))}else{var a=i[e];typeof a==="function"&&a.call.apply(a,__spreadArray([i],r,false))}}})}))}if(r.O||(r.P||e.watchers)){if(e.watchers&&!r.P){r.P=e.watchers}var o=Object.entries((n=r.O)!=null?n:{});o.map((function(e){var n=e[0],i=e[1][0];if(i&31||t&2&&i&32){var o=Object.getOwnPropertyDescriptor(a,n)||{},u=o.get,s=o.set;if(u)r.O[n][0]|=2048;if(s)r.O[n][0]|=4096;if(t&1||!u){Object.defineProperty(a,n,{get:function(){{if((r.O[n][0]&2048)===0){return getValue(this,n)}var e=getHostRef(this);var t=e?e.t:a;if(!t)return;return t[n]}},configurable:true,enumerable:true})}Object.defineProperty(a,n,{set:function(e){var a=this;var o=getHostRef(this);if(s){var u=i&32?this[n]:o.$hostElement$[n];if(typeof u==="undefined"&&o.u.get(n)){e=o.u.get(n)}else if(!o.u.get(n)&&u){o.u.set(n,u)}s.apply(this,[parsePropertyValue(e,i)]);e=i&32?this[n]:o.$hostElement$[n];setValue(this,n,e,r);return}{if((t&1)===0||(r.O[n][0]&4096)===0){setValue(this,n,e,r);if(t&1&&!o.t){o.p.then((function(){if(r.O[n][0]&4096&&o.t[n]!==o.u.get(n)){o.t[n]=e}}))}return}var l=function(){var t=o.t[n];if(!o.u.get(n)&&t){o.u.set(n,t)}o.t[n]=parsePropertyValue(e,i);setValue(a,n,o.t[n],r)};if(o.t){l()}else{o.p.then((function(){return l()}))}}}})}else if(t&1&&i&64){Object.defineProperty(a,n,{value:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var t;var i=getHostRef(this);return(t=i==null?void 0:i.l)==null?void 0:t.then((function(){var r;return(r=i.t)==null?void 0:r[n].apply(r,e)}))}})}}));if(t&1){var u=new Map;a.attributeChangedCallback=function(e,t,n){var i=this;plt.jmp((function(){var o;var s=u.get(e);if(i.hasOwnProperty(s)&&BUILD.lazyLoad){n=i[s];delete i[s]}else if(a.hasOwnProperty(s)&&typeof i[s]==="number"&&i[s]==n){return}else if(s==null){var l=getHostRef(i);var f=l==null?void 0:l.i;if(f&&!(f&8)&&f&128&&n!==t){var c=l.t;var v=(o=r.P)==null?void 0:o[e];v==null?void 0:v.forEach((function(r){if(c[r]!=null){c[r].call(c,n,t,e)}}))}return}var d=Object.getOwnPropertyDescriptor(a,s);n=n===null&&typeof i[s]==="boolean"?false:n;if(n!==i[s]&&(!d.get||!!d.set)){i[s]=n}}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=r.P)!=null?i:{}),true),o.filter((function(e){var r=e[0],t=e[1];return t[0]&15})).map((function(e){var t=e[0],n=e[1];var i;var a=n[1]||t;u.set(a,t);if(n[0]&512){(i=r.M)==null?void 0:i.push([t,a])}return a})),true)))}}return e};var initializeComponent=function(e,r,t,n){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,u,s,l,f,c,v,d;return __generator(this,(function(p){switch(p.label){case 0:if(!((r.i&32)===0))return[3,6];r.i|=32;i=t.S;if(!i)return[3,4];a=loadModule(t,r);if(!(a&&"then"in a))return[3,2];o=uniqueTime();return[4,a];case 1:n=p.sent();o();return[3,3];case 2:n=a;p.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.h,"#").concat(r.$,'" was not found'))}if(!n.isProxied){{t.P=n.watchers}proxyComponent(n,t,2);n.isProxied=true}u=createTime("createInstance",t.h);{r.i|=8}try{new n(r)}catch(r){consoleError(r,e)}{r.i&=~8}{r.i|=128}u();fireConnectedCallback(r.t,e);return[3,5];case 4:n=e.constructor;s=e.localName;customElements.whenDefined(s).then((function(){return r.i|=128}));p.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}f=getScopeId(t);if(!styles.has(f)){c=createTime("registerStyles",t.h);registerStyle(f,l,!!(t.i&1));c()}}p.label=6;case 6:v=r.H;d=function(){return scheduleUpdate(r,true)};if(v&&v["s-rc"]){v["s-rc"].push(d)}else{d()}return[2]}}))}))};var fireConnectedCallback=function(e,r){{safeCall(e,"connectedCallback",void 0,r)}};var connectedCallback=function(e){if((plt.i&1)===0){var r=getHostRef(e);var t=r.o;var n=createTime("connectedCallback",t.h);if(!(r.i&1)){r.i|=1;{var i=e;while(i=i.parentNode||i.host){if(i["s-p"]){attachToAncestor(r,r.H=i);break}}}if(t.O){Object.entries(t.O).map((function(r){var t=r[0],n=r[1][0];if(n&31&&e.hasOwnProperty(t)){var i=e[t];delete e[t];e[t]=i}}))}{initializeComponent(e,r,t)}}else{if(r==null?void 0:r.t){fireConnectedCallback(r.t,e)}else if(r==null?void 0:r.p){r.p.then((function(){return fireConnectedCallback(r.t,e)}))}}n()}};var disconnectInstance=function(e,r){{safeCall(e,"disconnectedCallback",void 0,r||e)}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(t){if((plt.i&1)===0){r=getHostRef(e);if(r==null?void 0:r.t){disconnectInstance(r.t,e)}else if(r==null?void 0:r.p){r.p.then((function(){return disconnectInstance(r.t,e)}))}}if(rootAppliedStyles.has(e)){rootAppliedStyles.delete(e)}if(e.shadowRoot&&rootAppliedStyles.has(e.shadowRoot)){rootAppliedStyles.delete(e.shadowRoot)}return[2]}))}))};var bootstrapLazy=function(e,r){if(r===void 0){r={}}var t;if(!win.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var n=createTime();var i=[];var a=r.exclude||[];var o=win.customElements;var u=win.document.head;var s=u.querySelector("meta[charset]");var l=win.document.createElement("style");var f=[];var c;var v=true;Object.assign(plt,r);plt.C=new URL(r.resourcesUrl||"./",win.document.baseURI).href;var d=false;e.map((function(e){e[1].map((function(r){var t;var n={i:r[0],h:r[1],O:r[2],U:r[3]};if(n.i&4){d=true}{n.O=r[2]}{n.M=[]}{n.P=(t=r[4])!=null?t:{}}var u=n.h;var s=function(e){__extends(r,e);function r(r){var t=e.call(this,r)||this;t.hasRegisteredEventListeners=false;r=t;registerHost(r,n);if(n.i&1){{if(!r.shadowRoot){{r.attachShadow({mode:"open"})}}else{if(r.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(n.h,"! Mode is set to ").concat(r.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return t}r.prototype.connectedCallback=function(){var e=this;getHostRef(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(c){clearTimeout(c);c=null}if(v){f.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}));plt.raf((function(){var r;var t=getHostRef(e);var n=f.findIndex((function(r){return r===e}));if(n>-1){f.splice(n,1)}if(((r=t==null?void 0:t.L)==null?void 0:r.D)instanceof Node&&!t.L.D.isConnected){delete t.L.D}}))};r.prototype.componentOnReady=function(){return getHostRef(this).p};return r}(HTMLElement);if(n.i&64){s.formAssociated=true}n.S=e[0];if(!a.includes(u)&&!o.get(u)){i.push(u);o.define(u,proxyComponent(s,n,1))}}))}));if(i.length>0){if(d){l.textContent+=SLOT_FB_CSS}{l.textContent+=i.sort()+HYDRATED_CSS}if(l.innerHTML.length){l.setAttribute("data-styles","");var p=(t=plt.N)!=null?t:queryNonceMetaTagContent(win.document);if(p!=null){l.setAttribute("nonce",p)}u.insertBefore(l,s?s.nextSibling:u.firstChild)}}v=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var setNonce=function(e){return plt.N=e};export{Host as H,bootstrapLazy as b,createEvent as c,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function u(e){try{c(r["throw"](e))}catch(e){o(e)}}function c(e){e.done?n(e.value):i(e.value).then(a,u)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(t){return c([e,t])}}function c(u){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(n=0)),n)try{if(r=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1];o=u;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(u);break}if(o[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};import{b as bootstrapLazy}from"./index-60887c04.js";export{s as setNonce}from"./index-60887c04.js";import{g as globalScripts}from"./app-globals-0f993ce5.js";var defineCustomElements=function(e,t){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(typeof window==="undefined")return[2,undefined];return[4,globalScripts()];case 1:e.sent();return[2,bootstrapLazy([["mds-input-select",[[65,"mds-input-select",{autocomplete:[513],autoFocus:[516,"auto-focus"],placeholder:[513],name:[513],disabled:[516],required:[516],multiple:[516],size:[514],value:[520],defaultValue:[520,"default-value"],variant:[513],hasFocus:[32]},null,{value:["valueChanged"],disabled:["disabledChanged"],placeholder:["placeholderChanged"]}]]]],t)]}}))}))};export{defineCustomElements};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function u(e){try{s(r["throw"](e))}catch(e){o(e)}}function s(e){e.done?n(e.value):i(e.value).then(a,u)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(t){return s([e,t])}}function s(u){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(n=0)),n)try{if(r=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1];o=u;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(u);break}if(o[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};import{b as bootstrapLazy}from"./index-fb47df34.js";export{s as setNonce}from"./index-fb47df34.js";import{g as globalScripts}from"./app-globals-0f993ce5.js";var defineCustomElements=function(e,t){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(typeof window==="undefined")return[2,undefined];return[4,globalScripts()];case 1:e.sent();return[2,bootstrapLazy([["mds-input-select",[[65,"mds-input-select",{autocomplete:[513],autoFocus:[516,"auto-focus"],placeholder:[513],name:[513],disabled:[516],required:[516],multiple:[516],size:[514],value:[520],defaultValue:[520,"default-value"],variant:[513],hasFocus:[32],setValue:[64]},null,{value:["valueChanged"],disabled:["disabledChanged"],placeholder:["placeholderChanged"]}]]]],t)]}}))}))};export{defineCustomElements};