@maggioli-design-system/magma 1.11.7 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/magma-components.cjs.js +1 -1
- package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/mds-author.cjs.entry.js +2 -2
- package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar-stack.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar.cjs.entry.js +1 -1
- package/dist/cjs/mds-badge.cjs.entry.js +1 -1
- package/dist/cjs/mds-banner_3.cjs.entry.js +6 -6
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-bibliography.cjs.entry.js +7 -7
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
- package/dist/cjs/mds-button_3.cjs.entry.js +2 -2
- package/dist/cjs/mds-calendar_2.cjs.entry.js +246 -128
- package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +1 -1
- package/dist/cjs/mds-details.cjs.entry.js +1 -1
- package/dist/cjs/mds-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/mds-emoji.cjs.entry.js +1 -1
- package/dist/cjs/mds-entity.cjs.entry.js +4 -4
- package/dist/cjs/mds-file-preview.cjs.entry.js +2 -2
- package/dist/cjs/mds-file.cjs.entry.js +3 -3
- package/dist/cjs/mds-filter-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-filter.cjs.entry.js +1 -1
- package/dist/cjs/mds-header-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +1 -1
- package/dist/cjs/mds-hr.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range.cjs.entry.js +197 -55
- package/dist/cjs/mds-input-date.cjs.entry.js +16 -10
- package/dist/cjs/mds-input.cjs.entry.js +9 -9
- package/dist/collection/components/mds-accordion/mds-accordion.js +1 -1
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.js +1 -1
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +1 -1
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
- package/dist/collection/components/mds-author/mds-author.js +2 -2
- package/dist/collection/components/mds-avatar/mds-avatar.js +1 -1
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.js +1 -1
- package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.js +1 -1
- package/dist/collection/components/mds-badge/mds-badge.js +1 -1
- package/dist/collection/components/mds-banner/mds-banner.js +2 -2
- package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +1 -1
- package/dist/collection/components/mds-bibliography/mds-bibliography.js +7 -7
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +2 -2
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.js +1 -1
- package/dist/collection/components/mds-button/mds-button.js +1 -1
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +1 -1
- package/dist/collection/components/mds-button-group/mds-button-group.js +1 -1
- package/dist/collection/components/mds-calendar/mds-calendar.css +50 -7
- package/dist/collection/components/mds-calendar/mds-calendar.js +413 -128
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.js +1 -1
- package/dist/collection/components/mds-card/mds-card.js +1 -1
- package/dist/collection/components/mds-card-content/mds-card-content.js +1 -1
- package/dist/collection/components/mds-card-footer/mds-card-footer.js +1 -1
- package/dist/collection/components/mds-card-header/mds-card-header.js +1 -1
- package/dist/collection/components/mds-card-media/mds-card-media.js +1 -1
- package/dist/collection/components/mds-chip/mds-chip.js +3 -3
- package/dist/collection/components/mds-details/mds-details.js +1 -1
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +2 -2
- package/dist/collection/components/mds-emoji/mds-emoji.js +1 -1
- package/dist/collection/components/mds-entity/mds-entity.js +4 -4
- package/dist/collection/components/mds-file/mds-file.js +3 -3
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +2 -2
- package/dist/collection/components/mds-filter/mds-filter.js +1 -1
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +1 -1
- package/dist/collection/components/mds-header/mds-header.js +2 -2
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +3 -3
- package/dist/collection/components/mds-help/mds-help.js +1 -1
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +1 -1
- package/dist/collection/components/mds-hr/mds-hr.js +1 -1
- package/dist/collection/components/mds-icon/mds-icon.js +1 -1
- package/dist/collection/components/mds-input/mds-input.js +9 -9
- package/dist/collection/components/mds-input-date/mds-input-date.js +19 -11
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +33 -1
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +220 -70
- package/dist/collection/components/mds-input-date-range/test/mds-input-date-range.stories.js +10 -0
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion-timer.js +1 -1
- package/dist/components/mds-accordion.js +1 -1
- package/dist/components/mds-author.js +2 -2
- package/dist/components/mds-avatar-stack-item2.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar2.js +1 -1
- package/dist/components/mds-badge2.js +1 -1
- package/dist/components/mds-banner2.js +2 -2
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +7 -7
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +2 -2
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button-group.js +1 -1
- package/dist/components/mds-button2.js +1 -1
- package/dist/components/mds-calendar-cell2.js +1 -1
- package/dist/components/mds-calendar2.js +256 -128
- package/dist/components/mds-card-content.js +1 -1
- package/dist/components/mds-card-footer.js +1 -1
- package/dist/components/mds-card-header.js +1 -1
- package/dist/components/mds-card-media.js +1 -1
- package/dist/components/mds-card.js +1 -1
- package/dist/components/mds-chip2.js +3 -3
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown2.js +2 -2
- package/dist/components/mds-emoji.js +1 -1
- package/dist/components/mds-entity.js +4 -4
- package/dist/components/mds-file-preview2.js +2 -2
- package/dist/components/mds-file.js +3 -3
- package/dist/components/mds-filter-item2.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +3 -3
- package/dist/components/mds-header.js +2 -2
- package/dist/components/mds-help2.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-icon2.js +1 -1
- package/dist/components/mds-input-date-range.js +199 -55
- package/dist/components/mds-input-date.js +17 -10
- package/dist/components/mds-input2.js +9 -9
- package/dist/documentation.json +238 -32
- package/dist/esm/loader.js +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-accordion-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer.entry.js +1 -1
- package/dist/esm/mds-accordion.entry.js +1 -1
- package/dist/esm/mds-author.entry.js +2 -2
- package/dist/esm/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm/mds-avatar-stack.entry.js +1 -1
- package/dist/esm/mds-avatar.entry.js +1 -1
- package/dist/esm/mds-badge.entry.js +1 -1
- package/dist/esm/mds-banner_3.entry.js +6 -6
- package/dist/esm/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm/mds-bibliography.entry.js +7 -7
- package/dist/esm/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm/mds-breadcrumb.entry.js +2 -2
- package/dist/esm/mds-button-dropdown.entry.js +1 -1
- package/dist/esm/mds-button-group.entry.js +1 -1
- package/dist/esm/mds-button_3.entry.js +2 -2
- package/dist/esm/mds-calendar_2.entry.js +246 -128
- package/dist/esm/mds-card-content.entry.js +1 -1
- package/dist/esm/mds-card-footer.entry.js +1 -1
- package/dist/esm/mds-card-header.entry.js +1 -1
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +1 -1
- package/dist/esm/mds-details.entry.js +1 -1
- package/dist/esm/mds-dropdown.entry.js +2 -2
- package/dist/esm/mds-emoji.entry.js +1 -1
- package/dist/esm/mds-entity.entry.js +4 -4
- package/dist/esm/mds-file-preview.entry.js +2 -2
- package/dist/esm/mds-file.entry.js +3 -3
- package/dist/esm/mds-filter-item.entry.js +1 -1
- package/dist/esm/mds-filter.entry.js +1 -1
- package/dist/esm/mds-header-bar.entry.js +3 -3
- package/dist/esm/mds-header.entry.js +2 -2
- package/dist/esm/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm/mds-hr.entry.js +1 -1
- package/dist/esm/mds-input-date-range.entry.js +197 -55
- package/dist/esm/mds-input-date.entry.js +16 -10
- package/dist/esm/mds-input.entry.js +9 -9
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +1 -1
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +1 -1
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +1 -1
- package/dist/esm-es5/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm-es5/mds-bibliography.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
- package/dist/esm-es5/mds-button-dropdown.entry.js +1 -1
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +1 -1
- package/dist/esm-es5/mds-calendar_2.entry.js +1 -1
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +1 -1
- package/dist/esm-es5/mds-details.entry.js +1 -1
- package/dist/esm-es5/mds-dropdown.entry.js +1 -1
- package/dist/esm-es5/mds-emoji.entry.js +2 -2
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +1 -1
- package/dist/esm-es5/mds-file.entry.js +1 -1
- package/dist/esm-es5/mds-filter-item.entry.js +1 -1
- package/dist/esm-es5/mds-filter.entry.js +1 -1
- package/dist/esm-es5/mds-header-bar.entry.js +1 -1
- package/dist/esm-es5/mds-header.entry.js +1 -1
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-date.entry.js +1 -1
- package/dist/esm-es5/mds-input.entry.js +1 -1
- package/dist/hydrate/index.js +539 -262
- package/dist/hydrate/index.mjs +539 -262
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/{p-e3b0adb8.entry.js → p-02c9dffb.entry.js} +1 -1
- package/dist/magma-components/{p-e8626e7a.system.entry.js → p-03b5bdae.system.entry.js} +1 -1
- package/dist/magma-components/{p-fec5168f.entry.js → p-09b27f6e.entry.js} +1 -1
- package/dist/magma-components/p-09cbad84.system.entry.js +1 -0
- package/dist/magma-components/{p-0c3b813d.entry.js → p-0a9db9fc.entry.js} +1 -1
- package/dist/magma-components/{p-beeaec1c.entry.js → p-10957e40.entry.js} +1 -1
- package/dist/magma-components/{p-42f5037a.entry.js → p-14cad758.entry.js} +1 -1
- package/dist/magma-components/{p-35d85970.entry.js → p-188c906e.entry.js} +1 -1
- package/dist/magma-components/{p-91e16169.system.entry.js → p-191e79c8.system.entry.js} +1 -1
- package/dist/magma-components/{p-1a8d42d1.system.entry.js → p-1c37f4ce.system.entry.js} +1 -1
- package/dist/magma-components/{p-30648e76.system.entry.js → p-1cd6c3fe.system.entry.js} +1 -1
- package/dist/magma-components/{p-c3ae9ba7.system.entry.js → p-1f52a479.system.entry.js} +1 -1
- package/dist/magma-components/p-20e0f9e3.entry.js +1 -0
- package/dist/magma-components/p-26cd6ec8.system.js +1 -1
- package/dist/magma-components/{p-237d60e2.system.entry.js → p-2910fa0c.system.entry.js} +1 -1
- package/dist/magma-components/{p-d95c9d2e.system.entry.js → p-2d947462.system.entry.js} +1 -1
- package/dist/magma-components/{p-0b25be9f.entry.js → p-342a07c7.entry.js} +1 -1
- package/dist/magma-components/{p-b228a186.system.entry.js → p-39d9f24d.system.entry.js} +1 -1
- package/dist/magma-components/{p-27cb23f6.entry.js → p-3a57f53d.entry.js} +1 -1
- package/dist/magma-components/{p-0689710c.system.entry.js → p-3b267a52.system.entry.js} +1 -1
- package/dist/magma-components/{p-224f80f4.entry.js → p-3bf7d52c.entry.js} +1 -1
- package/dist/magma-components/{p-2de8157b.system.entry.js → p-432be440.system.entry.js} +1 -1
- package/dist/magma-components/{p-5eca660e.system.entry.js → p-43a2f192.system.entry.js} +1 -1
- package/dist/magma-components/{p-eaf4805a.entry.js → p-48a2e8e4.entry.js} +1 -1
- package/dist/magma-components/{p-ff674ef9.entry.js → p-4ab9c985.entry.js} +1 -1
- package/dist/magma-components/{p-40eeffe8.entry.js → p-4b76248b.entry.js} +1 -1
- package/dist/magma-components/{p-11df77b3.entry.js → p-4cf97724.entry.js} +1 -1
- package/dist/magma-components/{p-0e2b6dd3.system.entry.js → p-5359bf5e.system.entry.js} +1 -1
- package/dist/magma-components/{p-536b4c16.entry.js → p-5619ed51.entry.js} +1 -1
- package/dist/magma-components/{p-d738a403.system.entry.js → p-5edd2f30.system.entry.js} +1 -1
- package/dist/magma-components/{p-033e85f1.entry.js → p-606cd4bb.entry.js} +1 -1
- package/dist/magma-components/{p-e9ade624.system.entry.js → p-61c35e05.system.entry.js} +1 -1
- package/dist/magma-components/{p-6e680417.system.entry.js → p-68a7d370.system.entry.js} +1 -1
- package/dist/magma-components/{p-409c9518.system.entry.js → p-7244ca7a.system.entry.js} +1 -1
- package/dist/magma-components/{p-a9d6984e.entry.js → p-726cd93c.entry.js} +1 -1
- package/dist/magma-components/{p-c2798c9a.system.entry.js → p-7359e097.system.entry.js} +1 -1
- package/dist/magma-components/{p-723fbfb0.entry.js → p-78088de2.entry.js} +1 -1
- package/dist/magma-components/{p-83b2ee17.entry.js → p-7ae676db.entry.js} +1 -1
- package/dist/magma-components/{p-6d3ea2b6.entry.js → p-7b788f04.entry.js} +1 -1
- package/dist/magma-components/{p-b727c3a6.system.entry.js → p-80518658.system.entry.js} +1 -1
- package/dist/magma-components/{p-f6ef6105.entry.js → p-8314f381.entry.js} +1 -1
- package/dist/magma-components/{p-86f45462.entry.js → p-8469b603.entry.js} +1 -1
- package/dist/magma-components/{p-09aaa62b.system.entry.js → p-855f1617.system.entry.js} +1 -1
- package/dist/magma-components/{p-cae0e727.entry.js → p-89757b16.entry.js} +1 -1
- package/dist/magma-components/{p-60342fa8.system.entry.js → p-8bc52935.system.entry.js} +1 -1
- package/dist/magma-components/{p-6b4bf0df.entry.js → p-8f091ceb.entry.js} +1 -1
- package/dist/magma-components/{p-8859d528.entry.js → p-94fb14aa.entry.js} +1 -1
- package/dist/magma-components/{p-755dff75.system.entry.js → p-9b7e1f4b.system.entry.js} +1 -1
- package/dist/magma-components/{p-dfdc83ab.entry.js → p-9d5ab31c.entry.js} +1 -1
- package/dist/magma-components/{p-ddd59ddb.system.entry.js → p-9d86dd4c.system.entry.js} +1 -1
- package/dist/magma-components/{p-9e08e8f1.system.entry.js → p-a776c78c.system.entry.js} +1 -1
- package/dist/magma-components/{p-854848ca.entry.js → p-aacb6b47.entry.js} +1 -1
- package/dist/magma-components/{p-bdc49c99.entry.js → p-b4bad440.entry.js} +1 -1
- package/dist/magma-components/{p-3095eab8.system.entry.js → p-b7aae63a.system.entry.js} +1 -1
- package/dist/magma-components/{p-03cadeb4.system.entry.js → p-b7b0f420.system.entry.js} +1 -1
- package/dist/magma-components/{p-788e95ce.entry.js → p-ba8142cf.entry.js} +1 -1
- package/dist/magma-components/{p-84cf6604.system.entry.js → p-be5a7e23.system.entry.js} +1 -1
- package/dist/magma-components/{p-61e3603c.system.entry.js → p-c3304189.system.entry.js} +1 -1
- package/dist/magma-components/{p-a201cbab.entry.js → p-c372fe03.entry.js} +1 -1
- package/dist/magma-components/{p-b4baf323.entry.js → p-c5730248.entry.js} +1 -1
- package/dist/magma-components/{p-3e50c4ab.entry.js → p-c5d2cd00.entry.js} +1 -1
- package/dist/magma-components/p-c6785782.entry.js +1 -0
- package/dist/magma-components/p-ca4ee5b5.system.entry.js +1 -0
- package/dist/magma-components/p-d7cf7569.entry.js +1 -0
- package/dist/magma-components/{p-6d1ce884.system.entry.js → p-d98a34dc.system.entry.js} +1 -1
- package/dist/magma-components/{p-2b3517af.system.entry.js → p-d99f38a7.system.entry.js} +1 -1
- package/dist/magma-components/{p-3c2df04e.system.entry.js → p-dd7b9422.system.entry.js} +1 -1
- package/dist/magma-components/{p-58b77d4f.entry.js → p-e0bd7509.entry.js} +1 -1
- package/dist/magma-components/{p-a786264e.system.entry.js → p-e32a0ec8.system.entry.js} +1 -1
- package/dist/magma-components/{p-12527b99.system.entry.js → p-ef488f9f.system.entry.js} +1 -1
- package/dist/magma-components/{p-70223843.system.entry.js → p-f250731c.system.entry.js} +1 -1
- package/dist/magma-components/{p-8de607ef.entry.js → p-f2e7d2f0.entry.js} +1 -1
- package/dist/magma-components/{p-a9c9e071.system.entry.js → p-f349e728.system.entry.js} +1 -1
- package/dist/magma-components/{p-1c2b1a44.system.entry.js → p-f584c1d7.system.entry.js} +1 -1
- package/dist/magma-components/{p-f5f97018.entry.js → p-fd25f69a.entry.js} +1 -1
- package/dist/magma-components/{p-977d3bf0.entry.js → p-fe3879f3.entry.js} +1 -1
- package/dist/magma-components/{p-50b07c72.system.entry.js → p-ff8d8818.system.entry.js} +1 -1
- package/dist/stats.json +790 -377
- package/dist/types/components/mds-calendar/mds-calendar.d.ts +43 -1
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +1 -0
- package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +23 -4
- package/dist/types/components/mds-input-date-range/test/mds-input-date-range.stories.d.ts +12 -0
- package/dist/types/components.d.ts +94 -6
- package/package.json +4 -4
- package/dist/magma-components/p-3da97c74.system.entry.js +0 -1
- package/dist/magma-components/p-643fd688.entry.js +0 -1
- package/dist/magma-components/p-80b11d2e.entry.js +0 -1
- package/dist/magma-components/p-e1f3cc6d.entry.js +0 -1
- package/dist/magma-components/p-ead9e4c4.system.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as r,g as o}from"./p-3a6b32e7.js";import{c as s}from"./p-8a1a6e56.js";import{m as a}from"./p-581a0bb5.js";import{m as n}from"./p-a8265c47.js";import{m as d}from"./p-af30edf5.js";import{m as h}from"./p-b69d8626.js";import{L as l}from"./p-2d77deaf.js";import{h as c}from"./p-f00c93f4.js";import"./p-85aa8e05.js";const p='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>',u='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"/><path d="M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z"/></svg>',m={decrease:"Μείωση",hidePassword:"Απόκρυψη κωδικού",increase:"Αύξηση",showPassword:"Εμφάνιση κωδικού",speechToTextError:"Η φωνητική υπαγόρευση δεν υποστηρίζεται από αυτό το πρόγραμμα περιήγησης",speechToTextOff:"Διακοπή φωνητικής υπαγόρευσης",speechToTextOn:"Έναρξη φωνητικής υπαγόρευσης"},b={decrease:"Decrease",hidePassword:"Hide password",increase:"Increase",showPassword:"Show password",speechToTextError:"Voice dictation is not supported by this browser",speechToTextOff:"Stop voice dictation",speechToTextOn:"Start voice dictation"},y={decrease:"Disminuir",hidePassword:"Ocultar contraseña",increase:"Aumentar",showPassword:"Mostrar contraseña",speechToTextError:"El dictado por voz no es compatible con este navegador",speechToTextOff:"Detener dictado por voz",speechToTextOn:"Iniciar dictado por voz"},g={decrease:"Diminuisci",hidePassword:"Nascondi password",increase:"Aumenta",showPassword:"Visualizza password",speechToTextError:"Dettatura vocale non supportata da questo browser",speechToTextOff:"Ferma dettatura vocale",speechToTextOn:"Inizia dettatura vocale"},f=()=>null,v=t=>t.length>0?null:{required:""},w=t=>{if(""===t)return null;if(Number.isNaN(t.slice(0,-1))||10!==t.length&&13!==t.length)return{"isbn-error":"formato isbn non correto"};const e=t.split("").map((t=>"X"===t?10:Number(t)));let i=0;return i=10===t.length?e.reduce(((t,e,i)=>t+(10-i)*e),0)%11:e.reduce(((t,e,i)=>t+e*(i%2==0?1:3)),0)%10,0===i?null:{"isbn-error":"codice isbn non valido"}};class x{constructor(){this._validators=[],this._errors=null,this.isValid=!0}addValidator(t){Array.isArray(t)?this._validators.push(...t):this._validators.push(t)}_hasValidator(t,e){return Array.isArray(t)?t.includes(e):t===e}hasValidator(t){return t?this._hasValidator(this._validators,t):this._validators.length>0}removeValidator(t){this._validators=this._validators.filter((e=>!this._hasValidator(t,e)))}validate(t){const e=this._validators.map((e=>e(t))).reduce(((t,e)=>Object.assign(Object.assign({},t),e)),f);this._errors=0===Object.keys(e).length?null:e,this.isValid=!this._errors}get errors(){return this._errors}}class k{}k.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,k.CF_MASK="A{6}(99|AA)A(99|AA)A(999|AAA)A",k.CC_MASK="9999-9999-9999-9999";class z{constructor(t){this.validator=new x,this.pattern=t}mask(t){if(!this.pattern)throw new Error("no pattern found, set pattern before mask")}isValid(t){return this.validator.validate(t),this.validator.isValid}}const M=class{constructor(i){t(this,i),this.changeEvent=e(this,"mdsInputChange",7),this.keyDownEvent=e(this,"mdsInputKeydown",7),this.blurEvent=e(this,"mdsInputBlur",7),this.focusEvent=e(this,"mdsInputFocus",7),this.speechEvent=e(this,"mdsInputSpeechEnd",7),this.validationEvent=e(this,"mdsInputValidation",7),i.$hostElement$["s-ei"]?this.internals=i.$hostElement$["s-ei"]:(this.internals=i.$hostElement$.attachInternals(),i.$hostElement$["s-ei"]=this.internals),this.speechToTextIcon=u,this.hasFocus=!1,this.isRecording=!1,this.countVariant="count-empty",this.isPasswordVisible=!1,this.t=new l({el:m,en:b,es:y,it:g}),this.autocomplete="off",this.autofocus=!1,this.await=!1,this.controlsLayout="vertical",this.controlsIcon="arrow",this.controlIncreaseLabel="Aumenta",this.controlDecreaseLabel="Riduci",this.disabled=!1,this.readonly=!1,this.required=!1,this.variant="primary",this.type="text",this.typography="detail",this.value="",this.countMaxLength=()=>{var t,e,i;if(!this.maxlength)return;if(void 0===this.value)return;this.currentLengthLabel=`${null!==(e=null===(t=this.value)||void 0===t?void 0:t.length)&&void 0!==e?e:0} / ${this.maxlength}`;const r=Math.round(100*this.value.length/this.maxlength);this.countVariant=(null===(i=this.value)||void 0===i?void 0:i.length)!==this.maxlength?r>=100?"count-full":r>=75?"count-almost-full":r>=50?"count-almost":r>=25?"count-incomplete":"count-empty":"count-full"},this.onInput=t=>{const e=t.target;e&&(this.value=e.value,this.internals.setFormValue(this.value)),this.keyDownEvent.emit(t)},this.onBlur=()=>{this.hasFocus=!1,this.validateInput(),this.blurEvent.emit()},this.onFocus=t=>{const e=t.target;this.hasFocus=!0,this.focusEvent.emit(),this.readonly&&setTimeout((()=>{e.select()}),10)},this.stepUp=()=>{!this.nativeInput||this.readonly||this.disabled||(this.nativeInput.stepUp(),this.value=this.nativeInput.value)},this.stepDown=()=>{!this.nativeInput||this.readonly||this.disabled||(this.nativeInput.stepDown(),this.value=this.nativeInput.value)},this.toggleTextRecognition=()=>{if(this.isRecording=!this.isRecording,!this.isRecording)return this.speechToTextLabel=this.t.get("speechToTextOn"),this.speechToTextIcon=u,void this.stopRecognition();this.speechToTextLabel=this.t.get("speechToTextOff"),this.speechToTextIcon=h,this.startRecognition()},this.onSpeechRecognitionError=()=>{console.error("SpeechRecognition API may not work properly on Chrome based browsers."),this.speechButton.classList.remove("mic-toggle-button--recording"),this.speechButton.classList.add("toggle-button--error"),this.isRecording=!1,this.speechToTextLabel=this.t.get("speechToTextError"),this.speechToTextIcon='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10.8 4.9c0-.66.54-1.2 1.2-1.2s1.2.54 1.2 1.2l-.01 3.91L15 10.6V5c0-1.66-1.34-3-3-3c-1.54 0-2.79 1.16-2.96 2.65l1.76 1.76V4.9zM19 11h-1.7c0 .58-.1 1.13-.27 1.64l1.27 1.27c.44-.88.7-1.87.7-2.91zM4.41 2.86L3 4.27l6 6V11c0 1.66 1.34 3 3 3c.23 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52c-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28a7.13 7.13 0 0 0 2.55-.9l4.2 4.2l1.41-1.41L4.41 2.86z"/></svg>'},this.startRecognition=()=>{var t,e,i;this.speechButton||(this.speechButton=null===(e=null===(t=this.el)||void 0===t?void 0:t.shadowRoot)||void 0===e?void 0:e.querySelector(".mic-toggle-button"));const r=null!==(i=window.SpeechRecognition)&&void 0!==i?i:window.webkitSpeechRecognition;if(this.value="",!r)return void this.onSpeechRecognitionError();this.recognition=new r,this.recognition.continuous=!0,this.recognition.lang=navigator.language||"it-IT",this.recognition.interimResults=!0,this.recognition.maxAlternatives=1;let o="",s=0;this.recognition.onresult=t=>{const e=t.results[s];if(e.isFinal)return o+=e[0].transcript,this.value=o,void(s+=1);this.value=o+e[0].transcript},this.recognition.onerror=t=>{console.error("SpeechRecognition API error:",t.error),this.onSpeechRecognitionError()},this.recognition.start()},this.stopRecognition=()=>{this.recognition&&(this.recognition.stop(),this.speechEvent.emit())}}async updateLang(){this.language=this.t.lang(this.el),this.t.update()}formResetCallback(){this.internals.setFormValue("")}connectedCallback(){this.datalistId=`datalist-${c()}`}componentWillLoad(){var t;if(this.language=this.t.lang(this.el),this.speechToTextLabel=this.t.get("speechToTextOn"),this.el.hasAttribute("tabindex")){const t=this.el.getAttribute("tabindex");this.tabindex=null!==t?parseInt(t):void 0,this.el.removeAttribute("tabindex")}this.internals.setFormValue(null!==(t=this.value)&&void 0!==t?t:null),this.maxLengthChanged(this.maxlength),this.isValid=!(this.required&&!this.value)}componentDidLoad(){var t,e,i;this.inputValidation=function(t){let e;switch(t){case"tel":case"url":case"piva":default:e=new z("");break;case"cc":e=new z(k.CC_MASK);break;case"cf":e=new z(k.CF_MASK),e.validator.addValidator((t=>""===t||k.CF_Regex.test(t)?null:{"cf-regex":"Codice fiscale inserito non corretto"})),e.validator.addValidator((t=>""===t||16===t.length?null:{"cf-length":"Codice fiscale deve essere lungo 16 caratteri"}));break;case"isbn":e=new z,e.validator.addValidator(w)}return e}(this.type),this.setValidators(),null===(t=this.nativeInput)||void 0===t||t.setAttribute("pattern",String(this.inputValidation.pattern)),this.autofocus&&(null===(e=this.nativeInput)||void 0===e||e.focus()),this.variantChanged(null!==(i=this.variant)&&void 0!==i?i:"primary")}setValidators(){var t,e,i;this.required&&this.inputValidation.validator.addValidator(v),""!==this.max&&Number(this.max)&&this.inputValidation.validator.addValidator((t=Number(this.max),e=>{if(""===e||null===t)return null;const i=parseFloat(e);return!isNaN(i)&&i>t?{max:`valore massimo ${t}`}:null})),""!==this.min&&Number(this.min)&&this.inputValidation.validator.addValidator((e=Number(this.max),t=>{if(""===t||null===e)return null;const i=parseFloat(t);return!isNaN(i)&&i<e?{min:`valore minimo ${e}`}:null})),this.maxlength&&this.inputValidation.validator.addValidator((i=this.maxlength,t=>""===t||null===i?null:t.length>i?{minLenght:`La lunghezza massima accettata è ${i}`}:null)),this.minlength&&this.inputValidation.validator.addValidator((t=>e=>""===e||null===t?null:e.length<t?{minLenght:`La lunghezza minima accettata è ${t}`}:null)(this.minlength))}valueChanged(){var t;this.changeEvent.emit({value:this.value}),this.internals.setFormValue(null!==(t=this.value)&&void 0!==t?t:null),void 0!==this.maxlength&&this.countMaxLength(),""!==this.value&&(this.isValid||this.validateInput())}variantChanged(t){"ai"===t&&void 0===this.icon&&(this.icon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M10 11H8V8h2zM16 11h-2V8h2z"/>\n <path fill-rule="evenodd" d="M21.544 10.436a3 3 0 0 1 0 3.128l-3.667 6A3 3 0 0 1 15.317 21H8.683a3 3 0 0 1-2.56-1.436l-3.666-6a3 3 0 0 1 0-3.128l3.667-6A3 3 0 0 1 8.683 3h6.635a3 3 0 0 1 2.56 1.436zM4.162 11.479a1 1 0 0 0 0 1.043l3.668 6a1 1 0 0 0 .853.478h6.634a1 1 0 0 0 .853-.479l3.667-6a1 1 0 0 0 0-1.042l-3.667-6A1 1 0 0 0 15.317 5H8.683a1 1 0 0 0-.853.479z" clip-rule="evenodd"/>\n <path d="M16.707 14.707C15.477 15.937 13.698 16.5 12 16.5s-3.477-.563-4.707-1.793l1.414-1.414c.77.77 1.991 1.207 3.293 1.207s2.523-.437 3.293-1.207z"/>\n</svg>\n')}maxLengthChanged(t){void 0!==t&&(t<=0?this.maxlength=void 0:this.countMaxLength())}async addValidator(t){return this.inputValidation.validator.addValidator(t),Promise.resolve()}async removeValidator(t){this.inputValidation.validator.removeValidator(t)}async hasValidator(t){return this.inputValidation.validator.hasValidator(t)}async getErrors(){return Promise.resolve(this.inputValidation.validator.errors)}validateInput(){return this.inputValidation.validator.hasValidator()&&(this.isValid=this.inputValidation.isValid(this.value),this.variant=""!==this.value||this.required?this.isValid?"success":"error":"primary",this.validationEvent.emit(this.isValid)),this.isValid}disabledChanged(t){t&&this.internals.setFormValue(null)}async setFocus(){this.nativeInput&&this.nativeInput.focus()}getInputElement(){return Promise.resolve(this.nativeInput)}componentWillRender(){this.t.lang(this.el)}render(){var t,e;return i(r,{key:"35c2ab35ec7761a4704f04eb660be93492de7672"},"number"===this.type&&"horizontal"===this.controlsLayout&&i("mds-button",{key:"cf2fe92bdb18e8eb62499aff789888bd29baf248",class:"counter-button counter-button--horizontal counter-button--decrease",icon:"arrow"===this.controlsIcon?a:d,onClick:this.stepDown,tabindex:"0",title:this.t.get("decrease"),part:"counter-button-decrease"}),"textarea"===this.type?i("textarea",{class:s("input",(null!==(t=this.icon)&&void 0!==t?t: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:t=>this.nativeInput=t,required:this.required,tabIndex:this.tabindex,value:this.value}):i("input",{class:s("input",(null!==(e=this.icon)&&void 0!==e?e: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:t=>this.nativeInput=t,required:this.required,step:this.step,tabIndex:this.tabindex,type:"password"===this.type&&this.isPasswordVisible?"text":this.type,value:this.value}),"number"===this.type&&"vertical"===this.controlsLayout&&i("div",{key:"b1143910c3612421b69ebe9a70db755d03c0c633",class:"counter counter--vertical"},i("mds-button",{key:"9b37d4cb10284697cffbc4158b6d9896e24c28c3",class:"counter-button",icon:"arrow"===this.controlsIcon?n:p,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),part:"counter-button-increase"}),i("mds-button",{key:"2da5ac1d379d52bb86baf345b632ac1d07adfbcc",class:"counter-button",icon:"arrow"===this.controlsIcon?a:d,onClick:this.stepDown,tabindex:"0",title:this.t.get("decrease"),part:"counter-button-decrease"})),"number"===this.type&&"horizontal"===this.controlsLayout&&i("mds-button",{key:"5cc396eaee3ad5ffcd88f6b29f611a7964f610b8",class:"counter-button counter-button--horizontal counter-button--increase",icon:"arrow"===this.controlsIcon?n:p,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),part:"counter-button-increase"}),"password"===this.type&&i("mds-button",{key:"cc00dcade25b03f409259915e3b5f6e5a2455f86",class:"password-toggle-button",icon:this.isPasswordVisible?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 7c2.76 0 5 2.24 5 5c0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75c-1.73-4.39-6-7.5-11-7.5c-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28l.46.46A11.804 11.804 0 0 0 1 12c1.73 4.39 6 7.5 11 7.5c1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22L21 20.73L3.27 3L2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65c0 1.66 1.34 3 3 3c.22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53c-2.76 0-5-2.24-5-5c0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15l.02-.16c0-1.66-1.34-3-3-3l-.17.01z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5s5 2.24 5 5s-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3s3-1.34 3-3s-1.34-3-3-3z"/></svg>',onClick:()=>this.isPasswordVisible=!this.isPasswordVisible,tabindex:"0",tone:"quiet",title:this.t.get(this.isPasswordVisible?"hidePassword":"showPassword"),part:"password-toggle-button"}),this.mic&&i("mds-button",{key:"54a50f335ccddfd1a9eaed43d022cfabdbfe9cec",class:s("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"}),i("mds-input-tip",{key:"80f7c4c48c5af44ca38a53fa5ad979787effd64b",lang:this.language,position:"top",active:this.hasFocus,part:"tip-top"},this.disabled&&i("mds-input-tip-item",{key:"96b7685242f4553ee779632714e76370bdfc2fb8",expanded:!0,variant:"disabled"}),this.readonly&&i("mds-input-tip-item",{key:"622ba54b143433de4043b24bd66071b2c2ea9252",expanded:!0,variant:"readonly"}),this.required&&i("mds-input-tip-item",{key:"2f8a18a7c813af38db53f5454985c82b05e4a488",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),i("mds-input-tip",{key:"39c14635fa94b923e7915f406414d990a6d5915c",lang:this.language,position:"bottom",active:this.hasFocus,part:"tip-bottom"},this.tip&&i("mds-input-tip-item",{key:"b267fd5c6de684068938b8e012ca03b5feab129a",expanded:!0,variant:"text"},this.tip),this.maxlength&&i("mds-input-tip-item",{key:"f9e0203c4686831dd3a713c0bc5de3b27f8ed23a",part:"tip-count",expanded:!0,variant:this.countVariant},this.currentLengthLabel)),this.datalist&&i("datalist",{key:"257a7e6dad1352eafd5149280b2ccf425bd6cf38",id:this.datalistId,class:"datalist"},this.datalist.map(((t,e)=>i("option",{key:e,value:t})))),this.icon&&!this.await&&i("mds-icon",{key:"85e7ff12195f5ad48eacb59e95532572ea6e14bc",class:s("icon",this.variant),name:this.icon}),i("mds-spinner",{key:"0f35bc59f5f4a5aae941adbd3d0b8d0ddd8a1e42",running:this.await,class:s("await",this.variant)}))}static get formAssociated(){return!0}get el(){return o(this)}static get watchers(){return{value:["valueChanged"],variant:["variantChanged"],maxlength:["maxLengthChanged"],disabled:["disabledChanged"]}}};M.style=':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}';export{M as mds_input}
|
|
1
|
+
import{r as t,c as e,h as i,H as r,g as o}from"./p-3a6b32e7.js";import{c as s}from"./p-8a1a6e56.js";import{m as a}from"./p-581a0bb5.js";import{m as n}from"./p-a8265c47.js";import{m as d}from"./p-af30edf5.js";import{m as h}from"./p-b69d8626.js";import{L as l}from"./p-2d77deaf.js";import{h as c}from"./p-f00c93f4.js";import"./p-85aa8e05.js";const p='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>',u='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"/><path d="M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z"/></svg>',m={decrease:"Μείωση",hidePassword:"Απόκρυψη κωδικού",increase:"Αύξηση",showPassword:"Εμφάνιση κωδικού",speechToTextError:"Η φωνητική υπαγόρευση δεν υποστηρίζεται από αυτό το πρόγραμμα περιήγησης",speechToTextOff:"Διακοπή φωνητικής υπαγόρευσης",speechToTextOn:"Έναρξη φωνητικής υπαγόρευσης"},b={decrease:"Decrease",hidePassword:"Hide password",increase:"Increase",showPassword:"Show password",speechToTextError:"Voice dictation is not supported by this browser",speechToTextOff:"Stop voice dictation",speechToTextOn:"Start voice dictation"},y={decrease:"Disminuir",hidePassword:"Ocultar contraseña",increase:"Aumentar",showPassword:"Mostrar contraseña",speechToTextError:"El dictado por voz no es compatible con este navegador",speechToTextOff:"Detener dictado por voz",speechToTextOn:"Iniciar dictado por voz"},g={decrease:"Diminuisci",hidePassword:"Nascondi password",increase:"Aumenta",showPassword:"Visualizza password",speechToTextError:"Dettatura vocale non supportata da questo browser",speechToTextOff:"Ferma dettatura vocale",speechToTextOn:"Inizia dettatura vocale"},f=()=>null,v=t=>t.length>0?null:{required:""},w=t=>{if(""===t)return null;if(Number.isNaN(t.slice(0,-1))||10!==t.length&&13!==t.length)return{"isbn-error":"formato isbn non correto"};const e=t.split("").map((t=>"X"===t?10:Number(t)));let i=0;return i=10===t.length?e.reduce(((t,e,i)=>t+(10-i)*e),0)%11:e.reduce(((t,e,i)=>t+e*(i%2==0?1:3)),0)%10,0===i?null:{"isbn-error":"codice isbn non valido"}};class x{constructor(){this._validators=[],this._errors=null,this.isValid=!0}addValidator(t){Array.isArray(t)?this._validators.push(...t):this._validators.push(t)}_hasValidator(t,e){return Array.isArray(t)?t.includes(e):t===e}hasValidator(t){return t?this._hasValidator(this._validators,t):this._validators.length>0}removeValidator(t){this._validators=this._validators.filter((e=>!this._hasValidator(t,e)))}validate(t){const e=this._validators.map((e=>e(t))).reduce(((t,e)=>Object.assign(Object.assign({},t),e)),f);this._errors=0===Object.keys(e).length?null:e,this.isValid=!this._errors}get errors(){return this._errors}}class k{}k.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,k.CF_MASK="A{6}(99|AA)A(99|AA)A(999|AAA)A",k.CC_MASK="9999-9999-9999-9999";class z{constructor(t){this.validator=new x,this.pattern=t}mask(t){if(!this.pattern)throw new Error("no pattern found, set pattern before mask")}isValid(t){return this.validator.validate(t),this.validator.isValid}}const M=class{constructor(i){t(this,i),this.changeEvent=e(this,"mdsInputChange",7),this.keyDownEvent=e(this,"mdsInputKeydown",7),this.blurEvent=e(this,"mdsInputBlur",7),this.focusEvent=e(this,"mdsInputFocus",7),this.speechEvent=e(this,"mdsInputSpeechEnd",7),this.validationEvent=e(this,"mdsInputValidation",7),i.$hostElement$["s-ei"]?this.internals=i.$hostElement$["s-ei"]:(this.internals=i.$hostElement$.attachInternals(),i.$hostElement$["s-ei"]=this.internals),this.speechToTextIcon=u,this.hasFocus=!1,this.isRecording=!1,this.countVariant="count-empty",this.isPasswordVisible=!1,this.t=new l({el:m,en:b,es:y,it:g}),this.autocomplete="off",this.autofocus=!1,this.await=!1,this.controlsLayout="vertical",this.controlsIcon="arrow",this.controlIncreaseLabel="Aumenta",this.controlDecreaseLabel="Riduci",this.disabled=!1,this.readonly=!1,this.required=!1,this.variant="primary",this.type="text",this.typography="detail",this.value="",this.countMaxLength=()=>{var t,e,i;if(!this.maxlength)return;if(void 0===this.value)return;this.currentLengthLabel=`${null!==(e=null===(t=this.value)||void 0===t?void 0:t.length)&&void 0!==e?e:0} / ${this.maxlength}`;const r=Math.round(100*this.value.length/this.maxlength);this.countVariant=(null===(i=this.value)||void 0===i?void 0:i.length)!==this.maxlength?r>=100?"count-full":r>=75?"count-almost-full":r>=50?"count-almost":r>=25?"count-incomplete":"count-empty":"count-full"},this.onInput=t=>{const e=t.target;e&&(this.value=e.value,this.internals.setFormValue(this.value)),this.keyDownEvent.emit(t)},this.onBlur=()=>{this.hasFocus=!1,this.validateInput(),this.blurEvent.emit()},this.onFocus=t=>{const e=t.target;this.hasFocus=!0,this.focusEvent.emit(),this.readonly&&setTimeout((()=>{e.select()}),10)},this.stepUp=()=>{!this.nativeInput||this.readonly||this.disabled||(this.nativeInput.stepUp(),this.value=this.nativeInput.value)},this.stepDown=()=>{!this.nativeInput||this.readonly||this.disabled||(this.nativeInput.stepDown(),this.value=this.nativeInput.value)},this.toggleTextRecognition=()=>{if(this.isRecording=!this.isRecording,!this.isRecording)return this.speechToTextLabel=this.t.get("speechToTextOn"),this.speechToTextIcon=u,void this.stopRecognition();this.speechToTextLabel=this.t.get("speechToTextOff"),this.speechToTextIcon=h,this.startRecognition()},this.onSpeechRecognitionError=()=>{console.error("SpeechRecognition API may not work properly on Chrome based browsers."),this.speechButton.classList.remove("mic-toggle-button--recording"),this.speechButton.classList.add("toggle-button--error"),this.isRecording=!1,this.speechToTextLabel=this.t.get("speechToTextError"),this.speechToTextIcon='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10.8 4.9c0-.66.54-1.2 1.2-1.2s1.2.54 1.2 1.2l-.01 3.91L15 10.6V5c0-1.66-1.34-3-3-3c-1.54 0-2.79 1.16-2.96 2.65l1.76 1.76V4.9zM19 11h-1.7c0 .58-.1 1.13-.27 1.64l1.27 1.27c.44-.88.7-1.87.7-2.91zM4.41 2.86L3 4.27l6 6V11c0 1.66 1.34 3 3 3c.23 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52c-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28a7.13 7.13 0 0 0 2.55-.9l4.2 4.2l1.41-1.41L4.41 2.86z"/></svg>'},this.startRecognition=()=>{var t,e,i;this.speechButton||(this.speechButton=null===(e=null===(t=this.el)||void 0===t?void 0:t.shadowRoot)||void 0===e?void 0:e.querySelector(".mic-toggle-button"));const r=null!==(i=window.SpeechRecognition)&&void 0!==i?i:window.webkitSpeechRecognition;if(this.value="",!r)return void this.onSpeechRecognitionError();this.recognition=new r,this.recognition.continuous=!0,this.recognition.lang=navigator.language||"it-IT",this.recognition.interimResults=!0,this.recognition.maxAlternatives=1;let o="",s=0;this.recognition.onresult=t=>{const e=t.results[s];if(e.isFinal)return o+=e[0].transcript,this.value=o,void(s+=1);this.value=o+e[0].transcript},this.recognition.onerror=t=>{console.error("SpeechRecognition API error:",t.error),this.onSpeechRecognitionError()},this.recognition.start()},this.stopRecognition=()=>{this.recognition&&(this.recognition.stop(),this.speechEvent.emit())}}async updateLang(){this.language=this.t.lang(this.el),this.t.update()}formResetCallback(){this.internals.setFormValue("")}connectedCallback(){this.datalistId=`datalist-${c()}`}componentWillLoad(){var t;if(this.language=this.t.lang(this.el),this.speechToTextLabel=this.t.get("speechToTextOn"),this.el.hasAttribute("tabindex")){const t=this.el.getAttribute("tabindex");this.tabindex=null!==t?parseInt(t):void 0,this.el.removeAttribute("tabindex")}this.internals.setFormValue(null!==(t=this.value)&&void 0!==t?t:null),this.maxLengthChanged(this.maxlength),this.isValid=!(this.required&&!this.value)}componentDidLoad(){var t,e,i;this.inputValidation=function(t){let e;switch(t){case"tel":case"url":case"piva":default:e=new z("");break;case"cc":e=new z(k.CC_MASK);break;case"cf":e=new z(k.CF_MASK),e.validator.addValidator((t=>""===t||k.CF_Regex.test(t)?null:{"cf-regex":"Codice fiscale inserito non corretto"})),e.validator.addValidator((t=>""===t||16===t.length?null:{"cf-length":"Codice fiscale deve essere lungo 16 caratteri"}));break;case"isbn":e=new z,e.validator.addValidator(w)}return e}(this.type),this.setValidators(),null===(t=this.nativeInput)||void 0===t||t.setAttribute("pattern",String(this.inputValidation.pattern)),this.autofocus&&(null===(e=this.nativeInput)||void 0===e||e.focus()),this.variantChanged(null!==(i=this.variant)&&void 0!==i?i:"primary")}setValidators(){var t,e,i;this.required&&this.inputValidation.validator.addValidator(v),""!==this.max&&Number(this.max)&&this.inputValidation.validator.addValidator((t=Number(this.max),e=>{if(""===e||null===t)return null;const i=parseFloat(e);return!isNaN(i)&&i>t?{max:`valore massimo ${t}`}:null})),""!==this.min&&Number(this.min)&&this.inputValidation.validator.addValidator((e=Number(this.max),t=>{if(""===t||null===e)return null;const i=parseFloat(t);return!isNaN(i)&&i<e?{min:`valore minimo ${e}`}:null})),this.maxlength&&this.inputValidation.validator.addValidator((i=this.maxlength,t=>""===t||null===i?null:t.length>i?{minLenght:`La lunghezza massima accettata è ${i}`}:null)),this.minlength&&this.inputValidation.validator.addValidator((t=>e=>""===e||null===t?null:e.length<t?{minLenght:`La lunghezza minima accettata è ${t}`}:null)(this.minlength))}valueChanged(){var t;this.changeEvent.emit({value:this.value}),this.internals.setFormValue(null!==(t=this.value)&&void 0!==t?t:null),void 0!==this.maxlength&&this.countMaxLength(),""!==this.value&&(this.isValid||this.validateInput())}variantChanged(t){"ai"===t&&void 0===this.icon&&(this.icon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M10 11H8V8h2zM16 11h-2V8h2z"/>\n <path fill-rule="evenodd" d="M21.544 10.436a3 3 0 0 1 0 3.128l-3.667 6A3 3 0 0 1 15.317 21H8.683a3 3 0 0 1-2.56-1.436l-3.666-6a3 3 0 0 1 0-3.128l3.667-6A3 3 0 0 1 8.683 3h6.635a3 3 0 0 1 2.56 1.436zM4.162 11.479a1 1 0 0 0 0 1.043l3.668 6a1 1 0 0 0 .853.478h6.634a1 1 0 0 0 .853-.479l3.667-6a1 1 0 0 0 0-1.042l-3.667-6A1 1 0 0 0 15.317 5H8.683a1 1 0 0 0-.853.479z" clip-rule="evenodd"/>\n <path d="M16.707 14.707C15.477 15.937 13.698 16.5 12 16.5s-3.477-.563-4.707-1.793l1.414-1.414c.77.77 1.991 1.207 3.293 1.207s2.523-.437 3.293-1.207z"/>\n</svg>\n')}maxLengthChanged(t){void 0!==t&&(t<=0?this.maxlength=void 0:this.countMaxLength())}async addValidator(t){return this.inputValidation.validator.addValidator(t),Promise.resolve()}async removeValidator(t){this.inputValidation.validator.removeValidator(t)}async hasValidator(t){return this.inputValidation.validator.hasValidator(t)}async getErrors(){return Promise.resolve(this.inputValidation.validator.errors)}validateInput(){return this.inputValidation.validator.hasValidator()&&(this.isValid=this.inputValidation.isValid(this.value),this.variant=""!==this.value||this.required?this.isValid?"success":"error":"primary",this.validationEvent.emit(this.isValid)),this.isValid}disabledChanged(t){t&&this.internals.setFormValue(null)}async setFocus(){this.nativeInput&&this.nativeInput.focus()}getInputElement(){return Promise.resolve(this.nativeInput)}componentWillRender(){this.t.lang(this.el)}render(){var t,e;return i(r,{key:"ebbe46c4c882755da77b567e1f13fc97c07e2513"},"number"===this.type&&"horizontal"===this.controlsLayout&&i("mds-button",{key:"0158cfb2383b201582346182d4e091d7a4335aaa",class:"counter-button counter-button--horizontal counter-button--decrease",icon:"arrow"===this.controlsIcon?a:d,onClick:this.stepDown,tabindex:"0",title:this.t.get("decrease"),part:"counter-button-decrease"}),"textarea"===this.type?i("textarea",{class:s("input",(null!==(t=this.icon)&&void 0!==t?t: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:t=>this.nativeInput=t,required:this.required,tabIndex:this.tabindex,value:this.value}):i("input",{class:s("input",(null!==(e=this.icon)&&void 0!==e?e: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:t=>this.nativeInput=t,required:this.required,step:this.step,tabIndex:this.tabindex,type:"password"===this.type&&this.isPasswordVisible?"text":this.type,value:this.value}),"number"===this.type&&"vertical"===this.controlsLayout&&i("div",{key:"f45f2154fc54ca72cc21a2d961bd2bd20d4efd78",class:"counter counter--vertical"},i("mds-button",{key:"5d854eca0c1c4a76a635830cc818902ccf291852",class:"counter-button",icon:"arrow"===this.controlsIcon?n:p,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),part:"counter-button-increase"}),i("mds-button",{key:"2617f16ee356d1b2e1a8908c9aa462f066dc1f0a",class:"counter-button",icon:"arrow"===this.controlsIcon?a:d,onClick:this.stepDown,tabindex:"0",title:this.t.get("decrease"),part:"counter-button-decrease"})),"number"===this.type&&"horizontal"===this.controlsLayout&&i("mds-button",{key:"df1cf80a287bbec3ca0ab54023931fe7304adb9d",class:"counter-button counter-button--horizontal counter-button--increase",icon:"arrow"===this.controlsIcon?n:p,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),part:"counter-button-increase"}),"password"===this.type&&i("mds-button",{key:"ac5c8680a80dd3dedb363e3aaf0a11bf0c8c51f0",class:"password-toggle-button",icon:this.isPasswordVisible?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 7c2.76 0 5 2.24 5 5c0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75c-1.73-4.39-6-7.5-11-7.5c-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28l.46.46A11.804 11.804 0 0 0 1 12c1.73 4.39 6 7.5 11 7.5c1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22L21 20.73L3.27 3L2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65c0 1.66 1.34 3 3 3c.22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53c-2.76 0-5-2.24-5-5c0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15l.02-.16c0-1.66-1.34-3-3-3l-.17.01z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5s5 2.24 5 5s-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3s3-1.34 3-3s-1.34-3-3-3z"/></svg>',onClick:()=>this.isPasswordVisible=!this.isPasswordVisible,tabindex:"0",tone:"quiet",title:this.t.get(this.isPasswordVisible?"hidePassword":"showPassword"),part:"password-toggle-button"}),this.mic&&i("mds-button",{key:"703c6f48c6357d3de79f305564b6c31e1ba0678b",class:s("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"}),i("mds-input-tip",{key:"6300abd186f702372b8cc38f727896086e8f994a",lang:this.language,position:"top",active:this.hasFocus,part:"tip-top"},this.disabled&&i("mds-input-tip-item",{key:"d47cf370835d9e8c750a0950b9e86a32306d26f3",expanded:!0,variant:"disabled"}),this.readonly&&i("mds-input-tip-item",{key:"1ff24111dc1b14da62784f3354e6f124f8741cf0",expanded:!0,variant:"readonly"}),this.required&&i("mds-input-tip-item",{key:"4e991439eab49a60c27d44df7257212a10047ad6",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),i("mds-input-tip",{key:"eba28daea6dff97b5072f792976fced121bfc0be",lang:this.language,position:"bottom",active:this.hasFocus,part:"tip-bottom"},this.tip&&i("mds-input-tip-item",{key:"c4154c51c86efdd1fb973ab013df3fb19880a042",expanded:!0,variant:"text"},this.tip),this.maxlength&&i("mds-input-tip-item",{key:"01700711312f6146c6acbd8f7cbbb5d507460626",part:"tip-count",expanded:!0,variant:this.countVariant},this.currentLengthLabel)),this.datalist&&i("datalist",{key:"63458f5f6097dff8a67aef131de941a18cae754e",id:this.datalistId,class:"datalist"},this.datalist.map(((t,e)=>i("option",{key:e,value:t})))),this.icon&&!this.await&&i("mds-icon",{key:"5e46fdcc469c528e1516deb07f110b208990e08d",class:s("icon",this.variant),name:this.icon}),i("mds-spinner",{key:"19d7c3c5ac40822f72a58c8d4a8ccd93adb7cc05",running:this.await,class:s("await",this.variant)}))}static get formAssociated(){return!0}get el(){return o(this)}static get watchers(){return{value:["valueChanged"],variant:["variantChanged"],maxlength:["maxLengthChanged"],disabled:["disabledChanged"]}}};M.style=':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}';export{M as mds_input}
|