@maggioli-design-system/magma 1.11.2 → 1.11.4
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-input-date.cjs.entry.js +32 -21
- package/dist/cjs/mds-input.cjs.entry.js +10 -10
- package/dist/collection/components/mds-input/mds-input.js +10 -10
- package/dist/collection/components/mds-input-date/mds-input-date.js +68 -21
- package/dist/components/mds-input-date.js +34 -22
- package/dist/components/mds-input2.js +10 -10
- package/dist/documentation.json +47 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-input-date.entry.js +32 -21
- package/dist/esm/mds-input.entry.js +10 -10
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/magma-components.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 +44 -32
- package/dist/hydrate/index.mjs +44 -32
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/p-26cd6ec8.system.js +1 -1
- package/dist/magma-components/{p-f84a0816.system.entry.js → p-409c9518.system.entry.js} +1 -1
- package/dist/magma-components/p-80b11d2e.entry.js +1 -0
- package/dist/magma-components/p-977d3bf0.entry.js +1 -0
- package/dist/magma-components/{p-8115a5c3.system.entry.js → p-9e08e8f1.system.entry.js} +1 -1
- package/dist/stats.json +109 -27
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +8 -1
- package/dist/types/components.d.ts +8 -2
- package/package.json +1 -1
- package/dist/magma-components/p-83563864.entry.js +0 -1
- package/dist/magma-components/p-987e1cd6.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,a,t,n){function d(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{r(n.next(e))}catch(e){i(e)}}function l(e){try{r(n["throw"](e))}catch(e){i(e)}}function r(e){e.done?t(e.value):d(e.value).then(s,l)}r((n=n.apply(e,a||[])).next())}))};var __generator=this&&this.__generator||function(e,a){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,d,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(a){return r([e,a])}}function r(l){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(t=0)),t)try{if(n=1,d&&(i=l[0]&2?d["return"]:l[0]?d["throw"]||((i=d["return"])&&i.call(d),0):d.next)&&!(i=i.call(d,l[1])).done)return i;if(d=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:t.label++;return{value:l[1],done:false};case 5:t.label++;d=l[1];l=[0];continue;case 7:l=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1];i=l;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(l);break}if(i[2])t.ops.pop();t.trys.pop();continue}l=a.call(e,t)}catch(e){l=[6,e];d=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};import{p as promiseResolve,b as bootstrapLazy}from"./index-7f153b9b.js";export{s as setNonce}from"./index-7f153b9b.js";import{g as globalScripts}from"./app-globals-0f993ce5.js";var patchBrowser=function(){var e=import.meta.url;var a={};if(e!==""){a.resourcesUrl=new URL(".",e).href}return promiseResolve(a)};patchBrowser().then((function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(a){switch(a.label){case 0:return[4,globalScripts()];case 1:a.sent();return[2,bootstrapLazy(JSON.parse('[["mds-input-upload",[[65,"mds-input-upload",{"accept":[513],"maxFileSize":[514,"max-file-size"],"maxFiles":[514,"max-files"],"sort":[513],"initialValue":[16],"language":[32],"actionTitle":[32],"files":[32],"progress":[32],"animateText":[32],"updateLang":[64],"getFiles":[64],"getFilesError":[64],"reset":[64]},null,{"initialValue":["updateInitialValue"],"maxFiles":["updateActionTitle"]}]]],["mds-input-date",[[65,"mds-input-date",{"value":[513],"name":[513],"variant":[1537],"min":[1537],"max":[1537],"delay":[514],"disabled":[516],"readonly":[516],"required":[516],"isValid":[32],"language":[32],"touched":[32],"calendarKey":[32],"dropdownRef":[32],"hasFocus":[32],"updateLang":[64],"focusInput":[64],"setValue":[64]},null,{"value":["handleValue"]}]]],["mds-policy-ai",[[1,"mds-policy-ai",{"headline":[513],"description":[513],"variant":[513],"href":[513],"language":[32],"updateLang":[64]}]]],["mds-avatar-stack",[[1,"mds-avatar-stack",{"size":[513],"total":[514]}]]],["mds-input-date-range",[[65,"mds-input-date-range",{"startDate":[513,"start-date"],"endDate":[513,"end-date"],"min":[513],"max":[513],"delay":[514],"name":[513],"calendarKey":[32],"internalStartDate":[32],"internalEndDate":[32],"dropdownRef":[32],"hasPreselection":[32],"language":[32],"updateLang":[64],"preselect":[64]},null,{"startDate":["handleStartDateChange"],"endDate":["handleEndDateChange"]}]]],["mds-input-otp",[[65,"mds-input-otp",{"length":[2],"autosubmit":[516],"value":[1537]}]]],["mds-pref-language",[[1,"mds-pref-language",{"size":[513],"set":[1537],"showDropdown":[32],"language":[32],"updateLang":[64]}]]],["mds-table-header",[[1,"mds-table-header",{"selectable":[4],"selectAll":[32],"hasActions":[32],"indeterminate":[32],"hasSelection":[32],"language":[32],"updateLang":[64],"setSelection":[64]}]]],["mds-entity",[[1,"mds-entity",{"await":[516],"icon":[513],"src":[513],"initials":[513],"tone":[513],"variant":[513]}]]],["mds-pref-animation",[[1,"mds-pref-animation",{"size":[513],"mode":[1537],"language":[32],"updateLang":[64]},null,{"mode":["modeChanged"]}]]],["mds-pref-consumption",[[1,"mds-pref-consumption",{"size":[513],"mode":[1537],"language":[32],"updateLang":[64]},null,{"mode":["modeChanged"]}]]],["mds-pref-contrast",[[1,"mds-pref-contrast",{"size":[513],"mode":[1537],"language":[32],"updateLang":[64]},null,{"mode":["modeChanged"]}]]],["mds-pref-theme",[[1,"mds-pref-theme",{"size":[513],"mode":[1537],"transition":[1537],"language":[32],"disabled":[32],"updateLang":[64]},null,{"mode":["modeChanged"]}]]],["mds-push-notification-item",[[1,"mds-push-notification-item",{"datetime":[1537],"dateFormat":[513,"date-format"],"deletable":[1540],"icon":[513],"initials":[1537],"message":[513],"preview":[513],"src":[513],"subject":[513],"tone":[513],"variant":[513],"language":[32],"updateLang":[64]},null,{"deletable":["handleDeletableChange"]}]]],["mds-button-dropdown",[[1,"mds-button-dropdown",{"label":[1],"autoFocus":[4,"auto-focus"],"icon":[1537],"type":[513],"variant":[513],"tone":[513],"size":[513],"active":[1540],"disabled":[1540],"await":[1540],"href":[513],"target":[1],"truncate":[513]}]]],["mds-header",[[1,"mds-header",{"appearance":[1537],"appearanceSet":[513,"appearance-set"],"autoHide":[514,"auto-hide"],"backdrop":[516],"menu":[513],"nav":[513],"threshold":[514],"visibility":[1537],"hasMenu":[32],"isOpened":[32],"setOpened":[64]},null,{"menu":["onMenuChangedHandler"],"nav":["onNavChangedHandler"],"appearanceSet":["onAppearanceSetChangedHandler"],"visibility":["handleVisibilityChange"]}]]],["mds-keyboard",[[1,"mds-keyboard",{"test":[1537],"try":[516],"language":[32],"testPassed":[32],"updateLang":[64]},null,{"try":["handleTryProperty"]}]]],["mds-radial-menu-item",[[1,"mds-radial-menu-item",{"tooltip":[513],"icon":[1537],"tone":[513],"variant":[513],"size":[513]}]]],["mds-status-bar",[[1,"mds-status-bar",{"description":[513],"overflow":[513],"position":[513],"visible":[1540],"hide":[64]},null,{"visible":["handleVisbilityProp"]}]]],["mds-stepper-bar-item",[[1,"mds-stepper-bar-item",{"label":[1],"step":[4],"badge":[1540],"icon":[1],"iconChecked":[1,"icon-checked"],"done":[516],"current":[1540],"value":[513],"typography":[1],"isDone":[32],"isCurrent":[32],"index":[32],"language":[32],"updateLang":[64]},null,{"done":["selectedHandler"],"current":["currentHandler"]}]]],["mds-breadcrumb",[[1,"mds-breadcrumb",{"back":[4],"language":[32],"updateLang":[64]},[[0,"mdsBreadcrumbItemSelect","activedEventHandler"]]]]],["mds-header-bar",[[1,"mds-header-bar",{"menu":[513],"nav":[513],"isOpened":[32],"setOpened":[64]}]]],["mds-horizontal-scroll",[[1,"mds-horizontal-scroll",{"controls":[1537],"navigation":[513],"snap":[513],"hasCompatibility":[32],"showForward":[32],"showBack":[32]},null,{"navigation":["watchNavigation"]}]]],["mds-input-date-range-preselection",[[1,"mds-input-date-range-preselection",{"selected":[1540],"start":[513],"end":[513]}]]],["mds-label",[[1,"mds-label",{"labelAction":[1,"label-action"],"variant":[513],"tone":[513],"truncate":[513],"typography":[1],"deletable":[4],"language":[32],"updateLang":[64]}]]],["mds-note",[[1,"mds-note",{"deletable":[4],"variant":[513],"language":[32],"updateLang":[64]}]]],["mds-pref-language-item",[[1,"mds-pref-language-item",{"code":[513],"selected":[516],"language":[32],"updateLang":[64]}]]],["mds-push-notification",[[1,"mds-push-notification",{"visible":[1540],"behavior":[1],"show":[64],"hide":[64],"removeNotification":[64]},null,{"visible":["visibleChanged"]}]]],["mds-radial-menu",[[1,"mds-radial-menu",{"angleStart":[514,"angle-start"],"angleEnd":[514,"angle-end"],"radius":[514],"direction":[513],"opened":[1540],"disc":[1540],"backdrop":[516],"interaction":[513],"icon":[1537],"variant":[513],"tone":[513],"size":[513]},null,{"disc":["onDiscChanged"],"backdrop":["backdropChanged"],"interaction":["onInteractionChange"],"angleStart":["onAngleStartChange"],"angleEnd":["onAngleEndChange"],"radius":["onRadiusChange"],"size":["onSizeChange"],"opened":["onOpenedChange"]}]]],["mds-table-row",[[1,"mds-table-row",{"interactive":[516],"overlayActions":[516,"overlay-actions"],"selectable":[516],"selected":[1540],"value":[520],"sizerWidth":[32],"language":[32],"updateLang":[64]}]]],["mds-tree-item",[[1,"mds-tree-item",{"actions":[513],"async":[516],"depth":[514],"label":[1],"toggle":[513],"expanded":[1540],"truncate":[513],"icon":[1],"hasActions":[32],"hasChildren":[32],"currentToggleIcon":[32],"await":[32],"language":[32],"updateLang":[64],"expand":[64]},null,{"toggle":["handleIconChange"],"expanded":["handleExpandedChange"]}]]],["mds-url-view",[[1,"mds-url-view",{"icon":[513],"label":[513],"src":[513],"loading":[513],"language":[32],"updateLang":[64]}]]],["mds-accordion-timer-item",[[1,"mds-accordion-timer-item",{"typography":[1],"selected":[516],"description":[1],"duration":[514],"progress":[2],"uuid":[2]},null,{"selected":["handleSelected"]}]]],["mds-benchmark-bar",[[1,"mds-benchmark-bar",{"alias":[1],"typography":[1],"value":[2],"variant":[513]}]]],["mds-file",[[1,"mds-file",{"suffix":[513],"description":[1],"filename":[1],"preview":[1],"showDownloadedIcon":[4,"show-downloaded-icon"],"format":[1537],"language":[32],"wasDownloaded":[32],"updateLang":[64]},null,{"filename":["handleFilename"]}]]],["mds-filter",[[1,"mds-filter",{"autoReset":[516,"auto-reset"],"label":[1],"multiple":[516],"reset":[516],"active":[32],"itemsSelected":[32]},[[0,"mdsFilterItemSelect","activeEventHandler"]]]]],["mds-input-select",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32],"language":[32],"updateLang":[64],"setValue":[64]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]],["mds-paginator",[[1,"mds-paginator",{"pages":[2],"currentPage":[1538,"current-page"]}]]],["mds-keyboard-key",[[1,"mds-keyboard-key",{"name":[513],"pressed":[516],"language":[32],"updateLang":[64]}]]],["mds-kpi-item",[[1,"mds-kpi-item",{"label":[1],"description":[1],"threshold":[2],"icon":[1],"isIntersecting":[32]}]]],["mds-list-item",[[1,"mds-list-item",{"typography":[513],"variant":[1],"icon":[1]}]]],["mds-mention",[[1,"mds-mention",{"icon":[513],"label":[513],"size":[513]}]]],["mds-tab-bar-item",[[1,"mds-tab-bar-item",{"icon":[1],"selected":[1540],"typography":[1],"isSelected":[32]},null,{"selected":["validateSelected"]}]]],["mds-usage",[[1,"mds-usage",{"variant":[1],"alias":[1],"language":[32],"updateLang":[64]}]]],["mds-accordion-item",[[1,"mds-accordion-item",{"typography":[1],"selected":[1540],"label":[1]}]]],["mds-bibliography",[[1,"mds-bibliography",{"format":[1],"author":[1],"name":[1],"publisher":[1],"date":[1],"location":[1],"rel":[1],"typography":[1],"variant":[1],"url":[1]}]]],["mds-breadcrumb-item",[[1,"mds-breadcrumb-item",{"selected":[1540]}]]],["mds-input-field",[[65,"mds-input-field",{"label":[1025],"message":[1025],"variant":[1537]}]]],["mds-input-range",[[65,"mds-input-range",{"formatValue":[16],"name":[513],"max":[2],"min":[2],"step":[2],"disabled":[1540],"value":[1538],"progress":[32]},null,{"disabled":["disabledChanged"],"value":["valueChanged"],"min":["minChanged"],"max":["maxChanged"],"step":["stepChanged"]}]]],["mds-notification",[[1,"mds-notification",{"target":[1],"value":[1538],"visible":[1540],"strategy":[1537],"max":[514]},null,{"strategy":["strategyHandler"]}]]],["mds-pref",[[1,"mds-pref",{"size":[513],"controller":[1540],"showReload":[32],"language":[32],"updateLang":[64]},null,{"controller":["handleControllerChange"],"size":["handleSizeChange"]}]]],["mds-price-table-features",[[1,"mds-price-table-features",{"label":[1]}]]],["mds-price-table-features-cell",[[1,"mds-price-table-features-cell",{"type":[513]}]]],["mds-price-table-list",[[1,"mds-price-table-list",{"hasItems":[32]}]]],["mds-price-table-list-item",[[1,"mds-price-table-list-item",{"supported":[516],"typography":[513]}]]],["mds-quote",[[1,"mds-quote",{"typography":[1],"tag":[1]}]]],["mds-toast",[[1,"mds-toast",{"duration":[1538],"visible":[1540],"variant":[513],"tone":[513],"position":[1537]},null,{"visible":["visibleChanged"],"duration":["durationChanged"]}]]],["mds-accordion",[[1,"mds-accordion",{"multiple":[4],"closable":[4]},[[0,"mdsAccordionItemSelect","selectedEventHandler"],[0,"mdsAccordionItemUnselect","unselectedEventHandler"]]]]],["mds-accordion-timer",[[1,"mds-accordion-timer",{"duration":[514],"paused":[516],"time":[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickSelect"],[0,"mdsAccordionTimerItemSelect","onSelect"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]],{"paused":["handlePaused"]}]]],["mds-author",[[1,"mds-author"]]],["mds-button-group",[[1,"mds-button-group"]]],["mds-card",[[1,"mds-card",{"autoGrid":[516,"auto-grid"],"layout":[32]}]]],["mds-card-content",[[1,"mds-card-content"]]],["mds-card-footer",[[1,"mds-card-footer"]]],["mds-card-header",[[1,"mds-card-header"]]],["mds-card-media",[[1,"mds-card-media"]]],["mds-details",[[1,"mds-details",{"opened":[1540],"isOpened":[32],"hasIcon":[32]},null,{"opened":["validateOpened"]}]]],["mds-emoji",[[1,"mds-emoji",{"name":[513],"agree":[64],"disagree":[64],"startThinking":[64],"stopThinking":[64],"startBlinking":[64],"stopBlinking":[64],"stopFollowMouse":[64],"startFollowMouse":[64]}]]],["mds-hr",[[1,"mds-hr"]]],["mds-kpi",[[1,"mds-kpi"]]],["mds-list",[[1,"mds-list"]]],["mds-price-table",[[1,"mds-price-table"]]],["mds-price-table-features-row",[[1,"mds-price-table-features-row",{"cellPercWidth":[32]}]]],["mds-price-table-header",[[1,"mds-price-table-header"]]],["mds-stepper-bar",[[1,"mds-stepper-bar",{"itemsDone":[2,"items-done"],"navigation":[513],"currentItem":[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]],{"itemsDone":["itemDone"]}]]],["mds-tab-bar",[[1,"mds-tab-bar",null,[[0,"mdsTabBarItemSelect","changeEventHandler"]]]]],["mds-table",[[1,"mds-table",{"interactive":[4],"selectable":[4],"selection":[1540],"selectedRows":[32],"updateSelection":[64],"selectAll":[64]},null,{"interactive":["onTableInteractive"],"selectable":["onTableSelectable"]}]]],["mds-table-body",[[1,"mds-table-body",{"interactive":[516],"selection":[516]}]]],["mds-table-footer",[[1,"mds-table-footer"]]],["mds-tree",[[1,"mds-tree",{"appearance":[513],"async":[516],"label":[1],"toggle":[513],"togglePosition":[513,"toggle-position"],"expanded":[1540],"truncate":[513],"actions":[513]},null,{"expanded":["handleExpandedChange"],"toggle":["handleToggleChange"],"truncate":["handleTruncateChange"]}]]],["mds-video-wall",[[1,"mds-video-wall",{"autoplay":[4],"loop":[4],"muted":[4],"noise":[1],"poster":[1],"preload":[1],"src":[1]}]]],["mds-zero",[[1,"mds-zero"]]],["mds-text",[[1,"mds-text",{"animation":[1],"tag":[1537],"text":[513],"truncate":[513],"typography":[513],"variant":[513]},null,{"text":["textHandler"]}]]],["mds-avatar-stack-item",[[1,"mds-avatar-stack-item",{"count":[514],"initials":[1537],"src":[513],"tone":[513],"variant":[513]}]]],["mds-file-preview",[[1,"mds-file-preview",{"deletable":[516],"downloadable":[516],"description":[513],"filename":[513],"filesize":[513],"message":[513],"truncate":[513],"src":[513],"suffix":[513],"icon":[513],"variant":[513],"format":[1537],"language":[32],"updateLang":[64]},null,{"filename":["handleFilename"],"downloadable":["handleDownloadable"]}]]],["mds-input-tip_2",[[1,"mds-input-tip-item",{"variant":[513],"expanded":[1540],"language":[32],"updateLang":[64]},null,{"expanded":["handleEcpandedChanged"]}],[1,"mds-input-tip",{"active":[516],"position":[513]}]]],["mds-input",[[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"]}]]],["mds-table-header-cell",[[1,"mds-table-header-cell",{"sortable":[516],"label":[513],"direction":[1537],"isAscending":[32]},null,{"sortable":["sortableHandler"],"direction":["directionHandler"]}]]],["mds-filter-item",[[1,"mds-filter-item",{"selected":[1540],"label":[513],"icon":[513],"value":[513],"count":[513],"disabled":[516]}]]],["mds-paginator-item",[[1,"mds-paginator-item",{"icon":[513],"selected":[516],"disabled":[516]}]]],["mds-separator",[[1,"mds-separator"]]],["mds-modal",[[1,"mds-modal",{"opened":[1540],"backdrop":[1540],"position":[1537],"animating":[1537],"animation":[513],"overflow":[513],"interaction":[513],"close":[64]},null,{"opened":["handleOpenProp"],"backdrop":["handleBackdropProp"]}]]],["mds-tooltip",[[1,"mds-tooltip",{"arrow":[4],"arrowPadding":[2,"arrow-padding"],"autoPlacement":[516,"auto-placement"],"flip":[4],"target":[513],"offset":[2],"placement":[513],"typography":[1],"shift":[4],"shiftPadding":[2,"shift-padding"],"strategy":[513],"visible":[1540]},null,{"arrow":["arrowChanged"],"autoPlacement":["autoPlacementChanged"],"flip":["flipChanged"],"offset":["offsetChanged"],"placement":["placementChanged"],"shift":["shiftChanged"],"shiftPadding":["shiftPaddingChanged"],"strategy":["strategyChanged"],"visible":["visibleChanged"],"target":["targetChanged"]}]]],["mds-button_3",[[65,"mds-button",{"autoFocus":[4,"auto-focus"],"hasText":[1540,"has-text"],"icon":[1537],"iconPosition":[1,"icon-position"],"type":[513],"variant":[513],"tone":[513],"size":[513],"active":[1540],"disabled":[1540],"await":[1540],"href":[513],"target":[1],"truncate":[513]},null,{"disabled":["disabledChanged"],"await":["awaitChanged","handleAwaitChange"],"type":["handleTypeChange"],"variant":["handleVariantChange"]}],[1,"mds-spinner",{"running":[1540]},null,{"running":["handleRunning"]}],[1,"mds-icon",{"name":[513],"svgHTML":[32],"_iconHref":[32],"setSvgPath":[64]},null,{"name":["updateIcon"]}]]],["mds-banner_3",[[1,"mds-banner",{"variant":[513],"tone":[513],"cockade":[516],"deletable":[4],"headline":[1],"icon":[1],"language":[32],"updateLang":[64]}],[1,"mds-chip",{"clickable":[1540],"deletable":[4],"disabled":[4],"icon":[1],"label":[513],"selected":[1540],"selectable":[516],"variant":[513],"tone":[513],"language":[32],"updateLang":[64]},null,{"selectable":["handleSelectableProp"],"clickable":["handleClickableProp"],"selected":["handleSelectedProp"]}],[1,"mds-help",{"icon":[1],"autoPlacement":[516,"auto-placement"],"placement":[513]}]]],["mds-avatar",[[1,"mds-avatar",{"icon":[513],"initials":[1537],"count":[1538],"src":[513],"tone":[513],"variant":[1537],"fallback":[32],"loaded":[32]},null,{"initials":["initialsHandler"],"count":["countHandler"],"src":["srcHandler"],"icon":["iconHandler"]}]]],["mds-input-switch_2",[[65,"mds-input-switch",{"autofocus":[516],"checked":[1540],"disabled":[1540],"explicit":[516],"icon":[513],"indeterminate":[1540],"name":[513],"size":[513],"type":[513],"typography":[513],"variant":[513],"value":[1537],"dirty":[32],"hasText":[32],"language":[32],"updateLang":[64]},null,{"disabled":["disabledChanged"],"checked":["checkedChanged"],"explicit":["explicitChanged"]}],[1,"mds-table-cell",{"value":[520]}]]],["mds-calendar_2",[[1,"mds-calendar",{"rangePicker":[4,"range-picker"],"startDate":[513,"start-date"],"endDate":[513,"end-date"],"min":[513],"max":[513],"hasPreselection":[32],"currentDate":[32],"weekDaysinMonth":[32],"weekdays":[32],"startDateIdentifier":[32],"endDateIdentifier":[32],"isFirstClick":[32],"currentView":[32],"selectedYear":[32],"language":[32],"internalStartDate":[32],"internalEndDate":[32],"updateLang":[64],"updateCurrentDate":[64]},null,{"startDate":["handleStartDate"],"endDate":["handleEndDate"]}],[1,"mds-calendar-cell",{"month":[513],"date":[513],"orientation":[513],"preview":[516],"selection":[513],"disabled":[516],"today":[516]}]]],["mds-badge",[[1,"mds-badge",{"variant":[513],"tone":[513],"typography":[1],"typographyVariant":[1,"typography-variant"]}]]],["mds-dropdown",[[1,"mds-dropdown",{"arrow":[516],"arrowPadding":[2,"arrow-padding"],"autoPlacement":[4,"auto-placement"],"backdrop":[516],"flip":[4],"interaction":[513],"target":[1],"offset":[2],"placement":[1],"shift":[4],"shiftPadding":[2,"shift-padding"],"smooth":[4],"strategy":[1],"visible":[1540],"zIndex":[2,"z-index"]},null,{"arrow":["arrowChanged"],"arrowPadding":["arrowPaddingChanged"],"autoPlacement":["autoPlacementChanged"],"backdrop":["backdropChanged"],"flip":["flipChanged"],"offset":["offsetChanged"],"placement":["placementChanged"],"shift":["shiftChanged"],"shiftPadding":["shiftPaddingChanged"],"strategy":["strategyChanged"],"target":["targetChanged"],"visible":["visibleChanged"]}]]],["mds-img",[[1,"mds-img",{"alt":[1537],"crossorigin":[1],"height":[1],"loading":[1],"referrerpolicy":[1],"sizes":[1],"src":[1],"srcset":[1],"srcsetConsumption":[1,"srcset-consumption"],"width":[1],"imageConsumptionLoaded":[32],"imageError":[32],"language":[32],"updateLang":[64]},null,{"srcsetConsumption":["srcsetConsumptionHandler"],"src":["srcHandler"]}]]],["mds-progress_2",[[1,"mds-progress",{"progress":[2],"direction":[513],"variant":[513],"typography":[1],"steps":[1],"currentStep":[32]},null,{"progress":["progressChanged"],"steps":["stepsChanged"]}],[1,"mds-radial-progress",{"progress":[2],"typography":[513],"variant":[513],"animatedProgress":[32]},null,{"progress":["onProgressChange"]}]]],["mds-tab_2",[[1,"mds-tab-item",{"await":[516],"selected":[1540],"disabled":[1540],"icon":[1],"iconPosition":[1,"icon-position"],"type":[1],"size":[513],"value":[513],"href":[513],"isSelected":[32],"hasText":[32]},null,{"selected":["validateActive"]}],[1,"mds-tab",{"direction":[1537],"scrollbar":[1540],"animation":[513],"fill":[1540],"overflow":[1540],"size":[1537],"sliderWidth":[32],"sliderHeight":[32],"sliderOffsetX":[32],"sliderOffsetY":[32],"overflowLeft":[32],"overflowRight":[32]},[[0,"mdsTabItemSelect","changeEventHandler"],[0,"mdsTabItemFocus","focusEventHandler"]],{"animation":["handleAnimationChange"],"scrollbar":["handleScrollbarChange"],"fill":["handleFillChange"],"overflow":["handleOverflowChange"],"size":["handleSizeChange"]}]]]]'),e)]}}))}))}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,a,t,n){function d(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{r(n.next(e))}catch(e){i(e)}}function l(e){try{r(n["throw"](e))}catch(e){i(e)}}function r(e){e.done?t(e.value):d(e.value).then(s,l)}r((n=n.apply(e,a||[])).next())}))};var __generator=this&&this.__generator||function(e,a){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,d,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(a){return r([e,a])}}function r(l){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(t=0)),t)try{if(n=1,d&&(i=l[0]&2?d["return"]:l[0]?d["throw"]||((i=d["return"])&&i.call(d),0):d.next)&&!(i=i.call(d,l[1])).done)return i;if(d=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:t.label++;return{value:l[1],done:false};case 5:t.label++;d=l[1];l=[0];continue;case 7:l=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1];i=l;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(l);break}if(i[2])t.ops.pop();t.trys.pop();continue}l=a.call(e,t)}catch(e){l=[6,e];d=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};import{p as promiseResolve,b as bootstrapLazy}from"./index-7f153b9b.js";export{s as setNonce}from"./index-7f153b9b.js";import{g as globalScripts}from"./app-globals-0f993ce5.js";var patchBrowser=function(){var e=import.meta.url;var a={};if(e!==""){a.resourcesUrl=new URL(".",e).href}return promiseResolve(a)};patchBrowser().then((function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(a){switch(a.label){case 0:return[4,globalScripts()];case 1:a.sent();return[2,bootstrapLazy(JSON.parse('[["mds-input-upload",[[65,"mds-input-upload",{"accept":[513],"maxFileSize":[514,"max-file-size"],"maxFiles":[514,"max-files"],"sort":[513],"initialValue":[16],"language":[32],"actionTitle":[32],"files":[32],"progress":[32],"animateText":[32],"updateLang":[64],"getFiles":[64],"getFilesError":[64],"reset":[64]},null,{"initialValue":["updateInitialValue"],"maxFiles":["updateActionTitle"]}]]],["mds-input-date",[[65,"mds-input-date",{"value":[513],"name":[513],"variant":[1537],"min":[1537],"max":[1537],"delay":[514],"disabled":[516],"readonly":[516],"required":[516],"isValid":[32],"language":[32],"touched":[32],"calendarKey":[32],"dropdownRef":[32],"hasFocus":[32],"updateLang":[64],"focusInput":[64],"setValue":[64],"getErrors":[64]},null,{"value":["handleValue"]}]]],["mds-policy-ai",[[1,"mds-policy-ai",{"headline":[513],"description":[513],"variant":[513],"href":[513],"language":[32],"updateLang":[64]}]]],["mds-avatar-stack",[[1,"mds-avatar-stack",{"size":[513],"total":[514]}]]],["mds-input-date-range",[[65,"mds-input-date-range",{"startDate":[513,"start-date"],"endDate":[513,"end-date"],"min":[513],"max":[513],"delay":[514],"name":[513],"calendarKey":[32],"internalStartDate":[32],"internalEndDate":[32],"dropdownRef":[32],"hasPreselection":[32],"language":[32],"updateLang":[64],"preselect":[64]},null,{"startDate":["handleStartDateChange"],"endDate":["handleEndDateChange"]}]]],["mds-input-otp",[[65,"mds-input-otp",{"length":[2],"autosubmit":[516],"value":[1537]}]]],["mds-pref-language",[[1,"mds-pref-language",{"size":[513],"set":[1537],"showDropdown":[32],"language":[32],"updateLang":[64]}]]],["mds-table-header",[[1,"mds-table-header",{"selectable":[4],"selectAll":[32],"hasActions":[32],"indeterminate":[32],"hasSelection":[32],"language":[32],"updateLang":[64],"setSelection":[64]}]]],["mds-entity",[[1,"mds-entity",{"await":[516],"icon":[513],"src":[513],"initials":[513],"tone":[513],"variant":[513]}]]],["mds-pref-animation",[[1,"mds-pref-animation",{"size":[513],"mode":[1537],"language":[32],"updateLang":[64]},null,{"mode":["modeChanged"]}]]],["mds-pref-consumption",[[1,"mds-pref-consumption",{"size":[513],"mode":[1537],"language":[32],"updateLang":[64]},null,{"mode":["modeChanged"]}]]],["mds-pref-contrast",[[1,"mds-pref-contrast",{"size":[513],"mode":[1537],"language":[32],"updateLang":[64]},null,{"mode":["modeChanged"]}]]],["mds-pref-theme",[[1,"mds-pref-theme",{"size":[513],"mode":[1537],"transition":[1537],"language":[32],"disabled":[32],"updateLang":[64]},null,{"mode":["modeChanged"]}]]],["mds-push-notification-item",[[1,"mds-push-notification-item",{"datetime":[1537],"dateFormat":[513,"date-format"],"deletable":[1540],"icon":[513],"initials":[1537],"message":[513],"preview":[513],"src":[513],"subject":[513],"tone":[513],"variant":[513],"language":[32],"updateLang":[64]},null,{"deletable":["handleDeletableChange"]}]]],["mds-button-dropdown",[[1,"mds-button-dropdown",{"label":[1],"autoFocus":[4,"auto-focus"],"icon":[1537],"type":[513],"variant":[513],"tone":[513],"size":[513],"active":[1540],"disabled":[1540],"await":[1540],"href":[513],"target":[1],"truncate":[513]}]]],["mds-header",[[1,"mds-header",{"appearance":[1537],"appearanceSet":[513,"appearance-set"],"autoHide":[514,"auto-hide"],"backdrop":[516],"menu":[513],"nav":[513],"threshold":[514],"visibility":[1537],"hasMenu":[32],"isOpened":[32],"setOpened":[64]},null,{"menu":["onMenuChangedHandler"],"nav":["onNavChangedHandler"],"appearanceSet":["onAppearanceSetChangedHandler"],"visibility":["handleVisibilityChange"]}]]],["mds-keyboard",[[1,"mds-keyboard",{"test":[1537],"try":[516],"language":[32],"testPassed":[32],"updateLang":[64]},null,{"try":["handleTryProperty"]}]]],["mds-radial-menu-item",[[1,"mds-radial-menu-item",{"tooltip":[513],"icon":[1537],"tone":[513],"variant":[513],"size":[513]}]]],["mds-status-bar",[[1,"mds-status-bar",{"description":[513],"overflow":[513],"position":[513],"visible":[1540],"hide":[64]},null,{"visible":["handleVisbilityProp"]}]]],["mds-stepper-bar-item",[[1,"mds-stepper-bar-item",{"label":[1],"step":[4],"badge":[1540],"icon":[1],"iconChecked":[1,"icon-checked"],"done":[516],"current":[1540],"value":[513],"typography":[1],"isDone":[32],"isCurrent":[32],"index":[32],"language":[32],"updateLang":[64]},null,{"done":["selectedHandler"],"current":["currentHandler"]}]]],["mds-breadcrumb",[[1,"mds-breadcrumb",{"back":[4],"language":[32],"updateLang":[64]},[[0,"mdsBreadcrumbItemSelect","activedEventHandler"]]]]],["mds-header-bar",[[1,"mds-header-bar",{"menu":[513],"nav":[513],"isOpened":[32],"setOpened":[64]}]]],["mds-horizontal-scroll",[[1,"mds-horizontal-scroll",{"controls":[1537],"navigation":[513],"snap":[513],"hasCompatibility":[32],"showForward":[32],"showBack":[32]},null,{"navigation":["watchNavigation"]}]]],["mds-input-date-range-preselection",[[1,"mds-input-date-range-preselection",{"selected":[1540],"start":[513],"end":[513]}]]],["mds-label",[[1,"mds-label",{"labelAction":[1,"label-action"],"variant":[513],"tone":[513],"truncate":[513],"typography":[1],"deletable":[4],"language":[32],"updateLang":[64]}]]],["mds-note",[[1,"mds-note",{"deletable":[4],"variant":[513],"language":[32],"updateLang":[64]}]]],["mds-pref-language-item",[[1,"mds-pref-language-item",{"code":[513],"selected":[516],"language":[32],"updateLang":[64]}]]],["mds-push-notification",[[1,"mds-push-notification",{"visible":[1540],"behavior":[1],"show":[64],"hide":[64],"removeNotification":[64]},null,{"visible":["visibleChanged"]}]]],["mds-radial-menu",[[1,"mds-radial-menu",{"angleStart":[514,"angle-start"],"angleEnd":[514,"angle-end"],"radius":[514],"direction":[513],"opened":[1540],"disc":[1540],"backdrop":[516],"interaction":[513],"icon":[1537],"variant":[513],"tone":[513],"size":[513]},null,{"disc":["onDiscChanged"],"backdrop":["backdropChanged"],"interaction":["onInteractionChange"],"angleStart":["onAngleStartChange"],"angleEnd":["onAngleEndChange"],"radius":["onRadiusChange"],"size":["onSizeChange"],"opened":["onOpenedChange"]}]]],["mds-table-row",[[1,"mds-table-row",{"interactive":[516],"overlayActions":[516,"overlay-actions"],"selectable":[516],"selected":[1540],"value":[520],"sizerWidth":[32],"language":[32],"updateLang":[64]}]]],["mds-tree-item",[[1,"mds-tree-item",{"actions":[513],"async":[516],"depth":[514],"label":[1],"toggle":[513],"expanded":[1540],"truncate":[513],"icon":[1],"hasActions":[32],"hasChildren":[32],"currentToggleIcon":[32],"await":[32],"language":[32],"updateLang":[64],"expand":[64]},null,{"toggle":["handleIconChange"],"expanded":["handleExpandedChange"]}]]],["mds-url-view",[[1,"mds-url-view",{"icon":[513],"label":[513],"src":[513],"loading":[513],"language":[32],"updateLang":[64]}]]],["mds-accordion-timer-item",[[1,"mds-accordion-timer-item",{"typography":[1],"selected":[516],"description":[1],"duration":[514],"progress":[2],"uuid":[2]},null,{"selected":["handleSelected"]}]]],["mds-benchmark-bar",[[1,"mds-benchmark-bar",{"alias":[1],"typography":[1],"value":[2],"variant":[513]}]]],["mds-file",[[1,"mds-file",{"suffix":[513],"description":[1],"filename":[1],"preview":[1],"showDownloadedIcon":[4,"show-downloaded-icon"],"format":[1537],"language":[32],"wasDownloaded":[32],"updateLang":[64]},null,{"filename":["handleFilename"]}]]],["mds-filter",[[1,"mds-filter",{"autoReset":[516,"auto-reset"],"label":[1],"multiple":[516],"reset":[516],"active":[32],"itemsSelected":[32]},[[0,"mdsFilterItemSelect","activeEventHandler"]]]]],["mds-input-select",[[65,"mds-input-select",{"autocomplete":[513],"autoFocus":[516,"auto-focus"],"placeholder":[513],"name":[513],"disabled":[516],"required":[516],"multiple":[516],"size":[514],"value":[520],"defaultValue":[520,"default-value"],"variant":[513],"hasFocus":[32],"language":[32],"updateLang":[64],"setValue":[64]},null,{"value":["valueChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"]}]]],["mds-paginator",[[1,"mds-paginator",{"pages":[2],"currentPage":[1538,"current-page"]}]]],["mds-keyboard-key",[[1,"mds-keyboard-key",{"name":[513],"pressed":[516],"language":[32],"updateLang":[64]}]]],["mds-kpi-item",[[1,"mds-kpi-item",{"label":[1],"description":[1],"threshold":[2],"icon":[1],"isIntersecting":[32]}]]],["mds-list-item",[[1,"mds-list-item",{"typography":[513],"variant":[1],"icon":[1]}]]],["mds-mention",[[1,"mds-mention",{"icon":[513],"label":[513],"size":[513]}]]],["mds-tab-bar-item",[[1,"mds-tab-bar-item",{"icon":[1],"selected":[1540],"typography":[1],"isSelected":[32]},null,{"selected":["validateSelected"]}]]],["mds-usage",[[1,"mds-usage",{"variant":[1],"alias":[1],"language":[32],"updateLang":[64]}]]],["mds-accordion-item",[[1,"mds-accordion-item",{"typography":[1],"selected":[1540],"label":[1]}]]],["mds-bibliography",[[1,"mds-bibliography",{"format":[1],"author":[1],"name":[1],"publisher":[1],"date":[1],"location":[1],"rel":[1],"typography":[1],"variant":[1],"url":[1]}]]],["mds-breadcrumb-item",[[1,"mds-breadcrumb-item",{"selected":[1540]}]]],["mds-input-field",[[65,"mds-input-field",{"label":[1025],"message":[1025],"variant":[1537]}]]],["mds-input-range",[[65,"mds-input-range",{"formatValue":[16],"name":[513],"max":[2],"min":[2],"step":[2],"disabled":[1540],"value":[1538],"progress":[32]},null,{"disabled":["disabledChanged"],"value":["valueChanged"],"min":["minChanged"],"max":["maxChanged"],"step":["stepChanged"]}]]],["mds-notification",[[1,"mds-notification",{"target":[1],"value":[1538],"visible":[1540],"strategy":[1537],"max":[514]},null,{"strategy":["strategyHandler"]}]]],["mds-pref",[[1,"mds-pref",{"size":[513],"controller":[1540],"showReload":[32],"language":[32],"updateLang":[64]},null,{"controller":["handleControllerChange"],"size":["handleSizeChange"]}]]],["mds-price-table-features",[[1,"mds-price-table-features",{"label":[1]}]]],["mds-price-table-features-cell",[[1,"mds-price-table-features-cell",{"type":[513]}]]],["mds-price-table-list",[[1,"mds-price-table-list",{"hasItems":[32]}]]],["mds-price-table-list-item",[[1,"mds-price-table-list-item",{"supported":[516],"typography":[513]}]]],["mds-quote",[[1,"mds-quote",{"typography":[1],"tag":[1]}]]],["mds-toast",[[1,"mds-toast",{"duration":[1538],"visible":[1540],"variant":[513],"tone":[513],"position":[1537]},null,{"visible":["visibleChanged"],"duration":["durationChanged"]}]]],["mds-accordion",[[1,"mds-accordion",{"multiple":[4],"closable":[4]},[[0,"mdsAccordionItemSelect","selectedEventHandler"],[0,"mdsAccordionItemUnselect","unselectedEventHandler"]]]]],["mds-accordion-timer",[[1,"mds-accordion-timer",{"duration":[514],"paused":[516],"time":[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickSelect"],[0,"mdsAccordionTimerItemSelect","onSelect"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]],{"paused":["handlePaused"]}]]],["mds-author",[[1,"mds-author"]]],["mds-button-group",[[1,"mds-button-group"]]],["mds-card",[[1,"mds-card",{"autoGrid":[516,"auto-grid"],"layout":[32]}]]],["mds-card-content",[[1,"mds-card-content"]]],["mds-card-footer",[[1,"mds-card-footer"]]],["mds-card-header",[[1,"mds-card-header"]]],["mds-card-media",[[1,"mds-card-media"]]],["mds-details",[[1,"mds-details",{"opened":[1540],"isOpened":[32],"hasIcon":[32]},null,{"opened":["validateOpened"]}]]],["mds-emoji",[[1,"mds-emoji",{"name":[513],"agree":[64],"disagree":[64],"startThinking":[64],"stopThinking":[64],"startBlinking":[64],"stopBlinking":[64],"stopFollowMouse":[64],"startFollowMouse":[64]}]]],["mds-hr",[[1,"mds-hr"]]],["mds-kpi",[[1,"mds-kpi"]]],["mds-list",[[1,"mds-list"]]],["mds-price-table",[[1,"mds-price-table"]]],["mds-price-table-features-row",[[1,"mds-price-table-features-row",{"cellPercWidth":[32]}]]],["mds-price-table-header",[[1,"mds-price-table-header"]]],["mds-stepper-bar",[[1,"mds-stepper-bar",{"itemsDone":[2,"items-done"],"navigation":[513],"currentItem":[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]],{"itemsDone":["itemDone"]}]]],["mds-tab-bar",[[1,"mds-tab-bar",null,[[0,"mdsTabBarItemSelect","changeEventHandler"]]]]],["mds-table",[[1,"mds-table",{"interactive":[4],"selectable":[4],"selection":[1540],"selectedRows":[32],"updateSelection":[64],"selectAll":[64]},null,{"interactive":["onTableInteractive"],"selectable":["onTableSelectable"]}]]],["mds-table-body",[[1,"mds-table-body",{"interactive":[516],"selection":[516]}]]],["mds-table-footer",[[1,"mds-table-footer"]]],["mds-tree",[[1,"mds-tree",{"appearance":[513],"async":[516],"label":[1],"toggle":[513],"togglePosition":[513,"toggle-position"],"expanded":[1540],"truncate":[513],"actions":[513]},null,{"expanded":["handleExpandedChange"],"toggle":["handleToggleChange"],"truncate":["handleTruncateChange"]}]]],["mds-video-wall",[[1,"mds-video-wall",{"autoplay":[4],"loop":[4],"muted":[4],"noise":[1],"poster":[1],"preload":[1],"src":[1]}]]],["mds-zero",[[1,"mds-zero"]]],["mds-text",[[1,"mds-text",{"animation":[1],"tag":[1537],"text":[513],"truncate":[513],"typography":[513],"variant":[513]},null,{"text":["textHandler"]}]]],["mds-avatar-stack-item",[[1,"mds-avatar-stack-item",{"count":[514],"initials":[1537],"src":[513],"tone":[513],"variant":[513]}]]],["mds-file-preview",[[1,"mds-file-preview",{"deletable":[516],"downloadable":[516],"description":[513],"filename":[513],"filesize":[513],"message":[513],"truncate":[513],"src":[513],"suffix":[513],"icon":[513],"variant":[513],"format":[1537],"language":[32],"updateLang":[64]},null,{"filename":["handleFilename"],"downloadable":["handleDownloadable"]}]]],["mds-input-tip_2",[[1,"mds-input-tip-item",{"variant":[513],"expanded":[1540],"language":[32],"updateLang":[64]},null,{"expanded":["handleEcpandedChanged"]}],[1,"mds-input-tip",{"active":[516],"position":[513]}]]],["mds-input",[[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"]}]]],["mds-table-header-cell",[[1,"mds-table-header-cell",{"sortable":[516],"label":[513],"direction":[1537],"isAscending":[32]},null,{"sortable":["sortableHandler"],"direction":["directionHandler"]}]]],["mds-filter-item",[[1,"mds-filter-item",{"selected":[1540],"label":[513],"icon":[513],"value":[513],"count":[513],"disabled":[516]}]]],["mds-paginator-item",[[1,"mds-paginator-item",{"icon":[513],"selected":[516],"disabled":[516]}]]],["mds-separator",[[1,"mds-separator"]]],["mds-modal",[[1,"mds-modal",{"opened":[1540],"backdrop":[1540],"position":[1537],"animating":[1537],"animation":[513],"overflow":[513],"interaction":[513],"close":[64]},null,{"opened":["handleOpenProp"],"backdrop":["handleBackdropProp"]}]]],["mds-tooltip",[[1,"mds-tooltip",{"arrow":[4],"arrowPadding":[2,"arrow-padding"],"autoPlacement":[516,"auto-placement"],"flip":[4],"target":[513],"offset":[2],"placement":[513],"typography":[1],"shift":[4],"shiftPadding":[2,"shift-padding"],"strategy":[513],"visible":[1540]},null,{"arrow":["arrowChanged"],"autoPlacement":["autoPlacementChanged"],"flip":["flipChanged"],"offset":["offsetChanged"],"placement":["placementChanged"],"shift":["shiftChanged"],"shiftPadding":["shiftPaddingChanged"],"strategy":["strategyChanged"],"visible":["visibleChanged"],"target":["targetChanged"]}]]],["mds-button_3",[[65,"mds-button",{"autoFocus":[4,"auto-focus"],"hasText":[1540,"has-text"],"icon":[1537],"iconPosition":[1,"icon-position"],"type":[513],"variant":[513],"tone":[513],"size":[513],"active":[1540],"disabled":[1540],"await":[1540],"href":[513],"target":[1],"truncate":[513]},null,{"disabled":["disabledChanged"],"await":["awaitChanged","handleAwaitChange"],"type":["handleTypeChange"],"variant":["handleVariantChange"]}],[1,"mds-spinner",{"running":[1540]},null,{"running":["handleRunning"]}],[1,"mds-icon",{"name":[513],"svgHTML":[32],"_iconHref":[32],"setSvgPath":[64]},null,{"name":["updateIcon"]}]]],["mds-banner_3",[[1,"mds-banner",{"variant":[513],"tone":[513],"cockade":[516],"deletable":[4],"headline":[1],"icon":[1],"language":[32],"updateLang":[64]}],[1,"mds-chip",{"clickable":[1540],"deletable":[4],"disabled":[4],"icon":[1],"label":[513],"selected":[1540],"selectable":[516],"variant":[513],"tone":[513],"language":[32],"updateLang":[64]},null,{"selectable":["handleSelectableProp"],"clickable":["handleClickableProp"],"selected":["handleSelectedProp"]}],[1,"mds-help",{"icon":[1],"autoPlacement":[516,"auto-placement"],"placement":[513]}]]],["mds-avatar",[[1,"mds-avatar",{"icon":[513],"initials":[1537],"count":[1538],"src":[513],"tone":[513],"variant":[1537],"fallback":[32],"loaded":[32]},null,{"initials":["initialsHandler"],"count":["countHandler"],"src":["srcHandler"],"icon":["iconHandler"]}]]],["mds-input-switch_2",[[65,"mds-input-switch",{"autofocus":[516],"checked":[1540],"disabled":[1540],"explicit":[516],"icon":[513],"indeterminate":[1540],"name":[513],"size":[513],"type":[513],"typography":[513],"variant":[513],"value":[1537],"dirty":[32],"hasText":[32],"language":[32],"updateLang":[64]},null,{"disabled":["disabledChanged"],"checked":["checkedChanged"],"explicit":["explicitChanged"]}],[1,"mds-table-cell",{"value":[520]}]]],["mds-calendar_2",[[1,"mds-calendar",{"rangePicker":[4,"range-picker"],"startDate":[513,"start-date"],"endDate":[513,"end-date"],"min":[513],"max":[513],"hasPreselection":[32],"currentDate":[32],"weekDaysinMonth":[32],"weekdays":[32],"startDateIdentifier":[32],"endDateIdentifier":[32],"isFirstClick":[32],"currentView":[32],"selectedYear":[32],"language":[32],"internalStartDate":[32],"internalEndDate":[32],"updateLang":[64],"updateCurrentDate":[64]},null,{"startDate":["handleStartDate"],"endDate":["handleEndDate"]}],[1,"mds-calendar-cell",{"month":[513],"date":[513],"orientation":[513],"preview":[516],"selection":[513],"disabled":[516],"today":[516]}]]],["mds-badge",[[1,"mds-badge",{"variant":[513],"tone":[513],"typography":[1],"typographyVariant":[1,"typography-variant"]}]]],["mds-dropdown",[[1,"mds-dropdown",{"arrow":[516],"arrowPadding":[2,"arrow-padding"],"autoPlacement":[4,"auto-placement"],"backdrop":[516],"flip":[4],"interaction":[513],"target":[1],"offset":[2],"placement":[1],"shift":[4],"shiftPadding":[2,"shift-padding"],"smooth":[4],"strategy":[1],"visible":[1540],"zIndex":[2,"z-index"]},null,{"arrow":["arrowChanged"],"arrowPadding":["arrowPaddingChanged"],"autoPlacement":["autoPlacementChanged"],"backdrop":["backdropChanged"],"flip":["flipChanged"],"offset":["offsetChanged"],"placement":["placementChanged"],"shift":["shiftChanged"],"shiftPadding":["shiftPaddingChanged"],"strategy":["strategyChanged"],"target":["targetChanged"],"visible":["visibleChanged"]}]]],["mds-img",[[1,"mds-img",{"alt":[1537],"crossorigin":[1],"height":[1],"loading":[1],"referrerpolicy":[1],"sizes":[1],"src":[1],"srcset":[1],"srcsetConsumption":[1,"srcset-consumption"],"width":[1],"imageConsumptionLoaded":[32],"imageError":[32],"language":[32],"updateLang":[64]},null,{"srcsetConsumption":["srcsetConsumptionHandler"],"src":["srcHandler"]}]]],["mds-progress_2",[[1,"mds-progress",{"progress":[2],"direction":[513],"variant":[513],"typography":[1],"steps":[1],"currentStep":[32]},null,{"progress":["progressChanged"],"steps":["stepsChanged"]}],[1,"mds-radial-progress",{"progress":[2],"typography":[513],"variant":[513],"animatedProgress":[32]},null,{"progress":["onProgressChange"]}]]],["mds-tab_2",[[1,"mds-tab-item",{"await":[516],"selected":[1540],"disabled":[1540],"icon":[1],"iconPosition":[1,"icon-position"],"type":[1],"size":[513],"value":[513],"href":[513],"isSelected":[32],"hasText":[32]},null,{"selected":["validateActive"]}],[1,"mds-tab",{"direction":[1537],"scrollbar":[1540],"animation":[513],"fill":[1540],"overflow":[1540],"size":[1537],"sliderWidth":[32],"sliderHeight":[32],"sliderOffsetX":[32],"sliderOffsetY":[32],"overflowLeft":[32],"overflowRight":[32]},[[0,"mdsTabItemSelect","changeEventHandler"],[0,"mdsTabItemFocus","focusEventHandler"]],{"animation":["handleAnimationChange"],"scrollbar":["handleScrollbarChange"],"fill":["handleFillChange"],"overflow":["handleOverflowChange"],"size":["handleSizeChange"]}]]]]'),e)]}}))}))}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,r,e,a){function n(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,i){function d(t){try{s(a.next(t))}catch(t){i(t)}}function o(t){try{s(a["throw"](t))}catch(t){i(t)}}function s(t){t.done?e(t.value):n(t.value).then(d,o)}s((a=a.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,d;return d={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function o(t){return function(r){return s([t,r])}}function s(o){if(a)throw new TypeError("Generator is already executing.");while(d&&(d=0,o[0]&&(e=0)),e)try{if(a=1,n&&(i=o[0]&2?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;if(n=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;n=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){e.label=o[1];break}if(o[0]===6&&e.label<i[1]){e.label=i[1];i=o;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(o);break}if(i[2])e.ops.pop();e.trys.pop();continue}o=r.call(t,e)}catch(t){o=[6,t];n=0}finally{a=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-7f153b9b.js";import{m as miBaselineCalendarToday}from"./calendar-today-1a4fecdc.js";import{D as DateTime_1}from"./luxon-f19ca6e2.js";import{L as Locale}from"./locale-2adad180.js";import"./_commonjsHelpers-bdec4bbd.js";var mdsInputDateCss='@tailwind utilities; :host{--mds-input-date-background:rgb(var(--tone-neutral));--mds-input-date-field-background-empty:rgb(var(--status-error-10));--mds-input-date-field-color-empty:rgb(var(--status-error-06));--mds-input-date-icon-color:var(--mds-input-date-variant-color);--mds-input-date-ring:0 0 0 1px rgb(var(--mds-input-date-variant-color) / 0.1);--mds-input-date-shadow:0 1px 3px 0 rgb(var(--mds-input-date-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-date-variant-color) / 0.06);--mds-input-date-variant-color:0 0 0;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;color:rgb(var(--tone-neutral-02));container-type:inline-size;display:-ms-flexbox;display:flex;overflow:visible;position:relative}.input::-webkit-calendar-picker-indicator{-webkit-appearance:none;appearance:none;-moz-appearance:textfield;display:none}.input{min-height:1.25rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0rem;-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:transparent;border:0;border-radius:0.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;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:-moz-min-content;width:-webkit-min-content;width:min-content}:host([empty]) .input{background-color:var(--mds-input-date-field-background-empty);color:var(--mds-input-date-field-color-empty)}:host([slot]){color:inherit;display:contents}:host([slot]) .input{cursor:text;text-align:center}:host(:not([slot])) .input{border-radius:0.5rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:3rem;background-color:var(--mds-input-date-background);-webkit-box-shadow:var(--mds-input-date-ring), var(--mds-input-date-shadow);box-shadow:var(--mds-input-date-ring), var(--mds-input-date-shadow);min-height:3rem;width:100%}:host(:focus-within) .input{outline:2px solid transparent;outline-offset:2px;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-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);--mds-input-date-ring:0 0 0 3px rgb(var(--mds-input-date-variant-color) / 1);--mds-input-date-shadow:0 4px 6px 3px rgb(var(--mds-input-date-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-date-variant-color) / 0.06)}.input:focus{outline:2px solid transparent;outline-offset:2px;-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);--mds-input-date-ring:0 0 0 3px rgb(var(--mds-input-date-variant-color) / 1);--mds-input-date-shadow:0 4px 6px 3px rgb(var(--mds-input-date-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-date-variant-color) / 0.06)}.input::-moz-placeholder{color:rgb(var(--tone-neutral-04))}.input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-04))}.input:-ms-input-placeholder{color:rgb(var(--tone-neutral-04))}.input::-ms-input-placeholder{color:rgb(var(--tone-neutral-04))}.input::placeholder{color:rgb(var(--tone-neutral-04))}.input::-webkit-outer-spin-button,.input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;display:none;margin:0}.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))}.action-open-calendar{--mds-button-color:rgb(var(--mds-input-date-icon-color));aspect-ratio:1;bottom:0;position:absolute;right:0;top:0}:host([disabled]:not([disabled="false"])) .action-open-calendar{-webkit-transform:translate(0.625rem, 0.5rem);transform:translate(0.625rem, 0.5rem)}mds-calendar{min-width:-moz-max-content;min-width:-webkit-max-content;min-width:max-content}mds-dropdown{padding:0}: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}: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-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-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-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-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-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-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-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-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))}}@supports (-moz-appearance: none){.action-open-calendar{display:none}:host(:not([slot])) .input{padding-right:1rem}}:host{--mds-input-date-icon-color:var(--variant-primary-03);--mds-input-date-variant-color:0 0 0}:host(:focus-within){--mds-input-date-variant-color:var(--variant-primary-04)}:host([variant="info"]){--mds-input-date-icon-color:var(--status-info-05);--mds-input-date-tip-background:var(--status-info-05);--mds-input-date-variant-color:0 0 0}:host([variant="info"]:focus-within){--mds-input-date-icon-color:var(--status-info-04);--mds-input-date-variant-color:var(--status-info-05)}:host([variant="success"]){--mds-input-date-icon-color:var(--status-success-05);--mds-input-date-tip-background:var(--status-success-05);--mds-input-date-variant-color:0 0 0}:host([variant="success"]:focus-within){--mds-input-date-icon-color:var(--status-success-04);--mds-input-date-variant-color:var(--status-success-05)}:host([variant="warning"]){--mds-input-date-icon-color:var(--status-warning-05);--mds-input-date-tip-background:var(--status-warning-05);--mds-input-date-variant-color:0 0 0}:host([variant="warning"]:focus-within){--mds-input-date-icon-color:var(--status-warning-04);--mds-input-date-variant-color:var(--status-warning-05)}:host([variant="error"]){--mds-input-date-icon-color:var(--status-error-05);--mds-input-date-tip-background:var(--status-error-05);--mds-input-date-variant-color:0 0 0}:host([variant="error"]:focus-within){--mds-input-date-icon-color:var(--status-error-04);--mds-input-date-variant-color:var(--status-error-05)}';var MdsInputDateStyle0=mdsInputDateCss;var MdsInputDate=function(){function t(t){var r=this;registerInstance(this,t);this.valueChange=createEvent(this,"mdsInputDateSelect",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.isSlotted=false;this.t=new Locale({el:{},en:{},es:{},it:{}});this.touched=false;this.value="";this.variant="primary";this.min=null;this.max=null;this.delay=500;this.disabled=false;this.readonly=false;this.required=false;this.calendarKey=0;this.hasFocus=false;this.onBlur=function(t){var e=t.target;r.hasFocus=false;r.value=e.value};this.onFocus=function(t){var e=t.target;r.hasFocus=true;if(r.readonly){setTimeout((function(){e.select()}),10)}}}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.host);return[2]}))}))};t.prototype.handleValue=function(){this.valueChange.emit(this.value);this.validateValue();this.internals.setFormValue(this.value)};t.prototype.validateValue=function(){var t=DateTime_1.fromISO(this.value);this.isValid=false;this.variant="error";if(t.invalid&&this.required)return;if(this.max&&DateTime_1.fromISO(this.max)<t||this.min&&DateTime_1.fromISO(this.min)>t)return;this.isValid=true;this.variant="primary"};t.prototype.focusInput=function(){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(e){r=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".input");r.focus();return[2]}))}))};t.prototype.setValue=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){this.value=t;this.validateValue();return[2,Promise.resolve()]}))}))};t.prototype.componentWillLoad=function(){this.isSlotted=!!this.host.getAttribute("slot");this.value=this.value||"";this.language=this.t.lang(this.host);if(this.min&&this.max){var t=DateTime_1.fromISO(this.min);var r=DateTime_1.fromISO(this.max);if(r<t){this.max=this.min}}this.validateValue()};t.prototype.handleChange=function(t){var r=t.target;this.touched=true;if(r.value)this.value=r.value;this.validateValue()};t.prototype.render=function(){var t=this;return h(Host,{key:"5c8a9e0aa8f76679abfbdaa2c709ae11312ee46d"},h("input",{key:"1f6dddc1ed8477f8b6160d90f7bf15c6d711ef95",value:this.value,id:"dateInput",class:"input",part:"input-date",type:"date",disabled:this.disabled,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.handleChange,onChange:this.handleChange}),!this.isSlotted&&h("mds-button",{key:"caefb1f5d8da17ea06dfc547902e19900cd02abf",id:"calendar-dropdown",class:"action-open-calendar",disabled:this.disabled,variant:"dark",tone:"quiet",icon:miBaselineCalendarToday,onClick:function(){t.calendarKey+=1}}),h("mds-input-tip",{key:"3f60d0e56e101776b19c1564d92f361b3f0178d7",lang:this.language,position:"top",active:this.hasFocus},this.disabled&&h("mds-input-tip-item",{key:"25a86b26eb2bd743d0291ff1514828274d13ae17",expanded:true,variant:"disabled"}),this.readonly&&h("mds-input-tip-item",{key:"c63d2f830dec87f180bc828b16cebd8e8d8a7060",expanded:true,variant:"readonly"}),this.required&&h("mds-input-tip-item",{key:"2d2e3f021e3e4ef8c99be55132edf4f99be3b900",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),!this.isSlotted&&h("mds-dropdown",{key:"370a33a1f273a3eafc045c1e62c84db41ff52c23",placement:"bottom-end","auto-placement":false,ref:function(r){return t.dropdownRef=r},target:"#calendar-dropdown"},h("mds-calendar",Object.assign({key:this.calendarKey,rangePicker:false,lang:this.language,onMdsCalendarChange:function(r){t.value=r.detail.startDate;if(t.delay===0)return;var e=t.dropdownRef;if(e){setTimeout((function(){e.visible=false}),t.delay)}},startDate:this.value},this.min?{min:this.min}:{},this.max?{max:this.max}:{}))))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["handleValue"]}},enumerable:false,configurable:true});return t}();MdsInputDate.style=MdsInputDateStyle0;export{MdsInputDate as mds_input_date};
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,r,e,a){function n(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,i){function d(t){try{s(a.next(t))}catch(t){i(t)}}function o(t){try{s(a["throw"](t))}catch(t){i(t)}}function s(t){t.done?e(t.value):n(t.value).then(d,o)}s((a=a.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,d;return d={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function o(t){return function(r){return s([t,r])}}function s(o){if(a)throw new TypeError("Generator is already executing.");while(d&&(d=0,o[0]&&(e=0)),e)try{if(a=1,n&&(i=o[0]&2?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;if(n=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;n=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){e.label=o[1];break}if(o[0]===6&&e.label<i[1]){e.label=i[1];i=o;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(o);break}if(i[2])e.ops.pop();e.trys.pop();continue}o=r.call(t,e)}catch(t){o=[6,t];n=0}finally{a=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-7f153b9b.js";import{m as miBaselineCalendarToday}from"./calendar-today-1a4fecdc.js";import{D as DateTime_1}from"./luxon-f19ca6e2.js";import{L as Locale}from"./locale-2adad180.js";import"./_commonjsHelpers-bdec4bbd.js";var mdsInputDateCss='@tailwind utilities; :host{--mds-input-date-background:rgb(var(--tone-neutral));--mds-input-date-field-background-empty:rgb(var(--status-error-10));--mds-input-date-field-color-empty:rgb(var(--status-error-06));--mds-input-date-icon-color:var(--mds-input-date-variant-color);--mds-input-date-ring:0 0 0 1px rgb(var(--mds-input-date-variant-color) / 0.1);--mds-input-date-shadow:0 1px 3px 0 rgb(var(--mds-input-date-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-date-variant-color) / 0.06);--mds-input-date-variant-color:0 0 0;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;color:rgb(var(--tone-neutral-02));container-type:inline-size;display:-ms-flexbox;display:flex;overflow:visible;position:relative}.input::-webkit-calendar-picker-indicator{-webkit-appearance:none;appearance:none;-moz-appearance:textfield;display:none}.input{min-height:1.25rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0rem;-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:transparent;border:0;border-radius:0.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;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:-moz-min-content;width:-webkit-min-content;width:min-content}:host([empty]) .input{background-color:var(--mds-input-date-field-background-empty);color:var(--mds-input-date-field-color-empty)}:host([slot]){color:inherit;display:contents}:host([slot]) .input{cursor:text;text-align:center}:host(:not([slot])) .input{border-radius:0.5rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:3rem;background-color:var(--mds-input-date-background);-webkit-box-shadow:var(--mds-input-date-ring), var(--mds-input-date-shadow);box-shadow:var(--mds-input-date-ring), var(--mds-input-date-shadow);min-height:3rem;width:100%}:host(:focus-within) .input{outline:2px solid transparent;outline-offset:2px;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-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);--mds-input-date-ring:0 0 0 3px rgb(var(--mds-input-date-variant-color) / 1);--mds-input-date-shadow:0 4px 6px 3px rgb(var(--mds-input-date-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-date-variant-color) / 0.06)}.input:focus{outline:2px solid transparent;outline-offset:2px;-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);--mds-input-date-ring:0 0 0 3px rgb(var(--mds-input-date-variant-color) / 1);--mds-input-date-shadow:0 4px 6px 3px rgb(var(--mds-input-date-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-date-variant-color) / 0.06)}.input::-moz-placeholder{color:rgb(var(--tone-neutral-04))}.input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-04))}.input:-ms-input-placeholder{color:rgb(var(--tone-neutral-04))}.input::-ms-input-placeholder{color:rgb(var(--tone-neutral-04))}.input::placeholder{color:rgb(var(--tone-neutral-04))}.input::-webkit-outer-spin-button,.input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;display:none;margin:0}.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))}.action-open-calendar{--mds-button-color:rgb(var(--mds-input-date-icon-color));aspect-ratio:1;bottom:0;position:absolute;right:0;top:0}:host([disabled]:not([disabled="false"])) .action-open-calendar{-webkit-transform:translate(0.625rem, 0.5rem);transform:translate(0.625rem, 0.5rem)}mds-calendar{min-width:-moz-max-content;min-width:-webkit-max-content;min-width:max-content}mds-dropdown{padding:0}: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}: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-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-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-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-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-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-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-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-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))}}@supports (-moz-appearance: none){.action-open-calendar{display:none}:host(:not([slot])) .input{padding-right:1rem}}:host{--mds-input-date-icon-color:var(--variant-primary-03);--mds-input-date-variant-color:0 0 0}:host(:focus-within){--mds-input-date-variant-color:var(--variant-primary-04)}:host([variant="info"]){--mds-input-date-icon-color:var(--status-info-05);--mds-input-date-tip-background:var(--status-info-05);--mds-input-date-variant-color:0 0 0}:host([variant="info"]:focus-within){--mds-input-date-icon-color:var(--status-info-04);--mds-input-date-variant-color:var(--status-info-05)}:host([variant="success"]){--mds-input-date-icon-color:var(--status-success-05);--mds-input-date-tip-background:var(--status-success-05);--mds-input-date-variant-color:0 0 0}:host([variant="success"]:focus-within){--mds-input-date-icon-color:var(--status-success-04);--mds-input-date-variant-color:var(--status-success-05)}:host([variant="warning"]){--mds-input-date-icon-color:var(--status-warning-05);--mds-input-date-tip-background:var(--status-warning-05);--mds-input-date-variant-color:0 0 0}:host([variant="warning"]:focus-within){--mds-input-date-icon-color:var(--status-warning-04);--mds-input-date-variant-color:var(--status-warning-05)}:host([variant="error"]){--mds-input-date-icon-color:var(--status-error-05);--mds-input-date-tip-background:var(--status-error-05);--mds-input-date-variant-color:0 0 0}:host([variant="error"]:focus-within){--mds-input-date-icon-color:var(--status-error-04);--mds-input-date-variant-color:var(--status-error-05)}';var MdsInputDateStyle0=mdsInputDateCss;var MdsInputDate=function(){function t(t){var r=this;registerInstance(this,t);this.validationEvent=createEvent(this,"mdsInputValidation",7);this.valueChange=createEvent(this,"mdsInputDateSelect",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.isSlotted=false;this.t=new Locale({el:{},en:{},es:{},it:{}});this.touched=false;this.value="";this.variant="primary";this.min=null;this.max=null;this.delay=500;this.disabled=false;this.readonly=false;this.required=false;this.calendarKey=0;this.hasFocus=false;this.handleChange=function(t){var e=t.target;r.touched=true;if(e.value)r.value=e.value;r.validateValue()};this.onBlur=function(t){var e=t.target;r.hasFocus=false;r.value=e.value};this.onFocus=function(t){var e=t.target;r.hasFocus=true;if(r.readonly){setTimeout((function(){e.select()}),10)}}}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.host);return[2]}))}))};t.prototype.handleValue=function(){this.valueChange.emit(this.value);this.validateValue()};t.prototype.validateValue=function(){var t=DateTime_1.fromISO(this.value);var r=t.invalid;var e=this.max&&DateTime_1.fromISO(this.max)<t||this.min&&DateTime_1.fromISO(this.min)>t;if(r&&this.required||e){this.isValid=false;this.variant="error";this.internals.setFormValue(null)}else{this.isValid=true;this.variant="primary";this.internals.setFormValue(this.value)}this.validationEvent.emit(this.isValid)};t.prototype.focusInput=function(){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(e){r=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".input");r.focus();return[2]}))}))};t.prototype.setValue=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){this.value=t;this.validateValue();return[2,Promise.resolve()]}))}))};t.prototype.getErrors=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Promise.resolve(this.isValid?null:{error:""})]}))}))};t.prototype.formResetCallback=function(){this.internals.setFormValue("")};t.prototype.componentWillLoad=function(){this.isSlotted=!!this.host.getAttribute("slot");this.value=this.value||"";this.language=this.t.lang(this.host);if(this.min&&this.max){var t=DateTime_1.fromISO(this.min);var r=DateTime_1.fromISO(this.max);if(r<t){this.max=this.min}}this.validateValue()};t.prototype.render=function(){var t=this;return h(Host,{key:"6f98a43d84a87d7e0540331a3f7d37bbf4eca633"},h("input",{key:"ec75ae2fd091ee48a4f965057e2b2ae1b3ecddd4",value:this.value,id:"dateInput",class:"input",part:"input-date",type:"date",disabled:this.disabled,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.handleChange,onChange:this.handleChange}),!this.isSlotted&&h("mds-button",{key:"6c7ea4d660fa79b2ba681d255ab48a6d8a0015a9",id:"calendar-dropdown",class:"action-open-calendar",disabled:this.disabled,variant:"dark",tone:"quiet",icon:miBaselineCalendarToday,onClick:function(){t.calendarKey+=1}}),h("mds-input-tip",{key:"ebbc8300462052aa8bac94a9ac7f66fc96852a0b",lang:this.language,position:"top",active:this.hasFocus},this.disabled&&h("mds-input-tip-item",{key:"54a9dd6905b25759f13fd625a9e64b0e41152e04",expanded:true,variant:"disabled"}),this.readonly&&h("mds-input-tip-item",{key:"ecd6bfc83bda3ee8faeb9a990fc6886ab45f0f8d",expanded:true,variant:"readonly"}),this.required&&h("mds-input-tip-item",{key:"e5b890f827a7a17b58d075bd4f500d208a512512",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),!this.isSlotted&&h("mds-dropdown",{key:"34a37a18aea7c9e9476fc660229d3bec208ec8c9",placement:"bottom-end","auto-placement":false,ref:function(r){return t.dropdownRef=r},target:"#calendar-dropdown"},h("mds-calendar",Object.assign({key:this.calendarKey,rangePicker:false,lang:this.language,onMdsCalendarChange:function(r){t.value=r.detail.startDate;if(t.delay===0)return;var e=t.dropdownRef;if(e){setTimeout((function(){e.visible=false}),t.delay)}},startDate:this.value},this.min?{min:this.min}:{},this.max?{max:this.max}:{}))))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["handleValue"]}},enumerable:false,configurable:true});return t}();MdsInputDate.style=MdsInputDateStyle0;export{MdsInputDate as mds_input_date};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,r,i){function o(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,n){function a(t){try{d(i.next(t))}catch(t){n(t)}}function s(t){try{d(i["throw"](t))}catch(t){n(t)}}function d(t){t.done?r(t.value):o(t.value).then(a,s)}d((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,o,n,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return d([t,e])}}function d(s){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(r=0)),r)try{if(i=1,o&&(n=s[0]&2?o["return"]:s[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;if(o=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;o=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(n=r.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){r.label=s[1];break}if(s[0]===6&&r.label<n[1]){r.label=n[1];n=s;break}if(n&&r.label<n[2]){r.label=n[2];r.ops.push(s);break}if(n[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];o=0}finally{i=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-7f153b9b.js";import{c as clsx}from"./clsx-297c1ffe.js";import{m as miBaselineKeyboardArrowDown}from"./keyboard-arrow-down-b79b8faf.js";import{m as miBaselineKeyboardArrowUp}from"./keyboard-arrow-up-4ec6c125.js";import{m as miBaselineRemove}from"./remove-777e39e1.js";import{m as miBaselineDone}from"./done-4ea2a18b.js";import{L as Locale}from"./locale-2adad180.js";import{h as hashRandomValue}from"./aria-ed9d415d.js";import"./_commonjsHelpers-bdec4bbd.js";var mggAiChatbotOutline='<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';var miBaselineAdd='<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>';var miBaselineVisible='<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>';var miBaselineVisibleOff='<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>';var miOutlineMic='<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>';var miOutlineMicOff='<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>';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 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 o=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(o>=100){e.countVariant="count-full";return}if(o>=75){e.countVariant="count-almost-full";return}if(o>=50){e.countVariant="count-almost";return}if(o>=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 o=(i=window.SpeechRecognition)!==null&&i!==void 0?i:window.webkitSpeechRecognition;e.value="";if(!o){e.onSpeechRecognitionError();return}e.recognition=new o;e.recognition.continuous=true;e.recognition.lang=navigator.language||"it-IT";e.recognition.interimResults=true;e.recognition.maxAlternatives=1;var n="";var a=0;e.recognition.onresult=function(t){var r=t.results;var i=r[a];if(i.isFinal){n+=i[0].transcript;e.value=n;a+=1;return}e.value=n+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:"95dc6186e93f6ebe7a82d089d1b8dc75a75d3cd1"},this.type==="number"&&this.controlsLayout==="horizontal"&&h("mds-button",{key:"44b1fe040ba0b8720d27dcf9848b74b8bfd3a6c6",class:"counter-button counter-button--horizontal counter-button--decrease",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowDown: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:"89b357eef86d2ceac87ea24fd781ce0660b1dd75",class:"counter counter--vertical"},h("mds-button",{key:"a3c0f787f14664d107f6337c8c96ecdbf66e640d",class:"counter-button",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowUp:miBaselineAdd,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),part:"counter-button-increase"}),h("mds-button",{key:"6fe96cbcd332c278f0f79872344e926ef0a28e34",class:"counter-button",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowDown: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:"9587896486289975925bce067370f0a78f01b854",class:"counter-button counter-button--horizontal counter-button--increase",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowUp:miBaselineAdd,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),part:"counter-button-increase"}),this.type==="password"&&h("mds-button",{key:"2134c310ead1357c7a9dd3bf8d7ae87c787ee831",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:"3d7ce3e77fdb1e35d7fef82d7aaadfa61557e15c",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:"bf11412de1e94a7e1f1053b0642a45e660e2924b",lang:this.language,position:"top",active:this.hasFocus,part:"tip-top"},this.disabled&&h("mds-input-tip-item",{key:"78db87c56183f146ca95708e4639cb5f02fc7fb4",expanded:true,variant:"disabled"}),this.readonly&&h("mds-input-tip-item",{key:"6d871ed1af6215328d1e3a54a50c375380029a5e",expanded:true,variant:"readonly"}),this.required&&h("mds-input-tip-item",{key:"71ff8ca81fd34054a7b57ad527a62f08f1a5fbf5",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),h("mds-input-tip",{key:"19fd83a13cf0d3d566773dbf11d360ace3653f32",lang:this.language,position:"bottom",active:this.hasFocus,part:"tip-bottom"},this.tip&&h("mds-input-tip-item",{key:"df2a278cd5ad1fa953686e32c9e9b43411100363",expanded:true,variant:"text"},this.tip),this.maxlength&&h("mds-input-tip-item",{key:"d0164eafb89b3d5de13476f335e07500f6cab036",part:"tip-count",expanded:true,variant:this.countVariant},this.currentLengthLabel)),this.datalist&&h("datalist",{key:"2948279e931a63f51f8eb8b59c9bff99a6315502",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:"25376a2ba786d27167a57e672bbcc079843a9f09",class:clsx("icon",this.variant),name:this.icon}),h("mds-spinner",{key:"c22d6f831f668828ccfcce15c83803a7323845db",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
|
+
var __awaiter=this&&this.__awaiter||function(t,e,r,i){function o(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,n){function a(t){try{d(i.next(t))}catch(t){n(t)}}function s(t){try{d(i["throw"](t))}catch(t){n(t)}}function d(t){t.done?r(t.value):o(t.value).then(a,s)}d((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,o,n,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return d([t,e])}}function d(s){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(r=0)),r)try{if(i=1,o&&(n=s[0]&2?o["return"]:s[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;if(o=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;o=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(n=r.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){r.label=s[1];break}if(s[0]===6&&r.label<n[1]){r.label=n[1];n=s;break}if(n&&r.label<n[2]){r.label=n[2];r.ops.push(s);break}if(n[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];o=0}finally{i=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-7f153b9b.js";import{c as clsx}from"./clsx-297c1ffe.js";import{m as miBaselineKeyboardArrowDown}from"./keyboard-arrow-down-b79b8faf.js";import{m as miBaselineKeyboardArrowUp}from"./keyboard-arrow-up-4ec6c125.js";import{m as miBaselineRemove}from"./remove-777e39e1.js";import{m as miBaselineDone}from"./done-4ea2a18b.js";import{L as Locale}from"./locale-2adad180.js";import{h as hashRandomValue}from"./aria-ed9d415d.js";import"./_commonjsHelpers-bdec4bbd.js";var mggAiChatbotOutline='<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';var miBaselineAdd='<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>';var miBaselineVisible='<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>';var miBaselineVisibleOff='<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>';var miOutlineMic='<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>';var miOutlineMicOff='<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>';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 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 o=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(o>=100){e.countVariant="count-full";return}if(o>=75){e.countVariant="count-almost-full";return}if(o>=50){e.countVariant="count-almost";return}if(o>=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 o=(i=window.SpeechRecognition)!==null&&i!==void 0?i:window.webkitSpeechRecognition;e.value="";if(!o){e.onSpeechRecognitionError();return}e.recognition=new o;e.recognition.continuous=true;e.recognition.lang=navigator.language||"it-IT";e.recognition.interimResults=true;e.recognition.maxAlternatives=1;var n="";var a=0;e.recognition.onresult=function(t){var r=t.results;var i=r[a];if(i.isFinal){n+=i[0].transcript;e.value=n;a+=1;return}e.value=n+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:"35c2ab35ec7761a4704f04eb660be93492de7672"},this.type==="number"&&this.controlsLayout==="horizontal"&&h("mds-button",{key:"cf2fe92bdb18e8eb62499aff789888bd29baf248",class:"counter-button counter-button--horizontal counter-button--decrease",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowDown: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:"b1143910c3612421b69ebe9a70db755d03c0c633",class:"counter counter--vertical"},h("mds-button",{key:"9b37d4cb10284697cffbc4158b6d9896e24c28c3",class:"counter-button",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowUp:miBaselineAdd,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),part:"counter-button-increase"}),h("mds-button",{key:"2da5ac1d379d52bb86baf345b632ac1d07adfbcc",class:"counter-button",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowDown: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:"5cc396eaee3ad5ffcd88f6b29f611a7964f610b8",class:"counter-button counter-button--horizontal counter-button--increase",icon:this.controlsIcon==="arrow"?miBaselineKeyboardArrowUp:miBaselineAdd,onClick:this.stepUp,tabindex:"0",title:this.t.get("increase"),part:"counter-button-increase"}),this.type==="password"&&h("mds-button",{key:"cc00dcade25b03f409259915e3b5f6e5a2455f86",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:"54a50f335ccddfd1a9eaed43d022cfabdbfe9cec",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:"80f7c4c48c5af44ca38a53fa5ad979787effd64b",lang:this.language,position:"top",active:this.hasFocus,part:"tip-top"},this.disabled&&h("mds-input-tip-item",{key:"96b7685242f4553ee779632714e76370bdfc2fb8",expanded:true,variant:"disabled"}),this.readonly&&h("mds-input-tip-item",{key:"622ba54b143433de4043b24bd66071b2c2ea9252",expanded:true,variant:"readonly"}),this.required&&h("mds-input-tip-item",{key:"2f8a18a7c813af38db53f5454985c82b05e4a488",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),h("mds-input-tip",{key:"39c14635fa94b923e7915f406414d990a6d5915c",lang:this.language,position:"bottom",active:this.hasFocus,part:"tip-bottom"},this.tip&&h("mds-input-tip-item",{key:"b267fd5c6de684068938b8e012ca03b5feab129a",expanded:true,variant:"text"},this.tip),this.maxlength&&h("mds-input-tip-item",{key:"f9e0203c4686831dd3a713c0bc5de3b27f8ed23a",part:"tip-count",expanded:true,variant:this.countVariant},this.currentLengthLabel)),this.datalist&&h("datalist",{key:"257a7e6dad1352eafd5149280b2ccf425bd6cf38",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:"85e7ff12195f5ad48eacb59e95532572ea6e14bc",class:clsx("icon",this.variant),name:this.icon}),h("mds-spinner",{key:"0f35bc59f5f4a5aae941adbd3d0b8d0ddd8a1e42",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};
|