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MAAMmH,UAAgBkH,EACpB,kBAAA+B,GAC2B,eAArBzP,KAAK0P,YACP1P,KAAK0B,iBAAiB,UAAW1B,MAAK,GAEtCA,KAAK+B,oBAAoB,UAAW/B,MAAK,EAE7C,CAMA,GAA0B8H,GACxB,GAAI9H,KAAKuH,SACP,OAAO,EAGT,OADYO,EAAE5I,KAEZ,KAAK,IACE4I,EAAE6C,WACL7C,EAAE8C,iBACF5K,KAAK8K,oBAEP,MAEF,KAAK,EAAAG,EACEnD,EAAE6C,WACL7C,EAAE8C,iBACF5K,KAAK+K,wBAKb,CACA,qBAAA2B,CAAsBlD,EAAMC,GAC1BnI,MAAMoL,sBAAsBlD,EAAMC,GAClCzJ,MAAK,GACP,CACA,wBAAA2P,CAAyBpN,EAAMqN,EAAUC,GACvCvO,MAAMqO,yBAAyBpN,EAAMqN,EAAUC,GAClC,aAATtN,GACFvC,MAAK,GAET,CACA,KACEA,KAAKqH,QAAQqE,SAASoE,IACfA,EAAcvI,WACjBuI,EAAcvI,SAAWvH,KAAKuH,SAChC,GAEJ,EAEF/C,EAAgB,CACd,EAAA/E,GACC+G,EAAQ7G,UAAW,cACtB6E,EAAgB,CACd,EAAA/E,GACC+G,EAAQ7G,UAAW,eACtB6E,EAAgB,CACd,EAAA/E,GACC+G,EAAQ7G,UAAW,Q","sources":["webpack://frontend/./node_modules/@vonage/vivid/shared/index2.js","webpack://frontend/./node_modules/@vonage/vivid/shared/localized.js","webpack://frontend/./node_modules/@vonage/vivid/shared/key-codes.js","webpack://frontend/./node_modules/@vonage/vivid/shared/numbers.js","webpack://frontend/./node_modules/@vonage/vivid/shared/key-codes2.js","webpack://frontend/./node_modules/@vonage/vivid/shared/listbox.js"],"sourcesContent":["import { I as Icon } from './icon.js';\nimport { a as attr, o as observable, h as html } from './index.js';\nimport { s as slotted } from './slotted.js';\nimport { c as classNames } from './class-names.js';\nimport { w as when } from './when.js';\nimport enUS from '../locales/en-US.js';\n\nconst messageStyles = \".sr-only{position:absolute;overflow:hidden;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.message{display:none;contain:inline-size;font:var(--vvd-typography-base-condensed);gap:4px;grid-column:1/-1}.message--visible{display:flex}.message-text{color:var(--vvd-color-canvas-text)}.helper-message .message-text{color:var(--_low-ink-color)}.message-icon{font-size:16px}.success-message .message-icon{color:var(--vvd-color-success-500)}.error-message .message-icon{color:var(--vvd-color-alert-500)}\";\n\nvar __defProp$1 = Object.defineProperty;\nvar __decorateClass$1 = (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$1(target, key, result);\n return result;\n};\nclass FormElementHelperText {\n}\n__decorateClass$1([\n attr({ attribute: \"helper-text\" })\n], FormElementHelperText.prototype, \"helperText\");\n__decorateClass$1([\n observable\n], FormElementHelperText.prototype, \"_helperTextSlottedContent\");\nclass FormElementSuccessText {\n}\n__decorateClass$1([\n attr({ attribute: \"success-text\" })\n], FormElementSuccessText.prototype, \"successText\");\nclass FormElementCharCount {\n constructor() {\n this.charCount = false;\n }\n}\n__decorateClass$1([\n attr({\n attribute: \"char-count\",\n mode: \"boolean\"\n })\n], FormElementCharCount.prototype, \"charCount\");\nfunction formElements(constructor) {\n let currentPrototype = constructor.prototype;\n while (currentPrototype) {\n const parentPrototype = Object.getPrototypeOf(currentPrototype);\n if (currentPrototype.validate && !parentPrototype.validate) {\n currentPrototype.validate = function(anchor) {\n if (this.proxy instanceof HTMLElement && this.elementInternals) {\n const isValid = this.proxy.validity.valid;\n const controlIsInvalidDueToMinOrMaxLength = this.control && this.control.validity && !this.control.validity.valid && (this.control.validity.tooShort || this.control.validity.tooLong);\n if (isValid && controlIsInvalidDueToMinOrMaxLength) {\n this.setValidity(\n this.control.validity,\n this.control.validationMessage,\n anchor\n );\n } else {\n this.setValidity(\n this.proxy.validity,\n this.proxy.validationMessage,\n anchor\n );\n }\n }\n };\n break;\n }\n currentPrototype = parentPrototype;\n }\n class Decorated extends constructor {\n constructor(...args) {\n super(...args);\n this.errorValidationMessage = \"\";\n this.#forceErrorDisplay = false;\n this.#hasBeenTouched = false;\n this.#handleInvalidEvent = () => {\n this.#forceErrorDisplay = true;\n this.validate();\n };\n this.validate = () => {\n super.validate();\n const shouldShowValidationError = this.#forceErrorDisplay || this.#hasBeenTouched && this.dirtyValue;\n this.errorValidationMessage = shouldShowValidationError ? this.validationMessage : \"\";\n };\n this.addEventListener(\"blur\", () => {\n this.#hasBeenTouched = true;\n this.#forceErrorDisplay = false;\n this.validate();\n });\n this.addEventListener(\"focus\", () => {\n this.#hasBeenTouched = false;\n });\n this.addEventListener(\"invalid\", () => {\n this.proxy.dispatchEvent(new Event(\"invalid\"));\n });\n }\n #forceErrorDisplay;\n #hasBeenTouched;\n connectedCallback() {\n super.connectedCallback();\n this.proxy.addEventListener(\"invalid\", this.#handleInvalidEvent);\n }\n #handleInvalidEvent;\n disconnectedCallback() {\n super.disconnectedCallback();\n this.proxy.removeEventListener(\"invalid\", this.#handleInvalidEvent);\n }\n formResetCallback() {\n this.#forceErrorDisplay = false;\n super.formResetCallback();\n this.validate();\n }\n }\n __decorateClass$1([\n attr\n ], Decorated.prototype, \"label\");\n __decorateClass$1([\n observable\n ], Decorated.prototype, \"errorValidationMessage\");\n return Decorated;\n}\nconst feedback = {\n helper: {\n messageProperty: \"helperText\",\n className: \"helper\",\n slot: {\n name: \"helper-text\",\n slottedContentProperty: \"_helperTextSlottedContent\"\n },\n role: \"none\"\n },\n error: {\n messageProperty: \"errorValidationMessage\",\n className: \"error\",\n iconType: \"info-line\",\n role: \"status\"\n },\n success: {\n messageProperty: \"successText\",\n className: \"success\",\n iconType: \"check-circle-line\",\n role: \"none\"\n }\n};\nconst isFeedbackAvailable = (config, x) => Boolean(\n x[config.messageProperty] || config.slot && x[config.slot.slottedContentProperty]?.length\n);\nfunction getFeedbackTemplate(context) {\n return html`\n\t\t\n\t\t${getFeedbackTypeTemplate(\n context,\n feedback.helper,\n (x) => isFeedbackAvailable(feedback.helper, x) && !isFeedbackAvailable(feedback.error, x) && !isFeedbackAvailable(feedback.success, x)\n )}\n\t\t${getFeedbackTypeTemplate(\n context,\n feedback.error,\n (x) => isFeedbackAvailable(feedback.error, x) && !isFeedbackAvailable(feedback.success, x)\n )}\n\t\t${getFeedbackTypeTemplate(\n context,\n feedback.success,\n (x) => isFeedbackAvailable(feedback.success, x)\n )}\n\t`;\n}\nfunction getFeedbackTypeTemplate(context, config, shouldShow) {\n const iconTag = context.tagFor(Icon);\n const messageTemplate = html`${(x) => x[config.messageProperty]}`;\n const innerTemplate = config.slot ? html`${messageTemplate}` : messageTemplate;\n return html` classNames(\n \"message\",\n `${config.className}-message`,\n [\"message--visible\", config.role === \"status\" || shouldShow(x)],\n [\"sr-only\", !shouldShow(x)]\n )}\"\n\t\trole=\"${config.role}\"\n\t\taria-atomic=\"false\"\n\t>\n\t\t${when(\n (x) => shouldShow(x) && config.iconType,\n html`<${iconTag} class=\"message-icon\" name=\"${config.iconType}\">`\n )}\n\t\t${innerTemplate}\n\t`;\n}\nfunction errorText(constructor) {\n class Decorated extends constructor {\n #blockValidateCalls = false;\n constructor(...args) {\n super(...args);\n this._validate = this.validate;\n this.validate = () => {\n if (!this.#blockValidateCalls)\n this._validate();\n };\n }\n errorTextChanged(_, newErrorText) {\n if (newErrorText) {\n this.#forceCustomError(newErrorText);\n } else {\n this.#clearCustomErrorAndRevalidate();\n }\n }\n #forceCustomError(errorMessage) {\n this.setValidity({ customError: true }, errorMessage, this.control);\n this.errorValidationMessage = errorMessage;\n this.#blockValidateCalls = true;\n }\n #clearCustomErrorAndRevalidate() {\n this.setValidity({ customError: false }, \"\", this.control);\n this.#blockValidateCalls = false;\n this.validate();\n }\n }\n __decorateClass$1([\n attr({ attribute: \"error-text\" })\n ], Decorated.prototype, \"errorText\");\n return Decorated;\n}\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 CurrentLocale {\n constructor() {\n this.locale = enUS;\n }\n}\n__decorateClass([\n observable\n], CurrentLocale.prototype, \"locale\");\nconst currentLocale = new CurrentLocale();\nconst setLocale = (locale) => {\n currentLocale.locale = locale;\n};\n\nexport { FormElementSuccessText as F, FormElementHelperText as a, FormElementCharCount as b, currentLocale as c, errorText as e, formElements as f, getFeedbackTemplate as g, setLocale as s };\n","import { c as currentLocale } from './index2.js';\n\nclass Localized {\n get locale() {\n return currentLocale.locale;\n }\n}\n\nexport { Localized as L };\n","/**\n * Key Code values\n * @deprecated - KeyCodes are deprecated, use individual string key exports\n */\nvar KeyCodes;\n(function (KeyCodes) {\n KeyCodes[KeyCodes[\"alt\"] = 18] = \"alt\";\n KeyCodes[KeyCodes[\"arrowDown\"] = 40] = \"arrowDown\";\n KeyCodes[KeyCodes[\"arrowLeft\"] = 37] = \"arrowLeft\";\n KeyCodes[KeyCodes[\"arrowRight\"] = 39] = \"arrowRight\";\n KeyCodes[KeyCodes[\"arrowUp\"] = 38] = \"arrowUp\";\n KeyCodes[KeyCodes[\"back\"] = 8] = \"back\";\n KeyCodes[KeyCodes[\"backSlash\"] = 220] = \"backSlash\";\n KeyCodes[KeyCodes[\"break\"] = 19] = \"break\";\n KeyCodes[KeyCodes[\"capsLock\"] = 20] = \"capsLock\";\n KeyCodes[KeyCodes[\"closeBracket\"] = 221] = \"closeBracket\";\n KeyCodes[KeyCodes[\"colon\"] = 186] = \"colon\";\n KeyCodes[KeyCodes[\"colon2\"] = 59] = \"colon2\";\n KeyCodes[KeyCodes[\"comma\"] = 188] = \"comma\";\n KeyCodes[KeyCodes[\"ctrl\"] = 17] = \"ctrl\";\n KeyCodes[KeyCodes[\"delete\"] = 46] = \"delete\";\n KeyCodes[KeyCodes[\"end\"] = 35] = \"end\";\n KeyCodes[KeyCodes[\"enter\"] = 13] = \"enter\";\n KeyCodes[KeyCodes[\"equals\"] = 187] = \"equals\";\n KeyCodes[KeyCodes[\"equals2\"] = 61] = \"equals2\";\n KeyCodes[KeyCodes[\"equals3\"] = 107] = \"equals3\";\n KeyCodes[KeyCodes[\"escape\"] = 27] = \"escape\";\n KeyCodes[KeyCodes[\"forwardSlash\"] = 191] = \"forwardSlash\";\n KeyCodes[KeyCodes[\"function1\"] = 112] = \"function1\";\n KeyCodes[KeyCodes[\"function10\"] = 121] = \"function10\";\n KeyCodes[KeyCodes[\"function11\"] = 122] = \"function11\";\n KeyCodes[KeyCodes[\"function12\"] = 123] = \"function12\";\n KeyCodes[KeyCodes[\"function2\"] = 113] = \"function2\";\n KeyCodes[KeyCodes[\"function3\"] = 114] = \"function3\";\n KeyCodes[KeyCodes[\"function4\"] = 115] = \"function4\";\n KeyCodes[KeyCodes[\"function5\"] = 116] = \"function5\";\n KeyCodes[KeyCodes[\"function6\"] = 117] = \"function6\";\n KeyCodes[KeyCodes[\"function7\"] = 118] = \"function7\";\n KeyCodes[KeyCodes[\"function8\"] = 119] = \"function8\";\n KeyCodes[KeyCodes[\"function9\"] = 120] = \"function9\";\n KeyCodes[KeyCodes[\"home\"] = 36] = \"home\";\n KeyCodes[KeyCodes[\"insert\"] = 45] = \"insert\";\n KeyCodes[KeyCodes[\"menu\"] = 93] = \"menu\";\n KeyCodes[KeyCodes[\"minus\"] = 189] = \"minus\";\n KeyCodes[KeyCodes[\"minus2\"] = 109] = \"minus2\";\n KeyCodes[KeyCodes[\"numLock\"] = 144] = \"numLock\";\n KeyCodes[KeyCodes[\"numPad0\"] = 96] = \"numPad0\";\n KeyCodes[KeyCodes[\"numPad1\"] = 97] = \"numPad1\";\n KeyCodes[KeyCodes[\"numPad2\"] = 98] = \"numPad2\";\n KeyCodes[KeyCodes[\"numPad3\"] = 99] = \"numPad3\";\n KeyCodes[KeyCodes[\"numPad4\"] = 100] = \"numPad4\";\n KeyCodes[KeyCodes[\"numPad5\"] = 101] = \"numPad5\";\n KeyCodes[KeyCodes[\"numPad6\"] = 102] = \"numPad6\";\n KeyCodes[KeyCodes[\"numPad7\"] = 103] = \"numPad7\";\n KeyCodes[KeyCodes[\"numPad8\"] = 104] = \"numPad8\";\n KeyCodes[KeyCodes[\"numPad9\"] = 105] = \"numPad9\";\n KeyCodes[KeyCodes[\"numPadDivide\"] = 111] = \"numPadDivide\";\n KeyCodes[KeyCodes[\"numPadDot\"] = 110] = \"numPadDot\";\n KeyCodes[KeyCodes[\"numPadMinus\"] = 109] = \"numPadMinus\";\n KeyCodes[KeyCodes[\"numPadMultiply\"] = 106] = \"numPadMultiply\";\n KeyCodes[KeyCodes[\"numPadPlus\"] = 107] = \"numPadPlus\";\n KeyCodes[KeyCodes[\"openBracket\"] = 219] = \"openBracket\";\n KeyCodes[KeyCodes[\"pageDown\"] = 34] = \"pageDown\";\n KeyCodes[KeyCodes[\"pageUp\"] = 33] = \"pageUp\";\n KeyCodes[KeyCodes[\"period\"] = 190] = \"period\";\n KeyCodes[KeyCodes[\"print\"] = 44] = \"print\";\n KeyCodes[KeyCodes[\"quote\"] = 222] = \"quote\";\n KeyCodes[KeyCodes[\"scrollLock\"] = 145] = \"scrollLock\";\n KeyCodes[KeyCodes[\"shift\"] = 16] = \"shift\";\n KeyCodes[KeyCodes[\"space\"] = 32] = \"space\";\n KeyCodes[KeyCodes[\"tab\"] = 9] = \"tab\";\n KeyCodes[KeyCodes[\"tilde\"] = 192] = \"tilde\";\n KeyCodes[KeyCodes[\"windowsLeft\"] = 91] = \"windowsLeft\";\n KeyCodes[KeyCodes[\"windowsOpera\"] = 219] = \"windowsOpera\";\n KeyCodes[KeyCodes[\"windowsRight\"] = 92] = \"windowsRight\";\n})(KeyCodes || (KeyCodes = {}));\n/**\n * String values for use with KeyboardEvent.key\n */\nconst keyArrowDown = \"ArrowDown\";\nconst keyArrowLeft = \"ArrowLeft\";\nconst keyArrowRight = \"ArrowRight\";\nconst keyArrowUp = \"ArrowUp\";\nconst keyEnter = \"Enter\";\nconst keyEscape = \"Escape\";\nconst keyHome = \"Home\";\nconst keyEnd = \"End\";\nconst keyFunction2 = \"F2\";\nconst keyPageDown = \"PageDown\";\nconst keyPageUp = \"PageUp\";\nconst keySpace = \" \";\nconst keyTab = \"Tab\";\nconst ArrowKeys = {\n ArrowDown: keyArrowDown,\n ArrowLeft: keyArrowLeft,\n ArrowRight: keyArrowRight,\n ArrowUp: keyArrowUp,\n};\n\nexport { ArrowKeys as A, keySpace as a, keyEscape as b, keyTab as c, keyEnd as d, keyArrowUp as e, keyArrowDown as f, keyHome as g, keyArrowRight as h, keyArrowLeft as i, keyPageDown as j, keyEnter as k, keyPageUp as l, keyFunction2 as m };\n","/**\n * This method keeps a given value within the bounds of a min and max value. If the value\n * is larger than the max, the minimum value will be returned. If the value is smaller than the minimum,\n * the maximum will be returned. Otherwise, the value is returned un-changed.\n */\nfunction wrapInBounds(min, max, value) {\n if (value < min) {\n return max;\n }\n else if (value > max) {\n return min;\n }\n return value;\n}\n/**\n * Ensures that a value is between a min and max value. If value is lower than min, min will be returned.\n * If value is greater than max, max will be returned.\n */\nfunction limit(min, max, value) {\n return Math.min(Math.max(value, min), max);\n}\n/**\n * Determines if a number value is within a specified range.\n *\n * @param value - the value to check\n * @param min - the range start\n * @param max - the range end\n */\nfunction inRange(value, min, max = 0) {\n [min, max] = [min, max].sort((a, b) => a - b);\n return min <= value && value < max;\n}\n\nexport { inRange as i, limit as l, wrapInBounds as w };\n","/**\n * String values for use with KeyboardEvent.key\n */\nconst keyArrowDown = \"ArrowDown\";\nconst keyArrowLeft = \"ArrowLeft\";\nconst keyArrowRight = \"ArrowRight\";\nconst keyArrowUp = \"ArrowUp\";\nconst keyEnd = \"End\";\nconst keyEnter = \"Enter\";\nconst keyHome = \"Home\";\nconst keySpace = \" \";\n\nexport { keyArrowRight as a, keyEnter as b, keyArrowDown as c, keyArrowUp as d, keyHome as e, keyEnd as f, keySpace as g, keyArrowLeft as k };\n","import { k as keyArrowLeft, a as keyArrowRight } from './key-codes2.js';\nimport { F as FoundationElement, O as Observable, _ as __decorate, a as attr, o as observable, D as DOM, n as nullableNumberConverter } from './index.js';\nimport { i as isListboxOption } from './definition36.js';\nimport { A as ARIAGlobalStatesAndProperties } from './aria-global.js';\nimport { a as applyMixins } from './apply-mixins.js';\nimport { a as keySpace, b as keyEscape, k as keyEnter, c as keyTab, d as keyEnd, e as keyArrowUp, f as keyArrowDown, g as keyHome } from './key-codes.js';\nimport { u as uniqueId } from './strings.js';\nimport { i as inRange } from './numbers.js';\n\n/**\n * Returns the index of the last element in the array where predicate is true, and -1 otherwise.\n *\n * @param array - the array to test\n * @param predicate - find calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLastIndex immediately returns that element index. Otherwise, findIndex returns -1.\n */\nfunction findLastIndex(array, predicate) {\n let k = array.length;\n while (k--) {\n if (predicate(array[k], k, array)) {\n return k;\n }\n }\n return -1;\n}\n\n/**\n * A Listbox Custom HTML Element.\n * Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#listbox | ARIA listbox }.\n *\n * @slot - The default slot for the listbox options\n *\n * @public\n */\nlet Listbox$1 = class Listbox extends FoundationElement {\n constructor() {\n super(...arguments);\n /**\n * The internal unfiltered list of selectable options.\n *\n * @internal\n */\n this._options = [];\n /**\n * The index of the selected option.\n *\n * @public\n */\n this.selectedIndex = -1;\n /**\n * A collection of the selected options.\n *\n * @public\n */\n this.selectedOptions = [];\n /**\n * A standard `click` event creates a `focus` event before firing, so a\n * `mousedown` event is used to skip that initial focus.\n *\n * @internal\n */\n this.shouldSkipFocus = false;\n /**\n * The current typeahead buffer string.\n *\n * @internal\n */\n this.typeaheadBuffer = \"\";\n /**\n * Flag for the typeahead timeout expiration.\n *\n * @internal\n */\n this.typeaheadExpired = true;\n /**\n * The timeout ID for the typeahead handler.\n *\n * @internal\n */\n this.typeaheadTimeout = -1;\n }\n /**\n * The first selected option.\n *\n * @internal\n */\n get firstSelectedOption() {\n var _a;\n return (_a = this.selectedOptions[0]) !== null && _a !== void 0 ? _a : null;\n }\n /**\n * Returns true if there is one or more selectable option.\n *\n * @internal\n */\n get hasSelectableOptions() {\n return this.options.length > 0 && !this.options.every(o => o.disabled);\n }\n /**\n * The number of options.\n *\n * @public\n */\n get length() {\n var _a, _b;\n return (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;\n }\n /**\n * The list of options.\n *\n * @public\n */\n get options() {\n Observable.track(this, \"options\");\n return this._options;\n }\n set options(value) {\n this._options = value;\n Observable.notify(this, \"options\");\n }\n /**\n * Flag for the typeahead timeout expiration.\n *\n * @deprecated use `Listbox.typeaheadExpired`\n * @internal\n */\n get typeAheadExpired() {\n return this.typeaheadExpired;\n }\n set typeAheadExpired(value) {\n this.typeaheadExpired = value;\n }\n /**\n * Handle click events for listbox options.\n *\n * @internal\n */\n clickHandler(e) {\n const captured = e.target.closest(`option,[role=option]`);\n if (captured && !captured.disabled) {\n this.selectedIndex = this.options.indexOf(captured);\n return true;\n }\n }\n /**\n * Ensures that the provided option is focused and scrolled into view.\n *\n * @param optionToFocus - The option to focus\n * @internal\n */\n focusAndScrollOptionIntoView(optionToFocus = this.firstSelectedOption) {\n // To ensure that the browser handles both `focus()` and `scrollIntoView()`, the\n // timing here needs to guarantee that they happen on different frames. Since this\n // function is typically called from the `openChanged` observer, `DOM.queueUpdate`\n // causes the calls to be grouped into the same frame. To prevent this,\n // `requestAnimationFrame` is used instead of `DOM.queueUpdate`.\n if (this.contains(document.activeElement) && optionToFocus !== null) {\n optionToFocus.focus();\n requestAnimationFrame(() => {\n optionToFocus.scrollIntoView({ block: \"nearest\" });\n });\n }\n }\n /**\n * Handles `focusin` actions for the component. When the component receives focus,\n * the list of selected options is refreshed and the first selected option is scrolled\n * into view.\n *\n * @internal\n */\n focusinHandler(e) {\n if (!this.shouldSkipFocus && e.target === e.currentTarget) {\n this.setSelectedOptions();\n this.focusAndScrollOptionIntoView();\n }\n this.shouldSkipFocus = false;\n }\n /**\n * Returns the options which match the current typeahead buffer.\n *\n * @internal\n */\n getTypeaheadMatches() {\n const pattern = this.typeaheadBuffer.replace(/[.*+\\-?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n const re = new RegExp(`^${pattern}`, \"gi\");\n return this.options.filter((o) => o.text.trim().match(re));\n }\n /**\n * Determines the index of the next option which is selectable, if any.\n *\n * @param prev - the previous selected index\n * @param next - the next index to select\n *\n * @internal\n */\n getSelectableIndex(prev = this.selectedIndex, next) {\n const direction = prev > next ? -1 : prev < next ? 1 : 0;\n const potentialDirection = prev + direction;\n let nextSelectableOption = null;\n switch (direction) {\n case -1: {\n nextSelectableOption = this.options.reduceRight((nextSelectableOption, thisOption, index) => !nextSelectableOption &&\n !thisOption.disabled &&\n index < potentialDirection\n ? thisOption\n : nextSelectableOption, nextSelectableOption);\n break;\n }\n case 1: {\n nextSelectableOption = this.options.reduce((nextSelectableOption, thisOption, index) => !nextSelectableOption &&\n !thisOption.disabled &&\n index > potentialDirection\n ? thisOption\n : nextSelectableOption, nextSelectableOption);\n break;\n }\n }\n return this.options.indexOf(nextSelectableOption);\n }\n /**\n * Handles external changes to child options.\n *\n * @param source - the source object\n * @param propertyName - the property\n *\n * @internal\n */\n handleChange(source, propertyName) {\n switch (propertyName) {\n case \"selected\": {\n if (Listbox.slottedOptionFilter(source)) {\n this.selectedIndex = this.options.indexOf(source);\n }\n this.setSelectedOptions();\n break;\n }\n }\n }\n /**\n * Moves focus to an option whose label matches characters typed by the user.\n * Consecutive keystrokes are batched into a buffer of search text used\n * to match against the set of options. If `TYPE_AHEAD_TIMEOUT_MS` passes\n * between consecutive keystrokes, the search restarts.\n *\n * @param key - the key to be evaluated\n *\n * @internal\n */\n handleTypeAhead(key) {\n if (this.typeaheadTimeout) {\n window.clearTimeout(this.typeaheadTimeout);\n }\n this.typeaheadTimeout = window.setTimeout(() => (this.typeaheadExpired = true), Listbox.TYPE_AHEAD_TIMEOUT_MS);\n if (key.length > 1) {\n return;\n }\n this.typeaheadBuffer = `${this.typeaheadExpired ? \"\" : this.typeaheadBuffer}${key}`;\n }\n /**\n * Handles `keydown` actions for listbox navigation and typeahead.\n *\n * @internal\n */\n keydownHandler(e) {\n if (this.disabled) {\n return true;\n }\n this.shouldSkipFocus = false;\n const key = e.key;\n switch (key) {\n // Select the first available option\n case keyHome: {\n if (!e.shiftKey) {\n e.preventDefault();\n this.selectFirstOption();\n }\n break;\n }\n // Select the next selectable option\n case keyArrowDown: {\n if (!e.shiftKey) {\n e.preventDefault();\n this.selectNextOption();\n }\n break;\n }\n // Select the previous selectable option\n case keyArrowUp: {\n if (!e.shiftKey) {\n e.preventDefault();\n this.selectPreviousOption();\n }\n break;\n }\n // Select the last available option\n case keyEnd: {\n e.preventDefault();\n this.selectLastOption();\n break;\n }\n case keyTab: {\n this.focusAndScrollOptionIntoView();\n return true;\n }\n case keyEnter:\n case keyEscape: {\n return true;\n }\n case keySpace: {\n if (this.typeaheadExpired) {\n return true;\n }\n }\n // Send key to Typeahead handler\n default: {\n if (key.length === 1) {\n this.handleTypeAhead(`${key}`);\n }\n return true;\n }\n }\n }\n /**\n * Prevents `focusin` events from firing before `click` events when the\n * element is unfocused.\n *\n * @internal\n */\n mousedownHandler(e) {\n this.shouldSkipFocus = !this.contains(document.activeElement);\n return true;\n }\n /**\n * Switches between single-selection and multi-selection mode.\n *\n * @param prev - the previous value of the `multiple` attribute\n * @param next - the next value of the `multiple` attribute\n *\n * @internal\n */\n multipleChanged(prev, next) {\n this.ariaMultiSelectable = next ? \"true\" : null;\n }\n /**\n * Updates the list of selected options when the `selectedIndex` changes.\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 var _a;\n if (!this.hasSelectableOptions) {\n this.selectedIndex = -1;\n return;\n }\n if (((_a = this.options[this.selectedIndex]) === null || _a === void 0 ? void 0 : _a.disabled) && typeof prev === \"number\") {\n const selectableIndex = this.getSelectableIndex(prev, next);\n const newNext = selectableIndex > -1 ? selectableIndex : prev;\n this.selectedIndex = newNext;\n if (next === newNext) {\n this.selectedIndexChanged(next, newNext);\n }\n return;\n }\n this.setSelectedOptions();\n }\n /**\n * Updates the selectedness of each option when the list of selected options changes.\n *\n * @param prev - the previous list of selected options\n * @param next - the current list of selected options\n *\n * @internal\n */\n selectedOptionsChanged(prev, next) {\n var _a;\n const filteredNext = next.filter(Listbox.slottedOptionFilter);\n (_a = this.options) === null || _a === void 0 ? void 0 : _a.forEach(o => {\n const notifier = Observable.getNotifier(o);\n notifier.unsubscribe(this, \"selected\");\n o.selected = filteredNext.includes(o);\n notifier.subscribe(this, \"selected\");\n });\n }\n /**\n * Moves focus to the first selectable option.\n *\n * @public\n */\n selectFirstOption() {\n var _a, _b;\n if (!this.disabled) {\n this.selectedIndex = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.findIndex(o => !o.disabled)) !== null && _b !== void 0 ? _b : -1;\n }\n }\n /**\n * Moves focus to the last selectable option.\n *\n * @internal\n */\n selectLastOption() {\n if (!this.disabled) {\n this.selectedIndex = findLastIndex(this.options, o => !o.disabled);\n }\n }\n /**\n * Moves focus to the next selectable option.\n *\n * @internal\n */\n selectNextOption() {\n if (!this.disabled && this.selectedIndex < this.options.length - 1) {\n this.selectedIndex += 1;\n }\n }\n /**\n * Moves focus to the previous selectable option.\n *\n * @internal\n */\n selectPreviousOption() {\n if (!this.disabled && this.selectedIndex > 0) {\n this.selectedIndex = this.selectedIndex - 1;\n }\n }\n /**\n * Updates the selected index to match the first selected option.\n *\n * @internal\n */\n setDefaultSelectedOption() {\n var _a, _b;\n this.selectedIndex = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.findIndex(el => el.defaultSelected)) !== null && _b !== void 0 ? _b : -1;\n }\n /**\n * Sets an option as selected and gives it focus.\n *\n * @public\n */\n setSelectedOptions() {\n var _a, _b, _c;\n if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) {\n this.selectedOptions = [this.options[this.selectedIndex]];\n this.ariaActiveDescendant = (_c = (_b = this.firstSelectedOption) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : \"\";\n this.focusAndScrollOptionIntoView();\n }\n }\n /**\n * Updates the list of options and resets the selected option when the slotted option content changes.\n *\n * @param prev - the previous list of slotted options\n * @param next - the current list of slotted options\n *\n * @internal\n */\n slottedOptionsChanged(prev, next) {\n this.options = next.reduce((options, item) => {\n if (isListboxOption(item)) {\n options.push(item);\n }\n return options;\n }, []);\n const setSize = `${this.options.length}`;\n this.options.forEach((option, index) => {\n if (!option.id) {\n option.id = uniqueId(\"option-\");\n }\n option.ariaPosInSet = `${index + 1}`;\n option.ariaSetSize = setSize;\n });\n if (this.$fastController.isConnected) {\n this.setSelectedOptions();\n this.setDefaultSelectedOption();\n }\n }\n /**\n * Updates the filtered list of options when the typeahead buffer changes.\n *\n * @param prev - the previous typeahead buffer value\n * @param next - the current typeahead buffer value\n *\n * @internal\n */\n typeaheadBufferChanged(prev, next) {\n if (this.$fastController.isConnected) {\n const typeaheadMatches = this.getTypeaheadMatches();\n if (typeaheadMatches.length) {\n const selectedIndex = this.options.indexOf(typeaheadMatches[0]);\n if (selectedIndex > -1) {\n this.selectedIndex = selectedIndex;\n }\n }\n this.typeaheadExpired = false;\n }\n }\n};\n/**\n * A static filter to include only selectable options.\n *\n * @param n - element to filter\n * @public\n */\nListbox$1.slottedOptionFilter = (n) => isListboxOption(n) && !n.hidden;\n/**\n * Typeahead timeout in milliseconds.\n *\n * @internal\n */\nListbox$1.TYPE_AHEAD_TIMEOUT_MS = 1000;\n__decorate([\n attr({ mode: \"boolean\" })\n], Listbox$1.prototype, \"disabled\", void 0);\n__decorate([\n observable\n], Listbox$1.prototype, \"selectedIndex\", void 0);\n__decorate([\n observable\n], Listbox$1.prototype, \"selectedOptions\", void 0);\n__decorate([\n observable\n], Listbox$1.prototype, \"slottedOptions\", void 0);\n__decorate([\n observable\n], Listbox$1.prototype, \"typeaheadBuffer\", void 0);\n/**\n * Includes ARIA states and properties relating to the ARIA listbox role\n *\n * @public\n */\nclass DelegatesARIAListbox {\n}\n__decorate([\n observable\n], DelegatesARIAListbox.prototype, \"ariaActiveDescendant\", void 0);\n__decorate([\n observable\n], DelegatesARIAListbox.prototype, \"ariaDisabled\", void 0);\n__decorate([\n observable\n], DelegatesARIAListbox.prototype, \"ariaExpanded\", void 0);\n__decorate([\n observable\n], DelegatesARIAListbox.prototype, \"ariaMultiSelectable\", void 0);\napplyMixins(DelegatesARIAListbox, ARIAGlobalStatesAndProperties);\napplyMixins(Listbox$1, DelegatesARIAListbox);\n\n/**\n * A Listbox Custom HTML Element.\n * Implements the {@link https://w3c.github.io/aria/#listbox | ARIA listbox }.\n *\n * @public\n */\nclass ListboxElement extends Listbox$1 {\n constructor() {\n super(...arguments);\n /**\n * The index of the most recently checked option.\n *\n * @internal\n * @remarks\n * Multiple-selection mode only.\n */\n this.activeIndex = -1;\n /**\n * The start index when checking a range of options.\n *\n * @internal\n */\n this.rangeStartIndex = -1;\n }\n /**\n * Returns the last checked option.\n *\n * @internal\n */\n get activeOption() {\n return this.options[this.activeIndex];\n }\n /**\n * Returns the list of checked options.\n *\n * @internal\n */\n get checkedOptions() {\n var _a;\n return (_a = this.options) === null || _a === void 0 ? void 0 : _a.filter(o => o.checked);\n }\n /**\n * Returns the index of the first selected option.\n *\n * @internal\n */\n get firstSelectedOptionIndex() {\n return this.options.indexOf(this.firstSelectedOption);\n }\n /**\n * Updates the `ariaActiveDescendant` property when the active index changes.\n *\n * @param prev - the previous active index\n * @param next - the next active index\n *\n * @internal\n */\n activeIndexChanged(prev, next) {\n var _a, _b;\n this.ariaActiveDescendant = (_b = (_a = this.options[next]) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : \"\";\n this.focusAndScrollOptionIntoView();\n }\n /**\n * Toggles the checked state for the currently active option.\n *\n * @remarks\n * Multiple-selection mode only.\n *\n * @internal\n */\n checkActiveIndex() {\n if (!this.multiple) {\n return;\n }\n const activeItem = this.activeOption;\n if (activeItem) {\n activeItem.checked = true;\n }\n }\n /**\n * Sets the active index to the first option and marks it as checked.\n *\n * @remarks\n * Multi-selection mode only.\n *\n * @param preserveChecked - mark all options unchecked before changing the active index\n *\n * @internal\n */\n checkFirstOption(preserveChecked = false) {\n if (preserveChecked) {\n if (this.rangeStartIndex === -1) {\n this.rangeStartIndex = this.activeIndex + 1;\n }\n this.options.forEach((o, i) => {\n o.checked = inRange(i, this.rangeStartIndex);\n });\n }\n else {\n this.uncheckAllOptions();\n }\n this.activeIndex = 0;\n this.checkActiveIndex();\n }\n /**\n * Decrements the active index and sets the matching option as checked.\n *\n * @remarks\n * Multi-selection mode only.\n *\n * @param preserveChecked - mark all options unchecked before changing the active index\n *\n * @internal\n */\n checkLastOption(preserveChecked = false) {\n if (preserveChecked) {\n if (this.rangeStartIndex === -1) {\n this.rangeStartIndex = this.activeIndex;\n }\n this.options.forEach((o, i) => {\n o.checked = inRange(i, this.rangeStartIndex, this.options.length);\n });\n }\n else {\n this.uncheckAllOptions();\n }\n this.activeIndex = this.options.length - 1;\n this.checkActiveIndex();\n }\n /**\n * @override\n * @internal\n */\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener(\"focusout\", this.focusoutHandler);\n }\n /**\n * @override\n * @internal\n */\n disconnectedCallback() {\n this.removeEventListener(\"focusout\", this.focusoutHandler);\n super.disconnectedCallback();\n }\n /**\n * Increments the active index and marks the matching option as checked.\n *\n * @remarks\n * Multiple-selection mode only.\n *\n * @param preserveChecked - mark all options unchecked before changing the active index\n *\n * @internal\n */\n checkNextOption(preserveChecked = false) {\n if (preserveChecked) {\n if (this.rangeStartIndex === -1) {\n this.rangeStartIndex = this.activeIndex;\n }\n this.options.forEach((o, i) => {\n o.checked = inRange(i, this.rangeStartIndex, this.activeIndex + 1);\n });\n }\n else {\n this.uncheckAllOptions();\n }\n this.activeIndex += this.activeIndex < this.options.length - 1 ? 1 : 0;\n this.checkActiveIndex();\n }\n /**\n * Decrements the active index and marks the matching option as checked.\n *\n * @remarks\n * Multiple-selection mode only.\n *\n * @param preserveChecked - mark all options unchecked before changing the active index\n *\n * @internal\n */\n checkPreviousOption(preserveChecked = false) {\n if (preserveChecked) {\n if (this.rangeStartIndex === -1) {\n this.rangeStartIndex = this.activeIndex;\n }\n if (this.checkedOptions.length === 1) {\n this.rangeStartIndex += 1;\n }\n this.options.forEach((o, i) => {\n o.checked = inRange(i, this.activeIndex, this.rangeStartIndex);\n });\n }\n else {\n this.uncheckAllOptions();\n }\n this.activeIndex -= this.activeIndex > 0 ? 1 : 0;\n this.checkActiveIndex();\n }\n /**\n * Handles click events for listbox options.\n *\n * @param e - the event object\n *\n * @override\n * @internal\n */\n clickHandler(e) {\n var _a;\n if (!this.multiple) {\n return super.clickHandler(e);\n }\n const captured = (_a = e.target) === null || _a === void 0 ? void 0 : _a.closest(`[role=option]`);\n if (!captured || captured.disabled) {\n return;\n }\n this.uncheckAllOptions();\n this.activeIndex = this.options.indexOf(captured);\n this.checkActiveIndex();\n this.toggleSelectedForAllCheckedOptions();\n return true;\n }\n /**\n * @override\n * @internal\n */\n focusAndScrollOptionIntoView() {\n super.focusAndScrollOptionIntoView(this.activeOption);\n }\n /**\n * In multiple-selection mode:\n * If any options are selected, the first selected option is checked when\n * the listbox receives focus. If no options are selected, the first\n * selectable option is checked.\n *\n * @override\n * @internal\n */\n focusinHandler(e) {\n if (!this.multiple) {\n return super.focusinHandler(e);\n }\n if (!this.shouldSkipFocus && e.target === e.currentTarget) {\n this.uncheckAllOptions();\n if (this.activeIndex === -1) {\n this.activeIndex =\n this.firstSelectedOptionIndex !== -1\n ? this.firstSelectedOptionIndex\n : 0;\n }\n this.checkActiveIndex();\n this.setSelectedOptions();\n this.focusAndScrollOptionIntoView();\n }\n this.shouldSkipFocus = false;\n }\n /**\n * Unchecks all options when the listbox loses focus.\n *\n * @internal\n */\n focusoutHandler(e) {\n if (this.multiple) {\n this.uncheckAllOptions();\n }\n }\n /**\n * Handles keydown actions for listbox navigation and typeahead\n *\n * @override\n * @internal\n */\n keydownHandler(e) {\n if (!this.multiple) {\n return super.keydownHandler(e);\n }\n if (this.disabled) {\n return true;\n }\n const { key, shiftKey } = e;\n this.shouldSkipFocus = false;\n switch (key) {\n // Select the first available option\n case keyHome: {\n this.checkFirstOption(shiftKey);\n return;\n }\n // Select the next selectable option\n case keyArrowDown: {\n this.checkNextOption(shiftKey);\n return;\n }\n // Select the previous selectable option\n case keyArrowUp: {\n this.checkPreviousOption(shiftKey);\n return;\n }\n // Select the last available option\n case keyEnd: {\n this.checkLastOption(shiftKey);\n return;\n }\n case keyTab: {\n this.focusAndScrollOptionIntoView();\n return true;\n }\n case keyEscape: {\n this.uncheckAllOptions();\n this.checkActiveIndex();\n return true;\n }\n case keySpace: {\n e.preventDefault();\n if (this.typeAheadExpired) {\n this.toggleSelectedForAllCheckedOptions();\n return;\n }\n }\n // Send key to Typeahead handler\n default: {\n if (key.length === 1) {\n this.handleTypeAhead(`${key}`);\n }\n return true;\n }\n }\n }\n /**\n * Prevents `focusin` events from firing before `click` events when the\n * element is unfocused.\n *\n * @override\n * @internal\n */\n mousedownHandler(e) {\n if (e.offsetX >= 0 && e.offsetX <= this.scrollWidth) {\n return super.mousedownHandler(e);\n }\n }\n /**\n * Switches between single-selection and multi-selection mode.\n *\n * @internal\n */\n multipleChanged(prev, next) {\n var _a;\n this.ariaMultiSelectable = next ? \"true\" : null;\n (_a = this.options) === null || _a === void 0 ? void 0 : _a.forEach(o => {\n o.checked = next ? false : undefined;\n });\n this.setSelectedOptions();\n }\n /**\n * Sets an option as selected and gives it focus.\n *\n * @override\n * @public\n */\n setSelectedOptions() {\n if (!this.multiple) {\n super.setSelectedOptions();\n return;\n }\n if (this.$fastController.isConnected && this.options) {\n this.selectedOptions = this.options.filter(o => o.selected);\n this.focusAndScrollOptionIntoView();\n }\n }\n /**\n * Ensures the size is a positive integer when the property is updated.\n *\n * @param prev - the previous size value\n * @param next - the current size value\n *\n * @internal\n */\n sizeChanged(prev, next) {\n var _a;\n const size = Math.max(0, parseInt((_a = next === null || next === void 0 ? void 0 : next.toFixed()) !== null && _a !== void 0 ? _a : \"\", 10));\n if (size !== next) {\n DOM.queueUpdate(() => {\n this.size = size;\n });\n }\n }\n /**\n * Toggles the selected state of the provided options. If any provided items\n * are in an unselected state, all items are set to selected. If every\n * provided item is selected, they are all unselected.\n *\n * @internal\n */\n toggleSelectedForAllCheckedOptions() {\n const enabledCheckedOptions = this.checkedOptions.filter(o => !o.disabled);\n const force = !enabledCheckedOptions.every(o => o.selected);\n enabledCheckedOptions.forEach(o => (o.selected = force));\n this.selectedIndex = this.options.indexOf(enabledCheckedOptions[enabledCheckedOptions.length - 1]);\n this.setSelectedOptions();\n }\n /**\n * @override\n * @internal\n */\n typeaheadBufferChanged(prev, next) {\n if (!this.multiple) {\n super.typeaheadBufferChanged(prev, next);\n return;\n }\n if (this.$fastController.isConnected) {\n const typeaheadMatches = this.getTypeaheadMatches();\n const activeIndex = this.options.indexOf(typeaheadMatches[0]);\n if (activeIndex > -1) {\n this.activeIndex = activeIndex;\n this.uncheckAllOptions();\n this.checkActiveIndex();\n }\n this.typeAheadExpired = false;\n }\n }\n /**\n * Unchecks all options.\n *\n * @remarks\n * Multiple-selection mode only.\n *\n * @param preserveChecked - reset the rangeStartIndex\n *\n * @internal\n */\n uncheckAllOptions(preserveChecked = false) {\n this.options.forEach(o => (o.checked = this.multiple ? false : undefined));\n if (!preserveChecked) {\n this.rangeStartIndex = -1;\n }\n }\n}\n__decorate([\n observable\n], ListboxElement.prototype, \"activeIndex\", void 0);\n__decorate([\n attr({ mode: \"boolean\" })\n], ListboxElement.prototype, \"multiple\", void 0);\n__decorate([\n attr({ converter: nullableNumberConverter })\n], ListboxElement.prototype, \"size\", void 0);\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 Listbox extends ListboxElement {\n orientationChanged() {\n if (this.orientation === \"horizontal\") {\n this.addEventListener(\"keydown\", this.#horizontalKeydownHandler);\n } else {\n this.removeEventListener(\"keydown\", this.#horizontalKeydownHandler);\n }\n }\n /**\n * Handles `keydown` actions for horizontal listbox navigation and typeahead.\n *\n * @internal\n */\n #horizontalKeydownHandler(e) {\n if (this.disabled) {\n return true;\n }\n const key = e.key;\n switch (key) {\n case keyArrowRight: {\n if (!e.shiftKey) {\n e.preventDefault();\n this.selectNextOption();\n }\n break;\n }\n case keyArrowLeft: {\n if (!e.shiftKey) {\n e.preventDefault();\n this.selectPreviousOption();\n }\n break;\n }\n }\n }\n slottedOptionsChanged(prev, next) {\n super.slottedOptionsChanged(prev, next);\n this.#disableSlottedChildren();\n }\n attributeChangedCallback(name, oldValue, newValue) {\n super.attributeChangedCallback(name, oldValue, newValue);\n if (name === \"disabled\") {\n this.#disableSlottedChildren();\n }\n }\n #disableSlottedChildren() {\n this.options.forEach((optionElement) => {\n if (!optionElement.disabled) {\n optionElement.disabled = this.disabled;\n }\n });\n }\n}\n__decorateClass([\n attr\n], Listbox.prototype, \"appearance\");\n__decorateClass([\n attr\n], Listbox.prototype, \"orientation\");\n__decorateClass([\n attr\n], Listbox.prototype, \"shape\");\n\nexport { DelegatesARIAListbox as D, ListboxElement as L, Listbox as a, Listbox$1 as b };\n"],"names":["messageStyles","__defProp$1","Object","defineProperty","__decorateClass$1","decorators","target","key","kind","decorator","result","i","length","FormElementHelperText","a","attribute","prototype","o","FormElementSuccessText","FormElementCharCount","constructor","this","charCount","formElements","currentPrototype","parentPrototype","getPrototypeOf","validate","anchor","proxy","HTMLElement","elementInternals","isValid","validity","valid","controlIsInvalidDueToMinOrMaxLength","control","tooShort","tooLong","setValidity","validationMessage","Decorated","args","super","errorValidationMessage","shouldShowValidationError","dirtyValue","addEventListener","dispatchEvent","Event","connectedCallback","disconnectedCallback","removeEventListener","formResetCallback","mode","feedback","helper","messageProperty","className","slot","name","slottedContentProperty","role","error","iconType","success","isFeedbackAvailable","config","x","Boolean","getFeedbackTemplate","context","h","getFeedbackTypeTemplate","shouldShow","iconTag","tagFor","I","messageTemplate","innerTemplate","s","c","w","errorText","_validate","errorTextChanged","_","newErrorText","errorMessage","customError","__defProp","CurrentLocale","locale","__decorateClass","currentLocale","Localized","KeyCodes","keyArrowDown","keyArrowLeft","keyArrowRight","keyArrowUp","keyEnter","keyEscape","keyHome","keyEnd","keyFunction2","keyPageDown","keyPageUp","keySpace","keyTab","ArrowKeys","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","wrapInBounds","min","max","value","limit","Math","inRange","sort","b","Listbox$1","Listbox","F","arguments","_options","selectedIndex","selectedOptions","shouldSkipFocus","typeaheadBuffer","typeaheadExpired","typeaheadTimeout","firstSelectedOption","_a","hasSelectableOptions","options","every","disabled","_b","O","track","notify","typeAheadExpired","clickHandler","e","captured","closest","indexOf","focusAndScrollOptionIntoView","optionToFocus","contains","document","activeElement","focus","requestAnimationFrame","scrollIntoView","block","focusinHandler","currentTarget","setSelectedOptions","getTypeaheadMatches","pattern","replace","re","RegExp","filter","text","trim","match","getSelectableIndex","prev","next","direction","potentialDirection","nextSelectableOption","reduceRight","thisOption","index","reduce","handleChange","source","propertyName","slottedOptionFilter","handleTypeAhead","window","clearTimeout","setTimeout","TYPE_AHEAD_TIMEOUT_MS","keydownHandler","shiftKey","preventDefault","selectFirstOption","selectNextOption","selectPreviousOption","selectLastOption","k","mousedownHandler","multipleChanged","ariaMultiSelectable","selectedIndexChanged","selectableIndex","newNext","selectedOptionsChanged","filteredNext","forEach","notifier","getNotifier","unsubscribe","selected","includes","subscribe","findIndex","array","findLastIndex","setDefaultSelectedOption","el","defaultSelected","_c","ariaActiveDescendant","id","slottedOptionsChanged","item","push","setSize","option","u","ariaPosInSet","ariaSetSize","$fastController","isConnected","typeaheadBufferChanged","typeaheadMatches","n","hidden","DelegatesARIAListbox","A","ListboxElement","activeIndex","rangeStartIndex","activeOption","checkedOptions","checked","firstSelectedOptionIndex","activeIndexChanged","checkActiveIndex","multiple","activeItem","checkFirstOption","preserveChecked","uncheckAllOptions","checkLastOption","focusoutHandler","checkNextOption","checkPreviousOption","toggleSelectedForAllCheckedOptions","offsetX","scrollWidth","undefined","sizeChanged","size","parseInt","toFixed","D","queueUpdate","enabledCheckedOptions","force","converter","orientationChanged","orientation","attributeChangedCallback","oldValue","newValue","optionElement"],"sourceRoot":""}