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GACvGlR,KAAK0R,aACP,CAIA,eAAA2D,CAAgBnE,GACd,OAAOA,IAASlR,KAAKmC,KACvB,CAIA,mBAAA8O,CAAoBC,GAClB,OAAOlR,KAAKqV,gBAAgBnE,EAC9B,CAIA,iBAAAI,GACE,MAAMC,EAAQ,GAId,OAHIvR,KAAKmC,OACPoP,EAAMC,KAAKxR,KAAKmC,OAEXoP,CACT,CAIA,yBAAAY,GACE,OAAInS,KAAKoS,8BACApS,KAAKwN,OAAOoE,WAAW0D,iBAEzB,IACT,CAIA,2BAAAlD,GACE,GAAgC,KAA5BpS,KAAK+R,mBACP,OAAO,EAET,IAEE,OADA,IAAAzG,GAAsBtL,KAAK+R,mBAAoB/R,KAAKwN,OAAOoE,aACpD,CACT,CAAE,MAAOhK,GACP,OAAO,CACT,CACF,CAIA,aAAA8K,GACEhD,EAAgB1P,KAAM+U,EAAkCC,GAAoCtE,KAAK1Q,KAAM,IACvGF,MAAM4S,eACR,GAEFqC,EAAmC,IAAI1F,QACvC2F,EAAqC,SAASrO,GAC5C3G,KAAKmC,MAAQwE,EACb3G,KAAK0H,MAAM,UACX1H,KAAK0H,MAAM,QACb,EACAa,EAAgB,CACd,EAAAkL,GACCwB,EAAWjN,UAAW,uBAAwB,GACjDiN,EAAa1M,EAAgB,CAC3B,EAAA5E,EACA,EAAAuF,GACC+L,GAEH,MAQMM,EAAuB,CARAN,EAAWzK,QAAQ,CAC9CC,SAAU,cACVC,SAAU,IACVS,OAAM,IACNC,cAAe,CACbC,gBAAgB,IAIlBmK,MACG,OACA,EAAAlK,KACA,OACA,KAECmK,GAAqB,IAAAvL,GAAgBqL,E","sources":["webpack://frontend/./node_modules/@vonage/vivid/shared/definition16.js","webpack://frontend/./node_modules/@vonage/vivid/shared/definition15.js","webpack://frontend/./node_modules/@vonage/vivid/shared/definition19.js","webpack://frontend/./node_modules/@vonage/vivid/shared/definition14.js","webpack://frontend/./node_modules/@vonage/vivid/shared/definition18.js"],"sourcesContent":["import { D as DOM, O as Observable, _ as __decorate, a as attr, o as observable, h as html, r as registerFactory } from './index.js';\nimport { a as iconRegistries } from './definition27.js';\nimport { P as Popup, p as popupRegistries } from './definition63.js';\nimport { a as listboxOptionRegistries } from './definition36.js';\nimport { s as styles$1 } from './text-field.js';\nimport { A as AffixIcon, a as affixIconTemplateFactory } from './affix.js';\nimport { f as formElements } from './index2.js';\nimport { b as Listbox, D as DelegatesARIAListbox, a as Listbox$1 } from './listbox.js';\nimport { S as StartEnd } from './start-end.js';\nimport { S as SelectPosition } from './select.options.js';\nimport { a as applyMixins } from './apply-mixins.js';\nimport { F as FormAssociated } from './form-associated.js';\nimport { l as limit } from './numbers.js';\nimport { u as uniqueId } from './strings.js';\nimport { r as ref } from './ref.js';\nimport { s as slotted } from './slotted.js';\nimport { w as when } from './when.js';\nimport { c as classNames } from './class-names.js';\n\nclass _Combobox extends Listbox {\n}\n/**\n * A form-associated base class for the {@link (Combobox:class)} component.\n *\n * @internal\n */\nclass FormAssociatedCombobox extends FormAssociated(_Combobox) {\n constructor() {\n super(...arguments);\n this.proxy = document.createElement(\"input\");\n }\n}\n\n/**\n * Autocomplete values for combobox.\n * @public\n */\nconst ComboboxAutocomplete = {\n inline: \"inline\",\n list: \"list\",\n both: \"both\",\n none: \"none\",\n};\n\n/**\n * A Combobox Custom HTML Element.\n * Implements the {@link https://w3c.github.io/aria-practices/#combobox | ARIA combobox }.\n *\n * @slot start - Content which can be provided before the input\n * @slot end - Content which can be provided after the input\n * @slot control - Used to replace the input element representing the combobox\n * @slot indicator - The visual indicator representing the expanded state\n * @slot - The default slot for the options\n * @csspart control - The wrapper element containing the input area, including start and end\n * @csspart selected-value - The input element representing the selected value\n * @csspart indicator - The element wrapping the indicator slot\n * @csspart listbox - The wrapper for the listbox slotted options\n * @fires change - Fires a custom 'change' event when the value updates\n *\n * @public\n */\nlet Combobox$1 = class Combobox extends FormAssociatedCombobox {\n constructor() {\n super(...arguments);\n /**\n * The internal value property.\n *\n * @internal\n */\n this._value = \"\";\n /**\n * The collection of currently filtered options.\n *\n * @public\n */\n this.filteredOptions = [];\n /**\n * The current filter value.\n *\n * @internal\n */\n this.filter = \"\";\n /**\n * The initial state of the position attribute.\n *\n * @internal\n */\n this.forcedPosition = false;\n /**\n * The unique id for the internal listbox element.\n *\n * @internal\n */\n this.listboxId = uniqueId(\"listbox-\");\n /**\n * The max height for the listbox when opened.\n *\n * @internal\n */\n this.maxHeight = 0;\n /**\n * The open attribute.\n *\n * @public\n * @remarks\n * HTML Attribute: open\n */\n this.open = false;\n }\n /**\n * Reset the element to its first selectable option when its parent form is reset.\n *\n * @internal\n */\n formResetCallback() {\n super.formResetCallback();\n this.setDefaultSelectedOption();\n this.updateValue();\n }\n /** {@inheritDoc (FormAssociated:interface).validate} */\n validate() {\n super.validate(this.control);\n }\n get isAutocompleteInline() {\n return (this.autocomplete === ComboboxAutocomplete.inline || this.isAutocompleteBoth);\n }\n get isAutocompleteList() {\n return this.autocomplete === ComboboxAutocomplete.list || this.isAutocompleteBoth;\n }\n get isAutocompleteBoth() {\n return this.autocomplete === ComboboxAutocomplete.both;\n }\n /**\n * Sets focus and synchronize ARIA attributes when the open property changes.\n *\n * @param prev - the previous open value\n * @param next - the current open value\n *\n * @internal\n */\n openChanged() {\n if (this.open) {\n this.ariaControls = this.listboxId;\n this.ariaExpanded = \"true\";\n this.setPositioning();\n this.focusAndScrollOptionIntoView();\n // focus is directed to the element when `open` is changed programmatically\n DOM.queueUpdate(() => this.focus());\n return;\n }\n this.ariaControls = \"\";\n this.ariaExpanded = \"false\";\n }\n /**\n * The list of options.\n *\n * @public\n * @remarks\n * Overrides `Listbox.options`.\n */\n get options() {\n Observable.track(this, \"options\");\n return this.filteredOptions.length ? this.filteredOptions : this._options;\n }\n set options(value) {\n this._options = value;\n Observable.notify(this, \"options\");\n }\n /**\n * Updates the placeholder on the proxy element.\n * @internal\n */\n placeholderChanged() {\n if (this.proxy instanceof HTMLInputElement) {\n this.proxy.placeholder = this.placeholder;\n }\n }\n positionChanged(prev, next) {\n this.positionAttribute = next;\n this.setPositioning();\n }\n /**\n * The value property.\n *\n * @public\n */\n get value() {\n Observable.track(this, \"value\");\n return this._value;\n }\n set value(next) {\n var _a, _b, _c;\n const prev = `${this._value}`;\n if (this.$fastController.isConnected && this.options) {\n const selectedIndex = this.options.findIndex(el => el.text.toLowerCase() === next.toLowerCase());\n const prevSelectedValue = (_a = this.options[this.selectedIndex]) === null || _a === void 0 ? void 0 : _a.text;\n const nextSelectedValue = (_b = this.options[selectedIndex]) === null || _b === void 0 ? void 0 : _b.text;\n this.selectedIndex =\n prevSelectedValue !== nextSelectedValue\n ? selectedIndex\n : this.selectedIndex;\n next = ((_c = this.firstSelectedOption) === null || _c === void 0 ? void 0 : _c.text) || next;\n }\n if (prev !== next) {\n this._value = next;\n super.valueChanged(prev, next);\n Observable.notify(this, \"value\");\n }\n }\n /**\n * Handle opening and closing the listbox when the combobox is clicked.\n *\n * @param e - the mouse event\n * @internal\n */\n clickHandler(e) {\n if (this.disabled) {\n return;\n }\n if (this.open) {\n const captured = e.target.closest(`option,[role=option]`);\n if (!captured || captured.disabled) {\n return;\n }\n this.selectedOptions = [captured];\n this.control.value = captured.text;\n this.clearSelectionRange();\n this.updateValue(true);\n }\n this.open = !this.open;\n if (this.open) {\n this.control.focus();\n }\n return true;\n }\n connectedCallback() {\n super.connectedCallback();\n this.forcedPosition = !!this.positionAttribute;\n if (this.value) {\n this.initialValue = this.value;\n }\n }\n /**\n * Synchronize the `aria-disabled` property when the `disabled` property changes.\n *\n * @param prev - The previous disabled value\n * @param next - The next disabled value\n *\n * @internal\n */\n disabledChanged(prev, next) {\n if (super.disabledChanged) {\n super.disabledChanged(prev, next);\n }\n this.ariaDisabled = this.disabled ? \"true\" : \"false\";\n }\n /**\n * Filter available options by text value.\n *\n * @public\n */\n filterOptions() {\n if (!this.autocomplete || this.autocomplete === ComboboxAutocomplete.none) {\n this.filter = \"\";\n }\n const filter = this.filter.toLowerCase();\n this.filteredOptions = this._options.filter(o => o.text.toLowerCase().startsWith(this.filter.toLowerCase()));\n if (this.isAutocompleteList) {\n if (!this.filteredOptions.length && !filter) {\n this.filteredOptions = this._options;\n }\n this._options.forEach(o => {\n o.hidden = !this.filteredOptions.includes(o);\n });\n }\n }\n /**\n * Focus the control and scroll the first selected option into view.\n *\n * @internal\n * @remarks\n * Overrides: `Listbox.focusAndScrollOptionIntoView`\n */\n focusAndScrollOptionIntoView() {\n if (this.contains(document.activeElement)) {\n this.control.focus();\n if (this.firstSelectedOption) {\n requestAnimationFrame(() => {\n var _a;\n (_a = this.firstSelectedOption) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ block: \"nearest\" });\n });\n }\n }\n }\n /**\n * Handle focus state when the element or its children lose focus.\n *\n * @param e - The focus event\n * @internal\n */\n focusoutHandler(e) {\n this.syncValue();\n if (!this.open) {\n return true;\n }\n const focusTarget = e.relatedTarget;\n if (this.isSameNode(focusTarget)) {\n this.focus();\n return;\n }\n if (!this.options || !this.options.includes(focusTarget)) {\n this.open = false;\n }\n }\n /**\n * Handle content changes on the control input.\n *\n * @param e - the input event\n * @internal\n */\n inputHandler(e) {\n this.filter = this.control.value;\n this.filterOptions();\n if (!this.isAutocompleteInline) {\n this.selectedIndex = this.options\n .map(option => option.text)\n .indexOf(this.control.value);\n }\n if (e.inputType.includes(\"deleteContent\") || !this.filter.length) {\n return true;\n }\n if (this.isAutocompleteList && !this.open) {\n this.open = true;\n }\n if (this.isAutocompleteInline) {\n if (this.filteredOptions.length) {\n this.selectedOptions = [this.filteredOptions[0]];\n this.selectedIndex = this.options.indexOf(this.firstSelectedOption);\n this.setInlineSelection();\n }\n else {\n this.selectedIndex = -1;\n }\n }\n return;\n }\n /**\n * Handle keydown actions for listbox navigation.\n *\n * @param e - the keyboard event\n * @internal\n */\n keydownHandler(e) {\n const key = e.key;\n if (e.ctrlKey || e.shiftKey) {\n return true;\n }\n switch (key) {\n case \"Enter\": {\n this.syncValue();\n if (this.isAutocompleteInline) {\n this.filter = this.value;\n }\n this.open = false;\n this.clearSelectionRange();\n break;\n }\n case \"Escape\": {\n if (!this.isAutocompleteInline) {\n this.selectedIndex = -1;\n }\n if (this.open) {\n this.open = false;\n break;\n }\n this.value = \"\";\n this.control.value = \"\";\n this.filter = \"\";\n this.filterOptions();\n break;\n }\n case \"Tab\": {\n this.setInputToSelection();\n if (!this.open) {\n return true;\n }\n e.preventDefault();\n this.open = false;\n break;\n }\n case \"ArrowUp\":\n case \"ArrowDown\": {\n this.filterOptions();\n if (!this.open) {\n this.open = true;\n break;\n }\n if (this.filteredOptions.length > 0) {\n super.keydownHandler(e);\n }\n if (this.isAutocompleteInline) {\n this.setInlineSelection();\n }\n break;\n }\n default: {\n return true;\n }\n }\n }\n /**\n * Handle keyup actions for value input and text field manipulations.\n *\n * @param e - the keyboard event\n * @internal\n */\n keyupHandler(e) {\n const key = e.key;\n switch (key) {\n case \"ArrowLeft\":\n case \"ArrowRight\":\n case \"Backspace\":\n case \"Delete\":\n case \"Home\":\n case \"End\": {\n this.filter = this.control.value;\n this.selectedIndex = -1;\n this.filterOptions();\n break;\n }\n }\n }\n /**\n * Ensure that the selectedIndex is within the current allowable filtered range.\n *\n * @param prev - the previous selected index value\n * @param next - the current selected index value\n *\n * @internal\n */\n selectedIndexChanged(prev, next) {\n if (this.$fastController.isConnected) {\n next = limit(-1, this.options.length - 1, next);\n // we only want to call the super method when the selectedIndex is in range\n if (next !== this.selectedIndex) {\n this.selectedIndex = next;\n return;\n }\n super.selectedIndexChanged(prev, next);\n }\n }\n /**\n * Move focus to the previous selectable option.\n *\n * @internal\n * @remarks\n * Overrides `Listbox.selectPreviousOption`\n */\n selectPreviousOption() {\n if (!this.disabled && this.selectedIndex >= 0) {\n this.selectedIndex = this.selectedIndex - 1;\n }\n }\n /**\n * Set the default selected options at initialization or reset.\n *\n * @internal\n * @remarks\n * Overrides `Listbox.setDefaultSelectedOption`\n */\n setDefaultSelectedOption() {\n if (this.$fastController.isConnected && this.options) {\n const selectedIndex = this.options.findIndex(el => el.getAttribute(\"selected\") !== null || el.selected);\n this.selectedIndex = selectedIndex;\n if (!this.dirtyValue && this.firstSelectedOption) {\n this.value = this.firstSelectedOption.text;\n }\n this.setSelectedOptions();\n }\n }\n /**\n * Focus and set the content of the control based on the first selected option.\n *\n * @internal\n */\n setInputToSelection() {\n if (this.firstSelectedOption) {\n this.control.value = this.firstSelectedOption.text;\n this.control.focus();\n }\n }\n /**\n * Focus, set and select the content of the control based on the first selected option.\n *\n * @internal\n */\n setInlineSelection() {\n if (this.firstSelectedOption) {\n this.setInputToSelection();\n this.control.setSelectionRange(this.filter.length, this.control.value.length, \"backward\");\n }\n }\n /**\n * Determines if a value update should involve emitting a change event, then updates the value.\n *\n * @internal\n */\n syncValue() {\n var _a;\n const newValue = this.selectedIndex > -1 ? (_a = this.firstSelectedOption) === null || _a === void 0 ? void 0 : _a.text : this.control.value;\n this.updateValue(this.value !== newValue);\n }\n /**\n * Calculate and apply listbox positioning based on available viewport space.\n *\n * @param force - direction to force the listbox to display\n * @public\n */\n setPositioning() {\n const currentBox = this.getBoundingClientRect();\n const viewportHeight = window.innerHeight;\n const availableBottom = viewportHeight - currentBox.bottom;\n this.position = this.forcedPosition\n ? this.positionAttribute\n : currentBox.top > availableBottom\n ? SelectPosition.above\n : SelectPosition.below;\n this.positionAttribute = this.forcedPosition\n ? this.positionAttribute\n : this.position;\n this.maxHeight =\n this.position === SelectPosition.above ? ~~currentBox.top : ~~availableBottom;\n }\n /**\n * Ensure that the entire list of options is used when setting the selected property.\n *\n * @param prev - the previous list of selected options\n * @param next - the current list of selected options\n *\n * @internal\n * @remarks\n * Overrides: `Listbox.selectedOptionsChanged`\n */\n selectedOptionsChanged(prev, next) {\n if (this.$fastController.isConnected) {\n this._options.forEach(o => {\n o.selected = next.includes(o);\n });\n }\n }\n /**\n * Synchronize the form-associated proxy and update the value property of the element.\n *\n * @param prev - the previous collection of slotted option elements\n * @param next - the next collection of slotted option elements\n *\n * @internal\n */\n slottedOptionsChanged(prev, next) {\n super.slottedOptionsChanged(prev, next);\n this.updateValue();\n }\n /**\n * Sets the value and to match the first selected option.\n *\n * @param shouldEmit - if true, the change event will be emitted\n *\n * @internal\n */\n updateValue(shouldEmit) {\n var _a;\n if (this.$fastController.isConnected) {\n this.value = ((_a = this.firstSelectedOption) === null || _a === void 0 ? void 0 : _a.text) || this.control.value;\n this.control.value = this.value;\n }\n if (shouldEmit) {\n this.$emit(\"change\");\n }\n }\n /**\n * @internal\n */\n clearSelectionRange() {\n const controlValueLength = this.control.value.length;\n this.control.setSelectionRange(controlValueLength, controlValueLength);\n }\n};\n__decorate([\n attr({ attribute: \"autocomplete\", mode: \"fromView\" })\n], Combobox$1.prototype, \"autocomplete\", void 0);\n__decorate([\n observable\n], Combobox$1.prototype, \"maxHeight\", void 0);\n__decorate([\n attr({ attribute: \"open\", mode: \"boolean\" })\n], Combobox$1.prototype, \"open\", void 0);\n__decorate([\n attr\n], Combobox$1.prototype, \"placeholder\", void 0);\n__decorate([\n attr({ attribute: \"position\" })\n], Combobox$1.prototype, \"positionAttribute\", void 0);\n__decorate([\n observable\n], Combobox$1.prototype, \"position\", void 0);\n/**\n * Includes ARIA states and properties relating to the ARIA combobox role.\n *\n * @public\n */\nclass DelegatesARIACombobox {\n}\n__decorate([\n observable\n], DelegatesARIACombobox.prototype, \"ariaAutoComplete\", void 0);\n__decorate([\n observable\n], DelegatesARIACombobox.prototype, \"ariaControls\", void 0);\napplyMixins(DelegatesARIACombobox, DelegatesARIAListbox);\napplyMixins(Combobox$1, StartEnd, DelegatesARIACombobox);\n\nconst styles = \":host{position:relative}.base{--_text-field-gutter-end: 44px}.base{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--_connotation-color-intermediate)}.base.appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--_connotation-color-fierce)}.base:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base:where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.base:where(.disabled,:disabled).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.readonly):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: var(--vvd-color-neutral-400)}.base:where(.readonly):where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-600);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.error):where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: var(--vvd-color-alert-500)}.base:where(.error):where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: transparent}.base:where(.success):where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: var(--vvd-color-success-500)}.base:where(.success):where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: transparent}.icon{inset-inline-end:16px;inset-inline-start:unset}:not(.disabled) .icon{cursor:pointer}.disabled .icon{cursor:not-allowed}.listbox{display:flex;max-height:var(--combobox-height, 408px);flex-direction:column;padding:4px;border-radius:8px;contain:paint;gap:2px;overflow-y:auto}::part(popup-base){inline-size:max-content;min-inline-size:var(--_combobox-fixed-width, 100%)}@supports selector(:has(*)){.fieldset:has(.control:focus-within):after{--focus-stroke-gap-color: transparent;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}}@supports not selector(:has(*)){.fieldset:focus-within:after{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent;position:absolute;z-index:1;display:block;border-radius:inherit;content:\\\"\\\";inset:0;pointer-events:none}}\";\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp(target, key, result);\n return result;\n};\nlet Combobox = class extends Combobox$1 {\n constructor() {\n super(...arguments);\n this.fixedDropdown = false;\n }\n connectedCallback() {\n super.connectedCallback();\n this._popup.anchor = this._anchor;\n }\n};\n__decorateClass([\n attr\n], Combobox.prototype, \"appearance\", 2);\n__decorateClass([\n attr\n], Combobox.prototype, \"placement\", 2);\n__decorateClass([\n attr({ mode: \"boolean\", attribute: \"fixed-dropdown\" })\n], Combobox.prototype, \"fixedDropdown\", 2);\nCombobox = __decorateClass([\n formElements\n], Combobox);\napplyMixins(Combobox, AffixIcon);\n\nfunction renderLabel() {\n return html` `;\n}\nconst getStateClasses = ({\n disabled,\n placeholder,\n label,\n appearance\n}) => classNames(\n \"base\",\n [\"disabled\", disabled],\n [\"placeholder\", Boolean(placeholder)],\n [`appearance-${appearance}`, Boolean(appearance)],\n [\"no-label\", !label]\n);\nfunction setFixedDropdownVarWidth(x) {\n return x.open && x.fixedDropdown ? `--_combobox-fixed-width: ${Math.round(\n x.getBoundingClientRect().width\n )}px` : null;\n}\nfunction renderInput(context) {\n const affixIconTemplate = affixIconTemplateFactory(context);\n return html`
\n\t\t${when((x) => x.label, renderLabel())}\n\t\t
\n\t\t\t x.open ? x.ariaActiveDescendant : null}\"\n\t\t\t\taria-autocomplete=\"${(x) => x.ariaAutoComplete}\"\n\t\t\t\taria-controls=\"${(x) => x.ariaControls}\"\n\t\t\t\taria-disabled=\"${(x) => x.ariaDisabled}\"\n\t\t\t\taria-expanded=\"${(x) => x.ariaExpanded}\"\n\t\t\t\taria-haspopup=\"listbox\"\n\t\t\t\tplaceholder=\"${(x) => x.placeholder}\"\n\t\t\t\trole=\"combobox\"\n\t\t\t\ttype=\"text\"\n\t\t\t\t?disabled=\"${(x) => x.disabled}\"\n\t\t\t\t:value=\"${(x) => x.value}\"\n\t\t\t\t@input=\"${(x, c) => x.inputHandler(c.event)}\"\n\t\t\t\t@keyup=\"${(x, c) => x.keyupHandler(c.event)}\"\n\t\t\t\t${ref(\"control\")}\n\t\t\t/>\n\t\t\t${() => affixIconTemplate(\"chevron-down-line\")}\n\t\t
\n\t
`;\n}\nconst comboboxTemplate = (context) => {\n const popupTag = context.tagFor(Popup);\n return html`\n x.ariaDisabled}\"\n autocomplete=\"${(x) => x.autocomplete}\"\n tabindex=\"${(x) => !x.disabled ? \"0\" : null}\"\n @click=\"${(x, c) => x.clickHandler(c.event)}\"\n @focusout=\"${(x, c) => x.focusoutHandler(c.event)}\"\n @keydown=\"${(x, c) => x.keydownHandler(c.event)}\"\n >\n\t\t\t${() => renderInput(context)}\n\t\t\t<${popupTag} class=\"popup\"\n\t\t\t\tstyle=\"${setFixedDropdownVarWidth}\"\n\t\t\t\t?open=\"${(x) => x.open}\"\n\t\t\t\tplacement=\"${(x) => x.placement ?? \"bottom-start\"}\"\n\t\t\t\tstrategy=\"${(x) => x.fixedDropdown ? \"fixed\" : \"absolute\"}\"\n\t\t\t\t${ref(\"_popup\")}>\n\t\t\t\t
x.listboxId}\"\n\t\t\t\t\tclass=\"listbox\"\n\t\t\t\t\trole=\"listbox\"\n\t\t\t\t\t?disabled=\"${(x) => x.disabled}\"\n\t\t\t\t\t${ref(\"listbox\")}>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\n \n\t\t`;\n};\n\nconst combobox = Combobox.compose({\n baseName: \"combobox\",\n template: comboboxTemplate,\n styles: [styles$1, styles],\n shadowOptions: {\n delegatesFocus: true\n }\n})();\nconst comboboxRegistries = [\n combobox,\n ...iconRegistries,\n ...popupRegistries,\n ...listboxOptionRegistries\n];\nconst registerCombobox = registerFactory(comboboxRegistries);\n\nexport { comboboxRegistries as a, combobox as c, registerCombobox as r };\n","import { F as FoundationElement, _ as __decorate, a as attr, o as observable, h as html, r as registerFactory } from './index.js';\nimport { a as iconRegistries } from './definition27.js';\nimport './affix.js';\nimport { e as errorText, f as formElements, F as FormElementSuccessText, a as FormElementHelperText, g as getFeedbackTemplate } from './index2.js';\nimport { a as applyMixinsWithObservables } from './applyMixinsWithObservables.js';\nimport { C as CheckableFormAssociated } from './form-associated.js';\nimport { a as keySpace$1 } from './key-codes.js';\nimport { I as Icon } from './icon.js';\nimport { w as when } from './when.js';\nimport { s as slotted } from './slotted.js';\nimport { c as classNames } from './class-names.js';\n\nclass _Checkbox extends FoundationElement {\n}\n/**\n * A form-associated base class for the {@link @microsoft/fast-foundation#(Checkbox:class)} component.\n *\n * @internal\n */\nclass FormAssociatedCheckbox extends CheckableFormAssociated(_Checkbox) {\n constructor() {\n super(...arguments);\n this.proxy = document.createElement(\"input\");\n }\n}\n\n/**\n * A Checkbox Custom HTML Element.\n * Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#checkbox | ARIA checkbox }.\n *\n * @slot checked-indicator - The checked indicator\n * @slot indeterminate-indicator - The indeterminate indicator\n * @slot - The default slot for the label\n * @csspart control - The element representing the visual checkbox control\n * @csspart label - The label\n * @fires change - Emits a custom change event when the checked state changes\n *\n * @public\n */\nlet Checkbox$1 = class Checkbox extends FormAssociatedCheckbox {\n constructor() {\n super();\n /**\n * The element's value to be included in form submission when checked.\n * Default to \"on\" to reach parity with input[type=\"checkbox\"]\n *\n * @internal\n */\n this.initialValue = \"on\";\n /**\n * The indeterminate state of the control\n */\n this.indeterminate = false;\n /**\n * @internal\n */\n this.keypressHandler = (e) => {\n if (this.readOnly) {\n return;\n }\n switch (e.key) {\n case keySpace$1:\n if (this.indeterminate) {\n this.indeterminate = false;\n }\n this.checked = !this.checked;\n break;\n }\n };\n /**\n * @internal\n */\n this.clickHandler = (e) => {\n if (!this.disabled && !this.readOnly) {\n if (this.indeterminate) {\n this.indeterminate = false;\n }\n this.checked = !this.checked;\n }\n };\n this.proxy.setAttribute(\"type\", \"checkbox\");\n }\n readOnlyChanged() {\n if (this.proxy instanceof HTMLInputElement) {\n this.proxy.readOnly = this.readOnly;\n }\n }\n};\n__decorate([\n attr({ attribute: \"readonly\", mode: \"boolean\" })\n], Checkbox$1.prototype, \"readOnly\", void 0);\n__decorate([\n observable\n], Checkbox$1.prototype, \"defaultSlottedNodes\", void 0);\n__decorate([\n observable\n], Checkbox$1.prototype, \"indeterminate\", void 0);\n\nconst styles = \":host{display:inline-flex;flex-direction:column;vertical-align:middle}:host([disabled]){cursor:not-allowed}.base{display:inline-flex;align-items:center;gap:8px;vertical-align:middle}.base.connotation-cta{--_connotation-color-primary: var(--vvd-checkbox-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-checkbox-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-checkbox-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-fierce: var(--vvd-checkbox-cta-fierce, var(--vvd-color-cta-700));--_connotation-color-intermediate: var(--vvd-checkbox-cta-intermediate, var(--vvd-color-cta-500));--_connotation-color-firm: var(--vvd-checkbox-cta-firm, var(--vvd-color-cta-600))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-checkbox-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-checkbox-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-checkbox-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-fierce: var(--vvd-checkbox-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-intermediate: var(--vvd-checkbox-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-firm: var(--vvd-checkbox-accent-firm, var(--vvd-color-canvas-text))}.base{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--_connotation-color-intermediate)}.base:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--_connotation-color-fierce)}.base:where(.checked,:checked):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: var(--_connotation-color-primary)}.base:where(.checked,:checked):where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: var(--_connotation-color-primary-increment)}.base:where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.base:where(.readonly):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: var(--vvd-color-neutral-400)}.base:focus-visible{outline:none}@supports (user-select: none){.base{user-select:none}}.base:not(.disabled){cursor:pointer}.base.disabled{pointer-events:none}.control{position:relative;display:flex;flex-shrink:0;align-items:center;justify-content:center;border-radius:4px;background-color:var(--_appearance-color-fill);block-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2)));box-shadow:inset 0 0 0 2px var(--_appearance-color-outline);color:var(--_appearance-color-text);inline-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base:focus-visible .control{--focus-inset: -3px;--focus-stroke-gap-color: transparent}.base:focus-visible .control:before{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px));position:absolute;display:block;border-radius:2px;block-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2)));content:\\\"\\\";inline-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.error:not(.checked) .control{background-color:var(--vvd-color-alert-50);box-shadow:inset 0 0 0 2px var(--vvd-color-alert-500)}.indicator{font-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2)) - 4px)}.base:not(.checked) .indicator.checkmark{display:none}.base.checked .indicator.minus,.base:not(.indeterminate) .indicator.minus{display:none}label{display:flex;flex-wrap:wrap;align-items:center;color:var(--vvd-color-canvas-text);column-gap:4px;cursor:pointer;font:var(--vvd-typography-base)}.hide-label label{display:none}.icon{font-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2))*.6);line-height:1}.message{margin-block-start:4px;--_low-ink-color: var(--vvd-color-neutral-600)}\";\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp(target, key, result);\n return result;\n};\nconst keySpace = \" \";\nlet Checkbox = class extends Checkbox$1 {\n constructor() {\n super(...arguments);\n this.ariaLabel = null;\n this.tabindex = null;\n /**\n * !remove method as will be implemented by fast-foundation in version after 2.46.9\n *\n * @internal\n */\n this.keypressHandler = (event) => {\n if (event.target instanceof HTMLAnchorElement) {\n return true;\n }\n if (!this.disabled && !this.readOnly) {\n switch (event.key) {\n case keySpace:\n if (this.indeterminate) {\n this.indeterminate = false;\n }\n this.checked = !this.checked;\n break;\n }\n }\n return false;\n };\n /**\n * !remove method as will be implemented by fast-foundation in version after 2.46.9\n *\n * @internal\n */\n this.clickHandler = (event) => {\n if (event.target instanceof HTMLAnchorElement) {\n return true;\n }\n if (!this.disabled && !this.readOnly) {\n if (this.indeterminate) {\n this.indeterminate = false;\n }\n this.checked = !this.checked;\n }\n return false;\n };\n }\n /**\n * @internal\n */\n checkedChanged(prev, next) {\n super.checkedChanged(prev, next);\n if (prev !== void 0) {\n this.$emit(\"input\");\n }\n }\n};\n__decorateClass([\n attr({ attribute: \"aria-label\" })\n], Checkbox.prototype, \"ariaLabel\", 2);\n__decorateClass([\n attr({ attribute: \"tabindex\" })\n], Checkbox.prototype, \"tabindex\", 2);\n__decorateClass([\n attr\n], Checkbox.prototype, \"connotation\", 2);\n__decorateClass([\n observable\n], Checkbox.prototype, \"slottedContent\", 2);\nCheckbox = __decorateClass([\n errorText,\n formElements\n], Checkbox);\napplyMixinsWithObservables(\n Checkbox,\n FormElementHelperText,\n FormElementSuccessText\n);\n\nconst getClasses = ({\n connotation,\n readOnly,\n checked,\n disabled,\n indeterminate,\n errorValidationMessage,\n successText,\n label,\n slottedContent\n}) => classNames(\n \"base\",\n [`connotation-${connotation}`, Boolean(connotation)],\n [\"readonly\", Boolean(readOnly)],\n [\"checked\", Boolean(checked) || Boolean(indeterminate)],\n [\"disabled\", Boolean(disabled)],\n [\"error connotation-alert\", Boolean(errorValidationMessage)],\n [\"success connotation-success\", !!successText],\n [\"hide-label\", !label && !slottedContent?.length]\n);\nconst CheckboxTemplate = (context) => {\n const iconTag = context.tagFor(Icon);\n return html``;\n};\n\nconst checkboxDefinition = Checkbox.compose({\n baseName: \"checkbox\",\n template: CheckboxTemplate,\n styles,\n shadowOptions: {\n delegatesFocus: true\n }\n});\nconst checkboxRegistries = [checkboxDefinition(), ...iconRegistries];\nconst registerCheckbox = registerFactory(checkboxRegistries);\n\nexport { Checkbox as C, checkboxRegistries as a, checkboxDefinition as c, registerCheckbox as r };\n","import { a as attr, o as observable, v as volatile, r as registerFactory } from './index.js';\nimport { a as buttonRegistries } from './definition11.js';\nimport { p as popupRegistries } from './definition63.js';\nimport { a as textFieldRegistries } from './definition55.js';\nimport { a as dividerRegistries } from './definition22.js';\nimport { f as formatPresentationDate, p as parsePresentationDate, D as DatePickerBase, i as isValidDateStr, c as compareDateStr, a as DatePickerBaseTemplate, s as styles } from './presentationDate.js';\nimport './affix.js';\nimport { e as errorText, f as formElements } from './index2.js';\n\nconst formatRange = (from, to) => {\n return `${from} ā€“ ${to}`;\n};\nconst formatPresentationDateRange = (dateRange, locale) => {\n return formatRange(\n formatPresentationDate(dateRange.start, locale),\n formatPresentationDate(dateRange.end, locale)\n );\n};\nconst parsePresentationDateRange = (presentationDateRange, locale) => {\n const fragments = presentationDateRange.trim().split(/[\\sā€”ā€“-]+/);\n if (fragments.length !== 2) {\n throw new Error(`Invalid date range: ${presentationDateRange}`);\n }\n const [start, end] = fragments.map(\n (fragment) => parsePresentationDate(fragment, locale)\n );\n return { start, end };\n};\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp(target, key, result);\n return result;\n};\nvar __accessCheck = (obj, member, msg) => {\n if (!member.has(obj))\n throw TypeError(\"Cannot \" + msg);\n};\nvar __privateGet = (obj, member, getter) => {\n __accessCheck(obj, member, \"read from private field\");\n return member.get(obj);\n};\nvar __privateAdd = (obj, member, value) => {\n if (member.has(obj))\n throw TypeError(\"Cannot add the same private member more than once\");\n member instanceof WeakSet ? member.add(obj) : member.set(obj, value);\n};\nvar __privateSet = (obj, member, value, setter) => {\n __accessCheck(obj, member, \"write to private field\");\n member.set(obj, value);\n return value;\n};\nvar __privateMethod = (obj, member, method) => {\n __accessCheck(obj, member, \"access private method\");\n return method;\n};\nvar _isInternalValueUpdate, _updateValues, updateValues_fn, _handleChangedValues, handleChangedValues_fn, _updateFormValue, updateFormValue_fn, _getVisibleRange, getVisibleRange_fn;\nconst isFormAssociatedTryingToSetFormValue = (value) => typeof value === \"string\";\nfunction isDefined(value) {\n return !!value;\n}\nlet DateRangePicker = class extends DatePickerBase {\n constructor() {\n super(...arguments);\n __privateAdd(this, _updateValues);\n __privateAdd(this, _handleChangedValues);\n __privateAdd(this, _updateFormValue);\n __privateAdd(this, _getVisibleRange);\n this.initialStart = \"\";\n this.initialEnd = \"\";\n __privateAdd(this, _isInternalValueUpdate, false);\n this.start = \"\";\n this.end = \"\";\n this.setFormValue = (value, state) => {\n if (isFormAssociatedTryingToSetFormValue(value)) {\n return;\n }\n super.setFormValue(value, state);\n };\n this._numCalendars = 2;\n /**\n * @internal\n */\n this._hideDatesOutsideMonth = true;\n /**\n * @internal\n */\n this._textFieldSize = \"30\";\n }\n /**\n * @internal\n */\n initialStartChanged() {\n if (!this.dirtyValue) {\n this.start = this.initialStart;\n this.dirtyValue = false;\n }\n }\n /**\n * @internal\n */\n initialEndChanged() {\n if (!this.dirtyValue) {\n this.end = this.initialEnd;\n this.dirtyValue = false;\n }\n }\n /**\n * @internal\n */\n startChanged() {\n if (this.start && !isValidDateStr(this.start)) {\n this.start = \"\";\n return;\n }\n this.currentStart = this.start;\n this.dirtyValue = true;\n if (!__privateGet(this, _isInternalValueUpdate)) {\n __privateMethod(this, _handleChangedValues, handleChangedValues_fn).call(this);\n }\n }\n /**\n * @internal\n */\n endChanged() {\n if (this.end && !isValidDateStr(this.end)) {\n this.end = \"\";\n return;\n }\n this.currentEnd = this.end;\n this.dirtyValue = true;\n if (!__privateGet(this, _isInternalValueUpdate)) {\n __privateMethod(this, _handleChangedValues, handleChangedValues_fn).call(this);\n }\n }\n /**\n * @internal\n */\n currentStartChanged() {\n this.start = this.currentStart;\n }\n /**\n * @internal\n */\n currentEndChanged() {\n this.end = this.currentEnd;\n }\n /**\n * @internal\n */\n nameChanged(previous, next) {\n super.nameChanged(previous, next);\n __privateMethod(this, _updateFormValue, updateFormValue_fn).call(this);\n }\n connectedCallback() {\n super.connectedCallback();\n if (!this.start) {\n this.start = this.initialStart;\n }\n if (!this.end) {\n this.end = this.initialEnd;\n }\n }\n /**\n * @internal\n */\n _isDateAriaSelected(date) {\n return date === this.start || date === this.end;\n }\n /**\n * @internal\n */\n _isDateInSelectedRange(date) {\n const { start, end } = __privateMethod(this, _getVisibleRange, getVisibleRange_fn).call(this);\n if (start && end) {\n return compareDateStr(date, start) >= 0 && compareDateStr(date, end) <= 0;\n }\n return false;\n }\n /**\n * @internal\n */\n _isDateRangeStart(date) {\n return date === __privateMethod(this, _getVisibleRange, getVisibleRange_fn).call(this).start;\n }\n /**\n * @internal\n */\n _isDateRangeEnd(date) {\n return date === __privateMethod(this, _getVisibleRange, getVisibleRange_fn).call(this).end;\n }\n /**\n * @internal\n */\n _getSelectedDates() {\n const dates = [];\n if (this.start) {\n dates.push(this.start);\n }\n if (this.end) {\n dates.push(this.end);\n }\n return dates;\n }\n /**\n * @internal\n */\n _onDateClick(date) {\n if (this.start && this.end) {\n __privateMethod(this, _updateValues, updateValues_fn).call(this, { start: date, end: \"\" });\n } else if (this.start) {\n __privateMethod(this, _updateValues, updateValues_fn).call(this, { end: date });\n this._closePopup();\n } else if (this.end) {\n __privateMethod(this, _updateValues, updateValues_fn).call(this, { start: date });\n this._closePopup();\n } else {\n __privateMethod(this, _updateValues, updateValues_fn).call(this, { start: date });\n }\n }\n /**\n * @internal\n */\n get _textFieldPlaceholder() {\n return formatRange(\n this.locale.datePicker.dateFormatPlaceholder,\n this.locale.datePicker.dateFormatPlaceholder\n );\n }\n /**\n * @internal\n */\n _onTextFieldChange() {\n if (this._presentationValue === \"\") {\n __privateMethod(this, _updateValues, updateValues_fn).call(this, { start: \"\", end: \"\" });\n return;\n }\n try {\n const { start, end } = parsePresentationDateRange(\n this._presentationValue,\n this.locale.datePicker\n );\n __privateMethod(this, _updateValues, updateValues_fn).call(this, { start, end });\n } catch (_) {\n return;\n }\n }\n /**\n * @internal\n */\n _onDateMouseEnter(date) {\n this._hoverDate = date;\n }\n /**\n * @internal\n */\n _onDateMouseLeave() {\n this._hoverDate = void 0;\n }\n /**\n * @internal\n */\n _getCustomValidationError() {\n if (this._isPresentationValueInvalid()) {\n return this.locale.datePicker.invalidDateRangeError;\n }\n if (this.min && this.start && compareDateStr(this.start, this.min) < 0) {\n return this.locale.datePicker.startDateAfterMinDateError(\n formatPresentationDate(this.min, this.locale.datePicker)\n );\n }\n if (this.max && this.end && compareDateStr(this.end, this.max) > 0) {\n return this.locale.datePicker.endDateBeforeMaxDateError(\n formatPresentationDate(this.max, this.locale.datePicker)\n );\n }\n return null;\n }\n /**\n * @internal\n */\n _isPresentationValueInvalid() {\n if (this._presentationValue === \"\") {\n return false;\n }\n try {\n parsePresentationDateRange(\n this._presentationValue,\n this.locale.datePicker\n );\n return false;\n } catch (_) {\n return true;\n }\n }\n /**\n * @internal\n */\n _onClearClick() {\n __privateMethod(this, _updateValues, updateValues_fn).call(this, { start: \"\", end: \"\" });\n super._onClearClick();\n }\n /**\n * @internal\n */\n formResetCallback() {\n __privateMethod(this, _updateValues, updateValues_fn).call(this, { start: this.initialStart, end: this.initialEnd });\n super.formResetCallback();\n }\n get _calendarButtonLabel() {\n if (this.start && this.end) {\n return this.locale.datePicker.changeDatesLabel(\n formatPresentationDateRange(\n {\n start: this.start,\n end: this.end\n },\n this.locale.datePicker\n )\n );\n } else {\n return this.locale.datePicker.chooseDatesLabel;\n }\n }\n};\n_isInternalValueUpdate = new WeakMap();\n_updateValues = new WeakSet();\nupdateValues_fn = function(range) {\n __privateSet(this, _isInternalValueUpdate, true);\n if (range.start !== void 0) {\n this.start = range.start;\n this.$emit(\"input:start\");\n }\n if (range.end !== void 0) {\n this.end = range.end;\n this.$emit(\"input:end\");\n }\n __privateSet(this, _isInternalValueUpdate, false);\n this.$emit(\"input\");\n this.$emit(\"change\");\n __privateMethod(this, _handleChangedValues, handleChangedValues_fn).call(this);\n};\n_handleChangedValues = new WeakSet();\nhandleChangedValues_fn = function() {\n if (this.start && this.end) {\n if (compareDateStr(this.start, this.end) > 0) {\n __privateMethod(this, _updateValues, updateValues_fn).call(this, { start: this.end, end: this.start });\n return;\n }\n this._presentationValue = formatPresentationDateRange(\n {\n start: this.start,\n end: this.end\n },\n this.locale.datePicker\n );\n this.value = formatRange(this.start, this.end);\n } else {\n this.value = \"\";\n this._presentationValue = \"\";\n }\n const dateToEnsureVisibilityOf = this.start || this.end;\n if (dateToEnsureVisibilityOf) {\n this._adjustSelectedMonthToEnsureVisibilityOf(dateToEnsureVisibilityOf);\n }\n __privateMethod(this, _updateFormValue, updateFormValue_fn).call(this);\n};\n_updateFormValue = new WeakSet();\nupdateFormValue_fn = function() {\n if (!this.name || !this.start || !this.end) {\n this.setFormValue(null);\n } else {\n const formData = new FormData();\n formData.append(this.name, this.start);\n formData.append(this.name, this.end);\n this.setFormValue(formData);\n }\n};\n_getVisibleRange = new WeakSet();\ngetVisibleRange_fn = function() {\n const candidates = [this.start, this.end].filter(isDefined);\n const isPartialRange = candidates.length === 1;\n if (this._hoverDate && isPartialRange) {\n candidates.push(this._hoverDate);\n }\n const [start, end] = candidates.sort(compareDateStr);\n return { start, end };\n};\n__decorateClass([\n attr({ mode: \"fromView\", attribute: \"start\" })\n], DateRangePicker.prototype, \"initialStart\", 2);\n__decorateClass([\n attr({ mode: \"fromView\", attribute: \"end\" })\n], DateRangePicker.prototype, \"initialEnd\", 2);\n__decorateClass([\n observable\n], DateRangePicker.prototype, \"start\", 2);\n__decorateClass([\n observable\n], DateRangePicker.prototype, \"end\", 2);\n__decorateClass([\n attr({ attribute: \"current-start\" })\n], DateRangePicker.prototype, \"currentStart\", 2);\n__decorateClass([\n attr({ attribute: \"current-end\" })\n], DateRangePicker.prototype, \"currentEnd\", 2);\n__decorateClass([\n observable\n], DateRangePicker.prototype, \"_numCalendars\", 2);\n__decorateClass([\n observable\n], DateRangePicker.prototype, \"_hoverDate\", 2);\n__decorateClass([\n volatile\n], DateRangePicker.prototype, \"_calendarButtonLabel\", 1);\nDateRangePicker = __decorateClass([\n errorText,\n formElements\n], DateRangePicker);\n\nconst dateRangePickerDefinition = DateRangePicker.compose({\n baseName: \"date-range-picker\",\n template: DatePickerBaseTemplate,\n styles,\n shadowOptions: {\n delegatesFocus: true\n }\n});\nconst dateRangePickerRegistries = [\n dateRangePickerDefinition(),\n ...buttonRegistries,\n ...popupRegistries,\n ...textFieldRegistries,\n ...dividerRegistries\n];\nconst registerDateRangePicker = registerFactory(\n dateRangePickerRegistries\n);\n\nexport { dateRangePickerRegistries as a, dateRangePickerDefinition as d, registerDateRangePicker as r };\n","import { F as FoundationElement, a as attr, o as observable, h as html, r as registerFactory } from './index.js';\nimport { a as iconRegistries } from './definition27.js';\nimport { E as Elevation, e as elevationRegistries } from './definition62.js';\nimport { A as Appearance } from './enums.js';\nimport { I as Icon } from './icon.js';\nimport { w as when } from './when.js';\nimport { s as slotted } from './slotted.js';\nimport { c as classNames } from './class-names.js';\n\nconst styles = \":host{display:flex}.base{border-radius:8px;inline-size:100%;text-align:start}.wrapper{display:flex;overflow:hidden;flex-flow:column;border-radius:inherit;block-size:100%;color:var(--vvd-color-canvas-text)}.main-content{display:flex;flex-flow:column;padding:24px}.header{display:flex;flex:1;align-items:flex-start;gap:8px}.header-content{flex:1}.header-wrapper{display:flex;gap:8px}.header-headline,.header-subtitle{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical}.header-headline{font:var(--vvd-typography-heading-4);-webkit-line-clamp:var(--headline-line-clamp)}.header-subtitle{font:var(--vvd-typography-base);-webkit-line-clamp:var(--subtitle-line-clamp)}.hide-header .header{display:none}.header-subtitle,.text{color:var(--vvd-color-neutral-600);font:var(--vvd-typography-base)}.text{padding-right:8px;margin-top:12px}.footer{display:inline-flex;flex-direction:column;align-items:flex-end;padding-bottom:24px;margin-top:auto;padding-inline:24px}.hide-footer .footer{display:none}::slotted([slot=graphic i]),.icon{flex-shrink:0;align-self:baseline;margin-block-start:4px}.icon{font-size:20px}::slotted([slot=meta i]){flex-shrink:0;align-self:flex-start;margin-block-start:-8px;margin-inline:auto -8px}\";\n\nvar __defProp = Object.defineProperty;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = void 0 ;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (decorator(target, key, result) ) || result;\n if (result)\n __defProp(target, key, result);\n return result;\n};\nclass Card extends FoundationElement {\n}\n__decorateClass([\n attr\n], Card.prototype, \"appearance\");\n__decorateClass([\n attr\n], Card.prototype, \"headline\");\n__decorateClass([\n attr\n], Card.prototype, \"subtitle\");\n__decorateClass([\n attr\n], Card.prototype, \"text\");\n__decorateClass([\n attr\n], Card.prototype, \"icon\");\n__decorateClass([\n attr\n], Card.prototype, \"elevation\");\n__decorateClass([\n observable\n], Card.prototype, \"footerSlottedContent\");\n__decorateClass([\n observable\n], Card.prototype, \"graphicSlottedContent\");\n__decorateClass([\n observable\n], Card.prototype, \"hasMetaSlottedContent\");\n\nconst getClasses = (_) => classNames(\n \"base\",\n [\"hide-footer\", !_.footerSlottedContent || !_.footerSlottedContent.length],\n [\"hide-header\", shouldHideHeader(_)]\n);\nfunction renderHeaderIcon(iconTag) {\n return html`\n\t\t<${iconTag} class=\"icon\" inline name=\"${(x) => x.icon}\">`;\n}\nfunction Headline() {\n return html`
${(x) => x.headline}
`;\n}\nfunction Subtitle() {\n return html`
${(x) => x.subtitle}
`;\n}\nfunction headerContent() {\n return html`\n\t\t
\n\t\t\t${when((x) => x.headline, Headline())}\n\t\t\t${when((x) => x.subtitle, Subtitle())}\n\t\t
\n\t`;\n}\nfunction renderHeader(iconTag) {\n return html`
\n\t\t${when((x) => x.icon, renderHeaderIcon(iconTag))}\n\t\t${when((x) => x.headline || x.subtitle, headerContent())}\n\t
`;\n}\nfunction shouldHideHeader(card) {\n return !card.headline && !card.subtitle && !card.icon && (!card.graphicSlottedContent || !card.graphicSlottedContent.length);\n}\nfunction renderMetaSlot() {\n return html` `;\n}\nfunction text() {\n return html`
${(x) => x.text}
`;\n}\nfunction renderCardContent(context) {\n const iconTag = context.tagFor(Icon);\n return html`\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t${renderHeader(iconTag)} ${renderMetaSlot()}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t${when((x) => x.text, text())}\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t`;\n}\nconst CardTemplate = (context) => {\n const elevationTag = context.tagFor(Elevation);\n return html`\n\t\t${when(\n (x) => x.appearance !== Appearance.Ghost && x.appearance !== Appearance.Outlined,\n html`\n\t\t\t<${elevationTag} dp=${(x) => x.elevation ?? \"4\"}>\n\t\t\t ${renderCardContent(context)}\n\t\t\t\n\t\t`\n )}\n\t\t${when(\n (x) => x.appearance === Appearance.Outlined,\n html`\n\t\t\t<${elevationTag} dp='0')}>\n\t\t\t ${renderCardContent(context)}\n\t\t\t\n\t\t`\n )}\n\t\t${when(\n (x) => x.appearance === Appearance.Ghost,\n html` ${renderCardContent(context)} `\n )}\n\t`;\n};\n\nconst cardDefinition = Card.compose({\n baseName: \"card\",\n template: CardTemplate,\n styles\n});\nconst cardRegistries = [\n cardDefinition(),\n ...iconRegistries,\n ...elevationRegistries\n];\nconst registerCard = registerFactory(cardRegistries);\n\nexport { cardRegistries as a, cardDefinition as c, registerCard as r };\n","import { v as volatile, r as registerFactory } from './index.js';\nimport { p as popupRegistries } from './definition63.js';\nimport { a as buttonRegistries } from './definition11.js';\nimport { a as textFieldRegistries } from './definition55.js';\nimport { a as dividerRegistries } from './definition22.js';\nimport { D as DatePickerBase, i as isValidDateStr, f as formatPresentationDate, p as parsePresentationDate, a as DatePickerBaseTemplate, s as styles } from './presentationDate.js';\nimport './affix.js';\nimport { e as errorText, f as formElements } from './index2.js';\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp(target, key, result);\n return result;\n};\nvar __accessCheck = (obj, member, msg) => {\n if (!member.has(obj))\n throw TypeError(\"Cannot \" + msg);\n};\nvar __privateAdd = (obj, member, value) => {\n if (member.has(obj))\n throw TypeError(\"Cannot add the same private member more than once\");\n member instanceof WeakSet ? member.add(obj) : member.set(obj, value);\n};\nvar __privateMethod = (obj, member, method) => {\n __accessCheck(obj, member, \"access private method\");\n return method;\n};\nvar _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn;\nlet DatePicker = class extends DatePickerBase {\n constructor() {\n super();\n __privateAdd(this, _updateValueDueToUserInteraction);\n /**\n * @internal\n */\n this._textFieldSize = \"20\";\n this.proxy.type = \"date\";\n }\n /**\n * @internal\n */\n valueChanged(previous, next) {\n super.valueChanged(previous, next);\n if (this.value) {\n if (!isValidDateStr(this.value)) {\n this.value = \"\";\n return;\n }\n this._presentationValue = formatPresentationDate(\n this.value,\n this.locale.datePicker\n );\n this._adjustSelectedMonthToEnsureVisibilityOf(this.value);\n } else {\n this._presentationValue = \"\";\n }\n }\n get _calendarButtonLabel() {\n if (this.value) {\n return this.locale.datePicker.changeDateLabel(\n formatPresentationDate(this.value, this.locale.datePicker)\n );\n } else {\n return this.locale.datePicker.chooseDateLabel;\n }\n }\n /**\n * @internal\n */\n get _textFieldPlaceholder() {\n return this.locale.datePicker.dateFormatPlaceholder;\n }\n /**\n * @internal\n */\n _onTextFieldChange() {\n if (this._presentationValue === \"\") {\n __privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, \"\");\n return;\n }\n try {\n __privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, parsePresentationDate(this._presentationValue, this.locale.datePicker));\n } catch (_) {\n return;\n }\n }\n /**\n * Handle selecting a date from the calendar.\n * @internal\n */\n _onDateClick(date) {\n __privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, date);\n this._closePopup();\n }\n /**\n * @internal\n */\n _isDateSelected(date) {\n return date === this.value;\n }\n /**\n * @internal\n */\n _isDateAriaSelected(date) {\n return this._isDateSelected(date);\n }\n /**\n * @internal\n */\n _getSelectedDates() {\n const dates = [];\n if (this.value) {\n dates.push(this.value);\n }\n return dates;\n }\n /**\n * @internal\n */\n _getCustomValidationError() {\n if (this._isPresentationValueInvalid()) {\n return this.locale.datePicker.invalidDateError;\n }\n return null;\n }\n /**\n * @internal\n */\n _isPresentationValueInvalid() {\n if (this._presentationValue === \"\") {\n return false;\n }\n try {\n parsePresentationDate(this._presentationValue, this.locale.datePicker);\n return false;\n } catch (_) {\n return true;\n }\n }\n /**\n * @internal\n */\n _onClearClick() {\n __privateMethod(this, _updateValueDueToUserInteraction, updateValueDueToUserInteraction_fn).call(this, \"\");\n super._onClearClick();\n }\n};\n_updateValueDueToUserInteraction = new WeakSet();\nupdateValueDueToUserInteraction_fn = function(newValue) {\n this.value = newValue;\n this.$emit(\"change\");\n this.$emit(\"input\");\n};\n__decorateClass([\n volatile\n], DatePicker.prototype, \"_calendarButtonLabel\", 1);\nDatePicker = __decorateClass([\n errorText,\n formElements\n], DatePicker);\n\nconst datePickerDefinition = DatePicker.compose({\n baseName: \"date-picker\",\n template: DatePickerBaseTemplate,\n styles,\n shadowOptions: {\n delegatesFocus: true\n }\n});\nconst datePickerRegistries = [\n datePickerDefinition(),\n ...buttonRegistries,\n ...popupRegistries,\n ...textFieldRegistries,\n ...dividerRegistries\n];\nconst registerDatePicker = registerFactory(datePickerRegistries);\n\nexport { datePickerRegistries as a, datePickerDefinition as d, registerDatePicker as r };\n"],"names":["_Combobox","FormAssociatedCombobox","F","constructor","super","arguments","this","proxy","document","createElement","Combobox$1","_value","filteredOptions","filter","forcedPosition","listboxId","u","maxHeight","open","formResetCallback","setDefaultSelectedOption","updateValue","validate","control","isAutocompleteInline","autocomplete","isAutocompleteBoth","isAutocompleteList","openChanged","ariaControls","ariaExpanded","setPositioning","focusAndScrollOptionIntoView","D","queueUpdate","focus","options","O","track","length","_options","value","notify","placeholderChanged","HTMLInputElement","placeholder","positionChanged","prev","next","positionAttribute","_a","_b","_c","$fastController","isConnected","selectedIndex","findIndex","el","text","toLowerCase","prevSelectedValue","nextSelectedValue","firstSelectedOption","valueChanged","clickHandler","e","disabled","captured","target","closest","selectedOptions","clearSelectionRange","connectedCallback","initialValue","disabledChanged","ariaDisabled","filterOptions","o","startsWith","forEach","hidden","includes","contains","activeElement","requestAnimationFrame","scrollIntoView","block","focusoutHandler","syncValue","focusTarget","relatedTarget","isSameNode","inputHandler","map","option","indexOf","inputType","setInlineSelection","keydownHandler","key","ctrlKey","shiftKey","setInputToSelection","preventDefault","keyupHandler","selectedIndexChanged","l","selectPreviousOption","getAttribute","selected","dirtyValue","setSelectedOptions","setSelectionRange","newValue","currentBox","getBoundingClientRect","availableBottom","window","innerHeight","bottom","position","top","S","above","below","selectedOptionsChanged","slottedOptionsChanged","shouldEmit","$emit","controlValueLength","_","a","attribute","mode","prototype","DelegatesARIACombobox","__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__decorateClass","decorators","kind","decorator","result","i","Combobox","fixedDropdown","_popup","anchor","_anchor","f","A","getStateClasses","label","appearance","c","Boolean","setFixedDropdownVarWidth","x","Math","round","width","renderInput","context","affixIconTemplate","h","r","w","ariaActiveDescendant","ariaAutoComplete","event","comboboxRegistries","compose","baseName","template","popupTag","tagFor","P","placement","s","slottedOptionFilter","flatten","property","styles","shadowOptions","delegatesFocus","p","registerCombobox","_Checkbox","FormAssociatedCheckbox","C","Checkbox$1","indeterminate","keypressHandler","readOnly","checked","setAttribute","readOnlyChanged","Checkbox","ariaLabel","tabindex","HTMLAnchorElement","checkedChanged","getClasses","connotation","errorValidationMessage","successText","slottedContent","checkboxRegistries","iconTag","I","required","g","checkboxDefinition","registerCheckbox","formatRange","from","to","formatPresentationDateRange","dateRange","locale","start","end","parsePresentationDateRange","presentationDateRange","fragments","trim","split","Error","fragment","_isInternalValueUpdate","_updateValues","updateValues_fn","_handleChangedValues","handleChangedValues_fn","_updateFormValue","updateFormValue_fn","_getVisibleRange","getVisibleRange_fn","__accessCheck","obj","member","msg","has","TypeError","__privateGet","getter","get","__privateAdd","WeakSet","add","set","__privateSet","setter","__privateMethod","method","isDefined","DateRangePicker","initialStart","initialEnd","setFormValue","state","isFormAssociatedTryingToSetFormValue","_numCalendars","_hideDatesOutsideMonth","_textFieldSize","initialStartChanged","initialEndChanged","startChanged","currentStart","call","endChanged","currentEnd","currentStartChanged","currentEndChanged","nameChanged","previous","_isDateAriaSelected","date","_isDateInSelectedRange","_isDateRangeStart","_isDateRangeEnd","_getSelectedDates","dates","push","_onDateClick","_closePopup","_textFieldPlaceholder","datePicker","dateFormatPlaceholder","_onTextFieldChange","_presentationValue","_onDateMouseEnter","_hoverDate","_onDateMouseLeave","_getCustomValidationError","_isPresentationValueInvalid","invalidDateRangeError","min","startDateAfterMinDateError","max","endDateBeforeMaxDateError","_onClearClick","_calendarButtonLabel","changeDatesLabel","chooseDatesLabel","WeakMap","range","dateToEnsureVisibilityOf","_adjustSelectedMonthToEnsureVisibilityOf","name","formData","FormData","append","candidates","isPartialRange","sort","v","dateRangePickerRegistries","dateRangePickerDefinition","registerDateRangePicker","Card","footerSlottedContent","card","headline","subtitle","icon","graphicSlottedContent","renderHeader","renderHeaderIcon","renderCardContent","cardRegistries","elevationTag","E","Ghost","Outlined","elevation","cardDefinition","registerCard","_updateValueDueToUserInteraction","updateValueDueToUserInteraction_fn","DatePicker","type","changeDateLabel","chooseDateLabel","_isDateSelected","invalidDateError","datePickerRegistries","datePickerDefinition","registerDatePicker"],"sourceRoot":""}