@maggioli-design-system/mds-input 7.8.5 → 7.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1375,7 +1375,7 @@ const MdsInput = class {
1375
1375
  }
1376
1376
  this.internals.setFormValue((_a = this.value) !== null && _a !== void 0 ? _a : null);
1377
1377
  this.maxLengthChanged(this.maxlength);
1378
- this.isValid = !(this.required && this.value === '');
1378
+ this.isValid = !(this.required && !this.value);
1379
1379
  }
1380
1380
  componentDidLoad() {
1381
1381
  var _a, _b, _c;
@@ -1491,21 +1491,21 @@ const MdsInput = class {
1491
1491
  }
1492
1492
  render() {
1493
1493
  var _a, _b;
1494
- return (index.h(index.Host, { key: '37a82d87e412a45a2d7564860f7d595764fee556' }, this.type === 'number'
1494
+ return (index.h(index.Host, { key: '5533d960dcfb314d57515f4a2eaacf89339e229d' }, this.type === 'number'
1495
1495
  && this.controlsLayout === 'horizontal'
1496
- && index.h("mds-button", { key: '6bd04aec103d606aac4c172a31be7fb2b341563d', class: "counter-button counter-button--horizontal counter-button--decrease", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" }), this.type === 'textarea'
1496
+ && index.h("mds-button", { key: '357082d06fa8e8f3e9853c0025572c13c26499b2', class: "counter-button counter-button--horizontal counter-button--decrease", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" }), this.type === 'textarea'
1497
1497
  ? index.h("textarea", { class: clsx('input', ((_a = this.icon) !== null && _a !== void 0 ? _a : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoFocus: this.autofocus, disabled: this.disabled, maxLength: this.maxlength, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: input => (this.nativeInput = input), required: this.required, tabIndex: this.tabindex, value: this.value })
1498
1498
  : index.h("input", { class: clsx('input', ((_b = this.icon) !== null && _b !== void 0 ? _b : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoComplete: this.autocomplete, autoFocus: this.autofocus, disabled: this.disabled, max: this.max, maxLength: this.maxlength, min: this.min, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, pattern: this.pattern, list: this.datalistId, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: input => (this.nativeInput = input), required: this.required, step: this.step, tabIndex: this.tabindex, type: this.type === 'password' && this.isPasswordVisible ? 'text' : this.type, value: this.value }), this.type === 'number'
1499
1499
  && this.controlsLayout === 'vertical'
1500
- && index.h("div", { key: '2ce0de98e1f0547b5daa743189a13080d73cba31', class: "counter counter--vertical" }, index.h("mds-button", { key: '9ec2a7d8019366e70a8aebf488ec807716aac352', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), index.h("mds-button", { key: '55f008a250a94496113e22a02e7ca2eeb4f7867f', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" })), this.type === 'number'
1500
+ && index.h("div", { key: '70d56000e4af3a3ed9d8750cc61acc30f999ad4f', class: "counter counter--vertical" }, index.h("mds-button", { key: '7b300f46f9449574fc7482422efb293e105c0e96', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), index.h("mds-button", { key: '147191e3385c50940de9289ec2411f6f6bb0807e', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" })), this.type === 'number'
1501
1501
  && this.controlsLayout === 'horizontal'
1502
- && index.h("mds-button", { key: 'fbb1723f79b1b17dceafb543b0524a9bc457f76b', class: "counter-button counter-button--horizontal counter-button--increase", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), this.type === 'password'
1503
- && index.h("mds-button", { key: 'cbd5545565544f2bedbf29d8746240790d8db257', class: "password-toggle-button", icon: this.isPasswordVisible ? miBaselineVisibleOff : miBaselineVisible, onClick: () => this.isPasswordVisible = !this.isPasswordVisible, tabindex: "0", tone: "quiet", title: this.isPasswordVisible ? this.t.get('hidePassword') : this.t.get('showPassword'), part: "password-toggle-button" }), this.mic
1504
- && index.h("mds-button", { key: '805f84eb8e0079d938c441f9f028648dcf8efcab', class: clsx('mic-toggle-button', this.isRecording && 'mic-toggle-button--recording'), icon: this.speechToTextIcon, onClick: () => this.toggleTextRecognition(), tabindex: "0", variant: "dark", tone: "quiet", title: this.speechToTextLabel, part: "mic-toggle-button" }), index.h("mds-input-tip", { key: 'a94febae08842c64ee0f573738e4962b653ca539', lang: this.language, position: "top", active: this.hasFocus, part: 'tip-top' }, this.disabled && index.h("mds-input-tip-item", { key: '33319e21a25524b0f4304ea736ccc20a7286edf3', expanded: true, variant: "disabled" }), this.readonly && index.h("mds-input-tip-item", { key: '20d3641f406da2b33ea64b4dac9e990041952e3a', expanded: true, variant: "readonly" }), this.required &&
1505
- index.h("mds-input-tip-item", { key: '85a47f7e5948246165dfa291e54286704fa1b3fe', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' })), index.h("mds-input-tip", { key: '1263940f43227eb5d5d051d3d0502aaa815a3636', lang: this.language, position: "bottom", active: this.hasFocus, part: 'tip-bottom' }, this.tip && index.h("mds-input-tip-item", { key: '2857a15bdd167a3c96dd1bc29b05dc4367c60b02', expanded: true, variant: "text" }, this.tip), this.maxlength && index.h("mds-input-tip-item", { key: '5d648cccc76697d7f5b2e43b866c083a2e1f6fb5', part: "tip-count", expanded: true, variant: this.countVariant }, this.currentLengthLabel)), this.datalist &&
1506
- index.h("datalist", { key: '61ed22d7c6244498362c15bc42853c0e8cb6ec76', id: this.datalistId, class: "datalist" }, this.datalist.map((element, i) => {
1502
+ && index.h("mds-button", { key: '4e503bb506fcdddf954d8b753332ea934965ad0a', class: "counter-button counter-button--horizontal counter-button--increase", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), this.type === 'password'
1503
+ && index.h("mds-button", { key: '5b73a76bab0ed94e9d077990226a5f79131abc51', class: "password-toggle-button", icon: this.isPasswordVisible ? miBaselineVisibleOff : miBaselineVisible, onClick: () => this.isPasswordVisible = !this.isPasswordVisible, tabindex: "0", tone: "quiet", title: this.isPasswordVisible ? this.t.get('hidePassword') : this.t.get('showPassword'), part: "password-toggle-button" }), this.mic
1504
+ && index.h("mds-button", { key: 'aeae4f4183fa8f48301e7220f5cbd63255ac7389', class: clsx('mic-toggle-button', this.isRecording && 'mic-toggle-button--recording'), icon: this.speechToTextIcon, onClick: () => this.toggleTextRecognition(), tabindex: "0", variant: "dark", tone: "quiet", title: this.speechToTextLabel, part: "mic-toggle-button" }), index.h("mds-input-tip", { key: 'dfa2404f132a841cad30beebf9e28a2eeff47aae', lang: this.language, position: "top", active: this.hasFocus, part: 'tip-top' }, this.disabled && index.h("mds-input-tip-item", { key: '2c8095e6b3218c2829cc8b8ac93b1dbda0a7fc91', expanded: true, variant: "disabled" }), this.readonly && index.h("mds-input-tip-item", { key: 'd1852014760d45eb4710c49ba097bf9caf96367b', expanded: true, variant: "readonly" }), this.required &&
1505
+ index.h("mds-input-tip-item", { key: '1c6a51675bfd34e879e7627a0a23efca77b60b09', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' })), index.h("mds-input-tip", { key: 'bb35df1bad27539a1fd205f95e2cca2e47480fc6', lang: this.language, position: "bottom", active: this.hasFocus, part: 'tip-bottom' }, this.tip && index.h("mds-input-tip-item", { key: '76f1a0e0d90a47eadef6c509ea6c4bdd2cafc0ec', expanded: true, variant: "text" }, this.tip), this.maxlength && index.h("mds-input-tip-item", { key: 'a7b30b5b868a6bace7cd0d7b30e0f96fe43224fd', part: "tip-count", expanded: true, variant: this.countVariant }, this.currentLengthLabel)), this.datalist &&
1506
+ index.h("datalist", { key: '5753a96f9d2aa97c3eb51914bde29bc71e3fbc5f', id: this.datalistId, class: "datalist" }, this.datalist.map((element, i) => {
1507
1507
  return index.h("option", { key: i, value: element });
1508
- })), this.icon && !this.await && index.h("mds-icon", { key: '606f8240dd93ff3bf05cdf96785d56aec5bfa2f5', class: clsx('icon', this.variant), name: this.icon }), index.h("mds-spinner", { key: '133b80f0f07120b30485846d93bb9d963ca1112f', running: this.await, class: clsx('await', this.variant) })));
1508
+ })), this.icon && !this.await && index.h("mds-icon", { key: '484d5c098586eaa85100b6af0190b5a4e5cf7d71', class: clsx('icon', this.variant), name: this.icon }), index.h("mds-spinner", { key: 'e9efc775f0d5cbfa3cd0d5448c7aeed7ad0f1213', running: this.await, class: clsx('await', this.variant) })));
1509
1509
  }
1510
1510
  static get formAssociated() { return true; }
1511
1511
  get el() { return index.getElement(this); }
@@ -246,7 +246,7 @@ export class MdsInput {
246
246
  }
247
247
  this.internals.setFormValue((_a = this.value) !== null && _a !== void 0 ? _a : null);
248
248
  this.maxLengthChanged(this.maxlength);
249
- this.isValid = !(this.required && this.value === '');
249
+ this.isValid = !(this.required && !this.value);
250
250
  }
251
251
  componentDidLoad() {
252
252
  var _a, _b, _c;
@@ -362,21 +362,21 @@ export class MdsInput {
362
362
  }
363
363
  render() {
364
364
  var _a, _b;
365
- return (h(Host, { key: '37a82d87e412a45a2d7564860f7d595764fee556' }, this.type === 'number'
365
+ return (h(Host, { key: '5533d960dcfb314d57515f4a2eaacf89339e229d' }, this.type === 'number'
366
366
  && this.controlsLayout === 'horizontal'
367
- && h("mds-button", { key: '6bd04aec103d606aac4c172a31be7fb2b341563d', class: "counter-button counter-button--horizontal counter-button--decrease", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" }), this.type === 'textarea'
367
+ && h("mds-button", { key: '357082d06fa8e8f3e9853c0025572c13c26499b2', class: "counter-button counter-button--horizontal counter-button--decrease", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" }), this.type === 'textarea'
368
368
  ? h("textarea", { class: clsx('input', ((_a = this.icon) !== null && _a !== void 0 ? _a : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoFocus: this.autofocus, disabled: this.disabled, maxLength: this.maxlength, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: input => (this.nativeInput = input), required: this.required, tabIndex: this.tabindex, value: this.value })
369
369
  : h("input", { class: clsx('input', ((_b = this.icon) !== null && _b !== void 0 ? _b : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoComplete: this.autocomplete, autoFocus: this.autofocus, disabled: this.disabled, max: this.max, maxLength: this.maxlength, min: this.min, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, pattern: this.pattern, list: this.datalistId, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: input => (this.nativeInput = input), required: this.required, step: this.step, tabIndex: this.tabindex, type: this.type === 'password' && this.isPasswordVisible ? 'text' : this.type, value: this.value }), this.type === 'number'
370
370
  && this.controlsLayout === 'vertical'
371
- && h("div", { key: '2ce0de98e1f0547b5daa743189a13080d73cba31', class: "counter counter--vertical" }, h("mds-button", { key: '9ec2a7d8019366e70a8aebf488ec807716aac352', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), h("mds-button", { key: '55f008a250a94496113e22a02e7ca2eeb4f7867f', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" })), this.type === 'number'
371
+ && h("div", { key: '70d56000e4af3a3ed9d8750cc61acc30f999ad4f', class: "counter counter--vertical" }, h("mds-button", { key: '7b300f46f9449574fc7482422efb293e105c0e96', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), h("mds-button", { key: '147191e3385c50940de9289ec2411f6f6bb0807e', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" })), this.type === 'number'
372
372
  && this.controlsLayout === 'horizontal'
373
- && h("mds-button", { key: 'fbb1723f79b1b17dceafb543b0524a9bc457f76b', class: "counter-button counter-button--horizontal counter-button--increase", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), this.type === 'password'
374
- && h("mds-button", { key: 'cbd5545565544f2bedbf29d8746240790d8db257', class: "password-toggle-button", icon: this.isPasswordVisible ? miBaselineVisibleOff : miBaselineVisible, onClick: () => this.isPasswordVisible = !this.isPasswordVisible, tabindex: "0", tone: "quiet", title: this.isPasswordVisible ? this.t.get('hidePassword') : this.t.get('showPassword'), part: "password-toggle-button" }), this.mic
375
- && h("mds-button", { key: '805f84eb8e0079d938c441f9f028648dcf8efcab', class: clsx('mic-toggle-button', this.isRecording && 'mic-toggle-button--recording'), icon: this.speechToTextIcon, onClick: () => this.toggleTextRecognition(), tabindex: "0", variant: "dark", tone: "quiet", title: this.speechToTextLabel, part: "mic-toggle-button" }), h("mds-input-tip", { key: 'a94febae08842c64ee0f573738e4962b653ca539', lang: this.language, position: "top", active: this.hasFocus, part: 'tip-top' }, this.disabled && h("mds-input-tip-item", { key: '33319e21a25524b0f4304ea736ccc20a7286edf3', expanded: true, variant: "disabled" }), this.readonly && h("mds-input-tip-item", { key: '20d3641f406da2b33ea64b4dac9e990041952e3a', expanded: true, variant: "readonly" }), this.required &&
376
- h("mds-input-tip-item", { key: '85a47f7e5948246165dfa291e54286704fa1b3fe', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' })), h("mds-input-tip", { key: '1263940f43227eb5d5d051d3d0502aaa815a3636', lang: this.language, position: "bottom", active: this.hasFocus, part: 'tip-bottom' }, this.tip && h("mds-input-tip-item", { key: '2857a15bdd167a3c96dd1bc29b05dc4367c60b02', expanded: true, variant: "text" }, this.tip), this.maxlength && h("mds-input-tip-item", { key: '5d648cccc76697d7f5b2e43b866c083a2e1f6fb5', part: "tip-count", expanded: true, variant: this.countVariant }, this.currentLengthLabel)), this.datalist &&
377
- h("datalist", { key: '61ed22d7c6244498362c15bc42853c0e8cb6ec76', id: this.datalistId, class: "datalist" }, this.datalist.map((element, i) => {
373
+ && h("mds-button", { key: '4e503bb506fcdddf954d8b753332ea934965ad0a', class: "counter-button counter-button--horizontal counter-button--increase", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), this.type === 'password'
374
+ && h("mds-button", { key: '5b73a76bab0ed94e9d077990226a5f79131abc51', class: "password-toggle-button", icon: this.isPasswordVisible ? miBaselineVisibleOff : miBaselineVisible, onClick: () => this.isPasswordVisible = !this.isPasswordVisible, tabindex: "0", tone: "quiet", title: this.isPasswordVisible ? this.t.get('hidePassword') : this.t.get('showPassword'), part: "password-toggle-button" }), this.mic
375
+ && h("mds-button", { key: 'aeae4f4183fa8f48301e7220f5cbd63255ac7389', class: clsx('mic-toggle-button', this.isRecording && 'mic-toggle-button--recording'), icon: this.speechToTextIcon, onClick: () => this.toggleTextRecognition(), tabindex: "0", variant: "dark", tone: "quiet", title: this.speechToTextLabel, part: "mic-toggle-button" }), h("mds-input-tip", { key: 'dfa2404f132a841cad30beebf9e28a2eeff47aae', lang: this.language, position: "top", active: this.hasFocus, part: 'tip-top' }, this.disabled && h("mds-input-tip-item", { key: '2c8095e6b3218c2829cc8b8ac93b1dbda0a7fc91', expanded: true, variant: "disabled" }), this.readonly && h("mds-input-tip-item", { key: 'd1852014760d45eb4710c49ba097bf9caf96367b', expanded: true, variant: "readonly" }), this.required &&
376
+ h("mds-input-tip-item", { key: '1c6a51675bfd34e879e7627a0a23efca77b60b09', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' })), h("mds-input-tip", { key: 'bb35df1bad27539a1fd205f95e2cca2e47480fc6', lang: this.language, position: "bottom", active: this.hasFocus, part: 'tip-bottom' }, this.tip && h("mds-input-tip-item", { key: '76f1a0e0d90a47eadef6c509ea6c4bdd2cafc0ec', expanded: true, variant: "text" }, this.tip), this.maxlength && h("mds-input-tip-item", { key: 'a7b30b5b868a6bace7cd0d7b30e0f96fe43224fd', part: "tip-count", expanded: true, variant: this.countVariant }, this.currentLengthLabel)), this.datalist &&
377
+ h("datalist", { key: '5753a96f9d2aa97c3eb51914bde29bc71e3fbc5f', id: this.datalistId, class: "datalist" }, this.datalist.map((element, i) => {
378
378
  return h("option", { key: i, value: element });
379
- })), this.icon && !this.await && h("mds-icon", { key: '606f8240dd93ff3bf05cdf96785d56aec5bfa2f5', class: clsx('icon', this.variant), name: this.icon }), h("mds-spinner", { key: '133b80f0f07120b30485846d93bb9d963ca1112f', running: this.await, class: clsx('await', this.variant) })));
379
+ })), this.icon && !this.await && h("mds-icon", { key: '484d5c098586eaa85100b6af0190b5a4e5cf7d71', class: clsx('icon', this.variant), name: this.icon }), h("mds-spinner", { key: 'e9efc775f0d5cbfa3cd0d5448c7aeed7ad0f1213', running: this.await, class: clsx('await', this.variant) })));
380
380
  }
381
381
  static get is() { return "mds-input"; }
382
382
  static get encapsulation() { return "shadow"; }
@@ -64,4 +64,8 @@ const typographyInputDictionary = [
64
64
  'snippet',
65
65
  'detail',
66
66
  ];
67
- export { typographyDictionary, typographyInfoDictionary, typographyInputDictionary, typographyMonoDictionary, typographyReadDictionary, typographyReadingVariationsDictionary, typographySmallerDictionary, typographyTitleDictionary, typographyTooltipDictionary, typographyVariationsDictionary, };
67
+ const typographyTechnicalDictionary = [
68
+ 'option',
69
+ 'label',
70
+ ];
71
+ export { typographyDictionary, typographyInfoDictionary, typographyInputDictionary, typographyTechnicalDictionary, typographyMonoDictionary, typographyReadDictionary, typographyReadingVariationsDictionary, typographySmallerDictionary, typographyTitleDictionary, typographyTooltipDictionary, typographyVariationsDictionary, };
@@ -1367,7 +1367,7 @@ const MdsInput$1 = /*@__PURE__*/ proxyCustomElement(class MdsInput extends HTMLE
1367
1367
  }
1368
1368
  this.internals.setFormValue((_a = this.value) !== null && _a !== void 0 ? _a : null);
1369
1369
  this.maxLengthChanged(this.maxlength);
1370
- this.isValid = !(this.required && this.value === '');
1370
+ this.isValid = !(this.required && !this.value);
1371
1371
  }
1372
1372
  componentDidLoad() {
1373
1373
  var _a, _b, _c;
@@ -1483,21 +1483,21 @@ const MdsInput$1 = /*@__PURE__*/ proxyCustomElement(class MdsInput extends HTMLE
1483
1483
  }
1484
1484
  render() {
1485
1485
  var _a, _b;
1486
- return (h(Host, { key: '37a82d87e412a45a2d7564860f7d595764fee556' }, this.type === 'number'
1486
+ return (h(Host, { key: '5533d960dcfb314d57515f4a2eaacf89339e229d' }, this.type === 'number'
1487
1487
  && this.controlsLayout === 'horizontal'
1488
- && h("mds-button", { key: '6bd04aec103d606aac4c172a31be7fb2b341563d', class: "counter-button counter-button--horizontal counter-button--decrease", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" }), this.type === 'textarea'
1488
+ && h("mds-button", { key: '357082d06fa8e8f3e9853c0025572c13c26499b2', class: "counter-button counter-button--horizontal counter-button--decrease", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" }), this.type === 'textarea'
1489
1489
  ? h("textarea", { class: clsx('input', ((_a = this.icon) !== null && _a !== void 0 ? _a : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoFocus: this.autofocus, disabled: this.disabled, maxLength: this.maxlength, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: input => (this.nativeInput = input), required: this.required, tabIndex: this.tabindex, value: this.value })
1490
1490
  : h("input", { class: clsx('input', ((_b = this.icon) !== null && _b !== void 0 ? _b : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoComplete: this.autocomplete, autoFocus: this.autofocus, disabled: this.disabled, max: this.max, maxLength: this.maxlength, min: this.min, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, pattern: this.pattern, list: this.datalistId, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: input => (this.nativeInput = input), required: this.required, step: this.step, tabIndex: this.tabindex, type: this.type === 'password' && this.isPasswordVisible ? 'text' : this.type, value: this.value }), this.type === 'number'
1491
1491
  && this.controlsLayout === 'vertical'
1492
- && h("div", { key: '2ce0de98e1f0547b5daa743189a13080d73cba31', class: "counter counter--vertical" }, h("mds-button", { key: '9ec2a7d8019366e70a8aebf488ec807716aac352', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), h("mds-button", { key: '55f008a250a94496113e22a02e7ca2eeb4f7867f', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" })), this.type === 'number'
1492
+ && h("div", { key: '70d56000e4af3a3ed9d8750cc61acc30f999ad4f', class: "counter counter--vertical" }, h("mds-button", { key: '7b300f46f9449574fc7482422efb293e105c0e96', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), h("mds-button", { key: '147191e3385c50940de9289ec2411f6f6bb0807e', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" })), this.type === 'number'
1493
1493
  && this.controlsLayout === 'horizontal'
1494
- && h("mds-button", { key: 'fbb1723f79b1b17dceafb543b0524a9bc457f76b', class: "counter-button counter-button--horizontal counter-button--increase", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), this.type === 'password'
1495
- && h("mds-button", { key: 'cbd5545565544f2bedbf29d8746240790d8db257', class: "password-toggle-button", icon: this.isPasswordVisible ? miBaselineVisibleOff : miBaselineVisible, onClick: () => this.isPasswordVisible = !this.isPasswordVisible, tabindex: "0", tone: "quiet", title: this.isPasswordVisible ? this.t.get('hidePassword') : this.t.get('showPassword'), part: "password-toggle-button" }), this.mic
1496
- && h("mds-button", { key: '805f84eb8e0079d938c441f9f028648dcf8efcab', class: clsx('mic-toggle-button', this.isRecording && 'mic-toggle-button--recording'), icon: this.speechToTextIcon, onClick: () => this.toggleTextRecognition(), tabindex: "0", variant: "dark", tone: "quiet", title: this.speechToTextLabel, part: "mic-toggle-button" }), h("mds-input-tip", { key: 'a94febae08842c64ee0f573738e4962b653ca539', lang: this.language, position: "top", active: this.hasFocus, part: 'tip-top' }, this.disabled && h("mds-input-tip-item", { key: '33319e21a25524b0f4304ea736ccc20a7286edf3', expanded: true, variant: "disabled" }), this.readonly && h("mds-input-tip-item", { key: '20d3641f406da2b33ea64b4dac9e990041952e3a', expanded: true, variant: "readonly" }), this.required &&
1497
- h("mds-input-tip-item", { key: '85a47f7e5948246165dfa291e54286704fa1b3fe', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' })), h("mds-input-tip", { key: '1263940f43227eb5d5d051d3d0502aaa815a3636', lang: this.language, position: "bottom", active: this.hasFocus, part: 'tip-bottom' }, this.tip && h("mds-input-tip-item", { key: '2857a15bdd167a3c96dd1bc29b05dc4367c60b02', expanded: true, variant: "text" }, this.tip), this.maxlength && h("mds-input-tip-item", { key: '5d648cccc76697d7f5b2e43b866c083a2e1f6fb5', part: "tip-count", expanded: true, variant: this.countVariant }, this.currentLengthLabel)), this.datalist &&
1498
- h("datalist", { key: '61ed22d7c6244498362c15bc42853c0e8cb6ec76', id: this.datalistId, class: "datalist" }, this.datalist.map((element, i) => {
1494
+ && h("mds-button", { key: '4e503bb506fcdddf954d8b753332ea934965ad0a', class: "counter-button counter-button--horizontal counter-button--increase", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), this.type === 'password'
1495
+ && h("mds-button", { key: '5b73a76bab0ed94e9d077990226a5f79131abc51', class: "password-toggle-button", icon: this.isPasswordVisible ? miBaselineVisibleOff : miBaselineVisible, onClick: () => this.isPasswordVisible = !this.isPasswordVisible, tabindex: "0", tone: "quiet", title: this.isPasswordVisible ? this.t.get('hidePassword') : this.t.get('showPassword'), part: "password-toggle-button" }), this.mic
1496
+ && h("mds-button", { key: 'aeae4f4183fa8f48301e7220f5cbd63255ac7389', class: clsx('mic-toggle-button', this.isRecording && 'mic-toggle-button--recording'), icon: this.speechToTextIcon, onClick: () => this.toggleTextRecognition(), tabindex: "0", variant: "dark", tone: "quiet", title: this.speechToTextLabel, part: "mic-toggle-button" }), h("mds-input-tip", { key: 'dfa2404f132a841cad30beebf9e28a2eeff47aae', lang: this.language, position: "top", active: this.hasFocus, part: 'tip-top' }, this.disabled && h("mds-input-tip-item", { key: '2c8095e6b3218c2829cc8b8ac93b1dbda0a7fc91', expanded: true, variant: "disabled" }), this.readonly && h("mds-input-tip-item", { key: 'd1852014760d45eb4710c49ba097bf9caf96367b', expanded: true, variant: "readonly" }), this.required &&
1497
+ h("mds-input-tip-item", { key: '1c6a51675bfd34e879e7627a0a23efca77b60b09', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' })), h("mds-input-tip", { key: 'bb35df1bad27539a1fd205f95e2cca2e47480fc6', lang: this.language, position: "bottom", active: this.hasFocus, part: 'tip-bottom' }, this.tip && h("mds-input-tip-item", { key: '76f1a0e0d90a47eadef6c509ea6c4bdd2cafc0ec', expanded: true, variant: "text" }, this.tip), this.maxlength && h("mds-input-tip-item", { key: 'a7b30b5b868a6bace7cd0d7b30e0f96fe43224fd', part: "tip-count", expanded: true, variant: this.countVariant }, this.currentLengthLabel)), this.datalist &&
1498
+ h("datalist", { key: '5753a96f9d2aa97c3eb51914bde29bc71e3fbc5f', id: this.datalistId, class: "datalist" }, this.datalist.map((element, i) => {
1499
1499
  return h("option", { key: i, value: element });
1500
- })), this.icon && !this.await && h("mds-icon", { key: '606f8240dd93ff3bf05cdf96785d56aec5bfa2f5', class: clsx('icon', this.variant), name: this.icon }), h("mds-spinner", { key: '133b80f0f07120b30485846d93bb9d963ca1112f', running: this.await, class: clsx('await', this.variant) })));
1500
+ })), this.icon && !this.await && h("mds-icon", { key: '484d5c098586eaa85100b6af0190b5a4e5cf7d71', class: clsx('icon', this.variant), name: this.icon }), h("mds-spinner", { key: 'e9efc775f0d5cbfa3cd0d5448c7aeed7ad0f1213', running: this.await, class: clsx('await', this.variant) })));
1501
1501
  }
1502
1502
  static get formAssociated() { return true; }
1503
1503
  get el() { return this; }
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-02-19T19:07:57",
2
+ "timestamp": "2026-03-31T14:06:33",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.27.2",
@@ -1371,7 +1371,7 @@ const MdsInput = class {
1371
1371
  }
1372
1372
  this.internals.setFormValue((_a = this.value) !== null && _a !== void 0 ? _a : null);
1373
1373
  this.maxLengthChanged(this.maxlength);
1374
- this.isValid = !(this.required && this.value === '');
1374
+ this.isValid = !(this.required && !this.value);
1375
1375
  }
1376
1376
  componentDidLoad() {
1377
1377
  var _a, _b, _c;
@@ -1487,21 +1487,21 @@ const MdsInput = class {
1487
1487
  }
1488
1488
  render() {
1489
1489
  var _a, _b;
1490
- return (h(Host, { key: '37a82d87e412a45a2d7564860f7d595764fee556' }, this.type === 'number'
1490
+ return (h(Host, { key: '5533d960dcfb314d57515f4a2eaacf89339e229d' }, this.type === 'number'
1491
1491
  && this.controlsLayout === 'horizontal'
1492
- && h("mds-button", { key: '6bd04aec103d606aac4c172a31be7fb2b341563d', class: "counter-button counter-button--horizontal counter-button--decrease", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" }), this.type === 'textarea'
1492
+ && h("mds-button", { key: '357082d06fa8e8f3e9853c0025572c13c26499b2', class: "counter-button counter-button--horizontal counter-button--decrease", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" }), this.type === 'textarea'
1493
1493
  ? h("textarea", { class: clsx('input', ((_a = this.icon) !== null && _a !== void 0 ? _a : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoFocus: this.autofocus, disabled: this.disabled, maxLength: this.maxlength, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: input => (this.nativeInput = input), required: this.required, tabIndex: this.tabindex, value: this.value })
1494
1494
  : h("input", { class: clsx('input', ((_b = this.icon) !== null && _b !== void 0 ? _b : this.await) && 'has-icon', this.mic && 'has-right-icon'), autoComplete: this.autocomplete, autoFocus: this.autofocus, disabled: this.disabled, max: this.max, maxLength: this.maxlength, min: this.min, minLength: this.minlength, name: this.name, onBlur: this.onBlur, onFocus: this.onFocus, onInput: this.onInput, pattern: this.pattern, list: this.datalistId, part: "field", placeholder: this.placeholder, readOnly: this.readonly, ref: input => (this.nativeInput = input), required: this.required, step: this.step, tabIndex: this.tabindex, type: this.type === 'password' && this.isPasswordVisible ? 'text' : this.type, value: this.value }), this.type === 'number'
1495
1495
  && this.controlsLayout === 'vertical'
1496
- && h("div", { key: '2ce0de98e1f0547b5daa743189a13080d73cba31', class: "counter counter--vertical" }, h("mds-button", { key: '9ec2a7d8019366e70a8aebf488ec807716aac352', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), h("mds-button", { key: '55f008a250a94496113e22a02e7ca2eeb4f7867f', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" })), this.type === 'number'
1496
+ && h("div", { key: '70d56000e4af3a3ed9d8750cc61acc30f999ad4f', class: "counter counter--vertical" }, h("mds-button", { key: '7b300f46f9449574fc7482422efb293e105c0e96', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), h("mds-button", { key: '147191e3385c50940de9289ec2411f6f6bb0807e', class: "counter-button", icon: this.controlsIcon === 'arrow' ? miBaselineArrowDown : miBaselineRemove, onClick: this.stepDown, tabindex: "0", title: this.t.get('decrease'), part: "counter-button-decrease" })), this.type === 'number'
1497
1497
  && this.controlsLayout === 'horizontal'
1498
- && h("mds-button", { key: 'fbb1723f79b1b17dceafb543b0524a9bc457f76b', class: "counter-button counter-button--horizontal counter-button--increase", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), this.type === 'password'
1499
- && h("mds-button", { key: 'cbd5545565544f2bedbf29d8746240790d8db257', class: "password-toggle-button", icon: this.isPasswordVisible ? miBaselineVisibleOff : miBaselineVisible, onClick: () => this.isPasswordVisible = !this.isPasswordVisible, tabindex: "0", tone: "quiet", title: this.isPasswordVisible ? this.t.get('hidePassword') : this.t.get('showPassword'), part: "password-toggle-button" }), this.mic
1500
- && h("mds-button", { key: '805f84eb8e0079d938c441f9f028648dcf8efcab', class: clsx('mic-toggle-button', this.isRecording && 'mic-toggle-button--recording'), icon: this.speechToTextIcon, onClick: () => this.toggleTextRecognition(), tabindex: "0", variant: "dark", tone: "quiet", title: this.speechToTextLabel, part: "mic-toggle-button" }), h("mds-input-tip", { key: 'a94febae08842c64ee0f573738e4962b653ca539', lang: this.language, position: "top", active: this.hasFocus, part: 'tip-top' }, this.disabled && h("mds-input-tip-item", { key: '33319e21a25524b0f4304ea736ccc20a7286edf3', expanded: true, variant: "disabled" }), this.readonly && h("mds-input-tip-item", { key: '20d3641f406da2b33ea64b4dac9e990041952e3a', expanded: true, variant: "readonly" }), this.required &&
1501
- h("mds-input-tip-item", { key: '85a47f7e5948246165dfa291e54286704fa1b3fe', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' })), h("mds-input-tip", { key: '1263940f43227eb5d5d051d3d0502aaa815a3636', lang: this.language, position: "bottom", active: this.hasFocus, part: 'tip-bottom' }, this.tip && h("mds-input-tip-item", { key: '2857a15bdd167a3c96dd1bc29b05dc4367c60b02', expanded: true, variant: "text" }, this.tip), this.maxlength && h("mds-input-tip-item", { key: '5d648cccc76697d7f5b2e43b866c083a2e1f6fb5', part: "tip-count", expanded: true, variant: this.countVariant }, this.currentLengthLabel)), this.datalist &&
1502
- h("datalist", { key: '61ed22d7c6244498362c15bc42853c0e8cb6ec76', id: this.datalistId, class: "datalist" }, this.datalist.map((element, i) => {
1498
+ && h("mds-button", { key: '4e503bb506fcdddf954d8b753332ea934965ad0a', class: "counter-button counter-button--horizontal counter-button--increase", icon: this.controlsIcon === 'arrow' ? miBaselineArrowUp : miBaselineAdd, onClick: this.stepUp, tabindex: "0", title: this.t.get('increase'), part: "counter-button-increase" }), this.type === 'password'
1499
+ && h("mds-button", { key: '5b73a76bab0ed94e9d077990226a5f79131abc51', class: "password-toggle-button", icon: this.isPasswordVisible ? miBaselineVisibleOff : miBaselineVisible, onClick: () => this.isPasswordVisible = !this.isPasswordVisible, tabindex: "0", tone: "quiet", title: this.isPasswordVisible ? this.t.get('hidePassword') : this.t.get('showPassword'), part: "password-toggle-button" }), this.mic
1500
+ && h("mds-button", { key: 'aeae4f4183fa8f48301e7220f5cbd63255ac7389', class: clsx('mic-toggle-button', this.isRecording && 'mic-toggle-button--recording'), icon: this.speechToTextIcon, onClick: () => this.toggleTextRecognition(), tabindex: "0", variant: "dark", tone: "quiet", title: this.speechToTextLabel, part: "mic-toggle-button" }), h("mds-input-tip", { key: 'dfa2404f132a841cad30beebf9e28a2eeff47aae', lang: this.language, position: "top", active: this.hasFocus, part: 'tip-top' }, this.disabled && h("mds-input-tip-item", { key: '2c8095e6b3218c2829cc8b8ac93b1dbda0a7fc91', expanded: true, variant: "disabled" }), this.readonly && h("mds-input-tip-item", { key: 'd1852014760d45eb4710c49ba097bf9caf96367b', expanded: true, variant: "readonly" }), this.required &&
1501
+ h("mds-input-tip-item", { key: '1c6a51675bfd34e879e7627a0a23efca77b60b09', expanded: this.hasFocus, variant: this.isValid ? 'required-success' : 'required' })), h("mds-input-tip", { key: 'bb35df1bad27539a1fd205f95e2cca2e47480fc6', lang: this.language, position: "bottom", active: this.hasFocus, part: 'tip-bottom' }, this.tip && h("mds-input-tip-item", { key: '76f1a0e0d90a47eadef6c509ea6c4bdd2cafc0ec', expanded: true, variant: "text" }, this.tip), this.maxlength && h("mds-input-tip-item", { key: 'a7b30b5b868a6bace7cd0d7b30e0f96fe43224fd', part: "tip-count", expanded: true, variant: this.countVariant }, this.currentLengthLabel)), this.datalist &&
1502
+ h("datalist", { key: '5753a96f9d2aa97c3eb51914bde29bc71e3fbc5f', id: this.datalistId, class: "datalist" }, this.datalist.map((element, i) => {
1503
1503
  return h("option", { key: i, value: element });
1504
- })), this.icon && !this.await && h("mds-icon", { key: '606f8240dd93ff3bf05cdf96785d56aec5bfa2f5', class: clsx('icon', this.variant), name: this.icon }), h("mds-spinner", { key: '133b80f0f07120b30485846d93bb9d963ca1112f', running: this.await, class: clsx('await', this.variant) })));
1504
+ })), this.icon && !this.await && h("mds-icon", { key: '484d5c098586eaa85100b6af0190b5a4e5cf7d71', class: clsx('icon', this.variant), name: this.icon }), h("mds-spinner", { key: 'e9efc775f0d5cbfa3cd0d5448c7aeed7ad0f1213', running: this.await, class: clsx('await', this.variant) })));
1505
1505
  }
1506
1506
  static get formAssociated() { return true; }
1507
1507
  get el() { return getElement(this); }
@@ -3,4 +3,4 @@ var __awaiter=this&&this.__awaiter||function(t,e,r,i){function n(t){return t ins
3
3
  * mustache.js - Logic-less {{mustache}} templates with JavaScript
4
4
  * http://github.com/janl/mustache.js
5
5
  */
6
- var t=Object.prototype.toString;var e=Array.isArray||function e(r){return t.call(r)==="[object Array]"};function r(t){return typeof t==="function"}function i(t){return e(t)?"array":typeof t}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(t,e){return t!=null&&typeof t==="object"&&e in t}function a(t,e){return t!=null&&typeof t!=="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var s=RegExp.prototype.test;function d(t,e){return s.call(t,e)}var h=/\S/;function u(t){return!d(h,t)}var c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function l(t){return String(t).replace(/[&<>"'`=\/]/g,(function t(e){return c[e]}))}var p=/\s*/;var f=/\s+/;var m=/\s*=/;var v=/\s*\}/;var b=/#|\^|\/|>|\{|&|=|!/;function g(t,r){if(!t)return[];var i=false;var o=[];var a=[];var s=[];var d=false;var h=false;var c="";var l=0;function g(){if(d&&!h){while(s.length)delete a[s.pop()]}else{s=[]}d=false;h=false}var k,T,M;function V(t){if(typeof t==="string")t=t.split(f,2);if(!e(t)||t.length!==2)throw new Error("Invalid tags: "+t);k=new RegExp(n(t[0])+"\\s*");T=new RegExp("\\s*"+n(t[1]));M=new RegExp("\\s*"+n("}"+t[1]))}V(r||z.tags);var I=new x(t);var P,O,A,E,L,$;while(!I.eos()){P=I.pos;A=I.scanUntil(k);if(A){for(var B=0,C=A.length;B<C;++B){E=A.charAt(B);if(u(E)){s.push(a.length);c+=E}else{h=true;i=true;c+=" "}a.push(["text",E,P,P+1]);P+=1;if(E==="\n"){g();c="";l=0;i=false}}}if(!I.scan(k))break;d=true;O=I.scan(b)||"name";I.scan(p);if(O==="="){A=I.scanUntil(m);I.scan(m);I.scanUntil(T)}else if(O==="{"){A=I.scanUntil(M);I.scan(v);I.scanUntil(T);O="&"}else{A=I.scanUntil(T)}if(!I.scan(T))throw new Error("Unclosed tag at "+I.pos);if(O==">"){L=[O,A,P,I.pos,c,l,i]}else{L=[O,A,P,I.pos]}l++;a.push(L);if(O==="#"||O==="^"){o.push(L)}else if(O==="/"){$=o.pop();if(!$)throw new Error('Unopened section "'+A+'" at '+P);if($[1]!==A)throw new Error('Unclosed section "'+$[1]+'" at '+P)}else if(O==="name"||O==="{"||O==="&"){h=true}else if(O==="="){V(A)}}g();$=o.pop();if($)throw new Error('Unclosed section "'+$[1]+'" at '+I.pos);return w(y(a))}function y(t){var e=[];var r,i;for(var n=0,o=t.length;n<o;++n){r=t[n];if(r){if(r[0]==="text"&&i&&i[0]==="text"){i[1]+=r[1];i[3]=r[3]}else{e.push(r);i=r}}}return e}function w(t){var e=[];var r=e;var i=[];var n,o;for(var a=0,s=t.length;a<s;++a){n=t[a];switch(n[0]){case"#":case"^":r.push(n);i.push(n);r=n[4]=[];break;case"/":o=i.pop();o[5]=n[2];r=i.length>0?i[i.length-1][4]:e;break;default:r.push(n)}}return e}function x(t){this.string=t;this.tail=t;this.pos=0}x.prototype.eos=function t(){return this.tail===""};x.prototype.scan=function t(e){var r=this.tail.match(e);if(!r||r.index!==0)return"";var i=r[0];this.tail=this.tail.substring(i.length);this.pos+=i.length;return i};x.prototype.scanUntil=function t(e){var r=this.tail.search(e),i;switch(r){case-1:i=this.tail;this.tail="";break;case 0:i="";break;default:i=this.tail.substring(0,r);this.tail=this.tail.substring(r)}this.pos+=i.length;return i};function k(t,e){this.view=t;this.cache={".":this.view};this.parent=e}k.prototype.push=function t(e){return new k(e,this)};k.prototype.lookup=function t(e){var i=this.cache;var n;if(i.hasOwnProperty(e)){n=i[e]}else{var s=this,d,h,u,c=false;while(s){if(e.indexOf(".")>0){d=s.view;h=e.split(".");u=0;while(d!=null&&u<h.length){if(u===h.length-1)c=o(d,h[u])||a(d,h[u]);d=d[h[u++]]}}else{d=s.view[e];c=o(s.view,e)}if(c){n=d;break}s=s.parent}i[e]=n}if(r(n))n=n.call(this.view);return n};function T(){this.templateCache={_cache:{},set:function t(e,r){this._cache[e]=r},get:function t(e){return this._cache[e]},clear:function t(){this._cache={}}}}T.prototype.clearCache=function t(){if(typeof this.templateCache!=="undefined"){this.templateCache.clear()}};T.prototype.parse=function t(e,r){var i=this.templateCache;var n=e+":"+(r||z.tags).join(":");var o=typeof i!=="undefined";var a=o?i.get(n):undefined;if(a==undefined){a=g(e,r);o&&i.set(n,a)}return a};T.prototype.render=function t(e,r,i,n){var o=this.getConfigTags(n);var a=this.parse(e,o);var s=r instanceof k?r:new k(r,undefined);return this.renderTokens(a,s,i,e,n)};T.prototype.renderTokens=function t(e,r,i,n,o){var a="";var s,d,h;for(var u=0,c=e.length;u<c;++u){h=undefined;s=e[u];d=s[0];if(d==="#")h=this.renderSection(s,r,i,n,o);else if(d==="^")h=this.renderInverted(s,r,i,n,o);else if(d===">")h=this.renderPartial(s,r,i,o);else if(d==="&")h=this.unescapedValue(s,r);else if(d==="name")h=this.escapedValue(s,r,o);else if(d==="text")h=this.rawValue(s);if(h!==undefined)a+=h}return a};T.prototype.renderSection=function t(i,n,o,a,s){var d=this;var h="";var u=n.lookup(i[1]);function c(t){return d.render(t,n,o,s)}if(!u)return;if(e(u)){for(var l=0,p=u.length;l<p;++l){h+=this.renderTokens(i[4],n.push(u[l]),o,a,s)}}else if(typeof u==="object"||typeof u==="string"||typeof u==="number"){h+=this.renderTokens(i[4],n.push(u),o,a,s)}else if(r(u)){if(typeof a!=="string")throw new Error("Cannot use higher-order sections without the original template");u=u.call(n.view,a.slice(i[3],i[5]),c);if(u!=null)h+=u}else{h+=this.renderTokens(i[4],n,o,a,s)}return h};T.prototype.renderInverted=function t(r,i,n,o,a){var s=i.lookup(r[1]);if(!s||e(s)&&s.length===0)return this.renderTokens(r[4],i,n,o,a)};T.prototype.indentPartial=function t(e,r,i){var n=r.replace(/[^ \t]/g,"");var o=e.split("\n");for(var a=0;a<o.length;a++){if(o[a].length&&(a>0||!i)){o[a]=n+o[a]}}return o.join("\n")};T.prototype.renderPartial=function t(e,i,n,o){if(!n)return;var a=this.getConfigTags(o);var s=r(n)?n(e[1]):n[e[1]];if(s!=null){var d=e[6];var h=e[5];var u=e[4];var c=s;if(h==0&&u){c=this.indentPartial(s,u,d)}var l=this.parse(c,a);return this.renderTokens(l,i,n,c,o)}};T.prototype.unescapedValue=function t(e,r){var i=r.lookup(e[1]);if(i!=null)return i};T.prototype.escapedValue=function t(e,r,i){var n=this.getConfigEscape(i)||z.escape;var o=r.lookup(e[1]);if(o!=null)return typeof o==="number"&&n===z.escape?String(o):n(o)};T.prototype.rawValue=function t(e){return e[1]};T.prototype.getConfigTags=function t(r){if(e(r)){return r}else if(r&&typeof r==="object"){return r.tags}else{return undefined}};T.prototype.getConfigEscape=function t(r){if(r&&typeof r==="object"&&!e(r)){return r.escape}else{return undefined}};var z={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:undefined,escape:undefined,parse:undefined,render:undefined,Scanner:undefined,Context:undefined,Writer:undefined,set templateCache(t){M.templateCache=t},get templateCache(){return M.templateCache}};var M=new T;z.clearCache=function t(){return M.clearCache()};z.parse=function t(e,r){return M.parse(e,r)};z.render=function t(e,r,n,o){if(typeof e!=="string"){throw new TypeError('Invalid template! Template should be a "string" '+'but "'+i(e)+'" was given as the first '+"argument for mustache#render(template, view, partials)")}return M.render(e,r,n,o)};z.escape=l;z.Scanner=x;z.Context=k;z.Writer=T;return z}))})(mustache);var Locale=function(){function t(t){var e=this;this.rollbackLanguage="en";this.set=function(t){e.config=t};this.lang=function(t){e.element=t;e.closestElement=e.element.closest("[lang]");if(e.closestElement){if(e.closestElement.lang){e.language=e.closestElement.lang;return e.language}}e.language=e.rollbackLanguage;return e.language};this.update=function(t){var r=t!==null&&t!==void 0?t:e.element.shadowRoot;if(r){r.querySelectorAll("*").forEach((function(t){if(t.tagName.toLowerCase().startsWith("mds-")){if(t&&"updateLang"in t){t.updateLang()}}}))}};this.pluralize=function(t,r){var i=e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t];var n=[];if(Array.isArray(i)){n.push(i[0]);n.push(i[1])}else{n.push(i);n.push(i)}var o=n[0];var a=o;var s=Object.keys(r);if(s.length>0){var d=s[0];if(typeof r[d]==="number"){if(r[d]!==1){a=n[1]}}}return mustache.exports.render(a,r)};this.get=function(t,r){if(r){return e.pluralize(t,r)}return e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t]};if(t){this.set(t)}}return t}();var decrease$3="Μείωση";var hidePassword$3="Απόκρυψη κωδικού";var increase$3="Αύξηση";var showPassword$3="Εμφάνιση κωδικού";var speechToTextError$3="Η φωνητική υπαγόρευση δεν υποστηρίζεται από αυτό το πρόγραμμα περιήγησης";var speechToTextOff$3="Διακοπή φωνητικής υπαγόρευσης";var speechToTextOn$3="Έναρξη φωνητικής υπαγόρευσης";var localeEl={decrease:decrease$3,hidePassword:hidePassword$3,increase:increase$3,showPassword:showPassword$3,speechToTextError:speechToTextError$3,speechToTextOff:speechToTextOff$3,speechToTextOn:speechToTextOn$3};var decrease$2="Decrease";var hidePassword$2="Hide password";var increase$2="Increase";var showPassword$2="Show password";var speechToTextError$2="Voice dictation is not supported by this browser";var speechToTextOff$2="Stop voice dictation";var speechToTextOn$2="Start voice dictation";var localeEn={decrease:decrease$2,hidePassword:hidePassword$2,increase:increase$2,showPassword:showPassword$2,speechToTextError:speechToTextError$2,speechToTextOff:speechToTextOff$2,speechToTextOn:speechToTextOn$2};var decrease$1="Disminuir";var hidePassword$1="Ocultar contraseña";var increase$1="Aumentar";var showPassword$1="Mostrar contraseña";var speechToTextError$1="El dictado por voz no es compatible con este navegador";var speechToTextOff$1="Detener dictado por voz";var speechToTextOn$1="Iniciar dictado por voz";var localeEs={decrease:decrease$1,hidePassword:hidePassword$1,increase:increase$1,showPassword:showPassword$1,speechToTextError:speechToTextError$1,speechToTextOff:speechToTextOff$1,speechToTextOn:speechToTextOn$1};var decrease="Diminuisci";var hidePassword="Nascondi password";var increase="Aumenta";var showPassword="Visualizza password";var speechToTextError="Dettatura vocale non supportata da questo browser";var speechToTextOff="Ferma dettatura vocale";var speechToTextOn="Inizia dettatura vocale";var localeIt={decrease:decrease,hidePassword:hidePassword,increase:increase,showPassword:showPassword,speechToTextError:speechToTextError,speechToTextOff:speechToTextOff,speechToTextOn:speechToTextOn};var NullValidator=function(){return null};var requiredValidor=function(t){return t.length>0?null:{required:""}};var maxValidator=function(t){return function(e){if(e===""||t===null){return null}var r=parseFloat(e);return!isNaN(r)&&r>t?{max:"valore massimo ".concat(t)}:null}};var minValidator=function(t){return function(e){if(e===""||t===null){return null}var r=parseFloat(e);return!isNaN(r)&&r<t?{min:"valore minimo ".concat(t)}:null}};var maxLenghtValidator=function(t){return function(e){if(e===""||t===null){return null}return e.length>t?{minLenght:"La lunghezza massima accettata è ".concat(t)}:null}};var minLenghtValidator=function(t){return function(e){if(e===""||t===null){return null}return e.length<t?{minLenght:"La lunghezza minima accettata è ".concat(t)}:null}};var isbnValidatorFn=function(t){if(t==="")return null;if(Number.isNaN(t.slice(0,-1))||t.length!==10&&t.length!==13)return{"isbn-error":"formato isbn non correto"};var e=t.split("").map((function(t){return t==="X"?10:Number(t)}));var r=0;if(t.length===10){var i=e.reduce((function(t,e,r){return t+(10-r)*e}),0);r=i%11}else{var i=e.reduce((function(t,e,r){var i=r%2===0?1:3;return t+e*i}),0);r=i%10}return r===0?null:{"isbn-error":"codice isbn non valido"}};var Validator=function(){function t(){this._validators=[];this._errors=null;this.isValid=true}t.prototype.addValidator=function(t){var e;if(Array.isArray(t)){(e=this._validators).push.apply(e,t)}else{this._validators.push(t)}};t.prototype._hasValidator=function(t,e){return Array.isArray(t)?t.includes(e):t===e};t.prototype.hasValidator=function(t){return t?this._hasValidator(this._validators,t):this._validators.length>0};t.prototype.removeValidator=function(t){var e=this;this._validators=this._validators.filter((function(r){return!e._hasValidator(t,r)}))};t.prototype.validate=function(t){var e=this._validators.map((function(e){return e(t)})).reduce((function(t,e){return Object.assign(Object.assign({},t),e)}),NullValidator);this._errors=Object.keys(e).length===0?null:e;this.isValid=!this._errors};Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:false,configurable:true});return t}();var InputMaskPattern=function(){function t(){}return t}();InputMaskPattern.CF_Regex=/^(?:[A-Z][AEIOU][AEIOUX]|[AEIOU]X{2}|[B-DF-HJ-NP-TV-Z]{2}[A-Z]){2}(?:[\dLMNP-V]{2}(?:[A-EHLMPR-T](?:[04LQ][1-9MNP-V]|[15MR][\dLMNP-V]|[26NS][0-8LMNP-U])|[DHPS][37PT][0L]|[ACELMRT][37PT][01LM]|[AC-EHLMPR-T][26NS][9V])|(?:[02468LNQSU][048LQU]|[13579MPRTV][26NS])B[26NS][9V])(?:[A-MZ][1-9MNP-V][\dLMNP-V]{2}|[A-M][0L](?:[1-9MNP-V][\dLMNP-V]|[0L][1-9MNP-V]))[A-Z]$/i;InputMaskPattern.CF_MASK="A{6}(99|AA)A(99|AA)A(999|AAA)A";InputMaskPattern.CC_MASK="9999-9999-9999-9999";var InputValidationManager=function(){function t(t){this.validator=new Validator;this.pattern=t}t.prototype.mask=function(t){if(!this.pattern){throw new Error("no pattern found, set pattern before mask")}};t.prototype.isValid=function(t){this.validator.validate(t);return this.validator.isValid};return t}();function createInputValidationManager(t){var e;switch(t){case"tel":e=new InputValidationManager("");break;case"url":e=new InputValidationManager("");break;case"cc":e=new InputValidationManager(InputMaskPattern.CC_MASK);break;case"cf":e=new InputValidationManager(InputMaskPattern.CF_MASK);e.validator.addValidator((function(t){if(t==="")return null;return InputMaskPattern.CF_Regex.test(t)?null:{"cf-regex":"Codice fiscale inserito non corretto"}}));e.validator.addValidator((function(t){if(t==="")return null;return t.length===16?null:{"cf-length":"Codice fiscale deve essere lungo 16 caratteri"}}));break;case"isbn":e=new InputValidationManager;e.validator.addValidator(isbnValidatorFn);break;case"piva":e=new InputValidationManager("");break;default:e=new InputValidationManager("")}return e}var hash=function(t){var e,r;for(e=0,r=0;e<t.length;e++){r=Math.imul(31,r)+t.charCodeAt(e)|0}return r.toString()};var randomInt=function(t){return Math.floor(Math.random()*t)};var hashRandomValue=function(t){var e=randomInt(1e6);if(t){return"".concat(t,"-").concat(hash(e.toString()))}return hash(e.toString())};var mdsInputCss=':host{--mds-input-background:rgb(var(--tone-neutral));--mds-input-icon-color:var(--mds-input-variant-color);--mds-input-placeholder-default-color:rgb(var(--tone-neutral-06));--mds-input-placeholder-focus-color:rgb(var(--tone-neutral-07));--mds-input-placeholder-hover-color:var(--mds-input-placeholder-default-color);--mds-input-ring:0 0 0 1px rgb(var(--mds-input-variant-color) / 0.1);--mds-input-shadow:0 1px 3px 0 rgb(var(--mds-input-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-variant-color) / 0.06);--mds-input-textarea-field-sizing:content;--mds-input-textarea-resize:none;--mds-input-textarea-max-height:16rem;--mds-input-textarea-min-height:6rem;--mds-input-tip-background:84 84 84;--mds-input-variant-color:0 0 0;--mds-input-controls-border:2px solid rgb(var(--tone-neutral-09));--mds-input-controls-color:rgb(var(--tone-neutral-03));min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;gap:0.5rem;container-type:inline-size;display:-ms-flexbox;display:flex;position:relative}:host([typography="detail"]) .input{min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="snippet"]) .input{min-height:1.5rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.input{font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0rem;border-radius:0.5rem;padding-left:1rem;padding-right:1rem;padding-top:0.75rem;padding-bottom:0.75rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-input-background);border:0;-webkit-box-shadow:var(--mds-input-ring), var(--mds-input-shadow);box-shadow:var(--mds-input-ring), var(--mds-input-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:rgb(var(--tone-neutral-02));max-width:100%;min-height:3rem;overflow:hidden;text-overflow:ellipsis;-webkit-transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform, -webkit-box-shadow, -webkit-transform;width:100%}.input::-moz-placeholder{transition-duration:300ms;transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-input-placeholder-default-color);-moz-transition-property:color;transition-property:color}.input::-webkit-input-placeholder{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-input-placeholder-default-color);-webkit-transition-property:color;transition-property:color}.input:-ms-input-placeholder{transition-duration:300ms;transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-input-placeholder-default-color);-ms-transition-property:color;transition-property:color}.input::-ms-input-placeholder{transition-duration:300ms;transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-input-placeholder-default-color);-ms-transition-property:color;transition-property:color}.input::placeholder{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-input-placeholder-default-color);-webkit-transition-property:color;transition-property:color}.input:hover::-moz-placeholder{color:var(--mds-input-placeholder-hover-color)}.input:hover::-webkit-input-placeholder{color:var(--mds-input-placeholder-hover-color)}.input:hover:-ms-input-placeholder{color:var(--mds-input-placeholder-hover-color)}.input:hover::-ms-input-placeholder{color:var(--mds-input-placeholder-hover-color)}.input:hover::placeholder{color:var(--mds-input-placeholder-hover-color)}.input:focus::-moz-placeholder{color:var(--mds-input-placeholder-focus-color)}.input:focus::-webkit-input-placeholder{color:var(--mds-input-placeholder-focus-color)}.input:focus:-ms-input-placeholder{color:var(--mds-input-placeholder-focus-color)}.input:focus::-ms-input-placeholder{color:var(--mds-input-placeholder-focus-color)}.input:focus::placeholder{color:var(--mds-input-placeholder-focus-color)}.input::-webkit-outer-spin-button,.input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;display:none;margin:0}:host textarea.input,:host([typography]) textarea.input{border-bottom-right-radius:0;field-sizing:var(--mds-input-textarea-field-sizing);max-height:var(--mds-input-textarea-max-height);min-height:var(--mds-input-textarea-min-height);overflow:auto;resize:var(--mds-input-textarea-resize)}.input:focus{outline:2px solid transparent;outline-offset:2px;--mds-input-ring:0 0 0 3px rgb(var(--mds-input-variant-color) / 1);--mds-input-shadow:0 4px 6px 3px rgb(var(--mds-input-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-variant-color) / 0.06)}.input:disabled{background-color:rgb(var(--tone-neutral-10))}.input:disabled::-moz-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled::-webkit-input-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled:-ms-input-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled::-ms-input-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled,.input:disabled::placeholder{color:rgb(var(--tone-neutral-05))}.input.has-icon{padding-left:2.75rem}.input.has-right-icon{padding-right:2.75rem}.await,.icon{left:0.75rem;top:0.75rem;fill:rgb(var(--mds-input-icon-color));position:absolute}.await{color:rgb(var(--mds-input-icon-color));height:24px;width:24px}.counter{border-left:var(--mds-input-controls-border);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:0;position:absolute;right:0}.counter-button{height:1.5rem;width:1.75rem;border-radius:0.5rem;--mds-button-background:transparent;border:0;fill:var(--mds-input-controls-color);min-height:0;padding:0}.counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-09))}.counter .counter-button:first-child{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.counter .counter-button:last-child{border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:0}.counter-button--horizontal{height:3rem;width:3rem;bottom:0;position:absolute;top:0}.counter-button--decrease{border-bottom-right-radius:0;border-right:var(--mds-input-controls-border);border-top-right-radius:0;left:0}.counter-button--increase{border-bottom-left-radius:0;border-left:var(--mds-input-controls-border);border-top-left-radius:0;right:0}.password-toggle-button{top:0.375rem;right:0.375rem;fill:var(--mds-input-controls-color);position:absolute}.mic-toggle-button{top:0.375rem;right:0.375rem;fill:var(--mds-input-controls-color);position:absolute}.toggle-button--error{cursor:help;fill:rgb(var(--tone-neutral-06))}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.mic-toggle-button--recording{-webkit-animation:pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;animation:pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite}:host([type="number"]) .input{-moz-appearance:textfield;padding-right:2rem}:host([type="number"][controls-layout="horizontal"]) .input{padding-left:3.5rem;padding-right:3.5rem;text-align:center}:host([type="number"][controls-layout="horizontal"][icon]) .input{padding-left:6rem;text-align:left}:host([type="number"][controls-layout="horizontal"]) .icon{left:3.75rem}:host([type="password"]) .input{padding-right:2.5rem}:host([type="password"]) .input[type="password"]:not(:-moz-placeholder-shown){font-size:3rem;max-height:3rem}:host([type="password"]) .input[type="password"]:not(:-ms-input-placeholder){font-size:3rem;max-height:3rem}:host([type="password"]) .input[type="password"]:not(:placeholder-shown){font-size:3rem;max-height:3rem}:host([type="password"]) .input[type="text"]:not(:-moz-placeholder-shown){min-height:1.5rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([type="password"]) .input[type="text"]:not(:-ms-input-placeholder){min-height:1.5rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([type="password"]) .input[type="text"]:not(:placeholder-shown){min-height:1.5rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([type="cf"]) .input{min-height:1.5rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:uppercase}:host{--mds-input-icon-color:var(--variant-primary-03);--mds-input-variant-color:0 0 0}:host(:focus){--mds-input-variant-color:var(--variant-primary-04)}:host([variant="ai"]){--mds-input-icon-color:var(--variant-ai-05);--mds-input-tip-background:var(--variant-ai-05);--mds-input-variant-color:0 0 0}:host([variant="ai"]:focus){--mds-input-icon-color:var(--variant-ai-04);--mds-input-variant-color:var(--variant-ai-05)}:host([variant="info"]){--mds-input-icon-color:var(--status-info-05);--mds-input-tip-background:var(--status-info-05);--mds-input-variant-color:0 0 0}:host([variant="info"]:focus){--mds-input-icon-color:var(--status-info-04);--mds-input-variant-color:var(--status-info-05)}:host([variant="success"]){--mds-input-icon-color:var(--status-success-05);--mds-input-tip-background:var(--status-success-05);--mds-input-variant-color:0 0 0}:host([variant="success"]:focus){--mds-input-icon-color:var(--status-success-04);--mds-input-variant-color:var(--status-success-05)}:host([variant="warning"]){--mds-input-icon-color:var(--status-warning-05);--mds-input-tip-background:var(--status-warning-05);--mds-input-variant-color:0 0 0}:host([variant="warning"]:focus){--mds-input-icon-color:var(--status-warning-04);--mds-input-variant-color:var(--status-warning-05)}:host([variant="error"]){--mds-input-icon-color:var(--status-error-05);--mds-input-tip-background:var(--status-error-05);--mds-input-variant-color:0 0 0}:host([variant="error"]:focus){--mds-input-icon-color:var(--status-error-04);--mds-input-variant-color:var(--status-error-05)}:host-context(.pref-animation-reduce) .input{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system) .input{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-background:rgb(var(--tone-neutral-09));--mds-input-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-dark) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-background:rgb(var(--tone-neutral-09));--mds-input-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-system) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}}:host-context(.pref-contrast-more){--mds-input-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-background:rgb(var(--tone-neutral-09));--mds-input-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-input-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-background:rgb(var(--tone-neutral-09));--mds-input-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';var MdsInputStyle0=mdsInputCss;var MdsInput=function(){function t(t){var e=this;registerInstance(this,t);this.changeEvent=createEvent(this,"mdsInputChange",7);this.keyDownEvent=createEvent(this,"mdsInputKeydown",7);this.blurEvent=createEvent(this,"mdsInputBlur",7);this.focusEvent=createEvent(this,"mdsInputFocus",7);this.speechEvent=createEvent(this,"mdsInputSpeechEnd",7);this.validationEvent=createEvent(this,"mdsInputValidation",7);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.speechToTextIcon=miOutlineMic;this.hasFocus=false;this.isRecording=false;this.countVariant="count-empty";this.isPasswordVisible=false;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});this.autocomplete="off";this.autofocus=false;this.await=false;this.controlsLayout="vertical";this.controlsIcon="arrow";this.controlIncreaseLabel="Aumenta";this.controlDecreaseLabel="Riduci";this.disabled=false;this.readonly=false;this.required=false;this.variant="primary";this.type="text";this.typography="detail";this.value="";this.countMaxLength=function(){var t,r,i;if(!e.maxlength)return;if(e.value===undefined)return;e.currentLengthLabel="".concat((r=(t=e.value)===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0," / ").concat(e.maxlength);var n=Math.round(e.value.length*100/e.maxlength);if(((i=e.value)===null||i===void 0?void 0:i.length)===e.maxlength){e.countVariant="count-full";return}if(n>=100){e.countVariant="count-full";return}if(n>=75){e.countVariant="count-almost-full";return}if(n>=50){e.countVariant="count-almost";return}if(n>=25){e.countVariant="count-incomplete";return}e.countVariant="count-empty"};this.onInput=function(t){var r=t.target;if(r){e.value=r.value;e.internals.setFormValue(e.value)}e.keyDownEvent.emit(t)};this.onBlur=function(){e.hasFocus=false;e.validateInput();e.blurEvent.emit()};this.onFocus=function(t){var r=t.target;e.hasFocus=true;e.focusEvent.emit();if(e.readonly){setTimeout((function(){r.select()}),10)}};this.stepUp=function(){if(e.nativeInput&&!e.readonly&&!e.disabled){e.nativeInput.stepUp();e.value=e.nativeInput.value}};this.stepDown=function(){if(e.nativeInput&&!e.readonly&&!e.disabled){e.nativeInput.stepDown();e.value=e.nativeInput.value}};this.toggleTextRecognition=function(){e.isRecording=!e.isRecording;if(!e.isRecording){e.speechToTextLabel=e.t.get("speechToTextOn");e.speechToTextIcon=miOutlineMic;e.stopRecognition();return}e.speechToTextLabel=e.t.get("speechToTextOff");e.speechToTextIcon=miBaselineDone;e.startRecognition()};this.onSpeechRecognitionError=function(){console.error("SpeechRecognition API may not work properly on Chrome based browsers.");e.speechButton.classList.remove("mic-toggle-button--recording");e.speechButton.classList.add("toggle-button--error");e.isRecording=false;e.speechToTextLabel=e.t.get("speechToTextError");e.speechToTextIcon=miOutlineMicOff};this.startRecognition=function(){var t,r,i;if(!e.speechButton){e.speechButton=(r=(t=e.el)===null||t===void 0?void 0:t.shadowRoot)===null||r===void 0?void 0:r.querySelector(".mic-toggle-button")}var n=(i=window.SpeechRecognition)!==null&&i!==void 0?i:window.webkitSpeechRecognition;e.value="";if(!n){e.onSpeechRecognitionError();return}e.recognition=new n;e.recognition.continuous=true;e.recognition.lang=navigator.language||"it-IT";e.recognition.interimResults=true;e.recognition.maxAlternatives=1;var o="";var a=0;e.recognition.onresult=function(t){var r=t.results;var i=r[a];if(i.isFinal){o+=i[0].transcript;e.value=o;a+=1;return}e.value=o+i[0].transcript};e.recognition.onerror=function(t){console.error("SpeechRecognition API error:",t.error);e.onSpeechRecognitionError()};e.recognition.start()};this.stopRecognition=function(){if(e.recognition){e.recognition.stop();e.speechEvent.emit()}}}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.el);this.t.update();return[2]}))}))};t.prototype.formResetCallback=function(){this.internals.setFormValue("")};t.prototype.connectedCallback=function(){this.datalistId="datalist-".concat(hashRandomValue())};t.prototype.componentWillLoad=function(){var t;this.language=this.t.lang(this.el);this.speechToTextLabel=this.t.get("speechToTextOn");if(this.el.hasAttribute("tabindex")){var e=this.el.getAttribute("tabindex");this.tabindex=e!==null?parseInt(e):undefined;this.el.removeAttribute("tabindex")}this.internals.setFormValue((t=this.value)!==null&&t!==void 0?t:null);this.maxLengthChanged(this.maxlength);this.isValid=!(this.required&&this.value==="")};t.prototype.componentDidLoad=function(){var t,e,r;this.inputValidation=createInputValidationManager(this.type);this.setValidators();(t=this.nativeInput)===null||t===void 0?void 0:t.setAttribute("pattern",String(this.inputValidation.pattern));if(this.autofocus){(e=this.nativeInput)===null||e===void 0?void 0:e.focus()}this.variantChanged((r=this.variant)!==null&&r!==void 0?r:"primary")};t.prototype.setValidators=function(){if(this.required)this.inputValidation.validator.addValidator(requiredValidor);if(this.max!==""&&Number(this.max))this.inputValidation.validator.addValidator(maxValidator(Number(this.max)));if(this.min!==""&&Number(this.min))this.inputValidation.validator.addValidator(minValidator(Number(this.max)));if(this.maxlength)this.inputValidation.validator.addValidator(maxLenghtValidator(this.maxlength));if(this.minlength)this.inputValidation.validator.addValidator(minLenghtValidator(this.minlength))};t.prototype.valueChanged=function(){var t;this.changeEvent.emit({value:this.value});this.internals.setFormValue((t=this.value)!==null&&t!==void 0?t:null);if(this.maxlength!==undefined){this.countMaxLength()}if(this.value==="")return;if(!this.isValid)this.validateInput()};t.prototype.variantChanged=function(t){if(t==="ai"&&this.icon===undefined){this.icon=mggAiChatbotOutline}};t.prototype.maxLengthChanged=function(t){if(t===undefined)return;if(t<=0){this.maxlength=undefined;return}this.countMaxLength()};t.prototype.addValidator=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.inputValidation.validator.addValidator(t);return[2,Promise.resolve()]}))}))};t.prototype.removeValidator=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.inputValidation.validator.removeValidator(t);return[2]}))}))};t.prototype.hasValidator=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.inputValidation.validator.hasValidator(t)]}))}))};t.prototype.getErrors=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Promise.resolve(this.inputValidation.validator.errors)]}))}))};t.prototype.validateInput=function(){if(this.inputValidation.validator.hasValidator()){this.isValid=this.inputValidation.isValid(this.value);if(this.value===""&&!this.required)this.variant="primary";else this.variant=this.isValid?"success":"error";this.validationEvent.emit(this.isValid)}return this.isValid};t.prototype.disabledChanged=function(t){if(t){this.internals.setFormValue(null)}};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeInput){this.nativeInput.focus()}return[2]}))}))};t.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};t.prototype.componentWillRender=function(){this.t.lang(this.el)};t.prototype.render=function(){var t=this;var e,r;return h(Host,{key:"37a82d87e412a45a2d7564860f7d595764fee556"},this.type==="number"&&this.controlsLayout==="horizontal"&&h("mds-button",{key:"6bd04aec103d606aac4c172a31be7fb2b341563d",class:"counter-button counter-button--horizontal counter-button--decrease",icon:this.controlsIcon==="arrow"?miBaselineArrowDown:miBaselineRemove,onClick:this.stepDown,tabindex:"0",title:this.t.get("decrease"),part:"counter-button-decrease"}),this.type==="textarea"?h("textarea",{class:clsx("input",((e=this.icon)!==null&&e!==void 0?e:this.await)&&"has-icon",this.mic&&"has-right-icon"),autoFocus:this.autofocus,disabled:this.disabled,maxLength:this.maxlength,minLength:this.minlength,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.onInput,part:"field",placeholder:this.placeholder,readOnly:this.readonly,ref:function(e){return t.nativeInput=e},required:this.required,tabIndex:this.tabindex,value:this.value}):h("input",{class:clsx("input",((r=this.icon)!==null&&r!==void 0?r:this.await)&&"has-icon",this.mic&&"has-right-icon"),autoComplete:this.autocomplete,autoFocus:this.autofocus,disabled:this.disabled,max:this.max,maxLength:this.maxlength,min:this.min,minLength:this.minlength,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.onInput,pattern:this.pattern,list:this.datalistId,part:"field",placeholder:this.placeholder,readOnly:this.readonly,ref:function(e){return t.nativeInput=e},required:this.required,step:this.step,tabIndex:this.tabindex,type:this.type==="password"&&this.isPasswordVisible?"text":this.type,value:this.value}),this.type==="number"&&this.controlsLayout==="vertical"&&h("div",{key:"2ce0de98e1f0547b5daa743189a13080d73cba31",class:"counter counter--vertical"},h("mds-button",{key:"9ec2a7d8019366e70a8aebf488ec807716aac352",class:"counter-button",icon:this.controlsIcon==="arrow"?miBaselineArrowUp:miBaselineAdd,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),part:"counter-button-increase"}),h("mds-button",{key:"55f008a250a94496113e22a02e7ca2eeb4f7867f",class:"counter-button",icon:this.controlsIcon==="arrow"?miBaselineArrowDown:miBaselineRemove,onClick:this.stepDown,tabindex:"0",title:this.t.get("decrease"),part:"counter-button-decrease"})),this.type==="number"&&this.controlsLayout==="horizontal"&&h("mds-button",{key:"fbb1723f79b1b17dceafb543b0524a9bc457f76b",class:"counter-button counter-button--horizontal counter-button--increase",icon:this.controlsIcon==="arrow"?miBaselineArrowUp:miBaselineAdd,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),part:"counter-button-increase"}),this.type==="password"&&h("mds-button",{key:"cbd5545565544f2bedbf29d8746240790d8db257",class:"password-toggle-button",icon:this.isPasswordVisible?miBaselineVisibleOff:miBaselineVisible,onClick:function(){return t.isPasswordVisible=!t.isPasswordVisible},tabindex:"0",tone:"quiet",title:this.isPasswordVisible?this.t.get("hidePassword"):this.t.get("showPassword"),part:"password-toggle-button"}),this.mic&&h("mds-button",{key:"805f84eb8e0079d938c441f9f028648dcf8efcab",class:clsx("mic-toggle-button",this.isRecording&&"mic-toggle-button--recording"),icon:this.speechToTextIcon,onClick:function(){return t.toggleTextRecognition()},tabindex:"0",variant:"dark",tone:"quiet",title:this.speechToTextLabel,part:"mic-toggle-button"}),h("mds-input-tip",{key:"a94febae08842c64ee0f573738e4962b653ca539",lang:this.language,position:"top",active:this.hasFocus,part:"tip-top"},this.disabled&&h("mds-input-tip-item",{key:"33319e21a25524b0f4304ea736ccc20a7286edf3",expanded:true,variant:"disabled"}),this.readonly&&h("mds-input-tip-item",{key:"20d3641f406da2b33ea64b4dac9e990041952e3a",expanded:true,variant:"readonly"}),this.required&&h("mds-input-tip-item",{key:"85a47f7e5948246165dfa291e54286704fa1b3fe",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),h("mds-input-tip",{key:"1263940f43227eb5d5d051d3d0502aaa815a3636",lang:this.language,position:"bottom",active:this.hasFocus,part:"tip-bottom"},this.tip&&h("mds-input-tip-item",{key:"2857a15bdd167a3c96dd1bc29b05dc4367c60b02",expanded:true,variant:"text"},this.tip),this.maxlength&&h("mds-input-tip-item",{key:"5d648cccc76697d7f5b2e43b866c083a2e1f6fb5",part:"tip-count",expanded:true,variant:this.countVariant},this.currentLengthLabel)),this.datalist&&h("datalist",{key:"61ed22d7c6244498362c15bc42853c0e8cb6ec76",id:this.datalistId,class:"datalist"},this.datalist.map((function(t,e){return h("option",{key:e,value:t})}))),this.icon&&!this.await&&h("mds-icon",{key:"606f8240dd93ff3bf05cdf96785d56aec5bfa2f5",class:clsx("icon",this.variant),name:this.icon}),h("mds-spinner",{key:"133b80f0f07120b30485846d93bb9d963ca1112f",running:this.await,class:clsx("await",this.variant)}))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"],variant:["variantChanged"],maxlength:["maxLengthChanged"],disabled:["disabledChanged"]}},enumerable:false,configurable:true});return t}();MdsInput.style=MdsInputStyle0;export{MdsInput as mds_input};
6
+ var t=Object.prototype.toString;var e=Array.isArray||function e(r){return t.call(r)==="[object Array]"};function r(t){return typeof t==="function"}function i(t){return e(t)?"array":typeof t}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(t,e){return t!=null&&typeof t==="object"&&e in t}function a(t,e){return t!=null&&typeof t!=="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var s=RegExp.prototype.test;function d(t,e){return s.call(t,e)}var h=/\S/;function u(t){return!d(h,t)}var c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function l(t){return String(t).replace(/[&<>"'`=\/]/g,(function t(e){return c[e]}))}var p=/\s*/;var f=/\s+/;var m=/\s*=/;var v=/\s*\}/;var b=/#|\^|\/|>|\{|&|=|!/;function g(t,r){if(!t)return[];var i=false;var o=[];var a=[];var s=[];var d=false;var h=false;var c="";var l=0;function g(){if(d&&!h){while(s.length)delete a[s.pop()]}else{s=[]}d=false;h=false}var k,T,M;function V(t){if(typeof t==="string")t=t.split(f,2);if(!e(t)||t.length!==2)throw new Error("Invalid tags: "+t);k=new RegExp(n(t[0])+"\\s*");T=new RegExp("\\s*"+n(t[1]));M=new RegExp("\\s*"+n("}"+t[1]))}V(r||z.tags);var I=new x(t);var P,O,A,E,L,$;while(!I.eos()){P=I.pos;A=I.scanUntil(k);if(A){for(var B=0,C=A.length;B<C;++B){E=A.charAt(B);if(u(E)){s.push(a.length);c+=E}else{h=true;i=true;c+=" "}a.push(["text",E,P,P+1]);P+=1;if(E==="\n"){g();c="";l=0;i=false}}}if(!I.scan(k))break;d=true;O=I.scan(b)||"name";I.scan(p);if(O==="="){A=I.scanUntil(m);I.scan(m);I.scanUntil(T)}else if(O==="{"){A=I.scanUntil(M);I.scan(v);I.scanUntil(T);O="&"}else{A=I.scanUntil(T)}if(!I.scan(T))throw new Error("Unclosed tag at "+I.pos);if(O==">"){L=[O,A,P,I.pos,c,l,i]}else{L=[O,A,P,I.pos]}l++;a.push(L);if(O==="#"||O==="^"){o.push(L)}else if(O==="/"){$=o.pop();if(!$)throw new Error('Unopened section "'+A+'" at '+P);if($[1]!==A)throw new Error('Unclosed section "'+$[1]+'" at '+P)}else if(O==="name"||O==="{"||O==="&"){h=true}else if(O==="="){V(A)}}g();$=o.pop();if($)throw new Error('Unclosed section "'+$[1]+'" at '+I.pos);return w(y(a))}function y(t){var e=[];var r,i;for(var n=0,o=t.length;n<o;++n){r=t[n];if(r){if(r[0]==="text"&&i&&i[0]==="text"){i[1]+=r[1];i[3]=r[3]}else{e.push(r);i=r}}}return e}function w(t){var e=[];var r=e;var i=[];var n,o;for(var a=0,s=t.length;a<s;++a){n=t[a];switch(n[0]){case"#":case"^":r.push(n);i.push(n);r=n[4]=[];break;case"/":o=i.pop();o[5]=n[2];r=i.length>0?i[i.length-1][4]:e;break;default:r.push(n)}}return e}function x(t){this.string=t;this.tail=t;this.pos=0}x.prototype.eos=function t(){return this.tail===""};x.prototype.scan=function t(e){var r=this.tail.match(e);if(!r||r.index!==0)return"";var i=r[0];this.tail=this.tail.substring(i.length);this.pos+=i.length;return i};x.prototype.scanUntil=function t(e){var r=this.tail.search(e),i;switch(r){case-1:i=this.tail;this.tail="";break;case 0:i="";break;default:i=this.tail.substring(0,r);this.tail=this.tail.substring(r)}this.pos+=i.length;return i};function k(t,e){this.view=t;this.cache={".":this.view};this.parent=e}k.prototype.push=function t(e){return new k(e,this)};k.prototype.lookup=function t(e){var i=this.cache;var n;if(i.hasOwnProperty(e)){n=i[e]}else{var s=this,d,h,u,c=false;while(s){if(e.indexOf(".")>0){d=s.view;h=e.split(".");u=0;while(d!=null&&u<h.length){if(u===h.length-1)c=o(d,h[u])||a(d,h[u]);d=d[h[u++]]}}else{d=s.view[e];c=o(s.view,e)}if(c){n=d;break}s=s.parent}i[e]=n}if(r(n))n=n.call(this.view);return n};function T(){this.templateCache={_cache:{},set:function t(e,r){this._cache[e]=r},get:function t(e){return this._cache[e]},clear:function t(){this._cache={}}}}T.prototype.clearCache=function t(){if(typeof this.templateCache!=="undefined"){this.templateCache.clear()}};T.prototype.parse=function t(e,r){var i=this.templateCache;var n=e+":"+(r||z.tags).join(":");var o=typeof i!=="undefined";var a=o?i.get(n):undefined;if(a==undefined){a=g(e,r);o&&i.set(n,a)}return a};T.prototype.render=function t(e,r,i,n){var o=this.getConfigTags(n);var a=this.parse(e,o);var s=r instanceof k?r:new k(r,undefined);return this.renderTokens(a,s,i,e,n)};T.prototype.renderTokens=function t(e,r,i,n,o){var a="";var s,d,h;for(var u=0,c=e.length;u<c;++u){h=undefined;s=e[u];d=s[0];if(d==="#")h=this.renderSection(s,r,i,n,o);else if(d==="^")h=this.renderInverted(s,r,i,n,o);else if(d===">")h=this.renderPartial(s,r,i,o);else if(d==="&")h=this.unescapedValue(s,r);else if(d==="name")h=this.escapedValue(s,r,o);else if(d==="text")h=this.rawValue(s);if(h!==undefined)a+=h}return a};T.prototype.renderSection=function t(i,n,o,a,s){var d=this;var h="";var u=n.lookup(i[1]);function c(t){return d.render(t,n,o,s)}if(!u)return;if(e(u)){for(var l=0,p=u.length;l<p;++l){h+=this.renderTokens(i[4],n.push(u[l]),o,a,s)}}else if(typeof u==="object"||typeof u==="string"||typeof u==="number"){h+=this.renderTokens(i[4],n.push(u),o,a,s)}else if(r(u)){if(typeof a!=="string")throw new Error("Cannot use higher-order sections without the original template");u=u.call(n.view,a.slice(i[3],i[5]),c);if(u!=null)h+=u}else{h+=this.renderTokens(i[4],n,o,a,s)}return h};T.prototype.renderInverted=function t(r,i,n,o,a){var s=i.lookup(r[1]);if(!s||e(s)&&s.length===0)return this.renderTokens(r[4],i,n,o,a)};T.prototype.indentPartial=function t(e,r,i){var n=r.replace(/[^ \t]/g,"");var o=e.split("\n");for(var a=0;a<o.length;a++){if(o[a].length&&(a>0||!i)){o[a]=n+o[a]}}return o.join("\n")};T.prototype.renderPartial=function t(e,i,n,o){if(!n)return;var a=this.getConfigTags(o);var s=r(n)?n(e[1]):n[e[1]];if(s!=null){var d=e[6];var h=e[5];var u=e[4];var c=s;if(h==0&&u){c=this.indentPartial(s,u,d)}var l=this.parse(c,a);return this.renderTokens(l,i,n,c,o)}};T.prototype.unescapedValue=function t(e,r){var i=r.lookup(e[1]);if(i!=null)return i};T.prototype.escapedValue=function t(e,r,i){var n=this.getConfigEscape(i)||z.escape;var o=r.lookup(e[1]);if(o!=null)return typeof o==="number"&&n===z.escape?String(o):n(o)};T.prototype.rawValue=function t(e){return e[1]};T.prototype.getConfigTags=function t(r){if(e(r)){return r}else if(r&&typeof r==="object"){return r.tags}else{return undefined}};T.prototype.getConfigEscape=function t(r){if(r&&typeof r==="object"&&!e(r)){return r.escape}else{return undefined}};var z={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:undefined,escape:undefined,parse:undefined,render:undefined,Scanner:undefined,Context:undefined,Writer:undefined,set templateCache(t){M.templateCache=t},get templateCache(){return M.templateCache}};var M=new T;z.clearCache=function t(){return M.clearCache()};z.parse=function t(e,r){return M.parse(e,r)};z.render=function t(e,r,n,o){if(typeof e!=="string"){throw new TypeError('Invalid template! Template should be a "string" '+'but "'+i(e)+'" was given as the first '+"argument for mustache#render(template, view, partials)")}return M.render(e,r,n,o)};z.escape=l;z.Scanner=x;z.Context=k;z.Writer=T;return z}))})(mustache);var Locale=function(){function t(t){var e=this;this.rollbackLanguage="en";this.set=function(t){e.config=t};this.lang=function(t){e.element=t;e.closestElement=e.element.closest("[lang]");if(e.closestElement){if(e.closestElement.lang){e.language=e.closestElement.lang;return e.language}}e.language=e.rollbackLanguage;return e.language};this.update=function(t){var r=t!==null&&t!==void 0?t:e.element.shadowRoot;if(r){r.querySelectorAll("*").forEach((function(t){if(t.tagName.toLowerCase().startsWith("mds-")){if(t&&"updateLang"in t){t.updateLang()}}}))}};this.pluralize=function(t,r){var i=e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t];var n=[];if(Array.isArray(i)){n.push(i[0]);n.push(i[1])}else{n.push(i);n.push(i)}var o=n[0];var a=o;var s=Object.keys(r);if(s.length>0){var d=s[0];if(typeof r[d]==="number"){if(r[d]!==1){a=n[1]}}}return mustache.exports.render(a,r)};this.get=function(t,r){if(r){return e.pluralize(t,r)}return e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t]};if(t){this.set(t)}}return t}();var decrease$3="Μείωση";var hidePassword$3="Απόκρυψη κωδικού";var increase$3="Αύξηση";var showPassword$3="Εμφάνιση κωδικού";var speechToTextError$3="Η φωνητική υπαγόρευση δεν υποστηρίζεται από αυτό το πρόγραμμα περιήγησης";var speechToTextOff$3="Διακοπή φωνητικής υπαγόρευσης";var speechToTextOn$3="Έναρξη φωνητικής υπαγόρευσης";var localeEl={decrease:decrease$3,hidePassword:hidePassword$3,increase:increase$3,showPassword:showPassword$3,speechToTextError:speechToTextError$3,speechToTextOff:speechToTextOff$3,speechToTextOn:speechToTextOn$3};var decrease$2="Decrease";var hidePassword$2="Hide password";var increase$2="Increase";var showPassword$2="Show password";var speechToTextError$2="Voice dictation is not supported by this browser";var speechToTextOff$2="Stop voice dictation";var speechToTextOn$2="Start voice dictation";var localeEn={decrease:decrease$2,hidePassword:hidePassword$2,increase:increase$2,showPassword:showPassword$2,speechToTextError:speechToTextError$2,speechToTextOff:speechToTextOff$2,speechToTextOn:speechToTextOn$2};var decrease$1="Disminuir";var hidePassword$1="Ocultar contraseña";var increase$1="Aumentar";var showPassword$1="Mostrar contraseña";var speechToTextError$1="El dictado por voz no es compatible con este navegador";var speechToTextOff$1="Detener dictado por voz";var speechToTextOn$1="Iniciar dictado por voz";var localeEs={decrease:decrease$1,hidePassword:hidePassword$1,increase:increase$1,showPassword:showPassword$1,speechToTextError:speechToTextError$1,speechToTextOff:speechToTextOff$1,speechToTextOn:speechToTextOn$1};var decrease="Diminuisci";var hidePassword="Nascondi password";var increase="Aumenta";var showPassword="Visualizza password";var speechToTextError="Dettatura vocale non supportata da questo browser";var speechToTextOff="Ferma dettatura vocale";var speechToTextOn="Inizia dettatura vocale";var localeIt={decrease:decrease,hidePassword:hidePassword,increase:increase,showPassword:showPassword,speechToTextError:speechToTextError,speechToTextOff:speechToTextOff,speechToTextOn:speechToTextOn};var NullValidator=function(){return null};var requiredValidor=function(t){return t.length>0?null:{required:""}};var maxValidator=function(t){return function(e){if(e===""||t===null){return null}var r=parseFloat(e);return!isNaN(r)&&r>t?{max:"valore massimo ".concat(t)}:null}};var minValidator=function(t){return function(e){if(e===""||t===null){return null}var r=parseFloat(e);return!isNaN(r)&&r<t?{min:"valore minimo ".concat(t)}:null}};var maxLenghtValidator=function(t){return function(e){if(e===""||t===null){return null}return e.length>t?{minLenght:"La lunghezza massima accettata è ".concat(t)}:null}};var minLenghtValidator=function(t){return function(e){if(e===""||t===null){return null}return e.length<t?{minLenght:"La lunghezza minima accettata è ".concat(t)}:null}};var isbnValidatorFn=function(t){if(t==="")return null;if(Number.isNaN(t.slice(0,-1))||t.length!==10&&t.length!==13)return{"isbn-error":"formato isbn non correto"};var e=t.split("").map((function(t){return t==="X"?10:Number(t)}));var r=0;if(t.length===10){var i=e.reduce((function(t,e,r){return t+(10-r)*e}),0);r=i%11}else{var i=e.reduce((function(t,e,r){var i=r%2===0?1:3;return t+e*i}),0);r=i%10}return r===0?null:{"isbn-error":"codice isbn non valido"}};var Validator=function(){function t(){this._validators=[];this._errors=null;this.isValid=true}t.prototype.addValidator=function(t){var e;if(Array.isArray(t)){(e=this._validators).push.apply(e,t)}else{this._validators.push(t)}};t.prototype._hasValidator=function(t,e){return Array.isArray(t)?t.includes(e):t===e};t.prototype.hasValidator=function(t){return t?this._hasValidator(this._validators,t):this._validators.length>0};t.prototype.removeValidator=function(t){var e=this;this._validators=this._validators.filter((function(r){return!e._hasValidator(t,r)}))};t.prototype.validate=function(t){var e=this._validators.map((function(e){return e(t)})).reduce((function(t,e){return Object.assign(Object.assign({},t),e)}),NullValidator);this._errors=Object.keys(e).length===0?null:e;this.isValid=!this._errors};Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:false,configurable:true});return t}();var InputMaskPattern=function(){function t(){}return t}();InputMaskPattern.CF_Regex=/^(?:[A-Z][AEIOU][AEIOUX]|[AEIOU]X{2}|[B-DF-HJ-NP-TV-Z]{2}[A-Z]){2}(?:[\dLMNP-V]{2}(?:[A-EHLMPR-T](?:[04LQ][1-9MNP-V]|[15MR][\dLMNP-V]|[26NS][0-8LMNP-U])|[DHPS][37PT][0L]|[ACELMRT][37PT][01LM]|[AC-EHLMPR-T][26NS][9V])|(?:[02468LNQSU][048LQU]|[13579MPRTV][26NS])B[26NS][9V])(?:[A-MZ][1-9MNP-V][\dLMNP-V]{2}|[A-M][0L](?:[1-9MNP-V][\dLMNP-V]|[0L][1-9MNP-V]))[A-Z]$/i;InputMaskPattern.CF_MASK="A{6}(99|AA)A(99|AA)A(999|AAA)A";InputMaskPattern.CC_MASK="9999-9999-9999-9999";var InputValidationManager=function(){function t(t){this.validator=new Validator;this.pattern=t}t.prototype.mask=function(t){if(!this.pattern){throw new Error("no pattern found, set pattern before mask")}};t.prototype.isValid=function(t){this.validator.validate(t);return this.validator.isValid};return t}();function createInputValidationManager(t){var e;switch(t){case"tel":e=new InputValidationManager("");break;case"url":e=new InputValidationManager("");break;case"cc":e=new InputValidationManager(InputMaskPattern.CC_MASK);break;case"cf":e=new InputValidationManager(InputMaskPattern.CF_MASK);e.validator.addValidator((function(t){if(t==="")return null;return InputMaskPattern.CF_Regex.test(t)?null:{"cf-regex":"Codice fiscale inserito non corretto"}}));e.validator.addValidator((function(t){if(t==="")return null;return t.length===16?null:{"cf-length":"Codice fiscale deve essere lungo 16 caratteri"}}));break;case"isbn":e=new InputValidationManager;e.validator.addValidator(isbnValidatorFn);break;case"piva":e=new InputValidationManager("");break;default:e=new InputValidationManager("")}return e}var hash=function(t){var e,r;for(e=0,r=0;e<t.length;e++){r=Math.imul(31,r)+t.charCodeAt(e)|0}return r.toString()};var randomInt=function(t){return Math.floor(Math.random()*t)};var hashRandomValue=function(t){var e=randomInt(1e6);if(t){return"".concat(t,"-").concat(hash(e.toString()))}return hash(e.toString())};var mdsInputCss=':host{--mds-input-background:rgb(var(--tone-neutral));--mds-input-icon-color:var(--mds-input-variant-color);--mds-input-placeholder-default-color:rgb(var(--tone-neutral-06));--mds-input-placeholder-focus-color:rgb(var(--tone-neutral-07));--mds-input-placeholder-hover-color:var(--mds-input-placeholder-default-color);--mds-input-ring:0 0 0 1px rgb(var(--mds-input-variant-color) / 0.1);--mds-input-shadow:0 1px 3px 0 rgb(var(--mds-input-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-variant-color) / 0.06);--mds-input-textarea-field-sizing:content;--mds-input-textarea-resize:none;--mds-input-textarea-max-height:16rem;--mds-input-textarea-min-height:6rem;--mds-input-tip-background:84 84 84;--mds-input-variant-color:0 0 0;--mds-input-controls-border:2px solid rgb(var(--tone-neutral-09));--mds-input-controls-color:rgb(var(--tone-neutral-03));min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;gap:0.5rem;container-type:inline-size;display:-ms-flexbox;display:flex;position:relative}:host([typography="detail"]) .input{min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="snippet"]) .input{min-height:1.5rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.input{font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0rem;border-radius:0.5rem;padding-left:1rem;padding-right:1rem;padding-top:0.75rem;padding-bottom:0.75rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-input-background);border:0;-webkit-box-shadow:var(--mds-input-ring), var(--mds-input-shadow);box-shadow:var(--mds-input-ring), var(--mds-input-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:rgb(var(--tone-neutral-02));max-width:100%;min-height:3rem;overflow:hidden;text-overflow:ellipsis;-webkit-transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform, -webkit-box-shadow, -webkit-transform;width:100%}.input::-moz-placeholder{transition-duration:300ms;transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-input-placeholder-default-color);-moz-transition-property:color;transition-property:color}.input::-webkit-input-placeholder{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-input-placeholder-default-color);-webkit-transition-property:color;transition-property:color}.input:-ms-input-placeholder{transition-duration:300ms;transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-input-placeholder-default-color);-ms-transition-property:color;transition-property:color}.input::-ms-input-placeholder{transition-duration:300ms;transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-input-placeholder-default-color);-ms-transition-property:color;transition-property:color}.input::placeholder{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-input-placeholder-default-color);-webkit-transition-property:color;transition-property:color}.input:hover::-moz-placeholder{color:var(--mds-input-placeholder-hover-color)}.input:hover::-webkit-input-placeholder{color:var(--mds-input-placeholder-hover-color)}.input:hover:-ms-input-placeholder{color:var(--mds-input-placeholder-hover-color)}.input:hover::-ms-input-placeholder{color:var(--mds-input-placeholder-hover-color)}.input:hover::placeholder{color:var(--mds-input-placeholder-hover-color)}.input:focus::-moz-placeholder{color:var(--mds-input-placeholder-focus-color)}.input:focus::-webkit-input-placeholder{color:var(--mds-input-placeholder-focus-color)}.input:focus:-ms-input-placeholder{color:var(--mds-input-placeholder-focus-color)}.input:focus::-ms-input-placeholder{color:var(--mds-input-placeholder-focus-color)}.input:focus::placeholder{color:var(--mds-input-placeholder-focus-color)}.input::-webkit-outer-spin-button,.input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;display:none;margin:0}:host textarea.input,:host([typography]) textarea.input{border-bottom-right-radius:0;field-sizing:var(--mds-input-textarea-field-sizing);max-height:var(--mds-input-textarea-max-height);min-height:var(--mds-input-textarea-min-height);overflow:auto;resize:var(--mds-input-textarea-resize)}.input:focus{outline:2px solid transparent;outline-offset:2px;--mds-input-ring:0 0 0 3px rgb(var(--mds-input-variant-color) / 1);--mds-input-shadow:0 4px 6px 3px rgb(var(--mds-input-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-variant-color) / 0.06)}.input:disabled{background-color:rgb(var(--tone-neutral-10))}.input:disabled::-moz-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled::-webkit-input-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled:-ms-input-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled::-ms-input-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled,.input:disabled::placeholder{color:rgb(var(--tone-neutral-05))}.input.has-icon{padding-left:2.75rem}.input.has-right-icon{padding-right:2.75rem}.await,.icon{left:0.75rem;top:0.75rem;fill:rgb(var(--mds-input-icon-color));position:absolute}.await{color:rgb(var(--mds-input-icon-color));height:24px;width:24px}.counter{border-left:var(--mds-input-controls-border);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:0;position:absolute;right:0}.counter-button{height:1.5rem;width:1.75rem;border-radius:0.5rem;--mds-button-background:transparent;border:0;fill:var(--mds-input-controls-color);min-height:0;padding:0}.counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-09))}.counter .counter-button:first-child{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.counter .counter-button:last-child{border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:0}.counter-button--horizontal{height:3rem;width:3rem;bottom:0;position:absolute;top:0}.counter-button--decrease{border-bottom-right-radius:0;border-right:var(--mds-input-controls-border);border-top-right-radius:0;left:0}.counter-button--increase{border-bottom-left-radius:0;border-left:var(--mds-input-controls-border);border-top-left-radius:0;right:0}.password-toggle-button{top:0.375rem;right:0.375rem;fill:var(--mds-input-controls-color);position:absolute}.mic-toggle-button{top:0.375rem;right:0.375rem;fill:var(--mds-input-controls-color);position:absolute}.toggle-button--error{cursor:help;fill:rgb(var(--tone-neutral-06))}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.mic-toggle-button--recording{-webkit-animation:pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;animation:pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite}:host([type="number"]) .input{-moz-appearance:textfield;padding-right:2rem}:host([type="number"][controls-layout="horizontal"]) .input{padding-left:3.5rem;padding-right:3.5rem;text-align:center}:host([type="number"][controls-layout="horizontal"][icon]) .input{padding-left:6rem;text-align:left}:host([type="number"][controls-layout="horizontal"]) .icon{left:3.75rem}:host([type="password"]) .input{padding-right:2.5rem}:host([type="password"]) .input[type="password"]:not(:-moz-placeholder-shown){font-size:3rem;max-height:3rem}:host([type="password"]) .input[type="password"]:not(:-ms-input-placeholder){font-size:3rem;max-height:3rem}:host([type="password"]) .input[type="password"]:not(:placeholder-shown){font-size:3rem;max-height:3rem}:host([type="password"]) .input[type="text"]:not(:-moz-placeholder-shown){min-height:1.5rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([type="password"]) .input[type="text"]:not(:-ms-input-placeholder){min-height:1.5rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([type="password"]) .input[type="text"]:not(:placeholder-shown){min-height:1.5rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([type="cf"]) .input{min-height:1.5rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:uppercase}:host{--mds-input-icon-color:var(--variant-primary-03);--mds-input-variant-color:0 0 0}:host(:focus){--mds-input-variant-color:var(--variant-primary-04)}:host([variant="ai"]){--mds-input-icon-color:var(--variant-ai-05);--mds-input-tip-background:var(--variant-ai-05);--mds-input-variant-color:0 0 0}:host([variant="ai"]:focus){--mds-input-icon-color:var(--variant-ai-04);--mds-input-variant-color:var(--variant-ai-05)}:host([variant="info"]){--mds-input-icon-color:var(--status-info-05);--mds-input-tip-background:var(--status-info-05);--mds-input-variant-color:0 0 0}:host([variant="info"]:focus){--mds-input-icon-color:var(--status-info-04);--mds-input-variant-color:var(--status-info-05)}:host([variant="success"]){--mds-input-icon-color:var(--status-success-05);--mds-input-tip-background:var(--status-success-05);--mds-input-variant-color:0 0 0}:host([variant="success"]:focus){--mds-input-icon-color:var(--status-success-04);--mds-input-variant-color:var(--status-success-05)}:host([variant="warning"]){--mds-input-icon-color:var(--status-warning-05);--mds-input-tip-background:var(--status-warning-05);--mds-input-variant-color:0 0 0}:host([variant="warning"]:focus){--mds-input-icon-color:var(--status-warning-04);--mds-input-variant-color:var(--status-warning-05)}:host([variant="error"]){--mds-input-icon-color:var(--status-error-05);--mds-input-tip-background:var(--status-error-05);--mds-input-variant-color:0 0 0}:host([variant="error"]:focus){--mds-input-icon-color:var(--status-error-04);--mds-input-variant-color:var(--status-error-05)}:host-context(.pref-animation-reduce) .input{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system) .input{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-background:rgb(var(--tone-neutral-09));--mds-input-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-dark) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-background:rgb(var(--tone-neutral-09));--mds-input-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-system) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}}:host-context(.pref-contrast-more){--mds-input-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-background:rgb(var(--tone-neutral-09));--mds-input-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-input-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-background:rgb(var(--tone-neutral-09));--mds-input-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';var MdsInputStyle0=mdsInputCss;var MdsInput=function(){function t(t){var e=this;registerInstance(this,t);this.changeEvent=createEvent(this,"mdsInputChange",7);this.keyDownEvent=createEvent(this,"mdsInputKeydown",7);this.blurEvent=createEvent(this,"mdsInputBlur",7);this.focusEvent=createEvent(this,"mdsInputFocus",7);this.speechEvent=createEvent(this,"mdsInputSpeechEnd",7);this.validationEvent=createEvent(this,"mdsInputValidation",7);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.speechToTextIcon=miOutlineMic;this.hasFocus=false;this.isRecording=false;this.countVariant="count-empty";this.isPasswordVisible=false;this.t=new Locale({el:localeEl,en:localeEn,es:localeEs,it:localeIt});this.autocomplete="off";this.autofocus=false;this.await=false;this.controlsLayout="vertical";this.controlsIcon="arrow";this.controlIncreaseLabel="Aumenta";this.controlDecreaseLabel="Riduci";this.disabled=false;this.readonly=false;this.required=false;this.variant="primary";this.type="text";this.typography="detail";this.value="";this.countMaxLength=function(){var t,r,i;if(!e.maxlength)return;if(e.value===undefined)return;e.currentLengthLabel="".concat((r=(t=e.value)===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0," / ").concat(e.maxlength);var n=Math.round(e.value.length*100/e.maxlength);if(((i=e.value)===null||i===void 0?void 0:i.length)===e.maxlength){e.countVariant="count-full";return}if(n>=100){e.countVariant="count-full";return}if(n>=75){e.countVariant="count-almost-full";return}if(n>=50){e.countVariant="count-almost";return}if(n>=25){e.countVariant="count-incomplete";return}e.countVariant="count-empty"};this.onInput=function(t){var r=t.target;if(r){e.value=r.value;e.internals.setFormValue(e.value)}e.keyDownEvent.emit(t)};this.onBlur=function(){e.hasFocus=false;e.validateInput();e.blurEvent.emit()};this.onFocus=function(t){var r=t.target;e.hasFocus=true;e.focusEvent.emit();if(e.readonly){setTimeout((function(){r.select()}),10)}};this.stepUp=function(){if(e.nativeInput&&!e.readonly&&!e.disabled){e.nativeInput.stepUp();e.value=e.nativeInput.value}};this.stepDown=function(){if(e.nativeInput&&!e.readonly&&!e.disabled){e.nativeInput.stepDown();e.value=e.nativeInput.value}};this.toggleTextRecognition=function(){e.isRecording=!e.isRecording;if(!e.isRecording){e.speechToTextLabel=e.t.get("speechToTextOn");e.speechToTextIcon=miOutlineMic;e.stopRecognition();return}e.speechToTextLabel=e.t.get("speechToTextOff");e.speechToTextIcon=miBaselineDone;e.startRecognition()};this.onSpeechRecognitionError=function(){console.error("SpeechRecognition API may not work properly on Chrome based browsers.");e.speechButton.classList.remove("mic-toggle-button--recording");e.speechButton.classList.add("toggle-button--error");e.isRecording=false;e.speechToTextLabel=e.t.get("speechToTextError");e.speechToTextIcon=miOutlineMicOff};this.startRecognition=function(){var t,r,i;if(!e.speechButton){e.speechButton=(r=(t=e.el)===null||t===void 0?void 0:t.shadowRoot)===null||r===void 0?void 0:r.querySelector(".mic-toggle-button")}var n=(i=window.SpeechRecognition)!==null&&i!==void 0?i:window.webkitSpeechRecognition;e.value="";if(!n){e.onSpeechRecognitionError();return}e.recognition=new n;e.recognition.continuous=true;e.recognition.lang=navigator.language||"it-IT";e.recognition.interimResults=true;e.recognition.maxAlternatives=1;var o="";var a=0;e.recognition.onresult=function(t){var r=t.results;var i=r[a];if(i.isFinal){o+=i[0].transcript;e.value=o;a+=1;return}e.value=o+i[0].transcript};e.recognition.onerror=function(t){console.error("SpeechRecognition API error:",t.error);e.onSpeechRecognitionError()};e.recognition.start()};this.stopRecognition=function(){if(e.recognition){e.recognition.stop();e.speechEvent.emit()}}}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.el);this.t.update();return[2]}))}))};t.prototype.formResetCallback=function(){this.internals.setFormValue("")};t.prototype.connectedCallback=function(){this.datalistId="datalist-".concat(hashRandomValue())};t.prototype.componentWillLoad=function(){var t;this.language=this.t.lang(this.el);this.speechToTextLabel=this.t.get("speechToTextOn");if(this.el.hasAttribute("tabindex")){var e=this.el.getAttribute("tabindex");this.tabindex=e!==null?parseInt(e):undefined;this.el.removeAttribute("tabindex")}this.internals.setFormValue((t=this.value)!==null&&t!==void 0?t:null);this.maxLengthChanged(this.maxlength);this.isValid=!(this.required&&!this.value)};t.prototype.componentDidLoad=function(){var t,e,r;this.inputValidation=createInputValidationManager(this.type);this.setValidators();(t=this.nativeInput)===null||t===void 0?void 0:t.setAttribute("pattern",String(this.inputValidation.pattern));if(this.autofocus){(e=this.nativeInput)===null||e===void 0?void 0:e.focus()}this.variantChanged((r=this.variant)!==null&&r!==void 0?r:"primary")};t.prototype.setValidators=function(){if(this.required)this.inputValidation.validator.addValidator(requiredValidor);if(this.max!==""&&Number(this.max))this.inputValidation.validator.addValidator(maxValidator(Number(this.max)));if(this.min!==""&&Number(this.min))this.inputValidation.validator.addValidator(minValidator(Number(this.max)));if(this.maxlength)this.inputValidation.validator.addValidator(maxLenghtValidator(this.maxlength));if(this.minlength)this.inputValidation.validator.addValidator(minLenghtValidator(this.minlength))};t.prototype.valueChanged=function(){var t;this.changeEvent.emit({value:this.value});this.internals.setFormValue((t=this.value)!==null&&t!==void 0?t:null);if(this.maxlength!==undefined){this.countMaxLength()}if(this.value==="")return;if(!this.isValid)this.validateInput()};t.prototype.variantChanged=function(t){if(t==="ai"&&this.icon===undefined){this.icon=mggAiChatbotOutline}};t.prototype.maxLengthChanged=function(t){if(t===undefined)return;if(t<=0){this.maxlength=undefined;return}this.countMaxLength()};t.prototype.addValidator=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.inputValidation.validator.addValidator(t);return[2,Promise.resolve()]}))}))};t.prototype.removeValidator=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.inputValidation.validator.removeValidator(t);return[2]}))}))};t.prototype.hasValidator=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.inputValidation.validator.hasValidator(t)]}))}))};t.prototype.getErrors=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Promise.resolve(this.inputValidation.validator.errors)]}))}))};t.prototype.validateInput=function(){if(this.inputValidation.validator.hasValidator()){this.isValid=this.inputValidation.isValid(this.value);if(this.value===""&&!this.required)this.variant="primary";else this.variant=this.isValid?"success":"error";this.validationEvent.emit(this.isValid)}return this.isValid};t.prototype.disabledChanged=function(t){if(t){this.internals.setFormValue(null)}};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeInput){this.nativeInput.focus()}return[2]}))}))};t.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};t.prototype.componentWillRender=function(){this.t.lang(this.el)};t.prototype.render=function(){var t=this;var e,r;return h(Host,{key:"5533d960dcfb314d57515f4a2eaacf89339e229d"},this.type==="number"&&this.controlsLayout==="horizontal"&&h("mds-button",{key:"357082d06fa8e8f3e9853c0025572c13c26499b2",class:"counter-button counter-button--horizontal counter-button--decrease",icon:this.controlsIcon==="arrow"?miBaselineArrowDown:miBaselineRemove,onClick:this.stepDown,tabindex:"0",title:this.t.get("decrease"),part:"counter-button-decrease"}),this.type==="textarea"?h("textarea",{class:clsx("input",((e=this.icon)!==null&&e!==void 0?e:this.await)&&"has-icon",this.mic&&"has-right-icon"),autoFocus:this.autofocus,disabled:this.disabled,maxLength:this.maxlength,minLength:this.minlength,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.onInput,part:"field",placeholder:this.placeholder,readOnly:this.readonly,ref:function(e){return t.nativeInput=e},required:this.required,tabIndex:this.tabindex,value:this.value}):h("input",{class:clsx("input",((r=this.icon)!==null&&r!==void 0?r:this.await)&&"has-icon",this.mic&&"has-right-icon"),autoComplete:this.autocomplete,autoFocus:this.autofocus,disabled:this.disabled,max:this.max,maxLength:this.maxlength,min:this.min,minLength:this.minlength,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.onInput,pattern:this.pattern,list:this.datalistId,part:"field",placeholder:this.placeholder,readOnly:this.readonly,ref:function(e){return t.nativeInput=e},required:this.required,step:this.step,tabIndex:this.tabindex,type:this.type==="password"&&this.isPasswordVisible?"text":this.type,value:this.value}),this.type==="number"&&this.controlsLayout==="vertical"&&h("div",{key:"70d56000e4af3a3ed9d8750cc61acc30f999ad4f",class:"counter counter--vertical"},h("mds-button",{key:"7b300f46f9449574fc7482422efb293e105c0e96",class:"counter-button",icon:this.controlsIcon==="arrow"?miBaselineArrowUp:miBaselineAdd,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),part:"counter-button-increase"}),h("mds-button",{key:"147191e3385c50940de9289ec2411f6f6bb0807e",class:"counter-button",icon:this.controlsIcon==="arrow"?miBaselineArrowDown:miBaselineRemove,onClick:this.stepDown,tabindex:"0",title:this.t.get("decrease"),part:"counter-button-decrease"})),this.type==="number"&&this.controlsLayout==="horizontal"&&h("mds-button",{key:"4e503bb506fcdddf954d8b753332ea934965ad0a",class:"counter-button counter-button--horizontal counter-button--increase",icon:this.controlsIcon==="arrow"?miBaselineArrowUp:miBaselineAdd,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),part:"counter-button-increase"}),this.type==="password"&&h("mds-button",{key:"5b73a76bab0ed94e9d077990226a5f79131abc51",class:"password-toggle-button",icon:this.isPasswordVisible?miBaselineVisibleOff:miBaselineVisible,onClick:function(){return t.isPasswordVisible=!t.isPasswordVisible},tabindex:"0",tone:"quiet",title:this.isPasswordVisible?this.t.get("hidePassword"):this.t.get("showPassword"),part:"password-toggle-button"}),this.mic&&h("mds-button",{key:"aeae4f4183fa8f48301e7220f5cbd63255ac7389",class:clsx("mic-toggle-button",this.isRecording&&"mic-toggle-button--recording"),icon:this.speechToTextIcon,onClick:function(){return t.toggleTextRecognition()},tabindex:"0",variant:"dark",tone:"quiet",title:this.speechToTextLabel,part:"mic-toggle-button"}),h("mds-input-tip",{key:"dfa2404f132a841cad30beebf9e28a2eeff47aae",lang:this.language,position:"top",active:this.hasFocus,part:"tip-top"},this.disabled&&h("mds-input-tip-item",{key:"2c8095e6b3218c2829cc8b8ac93b1dbda0a7fc91",expanded:true,variant:"disabled"}),this.readonly&&h("mds-input-tip-item",{key:"d1852014760d45eb4710c49ba097bf9caf96367b",expanded:true,variant:"readonly"}),this.required&&h("mds-input-tip-item",{key:"1c6a51675bfd34e879e7627a0a23efca77b60b09",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),h("mds-input-tip",{key:"bb35df1bad27539a1fd205f95e2cca2e47480fc6",lang:this.language,position:"bottom",active:this.hasFocus,part:"tip-bottom"},this.tip&&h("mds-input-tip-item",{key:"76f1a0e0d90a47eadef6c509ea6c4bdd2cafc0ec",expanded:true,variant:"text"},this.tip),this.maxlength&&h("mds-input-tip-item",{key:"a7b30b5b868a6bace7cd0d7b30e0f96fe43224fd",part:"tip-count",expanded:true,variant:this.countVariant},this.currentLengthLabel)),this.datalist&&h("datalist",{key:"5753a96f9d2aa97c3eb51914bde29bc71e3fbc5f",id:this.datalistId,class:"datalist"},this.datalist.map((function(t,e){return h("option",{key:e,value:t})}))),this.icon&&!this.await&&h("mds-icon",{key:"484d5c098586eaa85100b6af0190b5a4e5cf7d71",class:clsx("icon",this.variant),name:this.icon}),h("mds-spinner",{key:"e9efc775f0d5cbfa3cd0d5448c7aeed7ad0f1213",running:this.await,class:clsx("await",this.variant)}))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"],variant:["variantChanged"],maxlength:["maxLengthChanged"],disabled:["disabledChanged"]}},enumerable:false,configurable:true});return t}();MdsInput.style=MdsInputStyle0;export{MdsInput as mds_input};
@@ -1 +1 @@
1
- import{p as a,b as e}from"./p-eb25c22c.js";export{s as setNonce}from"./p-eb25c22c.js";import{g as t}from"./p-e1255160.js";(()=>{const e=import.meta.url,t={};return""!==e&&(t.resourcesUrl=new URL(".",e).href),a(t)})().then((async a=>(await t(),e([["p-64645515",[[65,"mds-input",{autocomplete:[513],autofocus:[516],await:[516],controlsLayout:[513,"controls-layout"],controlsIcon:[513,"controls-icon"],controlIncreaseLabel:[513,"control-increase-label"],controlDecreaseLabel:[513,"control-decrease-label"],datalist:[16],disabled:[516],icon:[1537],max:[520],maxlength:[1538],mic:[516],min:[520],minlength:[514],name:[513],pattern:[513],placeholder:[513],readonly:[516],required:[516],variant:[1537],tip:[513],step:[513],type:[513],typography:[513],value:[1537],hasFocus:[32],language:[32],isRecording:[32],currentLengthLabel:[32],countVariant:[32],isPasswordVisible:[32],updateLang:[64],addValidator:[64],removeValidator:[64],hasValidator:[64],getErrors:[64],setFocus:[64],getInputElement:[64]},null,{value:["valueChanged"],variant:["variantChanged"],maxlength:["maxLengthChanged"],disabled:["disabledChanged"]}]]]],a))));
1
+ import{p as a,b as e}from"./p-eb25c22c.js";export{s as setNonce}from"./p-eb25c22c.js";import{g as t}from"./p-e1255160.js";(()=>{const e=import.meta.url,t={};return""!==e&&(t.resourcesUrl=new URL(".",e).href),a(t)})().then((async a=>(await t(),e([["p-b1fdc7ed",[[65,"mds-input",{autocomplete:[513],autofocus:[516],await:[516],controlsLayout:[513,"controls-layout"],controlsIcon:[513,"controls-icon"],controlIncreaseLabel:[513,"control-increase-label"],controlDecreaseLabel:[513,"control-decrease-label"],datalist:[16],disabled:[516],icon:[1537],max:[520],maxlength:[1538],mic:[516],min:[520],minlength:[514],name:[513],pattern:[513],placeholder:[513],readonly:[516],required:[516],variant:[1537],tip:[513],step:[513],type:[513],typography:[513],value:[1537],hasFocus:[32],language:[32],isRecording:[32],currentLengthLabel:[32],countVariant:[32],isPasswordVisible:[32],updateLang:[64],addValidator:[64],removeValidator:[64],hasValidator:[64],getErrors:[64],setFocus:[64],getInputElement:[64]},null,{value:["valueChanged"],variant:["variantChanged"],maxlength:["maxLengthChanged"],disabled:["disabledChanged"]}]]]],a))));
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function o(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r["throw"](e))}catch(e){i(e)}}function u(e){e.done?n(e.value):a(e.value).then(o,c)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(e){return function(t){return u([e,t])}}function u(c){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,c[0]&&(n=0)),n)try{if(r=1,a&&(i=c[0]&2?a["return"]:c[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,c[1])).done)return i;if(a=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;a=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1];i=c;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(c);break}if(i[2])n.ops.pop();n.trys.pop();continue}c=t.call(e,n)}catch(e){c=[6,e];a=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-2396a3ea.system.js","./p-56ba5cbf.system.js"],(function(e,t){"use strict";var n,r,a;return{setters:[function(t){n=t.p;r=t.b;e("setNonce",t.s)},function(e){a=e.g}],execute:function(){var e=this;var i=function(){var e=t.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return n(r)};i().then((function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,a()];case 1:e.sent();return[2,r([["p-37b96a35.system",[[65,"mds-input",{autocomplete:[513],autofocus:[516],await:[516],controlsLayout:[513,"controls-layout"],controlsIcon:[513,"controls-icon"],controlIncreaseLabel:[513,"control-increase-label"],controlDecreaseLabel:[513,"control-decrease-label"],datalist:[16],disabled:[516],icon:[1537],max:[520],maxlength:[1538],mic:[516],min:[520],minlength:[514],name:[513],pattern:[513],placeholder:[513],readonly:[516],required:[516],variant:[1537],tip:[513],step:[513],type:[513],typography:[513],value:[1537],hasFocus:[32],language:[32],isRecording:[32],currentLengthLabel:[32],countVariant:[32],isPasswordVisible:[32],updateLang:[64],addValidator:[64],removeValidator:[64],hasValidator:[64],getErrors:[64],setFocus:[64],getInputElement:[64]},null,{value:["valueChanged"],variant:["variantChanged"],maxlength:["maxLengthChanged"],disabled:["disabledChanged"]}]]]],t)]}}))}))}))}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function o(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r["throw"](e))}catch(e){i(e)}}function u(e){e.done?n(e.value):a(e.value).then(o,c)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(e){return function(t){return u([e,t])}}function u(c){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,c[0]&&(n=0)),n)try{if(r=1,a&&(i=c[0]&2?a["return"]:c[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,c[1])).done)return i;if(a=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;a=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1];i=c;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(c);break}if(i[2])n.ops.pop();n.trys.pop();continue}c=t.call(e,n)}catch(e){c=[6,e];a=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-2396a3ea.system.js","./p-56ba5cbf.system.js"],(function(e,t){"use strict";var n,r,a;return{setters:[function(t){n=t.p;r=t.b;e("setNonce",t.s)},function(e){a=e.g}],execute:function(){var e=this;var i=function(){var e=t.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return n(r)};i().then((function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,a()];case 1:e.sent();return[2,r([["p-7b33a73e.system",[[65,"mds-input",{autocomplete:[513],autofocus:[516],await:[516],controlsLayout:[513,"controls-layout"],controlsIcon:[513,"controls-icon"],controlIncreaseLabel:[513,"control-increase-label"],controlDecreaseLabel:[513,"control-decrease-label"],datalist:[16],disabled:[516],icon:[1537],max:[520],maxlength:[1538],mic:[516],min:[520],minlength:[514],name:[513],pattern:[513],placeholder:[513],readonly:[516],required:[516],variant:[1537],tip:[513],step:[513],type:[513],typography:[513],value:[1537],hasFocus:[32],language:[32],isRecording:[32],currentLengthLabel:[32],countVariant:[32],isPasswordVisible:[32],updateLang:[64],addValidator:[64],removeValidator:[64],hasValidator:[64],getErrors:[64],setFocus:[64],getInputElement:[64]},null,{value:["valueChanged"],variant:["variantChanged"],maxlength:["maxLengthChanged"],disabled:["disabledChanged"]}]]]],t)]}}))}))}))}}}));