` tag we check the equality\n * of the VNodes corresponding to the `
` tags and, since they are the\n * same tag in the same position, we'd be able to avoid completely\n * re-rendering the subtree under them with a new DOM element and would just\n * call out to `patch` to handle reconciling their children and so on.\n *\n * 3. Check, for both windows, to see if the element at the beginning of the\n * window corresponds to the element at the end of the other window. This is\n * a heuristic which will let us identify _some_ situations in which\n * elements have changed position, for instance it _should_ detect that the\n * children nodes themselves have not changed but merely moved in the\n * following example:\n *\n * oldVNode: `
`\n * newVNode: `
`\n *\n * If we find cases like this then we also need to move the concrete DOM\n * elements corresponding to the moved children to write the re-order to the\n * DOM.\n *\n * 4. Finally, if VNodes have the `key` attribute set on them we check for any\n * nodes in the old children which have the same key as the first element in\n * our window on the new children. If we find such a node we handle calling\n * out to `patch`, moving relevant DOM nodes, and so on, in accordance with\n * what we find.\n *\n * Finally, once we've narrowed our 'windows' to the point that either of them\n * collapse (i.e. they have length 0) we then handle any remaining VNode\n * insertion or deletion that needs to happen to get a DOM state that correctly\n * reflects the new child VNodes. If, for instance, after our window on the old\n * children has collapsed we still have more nodes on the new children that\n * we haven't dealt with yet then we need to add them, or if the new children\n * collapse but we still have unhandled _old_ children then we need to make\n * sure the corresponding DOM nodes are removed.\n *\n * @param parentElm the node into which the parent VNode is rendered\n * @param oldCh the old children of the parent node\n * @param newVNode the new VNode which will replace the parent\n * @param newCh the new children of the parent node\n * @param isInitialRender whether or not this is the first render of the vdom\n */\nconst updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {\n let oldStartIdx = 0;\n let newStartIdx = 0;\n let idxInOld = 0;\n let i = 0;\n let oldEndIdx = oldCh.length - 1;\n let oldStartVnode = oldCh[0];\n let oldEndVnode = oldCh[oldEndIdx];\n let newEndIdx = newCh.length - 1;\n let newStartVnode = newCh[0];\n let newEndVnode = newCh[newEndIdx];\n let node;\n let elmToMove;\n while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {\n if (oldStartVnode == null) {\n // VNode might have been moved left\n oldStartVnode = oldCh[++oldStartIdx];\n }\n else if (oldEndVnode == null) {\n oldEndVnode = oldCh[--oldEndIdx];\n }\n else if (newStartVnode == null) {\n newStartVnode = newCh[++newStartIdx];\n }\n else if (newEndVnode == null) {\n newEndVnode = newCh[--newEndIdx];\n }\n else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {\n // if the start nodes are the same then we should patch the new VNode\n // onto the old one, and increment our `newStartIdx` and `oldStartIdx`\n // indices to reflect that. We don't need to move any DOM Nodes around\n // since things are matched up in order.\n patch(oldStartVnode, newStartVnode, isInitialRender);\n oldStartVnode = oldCh[++oldStartIdx];\n newStartVnode = newCh[++newStartIdx];\n }\n else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {\n // likewise, if the end nodes are the same we patch new onto old and\n // decrement our end indices, and also likewise in this case we don't\n // need to move any DOM Nodes.\n patch(oldEndVnode, newEndVnode, isInitialRender);\n oldEndVnode = oldCh[--oldEndIdx];\n newEndVnode = newCh[--newEndIdx];\n }\n else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {\n // case: \"Vnode moved right\"\n //\n // We've found that the last node in our window on the new children is\n // the same VNode as the _first_ node in our window on the old children\n // we're dealing with now. Visually, this is the layout of these two\n // nodes:\n //\n // newCh: [..., newStartVnode , ... , newEndVnode , ...]\n // ^^^^^^^^^^^\n // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]\n // ^^^^^^^^^^^^^\n //\n // In this situation we need to patch `newEndVnode` onto `oldStartVnode`\n // and move the DOM element for `oldStartVnode`.\n if (BUILD.slotRelocation && (oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {\n putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);\n }\n patch(oldStartVnode, newEndVnode, isInitialRender);\n // We need to move the element for `oldStartVnode` into a position which\n // will be appropriate for `newEndVnode`. For this we can use\n // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a\n // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for\n // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:\n //\n //
\n //
\n //
\n // \n //
\n // \n // ```\n // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback\n // will be called with `newValue = \"some-value\"` and will set the shadowed property (this.someAttribute = \"another-value\")\n // to the value that was set inline i.e. \"some-value\" from above example. When\n // the connectedCallback attempts to un-shadow it will use \"some-value\" as the initial value rather than \"another-value\"\n //\n // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed\n // by connectedCallback as this attributeChangedCallback will not fire.\n //\n // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties\n //\n // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to\n // properties here given that this goes against best practices outlined here\n // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy\n if (this.hasOwnProperty(propName)) {\n newValue = this[propName];\n delete this[propName];\n }\n else if (prototype.hasOwnProperty(propName) &&\n typeof this[propName] === 'number' &&\n this[propName] == newValue) {\n // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native\n // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in\n // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.\n return;\n }\n else if (propName == null) {\n // At this point we should know this is not a \"member\", so we can treat it like watching an attribute\n // on a vanilla web component\n const hostRef = getHostRef(this);\n const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;\n // We only want to trigger the callback(s) if:\n // 1. The instance is ready\n // 2. The watchers are ready\n // 3. The value has changed\n if (flags &&\n !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&\n flags & 128 /* HOST_FLAGS.isWatchReady */ &&\n newValue !== oldValue) {\n const elm = BUILD.lazyLoad ? hostRef.$hostElement$ : this;\n const instance = BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;\n const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];\n entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {\n if (instance[callbackName] != null) {\n instance[callbackName].call(instance, newValue, oldValue, attrName);\n }\n });\n }\n return;\n }\n this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;\n });\n };\n // Create an array of attributes to observe\n // This list in comprised of all strings used within a `@Watch()` decorator\n // on a component as well as any Stencil-specific \"members\" (`@Prop()`s and `@State()`s).\n // As such, there is no way to guarantee type-safety here that a user hasn't entered\n // an invalid attribute.\n Cstr.observedAttributes = Array.from(new Set([\n ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),\n ...members\n .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)\n .map(([propName, m]) => {\n var _a;\n const attrName = m[1] || propName;\n attrNameToPropName.set(attrName, propName);\n if (BUILD.reflect && m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {\n (_a = cmpMeta.$attrsToReflect$) === null || _a === void 0 ? void 0 : _a.push([propName, attrName]);\n }\n return attrName;\n }),\n ]));\n }\n }\n return Cstr;\n};\n/**\n * Initialize a Stencil component given a reference to its host element, its\n * runtime bookkeeping data structure, runtime metadata about the component,\n * and (optionally) an HMR version ID.\n *\n * @param elm a host element\n * @param hostRef the element's runtime bookkeeping object\n * @param cmpMeta runtime metadata for the Stencil component\n * @param hmrVersionId an (optional) HMR version ID\n */\nconst initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {\n let Cstr;\n // initializeComponent\n if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {\n // Let the runtime know that the component has been initialized\n hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;\n if (BUILD.lazyLoad || BUILD.hydrateClientSide) {\n // lazy loaded components\n // request the component's implementation to be\n // wired up with the host element\n Cstr = loadModule(cmpMeta, hostRef, hmrVersionId);\n if (Cstr.then) {\n // Await creates a micro-task avoid if possible\n const endLoad = uniqueTime(`st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`, `[Stencil] Load module for <${cmpMeta.$tagName$}>`);\n Cstr = await Cstr;\n endLoad();\n }\n if ((BUILD.isDev || BUILD.isDebug) && !Cstr) {\n throw new Error(`Constructor for \"${cmpMeta.$tagName$}#${hostRef.$modeName$}\" was not found`);\n }\n if (BUILD.member && !Cstr.isProxied) {\n // we've never proxied this Constructor before\n // let's add the getters/setters to its prototype before\n // the first time we create an instance of the implementation\n if (BUILD.watchCallback) {\n cmpMeta.$watchers$ = Cstr.watchers;\n }\n proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);\n Cstr.isProxied = true;\n }\n const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);\n // ok, time to construct the instance\n // but let's keep track of when we start and stop\n // so that the getters/setters don't incorrectly step on data\n if (BUILD.member) {\n hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;\n }\n // construct the lazy-loaded component implementation\n // passing the hostRef is very important during\n // construction in order to directly wire together the\n // host element and the lazy-loaded instance\n try {\n new Cstr(hostRef);\n }\n catch (e) {\n consoleError(e);\n }\n if (BUILD.member) {\n hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;\n }\n if (BUILD.watchCallback) {\n hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;\n }\n endNewInstance();\n fireConnectedCallback(hostRef.$lazyInstance$);\n }\n else {\n // sync constructor component\n Cstr = elm.constructor;\n // wait for the CustomElementRegistry to mark the component as ready before setting `isWatchReady`. Otherwise,\n // watchers may fire prematurely if `customElements.get()`/`customElements.whenDefined()` resolves _before_\n // Stencil has completed instantiating the component.\n customElements.whenDefined(cmpMeta.$tagName$).then(() => (hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */));\n }\n if (BUILD.style && Cstr.style) {\n // this component has styles but we haven't registered them yet\n let style = Cstr.style;\n if (BUILD.mode && typeof style !== 'string') {\n style = style[(hostRef.$modeName$ = computeMode(elm))];\n if (BUILD.hydrateServerSide && hostRef.$modeName$) {\n elm.setAttribute('s-mode', hostRef.$modeName$);\n }\n }\n const scopeId = getScopeId(cmpMeta, hostRef.$modeName$);\n if (!styles.has(scopeId)) {\n const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);\n if (!BUILD.hydrateServerSide &&\n BUILD.shadowDom &&\n // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n BUILD.shadowDomShim &&\n cmpMeta.$flags$ & 8 /* CMP_FLAGS.needsShadowDomShim */) {\n style = await import('./shadow-css.js').then((m) => m.scopeCss(style, scopeId, false));\n }\n registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));\n endRegisterStyles();\n }\n }\n }\n // we've successfully created a lazy instance\n const ancestorComponent = hostRef.$ancestorComponent$;\n const schedule = () => scheduleUpdate(hostRef, true);\n if (BUILD.asyncLoading && ancestorComponent && ancestorComponent['s-rc']) {\n // this is the initial load and this component it has an ancestor component\n // but the ancestor component has NOT fired its will update lifecycle yet\n // so let's just cool our jets and wait for the ancestor to continue first\n // this will get fired off when the ancestor component\n // finally gets around to rendering its lazy self\n // fire off the initial update\n ancestorComponent['s-rc'].push(schedule);\n }\n else {\n schedule();\n }\n};\nconst fireConnectedCallback = (instance) => {\n if (BUILD.lazyLoad && BUILD.connectedCallback) {\n safeCall(instance, 'connectedCallback');\n }\n};\nconst connectedCallback = (elm) => {\n if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {\n const hostRef = getHostRef(elm);\n const cmpMeta = hostRef.$cmpMeta$;\n const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);\n if (BUILD.hostListenerTargetParent) {\n // only run if we have listeners being attached to a parent\n addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, true);\n }\n if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {\n // first time this component has connected\n hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;\n let hostId;\n if (BUILD.hydrateClientSide) {\n hostId = elm.getAttribute(HYDRATE_ID);\n if (hostId) {\n if (BUILD.shadowDom && supportsShadow && cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {\n const scopeId = BUILD.mode\n ? addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute('s-mode'))\n : addStyle(elm.shadowRoot, cmpMeta);\n elm.classList.remove(scopeId + '-h', scopeId + '-s');\n }\n initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);\n }\n }\n if (BUILD.slotRelocation && !hostId) {\n // initUpdate\n // if the slot polyfill is required we'll need to put some nodes\n // in here to act as original content anchors as we move nodes around\n // host element has been connected to the DOM\n if (BUILD.hydrateServerSide ||\n ((BUILD.slot || BUILD.shadowDom) &&\n // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {\n setContentReference(elm);\n }\n }\n if (BUILD.asyncLoading) {\n // find the first ancestor component (if there is one) and register\n // this component as one of the actively loading child components for its ancestor\n let ancestorComponent = elm;\n while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {\n // climb up the ancestors looking for the first\n // component that hasn't finished its lifecycle update yet\n if ((BUILD.hydrateClientSide &&\n ancestorComponent.nodeType === 1 /* NODE_TYPE.ElementNode */ &&\n ancestorComponent.hasAttribute('s-id') &&\n ancestorComponent['s-p']) ||\n ancestorComponent['s-p']) {\n // we found this components first ancestor component\n // keep a reference to this component's ancestor component\n attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));\n break;\n }\n }\n }\n // Lazy properties\n // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties\n if (BUILD.prop && !BUILD.hydrateServerSide && cmpMeta.$members$) {\n Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {\n if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {\n const value = elm[memberName];\n delete elm[memberName];\n elm[memberName] = value;\n }\n });\n }\n if (BUILD.initializeNextTick) {\n // connectedCallback, taskQueue, initialLoad\n // angular sets attribute AFTER connectCallback\n // https://github.com/angular/angular/issues/18909\n // https://github.com/angular/angular/issues/19940\n nextTick(() => initializeComponent(elm, hostRef, cmpMeta));\n }\n else {\n initializeComponent(elm, hostRef, cmpMeta);\n }\n }\n else {\n // not the first time this has connected\n // reattach any event listeners to the host\n // since they would have been removed when disconnected\n addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);\n // fire off connectedCallback() on component instance\n if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {\n fireConnectedCallback(hostRef.$lazyInstance$);\n }\n else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {\n hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));\n }\n }\n endConnected();\n }\n};\nconst setContentReference = (elm) => {\n // only required when we're NOT using native shadow dom (slot)\n // or this browser doesn't support native shadow dom\n // and this host element was NOT created with SSR\n // let's pick out the inner content for slot projection\n // create a node to represent where the original\n // content was first placed, which is useful later on\n const contentRefElm = (elm['s-cr'] = doc.createComment(BUILD.isDebug ? `content-ref (host=${elm.localName})` : ''));\n contentRefElm['s-cn'] = true;\n elm.insertBefore(contentRefElm, elm.firstChild);\n};\nconst disconnectInstance = (instance) => {\n if (BUILD.lazyLoad && BUILD.disconnectedCallback) {\n safeCall(instance, 'disconnectedCallback');\n }\n if (BUILD.cmpDidUnload) {\n safeCall(instance, 'componentDidUnload');\n }\n};\nconst disconnectedCallback = async (elm) => {\n if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {\n const hostRef = getHostRef(elm);\n if (BUILD.hostListener) {\n if (hostRef.$rmListeners$) {\n hostRef.$rmListeners$.map((rmListener) => rmListener());\n hostRef.$rmListeners$ = undefined;\n }\n }\n if (!BUILD.lazyLoad) {\n disconnectInstance(elm);\n }\n else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {\n disconnectInstance(hostRef.$lazyInstance$);\n }\n else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {\n hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));\n }\n }\n};\nconst patchPseudoShadowDom = (hostElementPrototype, descriptorPrototype) => {\n patchCloneNode(hostElementPrototype);\n patchSlotAppendChild(hostElementPrototype);\n patchSlotAppend(hostElementPrototype);\n patchSlotPrepend(hostElementPrototype);\n patchSlotInsertAdjacentElement(hostElementPrototype);\n patchSlotInsertAdjacentHTML(hostElementPrototype);\n patchSlotInsertAdjacentText(hostElementPrototype);\n patchTextContent(hostElementPrototype);\n patchChildSlotNodes(hostElementPrototype, descriptorPrototype);\n patchSlotRemoveChild(hostElementPrototype);\n};\nconst patchCloneNode = (HostElementPrototype) => {\n const orgCloneNode = HostElementPrototype.cloneNode;\n HostElementPrototype.cloneNode = function (deep) {\n const srcNode = this;\n const isShadowDom = BUILD.shadowDom ? srcNode.shadowRoot && supportsShadow : false;\n const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);\n if (BUILD.slot && !isShadowDom && deep) {\n let i = 0;\n let slotted, nonStencilNode;\n const stencilPrivates = [\n 's-id',\n 's-cr',\n 's-lr',\n 's-rc',\n 's-sc',\n 's-p',\n 's-cn',\n 's-sr',\n 's-sn',\n 's-hn',\n 's-ol',\n 's-nr',\n 's-si',\n ];\n for (; i < srcNode.childNodes.length; i++) {\n slotted = srcNode.childNodes[i]['s-nr'];\n nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i][privateField]);\n if (slotted) {\n if (BUILD.appendChildSlotFix && clonedNode.__appendChild) {\n clonedNode.__appendChild(slotted.cloneNode(true));\n }\n else {\n clonedNode.appendChild(slotted.cloneNode(true));\n }\n }\n if (nonStencilNode) {\n clonedNode.appendChild(srcNode.childNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\n/**\n * Patches the `appendChild` method on a `scoped` Stencil component.\n * The patch will attempt to find a slot with the same name as the node being appended\n * and insert it into the slot reference if found. Otherwise, it falls-back to the original\n * `appendChild` method.\n *\n * @param HostElementPrototype The Stencil component to be patched\n */\nconst patchSlotAppendChild = (HostElementPrototype) => {\n HostElementPrototype.__appendChild = HostElementPrototype.appendChild;\n HostElementPrototype.appendChild = function (newChild) {\n const slotName = (newChild['s-sn'] = getSlotName(newChild));\n const slotNode = getHostSlotNode(this.childNodes, slotName);\n if (slotNode) {\n const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);\n const appendAfter = slotChildNodes[slotChildNodes.length - 1];\n appendAfter.parentNode.insertBefore(newChild, appendAfter.nextSibling);\n // Check if there is fallback content that should be hidden\n updateFallbackSlotVisibility(this);\n return;\n }\n return this.__appendChild(newChild);\n };\n};\n/**\n * Patches the `removeChild` method on a `scoped` Stencil component.\n * This patch attempts to remove the specified node from a slot reference\n * if the slot exists. Otherwise, it falls-back to the original `removeChild` method.\n *\n * @param ElementPrototype The Stencil component to be patched\n */\nconst patchSlotRemoveChild = (ElementPrototype) => {\n ElementPrototype.__removeChild = ElementPrototype.removeChild;\n ElementPrototype.removeChild = function (toRemove) {\n if (toRemove && typeof toRemove['s-sn'] !== 'undefined') {\n const slotNode = getHostSlotNode(this.childNodes, toRemove['s-sn']);\n if (slotNode) {\n // Get all slot content\n const slotChildNodes = getHostSlotChildNodes(slotNode, toRemove['s-sn']);\n // See if any of the slotted content matches the node to remove\n const existingNode = slotChildNodes.find((n) => n === toRemove);\n if (existingNode) {\n existingNode.remove();\n // Check if there is fallback content that should be displayed if that\n // was the last node in the slot\n updateFallbackSlotVisibility(this);\n return;\n }\n }\n }\n return this.__removeChild(toRemove);\n };\n};\n/**\n * Patches the `prepend` method for a slotted node inside a scoped component.\n *\n * @param HostElementPrototype the `Element` to be patched\n */\nconst patchSlotPrepend = (HostElementPrototype) => {\n const originalPrepend = HostElementPrototype.prepend;\n HostElementPrototype.prepend = function (...newChildren) {\n newChildren.forEach((newChild) => {\n if (typeof newChild === 'string') {\n newChild = this.ownerDocument.createTextNode(newChild);\n }\n const slotName = (newChild['s-sn'] = getSlotName(newChild));\n const slotNode = getHostSlotNode(this.childNodes, slotName);\n if (slotNode) {\n const slotPlaceholder = document.createTextNode('');\n slotPlaceholder['s-nr'] = newChild;\n slotNode['s-cr'].parentNode.__appendChild(slotPlaceholder);\n newChild['s-ol'] = slotPlaceholder;\n const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);\n const appendAfter = slotChildNodes[0];\n return appendAfter.parentNode.insertBefore(newChild, appendAfter.nextSibling);\n }\n if (newChild.nodeType === 1 && !!newChild.getAttribute('slot')) {\n newChild.hidden = true;\n }\n return originalPrepend.call(this, newChild);\n });\n };\n};\n/**\n * Patches the `append` method for a slotted node inside a scoped component. The patched method uses\n * `appendChild` under-the-hood while creating text nodes for any new children that passed as bare strings.\n *\n * @param HostElementPrototype the `Element` to be patched\n */\nconst patchSlotAppend = (HostElementPrototype) => {\n HostElementPrototype.append = function (...newChildren) {\n newChildren.forEach((newChild) => {\n if (typeof newChild === 'string') {\n newChild = this.ownerDocument.createTextNode(newChild);\n }\n this.appendChild(newChild);\n });\n };\n};\n/**\n * Patches the `insertAdjacentHTML` method for a slotted node inside a scoped component. Specifically,\n * we only need to patch the behavior for the specific `beforeend` and `afterbegin` positions so the element\n * gets inserted into the DOM in the correct location.\n *\n * @param HostElementPrototype the `Element` to be patched\n */\nconst patchSlotInsertAdjacentHTML = (HostElementPrototype) => {\n const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;\n HostElementPrototype.insertAdjacentHTML = function (position, text) {\n if (position !== 'afterbegin' && position !== 'beforeend') {\n return originalInsertAdjacentHtml.call(this, position, text);\n }\n const container = this.ownerDocument.createElement('_');\n let node;\n container.innerHTML = text;\n if (position === 'afterbegin') {\n while ((node = container.firstChild)) {\n this.prepend(node);\n }\n }\n else if (position === 'beforeend') {\n while ((node = container.firstChild)) {\n this.append(node);\n }\n }\n };\n};\n/**\n * Patches the `insertAdjacentText` method for a slotted node inside a scoped component. Specifically,\n * we only need to patch the behavior for the specific `beforeend` and `afterbegin` positions so the text node\n * gets inserted into the DOM in the correct location.\n *\n * @param HostElementPrototype the `Element` to be patched\n */\nconst patchSlotInsertAdjacentText = (HostElementPrototype) => {\n HostElementPrototype.insertAdjacentText = function (position, text) {\n this.insertAdjacentHTML(position, text);\n };\n};\n/**\n * Patches the `insertAdjacentElement` method for a slotted node inside a scoped component. Specifically,\n * we only need to patch the behavior for the specific `beforeend` and `afterbegin` positions so the element\n * gets inserted into the DOM in the correct location.\n *\n * @param HostElementPrototype the `Element` to be patched\n */\nconst patchSlotInsertAdjacentElement = (HostElementPrototype) => {\n const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;\n HostElementPrototype.insertAdjacentElement = function (position, element) {\n if (position !== 'afterbegin' && position !== 'beforeend') {\n return originalInsertAdjacentElement.call(this, position, element);\n }\n if (position === 'afterbegin') {\n this.prepend(element);\n return element;\n }\n else if (position === 'beforeend') {\n this.append(element);\n return element;\n }\n return element;\n };\n};\n/**\n * Patches the text content of an unnamed slotted node inside a scoped component\n * @param hostElementPrototype the `Element` to be patched\n */\nconst patchTextContent = (hostElementPrototype) => {\n const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, 'textContent');\n Object.defineProperty(hostElementPrototype, '__textContent', descriptor);\n if (BUILD.experimentalSlotFixes) {\n // Patch `textContent` to mimic shadow root behavior\n Object.defineProperty(hostElementPrototype, 'textContent', {\n // To mimic shadow root behavior, we need to return the text content of all\n // nodes in a slot reference node\n get() {\n const slotRefNodes = getAllChildSlotNodes(this.childNodes);\n const textContent = slotRefNodes\n .map((node) => {\n var _a, _b;\n const text = [];\n // Need to get the text content of all nodes in the slot reference node\n let slotContent = node.nextSibling;\n while (slotContent && slotContent['s-sn'] === node['s-sn']) {\n if (slotContent.nodeType === 3 /* NODE_TYPES.TEXT_NODE */ || slotContent.nodeType === 1 /* NODE_TYPES.ELEMENT_NODE */) {\n text.push((_b = (_a = slotContent.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : '');\n }\n slotContent = slotContent.nextSibling;\n }\n return text.filter((ref) => ref !== '').join(' ');\n })\n .filter((text) => text !== '')\n .join(' ');\n // Pad the string to return\n return ' ' + textContent + ' ';\n },\n // To mimic shadow root behavior, we need to overwrite all nodes in a slot\n // reference node. If a default slot reference node exists, the text content will be\n // placed there. Otherwise, the new text node will be hidden\n set(value) {\n const slotRefNodes = getAllChildSlotNodes(this.childNodes);\n slotRefNodes.forEach((node) => {\n // Remove the existing content of the slot\n let slotContent = node.nextSibling;\n while (slotContent && slotContent['s-sn'] === node['s-sn']) {\n const tmp = slotContent;\n slotContent = slotContent.nextSibling;\n tmp.remove();\n }\n // If this is a default slot, add the text node in the slot location.\n // Otherwise, destroy the slot reference node\n if (node['s-sn'] === '') {\n const textNode = this.ownerDocument.createTextNode(value);\n textNode['s-sn'] = '';\n node.parentElement.insertBefore(textNode, node.nextSibling);\n }\n else {\n node.remove();\n }\n });\n },\n });\n }\n else {\n Object.defineProperty(hostElementPrototype, 'textContent', {\n get() {\n var _a;\n // get the 'default slot', which would be the first slot in a shadow tree (if we were using one), whose name is\n // the empty string\n const slotNode = getHostSlotNode(this.childNodes, '');\n // when a slot node is found, the textContent _may_ be found in the next sibling (text) node, depending on how\n // nodes were reordered during the vdom render. first try to get the text content from the sibling.\n if (((_a = slotNode === null || slotNode === void 0 ? void 0 : slotNode.nextSibling) === null || _a === void 0 ? void 0 : _a.nodeType) === 3 /* NODE_TYPES.TEXT_NODE */) {\n return slotNode.nextSibling.textContent;\n }\n else if (slotNode) {\n return slotNode.textContent;\n }\n else {\n // fallback to the original implementation\n return this.__textContent;\n }\n },\n set(value) {\n var _a;\n // get the 'default slot', which would be the first slot in a shadow tree (if we were using one), whose name is\n // the empty string\n const slotNode = getHostSlotNode(this.childNodes, '');\n // when a slot node is found, the textContent _may_ need to be placed in the next sibling (text) node,\n // depending on how nodes were reordered during the vdom render. first try to set the text content on the\n // sibling.\n if (((_a = slotNode === null || slotNode === void 0 ? void 0 : slotNode.nextSibling) === null || _a === void 0 ? void 0 : _a.nodeType) === 3 /* NODE_TYPES.TEXT_NODE */) {\n slotNode.nextSibling.textContent = value;\n }\n else if (slotNode) {\n slotNode.textContent = value;\n }\n else {\n // we couldn't find a slot, but that doesn't mean that there isn't one. if this check ran before the DOM\n // loaded, we could have missed it. check for a content reference element on the scoped component and insert\n // it there\n this.__textContent = value;\n const contentRefElm = this['s-cr'];\n if (contentRefElm) {\n this.insertBefore(contentRefElm, this.firstChild);\n }\n }\n },\n });\n }\n};\nconst patchChildSlotNodes = (elm, cmpMeta) => {\n class FakeNodeList extends Array {\n item(n) {\n return this[n];\n }\n }\n // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n if (cmpMeta.$flags$ & 8 /* CMP_FLAGS.needsShadowDomShim */) {\n const childNodesFn = elm.__lookupGetter__('childNodes');\n Object.defineProperty(elm, 'children', {\n get() {\n return this.childNodes.map((n) => n.nodeType === 1);\n },\n });\n Object.defineProperty(elm, 'childElementCount', {\n get() {\n return elm.children.length;\n },\n });\n Object.defineProperty(elm, 'childNodes', {\n get() {\n const childNodes = childNodesFn.call(this);\n if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0 &&\n getHostRef(this).$flags$ & 2 /* HOST_FLAGS.hasRendered */) {\n const result = new FakeNodeList();\n for (let i = 0; i < childNodes.length; i++) {\n const slot = childNodes[i]['s-nr'];\n if (slot) {\n result.push(slot);\n }\n }\n return result;\n }\n return FakeNodeList.from(childNodes);\n },\n });\n }\n};\n/**\n * Recursively finds all slot reference nodes ('s-sr') in a series of child nodes.\n *\n * @param childNodes The set of child nodes to search for slot reference nodes.\n * @returns An array of slot reference nodes.\n */\nconst getAllChildSlotNodes = (childNodes) => {\n const slotRefNodes = [];\n for (const childNode of Array.from(childNodes)) {\n if (childNode['s-sr']) {\n slotRefNodes.push(childNode);\n }\n slotRefNodes.push(...getAllChildSlotNodes(childNode.childNodes));\n }\n return slotRefNodes;\n};\nconst getSlotName = (node) => node['s-sn'] || (node.nodeType === 1 && node.getAttribute('slot')) || '';\n/**\n * Recursively searches a series of child nodes for a slot with the provided name.\n * @param childNodes the nodes to search for a slot with a specific name.\n * @param slotName the name of the slot to match on.\n * @returns a reference to the slot node that matches the provided name, `null` otherwise\n */\nconst getHostSlotNode = (childNodes, slotName) => {\n let i = 0;\n let childNode;\n for (; i < childNodes.length; i++) {\n childNode = childNodes[i];\n if (childNode['s-sr'] && childNode['s-sn'] === slotName) {\n return childNode;\n }\n childNode = getHostSlotNode(childNode.childNodes, slotName);\n if (childNode) {\n return childNode;\n }\n }\n return null;\n};\nconst getHostSlotChildNodes = (n, slotName) => {\n const childNodes = [n];\n while ((n = n.nextSibling) && n['s-sn'] === slotName) {\n childNodes.push(n);\n }\n return childNodes;\n};\nconst defineCustomElement = (Cstr, compactMeta) => {\n customElements.define(compactMeta[1], proxyCustomElement(Cstr, compactMeta));\n};\nconst proxyCustomElement = (Cstr, compactMeta) => {\n const cmpMeta = {\n $flags$: compactMeta[0],\n $tagName$: compactMeta[1],\n };\n if (BUILD.member) {\n cmpMeta.$members$ = compactMeta[2];\n }\n if (BUILD.hostListener) {\n cmpMeta.$listeners$ = compactMeta[3];\n }\n if (BUILD.watchCallback) {\n cmpMeta.$watchers$ = Cstr.$watchers$;\n }\n if (BUILD.reflect) {\n cmpMeta.$attrsToReflect$ = [];\n }\n if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {\n // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n cmpMeta.$flags$ |= 8 /* CMP_FLAGS.needsShadowDomShim */;\n }\n // TODO(STENCIL-914): this check and `else` block can go away and be replaced by just the `scoped` check\n if (BUILD.experimentalSlotFixes && BUILD.scoped && cmpMeta.$flags$ & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {\n patchPseudoShadowDom(Cstr.prototype, cmpMeta);\n }\n else {\n if (BUILD.slotChildNodesFix) {\n patchChildSlotNodes(Cstr.prototype, cmpMeta);\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNode(Cstr.prototype);\n }\n if (BUILD.appendChildSlotFix) {\n patchSlotAppendChild(Cstr.prototype);\n }\n if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {\n patchTextContent(Cstr.prototype);\n }\n }\n const originalConnectedCallback = Cstr.prototype.connectedCallback;\n const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;\n Object.assign(Cstr.prototype, {\n __registerHost() {\n registerHost(this, cmpMeta);\n },\n connectedCallback() {\n connectedCallback(this);\n if (BUILD.connectedCallback && originalConnectedCallback) {\n originalConnectedCallback.call(this);\n }\n },\n disconnectedCallback() {\n disconnectedCallback(this);\n if (BUILD.disconnectedCallback && originalDisconnectedCallback) {\n originalDisconnectedCallback.call(this);\n }\n },\n __attachShadow() {\n if (supportsShadow) {\n if (BUILD.shadowDelegatesFocus) {\n this.attachShadow({\n mode: 'open',\n delegatesFocus: !!(cmpMeta.$flags$ & 16 /* CMP_FLAGS.shadowDelegatesFocus */),\n });\n }\n else {\n this.attachShadow({ mode: 'open' });\n }\n }\n else {\n this.shadowRoot = this;\n }\n },\n });\n Cstr.is = cmpMeta.$tagName$;\n return proxyComponent(Cstr, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */ | 2 /* PROXY_FLAGS.proxyState */);\n};\nconst forceModeUpdate = (elm) => {\n if (BUILD.style && BUILD.mode && !BUILD.lazyLoad) {\n const mode = computeMode(elm);\n const hostRef = getHostRef(elm);\n if (hostRef.$modeName$ !== mode) {\n const cmpMeta = hostRef.$cmpMeta$;\n const oldScopeId = elm['s-sc'];\n const scopeId = getScopeId(cmpMeta, mode);\n const style = elm.constructor.style[mode];\n const flags = cmpMeta.$flags$;\n if (style) {\n if (!styles.has(scopeId)) {\n registerStyle(scopeId, style, !!(flags & 1 /* CMP_FLAGS.shadowDomEncapsulation */));\n }\n hostRef.$modeName$ = mode;\n elm.classList.remove(oldScopeId + '-h', oldScopeId + '-s');\n attachStyles(hostRef);\n forceUpdate(elm);\n }\n }\n }\n};\n/**\n * Kick off hot-module-replacement for a component. In order to replace the\n * component in-place we:\n *\n * 1. get a reference to the {@link d.HostRef} for the element\n * 2. reset the element's runtime flags\n * 3. re-run the initialization logic for the element (via\n * {@link initializeComponent})\n *\n * @param hostElement the host element for the component which we want to start\n * doing HMR\n * @param cmpMeta runtime metadata for the component\n * @param hmrVersionId the current HMR version ID\n */\nconst hmrStart = (hostElement, cmpMeta, hmrVersionId) => {\n // ¯\\_(ツ)_/¯\n const hostRef = getHostRef(hostElement);\n // reset state flags to only have been connected\n hostRef.$flags$ = 1 /* HOST_FLAGS.hasConnected */;\n // TODO\n // detach any event listeners that may have been added\n // because we're not passing an exact event name it'll\n // remove all of this element's event, which is good\n // re-initialize the component\n initializeComponent(hostElement, hostRef, cmpMeta, hmrVersionId);\n};\nconst bootstrapLazy = (lazyBundles, options = {}) => {\n var _a;\n if (BUILD.profile && performance.mark) {\n performance.mark('st:app:start');\n }\n installDevTools();\n const endBootstrap = createTime('bootstrapLazy');\n const cmpTags = [];\n const exclude = options.exclude || [];\n const customElements = win.customElements;\n const head = doc.head;\n const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');\n const dataStyles = /*@__PURE__*/ doc.createElement('style');\n const deferredConnectedCallbacks = [];\n const styles = /*@__PURE__*/ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);\n let appLoadFallback;\n let isBootstrapping = true;\n let i = 0;\n Object.assign(plt, options);\n plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;\n if (BUILD.asyncQueue) {\n if (options.syncQueue) {\n plt.$flags$ |= 4 /* PLATFORM_FLAGS.queueSync */;\n }\n }\n if (BUILD.hydrateClientSide) {\n // If the app is already hydrated there is not point to disable the\n // async queue. This will improve the first input delay\n plt.$flags$ |= 2 /* PLATFORM_FLAGS.appLoaded */;\n }\n if (BUILD.hydrateClientSide && BUILD.shadowDom) {\n for (; i < styles.length; i++) {\n registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);\n }\n }\n let hasSlotRelocation = false;\n lazyBundles.map((lazyBundle) => {\n lazyBundle[1].map((compactMeta) => {\n var _a;\n const cmpMeta = {\n $flags$: compactMeta[0],\n $tagName$: compactMeta[1],\n $members$: compactMeta[2],\n $listeners$: compactMeta[3],\n };\n // Check if we are using slots outside the shadow DOM in this component.\n // We'll use this information later to add styles for `slot-fb` elements\n if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {\n hasSlotRelocation = true;\n }\n if (BUILD.member) {\n cmpMeta.$members$ = compactMeta[2];\n }\n if (BUILD.hostListener) {\n cmpMeta.$listeners$ = compactMeta[3];\n }\n if (BUILD.reflect) {\n cmpMeta.$attrsToReflect$ = [];\n }\n if (BUILD.watchCallback) {\n cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};\n }\n if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {\n // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n cmpMeta.$flags$ |= 8 /* CMP_FLAGS.needsShadowDomShim */;\n }\n const tagName = BUILD.transformTagName && options.transformTagName\n ? options.transformTagName(cmpMeta.$tagName$)\n : cmpMeta.$tagName$;\n const HostElement = class extends HTMLElement {\n // StencilLazyHost\n constructor(self) {\n // @ts-ignore\n super(self);\n self = this;\n registerHost(self, cmpMeta);\n if (BUILD.shadowDom && cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {\n // this component is using shadow dom\n // and this browser supports shadow dom\n // add the read-only property \"shadowRoot\" to the host element\n // adding the shadow root build conditionals to minimize runtime\n if (supportsShadow) {\n if (BUILD.shadowDelegatesFocus) {\n self.attachShadow({\n mode: 'open',\n delegatesFocus: !!(cmpMeta.$flags$ & 16 /* CMP_FLAGS.shadowDelegatesFocus */),\n });\n }\n else {\n self.attachShadow({ mode: 'open' });\n }\n }\n else if (!BUILD.hydrateServerSide && !('shadowRoot' in self)) {\n self.shadowRoot = self;\n }\n }\n }\n connectedCallback() {\n if (appLoadFallback) {\n clearTimeout(appLoadFallback);\n appLoadFallback = null;\n }\n if (isBootstrapping) {\n // connectedCallback will be processed once all components have been registered\n deferredConnectedCallbacks.push(this);\n }\n else {\n plt.jmp(() => connectedCallback(this));\n }\n }\n disconnectedCallback() {\n plt.jmp(() => disconnectedCallback(this));\n }\n componentOnReady() {\n return getHostRef(this).$onReadyPromise$;\n }\n };\n // TODO(STENCIL-914): this check and `else` block can go away and be replaced by just the `scoped` check\n if (BUILD.experimentalSlotFixes && BUILD.scoped && cmpMeta.$flags$ & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {\n patchPseudoShadowDom(HostElement.prototype, cmpMeta);\n }\n else {\n if (BUILD.slotChildNodesFix) {\n patchChildSlotNodes(HostElement.prototype, cmpMeta);\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNode(HostElement.prototype);\n }\n if (BUILD.appendChildSlotFix) {\n patchSlotAppendChild(HostElement.prototype);\n }\n if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {\n patchTextContent(HostElement.prototype);\n }\n }\n // if the component is formAssociated we need to set that on the host\n // element so that it will be ready for `attachInternals` to be called on\n // it later on\n if (BUILD.formAssociated && cmpMeta.$flags$ & 64 /* CMP_FLAGS.formAssociated */) {\n HostElement.formAssociated = true;\n }\n if (BUILD.hotModuleReplacement) {\n // if we're in an HMR dev build then we need to set up the callback\n // which will carry out the work of actually replacing the module for\n // this particular component\n HostElement.prototype['s-hmr'] = function (hmrVersionId) {\n hmrStart(this, cmpMeta, hmrVersionId);\n };\n }\n cmpMeta.$lazyBundleId$ = lazyBundle[0];\n if (!exclude.includes(tagName) && !customElements.get(tagName)) {\n cmpTags.push(tagName);\n customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));\n }\n });\n });\n // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM\n if (hasSlotRelocation) {\n dataStyles.innerHTML += SLOT_FB_CSS;\n }\n // Add hydration styles\n if (BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute)) {\n dataStyles.innerHTML += cmpTags + HYDRATED_CSS;\n }\n // If we have styles, add them to the DOM\n if (dataStyles.innerHTML.length) {\n dataStyles.setAttribute('data-styles', '');\n // Apply CSP nonce to the style tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n dataStyles.setAttribute('nonce', nonce);\n }\n // Insert the styles into the document head\n // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied\n head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);\n }\n // Process deferred connectedCallbacks now all components have been registered\n isBootstrapping = false;\n if (deferredConnectedCallbacks.length) {\n deferredConnectedCallbacks.map((host) => host.connectedCallback());\n }\n else {\n if (BUILD.profile) {\n plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30, 'timeout')));\n }\n else {\n plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));\n }\n }\n // Fallback appLoad event\n endBootstrap();\n};\nconst Fragment = (_, children) => children;\nconst addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {\n if (BUILD.hostListener && listeners) {\n // this is called immediately within the element's constructor\n // initialize our event listeners on the host element\n // we do this now so that we can listen to events that may\n // have fired even before the instance is ready\n if (BUILD.hostListenerTargetParent) {\n // this component may have event listeners that should be attached to the parent\n if (attachParentListeners) {\n // this is being ran from within the connectedCallback\n // which is important so that we know the host element actually has a parent element\n // filter out the listeners to only have the ones that ARE being attached to the parent\n listeners = listeners.filter(([flags]) => flags & 32 /* LISTENER_FLAGS.TargetParent */);\n }\n else {\n // this is being ran from within the component constructor\n // everything BUT the parent element listeners should be attached at this time\n // filter out the listeners that are NOT being attached to the parent\n listeners = listeners.filter(([flags]) => !(flags & 32 /* LISTENER_FLAGS.TargetParent */));\n }\n }\n listeners.map(([flags, name, method]) => {\n const target = BUILD.hostListenerTarget ? getHostListenerTarget(elm, flags) : elm;\n const handler = hostListenerProxy(hostRef, method);\n const opts = hostListenerOpts(flags);\n plt.ael(target, name, handler, opts);\n (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));\n });\n }\n};\nconst hostListenerProxy = (hostRef, methodName) => (ev) => {\n try {\n if (BUILD.lazyLoad) {\n if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {\n // instance is ready, let's call it's member method for this event\n hostRef.$lazyInstance$[methodName](ev);\n }\n else {\n (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);\n }\n }\n else {\n hostRef.$hostElement$[methodName](ev);\n }\n }\n catch (e) {\n consoleError(e);\n }\n};\nconst getHostListenerTarget = (elm, flags) => {\n if (BUILD.hostListenerTargetDocument && flags & 4 /* LISTENER_FLAGS.TargetDocument */)\n return doc;\n if (BUILD.hostListenerTargetWindow && flags & 8 /* LISTENER_FLAGS.TargetWindow */)\n return win;\n if (BUILD.hostListenerTargetBody && flags & 16 /* LISTENER_FLAGS.TargetBody */)\n return doc.body;\n if (BUILD.hostListenerTargetParent && flags & 32 /* LISTENER_FLAGS.TargetParent */)\n return elm.parentElement;\n return elm;\n};\n// prettier-ignore\nconst hostListenerOpts = (flags) => supportsListenerOptions\n ? ({\n passive: (flags & 1 /* LISTENER_FLAGS.Passive */) !== 0,\n capture: (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0,\n })\n : (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;\n/**\n * Assigns the given value to the nonce property on the runtime platform object.\n * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.\n * @param nonce The value to be assigned to the platform nonce property.\n * @returns void\n */\nconst setNonce = (nonce) => (plt.$nonce$ = nonce);\nconst setPlatformOptions = (opts) => Object.assign(plt, opts);\n/**\n * Updates the DOM generated on the server with annotations such as node attributes and\n * comment nodes to facilitate future client-side hydration. These annotations are used for things\n * like moving elements back to their original hosts if using Shadow DOM on the client, and for quickly\n * reconstructing the vNode representations of the DOM.\n *\n * @param doc The DOM generated by the server.\n * @param staticComponents Any components that should be considered static and do not need client-side hydration.\n */\nconst insertVdomAnnotations = (doc, staticComponents) => {\n if (doc != null) {\n const docData = {\n hostIds: 0,\n rootLevelIds: 0,\n staticComponents: new Set(staticComponents),\n };\n const orgLocationNodes = [];\n parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);\n orgLocationNodes.forEach((orgLocationNode) => {\n if (orgLocationNode != null) {\n const nodeRef = orgLocationNode['s-nr'];\n let hostId = nodeRef['s-host-id'];\n let nodeId = nodeRef['s-node-id'];\n let childId = `${hostId}.${nodeId}`;\n if (hostId == null) {\n hostId = 0;\n docData.rootLevelIds++;\n nodeId = docData.rootLevelIds;\n childId = `${hostId}.${nodeId}`;\n if (nodeRef.nodeType === 1 /* NODE_TYPE.ElementNode */) {\n nodeRef.setAttribute(HYDRATE_CHILD_ID, childId);\n }\n else if (nodeRef.nodeType === 3 /* NODE_TYPE.TextNode */) {\n if (hostId === 0) {\n const textContent = nodeRef.nodeValue.trim();\n if (textContent === '') {\n // useless whitespace node at the document root\n orgLocationNode.remove();\n return;\n }\n }\n const commentBeforeTextNode = doc.createComment(childId);\n commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;\n nodeRef.parentNode.insertBefore(commentBeforeTextNode, nodeRef);\n }\n }\n let orgLocationNodeId = `${ORG_LOCATION_ID}.${childId}`;\n const orgLocationParentNode = orgLocationNode.parentElement;\n if (orgLocationParentNode) {\n if (orgLocationParentNode['s-en'] === '') {\n // ending with a \".\" means that the parent element\n // of this node's original location is a SHADOW dom element\n // and this node is apart of the root level light dom\n orgLocationNodeId += `.`;\n }\n else if (orgLocationParentNode['s-en'] === 'c') {\n // ending with a \".c\" means that the parent element\n // of this node's original location is a SCOPED element\n // and this node is apart of the root level light dom\n orgLocationNodeId += `.c`;\n }\n }\n orgLocationNode.nodeValue = orgLocationNodeId;\n }\n });\n }\n};\n/**\n * Recursively parses a node generated by the server and its children to set host and child id\n * attributes read during client-side hydration. This function also tracks whether each node is\n * an original location reference node meaning that a node has been moved via slot relocation.\n *\n * @param doc The DOM generated by the server.\n * @param node The node to parse.\n * @param docData An object containing metadata about the document.\n * @param orgLocationNodes An array of nodes that have been moved via slot relocation.\n */\nconst parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {\n if (node == null) {\n return;\n }\n if (node['s-nr'] != null) {\n orgLocationNodes.push(node);\n }\n if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {\n node.childNodes.forEach((childNode) => {\n const hostRef = getHostRef(childNode);\n if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {\n const cmpData = {\n nodeIds: 0,\n };\n insertVNodeAnnotations(doc, childNode, hostRef.$vnode$, docData, cmpData);\n }\n parseVNodeAnnotations(doc, childNode, docData, orgLocationNodes);\n });\n }\n};\n/**\n * Insert attribute annotations on an element for its host ID and, potentially, its child ID.\n * Also makes calls to insert annotations on the element's children, keeping track of the depth of\n * the component tree.\n *\n * @param doc The DOM generated by the server.\n * @param hostElm The element to insert annotations for.\n * @param vnode The vNode representation of the element.\n * @param docData An object containing metadata about the document.\n * @param cmpData An object containing metadata about the component.\n */\nconst insertVNodeAnnotations = (doc, hostElm, vnode, docData, cmpData) => {\n if (vnode != null) {\n const hostId = ++docData.hostIds;\n hostElm.setAttribute(HYDRATE_ID, hostId);\n if (hostElm['s-cr'] != null) {\n hostElm['s-cr'].nodeValue = `${CONTENT_REF_ID}.${hostId}`;\n }\n if (vnode.$children$ != null) {\n const depth = 0;\n vnode.$children$.forEach((vnodeChild, index) => {\n insertChildVNodeAnnotations(doc, vnodeChild, cmpData, hostId, depth, index);\n });\n }\n // If this element does not already have a child ID and has a sibling comment node\n // representing a slot, we use the content of the comment to set the child ID attribute\n // on the host element.\n if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute(HYDRATE_CHILD_ID)) {\n const parent = hostElm.parentElement;\n if (parent && parent.childNodes) {\n const parentChildNodes = Array.from(parent.childNodes);\n const comment = parentChildNodes.find((node) => node.nodeType === 8 /* NODE_TYPE.CommentNode */ && node['s-sr']);\n if (comment) {\n const index = parentChildNodes.indexOf(hostElm) - 1;\n vnode.$elm$.setAttribute(HYDRATE_CHILD_ID, `${comment['s-host-id']}.${comment['s-node-id']}.0.${index}`);\n }\n }\n }\n }\n};\n/**\n * Recursively analyzes the type of a child vNode and inserts annotations on the vNodes's element based on its type.\n * Element nodes receive a child ID attribute, text nodes have a comment with the child ID inserted before them,\n * and comment nodes representing a slot have their node value set to a slot node ID containing the child ID.\n *\n * @param doc The DOM generated by the server.\n * @param vnodeChild The vNode to insert annotations for.\n * @param cmpData An object containing metadata about the component.\n * @param hostId The host ID of this element's parent.\n * @param depth How deep this element sits in the component tree relative to its parent.\n * @param index The index of this element in its parent's children array.\n */\nconst insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, index) => {\n const childElm = vnodeChild.$elm$;\n if (childElm == null) {\n return;\n }\n const nodeId = cmpData.nodeIds++;\n const childId = `${hostId}.${nodeId}.${depth}.${index}`;\n childElm['s-host-id'] = hostId;\n childElm['s-node-id'] = nodeId;\n if (childElm.nodeType === 1 /* NODE_TYPE.ElementNode */) {\n childElm.setAttribute(HYDRATE_CHILD_ID, childId);\n }\n else if (childElm.nodeType === 3 /* NODE_TYPE.TextNode */) {\n const parentNode = childElm.parentNode;\n const nodeName = parentNode.nodeName;\n if (nodeName !== 'STYLE' && nodeName !== 'SCRIPT') {\n const textNodeId = `${TEXT_NODE_ID}.${childId}`;\n const commentBeforeTextNode = doc.createComment(textNodeId);\n parentNode.insertBefore(commentBeforeTextNode, childElm);\n }\n }\n else if (childElm.nodeType === 8 /* NODE_TYPE.CommentNode */) {\n if (childElm['s-sr']) {\n const slotName = childElm['s-sn'] || '';\n const slotNodeId = `${SLOT_NODE_ID}.${childId}.${slotName}`;\n childElm.nodeValue = slotNodeId;\n }\n }\n if (vnodeChild.$children$ != null) {\n // Increment depth each time we recur deeper into the tree\n const childDepth = depth + 1;\n vnodeChild.$children$.forEach((vnode, index) => {\n insertChildVNodeAnnotations(doc, vnode, cmpData, hostId, childDepth, index);\n });\n }\n};\n/**\n * A WeakMap mapping runtime component references to their corresponding host reference\n * instances.\n */\nconst hostRefs = /*@__PURE__*/ new WeakMap();\n/**\n * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}\n *\n * @param ref the runtime ref of interest\n * @returns the Host reference (if found) or undefined\n */\nconst getHostRef = (ref) => hostRefs.get(ref);\n/**\n * Register a lazy instance with the {@link hostRefs} object so it's\n * corresponding {@link d.HostRef} can be retrieved later.\n *\n * @param lazyInstance the lazy instance of interest\n * @param hostRef that instances `HostRef` object\n * @returns a reference to the host ref WeakMap\n */\nconst registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);\n/**\n * Register a host element for a Stencil component, setting up various metadata\n * and callbacks based on {@link BUILD} flags as well as the component's runtime\n * metadata.\n *\n * @param hostElement the host element to register\n * @param cmpMeta runtime metadata for that component\n * @returns a reference to the host ref WeakMap\n */\nconst registerHost = (hostElement, cmpMeta) => {\n const hostRef = {\n $flags$: 0,\n $hostElement$: hostElement,\n $cmpMeta$: cmpMeta,\n $instanceValues$: new Map(),\n };\n if (BUILD.isDev) {\n hostRef.$renderCount$ = 0;\n }\n if (BUILD.method && BUILD.lazyLoad) {\n hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));\n }\n if (BUILD.asyncLoading) {\n hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));\n hostElement['s-p'] = [];\n hostElement['s-rc'] = [];\n }\n addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$, false);\n return hostRefs.set(hostElement, hostRef);\n};\nconst isMemberInElement = (elm, memberName) => memberName in elm;\nconst consoleError = (e, el) => (customError || console.error)(e, el);\nconst STENCIL_DEV_MODE = BUILD.isTesting\n ? ['STENCIL:'] // E2E testing\n : [\n '%cstencil',\n 'color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px',\n ];\nconst consoleDevError = (...m) => console.error(...STENCIL_DEV_MODE, ...m);\nconst consoleDevWarn = (...m) => console.warn(...STENCIL_DEV_MODE, ...m);\nconst consoleDevInfo = (...m) => console.info(...STENCIL_DEV_MODE, ...m);\nconst setErrorHandler = (handler) => (customError = handler);\nconst cmpModules = /*@__PURE__*/ new Map();\nconst loadModule = (cmpMeta, hostRef, hmrVersionId) => {\n // loadModuleImport\n const exportName = cmpMeta.$tagName$.replace(/-/g, '_');\n const bundleId = cmpMeta.$lazyBundleId$;\n if (BUILD.isDev && typeof bundleId !== 'string') {\n consoleDevError(`Trying to lazily load component <${cmpMeta.$tagName$}> with style mode \"${hostRef.$modeName$}\", but it does not exist.`);\n return undefined;\n }\n const module = !BUILD.hotModuleReplacement ? cmpModules.get(bundleId) : false;\n if (module) {\n return module[exportName];\n }\n /*!__STENCIL_STATIC_IMPORT_SWITCH__*/\n return import(\n /* @vite-ignore */\n /* webpackInclude: /\\.entry\\.js$/ */\n /* webpackExclude: /\\.system\\.entry\\.js$/ */\n /* webpackMode: \"lazy\" */\n `./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVersionId ? '?s-hmr=' + hmrVersionId : ''}`).then((importedModule) => {\n if (!BUILD.hotModuleReplacement) {\n cmpModules.set(bundleId, importedModule);\n }\n return importedModule[exportName];\n }, consoleError);\n};\nconst styles = /*@__PURE__*/ new Map();\nconst modeResolutionChain = [];\nconst win = typeof window !== 'undefined' ? window : {};\nconst doc = win.document || { head: {} };\nconst H = (win.HTMLElement || class {\n});\nconst plt = {\n $flags$: 0,\n $resourcesUrl$: '',\n jmp: (h) => h(),\n raf: (h) => requestAnimationFrame(h),\n ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),\n rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),\n ce: (eventName, opts) => new CustomEvent(eventName, opts),\n};\nconst setPlatformHelpers = (helpers) => {\n Object.assign(plt, helpers);\n};\nconst supportsShadow = \n// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\nBUILD.shadowDomShim && BUILD.shadowDom\n ? /*@__PURE__*/ (() => (doc.head.attachShadow + '').indexOf('[native') > -1)()\n : true;\nconst supportsListenerOptions = /*@__PURE__*/ (() => {\n let supportsListenerOptions = false;\n try {\n doc.addEventListener('e', null, Object.defineProperty({}, 'passive', {\n get() {\n supportsListenerOptions = true;\n },\n }));\n }\n catch (e) { }\n return supportsListenerOptions;\n})();\nconst promiseResolve = (v) => Promise.resolve(v);\nconst supportsConstructableStylesheets = BUILD.constructableCSS\n ? /*@__PURE__*/ (() => {\n try {\n new CSSStyleSheet();\n return typeof new CSSStyleSheet().replaceSync === 'function';\n }\n catch (e) { }\n return false;\n })()\n : false;\nconst queueDomReads = [];\nconst queueDomWrites = [];\nconst queueDomWritesLow = [];\nconst queueTask = (queue, write) => (cb) => {\n queue.push(cb);\n if (!queuePending) {\n queuePending = true;\n if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {\n nextTick(flush);\n }\n else {\n plt.raf(flush);\n }\n }\n};\nconst consume = (queue) => {\n for (let i = 0; i < queue.length; i++) {\n try {\n queue[i](performance.now());\n }\n catch (e) {\n consoleError(e);\n }\n }\n queue.length = 0;\n};\nconst consumeTimeout = (queue, timeout) => {\n let i = 0;\n let ts = 0;\n while (i < queue.length && (ts = performance.now()) < timeout) {\n try {\n queue[i++](ts);\n }\n catch (e) {\n consoleError(e);\n }\n }\n if (i === queue.length) {\n queue.length = 0;\n }\n else if (i !== 0) {\n queue.splice(0, i);\n }\n};\nconst flush = () => {\n if (BUILD.asyncQueue) {\n queueCongestion++;\n }\n // always force a bunch of medium callbacks to run, but still have\n // a throttle on how many can run in a certain time\n // DOM READS!!!\n consume(queueDomReads);\n // DOM WRITES!!!\n if (BUILD.asyncQueue) {\n const timeout = (plt.$flags$ & 6 /* PLATFORM_FLAGS.queueMask */) === 2 /* PLATFORM_FLAGS.appLoaded */\n ? performance.now() + 14 * Math.ceil(queueCongestion * (1.0 / 10.0))\n : Infinity;\n consumeTimeout(queueDomWrites, timeout);\n consumeTimeout(queueDomWritesLow, timeout);\n if (queueDomWrites.length > 0) {\n queueDomWritesLow.push(...queueDomWrites);\n queueDomWrites.length = 0;\n }\n if ((queuePending = queueDomReads.length + queueDomWrites.length + queueDomWritesLow.length > 0)) {\n // still more to do yet, but we've run out of time\n // let's let this thing cool off and try again in the next tick\n plt.raf(flush);\n }\n else {\n queueCongestion = 0;\n }\n }\n else {\n consume(queueDomWrites);\n if ((queuePending = queueDomReads.length > 0)) {\n // still more to do yet, but we've run out of time\n // let's let this thing cool off and try again in the next tick\n plt.raf(flush);\n }\n }\n};\nconst nextTick = (cb) => promiseResolve().then(cb);\nconst readTask = /*@__PURE__*/ queueTask(queueDomReads, false);\nconst writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);\nexport { BUILD, Env, NAMESPACE } from '@stencil/core/internal/app-data';\nexport { Build, Fragment, H, H as HTMLElement, Host, STENCIL_DEV_MODE, addHostEventListeners, bootstrapLazy, cmpModules, connectedCallback, consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, createEvent, defineCustomElement, disconnectedCallback, doc, forceModeUpdate, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRenderingRef, getValue, h, insertVdomAnnotations, isMemberInElement, loadModule, modeResolutionChain, nextTick, parsePropertyValue, plt, postUpdateComponent, promiseResolve, proxyComponent, proxyCustomElement, readTask, registerHost, registerInstance, renderVdom, setAssetPath, setErrorHandler, setMode, setNonce, setPlatformHelpers, setPlatformOptions, setValue, styles, supportsConstructableStylesheets, supportsListenerOptions, supportsShadow, win, writeTask };\n"],"mappings":"AAAO,MAAMA,EAAY,SAClB,MAAMC,EAAqB,CAAEC,YAAa,KAAMC,mBAAoB,MAAOC,aAAc,KAAMC,WAAY,MAAOC,aAAc,KAAMC,aAAc,MAAOC,WAAY,KAAMC,aAAc,KAAMC,aAAc,MAAOC,aAAc,KAAMC,gBAAiB,MAAOC,YAAa,KAAMC,cAAe,MAAOC,cAAe,MAAOC,kBAAmB,KAAMC,iBAAkB,KAAMC,eAAgB,KAAMC,SAAU,MAAOC,qBAAsB,KAAMC,QAAS,MAAOC,MAAO,KAAMC,sBAAuB,MAAOC,eAAgB,MAAOC,YAAa,KAAMC,aAAc,KAAMC,mBAAoB,KAAMC,uBAAwB,MAAOC,2BAA4B,KAAMC,yBAA0B,MAAOC,yBAA0B,KAAMC,qBAAsB,MAAOC,kBAAmB,MAAOC,kBAAmB,MAAOC,kBAAmB,MAAOC,cAAe,KAAMC,mBAAoB,MAAOC,sBAAuB,KAAMC,QAAS,MAAOC,MAAO,MAAOC,UAAW,MAAOC,SAAU,KAAMC,UAAW,KAAMC,mBAAoB,MAAOC,OAAQ,KAAMC,OAAQ,KAAMC,KAAM,MAAOC,iBAAkB,KAAMC,QAAS,MAAOC,KAAM,KAAMC,YAAa,KAAMC,YAAa,KAAMC,WAAY,KAAMC,WAAY,KAAMC,QAAS,KAAMC,OAAQ,MAAOC,yBAA0B,MAAOC,eAAgB,MAAOC,qBAAsB,MAAOC,UAAW,KAAMC,KAAM,KAAMC,kBAAmB,MAAOC,eAAgB,KAAMC,MAAO,KAAMC,MAAO,KAAMC,IAAK,KAAMC,UAAW,KAAMC,iBAAkB,MAAOC,UAAW,KAAMC,cAAe,KAAMC,UAAW,KAAMC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,MAAC0U,GAAkB5Z,GAAM8P,QAAQ+J,QAAQ7Z,GAC9C,MAAM6F,GACc,MACZ,IACI,IAAIC,cACJ,cAAc,IAAIA,eAAgBC,cAAgB,UAC9D,CACQ,MAAOsD,GAAG,CACV,OAAO,KACV,EAPe,GASpB,MAAMyQ,GAAgB,GACtB,MAAMC,GAAiB,GAEvB,MAAMC,GAAY,CAACC,EAAOC,IAAW3W,IACjC0W,EAAMpY,KAAK0B,GACX,IAAKhF,EAAc,CACfA,EAAe,KACf,GAAI2b,GAAStb,GAAIoE,EAAU,EAAkC,CACzDgP,GAASmI,GACrB,KACa,CACDvb,GAAIya,IAAIc,GACpB,CACA,GAEA,MAAMC,GAAWH,IACb,IAAK,IAAI1Y,EAAI,EAAGA,EAAI0Y,EAAMzY,OAAQD,IAAK,CACnC,IACI0Y,EAAM1Y,GAAG8Y,YAAYC,MACjC,CACQ,MAAOjR,GACHqI,GAAarI,EACzB,CACA,CACI4Q,EAAMzY,OAAS,CAAC,EAoBpB,MAAM2Y,GAAQ,KAOVC,GAAQN,IAqBH,CACDM,GAAQL,IACR,GAAKxb,EAAeub,GAActY,OAAS,EAAI,CAG3C5C,GAAIya,IAAIc,GACpB,CACA,GAEA,MAAMnI,GAAYzO,GAAOqW,KAAiB7I,KAAKxN,GAE/C,MAAM4M,GAA0B6J,GAAUD,GAAgB,a"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-21c59b99.entry.js.map b/1704966176737/dist/build/p-21c59b99.entry.js.map
deleted file mode 100644
index d701b7d09f..0000000000
--- a/1704966176737/dist/build/p-21c59b99.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldTypoCss","LdTypo","this","getDefaultTag","_a","h1","h2","h3","h4","h5","h6","b1","b2","b3","b4","b5","b6","xb1","xb2","xb3","xh1","xh2","xh3","xh4","xh5","xh6","variant","applyAriaLabel","isUppercase","includes","root","setAttribute","ariaLabel","el","innerHTML","trim","componentWillLoad","attributesObserver","cloneAttributes","call","componentDidRender","disconnectedCallback","disconnect","render","HTag","tag","h","Object","assign","clonedAttributes","class","part","ref"],"sources":["../src/liquid/components/ld-typo/ld-typo.css?tag=ld-typo&encapsulation=shadow","../src/liquid/components/ld-typo/ld-typo.tsx"],"sourcesContent":[":host {\n display: block;\n line-height: 0;\n\n &([variant^='xb']),\n &([variant='b1']),\n &([variant='b2']),\n &([variant='b3']),\n &([variant='b4']),\n &([variant='b5']),\n &([variant='b6']) {\n color: var(--ld-typo-text-brand-color);\n }\n\n /* Reset within the shadow DOM */\n .ld-typo {\n color: inherit;\n margin: 0;\n }\n}\n\n:host,\n.ld-typo {\n --ld-typo-text-brand-color: var(--ld-thm-primary);\n}\n\n/* Reset for CSS component */\n:where(.ld-typo) {\n margin: 0;\n}\n\n.ld-typo,\n.ld-typo--body-m {\n font: var(--ld-typo-body-m);\n}\n.ld-typo--body-l {\n font: var(--ld-typo-body-l);\n}\n.ld-typo--body-s {\n font: var(--ld-typo-body-s);\n}\n.ld-typo--body-xl {\n font: var(--ld-typo-body-xl);\n}\n.ld-typo--body-xs {\n font: var(--ld-typo-body-xs);\n}\n\n.ld-typo--cap-l {\n font: var(--ld-typo-cap-l);\n letter-spacing: 0.15em;\n text-transform: uppercase;\n}\n.ld-typo--cap-m {\n font: var(--ld-typo-cap-m);\n letter-spacing: 0.1em;\n text-transform: uppercase;\n}\n\n.ld-typo--label-m {\n font: var(--ld-typo-label-m);\n}\n.ld-typo--label-s {\n font: var(--ld-typo-label-s);\n}\n\n.ld-typo--h1 {\n font: var(--ld-typo-h1);\n}\n.ld-typo--h2 {\n font: var(--ld-typo-h2);\n}\n.ld-typo--h3 {\n font: var(--ld-typo-h3);\n}\n.ld-typo--h4 {\n font: var(--ld-typo-h4);\n}\n.ld-typo--h5 {\n font: var(--ld-typo-h5);\n}\n.ld-typo--h6 {\n font: var(--ld-typo-h6);\n}\n\n.ld-typo--b1 {\n color: var(--ld-typo-text-brand-color);\n font: var(--ld-typo-b1);\n text-transform: uppercase;\n}\n.ld-typo--b2 {\n color: var(--ld-typo-text-brand-color);\n font: var(--ld-typo-b2);\n text-transform: uppercase;\n}\n.ld-typo--b3 {\n color: var(--ld-typo-text-brand-color);\n font: var(--ld-typo-b3);\n text-transform: uppercase;\n}\n.ld-typo--b4 {\n color: var(--ld-typo-text-brand-color);\n font: var(--ld-typo-b4);\n text-transform: uppercase;\n}\n.ld-typo--b5 {\n color: var(--ld-typo-text-brand-color);\n font: var(--ld-typo-b5);\n text-transform: uppercase;\n}\n.ld-typo--b6 {\n color: var(--ld-typo-text-brand-color);\n font: var(--ld-typo-b6);\n text-transform: uppercase;\n}\n\n.ld-typo--xb1 {\n color: var(--ld-typo-text-brand-color);\n font: var(--ld-typo-xb1);\n text-transform: uppercase;\n}\n.ld-typo--xb2 {\n color: var(--ld-typo-text-brand-color);\n font: var(--ld-typo-xb2);\n text-transform: uppercase;\n}\n.ld-typo--xb3 {\n color: var(--ld-typo-text-brand-color);\n font: var(--ld-typo-xb3);\n text-transform: uppercase;\n}\n\n.ld-typo--xh1 {\n font: var(--ld-typo-xh1);\n}\n.ld-typo--xh2 {\n font: var(--ld-typo-xh2);\n}\n.ld-typo--xh3 {\n font: var(--ld-typo-xh3);\n}\n.ld-typo--xh4 {\n font: var(--ld-typo-xh4);\n}\n.ld-typo--xh5 {\n font: var(--ld-typo-xh5);\n}\n.ld-typo--xh6 {\n font: var(--ld-typo-xh6);\n}\n","import { Component, Element, h, Prop, State } from '@stencil/core'\nimport { cloneAttributes } from '../../utils/cloneAttributes'\n\n/**\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n * @part tag - Actual tag\n */\n@Component({\n tag: 'ld-typo',\n styleUrl: 'ld-typo.css',\n shadow: true,\n})\nexport class LdTypo implements ClonesAttributes {\n @Element() el: HTMLElement\n\n private attributesObserver: MutationObserver\n\n private root: HTMLElement\n\n /** The rendered HTML tag. Overrides tag inferred from the variant. */\n @Prop() tag?: string\n\n /** The font style. Every variant has a default tag that it renders with. */\n @Prop({ mutable: true }) variant?:\n | 'body-xs'\n | 'body-s'\n | 'body-m'\n | 'body-l'\n | 'body-xl'\n | 'cap-m'\n | 'cap-l'\n | 'label-s'\n | 'label-m'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'b1'\n | 'b2'\n | 'b3'\n | 'b4'\n | 'b5'\n | 'b6'\n | 'xb1'\n | 'xb2'\n | 'xb3'\n | 'xh1'\n | 'xh2'\n | 'xh3'\n | 'xh4'\n | 'xh5'\n | 'xh6' = 'body-m'\n\n /**\n * Since b* and xb* variants are uppercase, screen readers need to be served a\n * (non-uppercase) aria-label (otherwise they will read out the heading letter by letter).\n * If you're using a b* or xb* variant, an aria-label will be\n * set automatically on the element. The component will use the inner HTML for the\n * label implicitly. If you want to set an aria-label explicitly (such as when you have\n * inner HTML that should not be part of the label), you can use this property.\n */\n @Prop() ariaLabel: string\n\n @State() clonedAttributes\n\n private applyAriaLabel() {\n const isUppercase = [\n 'cap-m',\n 'cap-l',\n 'b1',\n 'b2',\n 'b3',\n 'b4',\n 'b5',\n 'b6',\n 'xb1',\n 'xb2',\n 'xb3',\n ].includes(this.variant)\n\n if (isUppercase) {\n this.root.setAttribute(\n 'aria-label',\n this.ariaLabel || this.el.innerHTML.trim()\n )\n }\n }\n\n private getDefaultTag = () =>\n ({\n 'cap-m': 'span',\n 'cap-l': 'span',\n 'label-s': 'span',\n 'label-m': 'span',\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n h5: 'h5',\n h6: 'h6',\n b1: 'h1',\n b2: 'h2',\n b3: 'h3',\n b4: 'h4',\n b5: 'h5',\n b6: 'h6',\n xb1: 'h1',\n xb2: 'h2',\n xb3: 'h3',\n xh1: 'h1',\n xh2: 'h2',\n xh3: 'h3',\n xh4: 'h4',\n xh5: 'h5',\n xh6: 'h6',\n })[this.variant] ?? 'p'\n\n componentWillLoad() {\n this.attributesObserver = cloneAttributes.call(this, ['tag', 'variant'])\n }\n\n componentDidRender() {\n this.applyAriaLabel()\n }\n\n disconnectedCallback() {\n /* istanbul ignore if */\n if (this.attributesObserver) this.attributesObserver.disconnect()\n }\n\n render() {\n const HTag = this.tag || this.getDefaultTag()\n\n return (\n
(this.root = ref)}\n >\n \n \n )\n }\n}\n"],"mappings":"sFAAA,MAAMA,EAAY,u/D,MCaLC,EAAM,M,yBA8ETC,KAAAC,cAAgB,K,MACtB,OAAAC,EAAA,CACE,QAAS,OACT,QAAS,OACT,UAAW,OACX,UAAW,OACXC,GAAI,KACJC,GAAI,KACJC,GAAI,KACJC,GAAI,KACJC,GAAI,KACJC,GAAI,KACJC,GAAI,KACJC,GAAI,KACJC,GAAI,KACJC,GAAI,KACJC,GAAI,KACJC,GAAI,KACJC,IAAK,KACLC,IAAK,KACLC,IAAK,KACLC,IAAK,KACLC,IAAK,KACLC,IAAK,KACLC,IAAK,KACLC,IAAK,KACLC,IAAK,MACJvB,KAAKwB,YAAQ,MAAAtB,SAAA,EAAAA,EAAI,GAAG,E,gCAhEb,S,yDAcJ,cAAAuB,GACN,MAAMC,EAAc,CAClB,QACA,QACA,KACA,KACA,KACA,KACA,KACA,KACA,MACA,MACA,OACAC,SAAS3B,KAAKwB,SAEhB,GAAIE,EAAa,CACf1B,KAAK4B,KAAKC,aACR,aACA7B,KAAK8B,WAAa9B,KAAK+B,GAAGC,UAAUC,O,EAkC1C,iBAAAC,GACElC,KAAKmC,mBAAqBC,EAAgBC,KAAKrC,KAAM,CAAC,MAAO,W,CAG/D,kBAAAsC,GACEtC,KAAKyB,gB,CAGP,oBAAAc,GAEE,GAAIvC,KAAKmC,mBAAoBnC,KAAKmC,mBAAmBK,Y,CAGvD,MAAAC,GACE,MAAMC,EAAO1C,KAAK2C,KAAO3C,KAAKC,gBAE9B,OACE2C,EAACF,EAAIG,OAAAC,OAAA,GACC9C,KAAK+C,iBAAgB,CACzBC,MAAO,oBAAoBhD,KAAKwB,UAChCyB,KAAK,MACLC,IAAMA,GAAsBlD,KAAK4B,KAAOsB,IAExCN,EAAA,a"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-236dbb56.entry.js b/1704966176737/dist/build/p-236dbb56.entry.js
deleted file mode 100644
index 7cc3edbac2..0000000000
--- a/1704966176737/dist/build/p-236dbb56.entry.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{r as e,h as l,H as t,g as i,c as s}from"./p-21a69c18.js";import{T as d}from"./p-2f695d4a.js";import{g as a}from"./p-1133c92e.js";import{r}from"./p-8dc70a87.js";import{c as n}from"./p-6e5841ef.js";import{T as o}from"./p-6f9b9619.js";import{i as c}from"./p-b05f0e4e.js";import{s as h}from"./p-c2112f1e.js";import"./p-112455b1.js";const b="";const p=class{constructor(l){e(this,l);this.value=undefined;this.selected=undefined;this.disabled=undefined;this.filtered=false}componentWillLoad(){if(this.selected){this.el.setAttribute("selected","")}}render(){return l(t,null,l("slot",null))}get el(){return i(this)}};p.style=b;const v=e=>["LD-OPTION","LD-OPTION-INTERNAL"].includes(e===null||e===void 0?void 0:e.tagName);const f=e=>["LD-OPTGROUP","LD-OPTGROUP-INTERNAL"].includes(e===null||e===void 0?void 0:e.tagName);const w=e=>["LD-OPTION-INTERNAL"].includes(e===null||e===void 0?void 0:e.tagName);const _=e=>["LD-OPTGROUP-INTERNAL"].includes(e===null||e===void 0?void 0:e.tagName);const u=e=>e.hidden||e.filtered;const g=':host{display:inline-flex}:host .ld-select{flex-grow:1;max-width:100%}.ld-select *,.ld-select :after,.ld-select :before,:host *,:host :after,:host :before{box-sizing:border-box}.ld-select ul,:host ul{list-style:none}.ld-select{--ld-select-min-width:12.8125rem;--ld-select-min-height:var(--ld-sp-40);--ld-select-min-height-sm:var(--ld-sp-32);--ld-select-min-height-lg:3.125rem;--ld-select-padding-x:var(--ld-sp-12);--ld-select-padding-x-sm:0.625rem;--ld-select-padding-x-lg:0.875rem;--ld-select-padding-y:var(--ld-sp-8);--ld-select-padding-y-sm:var(--ld-sp-4);--ld-select-padding-y-lg:var(--ld-sp-8);--ld-select-padding-right:calc(var(--ld-sp-40) + var(--ld-sp-12));--ld-select-padding-right-sm:calc(var(--ld-sp-40) + 0.625rem);--ld-select-padding-right-lg:calc(var(--ld-sp-40) + 0.875rem);--ld-select-icon-size:1.25rem;--ld-select-icon-size-sm:var(--ld-sp-16);--ld-select-icon-size-lg:var(--ld-sp-24);--ld-select-trigger-line-height:1.25}.ld-select--sm{--ld-select-min-height:var(--ld-select-min-height-sm);--ld-select-padding-x:var(--ld-select-padding-x-sm);--ld-select-padding-y:var(--ld-select-padding-y-sm);--ld-select-padding-right:var(--ld-select-padding-right-sm);--ld-select-icon-size:var(--ld-select-icon-size-sm)}.ld-select--lg{--ld-select-min-height:var(--ld-select-min-height-lg);--ld-select-padding-x:var(--ld-select-padding-x-lg);--ld-select-padding-y:var(--ld-select-padding-y-lg);--ld-select-padding-right:var(--ld-select-padding-right-lg);--ld-select-icon-size:var(--ld-select-icon-size-lg)}.ld-select{--ld-select-col:var(--ld-col-neutral-900);--ld-select-col-disabled:var(--ld-col-neutral-100);--ld-select-col-border:var(--ld-col-neutral-100);--ld-select-col-border-hover:var(--ld-col-neutral-300);--ld-select-bg-col:var(--ld-col-wht);--ld-select-selection-col:var(--ld-col-wht);--ld-select-invalid-col:var(--ld-thm-error);--ld-select-invalid-icon-col-hover:var(--ld-thm-error-hover);--ld-select-invalid-icon-col-focus:var(--ld-thm-error-focus);--ld-select-invalid-icon-col-active:var(--ld-thm-error-active);--ld-select-invalid-disabled-bg-col:var(--ld-thm-error-disabled);--ld-select-thm-col:var(--ld-thm-primary);--ld-select-thm-col-hover:var(--ld-thm-primary-hover);--ld-select-thm-col-focus:var(--ld-thm-primary-focus);--ld-select-thm-col-active:var(--ld-thm-primary-active);--ld-select-ghost-trigger-bg-col-hover:var(--ld-thm-primary-alpha-lowest);--ld-select-ghost-trigger-bg-col-focus:var(--ld-thm-primary-alpha-low);display:inline-flex;position:relative}.ld-select ::slotted(ld-icon),.ld-select select+.ld-icon{height:var(--ld-select-icon-size);width:var(--ld-select-icon-size)}.ld-select ::slotted(ld-icon){display:contents!important}.ld-select select+.ld-icon,.ld-select select+.ld-select__icon{position:absolute;right:var(--ld-select-padding-x);top:50%;transform:translateY(-50%)}.ld-select select[multiple]+.ld-icon,.ld-select select[multiple]+.ld-select__icon{display:none}.ld-select select+.ld-icon{height:var(--ld-select-icon-size);width:var(--ld-select-icon-size)}.ld-select>select[multiple]{overflow:auto}@media screen and (max-width:767px) and (-webkit-min-device-pixel-ratio:0){.ld-select>select[multiple]{padding-right:calc(var(--ld-select-padding-x) + var(--ld-sp-24))}.ld-select>select[multiple]+.ld-icon,.ld-select>select[multiple]+.ld-select__icon{display:flex}}.ld-select--expanded .ld-tether-target-attached-bottom .ld-select__btn-trigger:not(.ld-select__btn-trigger--detached){border-bottom-left-radius:0;border-bottom-right-radius:0}:where(.ld-select:not(.ld-select--inline):not(.ld-select--ghost)){min-width:var(--ld-select-min-width)}.ld-select__btn-trigger,.ld-select__select{width:100%}.ld-select>select,.ld-select__btn-trigger{align-items:center;-webkit-appearance:none;appearance:none;background-color:var(--ld-select-bg-col);border:0;border-radius:var(--ld-br-m);color:var(--ld-select-col);display:flex;font:var(--ld-typo-body-m);height:100%;justify-content:flex-end;line-height:var(--ld-select-trigger-line-height);padding:var(--ld-select-padding-y) var(--ld-select-padding-x);position:relative;text-align:left;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.ld-select>select:where(select),.ld-select__btn-trigger:where(select){width:100%}.ld-select>select:where(select:not([multiple])),.ld-select__btn-trigger:where(select:not([multiple])){padding-right:calc(var(--ld-select-padding-x) + var(--ld-sp-24))}.ld-select>select:where(.ld-select__btn-trigger:not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))),.ld-select>select:where(select:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))),.ld-select__btn-trigger:where(.ld-select__btn-trigger:not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))),.ld-select__btn-trigger:where(select:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))){cursor:pointer}.ld-select>select:where([aria-expanded=true]),.ld-select__btn-trigger:where([aria-expanded=true]){z-index:2}.ld-select>select:where([aria-expanded=true]):not(:focus:focus-visible):not(.ld-select__btn-trigger--detached),.ld-select__btn-trigger:where([aria-expanded=true]):not(:focus:focus-visible):not(.ld-select__btn-trigger--detached){box-shadow:none}.ld-select>select:disabled,.ld-select>select:disabled+.ld-icon,.ld-select>select:disabled+.ld-select__icon,.ld-select>select:where([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))),.ld-select>select:where([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))+.ld-icon,.ld-select>select:where([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))+.ld-select__icon,.ld-select__btn-trigger:disabled,.ld-select__btn-trigger:disabled+.ld-icon,.ld-select__btn-trigger:disabled+.ld-select__icon,.ld-select__btn-trigger:where([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))),.ld-select__btn-trigger:where([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))+.ld-icon,.ld-select__btn-trigger:where([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))+.ld-select__icon{color:var(--ld-select-col-disabled)}.ld-select__btn-trigger{overflow:hidden}:where(.ld-select),:where(.ld-select)>select{min-height:var(--ld-select-min-height)}.ld-select--ghost .ld-select__btn-trigger,.ld-select--ghost select,.ld-select--ghost:not(ld-select){background-color:initial}.ld-select--ghost .ld-select__btn-trigger:not(:focus),.ld-select--ghost select:not(:focus){box-shadow:none}.ld-select:where(:not(.ld-select--ghost)):where(.ld-select--detached) :where(.ld-select__btn-trigger),.ld-select:where(:not(.ld-select--ghost)):where(.ld-select--detached) :where(select),.ld-select:where(:not(.ld-select--ghost)):where(:not(.ld-select--detached):not(.ld-select--expanded)) :where(.ld-select__btn-trigger),.ld-select:where(:not(.ld-select--ghost)):where(:not(.ld-select--detached):not(.ld-select--expanded)) :where(select){box-shadow:inset 0 0 0 var(--ld-sp-2) var(--ld-select-col-border)}@media (hover:hover){.ld-select:where(:not(.ld-select--ghost)):where(:not(.ld-select--invalid)) .ld-select__btn-trigger:where(.ld-select__btn-trigger--detached:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):hover:not(:focus:focus-visible),.ld-select:where(:not(.ld-select--ghost)):where(:not(.ld-select--invalid)) .ld-select__btn-trigger:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))):not(.ld-select__btn-trigger--detached):not([aria-expanded=true])):hover:not(:focus:focus-visible),.ld-select:where(:not(.ld-select--ghost)):where(:not(.ld-select--invalid)) select:where(.ld-select__btn-trigger--detached:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):hover:not(:focus:focus-visible),.ld-select:where(:not(.ld-select--ghost)):where(:not(.ld-select--invalid)) select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))):not(.ld-select__btn-trigger--detached):not([aria-expanded=true])):hover:not(:focus:focus-visible){box-shadow:inset 0 0 0 var(--ld-sp-2) var(--ld-select-col-border-hover)}}.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled)):where(:focus:focus-visible),.ld-select--invalid>select:where(:not(:disabled)):where(:focus:focus-visible){box-shadow:inset 0 0 0 var(--ld-sp-2) var(--ld-select-invalid-col)}.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:not(:focus:focus-visible)),.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:not(:focus:focus-visible)){background-color:var(--ld-select-invalid-disabled-bg-col);color:var(--ld-select-invalid-col)}.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:not(.ld-select__btn-trigger--ghost)),.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:not(.ld-select__btn-trigger--ghost)){box-shadow:inset 0 0 0 var(--ld-sp-2) var(--ld-select-invalid-col)}.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))) .ld-select__icon,.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))))+.ld-icon,.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))))+.ld-select__icon,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))) .ld-select__icon,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))))+.ld-icon,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))))+.ld-select__icon{color:var(--ld-select-invalid-col)}@media (hover:hover){.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):hover,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):hover{box-shadow:inset 0 0 0 var(--ld-sp-2) var(--ld-select-invalid-col)}.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):hover .ld-select__icon,.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):hover ::slotted(ld-icon),.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):hover+.ld-icon,.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):hover+.ld-select__icon,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):hover .ld-select__icon,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):hover ::slotted(ld-icon),.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):hover+.ld-icon,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):hover+.ld-select__icon{color:var(--ld-select-invalid-icon-col-hover)}}.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:focus:focus-visible) .ld-select__icon,.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:focus:focus-visible) ::slotted(ld-icon),.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:focus:focus-visible)+.ld-icon,.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:focus:focus-visible)+.ld-select__icon,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:focus:focus-visible) .ld-select__icon,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:focus:focus-visible) ::slotted(ld-icon),.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:focus:focus-visible)+.ld-icon,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:focus:focus-visible)+.ld-select__icon{color:var(--ld-select-invalid-icon-col-focus)}.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active) .ld-select__icon,.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active) ::slotted(ld-icon),.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active)+.ld-icon,.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active)+.ld-select__icon,.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active:focus-visible) .ld-select__icon,.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active:focus-visible) ::slotted(ld-icon),.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active:focus-visible)+.ld-icon,.ld-select--invalid .ld-select__btn-trigger--invalid:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active:focus-visible)+.ld-select__icon,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active) .ld-select__icon,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active) ::slotted(ld-icon),.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active)+.ld-icon,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active)+.ld-select__icon,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active:focus-visible) .ld-select__icon,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active:focus-visible) ::slotted(ld-icon),.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active:focus-visible)+.ld-icon,.ld-select--invalid>select:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):where(:active:focus-visible)+.ld-select__icon{color:var(--ld-select-invalid-icon-col-active)}.ld-select__btn-trigger-text-wrapper,.ld-select__selection-list{flex-grow:1}.ld-select__btn-trigger-text-wrapper{align-items:center;display:flex;font:var(--ld-typo-label-m);height:calc(100% + var(--ld-sp-12));line-height:var(--ld-select-trigger-line-height);margin:calc(-1 * var(--ld-sp-6)) 0;overflow:hidden;padding:var(--ld-sp-6) var(--ld-sp-8) var(--ld-sp-6) 0}.ld-select>select,.ld-select__btn-trigger-text,.ld-select__selection-label-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ld-select__selection-list-container{display:flex;flex-direction:column-reverse;gap:var(--ld-sp-6);margin-right:auto}.ld-select__selection-list{display:flex;flex-wrap:wrap;margin:calc(-1 * var(--ld-sp-1)) var(--ld-sp-4) calc(-1 * var(--ld-sp-4)) 0;overflow:hidden;padding:0}.ld-select__selection-list-item{flex:0 1;margin-bottom:var(--ld-sp-4);margin-right:var(--ld-sp-4);width:100%}.ld-select__selection-list-item--overflowing{display:none}.ld-select__selection-list-more{align-items:center;border-radius:var(--ld-br-m);display:inline-flex;font:var(--ld-typo-label-s);font-weight:700;margin-bottom:var(--ld-sp-4);margin-right:var(--ld-sp-4);order:2147483647;padding:var(--ld-sp-4) var(--ld-sp-6)}.ld-select__btn-clear,.ld-select__btn-clear-single{background-color:initial;border:0;border-radius:var(--ld-br-full);line-height:0;padding:0;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.ld-select__btn-clear-single:not(:disabled),.ld-select__btn-clear:not(:disabled){cursor:pointer}.ld-select__btn-clear{flex-shrink:0;margin-right:var(--ld-sp-6)}.ld-select__btn-clear:disabled{color:var(--ld-select-col-disabled)}.ld-select__btn-clear-single{margin-left:var(--ld-sp-6);z-index:1}.ld-select__selection-label{align-items:center;color:var(--ld-select-selection-col);display:inline-flex;font:var(--ld-typo-label-s);font-weight:700;padding:var(--ld-sp-4) var(--ld-sp-6);position:relative;width:100%}.ld-select__selection-label-bg{border-radius:var(--ld-br-m);inset:0;position:absolute}:where(.ld-select__btn-trigger[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))) .ld-select__selection-label-bg{background-color:var(--ld-select-col-disabled)}.ld-select__selection-label-text{z-index:1}.ld-select__btn-clear-single-icon{--ld-select-btn-clear-single-size:0.75rem;height:var(--ld-select-btn-clear-single-size);width:var(--ld-select-btn-clear-single-size)}.ld-select__btn-clear-icon{--ld-select-btn-clear-size:1.25rem;height:var(--ld-select-btn-clear-size);width:var(--ld-select-btn-clear-size)}.ld-select__icon{fill:none;height:var(--ld-sp-16);width:var(--ld-sp-16)}.ld-select ::slotted(ld-icon),.ld-select select+.ld-icon,.ld-select__icon{align-items:center;display:flex;flex-shrink:0;justify-content:center;pointer-events:none}:where(.ld-select__btn-trigger[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))) .ld-select ::slotted(ld-icon),:where(.ld-select__btn-trigger[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))) .ld-select select+.ld-icon,:where(.ld-select__btn-trigger[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))) .ld-select__icon,:where(select:disabled) .ld-select ::slotted(ld-icon),:where(select:disabled) .ld-select select+.ld-icon,:where(select:disabled) .ld-select__icon,:where(select[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))) .ld-select ::slotted(ld-icon),:where(select[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))) .ld-select select+.ld-icon,:where(select[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))) .ld-select__icon{color:var(--ld-select-col-disabled)}.ld-select ::slotted(ld-icon) .ld-icon,.ld-select ::slotted(ld-icon) svg,.ld-select select+.ld-icon .ld-icon,.ld-select select+.ld-icon svg,.ld-select__icon .ld-icon,.ld-select__icon svg{height:100%;width:100%}.ld-select__icon--rotated{transform:rotate(180deg);transform-origin:center}.ld-select__slot-container{display:none}:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) .ld-select__btn-trigger:where(:focus:focus-visible){box-shadow:inset 0 0 0 var(--ld-sp-2) var(--ld-select-thm-col)}@media (hover:hover){:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)).ld-select--ghost :where(.ld-select__btn-trigger):hover:not(:focus),:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)).ld-select--ghost :where(select:not(:disabled)):hover:not(:focus){background-color:var(--ld-select-ghost-trigger-bg-col-hover)}}:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)).ld-select--ghost :where(.ld-select__btn-trigger):active,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)).ld-select--ghost :where(.ld-select__btn-trigger):active:focus-visible,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)).ld-select--ghost :where(select:not(:disabled)):active,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)).ld-select--ghost :where(select:not(:disabled)):active:focus-visible{background-color:var(--ld-select-ghost-trigger-bg-col-focus)}:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger) .ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger) ::slotted(ld-icon),:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger)+.ld-icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger)+.ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)) .ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)) ::slotted(ld-icon),:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled))+.ld-icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled))+.ld-select__icon{color:var(--ld-select-thm-col)}@media (hover:hover){:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:hover) .ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:hover) ::slotted(ld-icon),:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:hover)+.ld-icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:hover)+.ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:hover) .ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:hover) ::slotted(ld-icon),:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:hover)+.ld-icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:hover)+.ld-select__icon{color:var(--ld-select-thm-col-hover)}}:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:focus:focus-visible),:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:focus:focus-visible){box-shadow:inset 0 0 0 var(--ld-sp-2) var(--ld-select-thm-col)}:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:focus:focus-visible) .ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:focus:focus-visible) ::slotted(ld-icon),:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:focus:focus-visible)+.ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:focus:focus-visible) .ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:focus:focus-visible) ::slotted(ld-icon),:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:focus:focus-visible)+.ld-select__icon{color:var(--ld-select-thm-col-focus)}:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:active) .ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:active) ::slotted(ld-icon),:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:active)+.ld-icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:active)+.ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:active:focus-visible) .ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:active:focus-visible) ::slotted(ld-icon),:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:active:focus-visible)+.ld-icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(.ld-select__btn-trigger):where(:active:focus-visible)+.ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:active) .ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:active) ::slotted(ld-icon),:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:active)+.ld-icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:active)+.ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:active:focus-visible) .ld-select__icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:active:focus-visible) ::slotted(ld-icon),:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:active:focus-visible)+.ld-icon,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not(.ld-select--invalid)) :where(select:not(:disabled)):where(:active:focus-visible)+.ld-select__icon{color:var(--ld-select-thm-col-active)}:where(.ld-select:not(.ld-select--disabled)):not(.ld-select--invalid) :where(.ld-select__btn-trigger):where(:focus:focus-visible),:where(.ld-select:not(.ld-select--disabled)):not(.ld-select--invalid) :where(select:not(:disabled)):where(:focus:focus-visible){box-shadow:inset 0 0 0 var(--ld-sp-2) var(--ld-select-thm-col)}:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))) .ld-select__selection-list-more{color:var(--ld-select-thm-col)}:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))) .ld-select__selection-label-bg{background-color:var(--ld-select-thm-col)}:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))) .ld-select__btn-clear-single:where(:focus:focus-visible)+.ld-select__selection-label-bg{background-color:var(--ld-select-thm-col-focus)}:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))) .ld-select__btn-clear-single:where(:active)+.ld-select__selection-label-bg,:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))) .ld-select__btn-clear-single:where(:active:focus-visible)+.ld-select__selection-label-bg{background-color:var(--ld-select-thm-col-active)}:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))) .ld-select__btn-clear{color:var(--ld-select-thm-col)}:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))) .ld-select__btn-clear:where(:focus:focus-visible){color:var(--ld-select-thm-col-focus)}@media (hover:hover){:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))) .ld-select__btn-clear:where(:hover){color:var(--ld-select-thm-col-hover)}}:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))) .ld-select__btn-clear:where(:active),:where(.ld-select:not(.ld-select--disabled):not([aria-disabled]):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))) .ld-select__btn-clear:where(:active:focus-visible){color:var(--ld-select-thm-col-active)}';const m=class{constructor(l){e(this,l);this.ldchange=s(this,"ldchange",7);this.ldinput=s(this,"ldinput",7);this.ldoptioncreate=s(this,"ldoptioncreate",7);this.isObserverEnabled=true;this.optionSelectListenerEnabled=true;this.isDisabled=()=>this.disabled||c(this.ariaDisabled);this.updateTriggerMoreIndicator=(e=false)=>{if(!this.multiple||!this.maxRows)return;if(e)this.hasMore=false;requestAnimationFrame((()=>{var e;if(!this.selectionListRef)return;const l=Array.from(this.selectionListRef.querySelectorAll(".ld-select__selection-list-item"));if(!this.hasMore){(e=this.selectionListRef.querySelector(".ld-select__selection-list-more"))===null||e===void 0?void 0:e.remove();l.forEach((e=>{e.classList.remove("ld-select__selection-list-item--overflowing")}))}if(this.isOverflowing()){let e;if(!this.hasMore){e=document.createElement("li");e.classList.add("ld-select__selection-list-more");this.selectionListRef.prepend(e)}else{e=this.selectionListRef.querySelector(".ld-select__selection-list-more")}this.hasMore=true;const t=this.maxRows*1.75*16;let i=0;l.forEach((e=>{const l=i?true:e.offsetTop>=t;e.classList[l?"add":"remove"]("ld-select__selection-list-item--overflowing");if(l)i++}));const s=()=>{e=this.selectionListRef.querySelector(".ld-select__selection-list-more");e.innerText=`+${i}`;if(e.offsetTop
{s()}))}};s()}}))};this.updatePopperWidth=()=>{this.listboxRef.style.setProperty("width",`${this.selectRef.getBoundingClientRect().width}px`)};this.updatePopperShadowHeight=()=>{const e=this.listboxRef;e.updateShadowHeight(`calc(100% + ${this.triggerRef.getBoundingClientRect().height}px)`)};this.updatePopperTheme=()=>{const e=this.el.closest('[class*="ld-theme-"]');if(!e)return;setTimeout((()=>{var l;this.theme=(l=e.classList.toString().split(" ").find((e=>e.startsWith("ld-theme-"))))===null||l===void 0?void 0:l.substring(9)}))};this.updatePopper=()=>{if(!this.popper)this.initPopper();this.popper.position();this.updatePopperWidth();this.updatePopperShadowHeight();this.updatePopperTheme()};this.initPopper=()=>{const e=typeof this.tetherOptions==="string"?JSON.parse(this.tetherOptions):this.tetherOptions;const l=Object.assign({classPrefix:"ld-tether",element:this.listboxRef,target:this.selectRef,attachment:"top left",targetAttachment:"bottom left",offset:this.mode?"-4px 0":"0 0",constraints:[{to:"window",pin:true}]},e);this.popper=new d(l);this.initPopperObserver();this.listboxRef.classList.add("ld-select__popper--initialized")};this.getOptsRec=e=>{const l=e.flatMap((e=>{if(v(e)){return e}if(f(e)){return this.getOptsRec(Array.from(e.children))}return[]}));return l};this.getInternalOptionHTML=(e,l=false)=>{const t=e.classList.toString();return`${e.innerHTML.replaceAll(/(.|\n|\r)*<\/ld-icon>/g,"")}`};this.getInternalOptgroupHTML=e=>{const l=e.classList.toString();return`${Array.from(e.children).map((l=>this.getInternalOptionHTML(l,e.disabled))).join("")}`};this.initOptions=()=>{const e=this.initialized;const l=Array.from(e?this.internalOptionsContainerRef.children:this.el.children);const t=this.getOptsRec(l);if(!t.length){throw new TypeError("ld-select requires at least one ld-option element as a child, but found none.")}const i=t.filter((e=>e.selected));if(i.length>1&&!this.multiple){throw new TypeError("Multiple selected options are not allowed, if multiple option is not set.")}if(!e){let e="";l.forEach((l=>{if(v(l)){e+=this.getInternalOptionHTML(l)}else if(f(l)){e+=this.getInternalOptgroupHTML(l)}}));this.internalOptionsHTML=e}this.selected=i.map((e=>({value:e.value,html:e.innerHTML,text:e.innerText})));if(this.listboxRef){this.typeAheadHandler.options=this.listboxRef.querySelectorAll("ld-option-internal")}this.updateTriggerMoreIndicator(true)};this.updateSelectedHiddenInputs=e=>{const l=e.map((({value:e})=>e));const t=this.el.querySelectorAll("input");t.forEach((e=>{const t=l.indexOf(e.value);if(t>=0){l.splice(t,1)}else{e.remove()}}));if(e.length===0){this.appendHiddenInput();return}l.forEach(this.appendHiddenInput)};this.appendHiddenInput=e=>{const l=document.createElement("input");l.setAttribute("slot","hidden");l.name=this.name;l.type="hidden";if(e!==undefined){l.value=e}this.el.appendChild(l)};this.handleSlotChange=e=>{if(!this.isObserverEnabled)return;if(!e.some((e=>v(e.target)||f(e.target)))){return}this.initialized=false;const l=[...this.selected];this.initOptions();this.initialized=true;const t=[...this.selected];this.emitEventsAndUpdateHidden(t,l)};this.handlePopperChange=e=>{var l;if(this.listboxRef.classList.contains("ld-tether-enabled")&&e.some((e=>e.oldValue.includes("display: none;")))){let e;if(!this.multiple){e=(l=Array.from(this.listboxRef.querySelectorAll("ld-option-internal")).find((e=>e.hasAttribute("selected"))))===null||l===void 0?void 0:l.shadowRoot.querySelector('[role="option"]')}if(!e){if(this.filter){e=this.getFilterInput()}else{e=this.triggerRef}}e.focus()}};this.initSlotChangeObserver=()=>{this.slotChangeObserver=new MutationObserver(this.handleSlotChange);this.slotChangeObserver.observe(this.el,{subtree:true,childList:true,attributes:true})};this.initPopperObserver=()=>{this.popperObserver=new MutationObserver(this.handlePopperChange);this.popperObserver.observe(this.listboxRef,{subtree:false,childList:false,attributes:true,attributeFilter:["style"],attributeOldValue:true})};this.getFilterInput=()=>this.listboxRef.shadowRoot.querySelector(".ld-select-popper__filter-input");this.togglePopper=()=>{if(!this.popper)this.initPopper();this.expanded=!this.expanded;if(this.expanded){this.popper.enable()}else{this.popper.disable();this.focusInner()}};this.clearSelection=()=>{Array.from(this.listboxRef.querySelectorAll("ld-option-internal")).forEach((e=>{e.selected=false}));this.selected=[]};this.handleHome=e=>{e.preventDefault();this.focusInner()};this.handleEnd=e=>{e.preventDefault();const l=Array.from(this.listboxRef.querySelectorAll("ld-option-internal")).filter((e=>!u(e)));if(document.activeElement!==l[l.length-1]){l[l.length-1].focusInner()}};this.selectAndFocus=(e,l)=>{if(!l)return;if(this.multiple&&e.shiftKey){if(w(document.activeElement)&&!_(document.activeElement)&&!document.activeElement.hasAttribute("selected")){document.activeElement.dispatchEvent(new KeyboardEvent("keydown",{key:" "}))}if(!l.hasAttribute("selected")&&!_(l)){l.dispatchEvent(new KeyboardEvent("keydown",{key:" "}))}}l.focusInner()};this.handleFilterChange=e=>{const l=this.internalOptionsContainerRef.querySelectorAll("ld-option-internal, ld-optgroup-internal");const t=e.detail.trim().toLowerCase();let i=true;let s=false;const d=Array.from(l).filter((e=>{const l=w(e)?e.textContent.toLowerCase():e.label.toLowerCase();const d=Boolean(t)&&!l.includes(t);e.filtered=d;if(l===t){s=true}if(!e.filtered){i=false}return!d}));this.typeAheadHandler.options=d;this.allOptsFiltered=i;this.filterMatchesOpt=s;requestAnimationFrame((()=>{this.updatePopper()}))};this.handleFilterCreate=()=>{if(!this.multiple){const e=this.el.querySelectorAll("ld-option");e.forEach((e=>{e.selected=false}))}const e=this.getFilterInput().value;this.resetFilter();this.ldoptioncreate.emit(e)};this.canCreate=()=>Boolean(this.creatable&&!this.filterMatchesOpt&&this.getFilterInput().value);this.focusPrev=(e,l)=>{if(w(e.previousElementSibling)){if(u(e.previousElementSibling)){this.focusPrev(e.previousElementSibling,l);return}this.selectAndFocus(l,e.previousElementSibling);return}if(_(e.previousElementSibling)){const t=Array.from(e.previousElementSibling.children).at(-1);if(u(t)){this.focusPrev(t,l);return}this.selectAndFocus(l,t);return}const t=w(e)&&e.closest("ld-optgroup-internal");if(t){if(u(t)){this.focusPrev(t,l);return}t.focusInner();return}if(this.filter){this.getFilterInput().focus();return}this.handleHome(l)};this.focusNext=(e,l)=>{if(_(e)){const t=e.children[0];if(u(t)){this.focusNext(t,l);return}this.selectAndFocus(l,t);return}if(w(e.nextElementSibling)){if(u(e.nextElementSibling)){this.focusNext(e.nextElementSibling,l);return}this.selectAndFocus(l,e.nextElementSibling);return}if(_(e.nextElementSibling)){if(u(e.nextElementSibling)){const t=e.nextElementSibling.children[0];if(u(t)){this.focusNext(t,l);return}this.selectAndFocus(l,t);return}this.selectAndFocus(l,e.nextElementSibling);return}const t=w(e)&&e.closest("ld-optgroup-internal");if(t){const e=t.nextElementSibling;if(!e)return;if(u(e)){this.focusNext(e,l);return}e.focusInner()}};this.resetFilter=()=>{this.allOptsFiltered=false;this.filterMatchesOpt=false;if(!this.filter)return;const e=this.getFilterInput();if(!e)return;e.value="";const l=this.internalOptionsContainerRef.querySelectorAll("ld-option-internal, ld-optgroup-internal");l.forEach((e=>{e.filtered=false}));this.typeAheadHandler.options=l;this.listboxRef.resetFilter()};this.handleFocusEvent=e=>{if(e.relatedTarget===null||e.relatedTarget===this.listboxRef||v(e.relatedTarget)||f(e.relatedTarget)||n("ld-select",e.relatedTarget)===this.el){e.stopImmediatePropagation()}else{this.expanded=false;this.resetFilter()}};this.handleTriggerClick=e=>{e.preventDefault();if(this.isDisabled())return;this.togglePopper()};this.handleClearClick=e=>{e.preventDefault();e.stopImmediatePropagation();if(this.isDisabled())return;this.clearSelection();this.focusInner()};this.handleClearSingleClick=(e,l)=>{var t;e.preventDefault();e.stopImmediatePropagation();if(this.isDisabled())return;this.selected=this.selected.filter((e=>e.value!==l));(t=this.listboxRef.querySelector(`ld-option-internal[value='${l}']`))===null||t===void 0?void 0:t.dispatchEvent(new KeyboardEvent("keydown",{key:" "}))};this.ariaDisabled=undefined;this.autofocus=undefined;this.creatable=undefined;this.createInputLabel="Press Enter to create option";this.createButtonLabel="Create option";this.disabled=undefined;this.form=undefined;this.filter=undefined;this.filterPlaceholder="Filter options";this.invalid=undefined;this.ldTabindex=0;this.maxRows=undefined;this.mode=undefined;this.multiple=undefined;this.name=undefined;this.placeholder=undefined;this.popperClass=undefined;this.preventDeselection=undefined;this.required=undefined;this.sanitizeConfig=undefined;this.selected=[];this.size=undefined;this.tetherOptions=undefined;this.allOptsFiltered=false;this.filterMatchesOpt=false;this.expanded=false;this.hasCustomIcon=false;this.hasMore=false;this.initialized=false;this.internalOptionsHTML=undefined;this.renderHiddenInput=false;this.theme=undefined;this.typeAheadHandler=undefined}async focusInner(){if(!this.disabled){this.triggerRef.focus({focusVisible:true})}}emitEventsAndUpdateHidden(e,l){if(!this.initialized)return;const t=e.map((e=>e.value));const i=l.map((e=>e.value));if(JSON.stringify(t)===JSON.stringify(i))return;this.updateTriggerMoreIndicator(true);if(this.renderHiddenInput){this.updateSelectedHiddenInputs(e)}this.isObserverEnabled=false;this.el.querySelectorAll("ld-option").forEach((e=>{e.selected=t.some((l=>l===e.value));if(!e.selected&&e.hidden){this.listboxRef.querySelector(`ld-option-internal[value="${e.value}"]`).remove();e.remove()}}));this.isObserverEnabled=true;this.el.dispatchEvent(new InputEvent("change",{bubbles:true}));this.el.dispatchEvent(new InputEvent("input",{bubbles:true,composed:true}));this.ldchange.emit(t);this.ldinput.emit(t)}isOverflowing(){return this.selectionListRef.scrollHeight>this.selectionListRef.clientHeight+2}updateHiddenInputs(){const e=this.el.querySelectorAll("input");const l=this.el.closest("form");if(!this.name||!(l||this.form)){e.forEach((e=>{e.remove()}));return}if(!e.length){this.updateSelectedHiddenInputs(this.selected);return}e.forEach((e=>{e.name=this.name;if(this.form){e.setAttribute("form",this.form)}}))}handleWindowResize(){if(this.isDisabled())return;this.updatePopperWidth();this.updateTriggerMoreIndicator(true);this.updatePopperShadowHeight()}handleSelect(e){const l=e.target;if(l.closest('[role="listbox"]')!==this.listboxRef)return;if(!this.optionSelectListenerEnabled)return;this.optionSelectListenerEnabled=false;if(!this.multiple){this.listboxRef.querySelectorAll("ld-option-internal").forEach((e=>{if(e!==l.closest("ld-option-internal")){e.selected=false}}));this.togglePopper();if(this.filter){this.resetFilter();this.focusInner()}}this.initOptions();this.optionSelectListenerEnabled=true}handleKeyDown(e){var l;if(this.isDisabled())return;if(e.metaKey&&!["ArrowDown","ArrowUp"].includes(e.key))return;if(document.activeElement.closest('[role="listbox"]')!==this.listboxRef&&document.activeElement.closest("ld-select")!==this.el){return}const t=this.filter&&((l=this.listboxRef)===null||l===void 0?void 0:l.shadowRoot.activeElement)===this.getFilterInput();if(t){if(this.canCreate()&&e.key==="Enter"){this.handleFilterCreate();return}if(!["ArrowDown","ArrowUp","End","Escape","Home","Tab"].includes(e.key)){return}}if(this.el.shadowRoot.activeElement===this.btnClearRef&&(e.key===" "||e.key==="Enter")){return}switch(e.key){case"ArrowDown":{e.preventDefault();if(!this.expanded){this.togglePopper();return}if(e.metaKey){this.handleEnd(e);return}if(document.activeElement===this.el||t){if(this.filter&&!t){this.getFilterInput().focus()}else{const l=Array.from(this.listboxRef.querySelectorAll("ld-option-internal, ld-optgroup-internal")).find((e=>!u(e)));this.selectAndFocus(e,l)}}else{this.focusNext(document.activeElement,e)}break}case"ArrowUp":{e.preventDefault();if(!this.expanded){this.togglePopper();return}if(e.metaKey||t){this.handleHome(e);return}if(w(document.activeElement)||_(document.activeElement)){this.focusPrev(document.activeElement,e)}break}case"Home":if(this.expanded){this.handleHome(e)}break;case"End":if(this.expanded){this.handleEnd(e)}break;case" ":{e.stopImmediatePropagation();e.preventDefault();if(this.expanded){this.togglePopper()}else{this.togglePopper()}break}case"Enter":e.preventDefault();if(this.expanded&&this.el.shadowRoot.activeElement===this.triggerRef){this.togglePopper()}break;case"Escape":if(this.expanded){e.preventDefault();e.stopImmediatePropagation();this.togglePopper()}break;case"Tab":if(this.expanded&&document.activeElement.closest('[role="listbox"]')===this.listboxRef){e.preventDefault();e.stopImmediatePropagation()}break;default:if(this.expanded){e.stopImmediatePropagation();e.preventDefault();this.typeAheadHandler.typeAhead(e.key)}}}handleClickOutside(e){const l="composedPath"in e?e.composedPath().at(0):e.target;if(e.isTrusted&&n("ld-select",l)!==this.el&&n('[role="listbox"]',l)!==this.listboxRef){this.expanded=false;this.resetFilter()}}handleTouchOutside(e){this.handleClickOutside(e)}componentWillLoad(){const e=this.el.closest("form");if(this.name&&(e||this.form)){this.renderHiddenInput=true}const l=this.el.querySelector("ld-icon");this.hasCustomIcon=!!l;if(l){l.setAttribute("size",this.size)}this.initOptions();if(this.renderHiddenInput){this.updateSelectedHiddenInputs(this.selected)}r(this.autofocus)}componentDidLoad(){setTimeout((()=>{this.initSlotChangeObserver();this.typeAheadHandler=new o(this.listboxRef.querySelectorAll("ld-option-internal"));this.initialized=true}))}componentDidUpdate(){if(this.expanded){this.updatePopper()}}disconnectedCallback(){if(this.popperObserver)this.popperObserver.disconnect();if(this.popper)this.popper.destroy();if(this.slotChangeObserver)this.slotChangeObserver.disconnect();if(this.listboxRef)this.listboxRef.remove();if(this.typeAheadHandler)this.typeAheadHandler.clearTimeout()}render(){var e,i,s;const d=!!this.mode;const r=this.mode==="inline"||this.mode==="ghost";const n=!this.multiple&&this.mode==="ghost";const o=["ld-select",this.disabled&&"ld-select--disabled",this.size&&`ld-select--${this.size}`,this.invalid&&"ld-select--invalid",this.expanded&&"ld-select--expanded",d&&"ld-select--detached",r&&"ld-select--inline",n&&"ld-select--ghost"];const b=["ld-select__btn-trigger",this.invalid&&"ld-select__btn-trigger--invalid",d&&"ld-select__btn-trigger--detached",r&&"ld-select__btn-trigger--inline",n&&"ld-select__btn-trigger--ghost"];const p=["ld-select__icon",this.expanded&&"ld-select__icon--rotated"];const v=this.multiple?this.placeholder:((e=this.selected[0])===null||e===void 0?void 0:e.html)||this.placeholder;const f=this.multiple?this.placeholder:((i=this.selected[0])===null||i===void 0?void 0:i.text)||this.placeholder;return l(t,null,l("div",{class:a(o),"aria-disabled":this.isDisabled()?"true":undefined,part:"root",onBlur:this.handleFocusEvent,onFocusout:this.handleFocusEvent,style:this.expanded?{zIndex:"2147483647"}:undefined},this.renderHiddenInput&&l("slot",{name:"hidden"}),l("div",{class:"ld-select__slot-container",part:"slot-container"},l("slot",null)),l("div",{class:"ld-select__select",part:"select",ref:e=>this.selectRef=e},l("div",{class:a(b),role:"button",part:"btn-trigger focusable",tabindex:this.disabled&&!c(this.ariaDisabled)?undefined:this.ldTabindex,"aria-disabled":this.isDisabled()?"true":undefined,"aria-haspopup":"listbox","aria-expanded":this.expanded?"true":"false","aria-label":f,onClick:this.handleTriggerClick,ref:e=>this.triggerRef=e},this.multiple&&this.selected.length?l("div",{class:"ld-select__selection-list-container",part:"selection-list-container"},l("ul",{class:"ld-select__selection-list",part:"selection-list","aria-label":"Selected options",ref:e=>this.selectionListRef=e,style:{maxHeight:this.maxRows&&this.maxRows>0?`${this.maxRows*1.75}rem`:undefined}},this.selected.map(((e,t)=>l("li",{key:t,class:"ld-select__selection-list-item",style:{order:t+1+""},part:"selection-list-item"},l("label",{class:"ld-select__selection-label"},l("span",{class:"ld-select__selection-label-text",title:e.text,part:"selection-label-text",innerHTML:h(e.html,this.sanitizeConfig)}),l("button",{disabled:this.isDisabled()?true:undefined,class:"ld-select__btn-clear-single",part:"btn-clear-single focusable",onClick:l=>{this.handleClearSingleClick.call(this,l,e.value)}},l("svg",{class:"ld-select__btn-clear-single-icon",part:"icon-clear-single",fill:"none",viewBox:"0 0 12 12"},l("title",null,"Clear"),l("path",{stroke:"#fff","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M2 2l8 8M2 10l8-8"}))),l("span",{class:"ld-select__selection-label-bg",part:"selection-label-bg"}))))))):l("span",{class:"ld-select__btn-trigger-text-wrapper",title:f,part:"trigger-text-wrapper"},l("span",{class:"ld-select__btn-trigger-text",part:"trigger-text",innerHTML:h(v,this.sanitizeConfig)})),((s=this.selected)===null||s===void 0?void 0:s.length)&&this.multiple?l("button",{class:"ld-select__btn-clear",disabled:this.isDisabled()?true:undefined,onClick:this.handleClearClick,ref:e=>this.btnClearRef=e,part:"btn-clear focusable"},l("svg",{class:"ld-select__btn-clear-icon",fill:"none",viewBox:"0 0 21 20",part:"icon-clear"},l("title",null,"Clear all"),l("path",{fill:"currentColor","fill-rule":"evenodd",d:"M10 20a10 10 0 100-20 10 10 0 000 20z","clip-rule":"evenodd"}),l("path",{stroke:"#fff","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6.67 6.67l6.67 6.66M6.67 13.33l6.67-6.66"}))):"",l("slot",{name:"icon"}),!this.hasCustomIcon&&l("svg",{class:a(p),role:"presentation",viewBox:"0 0 16 16",part:"trigger-icon"},l("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",d:"M3 6l5 4 5-4"})))),l("ld-select-popper",{allOptionsFiltered:this.allOptsFiltered,creatable:this.creatable,createButtonLabel:this.createButtonLabel,createInputLabel:this.createInputLabel,detached:d,expanded:this.expanded,filter:this.filter,filterMatchesOption:this.filterMatchesOpt,filterPlaceholder:this.filterPlaceholder,onBlur:this.handleFocusEvent,onFocusout:this.handleFocusEvent,onLdselectfilterchange:this.handleFilterChange,onLdselectfiltercreate:this.handleFilterCreate,popperClass:this.popperClass,ref:e=>this.listboxRef=e,role:"listbox",size:this.size,theme:this.theme},l("div",{ref:e=>this.internalOptionsContainerRef=e,innerHTML:h(this.internalOptionsHTML,Object.assign(Object.assign({},typeof this.sanitizeConfig==="string"?JSON.parse(this.sanitizeConfig):this.sanitizeConfig),{ADD_ATTR:["prevent-deselection"]})),part:"options-container"}))))}get el(){return i(this)}static get watchers(){return{selected:["emitEventsAndUpdateHidden"],name:["updateHiddenInputs"],form:["updateHiddenInputs"]}}};m.style=g;const x=":host{--ld-select-popper-min-width:12.8125rem;--ld-select-popper-max-height:min(23.75rem,75vh - 1.25rem);--ld-select-popper-border-col:var(--ld-col-neutral-100);min-width:var(--ld-select-popper-min-width)}.ld-select-popper{min-width:100%}.ld-select-popper:not(.ld-select-popper--expanded){display:none}.ld-select-popper ::slotted(.ld-select__shadow){border-radius:var(--ld-br-m);box-shadow:var(--ld-shadow-sticky);display:block;height:100%;pointer-events:none;position:absolute;width:100%;z-index:-1}.ld-select-popper__scroll-container{border-bottom-left-radius:var(--ld-br-m);border-bottom-right-radius:var(--ld-br-m);border-top:solid var(--ld-select-popper-border-col) var(--ld-sp-1);max-height:var(--ld-select-popper-max-height);overflow-y:auto;overscroll-behavior:contain}.ld-select-popper--detached:not(.ld-select-popper--filter) .ld-select-popper__scroll-container,.ld-select-popper--pinned:not(.ld-select-popper--filter) .ld-select-popper__scroll-container{border-radius:var(--ld-br-m);border-top:0}.ld-select-popper--all-filtered .ld-select-popper__scroll-container{border-top:0}.ld-select-popper__shadow{border-radius:var(--ld-br-m);bottom:0;box-shadow:var(--ld-shadow-sticky);height:calc(100% + var(--ld-select-min-height-md));pointer-events:none;position:absolute;width:100%;z-index:-1}.ld-select-popper--detached .ld-select-popper__shadow{height:100%!important}.ld-select-popper__filter-container{align-items:center;background-color:var(--ld-col-wht);border-top:solid var(--ld-col-neutral-100) var(--ld-sp-1);color:var(--ld-col-neutral-900);display:grid;font:var(--ld-typo-label-m);grid-template-columns:1fr auto}.ld-select-popper--detached .ld-select-popper__filter-container,.ld-select-popper--pinned .ld-select-popper__filter-container{border-top:0;border-top-left-radius:var(--ld-br-m);border-top-right-radius:var(--ld-br-m)}.ld-select-popper--all-filtered .ld-select-popper__filter-container{border-bottom-left-radius:var(--ld-br-m);border-bottom-right-radius:var(--ld-br-m)}.ld-select-popper__create-button{font:var(--ld-typo-label-s);line-height:var(--ld-select-trigger-line-height);margin-right:var(--ld-sp-8)}.ld-select-popper__create-button::part(button){--ld-button-padding-x-sm:var(--ld-sp-6);--ld-button-padding-y-sm:var(--ld-sp-4);min-height:0;min-width:0}.ld-select-popper__filter-input{-webkit-appearance:none;appearance:none;background-color:initial;border:0;box-sizing:border-box;color:inherit;font:inherit;height:2.5rem;line-height:var(--ld-select-trigger-line-height);outline:none;padding:var(--ld-sp-8) var(--ld-sp-12);width:100%}.ld-select-popper__filter-input::placeholder{color:var(--ld-col-neutral-600)}.ld-select-popper--detached .ld-select-popper__filter-input,.ld-select-popper--pinned .ld-select-popper__filter-input{border-top:0;border-top-left-radius:var(--ld-br-m);border-top-right-radius:var(--ld-br-m)}";const y=class{constructor(l){e(this,l);this.ldselectfilterchange=s(this,"ldselectfilterchange",7);this.ldselectfiltercreate=s(this,"ldselectfiltercreate",7);this.handleFilterInput=e=>{this.filterInputValue=e.target.value;this.ldselectfilterchange.emit(e.target.value)};this.handleCreate=e=>{e.preventDefault();const l=this.filterInputValue;this.filterInputValue="";this.ldselectfiltercreate.emit(l)};this.allOptionsFiltered=undefined;this.class=undefined;this.creatable=undefined;this.createInputLabel=undefined;this.createButtonLabel=undefined;this.detached=undefined;this.expanded=false;this.filter=undefined;this.filterMatchesOption=undefined;this.filterPlaceholder=undefined;this.popperClass=undefined;this.size=undefined;this.theme=undefined;this.isPinned=false;this.shadowHeight="100%";this.filterInputValue="";this.canCreate=false}updateCanCreate(){this.canCreate=Boolean(this.creatable&&!this.filterMatchesOption&&this.filterInputValue)}updatePinnedState(){this.isPinned=this.el.classList.contains("ld-tether-pinned")}updatePopperTheme(e,l){this.el.classList.remove(`ld-theme-${l}`);if(e)this.el.classList.add(`ld-theme-${e}`)}updateFilter(e){if(!e){this.resetFilter()}}async updateShadowHeight(e){this.shadowHeight=e}async resetFilter(){this.filterInputValue=""}componentWillLoad(){this.popperClass&&this.el.classList.add(this.popperClass)}render(){return l(t,{style:{zIndex:this.isPinned?"2147483647":"2147483646",display:this.expanded?"block":"none"}},l("div",{class:a(["ld-select-popper",this.detached&&"ld-select-popper--detached",this.expanded&&"ld-select-popper--expanded",this.filter&&"ld-select-popper--filter",this.allOptionsFiltered&&"ld-select-popper--all-filtered",this.isPinned&&"ld-select-popper--pinned",this.size&&`ld-select-popper--${this.size}`]),part:"popper"},this.filter&&l("div",{class:"ld-select-popper__filter-container"},l("input",{"aria-haspopup":this.allOptionsFiltered?undefined:"listbox","aria-label":this.canCreate?this.createInputLabel:undefined,type:"text",placeholder:this.filterPlaceholder,class:"ld-select-popper__filter-input",part:"filter-input focusable",onInput:this.handleFilterInput}),this.canCreate&&l("ld-button",{onClick:this.handleCreate,size:"sm",class:"ld-select-popper__create-button","aria-label":this.createButtonLabel},l("ld-icon",{class:"ld-select-popper__create-icon",role:"presentation",size:"sm"},l("svg",{viewBox:"-1 -1 24 24",fill:"none"},l("path",{d:"M2.5 11h17M11 19.5v-17",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}))))),l("div",{class:"ld-select-popper__scroll-container",part:"popper-scroll-container"},l("slot",null),l("div",{class:"ld-select-popper__shadow",style:{height:this.isPinned?"100%":this.shadowHeight},part:"shadow"}))))}get el(){return i(this)}static get watchers(){return{creatable:["updateCanCreate"],filterMatchesOption:["updateCanCreate"],filterInputValue:["updateCanCreate"],class:["updatePinnedState"],theme:["updatePopperTheme"],expanded:["updateFilter"]}}};y.style=x;export{p as ld_option,m as ld_select,y as ld_select_popper};
-//# sourceMappingURL=p-236dbb56.entry.js.map
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-236dbb56.entry.js.map b/1704966176737/dist/build/p-236dbb56.entry.js.map
deleted file mode 100644
index db8e9b2ff1..0000000000
--- a/1704966176737/dist/build/p-236dbb56.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldOptionShadowCss","LdOption","componentWillLoad","this","selected","el","setAttribute","render","h","Host","isLdOption","includes","tagName","isLdOptgroup","isLdOptionInternal","isLdOptgroupInternal","isLdOptInternalHidden","opt","hidden","filtered","ldSelectCss","LdSelect","isObserverEnabled","optionSelectListenerEnabled","isDisabled","disabled","isAriaDisabled","ariaDisabled","updateTriggerMoreIndicator","refresh","multiple","maxRows","hasMore","requestAnimationFrame","selectionListRef","selectionListItems","Array","from","querySelectorAll","_a","querySelector","remove","forEach","classList","isOverflowing","moreItem","document","createElement","add","prepend","maxOffset","overflowingTotal","overflowing","offsetTop","hideLastVisibleIfMoreIndicatorOverflowing","innerText","notOverflowing","lastNotOverflowing","slice","updatePopperWidth","listboxRef","style","setProperty","selectRef","getBoundingClientRect","width","updatePopperShadowHeight","ldPopper","updateShadowHeight","triggerRef","height","updatePopperTheme","themeEl","closest","setTimeout","theme","toString","split","find","cl","startsWith","substring","updatePopper","popper","initPopper","position","customTetherOptions","tetherOptions","JSON","parse","Object","assign","classPrefix","element","target","attachment","targetAttachment","offset","mode","constraints","to","pin","Tether","initPopperObserver","getOptsRec","children","options","flatMap","child","getInternalOptionHTML","ldOption","optgroupDisabled","classStr","size","preventDeselection","value","innerHTML","replaceAll","getInternalOptgroupHTML","ldOptgroup","label","map","join","initOptions","initialized","internalOptionsContainerRef","length","TypeError","selectedOptions","filter","internalOptionsHTML","html","text","typeAheadHandler","updateSelectedHiddenInputs","selectedValues","inputs","hiddenInput","index","indexOf","splice","appendHiddenInput","name","type","undefined","appendChild","handleSlotChange","mutationsList","some","record","oldValues","newValues","emitEventsAndUpdateHidden","handlePopperChange","contains","mutation","oldValue","toFocus","hasAttribute","shadowRoot","getFilterInput","focus","initSlotChangeObserver","slotChangeObserver","MutationObserver","observe","subtree","childList","attributes","popperObserver","attributeFilter","attributeOldValue","togglePopper","expanded","enable","disable","focusInner","clearSelection","option","handleHome","ev","preventDefault","handleEnd","visibleOptions","activeElement","selectAndFocus","shiftKey","dispatchEvent","KeyboardEvent","key","handleFilterChange","opts","query","detail","trim","toLowerCase","allFiltered","filterMatchesOpt","filteredOpts","optTextLower","textContent","Boolean","allOptsFiltered","handleFilterCreate","resetFilter","ldoptioncreate","emit","canCreate","creatable","focusPrev","current","previousElementSibling","lastInOptgroup","at","closestOptgroup","focusNext","firstInOptgroup","nextElementSibling","next","filterInput","handleFocusEvent","relatedTarget","stopImmediatePropagation","handleTriggerClick","handleClearClick","handleClearSingleClick","optionValue","selection","focusVisible","newSelection","oldSelection","stringify","renderHiddenInput","InputEvent","bubbles","composed","ldchange","ldinput","scrollHeight","clientHeight","updateHiddenInputs","hiddenInputs","outerForm","form","handleWindowResize","handleSelect","handleKeyDown","metaKey","filterHasFocus","btnClearRef","nextOpt","typeAhead","handleClickOutside","composedPath","isTrusted","handleTouchOutside","customIcon","hasCustomIcon","registerAutofocus","autofocus","componentDidLoad","TypeAheadHandler","componentDidUpdate","disconnectedCallback","disconnect","destroy","clearTimeout","detached","inline","ghost","invalid","triggerCl","triggerIconCl","triggerHtml","placeholder","triggerText","_b","class","getClassNames","part","onBlur","onFocusout","zIndex","ref","role","tabindex","ldTabindex","onClick","maxHeight","order","title","sanitize","sanitizeConfig","call","fill","viewBox","stroke","d","_c","allOptionsFiltered","createButtonLabel","createInputLabel","filterMatchesOption","filterPlaceholder","onLdselectfilterchange","onLdselectfiltercreate","popperClass","ADD_ATTR","ldSelectPopperShadowCss","LdSelectPopper","handleFilterInput","filterInputValue","ldselectfilterchange","handleCreate","ldselectfiltercreate","updateCanCreate","updatePinnedState","isPinned","newValue","updateFilter","newExpanded","shadowHeight","display","onInput"],"sources":["../src/liquid/components/ld-select/ld-option/ld-option.shadow.css?tag=ld-option&encapsulation=shadow","../src/liquid/components/ld-select/ld-option/ld-option.tsx","../src/liquid/components/ld-select/utils/type-guards.ts","../src/liquid/components/ld-select/ld-select.css?tag=ld-select&encapsulation=shadow","../src/liquid/components/ld-select/ld-select.tsx","../src/liquid/components/ld-select/ld-select-popper/ld-select-popper.shadow.css?tag=ld-select-popper&encapsulation=shadow","../src/liquid/components/ld-select/ld-select-popper/ld-select-popper.tsx"],"sourcesContent":[null,"import { Component, h, Host, Prop, Element } from '@stencil/core'\n\n/**\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n */\n@Component({\n tag: 'ld-option',\n styleUrl: 'ld-option.shadow.css',\n shadow: true,\n})\nexport class LdOption {\n @Element() el: HTMLElement\n\n /**\n * The content of this attribute represents the value to be submitted with the form,\n * should this option be selected. If this attribute is omitted, the value is taken\n * from the text content of the option element.\n */\n @Prop() value?: string\n\n /** If present, this boolean attribute indicates that the option is selected. */\n @Prop() selected?: boolean\n\n /** Disables the option. */\n @Prop() disabled?: boolean\n\n /**\n * @internal\n * Set to true on filtering via select input.\n */\n @Prop() filtered? = false\n\n componentWillLoad() {\n // Setting selected via prop directly triggers the mutation observer to fire twice on attribute chage.\n // This is indeed only true for the selected attribute. The disabled attribute works fine when assigned directly.\n if (this.selected) {\n this.el.setAttribute('selected', '')\n }\n }\n\n render() {\n return (\n \n \n \n )\n }\n}\n","export const isLdOption = (\n el: HTMLElement | Node | EventTarget\n): el is HTMLLdOptionElement | HTMLLdOptionInternalElement =>\n ['LD-OPTION', 'LD-OPTION-INTERNAL'].includes((el as HTMLElement)?.tagName)\n\nexport const isLdOptgroup = (\n el: HTMLElement | Node | EventTarget\n): el is HTMLLdOptgroupElement | HTMLLdOptgroupInternalElement =>\n ['LD-OPTGROUP', 'LD-OPTGROUP-INTERNAL'].includes((el as HTMLElement)?.tagName)\n\nexport const isLdOptionInternal = (\n el: HTMLElement | Node | EventTarget\n): el is HTMLLdOptionInternalElement =>\n ['LD-OPTION-INTERNAL'].includes((el as HTMLElement)?.tagName)\n\nexport const isLdOptgroupInternal = (\n el: HTMLElement | Node | EventTarget\n): el is HTMLLdOptgroupInternalElement =>\n ['LD-OPTGROUP-INTERNAL'].includes((el as HTMLElement)?.tagName)\n\ntype HTMLLdOptInternal =\n | HTMLLdOptionInternalElement\n | HTMLLdOptgroupInternalElement\nexport const isLdOptInternalHidden = (\n opt: HTMLLdOptInternal\n): opt is\n | (HTMLLdOptInternal & {\n hidden: true\n })\n | (HTMLLdOptInternal & {\n filtered: true\n }) => {\n return opt.hidden || opt.filtered\n}\n",":host {\n display: inline-flex;\n\n .ld-select {\n flex-grow: 1;\n max-width: 100%;\n }\n}\n\n:host,\n.ld-select {\n /* reset */\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n ul {\n list-style: none;\n }\n}\n\n.ld-select {\n /* layout */\n --ld-select-min-width: 12.8125rem;\n --ld-select-min-height: var(--ld-sp-40);\n --ld-select-min-height-sm: var(--ld-sp-32);\n --ld-select-min-height-lg: 3.125rem;\n --ld-select-padding-x: var(--ld-sp-12);\n --ld-select-padding-x-sm: 0.625rem;\n --ld-select-padding-x-lg: 0.875rem;\n --ld-select-padding-y: var(--ld-sp-8);\n --ld-select-padding-y-sm: var(--ld-sp-4);\n --ld-select-padding-y-lg: var(--ld-sp-8);\n --ld-select-padding-right: calc(var(--ld-sp-40) + var(--ld-sp-12));\n --ld-select-padding-right-sm: calc(var(--ld-sp-40) + 0.625rem);\n --ld-select-padding-right-lg: calc(var(--ld-sp-40) + 0.875rem);\n --ld-select-icon-size: 1.25rem;\n --ld-select-icon-size-sm: var(--ld-sp-16);\n --ld-select-icon-size-lg: var(--ld-sp-24);\n --ld-select-trigger-line-height: 1.25;\n\n &--sm {\n --ld-select-min-height: var(--ld-select-min-height-sm);\n --ld-select-padding-x: var(--ld-select-padding-x-sm);\n --ld-select-padding-y: var(--ld-select-padding-y-sm);\n --ld-select-padding-right: var(--ld-select-padding-right-sm);\n --ld-select-icon-size: var(--ld-select-icon-size-sm);\n }\n\n &--lg {\n --ld-select-min-height: var(--ld-select-min-height-lg);\n --ld-select-padding-x: var(--ld-select-padding-x-lg);\n --ld-select-padding-y: var(--ld-select-padding-y-lg);\n --ld-select-padding-right: var(--ld-select-padding-right-lg);\n --ld-select-icon-size: var(--ld-select-icon-size-lg);\n }\n\n /* colors */\n --ld-select-col: var(--ld-col-neutral-900);\n --ld-select-col-disabled: var(--ld-col-neutral-100);\n --ld-select-col-border: var(--ld-col-neutral-100);\n --ld-select-col-border-hover: var(--ld-col-neutral-300);\n --ld-select-bg-col: var(--ld-col-wht);\n --ld-select-selection-col: var(--ld-col-wht);\n\n /* themable colors */\n --ld-select-invalid-col: var(--ld-thm-error);\n --ld-select-invalid-icon-col-hover: var(--ld-thm-error-hover);\n --ld-select-invalid-icon-col-focus: var(--ld-thm-error-focus);\n --ld-select-invalid-icon-col-active: var(--ld-thm-error-active);\n --ld-select-invalid-disabled-bg-col: var(--ld-thm-error-disabled);\n --ld-select-thm-col: var(--ld-thm-primary);\n --ld-select-thm-col-hover: var(--ld-thm-primary-hover);\n --ld-select-thm-col-focus: var(--ld-thm-primary-focus);\n --ld-select-thm-col-active: var(--ld-thm-primary-active);\n --ld-select-ghost-trigger-bg-col-hover: var(--ld-thm-primary-alpha-lowest);\n --ld-select-ghost-trigger-bg-col-focus: var(--ld-thm-primary-alpha-low);\n\n display: inline-flex;\n position: relative;\n\n select + .ld-icon,\n ::slotted(ld-icon) {\n width: var(--ld-select-icon-size);\n height: var(--ld-select-icon-size);\n }\n\n ::slotted(ld-icon) {\n display: contents !important;\n }\n\n select {\n + .ld-icon,\n + .ld-select__icon {\n position: absolute;\n right: var(--ld-select-padding-x);\n top: 50%;\n transform: translateY(-50%);\n }\n\n &[multiple] + .ld-icon,\n &[multiple] + .ld-select__icon {\n display: none;\n }\n\n + .ld-icon {\n width: var(--ld-select-icon-size);\n height: var(--ld-select-icon-size);\n }\n }\n\n > select[multiple] {\n overflow: auto;\n }\n}\n\n/* Mobile Safari (iOS only) */\n/* stylelint-disable-next-line media-feature-range-notation, media-feature-name-no-vendor-prefix */\n@media screen and (max-width: 767px) and (-webkit-min-device-pixel-ratio: 0) {\n .ld-select > select[multiple] {\n padding-right: calc(var(--ld-select-padding-x) + var(--ld-sp-24));\n\n + .ld-icon,\n + .ld-select__icon {\n display: flex;\n }\n }\n}\n\n.ld-select--expanded {\n .ld-tether-target-attached-bottom {\n .ld-select__btn-trigger:not(.ld-select__btn-trigger--detached) {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n}\n\n:where(.ld-select:not(.ld-select--inline, .ld-select--ghost)) {\n min-width: var(--ld-select-min-width);\n}\n\n.ld-select__select,\n.ld-select__btn-trigger {\n width: 100%;\n}\n\n.ld-select > select,\n.ld-select__btn-trigger {\n /* outline: none; */\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n font: var(--ld-typo-body-m);\n line-height: var(--ld-select-trigger-line-height);\n border: 0;\n padding: var(--ld-select-padding-y) var(--ld-select-padding-x);\n border-radius: var(--ld-br-m);\n height: 100%;\n user-select: none;\n touch-action: manipulation;\n color: var(--ld-select-col);\n background-color: var(--ld-select-bg-col);\n text-align: left;\n appearance: none;\n -webkit-touch-callout: none;\n\n &:where(select) {\n width: 100%;\n }\n\n &:where(select:not([multiple])) {\n padding-right: calc(var(--ld-select-padding-x) + var(--ld-sp-24));\n }\n\n &:where(\n select:not(\n :disabled,\n [aria-disabled]:where(\n :not([aria-disabled=''], [aria-disabled='false'])\n )\n )\n ),\n &:where(\n .ld-select__btn-trigger:not(\n [aria-disabled]:where(\n :not([aria-disabled=''], [aria-disabled='false'])\n )\n )\n ) {\n cursor: pointer;\n }\n\n &:where([aria-expanded='true']) {\n z-index: 2;\n\n &:not(:focus:focus-visible, .ld-select__btn-trigger--detached) {\n box-shadow: none;\n }\n }\n\n &:disabled,\n &:disabled + .ld-select__icon,\n &:disabled + .ld-icon,\n &:where(\n [aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false']))\n ),\n &:where(\n [aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false']))\n )\n + .ld-select__icon,\n &:where(\n [aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false']))\n )\n + .ld-icon {\n color: var(--ld-select-col-disabled);\n }\n}\n\n.ld-select__btn-trigger {\n overflow: hidden;\n}\n\n:where(.ld-select),\n:where(.ld-select) > select {\n min-height: var(--ld-select-min-height);\n}\n\n.ld-select--ghost {\n &:not(ld-select),\n select,\n .ld-select__btn-trigger {\n background-color: transparent;\n }\n\n select,\n .ld-select__btn-trigger {\n &:not(:focus) {\n box-shadow: none;\n }\n }\n}\n\n.ld-select:where(:not(.ld-select--ghost)) {\n &:where(.ld-select--detached),\n &:where(:not(.ld-select--detached, .ld-select--expanded)) {\n :where(select),\n :where(.ld-select__btn-trigger) {\n box-shadow: inset 0 0 0 var(--ld-sp-2) var(--ld-select-col-border);\n }\n }\n\n &:where(:not(.ld-select--invalid)) {\n select,\n .ld-select__btn-trigger {\n &:where(\n .ld-select__btn-trigger--detached:not(\n :disabled,\n [aria-disabled]:where(\n :not([aria-disabled=''], [aria-disabled='false'])\n )\n )\n ),\n &:where(\n :not(\n :disabled,\n [aria-disabled]:where(\n :not([aria-disabled=''], [aria-disabled='false'])\n ),\n .ld-select__btn-trigger--detached,\n [aria-expanded='true']\n )\n ) {\n @media (hover: hover) {\n &:hover:not(:focus:focus-visible) {\n box-shadow: inset 0 0 0 var(--ld-sp-2)\n var(--ld-select-col-border-hover);\n }\n }\n }\n }\n }\n}\n\n.ld-select--invalid > select,\n.ld-select--invalid .ld-select__btn-trigger--invalid {\n &:where(:not(:disabled)) {\n &:where(:focus:focus-visible) {\n box-shadow: inset 0 0 0 var(--ld-sp-2) var(--ld-select-invalid-col);\n }\n }\n\n &:where(\n :not(\n :disabled,\n [aria-disabled]:where(\n :not([aria-disabled=''], [aria-disabled='false'])\n )\n )\n ) {\n &:where(:not(:focus:focus-visible)) {\n background-color: var(--ld-select-invalid-disabled-bg-col);\n color: var(--ld-select-invalid-col);\n }\n\n &:where(:not(.ld-select__btn-trigger--ghost)) {\n box-shadow: inset 0 0 0 var(--ld-sp-2) var(--ld-select-invalid-col);\n }\n\n + .ld-icon,\n + .ld-select__icon,\n .ld-select__icon {\n color: var(--ld-select-invalid-col);\n }\n\n @media (hover: hover) {\n &:hover {\n box-shadow: inset 0 0 0 var(--ld-sp-2) var(--ld-select-invalid-col);\n\n + .ld-icon,\n + .ld-select__icon,\n .ld-select__icon,\n ::slotted(ld-icon) {\n color: var(--ld-select-invalid-icon-col-hover);\n }\n }\n }\n &:where(:focus:focus-visible) {\n + .ld-icon,\n + .ld-select__icon,\n .ld-select__icon,\n ::slotted(ld-icon) {\n color: var(--ld-select-invalid-icon-col-focus);\n }\n }\n &:where(:active),\n &:where(:active:focus-visible) {\n + .ld-icon,\n + .ld-select__icon,\n .ld-select__icon,\n ::slotted(ld-icon) {\n color: var(--ld-select-invalid-icon-col-active);\n }\n }\n }\n}\n\n.ld-select__btn-trigger-text-wrapper,\n.ld-select__selection-list {\n flex-grow: 1;\n}\n\n.ld-select__btn-trigger-text-wrapper {\n font: var(--ld-typo-label-m);\n line-height: var(--ld-select-trigger-line-height);\n padding: var(--ld-sp-6) var(--ld-sp-8) var(--ld-sp-6) 0;\n height: calc(100% + var(--ld-sp-12));\n margin: calc(-1 * var(--ld-sp-6)) 0;\n display: flex;\n align-items: center;\n overflow: hidden;\n}\n\n.ld-select > select,\n.ld-select__btn-trigger-text,\n.ld-select__selection-label-text {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.ld-select__selection-list-container {\n display: flex;\n flex-direction: column-reverse;\n gap: var(--ld-sp-6);\n margin-right: auto;\n}\n\n.ld-select__selection-list {\n display: flex;\n flex-wrap: wrap;\n margin: calc(-1 * var(--ld-sp-1)) var(--ld-sp-4) calc(-1 * var(--ld-sp-4)) 0;\n overflow: hidden;\n padding: 0;\n}\n\n.ld-select__selection-list-item {\n flex: 0 1;\n margin-right: var(--ld-sp-4);\n margin-bottom: var(--ld-sp-4);\n width: 100%;\n}\n\n.ld-select__selection-list-item--overflowing {\n display: none;\n}\n\n.ld-select__selection-list-more {\n order: 2147483647; /* Highest possible */\n display: inline-flex;\n align-items: center;\n font: var(--ld-typo-label-s);\n font-weight: 700;\n padding: var(--ld-sp-4) var(--ld-sp-6);\n border-radius: var(--ld-br-m);\n margin-right: var(--ld-sp-4);\n margin-bottom: var(--ld-sp-4);\n}\n\n.ld-select__btn-clear-single,\n.ld-select__btn-clear {\n /* outline: none; */\n border: 0;\n padding: 0;\n border-radius: var(--ld-br-full);\n user-select: none;\n touch-action: manipulation;\n background-color: transparent;\n line-height: 0;\n -webkit-touch-callout: none;\n\n &:not(:disabled) {\n cursor: pointer;\n }\n}\n\n.ld-select__btn-clear {\n margin-right: var(--ld-sp-6);\n flex-shrink: 0;\n\n &:disabled {\n color: var(--ld-select-col-disabled);\n }\n}\n\n.ld-select__btn-clear-single {\n z-index: 1;\n margin-left: var(--ld-sp-6);\n}\n\n.ld-select__selection-label {\n position: relative;\n width: 100%;\n display: inline-flex;\n align-items: center;\n color: var(--ld-select-selection-col);\n font: var(--ld-typo-label-s);\n font-weight: 700;\n padding: var(--ld-sp-4) var(--ld-sp-6);\n}\n\n.ld-select__selection-label-bg {\n position: absolute;\n inset: 0;\n border-radius: var(--ld-br-m);\n\n :where(\n .ld-select__btn-trigger[aria-disabled]:where(\n :not([aria-disabled=''], [aria-disabled='false'])\n )\n )\n & {\n background-color: var(--ld-select-col-disabled);\n }\n}\n\n.ld-select__selection-label-text {\n z-index: 1;\n}\n\n.ld-select__btn-clear-single-icon {\n --ld-select-btn-clear-single-size: 0.75rem;\n width: var(--ld-select-btn-clear-single-size);\n height: var(--ld-select-btn-clear-single-size);\n}\n\n.ld-select__btn-clear-icon {\n --ld-select-btn-clear-size: 1.25rem;\n width: var(--ld-select-btn-clear-size);\n height: var(--ld-select-btn-clear-size);\n}\n\n.ld-select__icon {\n fill: none;\n width: var(--ld-sp-16);\n height: var(--ld-sp-16);\n}\n\n.ld-select select + .ld-icon,\n.ld-select__icon,\n.ld-select ::slotted(ld-icon) {\n flex-shrink: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n\n :where(\n select[aria-disabled]:where(\n :not([aria-disabled=''], [aria-disabled='false'])\n )\n )\n &,\n :where(select:disabled) &,\n :where(\n .ld-select__btn-trigger[aria-disabled]:where(\n :not([aria-disabled=''], [aria-disabled='false'])\n )\n )\n & {\n color: var(--ld-select-col-disabled);\n }\n\n .ld-icon,\n svg {\n width: 100%;\n height: 100%;\n }\n}\n\n.ld-select__icon--rotated {\n transform-origin: center;\n transform: rotate(180deg);\n}\n\n.ld-select__slot-container {\n display: none;\n}\n\n:where(\n .ld-select:not(.ld-select--disabled, [aria-disabled], .ld-select--invalid)\n ) {\n .ld-select__btn-trigger {\n &:where(:focus:focus-visible) {\n box-shadow: inset 0 0 0 var(--ld-sp-2) var(--ld-select-thm-col);\n }\n }\n\n &.ld-select--ghost {\n :where(select:not(:disabled)),\n :where(.ld-select__btn-trigger) {\n @media (hover: hover) {\n &:hover:not(:focus) {\n background-color: var(--ld-select-ghost-trigger-bg-col-hover);\n }\n }\n &:active,\n &:active:focus-visible {\n background-color: var(--ld-select-ghost-trigger-bg-col-focus);\n }\n }\n }\n\n :where(select:not(:disabled)),\n :where(.ld-select__btn-trigger) {\n .ld-select__icon,\n + .ld-icon,\n + .ld-select__icon,\n ::slotted(ld-icon) {\n color: var(--ld-select-thm-col);\n }\n\n @media (hover: hover) {\n &:where(:hover) {\n .ld-select__icon,\n + .ld-icon,\n + .ld-select__icon,\n ::slotted(ld-icon) {\n color: var(--ld-select-thm-col-hover);\n }\n }\n }\n &:where(:focus:focus-visible) {\n box-shadow: inset 0 0 0 var(--ld-sp-2) var(--ld-select-thm-col);\n\n .ld-select__icon,\n + .ld-select__icon,\n ::slotted(ld-icon) {\n color: var(--ld-select-thm-col-focus);\n }\n }\n &:where(:active),\n &:where(:active:focus-visible) {\n .ld-select__icon,\n + .ld-icon,\n + .ld-select__icon,\n ::slotted(ld-icon) {\n color: var(--ld-select-thm-col-active);\n }\n }\n }\n}\n\n:where(.ld-select:not(.ld-select--disabled)):not(.ld-select--invalid) {\n :where(select:not(:disabled)),\n :where(.ld-select__btn-trigger) {\n &:where(:focus:focus-visible) {\n box-shadow: inset 0 0 0 var(--ld-sp-2) var(--ld-select-thm-col);\n }\n }\n}\n\n:where(\n .ld-select:not(\n .ld-select--disabled,\n [aria-disabled],\n [aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false']))\n )\n ) {\n .ld-select__selection-list-more {\n color: var(--ld-select-thm-col);\n }\n .ld-select__selection-label-bg {\n background-color: var(--ld-select-thm-col);\n }\n\n .ld-select__btn-clear-single {\n &:where(:focus:focus-visible) + .ld-select__selection-label-bg {\n background-color: var(--ld-select-thm-col-focus);\n }\n\n &:where(:active),\n &:where(:active:focus-visible) {\n + .ld-select__selection-label-bg {\n background-color: var(--ld-select-thm-col-active);\n }\n }\n }\n\n .ld-select__btn-clear {\n color: var(--ld-select-thm-col);\n\n &:where(:focus:focus-visible) {\n color: var(--ld-select-thm-col-focus);\n }\n @media (hover: hover) {\n &:where(:hover) {\n color: var(--ld-select-thm-col-hover);\n }\n }\n &:where(:active),\n &:where(:active:focus-visible) {\n color: var(--ld-select-thm-col-active);\n }\n }\n}\n","import {\n Component,\n Element,\n h,\n Host,\n Event,\n Listen,\n Prop,\n State,\n Watch,\n EventEmitter,\n Method,\n} from '@stencil/core'\nimport Tether from 'tether'\nimport { getClassNames } from '../../utils/getClassNames'\nimport { registerAutofocus } from '../../utils/focus'\nimport { closest } from '../../utils/closest'\nimport { TypeAheadHandler } from '../../utils/typeahead'\nimport { isAriaDisabled } from '../../utils/ariaDisabled'\nimport { sanitize } from '../../utils/sanitize'\nimport {\n isLdOptgroup,\n isLdOptgroupInternal,\n isLdOption,\n isLdOptionInternal,\n isLdOptInternalHidden,\n} from './utils/type-guards'\n\ntype SelectOption = { value: string; html: string; text: string }\n\n/**\n * @slot - the default slot contains the select options\n * @slot icon - replaces caret with custom trigger button icon\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n */\n@Component({\n tag: 'ld-select',\n styleUrl: 'ld-select.css',\n shadow: true,\n})\nexport class LdSelect implements InnerFocusable {\n @Element() el: HTMLLdSelectElement\n private selectRef!: HTMLDivElement\n private triggerRef!: HTMLDivElement\n private selectionListRef!: HTMLUListElement\n private internalOptionsContainerRef!: HTMLDivElement\n private listboxRef!: HTMLLdSelectPopperElement\n private btnClearRef: HTMLButtonElement\n private popper: Tether\n private slotChangeObserver: MutationObserver\n private popperObserver: MutationObserver\n private isObserverEnabled = true\n private optionSelectListenerEnabled = true\n\n /** Alternative disabled state that keeps element focusable */\n @Prop() ariaDisabled: string\n\n /**\n * This Boolean attribute lets you specify that a form control should have input focus when the page loads.\n * Only one form element in a document can have the autofocus attribute.\n */\n @Prop({ reflect: true }) autofocus: boolean\n\n /**\n * Creatable mode can be enabled when the filter prop is set to true.\n * This mode allows the user to create new options using the filter input field.\n */\n @Prop() creatable?: boolean\n\n /** The \"create\" input label (creatable mode). */\n @Prop() createInputLabel? = 'Press Enter to create option'\n\n /** The \"create\" button label (creatable mode). */\n @Prop() createButtonLabel? = 'Create option'\n\n /** Disabled state of the component. */\n @Prop() disabled?: boolean\n\n /** The form element to associate the select with (its form owner). */\n @Prop() form?: string\n\n /** Set this property to `true` in order to enable an input field for filtering options. */\n @Prop() filter?: boolean\n\n /** The filter input placeholder. */\n @Prop() filterPlaceholder? = 'Filter options'\n\n /** Set this property to `true` in order to mark the select visually as invalid. */\n @Prop() invalid?: boolean\n\n /** Tab index of the trigger button. */\n @Prop() ldTabindex = 0\n\n /** Constrains the height of the trigger button by replacing overflowing selection with a \"+X more\" indicator. */\n @Prop({ mutable: true }) maxRows?: number\n\n // prettier-ignore\n /** Display mode. */\n @Prop() mode?:\n // default\n | 'detached' // = default + small gap between trigger button and popper\n | 'inline' // = detached + minumum trigger button width\n | 'ghost' // = inline + transparent background and borders\n\n /** Multiselect mode. */\n @Prop() multiple?: boolean\n\n /** Used to specify the name of the control. */\n @Prop() name?: string\n\n /** Used as trigger button label in multiselect mode and in single select mode if nothing is selected. */\n @Prop() placeholder?: string\n\n /** Attached as CSS class to the select popper element. */\n @Prop() popperClass?: string\n\n /** Prevents a state with no options selected after initial selection in single select mode. */\n @Prop() preventDeselection?: boolean\n\n /** A Boolean attribute indicating that an option with a non-empty string value must be selected. */\n @Prop() required?: boolean\n\n /**\n * Sanitize config passed to DOMPurify's sanitize method.\n * If passed as string, the component will try to parse the string as JSON.\n * See https://github.com/cure53/DOMPurify#can-i-configure-dompurify\n */\n @Prop() sanitizeConfig?: SanitizeConfig | string\n\n /** Currently selected option(s) (read only!) */\n @Prop({ mutable: true }) selected?: SelectOption[] = []\n\n /** Size of the select trigger button. */\n @Prop() size?: 'sm' | 'lg'\n\n /** Tether options object to be merged with the default options (optionally stringified). */\n @Prop() tetherOptions?: Partial | string\n\n @State() allOptsFiltered = false\n @State() filterMatchesOpt = false\n @State() expanded = false\n @State() hasCustomIcon = false\n @State() hasMore = false\n @State() initialized = false\n @State() internalOptionsHTML: string\n @State() renderHiddenInput = false\n @State() theme: string\n @State() typeAheadHandler: TypeAheadHandler<\n HTMLLdOptionInternalElement | HTMLLdOptgroupInternalElement\n >\n\n /**\n * Emitted with an array of selected values\n * when an alteration to the selection is committed.\n */\n @Event() ldchange: EventEmitter\n\n /**\n * Emitted with an array of selected values\n * when an alteration to the selection is committed.\n */\n @Event() ldinput: EventEmitter\n\n /**\n * Emitted when an option is created in create mode\n * with the filter input value.\n */\n @Event() ldoptioncreate: EventEmitter\n\n /** Sets focus on the trigger button. */\n @Method()\n async focusInner() {\n if (!this.disabled) {\n // Experimental feature that fixes a bug in Firefox only.\n // See https://github.com/emdgroup-liquid/liquid/issues/486\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n this.triggerRef.focus({ focusVisible: true })\n }\n }\n\n @Watch('selected')\n emitEventsAndUpdateHidden(\n newSelection: SelectOption[],\n oldSelection: SelectOption[]\n ) {\n if (!this.initialized) return\n\n const newValues = newSelection.map((option) => option.value)\n const oldValues = oldSelection.map((option) => option.value)\n if (JSON.stringify(newValues) === JSON.stringify(oldValues)) return\n\n this.updateTriggerMoreIndicator(true)\n\n if (this.renderHiddenInput) {\n this.updateSelectedHiddenInputs(newSelection)\n }\n\n // Synchronize options with internal options.\n this.isObserverEnabled = false\n this.el.querySelectorAll('ld-option').forEach((ldOption) => {\n ldOption.selected = newValues.some((value) => value === ldOption.value)\n if (!ldOption.selected && ldOption.hidden) {\n this.listboxRef\n .querySelector(`ld-option-internal[value=\"${ldOption.value}\"]`)\n .remove()\n ldOption.remove()\n }\n })\n this.isObserverEnabled = true\n\n this.el.dispatchEvent(new InputEvent('change', { bubbles: true }))\n this.el.dispatchEvent(\n new InputEvent('input', { bubbles: true, composed: true })\n )\n this.ldchange.emit(newValues)\n this.ldinput.emit(newValues)\n }\n\n private isDisabled = () => this.disabled || isAriaDisabled(this.ariaDisabled)\n\n // This method must be a function declaration for testing purposes;\n // otherwise Jest's mockImplementation won't work here.\n private isOverflowing() {\n /* istanbul ignore next */\n return (\n this.selectionListRef.scrollHeight >\n this.selectionListRef.clientHeight + 2\n )\n }\n\n private updateTriggerMoreIndicator = (refresh = false) => {\n if (!this.multiple || !this.maxRows) return\n\n if (refresh) this.hasMore = false\n\n requestAnimationFrame(() => {\n if (!this.selectionListRef) return\n\n const selectionListItems = Array.from(\n this.selectionListRef.querySelectorAll(\n '.ld-select__selection-list-item'\n )\n )\n\n if (!this.hasMore) {\n // reset\n this.selectionListRef\n .querySelector('.ld-select__selection-list-more')\n ?.remove()\n selectionListItems.forEach((el) => {\n el.classList.remove('ld-select__selection-list-item--overflowing')\n })\n }\n\n // If overflowing, hide overflowing and show \"+X\" indicator\n if (this.isOverflowing()) {\n let moreItem\n if (!this.hasMore) {\n moreItem = document.createElement('li')\n moreItem.classList.add('ld-select__selection-list-more')\n this.selectionListRef.prepend(moreItem)\n } else {\n moreItem = this.selectionListRef.querySelector(\n '.ld-select__selection-list-more'\n )\n }\n this.hasMore = true\n\n const maxOffset = this.maxRows * 1.75 * 16\n\n let overflowingTotal = 0\n selectionListItems.forEach((el) => {\n const overflowing = overflowingTotal\n ? true\n : el.offsetTop >= maxOffset\n el.classList[overflowing ? 'add' : 'remove'](\n 'ld-select__selection-list-item--overflowing'\n )\n if (overflowing) overflowingTotal++\n })\n\n const hideLastVisibleIfMoreIndicatorOverflowing = () => {\n moreItem = this.selectionListRef.querySelector(\n '.ld-select__selection-list-more'\n )\n moreItem.innerText = `+${overflowingTotal}`\n if (moreItem.offsetTop < maxOffset) {\n /* istanbul ignore next */\n return\n }\n\n const notOverflowing = Array.from(\n this.selectionListRef.querySelectorAll(\n '.ld-select__selection-list-item:not(.ld-select__selection-list-item--overflowing)'\n )\n )\n const [lastNotOverflowing] = notOverflowing.slice(-1)\n if (lastNotOverflowing) {\n lastNotOverflowing.classList.add(\n 'ld-select__selection-list-item--overflowing'\n )\n overflowingTotal++\n moreItem.innerText = `+${overflowingTotal}`\n\n requestAnimationFrame(() => {\n hideLastVisibleIfMoreIndicatorOverflowing()\n })\n }\n }\n hideLastVisibleIfMoreIndicatorOverflowing()\n }\n })\n }\n\n private updatePopperWidth = () => {\n this.listboxRef.style.setProperty(\n 'width',\n `${this.selectRef.getBoundingClientRect().width}px`\n )\n }\n\n private updatePopperShadowHeight = () => {\n const ldPopper = this.listboxRef\n ldPopper.updateShadowHeight(\n `calc(100% + ${this.triggerRef.getBoundingClientRect().height}px)`\n )\n }\n\n private updatePopperTheme = () => {\n const themeEl = this.el.closest('[class*=\"ld-theme-\"]')\n if (!themeEl) return\n\n setTimeout(() => {\n // Array.from(themeEl.classList).find doesn't work in JSDom for some reason.\n this.theme = themeEl.classList\n .toString()\n .split(' ')\n .find((cl) => cl.startsWith('ld-theme-'))\n ?.substring(9)\n })\n }\n\n private updatePopper = () => {\n if (!this.popper) this.initPopper()\n this.popper.position()\n this.updatePopperWidth()\n this.updatePopperShadowHeight()\n this.updatePopperTheme()\n }\n\n private initPopper = () => {\n const customTetherOptions: Partial =\n typeof this.tetherOptions === 'string'\n ? JSON.parse(this.tetherOptions)\n : this.tetherOptions\n const tetherOptions: Tether.ITetherOptions = {\n classPrefix: 'ld-tether',\n element: this.listboxRef,\n target: this.selectRef,\n attachment: 'top left',\n targetAttachment: 'bottom left',\n offset: this.mode ? '-4px 0' : '0 0',\n constraints: [\n {\n to: 'window',\n pin: true,\n },\n ],\n ...customTetherOptions,\n }\n\n this.popper = new Tether(tetherOptions)\n\n // Observe popper in order to set focus as soon as it becomes visible.\n this.initPopperObserver()\n\n this.listboxRef.classList.add('ld-select__popper--initialized')\n }\n\n private getOptsRec = (\n children: Element[]\n ): (HTMLLdOptionElement | HTMLLdOptionInternalElement)[] => {\n const options = children.flatMap((child) => {\n if (isLdOption(child)) {\n return child\n }\n if (isLdOptgroup(child)) {\n return this.getOptsRec(Array.from(child.children))\n }\n return []\n })\n return options\n }\n\n private getInternalOptionHTML = (\n ldOption: HTMLLdOptionElement,\n optgroupDisabled = false\n ) => {\n const classStr = ldOption.classList.toString()\n return `${ldOption.innerHTML.replaceAll(\n /(.|\\n|\\r)*<\\/ld-icon>/g,\n ''\n )}`\n }\n\n private getInternalOptgroupHTML = (ldOptgroup: HTMLLdOptgroupElement) => {\n const classStr = ldOptgroup.classList.toString()\n return `${Array.from(ldOptgroup.children)\n .map((ldOption: HTMLLdOptionElement) =>\n this.getInternalOptionHTML(ldOption, ldOptgroup.disabled)\n )\n .join('')}`\n }\n\n private initOptions = () => {\n const initialized = this.initialized\n const children = Array.from(\n initialized ? this.internalOptionsContainerRef.children : this.el.children\n )\n\n const options = this.getOptsRec(children)\n\n if (!options.length) {\n throw new TypeError(\n 'ld-select requires at least one ld-option element as a child, but found none.'\n )\n }\n\n const selectedOptions = options.filter((child) => {\n return child.selected\n })\n\n if (selectedOptions.length > 1 && !this.multiple) {\n throw new TypeError(\n 'Multiple selected options are not allowed, if multiple option is not set.'\n )\n }\n\n if (!initialized) {\n let internalOptionsHTML = ''\n children.forEach((child) => {\n if (isLdOption(child)) {\n internalOptionsHTML += this.getInternalOptionHTML(child)\n } else if (isLdOptgroup(child)) {\n internalOptionsHTML += this.getInternalOptgroupHTML(child)\n } // else it's the slotted icon which we ignore.\n })\n this.internalOptionsHTML = internalOptionsHTML\n }\n this.selected = selectedOptions.map((child) => {\n return {\n value: child.value,\n html: child.innerHTML,\n text: child.innerText,\n }\n })\n\n if (this.listboxRef) {\n this.typeAheadHandler.options =\n this.listboxRef.querySelectorAll('ld-option-internal')\n }\n this.updateTriggerMoreIndicator(true)\n }\n\n private updateSelectedHiddenInputs = (selected: SelectOption[]) => {\n const selectedValues = selected.map(({ value }) => value)\n const inputs = this.el.querySelectorAll('input')\n\n // For each existing input, remove it from DOM if not in selected.\n // Remove each value from selectedValues if hidden input already exists.\n inputs.forEach((hiddenInput) => {\n const index = selectedValues.indexOf(hiddenInput.value)\n if (index >= 0) {\n selectedValues.splice(index, 1)\n } else {\n hiddenInput.remove()\n }\n })\n\n // If nothing is selected we need only one hidden input without value.\n if (selected.length === 0) {\n this.appendHiddenInput()\n return\n }\n\n // Else add hidden inputs for each value in selectedValues.\n selectedValues.forEach(this.appendHiddenInput)\n }\n\n private appendHiddenInput = (value?: string) => {\n const hiddenInput = document.createElement('input')\n\n // Slot required to keep the hidden input outside the popper.\n hiddenInput.setAttribute('slot', 'hidden')\n hiddenInput.name = this.name\n hiddenInput.type = 'hidden'\n\n if (value !== undefined) {\n hiddenInput.value = value\n }\n\n this.el.appendChild(hiddenInput)\n }\n\n @Watch('name')\n @Watch('form')\n updateHiddenInputs() {\n const hiddenInputs = this.el.querySelectorAll('input')\n\n const outerForm = this.el.closest('form')\n if (!this.name || !(outerForm || this.form)) {\n hiddenInputs.forEach((hiddenInput) => {\n hiddenInput.remove()\n })\n return\n }\n\n if (!hiddenInputs.length) {\n this.updateSelectedHiddenInputs(this.selected)\n return\n }\n\n hiddenInputs.forEach((hiddenInput) => {\n hiddenInput.name = this.name\n if (this.form) {\n hiddenInput.setAttribute('form', this.form)\n }\n })\n }\n\n private handleSlotChange = (mutationsList: MutationRecord[]) => {\n if (!this.isObserverEnabled) return\n if (\n !mutationsList.some(\n (record) => isLdOption(record.target) || isLdOptgroup(record.target)\n )\n ) {\n return\n }\n\n this.initialized = false\n\n const oldValues = [...this.selected]\n this.initOptions()\n\n this.initialized = true\n const newValues = [...this.selected]\n this.emitEventsAndUpdateHidden(newValues, oldValues)\n }\n\n private handlePopperChange = (mutationsList: MutationRecord[]) => {\n if (\n this.listboxRef.classList.contains('ld-tether-enabled') &&\n mutationsList.some((mutation) =>\n mutation.oldValue.includes('display: none;')\n )\n ) {\n // Popper has just been expanded and is visible.\n\n // If there is a selected option in single select mode, focus it.\n let toFocus\n if (!this.multiple) {\n // Using find instead of ld-option-internal[selected] selector below\n // in order to prevent \"TypeError: e.getAttributeNode is not a function\" in JSDom.\n toFocus = Array.from(\n this.listboxRef.querySelectorAll('ld-option-internal')\n )\n .find((ldOption) => ldOption.hasAttribute('selected'))\n ?.shadowRoot.querySelector('[role=\"option\"]')\n }\n\n // Otherwise, focus either the filter input (if available) or the trigger button.\n if (!toFocus) {\n if (this.filter) {\n toFocus = this.getFilterInput()\n } else {\n toFocus = this.triggerRef\n }\n }\n\n toFocus.focus()\n }\n }\n\n private initSlotChangeObserver = () => {\n this.slotChangeObserver = new MutationObserver(this.handleSlotChange)\n this.slotChangeObserver.observe(this.el, {\n subtree: true,\n childList: true,\n attributes: true,\n })\n }\n\n private initPopperObserver = () => {\n this.popperObserver = new MutationObserver(this.handlePopperChange)\n this.popperObserver.observe(this.listboxRef, {\n subtree: false,\n childList: false,\n attributes: true,\n attributeFilter: ['style'],\n attributeOldValue: true,\n })\n }\n\n private getFilterInput = () =>\n this.listboxRef.shadowRoot.querySelector(\n '.ld-select-popper__filter-input'\n )\n\n private togglePopper = () => {\n if (!this.popper) this.initPopper()\n\n this.expanded = !this.expanded\n\n if (this.expanded) {\n this.popper.enable()\n } else {\n this.popper.disable()\n this.focusInner()\n }\n }\n\n private clearSelection = () => {\n Array.from(this.listboxRef.querySelectorAll('ld-option-internal')).forEach(\n (option) => {\n option.selected = false\n }\n )\n this.selected = []\n }\n\n @Listen('resize', { target: 'window', passive: true })\n handleWindowResize() {\n if (this.isDisabled()) return // this is for a minor performance optimization only\n\n this.updatePopperWidth()\n this.updateTriggerMoreIndicator(true)\n this.updatePopperShadowHeight()\n }\n\n @Listen('ldoptionselect', { target: 'window', passive: true })\n handleSelect(ev: CustomEvent) {\n const target = ev.target as HTMLLdOptionInternalElement\n\n // Ignore events which are not fired on current instance.\n if (target.closest('[role=\"listbox\"]') !== this.listboxRef) return\n\n if (!this.optionSelectListenerEnabled) return\n this.optionSelectListenerEnabled = false\n\n if (!this.multiple) {\n // Deselect currently selected option, if it's not the target option.\n this.listboxRef\n .querySelectorAll('ld-option-internal')\n .forEach((option) => {\n if (option !== target.closest('ld-option-internal')) {\n option.selected = false\n }\n })\n this.togglePopper()\n if (this.filter) {\n this.resetFilter()\n this.focusInner()\n }\n }\n this.initOptions()\n\n this.optionSelectListenerEnabled = true\n }\n\n private handleHome = (ev) => {\n ev.preventDefault()\n this.focusInner()\n }\n\n private handleEnd = (ev) => {\n // Move focus to the last option.\n ev.preventDefault()\n const visibleOptions = Array.from(\n this.listboxRef.querySelectorAll('ld-option-internal')\n ).filter((option) => !isLdOptInternalHidden(option))\n if (document.activeElement !== visibleOptions[visibleOptions.length - 1]) {\n visibleOptions[visibleOptions.length - 1].focusInner()\n }\n }\n\n private selectAndFocus = (\n ev: KeyboardEvent,\n opt: HTMLLdOptionInternalElement | HTMLLdOptgroupInternalElement | undefined\n ) => {\n if (!opt) return\n\n if (this.multiple && ev.shiftKey) {\n if (\n isLdOptionInternal(document.activeElement) &&\n !isLdOptgroupInternal(document.activeElement) &&\n !document.activeElement.hasAttribute('selected')\n ) {\n document.activeElement.dispatchEvent(\n new KeyboardEvent('keydown', { key: ' ' })\n )\n }\n if (!opt.hasAttribute('selected') && !isLdOptgroupInternal(opt)) {\n opt.dispatchEvent(new KeyboardEvent('keydown', { key: ' ' }))\n }\n }\n opt.focusInner()\n }\n\n private handleFilterChange = (ev: CustomEvent) => {\n // Hide options which do not match the filter query.\n const opts = this.internalOptionsContainerRef.querySelectorAll<\n HTMLLdOptionInternalElement | HTMLLdOptgroupInternalElement\n >('ld-option-internal, ld-optgroup-internal')\n const query = ev.detail.trim().toLowerCase()\n let allFiltered = true\n let filterMatchesOpt = false\n const filteredOpts = Array.from(opts).filter((opt) => {\n const optTextLower = isLdOptionInternal(opt)\n ? opt.textContent.toLowerCase()\n : (opt as HTMLLdOptgroupInternalElement).label.toLowerCase()\n const filtered = Boolean(query) && !optTextLower.includes(query)\n\n opt.filtered = filtered\n if (optTextLower === query) {\n filterMatchesOpt = true\n }\n if (!opt.filtered) {\n allFiltered = false\n }\n\n return !filtered\n })\n\n this.typeAheadHandler.options = filteredOpts\n this.allOptsFiltered = allFiltered\n this.filterMatchesOpt = filterMatchesOpt\n\n // Re-position popper after new height has been applied.\n requestAnimationFrame(() => {\n this.updatePopper()\n })\n }\n\n private handleFilterCreate = () => {\n // In single select mode, deselect currently selected option\n if (!this.multiple) {\n const options = this.el.querySelectorAll('ld-option')\n options.forEach((ldOption) => {\n ldOption.selected = false\n })\n }\n\n const value = this.getFilterInput().value\n this.resetFilter()\n this.ldoptioncreate.emit(value)\n }\n\n private canCreate = () => {\n return Boolean(\n this.creatable && !this.filterMatchesOpt && this.getFilterInput().value\n )\n }\n\n private focusPrev = (\n current: HTMLLdOptionInternalElement | HTMLLdOptgroupInternalElement,\n ev: KeyboardEvent\n ) => {\n // Focus previous visible option, if any.\n // If the previous is an option, we check if it's visible.\n if (isLdOptionInternal(current.previousElementSibling)) {\n if (isLdOptInternalHidden(current.previousElementSibling)) {\n // If it's hidden, we repeat with the hidden option.\n this.focusPrev(current.previousElementSibling, ev)\n return\n }\n // If it's not hidden we focus it.\n this.selectAndFocus(ev, current.previousElementSibling)\n return\n }\n\n // If the previous is an optgroup, we try to focus the last option in it.\n if (isLdOptgroupInternal(current.previousElementSibling)) {\n const lastInOptgroup = Array.from(\n current.previousElementSibling.children\n ).at(-1) as HTMLLdOptionInternalElement\n\n // If it's hidden, we repeat with the hidden option.\n if (isLdOptInternalHidden(lastInOptgroup)) {\n this.focusPrev(lastInOptgroup, ev)\n return\n }\n // If it's not hidden we focus it.\n this.selectAndFocus(ev, lastInOptgroup)\n return\n }\n\n // If there is no previous element, we check if we are currently in an optgroup.\n const closestOptgroup =\n isLdOptionInternal(current) &&\n current.closest(\n 'ld-optgroup-internal'\n )\n // If we are in an optgroup, we try to focus the optgroup.\n if (closestOptgroup) {\n // If the optgroup is not visible, we set current to the optgroup and repeat.\n if (isLdOptInternalHidden(closestOptgroup)) {\n this.focusPrev(closestOptgroup, ev)\n return\n }\n closestOptgroup.focusInner()\n return\n }\n\n // Otherwise we focus either the filter input or the trigger button.\n if (this.filter) {\n this.getFilterInput().focus()\n return\n }\n this.handleHome(ev)\n }\n\n private focusNext = (\n current: HTMLLdOptionInternalElement | HTMLLdOptgroupInternalElement,\n ev: KeyboardEvent\n ) => {\n // Focus next visible option, if any.\n // If current is an optgroup, try to focus the first option in it.\n if (isLdOptgroupInternal(current)) {\n const firstInOptgroup = current.children[0] as HTMLLdOptionInternalElement\n // If it's hidden, we repeat with the hidden option.\n if (isLdOptInternalHidden(firstInOptgroup)) {\n this.focusNext(firstInOptgroup, ev)\n return\n }\n // If it's not hidden we focus it.\n this.selectAndFocus(ev, firstInOptgroup)\n return\n }\n\n // If the next is an option, we check if it's visible.\n if (isLdOptionInternal(current.nextElementSibling)) {\n if (isLdOptInternalHidden(current.nextElementSibling)) {\n // If it's hidden, we repeat with the hidden option.\n this.focusNext(current.nextElementSibling, ev)\n return\n }\n // If it's not hidden we focus it.\n this.selectAndFocus(ev, current.nextElementSibling)\n return\n }\n\n // If the next is an optgroup, we try to focus the optgroup.\n if (isLdOptgroupInternal(current.nextElementSibling)) {\n // If it's hidden, we repeat with first input within the hidden optgroup.\n if (isLdOptInternalHidden(current.nextElementSibling)) {\n const firstInOptgroup = current.nextElementSibling\n .children[0] as HTMLLdOptionInternalElement\n // If the first is not visible, we continue with it as current.\n if (isLdOptInternalHidden(firstInOptgroup)) {\n this.focusNext(firstInOptgroup, ev)\n return\n }\n // Otherwise we focus it.\n this.selectAndFocus(ev, firstInOptgroup)\n return\n }\n // If it's not hidden we focus it.\n this.selectAndFocus(ev, current.nextElementSibling)\n return\n }\n\n // If there is no next element, we check if we are currently in an optgroup.\n const closestOptgroup =\n isLdOptionInternal(current) &&\n current.closest(\n 'ld-optgroup-internal'\n )\n // If we are in an optgroup, we try to focus its next sibling.\n if (closestOptgroup) {\n const next = closestOptgroup.nextElementSibling as\n | HTMLLdOptionInternalElement\n | HTMLLdOptgroupInternalElement\n | undefined\n if (!next) return\n\n // If the next sibling is not visible, we repeat with the next sibling.\n if (isLdOptInternalHidden(next)) {\n this.focusNext(next, ev)\n return\n }\n // If it's visible, we focus it.\n next.focusInner()\n }\n }\n\n @Listen('keydown', { passive: false, target: 'window' })\n handleKeyDown(ev: KeyboardEvent) {\n if (this.isDisabled()) return\n\n // Ignore page special meta key combos.\n if (ev.metaKey && !['ArrowDown', 'ArrowUp'].includes(ev.key)) return\n\n // Ignore events if current instance has no focus.\n if (\n document.activeElement.closest('[role=\"listbox\"]') !== this.listboxRef &&\n document.activeElement.closest('ld-select') !== this.el\n ) {\n return\n }\n\n const filterHasFocus =\n this.filter &&\n this.listboxRef?.shadowRoot.activeElement === this.getFilterInput()\n\n // If filter has focus...\n if (filterHasFocus) {\n // ... and create mode is active\n if (this.canCreate() && ev.key === 'Enter') {\n this.handleFilterCreate()\n return\n }\n\n // Ignore events if filter input has focus,\n // except for navigation-specific keys.\n if (\n !['ArrowDown', 'ArrowUp', 'End', 'Escape', 'Home', 'Tab'].includes(\n ev.key\n )\n ) {\n return\n }\n }\n\n // If the clear button is focused, ignore Enter and Space key events.\n if (\n this.el.shadowRoot.activeElement === this.btnClearRef &&\n (ev.key === ' ' || ev.key === 'Enter')\n ) {\n return\n }\n\n switch (ev.key) {\n case 'ArrowDown': {\n // If not expanded, expand popper.\n // If expanded, move focus to the next option.\n // If shift is pressed, select the next option.\n // Holding down the Shift key and then using the Down cursor keys\n // increases the range of items selected (multiple mode only).\n ev.preventDefault()\n if (!this.expanded) {\n this.togglePopper()\n return\n }\n\n if (ev.metaKey) {\n this.handleEnd(ev)\n return\n }\n\n // Focus next visible option, if any,\n // or the filter input, if applicable.\n if (document.activeElement === this.el || filterHasFocus) {\n if (this.filter && !filterHasFocus) {\n this.getFilterInput().focus()\n } else {\n const nextOpt = Array.from(\n this.listboxRef.querySelectorAll<\n HTMLLdOptionInternalElement | HTMLLdOptgroupInternalElement\n >('ld-option-internal, ld-optgroup-internal')\n ).find((opt) => !isLdOptInternalHidden(opt))\n this.selectAndFocus(ev, nextOpt)\n }\n } else {\n this.focusNext(\n document.activeElement as\n | HTMLLdOptionInternalElement\n | HTMLLdOptgroupInternalElement,\n ev\n )\n }\n break\n }\n case 'ArrowUp': {\n // If not expanded, expand popper.\n // If expanded, move focus to the previous option.\n // If the first option is focused, focus the trigger button.\n // Holding down the Shift key and then using the Up cursor keys\n // increases the range of items selected (multiple mode only).\n ev.preventDefault()\n if (!this.expanded) {\n this.togglePopper()\n return\n }\n\n if (ev.metaKey || filterHasFocus) {\n this.handleHome(ev)\n return\n }\n\n // Focus previous visible option, if any.\n if (\n isLdOptionInternal(document.activeElement) ||\n isLdOptgroupInternal(document.activeElement)\n ) {\n this.focusPrev(document.activeElement, ev)\n }\n break\n }\n case 'Home':\n if (this.expanded) {\n this.handleHome(ev)\n }\n break\n case 'End':\n if (this.expanded) {\n this.handleEnd(ev)\n }\n break\n case ' ': {\n // If trigger has focus: Toggle popper.\n ev.stopImmediatePropagation()\n ev.preventDefault()\n if (this.expanded) {\n this.togglePopper()\n } else {\n this.togglePopper()\n }\n break\n }\n case 'Enter':\n // If expanded and trigger button is focused: Toggle popper.\n ev.preventDefault()\n if (\n this.expanded &&\n this.el.shadowRoot.activeElement === this.triggerRef\n ) {\n this.togglePopper()\n }\n break\n case 'Escape':\n // If expanded: Close popper.\n if (this.expanded) {\n ev.preventDefault()\n ev.stopImmediatePropagation()\n this.togglePopper()\n }\n break\n case 'Tab': // Also covers Shift+Tab\n // If expanded and popper element has focus within: Prevent default.\n if (\n this.expanded &&\n document.activeElement.closest('[role=\"listbox\"]') === this.listboxRef\n ) {\n ev.preventDefault()\n ev.stopImmediatePropagation()\n }\n break\n default:\n if (this.expanded) {\n ev.stopImmediatePropagation()\n ev.preventDefault()\n this.typeAheadHandler.typeAhead(ev.key)\n }\n }\n }\n\n @Listen('click', {\n target: 'window',\n })\n handleClickOutside(ev) {\n // closest utility function must be used here for the component\n // to work in Solid.js app, where ev.target can be an element\n // within the shadow DOM of the component.\n // Usage of ev.composedPath() is required for penetrating shadow DOM.\n const target = 'composedPath' in ev ? ev.composedPath().at(0) : ev.target\n if (\n ev.isTrusted &&\n closest('ld-select', target) !== this.el &&\n closest('[role=\"listbox\"]', target) !== this.listboxRef\n ) {\n this.expanded = false\n this.resetFilter()\n }\n }\n\n // Mobile Safari in some cases does not react to click events on elements\n // which are not interactive. But it does to touch events.\n @Listen('touchend', {\n target: 'window',\n passive: true,\n })\n handleTouchOutside(ev) {\n this.handleClickOutside(ev)\n }\n\n private resetFilter = () => {\n this.allOptsFiltered = false\n this.filterMatchesOpt = false\n\n if (!this.filter) return\n const filterInput = this.getFilterInput()\n if (!filterInput) return\n\n filterInput.value = ''\n const opts = this.internalOptionsContainerRef.querySelectorAll<\n HTMLLdOptionInternalElement | HTMLLdOptgroupInternalElement\n >('ld-option-internal, ld-optgroup-internal')\n\n opts.forEach((opt) => {\n opt.filtered = false\n })\n\n this.typeAheadHandler.options = opts\n this.listboxRef.resetFilter()\n }\n\n private handleFocusEvent = (ev: FocusEvent) => {\n // Emit event only, if focus is not within the select component.\n if (\n ev.relatedTarget === null ||\n ev.relatedTarget === this.listboxRef ||\n isLdOption(ev.relatedTarget) ||\n isLdOptgroup(ev.relatedTarget) ||\n closest('ld-select', ev.relatedTarget as HTMLElement) === this.el\n ) {\n ev.stopImmediatePropagation()\n } else {\n // Focus left the select component - make sure it is not expanded.\n this.expanded = false\n this.resetFilter()\n }\n }\n\n private handleTriggerClick = (ev: Event) => {\n ev.preventDefault()\n\n if (this.isDisabled()) return\n\n this.togglePopper()\n }\n\n private handleClearClick = (ev: MouseEvent) => {\n ev.preventDefault()\n ev.stopImmediatePropagation()\n\n if (this.isDisabled()) return\n\n this.clearSelection()\n this.focusInner()\n }\n\n private handleClearSingleClick = (ev: MouseEvent, optionValue) => {\n ev.preventDefault()\n ev.stopImmediatePropagation()\n\n if (this.isDisabled()) return\n\n this.selected = this.selected.filter(\n (selection) => selection.value !== optionValue\n )\n\n this.listboxRef\n .querySelector(`ld-option-internal[value='${optionValue}']`)\n ?.dispatchEvent(new KeyboardEvent('keydown', { key: ' ' }))\n }\n\n componentWillLoad() {\n const outerForm = this.el.closest('form')\n\n if (this.name && (outerForm || this.form)) {\n this.renderHiddenInput = true\n }\n\n const customIcon = this.el.querySelector('ld-icon')\n this.hasCustomIcon = !!customIcon\n\n if (customIcon) {\n customIcon.setAttribute('size', this.size)\n }\n\n this.initOptions()\n\n if (this.renderHiddenInput) {\n this.updateSelectedHiddenInputs(this.selected)\n }\n\n registerAutofocus(this.autofocus)\n }\n\n componentDidLoad() {\n setTimeout(() => {\n this.initSlotChangeObserver()\n this.typeAheadHandler = new TypeAheadHandler(\n this.listboxRef.querySelectorAll('ld-option-internal')\n )\n this.initialized = true\n })\n }\n\n componentDidUpdate() {\n if (this.expanded) {\n this.updatePopper()\n }\n }\n\n disconnectedCallback() {\n /* istanbul ignore if */\n if (this.popperObserver) this.popperObserver.disconnect()\n /* istanbul ignore if */\n if (this.popper) this.popper.destroy()\n /* istanbul ignore if */\n if (this.slotChangeObserver) this.slotChangeObserver.disconnect()\n /* istanbul ignore if */\n if (this.listboxRef) this.listboxRef.remove()\n /* istanbul ignore if */\n if (this.typeAheadHandler) this.typeAheadHandler.clearTimeout()\n }\n\n render() {\n // Endable detached mode if any display mode is set.\n const detached = !!this.mode\n\n // Implicitly enable inline mode if ghost mode is enabled.\n const inline = this.mode === 'inline' || this.mode === 'ghost'\n\n // Disallow ghost in combination with multiple select mode.\n const ghost = !this.multiple && this.mode === 'ghost'\n\n const cl = [\n 'ld-select',\n this.disabled && 'ld-select--disabled',\n this.size && `ld-select--${this.size}`,\n this.invalid && 'ld-select--invalid',\n this.expanded && 'ld-select--expanded',\n detached && 'ld-select--detached',\n inline && 'ld-select--inline',\n ghost && 'ld-select--ghost',\n ]\n\n const triggerCl = [\n 'ld-select__btn-trigger',\n this.invalid && 'ld-select__btn-trigger--invalid',\n detached && 'ld-select__btn-trigger--detached',\n inline && 'ld-select__btn-trigger--inline',\n ghost && 'ld-select__btn-trigger--ghost',\n ]\n\n const triggerIconCl = [\n 'ld-select__icon',\n this.expanded && 'ld-select__icon--rotated',\n ]\n\n const triggerHtml = this.multiple\n ? this.placeholder\n : this.selected[0]?.html || this.placeholder\n\n const triggerText = this.multiple\n ? this.placeholder\n : this.selected[0]?.text || this.placeholder\n\n return (\n \n \n {this.renderHiddenInput &&
}\n
\n \n
\n
(this.selectRef = el)}\n >\n
(this.triggerRef = el)}\n >\n {this.multiple && this.selected.length ? (\n
\n
(this.selectionListRef = el)}\n style={{\n maxHeight:\n this.maxRows && this.maxRows > 0\n ? `${this.maxRows * 1.75}rem`\n : undefined,\n }}\n >\n {this.selected.map((selection, index) => {\n return (\n - \n \n
\n )\n })}\n
\n
\n ) : (\n
\n \n \n )}\n\n {this.selected?.length && this.multiple ? (\n
\n ) : (\n ''\n )}\n\n
\n {!this.hasCustomIcon && (\n /* custom icon arrow-down */\n
\n )}\n
\n
\n
(this.listboxRef = el)}\n role=\"listbox\"\n size={this.size}\n theme={this.theme}\n >\n (this.internalOptionsContainerRef = el)}\n innerHTML={sanitize(this.internalOptionsHTML, {\n ...(typeof this.sanitizeConfig === 'string'\n ? JSON.parse(this.sanitizeConfig)\n : this.sanitizeConfig),\n ADD_ATTR: ['prevent-deselection'],\n })}\n part=\"options-container\"\n >
\n \n
\n \n )\n }\n}\n",":host {\n /* layout */\n --ld-select-popper-min-width: 12.8125rem;\n --ld-select-popper-max-height: min(23.75rem, 75vh - 1.25rem);\n\n /* colors */\n --ld-select-popper-border-col: var(--ld-col-neutral-100);\n min-width: var(--ld-select-popper-min-width);\n}\n\n.ld-select-popper {\n min-width: 100%;\n\n &:not(.ld-select-popper--expanded) {\n display: none;\n }\n\n ::slotted(.ld-select__shadow) {\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n box-shadow: var(--ld-shadow-sticky);\n border-radius: var(--ld-br-m);\n pointer-events: none;\n z-index: -1;\n }\n}\n\n.ld-select-popper__scroll-container {\n max-height: var(--ld-select-popper-max-height);\n overflow-y: auto;\n border-bottom-left-radius: var(--ld-br-m);\n border-bottom-right-radius: var(--ld-br-m);\n border-top: solid var(--ld-select-popper-border-col) var(--ld-sp-1);\n overscroll-behavior: contain;\n\n .ld-select-popper--detached:not(.ld-select-popper--filter) &,\n .ld-select-popper--pinned:not(.ld-select-popper--filter) & {\n border-top: 0;\n border-radius: var(--ld-br-m);\n }\n\n .ld-select-popper--all-filtered & {\n border-top: 0;\n }\n}\n\n.ld-select-popper__shadow {\n position: absolute;\n width: 100%;\n height: calc(100% + var(--ld-select-min-height-md));\n box-shadow: var(--ld-shadow-sticky);\n border-radius: var(--ld-br-m);\n pointer-events: none;\n z-index: -1;\n bottom: 0;\n\n .ld-select-popper--detached & {\n height: 100% !important;\n }\n}\n\n.ld-select-popper__filter-container {\n align-items: center;\n background-color: var(--ld-col-wht);\n border-top: solid var(--ld-col-neutral-100) var(--ld-sp-1);\n color: var(--ld-col-neutral-900);\n display: grid;\n font: var(--ld-typo-label-m);\n grid-template-columns: 1fr auto;\n\n .ld-select-popper--detached &,\n .ld-select-popper--pinned & {\n border-top: 0;\n border-top-left-radius: var(--ld-br-m);\n border-top-right-radius: var(--ld-br-m);\n }\n\n .ld-select-popper--all-filtered & {\n border-bottom-left-radius: var(--ld-br-m);\n border-bottom-right-radius: var(--ld-br-m);\n }\n}\n\n.ld-select-popper__create-button {\n font: var(--ld-typo-label-s);\n line-height: var(--ld-select-trigger-line-height);\n margin-right: var(--ld-sp-8);\n\n &::part(button) {\n --ld-button-padding-x-sm: var(--ld-sp-6);\n --ld-button-padding-y-sm: var(--ld-sp-4);\n min-height: 0;\n min-width: 0;\n }\n}\n\n.ld-select-popper__filter-input {\n appearance: none;\n background-color: transparent;\n border: 0;\n box-sizing: border-box;\n color: inherit;\n font: inherit;\n height: 2.5rem;\n line-height: var(--ld-select-trigger-line-height);\n outline: none;\n padding: var(--ld-sp-8) var(--ld-sp-12);\n width: 100%;\n\n &::placeholder {\n color: var(--ld-col-neutral-600);\n }\n\n .ld-select-popper--detached &,\n .ld-select-popper--pinned & {\n border-top: 0;\n border-top-left-radius: var(--ld-br-m);\n border-top-right-radius: var(--ld-br-m);\n }\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n State,\n Watch,\n} from '@stencil/core'\nimport { getClassNames } from '../../../utils/getClassNames'\n\n/** @internal **/\n@Component({\n tag: 'ld-select-popper',\n styleUrl: 'ld-select-popper.shadow.css',\n shadow: true,\n})\nexport class LdSelectPopper {\n @Element() el: HTMLElement\n\n /** Indicates that all options are filtered (used in creatable mode) */\n @Prop() allOptionsFiltered?: boolean\n\n /** A watcher is applied to the CSS class in order to be able to react to tether changes. */\n @Prop({ reflect: true }) class?: string\n\n /**\n * Creatable mode can be enabled when the filter prop is set to true.\n * This mode allows the user to create new options using the filter input field.\n */\n @Prop() creatable?: boolean\n\n /** The \"create\" input label (creatable mode). */\n @Prop() createInputLabel!: string\n\n /** The \"create\" button label (creatable mode). */\n @Prop() createButtonLabel!: string\n\n /** Popper is visually detached from the select trigger element (there's a gap between the two). */\n @Prop() detached?: boolean\n\n /** Indicates if select element is expanded. */\n @Prop() expanded? = false\n\n /** Set this property to `true` in order to enable an input field for filtering options. */\n @Prop() filter?: boolean\n\n /** The filter input value matches an option (do not allow to create the option). */\n @Prop() filterMatchesOption?: boolean\n\n /** The filter input placeholder. */\n @Prop() filterPlaceholder!: string\n\n /** Attaches CSS class to the select popper element. */\n @Prop() popperClass?: string\n\n /** Size of the select trigger button (required for applying the correct shadow height). */\n @Prop() size?: 'sm' | 'lg'\n\n /** Since the select popper is located outside the select element, the theme needs to be applied as a prop. */\n @Prop() theme?: string\n\n @State() isPinned = false\n @State() shadowHeight = '100%'\n @State() filterInputValue = ''\n @State() canCreate = false\n\n /**\n * @internal\n * Emitted on filter change with the filter input value.\n */\n @Event() ldselectfilterchange: EventEmitter\n\n /**\n * @internal\n * Emitted on create button click in filter input field.\n */\n @Event() ldselectfiltercreate: EventEmitter\n\n private handleFilterInput = (ev) => {\n this.filterInputValue = ev.target.value\n this.ldselectfilterchange.emit(ev.target.value)\n }\n\n private handleCreate = (ev) => {\n ev.preventDefault()\n const value = this.filterInputValue\n this.filterInputValue = ''\n this.ldselectfiltercreate.emit(value)\n }\n\n @Watch('creatable')\n @Watch('filterMatchesOption')\n @Watch('filterInputValue')\n updateCanCreate() {\n this.canCreate = Boolean(\n this.creatable && !this.filterMatchesOption && this.filterInputValue\n )\n }\n\n @Watch('class')\n updatePinnedState() {\n this.isPinned = this.el.classList.contains('ld-tether-pinned')\n }\n\n @Watch('theme')\n updatePopperTheme(newValue: string, oldValue: string) {\n this.el.classList.remove(`ld-theme-${oldValue}`)\n if (newValue) this.el.classList.add(`ld-theme-${newValue}`)\n }\n\n @Watch('expanded')\n updateFilter(newExpanded: boolean) {\n if (!newExpanded) {\n this.resetFilter()\n }\n }\n\n /** Updates shadow height */\n @Method()\n async updateShadowHeight(height: string) {\n this.shadowHeight = height\n }\n\n /** Focuses the tab */\n @Method()\n async resetFilter() {\n this.filterInputValue = ''\n }\n\n componentWillLoad() {\n this.popperClass && this.el.classList.add(this.popperClass)\n }\n\n render() {\n return (\n \n \n {this.filter && (\n
\n
\n {this.canCreate && (\n
\n \n \n \n \n )}\n
\n )}\n
\n
\n \n )\n }\n}\n"],"mappings":"+UAAA,MAAMA,EAAoB,G,MCWbC,EAAQ,M,4GAoBC,K,CAEpB,iBAAAC,GAGE,GAAIC,KAAKC,SAAU,CACjBD,KAAKE,GAAGC,aAAa,WAAY,G,EAIrC,MAAAC,GACE,OACEC,EAACC,EAAI,KACHD,EAAA,a,qCC5CD,MAAME,EACXL,GAEA,CAAC,YAAa,sBAAsBM,SAAUN,IAAkB,MAAlBA,SAAE,SAAFA,EAAoBO,SAE7D,MAAMC,EACXR,GAEA,CAAC,cAAe,wBAAwBM,SAAUN,IAAkB,MAAl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ACEuR,QAAS5R,KAAKsT,aACdxM,KAAK,KACLoK,MAAM,kCAAiC,aAC3BlR,KAAKyS,mBAEjBpS,EAAA,WACE6Q,MAAM,gCACNO,KAAK,eACL3K,KAAK,MAELzG,EAAA,OAAK+R,QAAQ,cAAcD,KAAK,QAC9B9R,EAAA,QACEiS,EAAE,yBACFD,OAAO,eAAc,eACR,IAAG,iBACD,QAAO,kBACN,cAQ9BhS,EAAA,OACE6Q,MAAM,qCACNE,KAAK,2BAEL/Q,EAAA,aACAA,EAAA,OACE6Q,MAAM,2BACNxN,MAAO,CAAES,OAAQnE,KAAK0T,SAAW,OAAS1T,KAAK8T,cAC/C1C,KAAK,a"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-24dedd5e.entry.js b/1704966176737/dist/build/p-24dedd5e.entry.js
deleted file mode 100644
index 7bdbe0d841..0000000000
--- a/1704966176737/dist/build/p-24dedd5e.entry.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{r as l,c as t,h as o,H as i,g as e}from"./p-21a69c18.js";import{g as d}from"./p-1133c92e.js";import{c as a}from"./p-71026bf3.js";import{r as n}from"./p-8dc70a87.js";import{i as s}from"./p-b05f0e4e.js";const r=':host{display:contents}@keyframes ld-modal-in{0%{transform:translateY(2rem)}to{transform:translateY(0)}}@keyframes ld-modal-out{0%{transform:scale(1)}to{transform:scale(.9)}}@keyframes ld-modal-out-mobile{0%{transform:translateY(0)}to{transform:translateY(2rem)}}:host,dialog.ld-modal{--ld-modal-bg-col:var(--ld-col-wht);--ld-modal-fixed-padding-x:var(--ld-sp-16);--ld-modal-fixed-padding-y:var(--ld-sp-16);--ld-modal-padding-x:var(--ld-sp-16);--ld-modal-padding-y:var(--ld-sp-24);--ld-modal-fixed-bg-col:var(--ld-col-neutral-010);--ld-modal-transition-duration:var(--ld-transition-duration-instant);--ld-modal-max-inline-size:30rem;--ld-modal-max-block-size:70rem;--ld-modal-min-inline-size:18rem}@media (prefers-reduced-motion:no-preference){:host,dialog.ld-modal{--ld-modal-transition-duration:var(--ld-transition-duration-normal)}}:host dialog,dialog.ld-modal{animation:ld-modal-in var(--ld-modal-transition-duration) ease-out forwards;border:0;border-radius:var(--ld-br-l);box-shadow:var(--ld-shadow-active);color:var(--ld-col-neutral-900);color-scheme:var(--ld-modal-color-scheme,none);display:flex;flex-direction:column;inset:0;margin:auto;max-block-size:min(calc(100% - var(--ld-sp-24) - var(--ld-sp-40)),var(--ld-modal-max-block-size));max-inline-size:min(calc(100% - var(--ld-sp-32)),var(--ld-modal-max-inline-size));min-inline-size:var(--ld-modal-min-inline-size);overflow:visible;padding:0;position:fixed;transition:opacity var(--ld-modal-transition-duration) linear,transform var(--ld-modal-transition-duration) ease;z-index:2147483647}@media (width <= 32rem){:host dialog,dialog.ld-modal{margin-bottom:var(--ld-sp-40)}}:host dialog:not([open]),dialog.ld-modal:not([open]){animation:ld-modal-out var(--ld-modal-transition-duration) ease-in forwards;opacity:0;pointer-events:none;transition:opacity var(--ld-modal-transition-duration) linear,visibility 0s var(--ld-modal-transition-duration) linear,transform var(--ld-modal-transition-duration) ease;visibility:hidden}@media (width <= 32rem){:host dialog:not([open]),dialog.ld-modal:not([open]){animation-name:ld-modal-out-mobile}}:host dialog:after,dialog.ld-modal:after{background-color:var(--ld-modal-bg-col);border-radius:inherit;content:"";inset:0;position:absolute;z-index:-1}:host dialog:before,dialog.ld-modal:before{background-color:var(--ld-thm-primary-active);content:"";inset:0;opacity:.3;position:fixed;transform:scale(99);z-index:-2}:host(.ld-modal--blurry-backdrop) dialog::backdrop,dialog.ld-modal--blurry-backdrop::backdrop{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.ld-modal__x{-webkit-appearance:none;appearance:none;background-color:initial;border:var(--ld-sp-8) solid #0000;box-sizing:border-box;cursor:pointer;display:inline-flex;height:3rem;margin:auto calc(var(--ld-sp-16) * -1) auto auto;overflow:hidden;place-self:flex-start flex-end;position:relative;width:3rem}.ld-modal__x:after,.ld-modal__x:before{background-color:var(--ld-col-neutral-900);border-radius:1rem;content:"";display:block;height:1.25rem;left:50%;position:absolute;top:50%;width:.15rem}.ld-modal__x:before{transform:translateX(-50%) translateY(-50%) rotate(45deg)}.ld-modal__x:after{transform:translateX(-50%) translateY(-50%) rotate(-45deg)}.ld-modal__content{flex-grow:1;overflow:hidden auto;overscroll-behavior:none;padding:var(--ld-modal-padding-y) var(--ld-modal-padding-x)}.ld-modal__footer,.ld-modal__header{align-items:center;background-color:var(--ld-modal-fixed-bg-col);display:grid;gap:var(--ld-modal-fixed-padding-x);grid-auto-flow:column;padding:0 var(--ld-modal-fixed-padding-x)}.ld-modal__header{border-radius:var(--ld-br-l) var(--ld-br-l) 0 0}.ld-modal__header>::slotted(:not(.ld-modal__x)),.ld-modal__header>:not(.ld-modal__x){padding:var(--ld-sp-12) 0}.ld-modal__footer{border-radius:0 0 var(--ld-br-l) var(--ld-br-l);justify-content:flex-end}.ld-modal__footer>*,.ld-modal__footer>::slotted(*){margin:var(--ld-modal-fixed-padding-y) 0}';const g=class{constructor(o){l(this,o);this.ldmodalopening=t(this,"ldmodalopening",7);this.ldmodalopened=t(this,"ldmodalopened",7);this.ldmodalclosing=t(this,"ldmodalclosing",7);this.ldmodalclosed=t(this,"ldmodalclosed",7);this.handleClose=()=>{this.open=false};this.handleCancel=l=>{if(!this.cancelable){l.preventDefault()}};this.handleClick=l=>{if(this.cancelable&&l.target.tagName==="DIALOG"){this.close()}};this.handleTransitionEnd=()=>{if(this.open){this.ldmodalopened.emit()}else{this.ldmodalclosed.emit()}};this.cancelable=true;this.open=undefined;this.blurryBackdrop=false}async showModal(){this.open=true}async close(){this.open=false}handleKeyDown(l){if(l.key==="Escape"&&this.cancelable){this.open=false}}onOpenChange(l){if(l){this.dialogRef.showModal();this.ldmodalopening.emit()}else{this.dialogRef.close();this.ldmodalclosing.emit()}}componentDidLoad(){this.dialogRef.addEventListener("cancel",this.handleCancel)}disconnectedCallback(){if(this.dialogRef){this.dialogRef.removeEventListener("cancel",this.handleCancel)}}render(){const l=d(["ld-modal",this.blurryBackdrop&&"ld-modal--blurry-backdrop"]);return o(i,{class:l},o("dialog",{onClick:this.handleClick,onClose:this.handleClose,onTransitionEnd:this.handleTransitionEnd,open:this.open,part:"dialog",ref:l=>this.dialogRef=l},o("header",{class:"ld-modal__header",part:"header"},o("slot",{name:"header"}),this.cancelable&&o("button",{class:"ld-modal__x","aria-label":"Dismiss",onClick:this.close.bind(this)})),o("div",{class:"ld-modal__content",part:"content"},o("slot",null)),o("footer",{class:"ld-modal__footer",part:"footer"},o("slot",{name:"footer"}))))}get el(){return e(this)}static get watchers(){return{open:["onOpenChange"]}}};g.style=r;const c='.ld-toggle,:host{--ld-toggle-height:2rem;--ld-toggle-width:3.375rem;--ld-toggle-inner-space:0.125rem;--ld-toggle-with-icons-width:4.5rem;--ld-toggle-lg-height:2.5rem;--ld-toggle-lg-width:4.1875rem;--ld-toggle-lg-inner-space:0.1875rem;--ld-toggle-lg-with-icons-width:6rem;--ld-toggle-border-radius:var(--ld-br-full);--ld-toggle-knob-border-radius:var(--ld-br-full);--ld-toggle-input-bg-col:var(--ld-col-neutral-600);--ld-toggle-icon-start-col:var(--ld-col-wht);--ld-toggle-icon-end-col:var(--ld-col-neutral-900);--ld-toggle-knob-bg-col:var(--ld-col-wht);--ld-toggle-checked-icon-start-col:var(--ld-col-neutral-900);--ld-toggle-checked-icon-end-col:var(--ld-col-wht);--ld-toggle-disabled-input-bg-col:var(--ld-col-neutral-050);--ld-toggle-disabled-icon-col:var(--ld-col-neutral-200);--ld-toggle-disabled-knob-bg-col:var(--ld-col-wht);--ld-toggle-with-icons-input-bg-col:var(--ld-col-neutral-100);--ld-toggle-with-icons-disabled-input-bg-col:var(--ld-col-neutral-050);--ld-toggle-checked-bg-col:var(--ld-thm-primary);--ld-toggle-invalid-input-bg-col:var(--ld-thm-error);--ld-toggle-invalid-knob-bg-col:var(--ld-thm-error);--ld-toggle-with-icons-knob-col:var(--ld-thm-primary);align-items:center;display:flex;height:var(--ld-toggle-height);min-width:auto!important;position:relative;width:var(--ld-toggle-width)}.ld-toggle input,:host input{-webkit-appearance:none;appearance:none;background-color:var(--ld-toggle-input-bg-col);border-radius:var(--ld-toggle-border-radius);height:100%;margin:0;position:absolute;transition:background-color var(--ld-transition-duration-normal) ease-in-out;width:100%;z-index:0}.ld-toggle input:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))),:host input:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))){cursor:pointer}.ld-toggle input:checked,:host input:checked{background-color:var(--ld-toggle-checked-bg-col)}.ld-toggle input:checked:disabled,.ld-toggle input:checked[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])),:host input:checked:disabled,:host input:checked[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])){background-color:var(--ld-toggle-disabled-input-bg-col)}.ld-toggle input:checked~.ld-toggle__knob,:host input:checked~.ld-toggle__knob{transform:translateX(calc(var(--ld-toggle-width) - var(--ld-toggle-height)))}.ld-toggle input:checked~.ld-toggle__icon-start,:host input:checked~.ld-toggle__icon-start{color:var(--ld-toggle-checked-icon-start-col)}.ld-toggle input:checked~.ld-toggle__icon-end,:host input:checked~.ld-toggle__icon-end{color:var(--ld-toggle-checked-icon-end-col)}.ld-toggle input:disabled,.ld-toggle input[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])),:host input:disabled,:host input[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])){background-color:var(--ld-toggle-disabled-input-bg-col)}.ld-toggle input:disabled:checked~.ld-toggle__icon-end,.ld-toggle input:disabled:checked~.ld-toggle__icon-start,.ld-toggle input[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])):checked~.ld-toggle__icon-end,.ld-toggle input[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])):checked~.ld-toggle__icon-start,:host input:disabled:checked~.ld-toggle__icon-end,:host input:disabled:checked~.ld-toggle__icon-start,:host input[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])):checked~.ld-toggle__icon-end,:host input[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])):checked~.ld-toggle__icon-start{color:var(--ld-toggle-disabled-icon-col)}.ld-toggle input:disabled:not(:checked)~.ld-toggle__icon-end,.ld-toggle input:disabled:not(:checked)~.ld-toggle__icon-start,.ld-toggle input[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])):not(:checked)~.ld-toggle__icon-end,.ld-toggle input[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])):not(:checked)~.ld-toggle__icon-start,:host input:disabled:not(:checked)~.ld-toggle__icon-end,:host input:disabled:not(:checked)~.ld-toggle__icon-start,:host input[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])):not(:checked)~.ld-toggle__icon-end,:host input[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])):not(:checked)~.ld-toggle__icon-start{color:var(--ld-toggle-disabled-icon-col)}.ld-toggle .ld-toggle__knob,:host .ld-toggle__knob{background-color:var(--ld-toggle-knob-bg-col);border-radius:var(--ld-toggle-knob-border-radius);display:block;height:calc(var(--ld-toggle-height) - var(--ld-toggle-inner-space) * 2);margin:var(--ld-toggle-inner-space);pointer-events:none;transition:transform var(--ld-transition-duration-normal) ease-in-out;width:calc(var(--ld-toggle-height) - var(--ld-toggle-inner-space) * 2);z-index:1}.ld-toggle input:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):invalid,:host input:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))):invalid{background-color:var(--ld-toggle-invalid-input-bg-col)}.ld-toggle--lg,:host(.ld-toggle--lg){--ld-toggle-height:var(--ld-toggle-lg-height);--ld-toggle-width:var(--ld-toggle-lg-width);--ld-toggle-inner-space:var(--ld-toggle-lg-inner-space)}.ld-toggle--lg.ld-toggle--with-icons,:host(.ld-toggle--lg.ld-toggle--with-icons){--ld-toggle-width:var(--ld-toggle-lg-with-icons-width)}.ld-toggle--lg.ld-toggle--with-icons .ld-toggle__icon-end,.ld-toggle--lg.ld-toggle--with-icons .ld-toggle__icon-start,:host(.ld-toggle--lg.ld-toggle--with-icons) .ld-toggle__icon-end,:host(.ld-toggle--lg.ld-toggle--with-icons) .ld-toggle__icon-start{margin:auto .75rem}.ld-toggle--with-icons,:host(.ld-toggle--with-icons){--ld-toggle-width:var(--ld-toggle-with-icons-width)}.ld-toggle--with-icons input:not(:disabled),:host(.ld-toggle--with-icons) input:not(:disabled){background-color:var(--ld-toggle-with-icons-input-bg-col)}.ld-toggle--with-icons input:invalid~.ld-toggle__knob,:host(.ld-toggle--with-icons) input:invalid~.ld-toggle__knob{background-color:var(--ld-toggle-invalid-knob-bg-col)}.ld-toggle--with-icons input:disabled,.ld-toggle--with-icons input[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])),:host(.ld-toggle--with-icons) input:disabled,:host(.ld-toggle--with-icons) input[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])){background-color:var(--ld-toggle-with-icons-disabled-input-bg-col)}.ld-toggle--with-icons input:disabled~.ld-toggle__knob,.ld-toggle--with-icons input[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))~.ld-toggle__knob,:host(.ld-toggle--with-icons) input:disabled~.ld-toggle__knob,:host(.ld-toggle--with-icons) input[aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))~.ld-toggle__knob{background-color:var(--ld-toggle-disabled-knob-bg-col)}.ld-toggle--with-icons .ld-toggle__knob,:host(.ld-toggle--with-icons) .ld-toggle__knob{background-color:var(--ld-toggle-with-icons-knob-col)}.ld-toggle--with-icons .ld-toggle__icon-end,.ld-toggle--with-icons .ld-toggle__icon-start,:host(.ld-toggle--with-icons) .ld-toggle__icon-end,:host(.ld-toggle--with-icons) .ld-toggle__icon-start{margin:auto .5rem}.ld-toggle__icon-end,.ld-toggle__icon-start{align-items:center;display:flex;pointer-events:none;position:absolute;transition:color var(--ld-transition-duration-normal) ease-in-out;z-index:1}.ld-toggle__icon-end:empty,.ld-toggle__icon-start:empty{display:none}.ld-toggle__icon-start{color:var(--ld-toggle-icon-start-col);left:0}.ld-toggle__icon-end{color:var(--ld-toggle-icon-end-col);right:0}';const h=class{constructor(o){l(this,o);this.ldchange=t(this,"ldchange",7);this.ldinput=t(this,"ldinput",7);this.handleChange=l=>{this.el.dispatchEvent(new InputEvent("change",l));this.ldchange.emit(this.checked)};this.handleClick=l=>{if(s(this.ariaDisabled)){l.preventDefault();return}this.checked=!this.checked;if(!l.isTrusted){this.el.dispatchEvent(new InputEvent("input",{bubbles:true,composed:true}));this.handleInput();this.el.dispatchEvent(new InputEvent("change",{bubbles:true}));this.ldchange.emit(this.checked)}};this.handleInput=()=>{this.ldinput.emit(this.checked)};this.ariaDisabled=undefined;this.autofocus=undefined;this.checked=false;this.disabled=undefined;this.form=undefined;this.invalid=undefined;this.ldTabindex=undefined;this.name=undefined;this.readonly=undefined;this.required=undefined;this.size=undefined;this.value=undefined;this.clonedAttributes=undefined}async focusInner(){if(this.input!==undefined){this.input.focus()}}updateHiddenInput(){const l=this.el.closest("form");if(!this.hiddenInput&&this.name&&(l||this.form)){this.createHiddenInput()}if(this.hiddenInput){if(!this.name){this.hiddenInput.remove();this.hiddenInput=undefined;return}this.hiddenInput.name=this.name;this.hiddenInput.checked=this.checked;if(this.value){this.hiddenInput.value=this.value}else{this.hiddenInput.removeAttribute("value")}if(this.form){this.hiddenInput.setAttribute("form",this.form)}else if(this.hiddenInput.getAttribute("form")){if(l){this.hiddenInput.removeAttribute("form")}else{this.hiddenInput.remove();this.hiddenInput=undefined}}}}createHiddenInput(){this.hiddenInput=document.createElement("input");this.hiddenInput.type="checkbox";this.hiddenInput.style.visibility="hidden";this.hiddenInput.style.position="absolute";this.hiddenInput.style.pointerEvents="none";this.el.appendChild(this.hiddenInput)}componentWillLoad(){this.attributesObserver=a.call(this,["size"]);this.hasIcons=!!this.el.querySelector('[slot="icon-start"]')||!!this.el.querySelector('[slot="icon-end"]');const l=this.el.closest("form");if(this.name&&(l||this.form)){this.createHiddenInput();this.hiddenInput.checked=this.checked;this.hiddenInput.name=this.name;if(this.form){this.hiddenInput.setAttribute("form",this.form)}if(this.value){this.hiddenInput.value=this.value}}n(this.autofocus)}disconnectedCallback(){if(this.attributesObserver)this.attributesObserver.disconnect()}render(){return o(i,{class:d(["ld-toggle",this.size==="lg"&&"ld-toggle--lg",this.hasIcons&&"ld-toggle--with-icons"]),onClick:this.handleClick},o("input",Object.assign({},this.clonedAttributes,{"aria-disabled":this.ariaDisabled,checked:this.checked,disabled:this.disabled,onChange:this.handleChange,onInput:this.handleInput,part:"input focusable",ref:l=>this.input=l,required:this.required,tabIndex:this.ldTabindex,type:"checkbox",value:this.value})),o("span",{class:"ld-toggle__knob",part:"knob"}),this.hasIcons&&o("div",{class:"ld-toggle__icon-start",part:"icon-wrapper icon-wrapper-start"},o("slot",{name:"icon-start"})),this.hasIcons&&o("div",{class:"ld-toggle__icon-end",part:"icon-wrapper icon-wrapper-end"},o("slot",{name:"icon-end"})))}get el(){return e(this)}static get watchers(){return{checked:["updateHiddenInput"],name:["updateHiddenInput"],value:["updateHiddenInput"]}}};h.style=c;export{g as ld_modal,h as ld_toggle};
-//# sourceMappingURL=p-24dedd5e.entry.js.map
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-24dedd5e.entry.js.map b/1704966176737/dist/build/p-24dedd5e.entry.js.map
deleted file mode 100644
index fb45328ca9..0000000000
--- a/1704966176737/dist/build/p-24dedd5e.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldModalCss","LdModal","this","handleClose","open","handleCancel","ev","cancelable","preventDefault","handleClick","target","tagName","close","handleTransitionEnd","ldmodalopened","emit","ldmodalclosed","showModal","handleKeyDown","key","onOpenChange","dialogRef","ldmodalopening","ldmodalclosing","componentDidLoad","addEventListener","disconnectedCallback","removeEventListener","render","cl","getClassNames","blurryBackdrop","h","Host","class","onClick","onClose","onTransitionEnd","part","ref","el","name","bind","ldToggleCss","LdToggle","handleChange","event","dispatchEvent","InputEvent","ldchange","checked","isAriaDisabled","ariaDisabled","isTrusted","bubbles","composed","handleInput","ldinput","focusInner","input","undefined","focus","updateHiddenInput","outerForm","closest","hiddenInput","form","createHiddenInput","remove","value","removeAttribute","setAttribute","getAttribute","document","createElement","type","style","visibility","position","pointerEvents","appendChild","componentWillLoad","attributesObserver","cloneAttributes","call","hasIcons","querySelector","registerAutofocus","autofocus","disconnect","size","Object","assign","clonedAttributes","disabled","onChange","onInput","required","tabIndex","ldTabindex"],"sources":["../src/liquid/components/ld-modal/ld-modal.css?tag=ld-modal&encapsulation=shadow","../src/liquid/components/ld-modal/ld-modal.tsx","../src/liquid/components/ld-toggle/ld-toggle.css?tag=ld-toggle&encapsulation=shadow","../src/liquid/components/ld-toggle/ld-toggle.tsx"],"sourcesContent":[":host {\n display: contents;\n}\n\n@keyframes ld-modal-in {\n from {\n transform: translateY(2rem);\n }\n\n to {\n transform: translateY(0);\n }\n}\n\n@keyframes ld-modal-out {\n from {\n transform: scale(1);\n }\n\n to {\n transform: scale(0.9);\n }\n}\n\n@keyframes ld-modal-out-mobile {\n from {\n transform: translateY(0);\n }\n\n to {\n transform: translateY(2rem);\n }\n}\n\ndialog.ld-modal,\n:host {\n --ld-modal-bg-col: var(--ld-col-wht);\n --ld-modal-fixed-padding-x: var(--ld-sp-16);\n --ld-modal-fixed-padding-y: var(--ld-sp-16);\n --ld-modal-padding-x: var(--ld-sp-16);\n --ld-modal-padding-y: var(--ld-sp-24);\n --ld-modal-fixed-bg-col: var(--ld-col-neutral-010);\n --ld-modal-transition-duration: var(--ld-transition-duration-instant);\n --ld-modal-max-inline-size: 30rem;\n --ld-modal-max-block-size: 70rem;\n --ld-modal-min-inline-size: 18rem;\n\n @media (prefers-reduced-motion: no-preference) {\n --ld-modal-transition-duration: var(--ld-transition-duration-normal);\n }\n}\n\ndialog.ld-modal,\n:host dialog {\n /* overwrites */\n border: 0;\n color: var(--ld-col-neutral-900);\n color-scheme: var(--ld-modal-color-scheme, none);\n display: flex; /* allows for transitions */\n flex-direction: column;\n inset: 0; /* keeps the dialog positioned correctly during closing transition */\n margin: auto;\n overflow: visible; /* required due to scalehack */\n padding: 0;\n position: fixed; /* makes sure it stays fixed during closing transition */\n z-index: 2147483647; /* makes sure it is not overlapped during closing transition */\n\n animation: ld-modal-in var(--ld-modal-transition-duration) ease-out forwards;\n border-radius: var(--ld-br-l);\n box-shadow: var(--ld-shadow-active);\n\n /* dimensions */\n max-block-size: min(\n /* account for additional margin bottom on mobile */\n calc(100% - var(--ld-sp-24) - var(--ld-sp-40)),\n var(--ld-modal-max-block-size)\n );\n max-inline-size: min(\n calc(100% - var(--ld-sp-32)),\n var(--ld-modal-max-inline-size)\n );\n min-inline-size: var(--ld-modal-min-inline-size);\n\n transition: opacity var(--ld-modal-transition-duration) linear,\n transform var(--ld-modal-transition-duration) ease;\n\n @media (width <= 32rem) {\n /*\n On mobile we place the dialog at the bottom of the screen\n so that it is easier for the user to interact with it. */\n margin-bottom: var(--ld-sp-40);\n }\n\n &:not([open]) {\n animation: ld-modal-out var(--ld-modal-transition-duration) ease-in forwards;\n opacity: 0;\n pointer-events: none;\n transition: opacity var(--ld-modal-transition-duration) linear,\n visibility 0s var(--ld-modal-transition-duration) linear,\n transform var(--ld-modal-transition-duration) ease;\n visibility: hidden;\n\n @media (width <= 32rem) {\n /*\n On mobile, since the dialog is placed at the bottom of the screen,\n we transition it out slightly differently than on wide view ports. */\n animation-name: ld-modal-out-mobile;\n }\n }\n\n &::after {\n background-color: var(--ld-modal-bg-col);\n border-radius: inherit;\n content: '';\n inset: 0;\n position: absolute;\n z-index: -1;\n }\n\n &::before {\n background-color: var(--ld-thm-primary-active);\n content: '';\n inset: 0;\n opacity: 0.3;\n position: fixed;\n transform: scale(99); /* scalehack required due to animation */\n z-index: -2;\n }\n}\n\ndialog.ld-modal--blurry-backdrop,\n:host(.ld-modal--blurry-backdrop) dialog {\n &::backdrop {\n backdrop-filter: blur(5px);\n }\n}\n\n/* custom icon cross */\n.ld-modal__x {\n place-self: flex-start flex-end;\n appearance: none;\n background-color: transparent;\n border: solid transparent var(--ld-sp-8);\n box-sizing: border-box;\n cursor: pointer;\n display: inline-flex;\n height: 3rem;\n margin: auto calc(var(--ld-sp-16) * -1) auto auto;\n overflow: hidden;\n position: relative;\n width: 3rem;\n\n &::before,\n &::after {\n border-radius: 1rem;\n background-color: var(--ld-col-neutral-900);\n content: '';\n display: block;\n height: 1.25rem;\n left: 50%;\n position: absolute;\n top: 50%;\n width: 0.15rem;\n }\n\n &::before {\n transform: translateX(-50%) translateY(-50%) rotate(45deg);\n }\n\n &::after {\n transform: translateX(-50%) translateY(-50%) rotate(-45deg);\n }\n}\n\n.ld-modal__content {\n flex-grow: 1;\n overflow: hidden auto;\n overscroll-behavior: none;\n padding: var(--ld-modal-padding-y) var(--ld-modal-padding-x);\n}\n\n.ld-modal__header,\n.ld-modal__footer {\n align-items: center;\n background-color: var(--ld-modal-fixed-bg-col);\n display: grid;\n grid-auto-flow: column;\n gap: var(--ld-modal-fixed-padding-x);\n padding: 0 var(--ld-modal-fixed-padding-x);\n}\n\n.ld-modal__header {\n border-radius: var(--ld-br-l) var(--ld-br-l) 0 0;\n\n > *:not(.ld-modal__x),\n > ::slotted(*:not(.ld-modal__x)) {\n padding: var(--ld-sp-12) 0;\n }\n}\n\n.ld-modal__footer {\n border-radius: 0 0 var(--ld-br-l) var(--ld-br-l);\n justify-content: flex-end;\n\n > *,\n > ::slotted(*) {\n margin: var(--ld-modal-fixed-padding-y) 0;\n }\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Method,\n Prop,\n Watch,\n} from '@stencil/core'\nimport { getClassNames } from '../../utils/getClassNames'\n\n/**\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n * @part dialog - Actual `dialog` element\n * @part content - `div` element wrapping the default slot\n * @part footer - `footer` element\n * @part header - `header` element\n */\n@Component({\n tag: 'ld-modal',\n styleUrl: 'ld-modal.css',\n shadow: true,\n})\nexport class LdModal {\n @Element() el: HTMLElement\n private dialogRef: HTMLDialogElement\n\n /** The modal is cancelable by default. However, you can change this using this prop. */\n @Prop() cancelable? = true\n\n /** Indicates that the modal dialog is active and can be interacted with. */\n @Prop({ mutable: true, reflect: true }) open?: boolean\n\n /** Use a blurry backdrop. */\n @Prop() blurryBackdrop? = false\n\n /** Emitted when modal is opening (before transition). */\n @Event() ldmodalopening: EventEmitter\n\n /** Emitted when modal has opened (after transition). */\n @Event() ldmodalopened: EventEmitter\n\n /** Emitted when modal is closing (before transition). */\n @Event() ldmodalclosing: EventEmitter\n\n /** Emitted when modal has closed (after transition). */\n @Event() ldmodalclosed: EventEmitter\n\n /** Opens the modal dialog. */\n @Method()\n async showModal() {\n this.open = true\n }\n\n /** Closes the modal dialog. */\n @Method()\n async close() {\n this.open = false\n }\n\n @Listen('keydown', { passive: true, target: 'window' })\n handleKeyDown(ev: KeyboardEvent) {\n if (ev.key === 'Escape' && this.cancelable) {\n this.open = false\n }\n }\n\n @Watch('open')\n onOpenChange(open: boolean) {\n // Calling the showModal and close methods on the dialog element here\n // is super important, because these make the native focus trap and\n // the backdrop feature work.\n // TODO: Remove @ts-ignore comments as soon as TS types get updated.\n if (open) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this.dialogRef.showModal()\n this.ldmodalopening.emit()\n } else {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this.dialogRef.close()\n this.ldmodalclosing.emit()\n }\n }\n\n private handleClose = () => {\n // When the dialog is closed with the Esc key we need to\n // update the open prop explicitly.\n this.open = false\n }\n\n private handleCancel = (ev: Event) => {\n if (!this.cancelable) {\n ev.preventDefault()\n }\n }\n\n private handleClick = (ev: MouseEvent) => {\n if (this.cancelable && (ev.target as HTMLElement).tagName === 'DIALOG') {\n this.close()\n }\n }\n\n private handleTransitionEnd = () => {\n if (this.open) {\n this.ldmodalopened.emit()\n } else {\n this.ldmodalclosed.emit()\n }\n }\n\n componentDidLoad() {\n this.dialogRef.addEventListener('cancel', this.handleCancel)\n }\n\n disconnectedCallback() {\n /* istanbul ignore if */\n if (this.dialogRef) {\n this.dialogRef.removeEventListener('cancel', this.handleCancel)\n }\n }\n\n render() {\n const cl = getClassNames([\n 'ld-modal',\n this.blurryBackdrop && 'ld-modal--blurry-backdrop',\n ])\n\n return (\n \n \n \n )\n }\n}\n",":host,\n.ld-toggle {\n /* layout */\n --ld-toggle-height: 2rem;\n --ld-toggle-width: 3.375rem;\n --ld-toggle-inner-space: 0.125rem;\n --ld-toggle-with-icons-width: 4.5rem;\n --ld-toggle-lg-height: 2.5rem;\n --ld-toggle-lg-width: 4.1875rem;\n --ld-toggle-lg-inner-space: 0.1875rem;\n --ld-toggle-lg-with-icons-width: 6rem;\n --ld-toggle-border-radius: var(--ld-br-full);\n --ld-toggle-knob-border-radius: var(--ld-br-full);\n\n /* colors */\n --ld-toggle-input-bg-col: var(--ld-col-neutral-600);\n --ld-toggle-icon-start-col: var(--ld-col-wht);\n --ld-toggle-icon-end-col: var(--ld-col-neutral-900);\n --ld-toggle-knob-bg-col: var(--ld-col-wht);\n --ld-toggle-checked-icon-start-col: var(--ld-col-neutral-900);\n --ld-toggle-checked-icon-end-col: var(--ld-col-wht);\n --ld-toggle-disabled-input-bg-col: var(--ld-col-neutral-050);\n --ld-toggle-disabled-icon-col: var(--ld-col-neutral-200);\n --ld-toggle-disabled-knob-bg-col: var(--ld-col-wht);\n --ld-toggle-with-icons-input-bg-col: var(--ld-col-neutral-100);\n --ld-toggle-with-icons-disabled-input-bg-col: var(--ld-col-neutral-050);\n\n /* themable colors */\n --ld-toggle-checked-bg-col: var(--ld-thm-primary);\n --ld-toggle-invalid-input-bg-col: var(--ld-thm-error);\n --ld-toggle-invalid-knob-bg-col: var(--ld-thm-error);\n --ld-toggle-with-icons-knob-col: var(--ld-thm-primary);\n\n align-items: center;\n display: flex;\n height: var(--ld-toggle-height);\n min-width: auto !important;\n position: relative;\n width: var(--ld-toggle-width);\n\n input {\n appearance: none;\n background-color: var(--ld-toggle-input-bg-col);\n border-radius: var(--ld-toggle-border-radius);\n height: 100%;\n margin: 0;\n position: absolute;\n /* animations triggered by user interactions on single component instances are probably not a performance issue */\n /* stylelint-disable-next-line plugin/no-low-performance-animation-properties */\n transition: background-color var(--ld-transition-duration-normal)\n ease-in-out;\n width: 100%;\n z-index: 0;\n\n &:not(\n :disabled,\n [aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false']))\n ) {\n cursor: pointer;\n }\n\n &:checked {\n background-color: var(--ld-toggle-checked-bg-col);\n\n &:disabled,\n &[aria-disabled]:where(\n :not([aria-disabled=''], [aria-disabled='false'])\n ) {\n background-color: var(--ld-toggle-disabled-input-bg-col);\n }\n\n ~ .ld-toggle__knob {\n transform: translateX(\n calc(var(--ld-toggle-width) - var(--ld-toggle-height))\n );\n }\n\n ~ .ld-toggle__icon-start {\n color: var(--ld-toggle-checked-icon-start-col);\n }\n\n ~ .ld-toggle__icon-end {\n color: var(--ld-toggle-checked-icon-end-col);\n }\n }\n\n &:disabled,\n &[aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false'])) {\n background-color: var(--ld-toggle-disabled-input-bg-col);\n\n &:checked ~ .ld-toggle__icon-start,\n &:checked ~ .ld-toggle__icon-end {\n color: var(--ld-toggle-disabled-icon-col);\n }\n\n &:not(:checked) ~ .ld-toggle__icon-start,\n &:not(:checked) ~ .ld-toggle__icon-end {\n color: var(--ld-toggle-disabled-icon-col);\n }\n }\n }\n\n .ld-toggle__knob {\n background-color: var(--ld-toggle-knob-bg-col);\n border-radius: var(--ld-toggle-knob-border-radius);\n display: block;\n height: calc(var(--ld-toggle-height) - var(--ld-toggle-inner-space) * 2);\n margin: var(--ld-toggle-inner-space);\n pointer-events: none;\n transition: transform var(--ld-transition-duration-normal) ease-in-out;\n width: calc(var(--ld-toggle-height) - var(--ld-toggle-inner-space) * 2);\n z-index: 1;\n }\n\n input:where(\n :not(\n :disabled,\n [aria-disabled]:where(\n :not([aria-disabled=''], [aria-disabled='false'])\n )\n )\n ):invalid {\n background-color: var(--ld-toggle-invalid-input-bg-col);\n }\n}\n\n.ld-toggle--lg {\n &,\n :host(&) {\n --ld-toggle-height: var(--ld-toggle-lg-height);\n --ld-toggle-width: var(--ld-toggle-lg-width);\n --ld-toggle-inner-space: var(--ld-toggle-lg-inner-space);\n }\n\n &.ld-toggle--with-icons {\n &,\n :host(&) {\n --ld-toggle-width: var(--ld-toggle-lg-with-icons-width);\n\n .ld-toggle__icon-start,\n .ld-toggle__icon-end {\n margin: auto 0.75rem;\n }\n }\n }\n}\n\n:host(.ld-toggle--with-icons),\n.ld-toggle--with-icons {\n --ld-toggle-width: var(--ld-toggle-with-icons-width);\n\n input {\n &:not(:disabled) {\n background-color: var(--ld-toggle-with-icons-input-bg-col);\n }\n\n &:invalid ~ .ld-toggle__knob {\n background-color: var(--ld-toggle-invalid-knob-bg-col);\n }\n\n &:disabled,\n &[aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false'])) {\n background-color: var(--ld-toggle-with-icons-disabled-input-bg-col);\n\n ~ .ld-toggle__knob {\n background-color: var(--ld-toggle-disabled-knob-bg-col);\n }\n }\n }\n\n .ld-toggle__knob {\n background-color: var(--ld-toggle-with-icons-knob-col);\n }\n\n .ld-toggle__icon-start,\n .ld-toggle__icon-end {\n margin: auto 0.5rem;\n }\n}\n\n.ld-toggle__icon-start,\n.ld-toggle__icon-end {\n display: flex;\n align-items: center;\n pointer-events: none;\n position: absolute;\n /* animations triggered by user interactions on single component instances are probably not a performance issue */\n /* stylelint-disable-next-line plugin/no-low-performance-animation-properties */\n transition: color var(--ld-transition-duration-normal) ease-in-out;\n z-index: 1;\n\n &:empty {\n display: none;\n }\n}\n\n.ld-toggle__icon-start {\n color: var(--ld-toggle-icon-start-col);\n left: 0;\n}\n\n.ld-toggle__icon-end {\n color: var(--ld-toggle-icon-end-col);\n right: 0;\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n State,\n Watch,\n} from '@stencil/core'\nimport { getClassNames } from '../../utils/getClassNames'\nimport { cloneAttributes } from '../../utils/cloneAttributes'\nimport { registerAutofocus } from '../../utils/focus'\nimport { isAriaDisabled } from '../../utils/ariaDisabled'\n\n/**\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n * @part input - Actual input element\n * @part knob - Toggle knob\n * @part icon-wrapper - Both wrappers of icons\n * @part icon-wrapper-start - Wrapper of the start icon\n * @part icon-wrapper-end - Wrapper of the end icon\n */\n@Component({\n tag: 'ld-toggle',\n styleUrl: 'ld-toggle.css',\n shadow: true,\n})\nexport class LdToggle implements InnerFocusable, ClonesAttributes {\n @Element() el: HTMLElement\n\n private attributesObserver: MutationObserver\n\n private input: HTMLInputElement\n private hiddenInput: HTMLInputElement\n private hasIcons: boolean\n\n /** Alternative disabled state that keeps element focusable */\n @Prop() ariaDisabled: string\n\n /** Automatically focus the form control when the page is loaded. */\n @Prop({ reflect: true }) autofocus: boolean\n\n /** Indicates whether the toggle is \"on\". */\n @Prop({ mutable: true }) checked? = false\n\n /** Disabled state of the checkbox. */\n @Prop() disabled?: boolean\n\n /** Associates the control with a form element. */\n @Prop() form?: string\n\n /** Set this property to `true` in order to mark the checkbox visually as invalid. */\n @Prop() invalid?: boolean\n\n /** Tab index of the input. */\n @Prop() ldTabindex?: number\n\n /** Used to specify the name of the control. */\n @Prop() name?: string\n\n /** The value is not editable. */\n @Prop() readonly?: boolean\n\n /** Set this property to `true` in order to mark the checkbox as required. */\n @Prop() required?: boolean\n\n /** Size of the toggle. */\n @Prop() size?: 'sm' | 'lg'\n\n /** The input value. */\n @Prop() value?: string\n\n @State() clonedAttributes\n\n /** Emitted when the input value changed and the element loses focus. */\n @Event() ldchange: EventEmitter\n\n /** Emitted when the input value changed. */\n @Event() ldinput: EventEmitter\n\n /** Sets focus on the toggle. */\n @Method()\n async focusInner() {\n if (this.input !== undefined) {\n this.input.focus()\n }\n }\n\n @Watch('checked')\n @Watch('name')\n @Watch('value')\n updateHiddenInput() {\n const outerForm = this.el.closest('form')\n if (!this.hiddenInput && this.name && (outerForm || this.form)) {\n this.createHiddenInput()\n }\n\n if (this.hiddenInput) {\n if (!this.name) {\n this.hiddenInput.remove()\n this.hiddenInput = undefined\n return\n }\n\n this.hiddenInput.name = this.name\n this.hiddenInput.checked = this.checked\n\n if (this.value) {\n this.hiddenInput.value = this.value\n } else {\n this.hiddenInput.removeAttribute('value')\n }\n\n if (this.form) {\n this.hiddenInput.setAttribute('form', this.form)\n } else if (this.hiddenInput.getAttribute('form')) {\n if (outerForm) {\n this.hiddenInput.removeAttribute('form')\n } else {\n this.hiddenInput.remove()\n this.hiddenInput = undefined\n }\n }\n }\n }\n\n private createHiddenInput() {\n this.hiddenInput = document.createElement('input')\n this.hiddenInput.type = 'checkbox'\n this.hiddenInput.style.visibility = 'hidden'\n this.hiddenInput.style.position = 'absolute'\n this.hiddenInput.style.pointerEvents = 'none'\n this.el.appendChild(this.hiddenInput)\n }\n\n private handleChange = (event: InputEvent) => {\n this.el.dispatchEvent(new InputEvent('change', event))\n this.ldchange.emit(this.checked)\n }\n\n private handleClick = (event: MouseEvent) => {\n if (isAriaDisabled(this.ariaDisabled)) {\n event.preventDefault()\n return\n }\n\n this.checked = !this.checked\n\n if (!event.isTrusted) {\n // This happens, when a click event is dispatched on the host element\n // from the outside i.e. on click on a parent ld-label element.\n this.el.dispatchEvent(\n new InputEvent('input', { bubbles: true, composed: true })\n )\n this.handleInput()\n this.el.dispatchEvent(new InputEvent('change', { bubbles: true }))\n this.ldchange.emit(this.checked)\n }\n }\n\n private handleInput = () => {\n this.ldinput.emit(this.checked)\n }\n\n componentWillLoad() {\n this.attributesObserver = cloneAttributes.call(this, ['size'])\n\n this.hasIcons =\n !!this.el.querySelector('[slot=\"icon-start\"]') ||\n !!this.el.querySelector('[slot=\"icon-end\"]')\n\n const outerForm = this.el.closest('form')\n\n if (this.name && (outerForm || this.form)) {\n this.createHiddenInput()\n this.hiddenInput.checked = this.checked\n this.hiddenInput.name = this.name\n\n if (this.form) {\n this.hiddenInput.setAttribute('form', this.form)\n }\n\n if (this.value) {\n this.hiddenInput.value = this.value\n }\n }\n\n registerAutofocus(this.autofocus)\n }\n\n disconnectedCallback() {\n /* istanbul ignore if */\n if (this.attributesObserver) this.attributesObserver.disconnect()\n }\n\n render() {\n return (\n \n (this.input = ref)}\n required={this.required}\n tabIndex={this.ldTabindex}\n type=\"checkbox\"\n value={this.value}\n />\n \n {this.hasIcons && (\n \n \n
\n )}\n {this.hasIcons && (\n \n \n
\n )}\n \n )\n }\n}\n"],"mappings":"gNAAA,MAAMA,EAAa,w1H,MC2BNC,EAAO,M,iNA+DVC,KAAAC,YAAc,KAGpBD,KAAKE,KAAO,KAAK,EAGXF,KAAAG,aAAgBC,IACtB,IAAKJ,KAAKK,WAAY,CACpBD,EAAGE,gB,GAICN,KAAAO,YAAeH,IACrB,GAAIJ,KAAKK,YAAeD,EAAGI,OAAuBC,UAAY,SAAU,CACtET,KAAKU,O,GAIDV,KAAAW,oBAAsB,KAC5B,GAAIX,KAAKE,KAAM,CACbF,KAAKY,cAAcC,M,KACd,CACLb,KAAKc,cAAcD,M,mBAhFD,K,wCAMI,K,CAgB1B,eAAME,GACJf,KAAKE,KAAO,I,CAKd,WAAMQ,GACJV,KAAKE,KAAO,K,CAId,aAAAc,CAAcZ,GACZ,GAAIA,EAAGa,MAAQ,UAAYjB,KAAKK,WAAY,CAC1CL,KAAKE,KAAO,K,EAKhB,YAAAgB,CAAahB,GAKX,GAAIA,EAAM,CAGRF,KAAKmB,UAAUJ,YACff,KAAKoB,eAAeP,M,KACf,CAGLb,KAAKmB,UAAUT,QACfV,KAAKqB,eA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AKsC,GAAG8C,cAAc,qBAE1B,MAAMvB,EAAY7D,KAAKsC,GAAGwB,QAAQ,QAElC,GAAI9D,KAAKuC,OAASsB,GAAa7D,KAAKgE,MAAO,CACzChE,KAAKiE,oBACLjE,KAAK+D,YAAYf,QAAUhD,KAAKgD,QAChChD,KAAK+D,YAAYxB,KAAOvC,KAAKuC,KAE7B,GAAIvC,KAAKgE,KAAM,CACbhE,KAAK+D,YAAYM,aAAa,OAAQrE,KAAKgE,K,CAG7C,GAAIhE,KAAKmE,MAAO,CACdnE,KAAK+D,YAAYI,MAAQnE,KAAKmE,K,EAIlCkB,EAAkBrF,KAAKsF,U,CAGzB,oBAAA9D,GAEE,GAAIxB,KAAKgF,mBAAoBhF,KAAKgF,mBAAmBO,Y,CAGvD,MAAA7D,GACE,OACEI,EAACC,EAAI,CACHC,MAAOJ,EAAc,CACnB,YACA5B,KAAKwF,OAAS,MAAQ,gBACtBxF,KAAKmF,UAAY,0BAEnBlD,QAASjC,KAAKO,aAEduB,EAAA,QAAA2D,OAAAC,OAAA,GACM1F,KAAK2F,iBAAgB,iBACV3F,KAAKkD,aACpBF,QAAShD,KAAKgD,QACd4C,SAAU5F,KAAK4F,SACfC,SAAU7F,KAAK2C,aACfmD,QAAS9F,KAAKsD,YACdlB,KAAK,kBACLC,IAAMA,GAASrC,KAAKyD,MAAQpB,EAC5B0D,SAAU/F,KAAK+F,SACfC,SAAUhG,KAAKiG,WACfxB,KAAK,WACLN,MAAOnE,KAAKmE,SAEdrC,EAAA,QAAME,MAAM,kBAAkBI,KAAK,SAClCpC,KAAKmF,UACJrD,EAAA,OACEE,MAAM,wBACNI,KAAK,mCAELN,EAAA,QAAMS,KAAK,gBAGdvC,KAAKmF,UACJrD,EAAA,OAAKE,MAAM,sBAAsBI,KAAK,iCACpCN,EAAA,QAAMS,KAAK,c"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-2dcf38f5.entry.js.map b/1704966176737/dist/build/p-2dcf38f5.entry.js.map
deleted file mode 100644
index 8d16ebffcd..0000000000
--- a/1704966176737/dist/build/p-2dcf38f5.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldSidenavBackShadowCss","LdSidenavBack","this","onClick","ldSidenavBack","emit","onKeyDown","ev","includes","key","preventDefault","handleSidenavCollapsedChange","target","sidenav","sidenavCollapsed","detail","collapsed","handleSidenavBreakpointChange","sidenavClosable","updateLabel","text","parentLabel","componentWillLoad","closest","el","rounded","querySelector","render","cl","getClassNames","h","tabIndex","undefined","role","backLabel","class","part","width","height","fill","d","stroke"],"sources":["../src/liquid/components/ld-sidenav/ld-sidenav-back/ld-sidenav-back.shadow.css?tag=ld-sidenav-back&encapsulation=shadow","../src/liquid/components/ld-sidenav/ld-sidenav-back/ld-sidenav-back.tsx"],"sourcesContent":[".ld-sidenav-back {\n /* layout */\n --ld-sidenav-back-bg-inset: var(--ld-sp-6);\n --ld-sidenav-back-border-radius: var(--ld-br-l);\n --ld-sidenav-back-icon-size: var(--ld-sp-24);\n\n /* colors */\n --ld-sidenav-back-col: var(--ld-col-neutral-800);\n --ld-sidenav-back-col-active: var(--ld-thm-primary-active);\n --ld-sidenav-back-col-hover: var(--ld-thm-primary);\n --ld-sidenav-back-col-focus: var(--ld-thm-primary);\n --ld-sidenav-back-indicator-col: transparent;\n --ld-sidenav-back-indicator-col-focus: var(--ld-thm-primary-focus);\n --ld-sidenav-back-indicator-col-active: var(--ld-thm-primary);\n\n outline: none;\n display: block;\n\n @media (hover: hover) {\n &:where(:hover) {\n --ld-sidenav-back-col: var(--ld-sidenav-back-col-hover);\n --ld-sidenav-back-indicator-col: var(--ld-col-neutral-300);\n }\n }\n\n &:focus:focus-visible {\n --ld-sidenav-back-col: var(--ld-sidenav-back-col-focus);\n --ld-sidenav-back-indicator-col: var(--ld-sidenav-back-indicator-col-focus);\n }\n\n &:active {\n --ld-sidenav-back-col: var(--ld-sidenav-back-col-active);\n --ld-sidenav-back-indicator-col: var(\n --ld-sidenav-back-indicator-col-active\n );\n\n .ld-sidenav-back__bg {\n opacity: 0.3;\n }\n }\n\n &--rounded {\n --ld-sidenav-back-border-radius: var(--ld-br-full);\n }\n\n ::slotted(ld-sidenav-navitem) {\n margin-top: var(--ld-sidenav-padding-y);\n margin-bottom: var(--ld-sidenav-padding-y);\n }\n\n &.ld-sidenav-back--collapsed {\n .ld-sidenav-back__bg {\n transform: translateX(\n calc(var(--ld-sidenav-width) - var(--ld-sidenav-width-collapsed))\n );\n }\n }\n}\n\n.ld-sidenav-back__btn-back {\n display: none;\n background-color: transparent;\n position: relative;\n font: var(--ld-typo-body-s);\n border: 0;\n cursor: pointer;\n user-select: none;\n touch-action: manipulation;\n color: var(--ld-sidenav-back, var(--ld-col-neutral-800));\n grid-template-columns: auto 1fr;\n gap: var(--ld-sp-12);\n align-items: center;\n font-weight: 700;\n line-height: 1;\n box-sizing: border-box;\n padding: 0;\n text-align: left;\n outline: none;\n margin: var(--ld-sidenav-padding-y) var(--ld-sidenav-padding-x);\n -webkit-touch-callout: none;\n}\n\n.ld-sidenav-back__bg {\n position: absolute;\n inset: calc(-1 * var(--ld-sidenav-back-bg-inset));\n display: block;\n opacity: 0.2;\n transition: transform var(--ld-sidenav-transition-duration-collapse-expand)\n ease;\n pointer-events: none;\n}\n\n/*\nUsing z-index -1 on .ld-sidenav-back__bg results\nin .ld-sidenav-back__bg not being clickable.\nThat's why we set z-index 0 on the following elements.\n*/\n.ld-sidenav-back__icon,\n.ld-sidenav-back__btn-back-label {\n position: relative;\n z-index: 0;\n}\n\n.ld-sidenav-back__bg-left,\n.ld-sidenav-back__bg-right,\n.ld-sidenav-back__bg-center {\n background-color: var(--ld-sidenav-back-indicator-col);\n position: absolute;\n top: 0;\n bottom: 0;\n transition: transform var(--ld-sidenav-transition-duration-collapse-expand)\n ease;\n pointer-events: all;\n}\n\n.ld-sidenav-back__bg-left,\n.ld-sidenav-back__bg-right {\n width: calc(0.5 * var(--ld-sidenav-navitem-icon-size) + var(--ld-sp-6));\n}\n\n.ld-sidenav-back__bg-left {\n left: 0;\n border-bottom-left-radius: calc(\n var(--ld-sidenav-back-border-radius) + var(--ld-sp-6)\n );\n border-top-left-radius: calc(\n var(--ld-sidenav-back-border-radius) + var(--ld-sp-6)\n );\n}\n\n.ld-sidenav-back__bg-right {\n right: 0;\n border-bottom-right-radius: calc(\n var(--ld-sidenav-back-border-radius) + var(--ld-sp-6)\n );\n border-top-right-radius: calc(\n var(--ld-sidenav-back-border-radius) + var(--ld-sp-6)\n );\n\n .ld-sidenav-back--collapsed & {\n transform: translateX(calc(-1 * var(--ld-sidenav-translate-x-delta) - 1px));\n }\n}\n\n.ld-sidenav-back__bg-center {\n left: calc(0.5 * var(--ld-sidenav-navitem-icon-size) + var(--ld-sp-6));\n right: calc(0.5 * var(--ld-sidenav-navitem-icon-size) + var(--ld-sp-6));\n transform-origin: left;\n\n .ld-sidenav-back--collapsed & {\n transform: scaleX(0);\n }\n}\n\n.ld-sidenav-back--is-back {\n .ld-sidenav-back__btn-back {\n display: grid;\n }\n .ld-sidenav-back__slot-container {\n display: none;\n }\n}\n\n.ld-sidenav-back__icon {\n width: var(--ld-sidenav-navitem-icon-size);\n aspect-ratio: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n transition: transform var(--ld-sidenav-transition-duration-collapse-expand)\n ease;\n\n .ld-sidenav-back--collapsed & {\n transform: translateX(var(--ld-sidenav-translate-x-delta));\n }\n\n &::before {\n content: '';\n background-color: var(--ld-thm-primary-active);\n border-radius: var(--ld-br-full);\n height: var(--ld-sidenav-back-icon-size);\n overflow: hidden;\n position: absolute;\n width: var(--ld-sidenav-back-icon-size);\n z-index: -1;\n }\n}\n\n.ld-sidenav-back__btn-back-label {\n text-overflow: ellipsis;\n overflow: hidden;\n color: var(--ld-sidenav-back-col);\n white-space: nowrap;\n padding-right: var(--ld-sp-6);\n position: relative;\n transition: opacity var(--ld-sidenav-transition-duration-collapse-expand)\n linear,\n transform var(--ld-sidenav-transition-duration-collapse-expand) ease;\n\n .ld-sidenav-back--collapsed & {\n opacity: 0;\n transform: translateX(var(--ld-sidenav-translate-x-delta));\n }\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Listen,\n Method,\n Prop,\n State,\n} from '@stencil/core'\nimport { getClassNames } from '../../../utils/getClassNames'\nimport { closest } from '../../../utils/closest'\n\n/**\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n */\n@Component({\n tag: 'ld-sidenav-back',\n styleUrl: 'ld-sidenav-back.shadow.css',\n shadow: true,\n})\nexport class LdSidenavBack {\n @Element() el: HTMLElement\n private sidenav: HTMLLdSidenavElement\n\n /** Emitted on click. */\n @Event() ldSidenavBack: EventEmitter\n\n /** Used as aria-label for the back button */\n @Prop() backLabel? = 'Back'\n\n @State() parentLabel = ''\n @State() rounded = false\n @State() sidenavCollapsed: boolean\n @State() sidenavClosable: boolean\n\n @Listen('ldSidenavCollapsedChange', { target: 'window', passive: true })\n handleSidenavCollapsedChange(\n ev: CustomEvent<{\n collapsed: boolean\n fully: boolean\n }>\n ) {\n if (ev.target !== this.sidenav) return\n this.sidenavCollapsed = ev.detail.collapsed\n }\n\n @Listen('ldSidenavBreakpointChange', { target: 'window', passive: true })\n handleSidenavBreakpointChange(ev) {\n if (ev.target !== this.sidenav) return\n this.sidenavClosable = ev.detail\n }\n\n /**\n * @internal\n * Updates the label of the back button.\n */\n @Method()\n async updateLabel(text?: string) {\n this.parentLabel = text || ''\n }\n\n private onClick = () => {\n this.ldSidenavBack.emit()\n }\n\n private onKeyDown = (ev) => {\n if ([' ', 'Enter'].includes(ev.key)) {\n ev.preventDefault()\n this.ldSidenavBack.emit()\n }\n }\n\n componentWillLoad() {\n this.sidenav = closest('ld-sidenav', this.el)\n this.rounded = !!this.el.querySelector('ld-sidenav-navitem[rounded]')\n }\n\n render() {\n const cl = getClassNames([\n 'ld-sidenav-back',\n this.parentLabel && 'ld-sidenav-back--is-back',\n this.rounded && 'ld-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ACXL,EAAA,OAAKK,MAAM,+BAEbL,EAAA,OAAKK,MAAM,wBAAwBC,KAAK,kBACtCN,EAAA,OAAKM,KAAK,OAAOC,MAAM,KAAKC,OAAO,KAAKC,KAAK,QAC3CT,EAAA,QACEU,EAAE,0CACFC,OAAO,UAAS,eACH,IAAG,iBACD,QAAO,kBACN,YAItBX,EAAA,QAAMK,MAAM,kCAAkCC,KAAK,SAChDlC,KAAKmB,cAGVS,EAAA,OAAKK,MAAM,kCAAkCC,KAAK,kBAChDN,EAAA,c"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-2f76f5f2.entry.js b/1704966176737/dist/build/p-2f76f5f2.entry.js
deleted file mode 100644
index b277b19b1e..0000000000
--- a/1704966176737/dist/build/p-2f76f5f2.entry.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{r as t,c as e,h as i,H as o,g as l}from"./p-21a69c18.js";import{g as s}from"./p-1133c92e.js";import{r as c}from"./p-8dc70a87.js";import{i as d}from"./p-b05f0e4e.js";import{c as r}from"./p-71026bf3.js";const n=".docs-pick-theme{--docs-pick-theme-icon-size:1.25rem}.docs-pick-theme__fieldset{border:0}.docs-pick-theme ld-icon{height:var(--docs-pick-theme-icon-size);width:var(--docs-pick-theme-icon-size)}.docs-pick-theme__select::part(trigger-text-wrapper){display:none}.docs-pick-theme__select::part(btn-trigger){padding:var(--ld-sp-6)}.docs-pick-theme__select,.docs-pick-theme__select::part(btn-trigger),.docs-pick-theme__select::part(select){height:var(--ld-sp-32);width:var(--ld-sp-32)}.docs-pick-theme__popper{min-width:14rem}.docs-pick-theme__option-pattern{bottom:0;height:100%;position:absolute;right:0;top:0}.docs-pick-theme__option::part(option){font-weight:700;overflow:hidden}.docs-pick-theme__option.ld-theme-ocean::part(check){color:var(--ld-thm-ocean-primary)}.docs-pick-theme__option.ld-theme-ocean::part(option){color:var(--ld-thm-ocean-primary)}@media (hover:hover){.docs-pick-theme__option.ld-theme-ocean::part(option):hover{background-color:var(--ld-col-rb-010);color:var(--ld-thm-ocean-primary-hover)}}.docs-pick-theme__option.ld-theme-ocean::part(option):focus:focus-visible{background-color:var(--ld-col-rb-010);color:var(--ld-col-rb-800)}.docs-pick-theme__option.ld-theme-ocean::part(option):focus:focus-visible:before{box-shadow:inset 0 0 0 var(--ld-sp-1) var(--ld-thm-ocean-primary-focus)}.docs-pick-theme__option.ld-theme-ocean .docs-pick-theme__option-pattern-primary{fill:var(--ld-thm-ocean-primary)}.docs-pick-theme__option.ld-theme-ocean .docs-pick-theme__option-pattern-accent{fill:var(--ld-thm-ocean-secondary)}.docs-pick-theme__option.ld-theme-ocean.ld-option-internal--hover-within .docs-pick-theme__option-pattern-primary{fill:var(--ld-thm-ocean-primary-hover)}.docs-pick-theme__option.ld-theme-ocean.ld-option-internal--hover-within .docs-pick-theme__option-pattern-accent{fill:var(--ld-thm-ocean-secondary-hover)}.docs-pick-theme__option.ld-theme-ocean.ld-option-internal--hover-within::part(check){color:var(--ld-thm-ocean-primary-hover)}.docs-pick-theme__option.ld-theme-ocean.ld-option-internal--focus-within:focus-visible .docs-pick-theme__option-pattern-primary{fill:var(--ld-thm-ocean-primary-focus)}.docs-pick-theme__option.ld-theme-ocean.ld-option-internal--focus-within:focus-visible .docs-pick-theme__option-pattern-accent{fill:var(--ld-thm-ocean-secondary-focus)}.docs-pick-theme__option.ld-theme-ocean.ld-option-internal--focus-within:focus-visible::part(check){color:var(--ld-col-rb-800)}.docs-pick-theme__option.ld-theme-bubblegum::part(check){color:var(--ld-thm-bubblegum-primary)}.docs-pick-theme__option.ld-theme-bubblegum::part(option){color:var(--ld-thm-bubblegum-primary)}@media (hover:hover){.docs-pick-theme__option.ld-theme-bubblegum::part(option):hover{background-color:var(--ld-col-rp-010);color:var(--ld-thm-bubblegum-primary-hover)}}.docs-pick-theme__option.ld-theme-bubblegum::part(option):focus:focus-visible{background-color:var(--ld-col-rp-010);color:var(--ld-col-rp-900)}.docs-pick-theme__option.ld-theme-bubblegum::part(option):focus:focus-visible:before{box-shadow:inset 0 0 0 var(--ld-sp-1) var(--ld-thm-bubblegum-primary-focus)}.docs-pick-theme__option.ld-theme-bubblegum .docs-pick-theme__option-pattern-primary{fill:var(--ld-thm-bubblegum-primary)}.docs-pick-theme__option.ld-theme-bubblegum .docs-pick-theme__option-pattern-accent{fill:var(--ld-thm-bubblegum-secondary)}.docs-pick-theme__option.ld-theme-bubblegum.ld-option-internal--hover-within .docs-pick-theme__option-pattern-primary{fill:var(--ld-thm-bubblegum-primary-hover)}.docs-pick-theme__option.ld-theme-bubblegum.ld-option-internal--hover-within .docs-pick-theme__option-pattern-accent{fill:var(--ld-thm-bubblegum-secondary-hover)}.docs-pick-theme__option.ld-theme-bubblegum.ld-option-internal--hover-within::part(check){color:var(--ld-thm-bubblegum-primary-hover)}.docs-pick-theme__option.ld-theme-bubblegum.ld-option-internal--focus-within:focus-visible .docs-pick-theme__option-pattern-primary{fill:var(--ld-thm-bubblegum-primary-focus)}.docs-pick-theme__option.ld-theme-bubblegum.ld-option-internal--focus-within:focus-visible .docs-pick-theme__option-pattern-accent{fill:var(--ld-thm-bubblegum-primary-focus)}.docs-pick-theme__option.ld-theme-bubblegum.ld-option-internal--focus-within:focus-visible::part(check){color:var(--ld-col-rp-900)}.docs-pick-theme__option.ld-theme-shake::part(check){color:var(--ld-thm-shake-primary)}.docs-pick-theme__option.ld-theme-shake::part(option){color:var(--ld-thm-shake-primary)}@media (hover:hover){.docs-pick-theme__option.ld-theme-shake::part(option):hover{background-color:var(--ld-col-rp-010);color:var(--ld-thm-shake-primary-hover)}}.docs-pick-theme__option.ld-theme-shake::part(option):focus:focus-visible{background-color:var(--ld-col-rp-010);color:var(--ld-col-rp-900)}.docs-pick-theme__option.ld-theme-shake::part(option):focus:focus-visible:before{box-shadow:inset 0 0 0 var(--ld-sp-1) var(--ld-thm-shake-primary-focus)}.docs-pick-theme__option.ld-theme-shake .docs-pick-theme__option-pattern-primary{fill:var(--ld-thm-shake-primary)}.docs-pick-theme__option.ld-theme-shake .docs-pick-theme__option-pattern-accent{fill:var(--ld-thm-shake-secondary)}.docs-pick-theme__option.ld-theme-shake.ld-option-internal--hover-within .docs-pick-theme__option-pattern-primary{fill:var(--ld-thm-shake-primary-hover)}.docs-pick-theme__option.ld-theme-shake.ld-option-internal--hover-within .docs-pick-theme__option-pattern-accent{fill:var(--ld-thm-shake-secondary-hover)}.docs-pick-theme__option.ld-theme-shake.ld-option-internal--hover-within::part(check){color:var(--ld-thm-shake-primary-hover)}.docs-pick-theme__option.ld-theme-shake.ld-option-internal--focus-within:focus-visible .docs-pick-theme__option-pattern-primary{fill:var(--ld-thm-shake-primary-focus)}.docs-pick-theme__option.ld-theme-shake.ld-option-internal--focus-within:focus-visible .docs-pick-theme__option-pattern-accent{fill:var(--ld-thm-shake-secondary-focus)}.docs-pick-theme__option.ld-theme-shake.ld-option-internal--focus-within:focus-visible::part(check){color:var(--ld-col-rp-900)}.docs-pick-theme__option.ld-theme-solvent::part(check){color:var(--ld-thm-solvent-primary)}.docs-pick-theme__option.ld-theme-solvent::part(option){color:var(--ld-thm-solvent-primary)}@media (hover:hover){.docs-pick-theme__option.ld-theme-solvent::part(option):hover{background-color:var(--ld-col-rp-010);color:var(--ld-thm-solvent-primary-hover)}}.docs-pick-theme__option.ld-theme-solvent::part(option):focus:focus-visible{background-color:var(--ld-col-rp-010);color:var(--ld-col-rp-900)}.docs-pick-theme__option.ld-theme-solvent::part(option):focus:focus-visible:before{box-shadow:inset 0 0 0 var(--ld-sp-1) var(--ld-thm-solvent-primary-focus)}.docs-pick-theme__option.ld-theme-solvent .docs-pick-theme__option-pattern-primary{fill:var(--ld-thm-solvent-primary)}.docs-pick-theme__option.ld-theme-solvent .docs-pick-theme__option-pattern-accent{fill:var(--ld-thm-solvent-secondary)}.docs-pick-theme__option.ld-theme-solvent.ld-option-internal--hover-within .docs-pick-theme__option-pattern-primary{fill:var(--ld-thm-solvent-primary-hover)}.docs-pick-theme__option.ld-theme-solvent.ld-option-internal--hover-within .docs-pick-theme__option-pattern-accent{fill:var(--ld-thm-solvent-secondary-hover)}.docs-pick-theme__option.ld-theme-solvent.ld-option-internal--hover-within::part(check){color:var(--ld-thm-solvent-primary-hover)}.docs-pick-theme__option.ld-theme-solvent.ld-option-internal--focus-within:focus-visible .docs-pick-theme__option-pattern-primary{fill:var(--ld-thm-solvent-primary-focus)}.docs-pick-theme__option.ld-theme-solvent.ld-option-internal--focus-within:focus-visible .docs-pick-theme__option-pattern-accent{fill:var(--ld-thm-solvent-primary-focus)}.docs-pick-theme__option.ld-theme-solvent.ld-option-internal--focus-within:focus-visible::part(check){color:var(--ld-col-rp-900)}.docs-pick-theme__option.ld-theme-tea::part(check){color:var(--ld-thm-tea-primary)}.docs-pick-theme__option.ld-theme-tea::part(option){color:var(--ld-thm-tea-primary)}@media (hover:hover){.docs-pick-theme__option.ld-theme-tea::part(option):hover{background-color:var(--ld-col-rg-010);color:var(--ld-thm-tea-primary-hover)}}.docs-pick-theme__option.ld-theme-tea::part(option):focus:focus-visible{background-color:var(--ld-col-rg-010);color:var(--ld-col-rg-900)}.docs-pick-theme__option.ld-theme-tea::part(option):focus:focus-visible:before{box-shadow:inset 0 0 0 var(--ld-sp-1) var(--ld-thm-tea-primary-focus)}.docs-pick-theme__option.ld-theme-tea .docs-pick-theme__option-pattern-primary{fill:var(--ld-thm-tea-primary)}.docs-pick-theme__option.ld-theme-tea .docs-pick-theme__option-pattern-accent{fill:var(--ld-thm-tea-secondary)}.docs-pick-theme__option.ld-theme-tea.ld-option-internal--hover-within .docs-pick-theme__option-pattern-primary{fill:var(--ld-thm-tea-primary-hover)}.docs-pick-theme__option.ld-theme-tea.ld-option-internal--hover-within .docs-pick-theme__option-pattern-accent{fill:var(--ld-thm-tea-secondary-hover)}.docs-pick-theme__option.ld-theme-tea.ld-option-internal--hover-within::part(check){color:var(--ld-thm-tea-primary-hover)}.docs-pick-theme__option.ld-theme-tea.ld-option-internal--focus-within:focus-visible .docs-pick-theme__option-pattern-primary{fill:var(--ld-thm-tea-primary-focus)}.docs-pick-theme__option.ld-theme-tea.ld-option-internal--focus-within:focus-visible .docs-pick-theme__option-pattern-accent{fill:var(--ld-thm-tea-secondary-focus)}.docs-pick-theme__option.ld-theme-tea.ld-option-internal--focus-within:focus-visible::part(check){color:var(--ld-col-rg-900)}";const h=class{constructor(i){t(this,i);this.pickTheme=e(this,"pickTheme",7);this.themes=["ocean","bubblegum","shake","solvent","tea"];this.currentTheme="ocean"}handleChange(t){this.pickTheme.emit(t.detail[0]);this.currentTheme=t.detail[0]}render(){return i(o,{class:`docs-pick-theme ld-theme-${this.currentTheme.toLowerCase()}`},i("form",null,i("fieldset",{class:"docs-pick-theme__fieldset"},i("ld-sr-only",null,i("legend",null,"Pick a theme")),i("ld-select",{class:"docs-pick-theme__select",onLdchange:this.handleChange.bind(this),preventDeselection:true,mode:"ghost",tetherOptions:JSON.stringify({attachment:"top right",targetAttachment:"bottom right",offset:"-2px -8px"}),popperClass:"docs-pick-theme__popper"},this.themes.map((t=>i("ld-option",{value:t.toLowerCase(),class:`docs-pick-theme__option ld-theme-${t.toLowerCase()}`,selected:t===this.currentTheme},t.charAt(0).toUpperCase()+t.slice(1).toLowerCase(),i("svg",{role:"presentation",class:"docs-pick-theme__option-pattern","fill-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2","clip-rule":"evenodd",viewBox:"0 0 88 41"},i("path",{class:"docs-pick-theme__option-pattern-primary",d:"M88 41V0H72.894L50.257 15.408c-6.465 4.408-5.884 5.492-6.428 8.6-.262 1.493-.256 9.29-.173 16.992H88z"}),i("path",{class:"docs-pick-theme__option-pattern-accent",d:"M9.372 14.479c.445-.889.369-1.265 2.712-2.031 2.339-.753 12.084-3.895 12.088-3.908 1.067-.574 2.663-.369 3.547.461l10.055 9.513c.879.844 1.581 2.515 1.549 3.737l-.236 10.345c-.033 1.221-1.048 2.314-2.255 2.42l-19.07 1.741c-1.208.106-2.918-.5-3.78-1.354l-7.428-7.431c-.863-.854-.714-1.793-.207-3.302 0 0 2.581-9.302 3.025-10.191z"}))))),i("ld-icon",{slot:"icon"},i("svg",{class:"docs-pick-theme__icon",fill:"none",viewBox:"0 0 32 32"},i("path",{fill:"currentColor",stroke:"currentColor",d:"M9 20l-.7-.7a1 1 0 00-.3.7h1zm3.5 3.5v1a1 1 0 00.7-.3l-.7-.7zm9-9l.7.7a1 1 0 000-1.4l-.7.7zM18 11l.7-.7a1 1 0 00-1.4 0l.7.7zM8 20v2.5h2V20H8zm2 4.5h2.5v-2H10v2zm3.2-.3l9-9-1.4-1.4-9 9 1.4 1.4zm9-10.4l-3.5-3.5-1.4 1.4 3.5 3.5 1.4-1.4zm-4.9-3.5l-9 9 1.4 1.4 9-9-1.4-1.4zM8 22.5c0 1.1.9 2 2 2v-2H8z"}),i("path",{fill:"currentColor",stroke:"currentColor",d:"M17.58 10.33L19.92 8a2 2 0 012.83 0l1.79 1.79a2 2 0 010 2.83l-2.35 2.34-4.61-4.62zM9 23v-4l4 4H9z"}),i("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M23 16l-6.5-6.5"})))))))}};h.style=n;const a=".docs-toggle-code svg{height:100%;width:100%}";const p=class{constructor(i){t(this,i);this.toggleCode=e(this,"toggleCode",7);this.isOn=undefined}handleClick(t){t.preventDefault();this.toggleCode.emit(!this.isOn)}render(){return i("ld-button",{role:"switch","aria-checked":this.isOn?"true":"false",class:"docs-toggle-code",mode:this.isOn?undefined:"ghost",size:"sm"},i("ld-sr-only",null,"Toggle code"),i("ld-icon",{size:"sm"},i("svg",{fill:"none",viewBox:"0 0 22 22"},i("path",{stroke:"currentcolor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m8 18 6-13m3 10 4-4-4-4M5 7l-4 4 4 4"}))))}};p.style=a;const m=".ld-switch,:host{--ld-switch-item-icon-size:1.25rem;--ld-switch-item-icon-size-sm:1rem;--ld-switch-item-icon-size-lg:1.5rem;--ld-switch-item-icon-margin-x:-0.25rem;--ld-switch-item-icon-margin-x-sm:-0.125rem;--ld-switch-item-icon-margin-x-lg:-0.5rem;--ld-switch-item-justify-content:center;--ld-switch-item-padding-x:0.875rem;--ld-switch-item-padding-y:0.625rem;--ld-switch-item-padding-x-sm:0.625rem;--ld-switch-item-padding-y-sm:0.4375rem;--ld-switch-item-padding-x-lg:1.3125rem;--ld-switch-item-padding-y-lg:0.85rem;--ld-switch-item-gap:0.875rem;--ld-switch-item-gap-sm:0.625rem;--ld-switch-item-gap-lg:1.1875rem;--ld-switch-font:var(--ld-typo-body-m);--ld-switch-font-sm:var(--ld-typo-body-s);--ld-switch-font-lg:var(--ld-typo-body-l);--ld-switch-bg-col:var(--ld-thm-primary-alpha-low);--ld-switch-bg-col-hover:var(--ld-thm-primary-hover);--ld-switch-bg-col-active:var(--ld-thm-primary-active);--ld-switch-bg-col-focus:var(--ld-thm-primary-focus);--ld-switch-item-col:var(--ld-thm-primary-hover);--ld-switch-item-label-bg-col:var(--ld-col-wht);--ld-switch-selected-col:var(--ld-col-wht);--ld-switch-selected-bg-col:var(--ld-thm-primary)}.ld-switch legend,:host legend{height:var(--ld-sp-1);padding:0;position:absolute;width:var(--ld-sp-1);clip:rect(0,0,0,0);border-width:0}:host{display:inline-flex}.ld-switch,:host fieldset{border:0;border-radius:var(--ld-br-m);display:inline-grid;grid-auto-columns:minmax(min-content,1fr);grid-auto-flow:column;margin:0;min-width:auto;overflow:hidden;padding:0;position:relative}.ld-switch--fit-content,:host(.ld-switch--fit-content) fieldset{--ld-switch-item-justify-content:flex-start;grid-auto-columns:minmax(0,auto)}:host fieldset{height:100%;width:100%}.ld-switch--sm,:host(.ld-switch--sm){--ld-switch-font:var(--ld-switch-font-sm);--ld-switch-item-gap:var(--ld-switch-item-gap-sm);--ld-switch-item-icon-margin-x:var(--ld-switch-item-icon-margin-x-sm);--ld-switch-item-icon-size:var(--ld-switch-item-icon-size-sm);--ld-switch-item-padding-x:var(--ld-switch-item-padding-x-sm);--ld-switch-item-padding-y:var(--ld-switch-item-padding-y-sm)}.ld-switch--lg,:host(.ld-switch--lg){--ld-switch-font:var(--ld-switch-font-lg);--ld-switch-item-gap:var(--ld-switch-item-gap-lg);--ld-switch-item-icon-margin-x:var(--ld-switch-item-icon-margin-x-lg);--ld-switch-item-icon-size:var(--ld-switch-item-icon-size-lg);--ld-switch-item-padding-x:var(--ld-switch-item-padding-x-lg);--ld-switch-item-padding-y:var(--ld-switch-item-padding-y-lg)}.ld-switch--brand-color,:host(.ld-switch--brand-color){--ld-switch-item-col:var(--ld-col-wht);--ld-switch-item-bg-col:var(--ld-col-wht-alpha-low);--ld-switch-item-label-bg-col:var(--ld-thm-primary);--ld-switch-item-bg-col-hover:var(--ld-col-wht-alpha-high);--ld-switch-item-bg-col-active:var(--ld-col-wht-alpha-medium);--ld-switch-item-bg-col-focus:var(--ld-col-wht-alpha-high);--ld-switch-item-bg-col-selected:var(--ld-col-wht);--ld-switch-item-col-selected:var(--ld-thm-primary);--ld-switch-item-col-active:var(--ld-switch-item-col-selected)}";const v=class{constructor(i){t(this,i);this.ldswitchchange=e(this,"ldswitchchange",7);this.handleItemFocus=()=>{this.hasFocus=true};this.handleFocus=()=>{this.focusInner()};this.handleFocusout=()=>{this.hasFocus=false};this.size=undefined;this.brandColor=undefined;this.legend=undefined;this.autofocus=undefined;this.disabled=undefined;this.fitContent=false;this.form=undefined;this.ariaDisabled=undefined;this.name=undefined;this.readonly=undefined;this.required=undefined;this.ldTabindex=undefined;this.hasFocus=false}handleLdSwitchItemChange(t){t.stopImmediatePropagation();const e=t.target;this.ldswitchchange.emit(e.value)}async focusInner(){const t=Array.from(this.el.querySelectorAll("ld-switch-item")).filter((t=>!t.disabled));const e=t.find((t=>t.checked));if(e){e.focusInner()}else{t[0].focusInner()}}updateSwitchItemProps(){const t=this.el.querySelectorAll("ld-switch-item");t.forEach((t=>{if(d(this.ariaDisabled)){t.ariaDisabled=this.ariaDisabled}if(this.disabled){t.disabled=this.disabled}t.form=this.form;t.ldTabindex=this.ldTabindex;t.name=this.name;t.readonly=this.readonly;t.required=this.required}))}componentWillLoad(){this.updateSwitchItemProps();c(this.autofocus)}render(){return i(o,{class:s(["ld-switch",this.brandColor&&`ld-switch--brand-color`,this.fitContent&&`ld-switch--fit-content`,this.size&&`ld-switch--${this.size}`]),onLdswitchitemfocus:this.handleItemFocus,onFocus:this.handleFocus,onFocusout:this.handleFocusout,tabIndex:this.disabled||d(this.ariaDisabled)?this.ldTabindex:this.hasFocus?-1:this.ldTabindex||0},i("fieldset",{part:"fieldset"},this.legend&&i("legend",{part:"legend"},this.legend),i("slot",null)))}get el(){return l(this)}static get watchers(){return{ariaDisabled:["updateSwitchItemProps"],disabled:["updateSwitchItemProps"],form:["updateSwitchItemProps"],ldTabindex:["updateSwitchItemProps"],name:["updateSwitchItemProps"],readonly:["updateSwitchItemProps"],required:["updateSwitchItemProps"]}}};v.style=m;const u='.ld-switch-item,:host{display:inline-flex;position:relative}.ld-switch-item:first-of-type,:host:first-of-type{border-bottom-left-radius:var(--ld-br-m);border-top-left-radius:var(--ld-br-m)}.ld-switch-item:last-of-type,:host:last-of-type{border-bottom-right-radius:var(--ld-br-m);border-top-right-radius:var(--ld-br-m)}.ld-switch-item input,:host input{height:var(--ld-sp-1);overflow:hidden;padding:0;position:absolute;width:var(--ld-sp-1);clip:rect(0,0,0,0);border-width:0}.ld-switch-item input:checked~.ld-switch-item__content,:host input:checked~.ld-switch-item__content{background-color:var(\n --ld-switch-item-bg-col-selected,var(--ld-thm-primary)\n );color:var(--ld-switch-item-col-selected,var(--ld-col-wht))}.ld-switch-item input:where(:disabled)~.ld-switch-item__content,.ld-switch-item input:where([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))~.ld-switch-item__content,:host input:where(:disabled)~.ld-switch-item__content,:host input:where([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false])))~.ld-switch-item__content{opacity:.2}.ld-switch-item input:where(:not(:disabled)):focus:focus-visible~.ld-switch-item__content,:host input:where(:not(:disabled)):focus:focus-visible~.ld-switch-item__content{background-color:var(\n --ld-switch-item-bg-col-focus,var(--ld-thm-primary-focus)\n );color:var(--ld-switch-item-col-active,var(--ld-col-wht));outline:var(--ld-switch-item-outline,auto);outline:var(\n --ld-switch-item-outline,auto 5px -webkit-focus-ring-color\n );outline-offset:-2px}.ld-switch-item input:where(:not(:disabled)):focus:not:focus-visible~.ld-switch-item__content,:host input:where(:not(:disabled)):focus:not:focus-visible~.ld-switch-item__content{outline:none}.ld-switch-item input:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))):not([readonly]))~.ld-switch-item__content,:host input:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))):not([readonly]))~.ld-switch-item__content{cursor:pointer}@media (hover:hover){.ld-switch-item input:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))):not([readonly]))~.ld-switch-item__content:hover,:host input:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))):not([readonly]))~.ld-switch-item__content:hover{background-color:var(\n --ld-switch-item-bg-col-hover,var(--ld-thm-primary-hover)\n );color:var(--ld-switch-item-col-active,var(--ld-col-wht))}}.ld-switch-item input:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))):not([readonly])):active:focus-visible~.ld-switch-item__content,.ld-switch-item input:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))):not([readonly])):active~.ld-switch-item__content,:host input:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))):not([readonly])):active:focus-visible~.ld-switch-item__content,:host input:where(:not(:disabled):not([aria-disabled]:where(:not([aria-disabled=""]):not([aria-disabled=false]))):not([readonly])):active~.ld-switch-item__content{background-color:var(\n --ld-switch-item-bg-col-active,var(--ld-thm-primary-active)\n );color:var(--ld-switch-item-col-active,var(--ld-col-wht))}.ld-switch-item__content{align-items:center;background-color:var(\n --ld-switch-item-bg-col,var(--ld-thm-primary-alpha-low)\n );border-radius:inherit;color:var(--ld-switch-item-col,var(--ld-thm-primary));display:inline-grid;font:var(--ld-switch-font);font-weight:700;gap:var(--ld-switch-item-gap);grid-auto-flow:column;height:100%;justify-content:var(--ld-switch-item-justify-content);line-height:1.25;overflow:hidden;padding:var(--ld-switch-item-padding-y) var(--ld-switch-item-padding-x);text-align:center;text-overflow:ellipsis;white-space:nowrap;width:100%}.ld-switch-item__content ::slotted(.ld-icon),.ld-switch-item__content ::slotted(ld-icon),.ld-switch-item__content>.ld-icon,.ld-switch-item__content>ld-icon{margin:auto var(--ld-switch-item-icon-margin-x)}.ld-switch-item__label{overflow:hidden;padding:auto var(--ld-switch-item-padding-x);text-align:center;text-overflow:ellipsis}:host .ld-switch-item__label{display:none}:host(.ld-switch-item--has-label) .ld-switch-item__label{display:block}.ld-switch-item,:host label{align-items:center;background-clip:padding-box;background-color:var(--ld-switch-item-label-bg-col);border:0;display:inline-flex;height:100%;margin:0}:host label{border-radius:inherit;width:100%}';const _=class{constructor(i){t(this,i);this.ldswitchitemchange=e(this,"ldswitchitemchange",7);this.ldswitchitemfocus=e(this,"ldswitchitemfocus",7);this.handleKeyDown=t=>{switch(t.key){case"ArrowUp":case"ArrowLeft":t.preventDefault();this.focusAndSelect("prev");return;case"ArrowDown":case"ArrowRight":t.preventDefault();this.focusAndSelect("next")}};this.handleClick=t=>{if(this.checked||this.disabled||d(this.ariaDisabled)||this.readonly){t.preventDefault();return}Array.from(this.el.parentElement.querySelectorAll("ld-switch-item")).forEach((t=>{t.checked=false}));this.checked=true;this.el.dispatchEvent(new InputEvent("change",{bubbles:true}));this.ldswitchitemchange.emit(this.el.value)};this.handleFocus=()=>{this.ldswitchitemfocus.emit()};this.ariaDisabled=undefined;this.checked=false;this.disabled=undefined;this.form=undefined;this.ldTabindex=undefined;this.name=undefined;this.readonly=undefined;this.required=undefined;this.value=undefined;this.clonedAttributes=undefined;this.hasLabel=undefined}async focusInner(){this.input.focus()}updateHiddenInput(){const t=this.el.closest("form");if(!this.hiddenInput&&this.name&&(t||this.form)){this.createHiddenInput()}if(this.hiddenInput){if(!this.name){this.hiddenInput.remove();this.hiddenInput=undefined;return}this.hiddenInput.name=this.name;this.hiddenInput.checked=this.checked;if(this.value){this.hiddenInput.value=this.value}else{this.hiddenInput.removeAttribute("value")}if(this.form){this.hiddenInput.setAttribute("form",this.form)}else if(this.hiddenInput.getAttribute("form")){if(t){this.hiddenInput.removeAttribute("form")}else{this.hiddenInput.remove();this.hiddenInput=undefined}}}}createHiddenInput(){this.hiddenInput=document.createElement("input");this.hiddenInput.type="radio";this.hiddenInput.style.visibility="hidden";this.hiddenInput.style.position="absolute";this.hiddenInput.style.pointerEvents="none";this.el.appendChild(this.hiddenInput)}focusAndSelect(t){const e=t==="next"?this.el.nextElementSibling:this.el.previousElementSibling;if(e){e.focusInner();e.click()}}componentWillLoad(){this.hasLabel=Array.from(this.el.childNodes).some((t=>{var e;return t.tagName!=="LD-ICON"&&!((e=t.classList)===null||e===void 0?void 0:e.contains("ld-icon"))&&t.textContent.trim()}));this.attributesObserver=r.call(this)}disconnectedCallback(){if(this.attributesObserver)this.attributesObserver.disconnect()}render(){const t=s(["ld-switch-item",this.hasLabel&&"ld-switch-item--has-label"]);return i(o,{onClick:this.handleClick,class:t},i("label",{part:"label-element"},i("input",Object.assign({type:"radio"},this.clonedAttributes,{part:"input focusable",onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,ref:t=>this.input=t,required:this.required,disabled:this.disabled,checked:this.checked,tabIndex:this.checked?this.ldTabindex:-1})),i("span",{part:"content",class:"ld-switch-item__content"},i("slot",{name:"icon-start"}),i("span",{part:"label",class:"ld-switch-item__label"},i("slot",null)),i("slot",{name:"icon-end"}))))}get el(){return l(this)}static get watchers(){return{checked:["updateHiddenInput"],form:["updateHiddenInput"],name:["updateHiddenInput"],value:["updateHiddenInput"]}}};_.style=u;export{h as docs_pick_theme,p as docs_toggle_code,v as ld_switch,_ as ld_switch_item};
-//# sourceMappingURL=p-2f76f5f2.entry.js.map
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-2f76f5f2.entry.js.map b/1704966176737/dist/build/p-2f76f5f2.entry.js.map
deleted file mode 100644
index 6309dcf1ee..0000000000
--- a/1704966176737/dist/build/p-2f76f5f2.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["docsPickThemeCss","DocsPickTheme","this","themes","handleChange","ev","pickTheme","emit","detail","currentTheme","render","h","Host","class","toLowerCase","onLdchange","bind","preventDeselection","mode","tetherOptions","JSON","stringify","attachment","targetAttachment","offset","popperClass","map","theme","value","selected","charAt","toUpperCase","slice","role","viewBox","d","slot","fill","stroke","docsToggleCodeCss","DocsToggleCode","handleClick","preventDefault","toggleCode","isOn","undefined","size","ldSwitchCss","LdSwitch","handleItemFocus","hasFocus","handleFocus","focusInner","handleFocusout","handleLdSwitchItemChange","stopImmediatePropagation","currentLdSwitchItem","target","ldswitchchange","ldSwitchItems","Array","from","el","querySelectorAll","filter","ldSwitchItem","disabled","checkedItem","find","checked","updateSwitchItemProps","forEach","isAriaDisabled","ariaDisabled","form","ldTabindex","name","readonly","required","componentWillLoad","registerAutofocus","autofocus","getClassNames","brandColor","fitContent","onLdswitchitemfocus","onFocus","onFocusout","tabIndex","part","legend","ldSwitchItemCss","LdSwitchItem","handleKeyDown","key","focusAndSelect","parentElement","dispatchEvent","InputEvent","bubbles","ldswitchitemchange","ldswitchitemfocus","input","focus","updateHiddenInput","outerForm","closest","hiddenInput","createHiddenInput","remove","removeAttribute","setAttribute","getAttribute","document","createElement","type","style","visibility","position","pointerEvents","appendChild","dir","sibling","nextElementSibling","previousElementSibling","click","hasLabel","childNodes","some","tagName","_a","classList","contains","textContent","trim","attributesObserver","cloneAttributes","call","disconnectedCallback","disconnect","cl","onClick","Object","assign","clonedAttributes","onKeyDown","ref"],"sources":["../src/docs/components/docs-pick-theme/docs-pick-theme.css?tag=docs-pick-theme","../src/docs/components/docs-pick-theme/docs-pick-theme.tsx","../src/docs/components/docs-toggle-code/docs-toggle-code.css?tag=docs-toggle-code","../src/docs/components/docs-toggle-code/docs-toggle-code.tsx","../src/liquid/components/ld-switch/ld-switch.css?tag=ld-switch&encapsulation=shadow","../src/liquid/components/ld-switch/ld-switch.tsx","../src/liquid/components/ld-switch/ld-switch-item/ld-switch-item.css?tag=ld-switch-item&encapsulation=shadow","../src/liquid/components/ld-switch/ld-switch-item/ld-switch-item.tsx"],"sourcesContent":[".docs-pick-theme {\n --docs-pick-theme-icon-size: 1.25rem;\n}\n\n.docs-pick-theme__fieldset {\n border: 0;\n}\n\n.docs-pick-theme ld-icon {\n width: var(--docs-pick-theme-icon-size);\n height: var(--docs-pick-theme-icon-size);\n}\n\n.docs-pick-theme__select {\n &::part(trigger-text-wrapper) {\n display: none;\n }\n\n &::part(btn-trigger) {\n padding: var(--ld-sp-6);\n }\n}\n\n.docs-pick-theme__select,\n.docs-pick-theme__select::part(select),\n.docs-pick-theme__select::part(btn-trigger) {\n height: var(--ld-sp-32);\n width: var(--ld-sp-32);\n}\n\n.docs-pick-theme__popper {\n min-width: 14rem;\n}\n\n.docs-pick-theme__option-pattern {\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n height: 100%;\n}\n\n.docs-pick-theme__option {\n &::part(option) {\n font-weight: 700;\n overflow: hidden;\n }\n\n &.ld-theme-ocean {\n &::part(check) {\n color: var(--ld-thm-ocean-primary);\n }\n\n &::part(option) {\n color: var(--ld-thm-ocean-primary);\n\n @media (hover: hover) {\n &:hover {\n color: var(--ld-thm-ocean-primary-hover);\n background-color: var(--ld-col-rb-010);\n }\n }\n &:focus:focus-visible {\n color: var(--ld-col-rb-800);\n background-color: var(--ld-col-rb-010);\n\n &::before {\n box-shadow: inset 0 0 0 var(--ld-sp-1)\n var(--ld-thm-ocean-primary-focus);\n }\n }\n }\n\n .docs-pick-theme__option-pattern-primary {\n fill: var(--ld-thm-ocean-primary);\n }\n .docs-pick-theme__option-pattern-accent {\n fill: var(--ld-thm-ocean-secondary);\n }\n\n &.ld-option-internal--hover-within {\n .docs-pick-theme__option-pattern-primary {\n fill: var(--ld-thm-ocean-primary-hover);\n }\n .docs-pick-theme__option-pattern-accent {\n fill: var(--ld-thm-ocean-secondary-hover);\n }\n &::part(check) {\n color: var(--ld-thm-ocean-primary-hover);\n }\n }\n\n &.ld-option-internal--focus-within:focus-visible {\n .docs-pick-theme__option-pattern-primary {\n fill: var(--ld-thm-ocean-primary-focus);\n }\n .docs-pick-theme__option-pattern-accent {\n fill: var(--ld-thm-ocean-secondary-focus);\n }\n &::part(check) {\n color: var(--ld-col-rb-800);\n }\n }\n }\n\n &.ld-theme-bubblegum {\n &::part(check) {\n color: var(--ld-thm-bubblegum-primary);\n }\n\n &::part(option) {\n color: var(--ld-thm-bubblegum-primary);\n\n @media (hover: hover) {\n &:hover {\n color: var(--ld-thm-bubblegum-primary-hover);\n background-color: var(--ld-col-rp-010);\n }\n }\n &:focus:focus-visible {\n color: var(--ld-col-rp-900);\n background-color: var(--ld-col-rp-010);\n\n &::before {\n box-shadow: inset 0 0 0 var(--ld-sp-1)\n var(--ld-thm-bubblegum-primary-focus);\n }\n }\n }\n\n .docs-pick-theme__option-pattern-primary {\n fill: var(--ld-thm-bubblegum-primary);\n }\n .docs-pick-theme__option-pattern-accent {\n fill: var(--ld-thm-bubblegum-secondary);\n }\n\n &.ld-option-internal--hover-within {\n .docs-pick-theme__option-pattern-primary {\n fill: var(--ld-thm-bubblegum-primary-hover);\n }\n .docs-pick-theme__option-pattern-accent {\n fill: var(--ld-thm-bubblegum-secondary-hover);\n }\n &::part(check) {\n color: var(--ld-thm-bubblegum-primary-hover);\n }\n }\n\n &.ld-option-internal--focus-within:focus-visible {\n .docs-pick-theme__option-pattern-primary {\n fill: var(--ld-thm-bubblegum-primary-focus);\n }\n .docs-pick-theme__option-pattern-accent {\n fill: var(--ld-thm-bubblegum-primary-focus);\n }\n &::part(check) {\n color: var(--ld-col-rp-900);\n }\n }\n }\n\n &.ld-theme-shake {\n &::part(check) {\n color: var(--ld-thm-shake-primary);\n }\n\n &::part(option) {\n color: var(--ld-thm-shake-primary);\n\n @media (hover: hover) {\n &:hover {\n color: var(--ld-thm-shake-primary-hover);\n background-color: var(--ld-col-rp-010);\n }\n }\n &:focus:focus-visible {\n color: var(--ld-col-rp-900);\n background-color: var(--ld-col-rp-010);\n\n &::before {\n box-shadow: inset 0 0 0 var(--ld-sp-1)\n var(--ld-thm-shake-primary-focus);\n }\n }\n }\n\n .docs-pick-theme__option-pattern-primary {\n fill: var(--ld-thm-shake-primary);\n }\n .docs-pick-theme__option-pattern-accent {\n fill: var(--ld-thm-shake-secondary);\n }\n\n &.ld-option-internal--hover-within {\n .docs-pick-theme__option-pattern-primary {\n fill: var(--ld-thm-shake-primary-hover);\n }\n .docs-pick-theme__option-pattern-accent {\n fill: var(--ld-thm-shake-secondary-hover);\n }\n &::part(check) {\n color: var(--ld-thm-shake-primary-hover);\n }\n }\n\n &.ld-option-internal--focus-within:focus-visible {\n .docs-pick-theme__option-pattern-primary {\n fill: var(--ld-thm-shake-primary-focus);\n }\n .docs-pick-theme__option-pattern-accent {\n fill: var(--ld-thm-shake-secondary-focus);\n }\n &::part(check) {\n color: var(--ld-col-rp-900);\n }\n }\n }\n\n &.ld-theme-solvent {\n &::part(check) {\n color: var(--ld-thm-solvent-primary);\n }\n\n &::part(option) {\n color: var(--ld-thm-solvent-primary);\n\n @media (hover: hover) {\n &:hover {\n color: var(--ld-thm-solvent-primary-hover);\n background-color: var(--ld-col-rp-010);\n }\n }\n &:focus:focus-visible {\n color: var(--ld-col-rp-900);\n background-color: var(--ld-col-rp-010);\n\n &::before {\n box-shadow: inset 0 0 0 var(--ld-sp-1)\n var(--ld-thm-solvent-primary-focus);\n }\n }\n }\n\n .docs-pick-theme__option-pattern-primary {\n fill: var(--ld-thm-solvent-primary);\n }\n .docs-pick-theme__option-pattern-accent {\n fill: var(--ld-thm-solvent-secondary);\n }\n\n &.ld-option-internal--hover-within {\n .docs-pick-theme__option-pattern-primary {\n fill: var(--ld-thm-solvent-primary-hover);\n }\n .docs-pick-theme__option-pattern-accent {\n fill: var(--ld-thm-solvent-secondary-hover);\n }\n &::part(check) {\n color: var(--ld-thm-solvent-primary-hover);\n }\n }\n\n &.ld-option-internal--focus-within:focus-visible {\n .docs-pick-theme__option-pattern-primary {\n fill: var(--ld-thm-solvent-primary-focus);\n }\n .docs-pick-theme__option-pattern-accent {\n fill: var(--ld-thm-solvent-primary-focus);\n }\n &::part(check) {\n color: var(--ld-col-rp-900);\n }\n }\n }\n\n &.ld-theme-tea {\n &::part(check) {\n color: var(--ld-thm-tea-primary);\n }\n\n &::part(option) {\n color: var(--ld-thm-tea-primary);\n\n @media (hover: hover) {\n &:hover {\n color: var(--ld-thm-tea-primary-hover);\n background-color: var(--ld-col-rg-010);\n }\n }\n &:focus:focus-visible {\n color: var(--ld-col-rg-900);\n background-color: var(--ld-col-rg-010);\n\n &::before {\n box-shadow: inset 0 0 0 var(--ld-sp-1) var(--ld-thm-tea-primary-focus);\n }\n }\n }\n\n .docs-pick-theme__option-pattern-primary {\n fill: var(--ld-thm-tea-primary);\n }\n .docs-pick-theme__option-pattern-accent {\n fill: var(--ld-thm-tea-secondary);\n }\n\n &.ld-option-internal--hover-within {\n .docs-pick-theme__option-pattern-primary {\n fill: var(--ld-thm-tea-primary-hover);\n }\n .docs-pick-theme__option-pattern-accent {\n fill: var(--ld-thm-tea-secondary-hover);\n }\n &::part(check) {\n color: var(--ld-thm-tea-primary-hover);\n }\n }\n\n &.ld-option-internal--focus-within:focus-visible {\n .docs-pick-theme__option-pattern-primary {\n fill: var(--ld-thm-tea-primary-focus);\n }\n .docs-pick-theme__option-pattern-accent {\n fill: var(--ld-thm-tea-secondary-focus);\n }\n &::part(check) {\n color: var(--ld-col-rg-900);\n }\n }\n }\n}\n","import { Component, h, Host, Event, EventEmitter, State } from '@stencil/core'\n\n/** @internal **/\n@Component({\n tag: 'docs-pick-theme',\n styleUrl: 'docs-pick-theme.css',\n shadow: false,\n})\nexport class DocsPickTheme {\n @State() currentTheme = 'ocean'\n\n /** Theme pick change event. */\n @Event() pickTheme: EventEmitter\n\n private handleChange(ev) {\n this.pickTheme.emit(ev.detail[0])\n this.currentTheme = ev.detail[0]\n }\n\n private themes = ['ocean', 'bubblegum', 'shake', 'solvent', 'tea']\n\n render() {\n return (\n \n \n \n )\n }\n}\n",".docs-toggle-code {\n svg {\n width: 100%;\n height: 100%;\n }\n}\n","import { Component, Event, EventEmitter, h, Listen, Prop } from '@stencil/core'\n\n/** @internal **/\n@Component({\n tag: 'docs-toggle-code',\n styleUrl: 'docs-toggle-code.css',\n shadow: false,\n})\nexport class DocsToggleCode {\n /** Is code toggled to be visible */\n @Prop() isOn: boolean\n\n /** Theme select change event. */\n @Event() toggleCode: EventEmitter\n\n @Listen('click', { capture: true })\n handleClick(ev) {\n ev.preventDefault()\n this.toggleCode.emit(!this.isOn)\n }\n\n render() {\n return (\n \n Toggle code\n \n \n \n \n )\n }\n}\n",":host,\n.ld-switch {\n /* layout */\n --ld-switch-item-icon-size: 1.25rem;\n --ld-switch-item-icon-size-sm: 1rem;\n --ld-switch-item-icon-size-lg: 1.5rem;\n --ld-switch-item-icon-margin-x: -0.25rem;\n --ld-switch-item-icon-margin-x-sm: -0.125rem;\n --ld-switch-item-icon-margin-x-lg: -0.5rem;\n --ld-switch-item-justify-content: center;\n --ld-switch-item-padding-x: 0.875rem;\n --ld-switch-item-padding-y: 0.625rem;\n --ld-switch-item-padding-x-sm: 0.625rem;\n --ld-switch-item-padding-y-sm: 0.4375rem;\n --ld-switch-item-padding-x-lg: 1.3125rem;\n --ld-switch-item-padding-y-lg: 0.85rem;\n --ld-switch-item-gap: 0.875rem;\n --ld-switch-item-gap-sm: 0.625rem;\n --ld-switch-item-gap-lg: 1.1875rem;\n --ld-switch-font: var(--ld-typo-body-m);\n --ld-switch-font-sm: var(--ld-typo-body-s);\n --ld-switch-font-lg: var(--ld-typo-body-l);\n\n /* colors */\n --ld-switch-bg-col: var(--ld-thm-primary-alpha-low);\n --ld-switch-bg-col-hover: var(--ld-thm-primary-hover);\n --ld-switch-bg-col-active: var(--ld-thm-primary-active);\n --ld-switch-bg-col-focus: var(--ld-thm-primary-focus);\n --ld-switch-item-col: var(--ld-thm-primary-hover);\n --ld-switch-item-label-bg-col: var(--ld-col-wht);\n --ld-switch-selected-col: var(--ld-col-wht);\n --ld-switch-selected-bg-col: var(--ld-thm-primary);\n\n legend {\n position: absolute;\n width: var(--ld-sp-1);\n height: var(--ld-sp-1);\n padding: 0;\n clip: rect(0, 0, 0, 0);\n border-width: 0;\n }\n}\n\n:host {\n display: inline-flex;\n}\n\n.ld-switch,\n:host fieldset {\n border: 0;\n border-radius: var(--ld-br-m);\n display: inline-grid;\n grid-auto-columns: minmax(min-content, 1fr);\n grid-auto-flow: column;\n margin: 0;\n min-width: auto;\n overflow: hidden;\n padding: 0;\n position: relative;\n}\n\n.ld-switch--fit-content,\n:host(.ld-switch--fit-content) fieldset {\n --ld-switch-item-justify-content: flex-start;\n grid-auto-columns: minmax(0, auto);\n}\n\n:host fieldset {\n width: 100%;\n height: 100%;\n}\n\n:host(.ld-switch--sm),\n.ld-switch--sm {\n --ld-switch-font: var(--ld-switch-font-sm);\n --ld-switch-item-gap: var(--ld-switch-item-gap-sm);\n --ld-switch-item-icon-margin-x: var(--ld-switch-item-icon-margin-x-sm);\n --ld-switch-item-icon-size: var(--ld-switch-item-icon-size-sm);\n --ld-switch-item-padding-x: var(--ld-switch-item-padding-x-sm);\n --ld-switch-item-padding-y: var(--ld-switch-item-padding-y-sm);\n}\n\n:host(.ld-switch--lg),\n.ld-switch--lg {\n --ld-switch-font: var(--ld-switch-font-lg);\n --ld-switch-item-gap: var(--ld-switch-item-gap-lg);\n --ld-switch-item-icon-margin-x: var(--ld-switch-item-icon-margin-x-lg);\n --ld-switch-item-icon-size: var(--ld-switch-item-icon-size-lg);\n --ld-switch-item-padding-x: var(--ld-switch-item-padding-x-lg);\n --ld-switch-item-padding-y: var(--ld-switch-item-padding-y-lg);\n}\n\n:host(.ld-switch--brand-color),\n.ld-switch--brand-color {\n --ld-switch-item-col: var(--ld-col-wht);\n --ld-switch-item-bg-col: var(--ld-col-wht-alpha-low);\n --ld-switch-item-label-bg-col: var(--ld-thm-primary);\n\n --ld-switch-item-bg-col-hover: var(--ld-col-wht-alpha-high);\n --ld-switch-item-bg-col-active: var(--ld-col-wht-alpha-medium);\n --ld-switch-item-bg-col-focus: var(--ld-col-wht-alpha-high);\n --ld-switch-item-bg-col-selected: var(--ld-col-wht);\n\n --ld-switch-item-col-selected: var(--ld-thm-primary);\n --ld-switch-item-col-active: var(--ld-switch-item-col-selected);\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Method,\n Prop,\n State,\n Watch,\n} from '@stencil/core'\nimport { getClassNames } from '../../utils/getClassNames'\nimport { registerAutofocus } from '../../utils/focus'\nimport { isAriaDisabled } from '../../utils/ariaDisabled'\n\n/**\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n * @part fieldset - Container wrapping the legent element and the slot\n * @part legend - The legend element\n */\n\n@Component({\n tag: 'ld-switch',\n styleUrl: 'ld-switch.css',\n shadow: true,\n})\nexport class LdSwitch implements InnerFocusable {\n @Element() el: HTMLElement\n\n /** Size of the switch. */\n @Prop() size?: 'sm' | 'md' | 'lg'\n\n /** Defines switch custom color */\n @Prop() brandColor?: boolean\n\n /** Defines a description of the contents of the switch component. */\n @Prop() legend?: string\n\n /** Automatically focus the form control when the page is loaded. */\n @Prop({ reflect: true }) autofocus: boolean\n\n /** Disabled state of the switch. */\n @Prop() disabled?: boolean\n\n /** Make each switch item take up as little space as its content requires. */\n @Prop() fitContent? = false\n\n /** Associates the control with a form element. */\n @Prop() form?: string\n\n /** Alternative disabled state that keeps element focusable */\n @Prop() ariaDisabled: string\n\n /** Used to specify the name of the control. */\n @Prop() name?: string\n\n /** The value is not editable. */\n @Prop() readonly?: boolean\n\n /** Set this property to `true` in order to mark the switch as required. */\n @Prop() required?: boolean\n\n /** Tab index of the input. */\n @Prop() ldTabindex?: number\n\n @State() hasFocus = false\n\n /** Emitted with the value of the selected switch item. */\n @Event() ldswitchchange: EventEmitter\n\n @Listen('ldswitchitemchange')\n handleLdSwitchItemChange(ev: CustomEvent) {\n ev.stopImmediatePropagation()\n const currentLdSwitchItem = ev.target as HTMLLdSwitchItemElement\n this.ldswitchchange.emit(currentLdSwitchItem.value)\n }\n\n /** Sets focus on the radio button. */\n @Method()\n async focusInner() {\n const ldSwitchItems = Array.from(\n this.el.querySelectorAll('ld-switch-item')\n ).filter((ldSwitchItem) => !ldSwitchItem.disabled)\n\n const checkedItem = ldSwitchItems.find(\n (ldSwitchItem) => ldSwitchItem.checked\n )\n if (checkedItem) {\n checkedItem.focusInner()\n } else {\n ldSwitchItems[0].focusInner()\n }\n }\n\n private handleItemFocus = () => {\n this.hasFocus = true\n }\n\n private handleFocus = () => {\n this.focusInner()\n }\n\n private handleFocusout = () => {\n this.hasFocus = false\n }\n\n @Watch('ariaDisabled')\n @Watch('disabled')\n @Watch('form')\n @Watch('ldTabindex')\n @Watch('name')\n @Watch('readonly')\n @Watch('required')\n updateSwitchItemProps() {\n const ldSwitchItems = this.el.querySelectorAll('ld-switch-item')\n ldSwitchItems.forEach((ldSwitchItem) => {\n if (isAriaDisabled(this.ariaDisabled)) {\n ldSwitchItem.ariaDisabled = this.ariaDisabled\n }\n if (this.disabled) {\n ldSwitchItem.disabled = this.disabled\n }\n ldSwitchItem.form = this.form\n ldSwitchItem.ldTabindex = this.ldTabindex\n ldSwitchItem.name = this.name\n ldSwitchItem.readonly = this.readonly\n ldSwitchItem.required = this.required\n })\n }\n\n componentWillLoad() {\n this.updateSwitchItemProps()\n\n registerAutofocus(this.autofocus)\n }\n\n render() {\n return (\n \n \n \n )\n }\n}\n",":host,\n.ld-switch-item {\n position: relative;\n display: inline-flex;\n\n &:first-of-type {\n border-bottom-left-radius: var(--ld-br-m);\n border-top-left-radius: var(--ld-br-m);\n }\n\n &:last-of-type {\n border-bottom-right-radius: var(--ld-br-m);\n border-top-right-radius: var(--ld-br-m);\n }\n\n input {\n position: absolute;\n width: var(--ld-sp-1);\n height: var(--ld-sp-1);\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border-width: 0;\n\n &:checked {\n ~ .ld-switch-item__content {\n background-color: var(\n --ld-switch-item-bg-col-selected,\n var(--ld-thm-primary)\n );\n color: var(--ld-switch-item-col-selected, var(--ld-col-wht));\n }\n }\n\n &:where(:disabled),\n &:where(\n [aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false']))\n ) {\n ~ .ld-switch-item__content {\n opacity: 0.2;\n }\n }\n\n &:where(:not(:disabled)):focus {\n &:focus-visible {\n ~ .ld-switch-item__content {\n background-color: var(\n --ld-switch-item-bg-col-focus,\n var(--ld-thm-primary-focus)\n );\n color: var(--ld-switch-item-col-active, var(--ld-col-wht));\n outline: var(--ld-switch-item-outline, auto);\n /* stylelint-disable-next-line declaration-block-no-duplicate-properties */\n outline: var(\n --ld-switch-item-outline,\n auto 5px -webkit-focus-ring-color\n );\n outline-offset: -2px;\n }\n }\n &:not:focus-visible {\n ~ .ld-switch-item__content {\n outline: none;\n }\n }\n }\n\n &:where(\n :not(\n :disabled,\n [aria-disabled]:where(\n :not([aria-disabled=''], [aria-disabled='false'])\n ),\n [readonly]\n )\n ) {\n ~ .ld-switch-item__content {\n cursor: pointer;\n\n @media (hover: hover) {\n &:hover {\n background-color: var(\n --ld-switch-item-bg-col-hover,\n var(--ld-thm-primary-hover)\n );\n color: var(--ld-switch-item-col-active, var(--ld-col-wht));\n }\n }\n }\n\n &:active,\n &:active:focus-visible {\n ~ .ld-switch-item__content {\n background-color: var(\n --ld-switch-item-bg-col-active,\n var(--ld-thm-primary-active)\n );\n color: var(--ld-switch-item-col-active, var(--ld-col-wht));\n }\n }\n }\n }\n}\n\n.ld-switch-item__content {\n align-items: center;\n background-color: var(\n --ld-switch-item-bg-col,\n var(--ld-thm-primary-alpha-low)\n );\n border-radius: inherit;\n color: var(--ld-switch-item-col, var(--ld-thm-primary));\n display: inline-grid;\n font: var(--ld-switch-font);\n font-weight: 700;\n gap: var(--ld-switch-item-gap);\n grid-auto-flow: column;\n height: 100%;\n justify-content: var(--ld-switch-item-justify-content);\n line-height: 1.25;\n overflow: hidden;\n padding: var(--ld-switch-item-padding-y) var(--ld-switch-item-padding-x);\n text-align: center;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n\n ::slotted(ld-icon),\n ::slotted(.ld-icon),\n > ld-icon,\n > .ld-icon {\n margin: auto var(--ld-switch-item-icon-margin-x);\n }\n}\n\n.ld-switch-item__label {\n overflow: hidden;\n padding: auto var(--ld-switch-item-padding-x);\n text-align: center;\n text-overflow: ellipsis;\n\n :host & {\n display: none;\n }\n\n :host(.ld-switch-item--has-label) & {\n display: block;\n }\n}\n\n.ld-switch-item,\n:host label {\n align-items: center;\n border: 0;\n background-clip: padding-box;\n background-color: var(--ld-switch-item-label-bg-col);\n display: inline-flex;\n height: 100%;\n margin: 0;\n}\n\n:host label {\n border-radius: inherit;\n width: 100%;\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n Method,\n h,\n Host,\n Prop,\n State,\n Watch,\n} from '@stencil/core'\nimport { cloneAttributes } from '../../../utils/cloneAttributes'\nimport { getClassNames } from '../../../utils/getClassNames'\nimport { isAriaDisabled } from '../../../utils/ariaDisabled'\n\n/**\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n * @part label-element - wrapping label element\n * @part input - the form input element\n * @part content - content container element\n * @part label - text label container containing the main slot\n */\n@Component({\n tag: 'ld-switch-item',\n styleUrl: 'ld-switch-item.css',\n shadow: true,\n})\nexport class LdSwitchItem implements InnerFocusable, ClonesAttributes {\n @Element() el: HTMLLdSwitchItemElement\n\n private attributesObserver: MutationObserver\n\n private input: HTMLInputElement\n private hiddenInput: HTMLInputElement\n\n /** Alternative disabled state that keeps element focusable */\n @Prop({ reflect: true }) ariaDisabled: string\n\n /** Indicates whether the switch item is selected. */\n @Prop({ mutable: true }) checked? = false\n\n /** Disabled state of the switch item. */\n @Prop() disabled?: boolean\n\n /**\n * @internal\n * Associates the control with a form element.\n */\n @Prop() form?: string\n\n /**\n * @internal\n * Tab index of the input.\n */\n @Prop() ldTabindex?: number\n\n /**\n * @internal\n * A string specifying a name for the input control. This name is submitted\n * along with the control's value when the form data is submitted.\n */\n @Prop() name?: string\n\n /**\n * @internal\n * The value is not editable.\n */\n @Prop({ reflect: true }) readonly?: boolean\n\n /**\n * @internal\n * Set by the outer switch component marking input element as required.\n */\n @Prop() required?: boolean\n\n /** The input value. */\n @Prop() value?: string\n\n @State() clonedAttributes\n @State() hasLabel: boolean\n\n /**\n * @internal\n * Emitted when the input value changed and the element loses focus.\n */\n @Event() ldswitchitemchange: EventEmitter\n\n /**\n * @internal\n * Emitted when the input receives focus.\n */\n @Event() ldswitchitemfocus: EventEmitter\n\n /** Sets focus on the switch item. */\n @Method()\n async focusInner() {\n this.input.focus()\n }\n\n @Watch('checked')\n @Watch('form')\n @Watch('name')\n @Watch('value')\n updateHiddenInput() {\n const outerForm = this.el.closest('form')\n if (!this.hiddenInput && this.name && (outerForm || this.form)) {\n this.createHiddenInput()\n }\n\n if (this.hiddenInput) {\n if (!this.name) {\n this.hiddenInput.remove()\n this.hiddenInput = undefined\n return\n }\n\n this.hiddenInput.name = this.name\n this.hiddenInput.checked = this.checked\n\n if (this.value) {\n this.hiddenInput.value = this.value\n } else {\n this.hiddenInput.removeAttribute('value')\n }\n\n if (this.form) {\n this.hiddenInput.setAttribute('form', this.form)\n } else if (this.hiddenInput.getAttribute('form')) {\n if (outerForm) {\n this.hiddenInput.removeAttribute('form')\n } else {\n this.hiddenInput.remove()\n this.hiddenInput = undefined\n }\n }\n }\n }\n\n private createHiddenInput() {\n this.hiddenInput = document.createElement('input')\n this.hiddenInput.type = 'radio'\n this.hiddenInput.style.visibility = 'hidden'\n this.hiddenInput.style.position = 'absolute'\n this.hiddenInput.style.pointerEvents = 'none'\n this.el.appendChild(this.hiddenInput)\n }\n\n private handleKeyDown = (ev: KeyboardEvent) => {\n switch (ev.key) {\n case 'ArrowUp':\n case 'ArrowLeft':\n ev.preventDefault()\n this.focusAndSelect('prev')\n return\n case 'ArrowDown':\n case 'ArrowRight':\n ev.preventDefault()\n this.focusAndSelect('next')\n }\n }\n\n private handleClick = (ev: MouseEvent) => {\n if (\n this.checked ||\n this.disabled ||\n isAriaDisabled(this.ariaDisabled) ||\n this.readonly\n ) {\n ev.preventDefault()\n return\n }\n\n // Uncheck siblings.\n Array.from(\n this.el.parentElement.querySelectorAll('ld-switch-item')\n ).forEach((ldSwitchItem) => {\n ldSwitchItem.checked = false\n })\n\n this.checked = true\n\n this.el.dispatchEvent(new InputEvent('change', { bubbles: true }))\n this.ldswitchitemchange.emit(this.el.value)\n }\n\n private handleFocus = () => {\n this.ldswitchitemfocus.emit()\n }\n\n private focusAndSelect(dir: 'next' | 'prev') {\n const sibling = (\n dir === 'next'\n ? this.el.nextElementSibling\n : this.el.previousElementSibling\n ) as HTMLLdSwitchItemElement\n if (sibling) {\n sibling.focusInner()\n sibling.click()\n }\n }\n\n componentWillLoad() {\n this.hasLabel = Array.from(this.el.childNodes).some(\n (el: HTMLElement) =>\n el.tagName !== 'LD-ICON' &&\n !el.classList?.contains('ld-icon') &&\n el.textContent.trim()\n )\n\n this.attributesObserver = cloneAttributes.call(this)\n }\n\n disconnectedCallback() {\n // istanbul ignore if\n if (this.attributesObserver) this.attributesObserver.disconnect()\n }\n\n render() {\n const cl = getClassNames([\n 'ld-switch-item',\n this.hasLabel && 'ld-switch-item--has-label',\n ])\n\n return (\n \n \n \n )\n }\n}\n"],"mappings":"gNAAA,MAAMA,EAAmB,uzS,MCQZC,E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,MACC,OAAAA,EAAGmE,UAAY,cACdC,EAAApE,EAAGqE,aAAS,MAAAD,SAAA,SAAAA,EAAEE,SAAS,aACxBtE,EAAGuE,YAAYC,MAAM,IAGzBpI,KAAKqI,mBAAqBC,EAAgBC,KAAKvI,K,CAGjD,oBAAAwI,GAEE,GAAIxI,KAAKqI,mBAAoBrI,KAAKqI,mBAAmBI,Y,CAGvD,MAAAjI,GACE,MAAMkI,EAAK1D,EAAc,CACvB,iBACAhF,KAAK4H,UAAY,8BAGnB,OACEnH,EAACC,EAAI,CAACiI,QAAS3I,KAAKuC,YAAa5B,MAAO+H,GACtCjI,EAAA,SAAO8E,KAAK,iBACV9E,EAAA,QAAAmI,OAAAC,OAAA,CACE5B,KAAK,SACDjH,KAAK8I,iBAAgB,CACzBvD,KAAK,kBACLwD,UAAW/I,KAAK2F,cAChBP,QAASpF,KAAKiD,YACd+F,IAAMA,GAAShJ,KAAKoG,MAAQ4C,EAC5BpE,SAAU5E,KAAK4E,SACfZ,SAAUhE,KAAKgE,SACfG,QAASnE,KAAKmE,QACdmB,SAAUtF,KAAKmE,QAAUnE,KAAKyE,YAAc,KAE9ChE,EAAA,QAAM8E,KAAK,UAAU5E,MAAM,2BACzBF,EAAA,QAAMiE,KAAK,eACXjE,EAAA,QAAM8E,KAAK,QAAQ5E,MAAM,yBACvBF,EAAA,cAEFA,EAAA,QAAMiE,KAAK,e"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-34dc80c9.entry.js b/1704966176737/dist/build/p-34dc80c9.entry.js
deleted file mode 100644
index ee3e11c0ba..0000000000
--- a/1704966176737/dist/build/p-34dc80c9.entry.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{r as t,h as o}from"./p-21a69c18.js";const s=":host{display:contents}";const r=class{constructor(o){t(this,o)}render(){return o("tfoot",{class:"ld-table-foot",part:"tfoot"},o("slot",null))}};r.style=s;export{r as ld_table_foot};
-//# sourceMappingURL=p-34dc80c9.entry.js.map
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-34dc80c9.entry.js.map b/1704966176737/dist/build/p-34dc80c9.entry.js.map
deleted file mode 100644
index 07d478a7c7..0000000000
--- a/1704966176737/dist/build/p-34dc80c9.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldTableFootShadowCss","LdTableFoot","render","h","class","part"],"sources":["../src/liquid/components/ld-table/ld-table-foot/ld-table-foot.shadow.css?tag=ld-table-foot&encapsulation=shadow","../src/liquid/components/ld-table/ld-table-foot/ld-table-foot.tsx"],"sourcesContent":[":host {\n display: contents;\n}\n","import { Component, h } from '@stencil/core'\n\n/**\n * @part tfoot - the actual tfoot element\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n */\n@Component({\n tag: 'ld-table-foot',\n styleUrl: 'ld-table-foot.shadow.css',\n shadow: true,\n})\nexport class LdTableFoot {\n render() {\n return (\n \n )\n }\n}\n"],"mappings":"2CAAA,MAAMA,EAAuB,0B,MCYhBC,EAAW,M,yBACtB,MAAAC,GACE,OACEC,EAAA,SAAOC,MAAM,gBAAgBC,KAAK,SAChCF,EAAA,a"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-36bbded8.entry.js.map b/1704966176737/dist/build/p-36bbded8.entry.js.map
deleted file mode 100644
index 2798d8327b..0000000000
--- a/1704966176737/dist/build/p-36bbded8.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["docsSpacingCss","DocsSpacing","render","h","Host","class","textToCopy","this","var","val","style","width","height"],"sources":["../src/docs/components/docs-spacing/docs-spacing.css?tag=docs-spacing","../src/docs/components/docs-spacing/docs-spacing.tsx"],"sourcesContent":["@define-mixin docs-spacing-ui-light {\n .docs-spacing {\n border-color: var(--ld-col-neutral-100);\n }\n}\n@define-mixin docs-spacing-ui-dark {\n .docs-spacing {\n border-color: var(--ld-col-neutral-600);\n }\n}\n\n@mixin docs-spacing-ui-light;\n\n@media (prefers-color-scheme: dark) {\n @mixin docs-spacing-ui-dark;\n}\n.docs-ui-dark {\n @mixin docs-spacing-ui-dark;\n}\n.docs-ui-light {\n @mixin docs-spacing-ui-light;\n}\n\n.docs-spacing {\n display: flex;\n width: 100%;\n align-items: center;\n overflow: hidden;\n border-style: solid;\n border-width: var(--ld-sp-1);\n color: var(--ld-col-neutral-900);\n background-color: var(--ld-col-wht);\n padding: var(--ld-sp-16) var(--ld-sp-16) var(--ld-sp-16) var(--ld-sp-8);\n min-height: 6rem;\n\n &:first-of-type {\n border-top-left-radius: var(--ld-br-l);\n border-top-right-radius: var(--ld-br-l);\n }\n &:last-of-type {\n border-bottom-left-radius: var(--ld-br-l);\n border-bottom-right-radius: var(--ld-br-l);\n }\n &:not(:first-of-type) {\n border-top-width: 0;\n }\n &:not(:last-of-type) {\n border-bottom-width: 0;\n }\n}\n\n.docs-spacing__var,\n.docs-spacing__val {\n display: flex;\n border-radius: var(--ld-br-l);\n align-items: center;\n font: var(--ld-typo-body-s);\n font-family: 'Source Code Pro', Consolas, Monaco, 'Ubuntu Mono', monospace;\n flex-shrink: 0;\n white-space: nowrap;\n\n .docs-copy-to-cb {\n margin-right: var(--ld-sp-8);\n }\n}\n\n.docs-spacing__var {\n width: 9rem;\n}\n\n.docs-spacing__val {\n color: var(--ld-col-neutral-400);\n width: 6.5rem;\n}\n\n.docs-spacing__vis {\n display: inline-flex;\n background-color: var(--ld-col-vm);\n}\n","import { Component, h, Host, Prop } from '@stencil/core'\n\n/** @internal **/\n@Component({\n tag: 'docs-spacing',\n styleUrl: 'docs-spacing.css',\n shadow: false,\n})\nexport class DocsSpacing {\n /** CSS variable name */\n @Prop() var: string\n\n /** CSS variable value */\n @Prop() val: string\n\n render() {\n return (\n \n \n \n {this.var}\n \n {this.val}\n \n \n )\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAiB,y1C,MCQVC,EAAW,M,+DAOtB,MAAAC,GACE,OACEC,EAACC,EAAI,CAACC,MAAM,gBACVF,EAAA,QAAME,MAAM,qBACVF,EAAA,mBAAiBG,WAAYC,KAAKC,MACjCD,KAAKC,KAERL,EAAA,QAAME,MAAM,qBAAqBE,KAAKE,KACtCN,EAAA,QACEE,MAAM,oBACNK,MAAO,CAAEC,MAAO,OAAOJ,KAAKC,OAAQI,OAAQ,OAAOL,KAAKC,U"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-385d2a88.entry.js b/1704966176737/dist/build/p-385d2a88.entry.js
deleted file mode 100644
index c16073ada8..0000000000
--- a/1704966176737/dist/build/p-385d2a88.entry.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{r as e,h as a,H as d,g as r}from"./p-21a69c18.js";import{g as t}from"./p-1133c92e.js";const l=".ld-header,:host(.ld-header){--ld-header-height:3.125rem;--ld-header-max-width:90rem;--ld-header-col:var(--ld-col-wht);--ld-header-bg-col:var(--ld-thm-primary);--ld-header-box-shadow:var(--ld-shadow-stacked);background-color:var(--ld-header-bg-col);box-shadow:var(--ld-header-box-shadow);color:var(--ld-header-col);display:flex;justify-content:center;overflow-x:auto;transition:transform var(--ld-transition-duration-quick) ease-in-out;width:100%}.ld-header.ld-header--sticky,:host(.ld-header.ld-header--sticky){position:sticky;top:0;z-index:1}.ld-header.ld-header--hidden,:host(.ld-header.ld-header--hidden){transform:translateY(-100%)}.ld-header__container{align-items:center;box-sizing:border-box;display:flex;flex-grow:1;flex-shrink:0;gap:var(--ld-sp-16);height:var(--ld-header-height);max-width:var(--ld-header-max-width);padding-left:var(--ld-sp-16);padding-right:var(--ld-sp-16)}.ld-header__container>.ld-button--ghost,.ld-header__container>[mode=ghost],::slotted(.ld-button--ghost),::slotted([mode=ghost]){margin:0 calc(var(--ld-sp-4) * -1)}.ld-header__logo-wrapper{color:inherit;display:flex}.ld-header__logo-wrapper ::slotted(*){margin:0}.ld-header__logo{--ld-icon-size-md:2.4rem;color:var(--ld-thm-warning);display:block;margin:-.2rem}.ld-header_site-name{white-space:nowrap}.ld-header__grow{flex-grow:1}:host(.ld-header) .ld-header__grow{margin-right:calc(var(--ld-sp-16) * -1)}";const s=class{constructor(a){e(this,a);this.updateScrollDirection=()=>{var e;const a=(e=window.pageYOffset)!==null&&e!==void 0?e:document.documentElement.scrollTop;if(window.innerHeight+a>=document.body.offsetHeight){this.hidden=false}else if(a>this.lastOffset&&a>this.currentHeight){this.hidden=true}else{this.hidden=false}this.lastOffset=a<0?0:a};this.hidden=false;this.hideOnScroll=false;this.logoTitle=undefined;this.logoUrl=undefined;this.sticky=false;this.siteName=undefined}connectedCallback(){if(this.hideOnScroll){this.lastOffset=window.pageYOffset||document.documentElement.scrollTop;window.addEventListener("scroll",this.updateScrollDirection,{passive:true})}else{this.disconnectedCallback()}}disconnectedCallback(){window.removeEventListener("scroll",this.updateScrollDirection)}componentDidLoad(){this.currentHeight=this.el.getBoundingClientRect().height;this.el.querySelectorAll("ld-header > ld-button").forEach((e=>{e.size="sm";e.brandColor=true}));this.el.querySelectorAll("ld-header > .ld-button").forEach((e=>{e.classList.add("ld-button--brand-color");e.classList.add("ld-button--sm");e.classList.remove("ld-button--lg")}))}render(){const e=t(["ld-header",this.hidden&&"ld-header--hidden",this.sticky&&"ld-header--sticky"]);return a(d,{class:e,role:"banner"},a("header",{class:"ld-header__container",part:"container"},a("slot",{name:"start"}),this.logoUrl?a("a",{"aria-label":this.logoTitle,class:"ld-header__logo-wrapper",href:this.logoUrl,part:"logo-wrapper"},a("slot",{name:"logo"},a("ld-icon",{"aria-label":this.logoTitle?undefined:"Merck KGaA, Darmstadt, Germany",class:"ld-header__logo",name:"initial-m",part:"logo"}))):a("div",{"aria-label":this.logoTitle,class:"ld-header__logo-wrapper",part:"logo-wrapper"},a("slot",{name:"logo"},a("ld-icon",{"aria-label":this.logoTitle?undefined:"Merck KGaA, Darmstadt, Germany",class:"ld-header__logo",name:"initial-m",part:"logo"}))),this.siteName&&a("ld-typo",{class:"ld-header_site-name",part:"site-name",tag:"div",variant:"h5"},this.siteName),a("slot",null),a("div",{class:"ld-header__grow",part:"spacer"}),a("slot",{name:"end"})))}static get assetsDirs(){return["assets"]}get el(){return r(this)}static get watchers(){return{hideOnScroll:["connectedCallback"]}}};s.style=l;export{s as ld_header};
-//# sourceMappingURL=p-385d2a88.entry.js.map
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-385d2a88.entry.js.map b/1704966176737/dist/build/p-385d2a88.entry.js.map
deleted file mode 100644
index b9d25882fc..0000000000
--- a/1704966176737/dist/build/p-385d2a88.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldHeaderCss","LdHeader","this","updateScrollDirection","offset","_a","window","pageYOffset","document","documentElement","scrollTop","innerHeight","body","offsetHeight","hidden","lastOffset","currentHeight","connectedCallback","hideOnScroll","addEventListener","passive","disconnectedCallback","removeEventListener","componentDidLoad","el","getBoundingClientRect","height","querySelectorAll","forEach","ldButton","size","brandColor","cssButton","classList","add","remove","render","cl","getClassNames","sticky","h","Host","class","role","part","name","logoUrl","logoTitle","href","undefined","siteName","tag","variant"],"sources":["../src/liquid/components/ld-header/ld-header.css?tag=ld-header&encapsulation=shadow","../src/liquid/components/ld-header/ld-header.tsx"],"sourcesContent":[".ld-header {\n &,\n :host(&) {\n /* layout */\n --ld-header-height: 3.125rem;\n --ld-header-max-width: 90rem;\n\n /* colors */\n --ld-header-col: var(--ld-col-wht);\n --ld-header-bg-col: var(--ld-thm-primary);\n\n /* misc */\n --ld-header-box-shadow: var(--ld-shadow-stacked);\n\n background-color: var(--ld-header-bg-col);\n box-shadow: var(--ld-header-box-shadow);\n color: var(--ld-header-col);\n display: flex;\n justify-content: center;\n width: 100%;\n transition: transform var(--ld-transition-duration-quick) ease-in-out;\n overflow-x: auto;\n }\n\n :host(&.ld-header--sticky),\n &.ld-header--sticky {\n position: sticky;\n top: 0;\n z-index: 1;\n }\n\n :host(&.ld-header--hidden),\n &.ld-header--hidden {\n transform: translateY(-100%);\n }\n}\n\n.ld-header__container {\n align-items: center;\n box-sizing: border-box;\n display: flex;\n gap: var(--ld-sp-16);\n height: var(--ld-header-height);\n max-width: var(--ld-header-max-width);\n padding-left: var(--ld-sp-16);\n padding-right: var(--ld-sp-16);\n flex-grow: 1;\n flex-shrink: 0;\n}\n\n[mode='ghost'],\n.ld-button--ghost {\n ::slotted(&),\n .ld-header__container > & {\n margin: 0 calc(var(--ld-sp-4) * -1);\n }\n}\n\n.ld-header__logo-wrapper {\n color: inherit;\n display: flex;\n\n ::slotted(*) {\n margin: 0;\n }\n}\n\n.ld-header__logo {\n --ld-icon-size-md: 2.4rem;\n color: var(--ld-thm-warning);\n display: block;\n margin: -0.2rem;\n}\n\n.ld-header_site-name {\n white-space: nowrap;\n}\n\n.ld-header__grow {\n flex-grow: 1;\n}\n\n:host(.ld-header) {\n .ld-header__grow {\n margin-right: calc(var(--ld-sp-16) * -1);\n }\n}\n","import { Component, Host, h, Prop, Element, Watch } from '@stencil/core'\nimport { getClassNames } from '../../utils/getClassNames'\n\n/**\n * @slot end - Items on the right side of the header.\n * @slot logo - Custom logo.\n * @slot start - Items on the left side of the header.\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n * @part container - Actual header element that limits the width of the header content\n * @part logo - The default logo\n * @part logo-wrapper - The element wrapping the logo slot (div or anchor, if linked)\n * @part site-name - `ld-typo` element containing the site name\n * @part spacer - Element adding the space between the default slot and the end slot\n */\n@Component({\n assetsDirs: ['assets'],\n tag: 'ld-header',\n styleUrl: 'ld-header.css',\n shadow: true,\n})\nexport class LdHeader {\n @Element() el: HTMLElement\n private lastOffset?: number\n private currentHeight?: number\n\n /** Hides header. */\n @Prop({ mutable: true }) hidden = false\n\n /** Hide the header when the user scrolls down and show it again, when the user scrolls up. */\n @Prop() hideOnScroll? = false\n\n /** Title attribute of the logo link. */\n @Prop() logoTitle?: string\n\n /** URL that the logo links to. */\n @Prop() logoUrl?: string\n\n /** Make the header sticky. */\n @Prop() sticky? = false\n\n /** Name shown on the right side of the logo. */\n @Prop() siteName?: string\n\n private updateScrollDirection = () => {\n const offset = window.pageYOffset ?? document.documentElement.scrollTop\n\n if (window.innerHeight + offset >= document.body.offsetHeight) {\n this.hidden = false\n } else if (offset > this.lastOffset && offset > this.currentHeight) {\n this.hidden = true\n } else {\n this.hidden = false\n }\n\n // For mobile or negative scrolling\n this.lastOffset = offset < 0 ? 0 : offset\n }\n\n @Watch('hideOnScroll')\n connectedCallback() {\n if (this.hideOnScroll) {\n this.lastOffset = window.pageYOffset || document.documentElement.scrollTop\n window.addEventListener('scroll', this.updateScrollDirection, {\n passive: true,\n })\n } else {\n this.disconnectedCallback()\n }\n }\n\n disconnectedCallback() {\n window.removeEventListener('scroll', this.updateScrollDirection)\n }\n\n componentDidLoad() {\n this.currentHeight = this.el.getBoundingClientRect().height\n\n this.el\n .querySelectorAll('ld-header > ld-button')\n .forEach((ldButton) => {\n ldButton.size = 'sm'\n ldButton.brandColor = true\n })\n\n this.el\n .querySelectorAll('ld-header > .ld-button')\n .forEach((cssButton) => {\n cssButton.classList.add('ld-button--brand-color')\n cssButton.classList.add('ld-button--sm')\n cssButton.classList.remove('ld-button--lg')\n })\n }\n\n render() {\n const cl = getClassNames([\n 'ld-header',\n this.hidden && 'ld-header--hidden',\n this.sticky && 'ld-header--sticky',\n ])\n\n return (\n \n \n \n )\n }\n}\n"],"mappings":"6FAAA,MAAMA,EAAc,i3C,MCqBPC,EAAQ,M,yBAuBXC,KAAAC,sBAAwB,K,MAC9B,MAAMC,GAASC,EAAAC,OAAOC,eAAW,MAAAF,SAAA,EAAAA,EAAIG,SAASC,gBAAgBC,UAE9D,GAAIJ,OAAOK,YAAcP,GAAUI,SAASI,KAAKC,aAAc,CAC7DX,KAAKY,OAAS,K,MACT,GAAIV,EAASF,KAAKa,YAAcX,EAASF,KAAKc,cAAe,CAClEd,KAAKY,OAAS,I,KACT,CACLZ,KAAKY,OAAS,K,CAIhBZ,KAAKa,WAAaX,EAAS,EAAI,EAAIA,CAAM,E,YA7BT,M,kBAGV,M,4DASN,M,wBAqBlB,iBAAAa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kBAAkBE,KAAK,WAClCJ,EAAA,QAAMK,KAAK,S"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-3a42d32d.entry.js b/1704966176737/dist/build/p-3a42d32d.entry.js
deleted file mode 100644
index cc52249684..0000000000
--- a/1704966176737/dist/build/p-3a42d32d.entry.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{r as t,h as e}from"./p-21a69c18.js";const a=":host{display:contents}:host ::slotted(ld-table-row){--ld-table-selection-wrapper-border-width-top:calc(var(--ld-sp-1) * 0.5);--ld-table-selection-wrapper-border-width-bottom:var(--ld-sp-1)}thead{background-image:var(--ld-table-head-gradient);position:sticky;top:0;z-index:2}";const r=class{constructor(e){t(this,e)}render(){return e("thead",{class:"ld-table-head",part:"thead"},e("slot",null))}};r.style=a;export{r as ld_table_head};
-//# sourceMappingURL=p-3a42d32d.entry.js.map
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-3a42d32d.entry.js.map b/1704966176737/dist/build/p-3a42d32d.entry.js.map
deleted file mode 100644
index 72f8b72212..0000000000
--- a/1704966176737/dist/build/p-3a42d32d.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldTableHeadShadowCss","LdTableHead","render","h","class","part"],"sources":["../src/liquid/components/ld-table/ld-table-head/ld-table-head.shadow.css?tag=ld-table-head&encapsulation=shadow","../src/liquid/components/ld-table/ld-table-head/ld-table-head.tsx"],"sourcesContent":[":host {\n display: contents;\n\n ::slotted(ld-table-row) {\n --ld-table-selection-wrapper-border-width-top: calc(var(--ld-sp-1) * 0.5);\n --ld-table-selection-wrapper-border-width-bottom: var(--ld-sp-1);\n }\n}\n\nthead {\n background-image: var(--ld-table-head-gradient);\n position: sticky;\n top: 0;\n z-index: 2;\n}\n","import { Component, h } from '@stencil/core'\n\n/**\n * @part thead - the actual thead element\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n */\n@Component({\n tag: 'ld-table-head',\n styleUrl: 'ld-table-head.shadow.css',\n shadow: true,\n})\nexport class LdTableHead {\n render() {\n return (\n \n \n \n )\n }\n}\n"],"mappings":"2CAAA,MAAMA,EAAuB,sR,MCYhBC,EAAW,M,yBACtB,MAAAC,GACE,OACEC,EAAA,SAAOC,MAAM,gBAAgBC,KAAK,SAChCF,EAAA,a"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-3aadade1.entry.js b/1704966176737/dist/build/p-3aadade1.entry.js
deleted file mode 100644
index 42dcd8747f..0000000000
--- a/1704966176737/dist/build/p-3aadade1.entry.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{r as a,h as s,H as t}from"./p-21a69c18.js";const l="";const r=class{constructor(s){a(this,s)}render(){return s(t,{role:"tabpanel",class:"ld-tabpanel",tabindex:"-1"},s("slot",null))}};r.style=l;export{r as ld_tabpanel};
-//# sourceMappingURL=p-3aadade1.entry.js.map
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-3aadade1.entry.js.map b/1704966176737/dist/build/p-3aadade1.entry.js.map
deleted file mode 100644
index eda9c3b2ed..0000000000
--- a/1704966176737/dist/build/p-3aadade1.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldTabpanelShadowCss","LdTabpanel","render","h","Host","role","class","tabindex"],"sources":["../src/liquid/components/ld-tabs/ld-tabpanel/ld-tabpanel.shadow.css?tag=ld-tabpanel&encapsulation=shadow","../src/liquid/components/ld-tabs/ld-tabpanel/ld-tabpanel.tsx"],"sourcesContent":[null,"import { Component, h, Host } from '@stencil/core'\n\n/**\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n */\n@Component({\n tag: 'ld-tabpanel',\n styleUrl: 'ld-tabpanel.shadow.css',\n shadow: true,\n})\nexport class LdTabpanel {\n render() {\n return (\n \n \n \n )\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAsB,G,MCWfC,EAAU,M,yBACrB,MAAAC,GACE,OACEC,EAACC,EAAI,CAACC,KAAK,WAAWC,MAAM,cAAcC,SAAS,MACjDJ,EAAA,a"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-3b79636e.entry.js.map b/1704966176737/dist/build/p-3b79636e.entry.js.map
deleted file mode 100644
index 724db40a60..0000000000
--- a/1704966176737/dist/build/p-3b79636e.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldOptgroupInternalShadowCss","LdOptgroupInternal","this","handleClick","disabled","mode","options","Array","from","el","children","newSelectedState","selected","filter","o","forEach","focusInner","optgroupRef","focus","handleOptionSelect","totalOptions","length","totalSelected","handleKeyDown","ev","key","preventDefault","stopImmediatePropagation","handleSelectedChange","ldoptgroupselect","emit","componentWillLoad","render","h","Host","class","getClassNames","size","filtered","role","ref","undefined","onClick","tabIndex","ldTabindex","part","checked","indeterminate","label"],"sources":["../src/liquid/components/ld-select/ld-optgroup-internal/ld-optgroup-internal.shadow.css?tag=ld-optgroup-internal&encapsulation=shadow","../src/liquid/components/ld-select/ld-optgroup-internal/ld-optgroup-internal.tsx"],"sourcesContent":[":host {\n /* layout */\n --ld-optgroup-padding-inline-start-sm: 0.625rem;\n --ld-optgroup-padding-inline-start-lg: 0.875rem;\n --ld-optgroup-option-padding-inline-start: 1rem;\n\n /* colors */\n --ld-optgroup-bg-col: var(--ld-col-neutral-010);\n --ld-optgroup-border-col: var(--ld-col-neutral-100);\n --ld-optgroup-disabled-text-col: var(--ld-col-neutral-100);\n --ld-optgroup-text-col: var(--ld-col-neutral-900);\n\n /* themable colors */\n --ld-optgroup-thm-col: var(--ld-thm-primary);\n --ld-optgroup-thm-col-hover: var(--ld-thm-primary-hover);\n --ld-optgroup-thm-col-focus: var(--ld-thm-primary-focus);\n --ld-optgroup-thm-col-active: var(--ld-thm-primary-active);\n --ld-optgroup-thm-bg-col-hover: var(--ld-thm-primary-highlight);\n --ld-optgroup-thm-bg-col-focus: var(--ld-thm-primary-highlight);\n --ld-optgroup-thm-bg-col-active: var(--ld-thm-primary-highlight);\n\n &(:not(:last-child)) {\n .ld-optgroup-internal__slot-container {\n border-bottom: solid var(--ld-optgroup-border-col) var(--ld-sp-1);\n }\n }\n}\n\n.ld-optgroup-internal {\n background-color: var(--ld-optgroup-bg-col);\n border: 0;\n box-sizing: border-box;\n color: var(--ld-optgroup-text-col);\n display: flex;\n font: var(--ld-typo-label-m);\n min-height: 2.5rem;\n outline: none;\n padding-block: var(--ld-sp-8);\n padding-inline: var(--ld-sp-12);\n position: relative;\n touch-action: manipulation;\n user-select: none;\n white-space: nowrap;\n -webkit-touch-callout: none;\n\n &::after {\n content: '';\n inset-block: calc(-1 * var(--ld-sp-1)) 0;\n inset-inline: calc(-1 * var(--ld-sp-1));\n position: absolute;\n pointer-events: none;\n box-shadow: inset 0 0 0 var(--ld-sp-1) var(--ld-col-neutral-100);\n }\n\n &--sm {\n padding-inline-start: var(--ld-optgroup-padding-inline-start-sm);\n }\n\n &--lg {\n padding-inline-start: var(--ld-optgroup-padding-inline-start-lg);\n }\n\n &--filtered {\n display: none;\n }\n\n *,\n *::before,\n *::after {\n box-sizing: inherit;\n }\n\n [data-popper-placement*='bottom'] & {\n &:last-of-type {\n border-bottom-left-radius: var(--ld-br-m);\n border-bottom-right-radius: var(--ld-br-m);\n }\n }\n [data-popper-placement*='top'] & {\n &:first-of-type {\n border-top-left-radius: var(--ld-br-m);\n border-top-right-radius: var(--ld-br-m);\n }\n }\n\n &:not(\n [aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false']))\n ) {\n cursor: pointer;\n }\n\n &[aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false'])) {\n color: var(--ld-optgroup-disabled-text-col);\n }\n\n &:where(:focus),\n &:where(:focus:focus-visible) {\n /* Pseudo element for focus outline */\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n border-radius: var(--ld-br-m);\n pointer-events: none;\n box-shadow: inset 0 0 0 var(--ld-sp-2) var(--ld-optgroup-thm-col);\n }\n }\n\n &:where(:focus:not(:focus-visible)) {\n &::before {\n content: none;\n }\n }\n\n &:where(\n :not(\n .ld-optgroup-internal--disabled,\n [aria-disabled]:where(\n :not([aria-disabled=''], [aria-disabled='false'])\n )\n )\n ) {\n :where(.ld-optgroup-internal__check) {\n color: var(--ld-optgroup-thm-col);\n }\n\n &:where(:focus),\n &:where(:focus:focus-visible) {\n background-color: var(--ld-optgroup-thm-bg-col-focus);\n\n :where(.ld-optgroup-internal__check) {\n color: var(--ld-optgroup-thm-col-focus);\n }\n }\n\n &:where(:focus:not(:focus-visible)) {\n background-color: var(--ld-optgroup-bg-col);\n\n :where(.ld-optgroup-internal__check) {\n color: var(--ld-optgroup-thm-col);\n }\n }\n\n @media (hover: hover) {\n &:where(:hover) {\n background-color: var(--ld-optgroup-thm-bg-col-hover);\n\n :where(.ld-optgroup-internal__check) {\n color: var(--ld-optgroup-thm-col-hover);\n }\n }\n }\n\n &:where(:active),\n &:where(:active:focus-visible) {\n background-color: var(--ld-optgroup-thm-bg-col-active);\n\n :where(.ld-optgroup-internal__check) {\n color: var(--ld-optgroup-thm-col-active);\n }\n }\n }\n}\n\n.ld-optgroup-internal__checkbox-wrapper {\n display: inline-flex;\n flex-shrink: 0;\n}\n\n.ld-optgroup-internal__check,\n.ld-optgroup-internal__checkbox {\n align-self: center;\n flex-shrink: 0;\n transform: translateX(calc(-1 * var(--ld-sp-2)));\n}\n\n.ld-optgroup-internal__check {\n margin-right: var(--ld-sp-4);\n}\n\n.ld-optgroup-internal__checkbox {\n margin-left: var(--ld-sp-2);\n margin-right: var(--ld-sp-6);\n}\n\n.ld-optgroup-internal__label {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Method,\n Prop,\n State,\n Watch,\n} from '@stencil/core'\nimport { getClassNames } from '../../../utils/getClassNames'\n\n/** @internal **/\n@Component({\n tag: 'ld-optgroup-internal',\n styleUrl: 'ld-optgroup-internal.shadow.css',\n shadow: true,\n})\nexport class LdOptgroupInternal implements InnerFocusable {\n @Element() el: HTMLElement\n\n private optgroupRef: HTMLElement\n\n /** Disables the whole option group. */\n @Prop() disabled?: boolean\n\n /** Set to true on filtering via select input. */\n @Prop() filtered? = false\n\n /** The name of the group of options. */\n @Prop() label!: string\n\n /** Tab index of the option. */\n @Prop() ldTabindex? = -1\n\n /** Display mode. */\n @Prop() mode?: 'checkbox' | undefined\n\n /** Size of the option. */\n @Prop() size?: 'sm' | 'lg'\n\n @State() selected?: boolean | 'indeterminate' = false\n\n /**\n * @internal\n * Emitted on either selection or de-selection of the option.\n */\n @Event() ldoptgroupselect: EventEmitter\n\n /** Sets focus internally. */\n @Method()\n async focusInner() {\n this.optgroupRef.focus()\n }\n\n @Listen('ldoptionselect')\n handleOptionSelect() {\n if (this.mode !== 'checkbox') return\n\n const options = Array.from(\n this.el.children\n ) as HTMLLdOptionInternalElement[]\n const totalOptions = options.length\n const totalSelected = options.filter((o) => o.selected).length\n\n if (totalSelected === 0) {\n this.selected = false\n return\n }\n\n if (totalOptions === totalSelected) {\n this.selected = true\n return\n }\n\n this.selected = 'indeterminate'\n }\n\n @Listen('keydown', { passive: false })\n handleKeyDown(ev: KeyboardEvent) {\n if (ev.key === ' ' || ev.key === 'Enter') {\n ev.preventDefault()\n ev.stopImmediatePropagation()\n this.handleClick()\n }\n }\n\n private handleClick = () => {\n if (this.disabled) return\n if (this.mode !== 'checkbox') return\n\n const options = Array.from(\n this.el.children\n ) as HTMLLdOptionInternalElement[]\n const newSelectedState =\n this.selected === false || this.selected === 'indeterminate'\n options\n .filter((o) => o.selected !== newSelectedState)\n .forEach((o) => {\n o.selected = newSelectedState\n })\n }\n\n @Watch('selected')\n handleSelectedChange() {\n this.ldoptgroupselect.emit(this.selected)\n }\n\n componentWillLoad() {\n this.handleOptionSelect()\n }\n\n render() {\n return (\n \n (this.optgroupRef = el as HTMLElement)}\n aria-disabled={this.disabled ? 'true' : undefined}\n onClick={this.handleClick}\n tabIndex={this.ldTabindex}\n part=\"option focusable\"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KU,WAAa,MAAQ,iCAC1BV,KAAKU,WAAa,iBAChB,wCAEJ2B,KAAK,SACLC,IAAM/B,GAAQP,KAAKe,YAAcR,EAAkB,gBACpCP,KAAKE,SAAW,OAASqC,UACxCC,QAASxC,KAAKC,YACdwC,SAAUzC,KAAK0C,WACfC,KAAK,oBAEJ3C,KAAKG,OAAS,YACb4B,EAAA,OACEE,MAAM,yCACNI,KAAK,eACLM,KAAK,oBAELZ,EAAA,eACEE,MAAM,iCACNW,QAAS5C,KAAKU,WAAa,KAC3BmC,cAAe7C,KAAKU,WAAa,gBACjCR,SAAUF,KAAKE,SACfyC,KAAK,cAKXZ,EAAA,QAAME,MAAM,8BAA8BU,KAAK,SAC5C3C,KAAK8C,QAIVf,EAAA,OAAKE,MAAM,uCAAuCU,KAAK,kBACrDZ,EAAA,c"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-40a74ea6.entry.js.map b/1704966176737/dist/build/p-40a74ea6.entry.js.map
deleted file mode 100644
index 0dd244d691..0000000000
--- a/1704966176737/dist/build/p-40a74ea6.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldInputMessageCss","LdInputMessage","render","h","Host","class","this","mode","name","part","size"],"sources":["../src/liquid/components/ld-input-message/ld-input-message.css?tag=ld-input-message&encapsulation=shadow","../src/liquid/components/ld-input-message/ld-input-message.tsx"],"sourcesContent":[":host,\n.ld-input-message {\n --ld-input-message-valid-text-col: var(--ld-thm-success);\n --ld-input-message-error-text-col: var(--ld-thm-error);\n\n display: inline-flex;\n align-items: baseline;\n font: var(--ld-typo-body-s);\n line-height: 1.5;\n}\n\n:host(.ld-input-message--info),\n.ld-input-message--info {\n .ld-input-message__icon {\n --ld-icon-secondary-col: var(--ld-col-neutral-900);\n color: var(--ld-thm-warning);\n }\n}\n\n:host(.ld-input-message--valid),\n.ld-input-message--valid {\n color: var(--ld-input-message-valid-text-col);\n}\n\n:host(.ld-input-message--error),\n.ld-input-message--error {\n color: var(--ld-input-message-error-text-col);\n}\n\n.ld-input-message__icon {\n transform: translateY(var(--ld-sp-2));\n margin-top: var(--ld-sp-2);\n margin-right: var(--ld-sp-6);\n flex-shrink: 0;\n}\n","import { Component, h, Prop, Host } from '@stencil/core'\n\n/**\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n * @part icon - Image tag used for the icon\n */\n@Component({\n assetsDirs: ['assets'],\n tag: 'ld-input-message',\n styleUrl: 'ld-input-message.css',\n shadow: true,\n})\nexport class LdInputMessage {\n /** Input message mode. */\n @Prop() mode?: 'error' | 'info' | 'valid' = 'error'\n\n render() {\n return (\n \n \n \n \n \n \n )\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAoB,+tB,MCabC,EAAc,M,mCAEmB,O,CAE5C,MAAAC,GACE,OACEC,EAACC,EAAI,CAACC,MAAO,sCAAsCC,KAAKC,QACtDJ,EAAA,WACEE,MAAM,yBACNG,KAAM,oBAAsBF,KAAKC,KACjCE,KAAK,OACLC,KAAK,OAEPP,EAAA,oBAAgB,aACdA,EAAA,c"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-42bd57e0.entry.js.map b/1704966176737/dist/build/p-42bd57e0.entry.js.map
deleted file mode 100644
index 1e820e3174..0000000000
--- a/1704966176737/dist/build/p-42bd57e0.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldBgCellsCss","LdBgCells","loadPatternPathData","this","type","patternString","fetchPattern","el","shadowRoot","querySelectorAll","forEach","layer","div","document","createElement","innerHTML","Array","from","_a","children","child","tagName","appendChild","componentWillLoad","render","cellType","h","Host","class","getClassNames","threeLayers","animated","viewBox","fill","xmlns","part"],"sources":["../src/liquid/components/ld-bg-cells/ld-bg-cells.css?tag=ld-bg-cells&encapsulation=shadow","../src/liquid/components/ld-bg-cells/ld-bg-cells.tsx"],"sourcesContent":[":host,\n.ld-bg-cells {\n --ld-bg-cells-bg-col: var(--ld-thm-secondary);\n --ld-bg-cells-layer-col: var(--ld-thm-primary);\n --ld-bg-cells-layer-translation-x: -80%;\n --ld-bg-cells-layer-translation-y: -6%;\n --ld-bg-cells-layer-size: 260%;\n --ld-bg-cells-layer-rotation: 0deg;\n --ld-bg-cells-secondary-layer-col: transparent;\n --ld-bg-cells-secondary-layer-translation-x: 0%;\n --ld-bg-cells-secondary-layer-translation-y: 0%;\n --ld-bg-cells-secondary-layer-size: 150%;\n --ld-bg-cells-secondary-layer-rotation: 0deg;\n\n --ld-bg-cells-base-size-factor: 0.39;\n\n --ld-bg-cells-layer-size-clamped: clamp(\n 50%,\n var(--ld-bg-cells-layer-size),\n 800%\n );\n --ld-bg-cells-layer-size-normalized: calc(\n var(--ld-bg-cells-layer-size-clamped) * var(--ld-bg-cells-base-size-factor)\n );\n --ld-bg-cells-secondary-layer-size-clamped: clamp(\n 50%,\n var(--ld-bg-cells-secondary-layer-size),\n 800%\n );\n --ld-bg-cells-secondary-layer-size-normalized: calc(\n var(--ld-bg-cells-secondary-layer-size-clamped) *\n var(--ld-bg-cells-base-size-factor)\n );\n\n --ld-bg-cells-layer-animation-translate: 0.3%;\n --ld-bg-cells-layer-animation-scale: 4%;\n --ld-bg-cells-layer-animation-rotate: 6deg;\n --ld-bg-cells-layer-animation-speed: 1;\n\n --ld-bg-cells-layer-animation-dur: calc(\n 126s / var(--ld-bg-cells-layer-animation-speed)\n );\n --ld-bg-cells-secondary-layer-animation-dur: calc(\n 84s / var(--ld-bg-cells-layer-animation-speed)\n );\n\n background: var(--ld-bg-cells-bg-col);\n position: relative;\n display: block;\n height: 100%;\n width: 100%;\n overflow: hidden;\n}\n\n/* We are scaling the layer up to 1000% to smoothen calculations for the transformation.\n Original size leads to rounding errors and therefore jumping of the pattern. */\n.ld-bg-cells__layer,\n.ld-bg-cells__secondary-layer {\n inset: 0;\n position: absolute;\n min-width: 1000%;\n min-height: 1000%;\n top: 50%;\n left: 50%;\n}\n\n.ld-bg-cells__layer {\n color: var(--ld-bg-cells-layer-col);\n transform: translate(\n calc((var(--ld-bg-cells-layer-translation-x) / 10) - 50%),\n calc((var(--ld-bg-cells-layer-translation-y) / 10) - 50%)\n )\n scale(var(--ld-bg-cells-layer-size-normalized))\n rotate(var(--ld-bg-cells-layer-rotation));\n\n &--animated {\n animation: layer-animate var(--ld-bg-cells-layer-animation-dur) ease-in-out\n infinite;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n }\n}\n\n.ld-bg-cells__secondary-layer {\n color: var(--ld-bg-cells-secondary-layer-col);\n transform: translate(\n calc((var(--ld-bg-cells-secondary-layer-translation-x) / 10) - 50%),\n calc((var(--ld-bg-cells-secondary-layer-translation-y) / 10) - 50%)\n )\n scale(var(--ld-bg-cells-secondary-layer-size-normalized))\n rotate(var(--ld-bg-cells-secondary-layer-rotation));\n\n &--animated {\n animation: secondary-layer-animate\n var(--ld-bg-cells-secondary-layer-animation-dur) ease-in-out infinite\n reverse;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n }\n}\n\n.ld-bg-cells {\n :host(&--three-layers),\n &--three-layers {\n --ld-bg-cells-layer-col: var(--ld-thm-primary);\n --ld-bg-cells-secondary-layer-col: var(--ld-col-vy);\n --ld-bg-cells-layer-size: 390%;\n --ld-bg-cells-layer-translation-x: -50%;\n --ld-bg-cells-layer-rotation: -30deg;\n --ld-bg-cells-secondary-layer-size: 580%;\n --ld-bg-cells-secondary-layer-translation-x: -20%;\n --ld-bg-cells-secondary-layer-translation-y: -100%;\n }\n\n :host(&--bioreliance),\n &--bioreliance {\n --ld-bg-cells-base-size-factor: 0.46;\n --ld-bg-cells-bg-col: var(--ld-col-vg);\n --ld-bg-cells-layer-col: var(--ld-col-rp);\n --ld-bg-cells-secondary-layer-col: transparent;\n --ld-bg-cells-layer-translation-x: -89%;\n --ld-bg-cells-layer-translation-y: 48%;\n --ld-bg-cells-layer-size: 297%;\n }\n\n :host(&--f),\n &--f {\n --ld-bg-cells-base-size-factor: 0.49;\n --ld-bg-cells-layer-translation-x: -79%;\n --ld-bg-cells-layer-translation-y: 24%;\n --ld-bg-cells-layer-size: 240%;\n }\n\n :host(&--mdo),\n &--mdo {\n --ld-bg-cells-base-size-factor: 0.2;\n --ld-bg-cells-bg-col: var(--ld-col-rb);\n --ld-bg-cells-layer-col: var(--ld-col-sy);\n --ld-bg-cells-secondary-layer-col: var(--ld-col-sb);\n --ld-bg-cells-layer-translation-x: -107%;\n --ld-bg-cells-layer-translation-y: -32%;\n --ld-bg-cells-layer-size: 147%;\n --ld-bg-cells-layer-rotation: 145deg;\n --ld-bg-cells-secondary-layer-translation-x: 133%;\n --ld-bg-cells-secondary-layer-translation-y: 46%;\n --ld-bg-cells-secondary-layer-size: 150%;\n --ld-bg-cells-secondary-layer-rotation: 145deg;\n }\n\n :host(&--millipore),\n &--millipore {\n --ld-bg-cells-base-size-factor: 0.43;\n --ld-bg-cells-bg-col: var(--ld-col-rb);\n --ld-bg-cells-layer-col: var(--ld-col-vy);\n --ld-bg-cells-secondary-layer-col: transparent;\n --ld-bg-cells-layer-translation-x: -80%;\n --ld-bg-cells-layer-translation-y: 43%;\n --ld-bg-cells-layer-size: 230%;\n }\n\n :host(&--milliq),\n &--milliq {\n --ld-bg-cells-base-size-factor: 0.23;\n --ld-bg-cells-bg-col: var(--ld-col-vc);\n --ld-bg-cells-layer-col: var(--ld-col-rp);\n --ld-bg-cells-secondary-layer-col: transparent;\n --ld-bg-cells-layer-translation-x: -70%;\n --ld-bg-cells-layer-translation-y: 100%;\n --ld-bg-cells-layer-size: 420%;\n }\n\n :host(&--o),\n &--o {\n --ld-bg-cells-base-size-factor: 0.33;\n --ld-bg-cells-layer-translation-x: -75%;\n --ld-bg-cells-layer-translation-y: -21%;\n --ld-bg-cells-layer-size: 190%;\n }\n\n :host(&--supelco),\n &--supelco {\n --ld-bg-cells-base-size-factor: 0.66;\n --ld-bg-cells-bg-col: var(--ld-col-rg);\n --ld-bg-cells-layer-col: var(--ld-col-vy);\n --ld-bg-cells-secondary-layer-col: transparent;\n --ld-bg-cells-layer-translation-x: -59%;\n --ld-bg-cells-layer-translation-y: 43%;\n --ld-bg-cells-layer-size: 190%;\n }\n\n :host(&--safc),\n &--safc {\n --ld-bg-cells-base-size-factor: 0.34;\n --ld-bg-cells-bg-col: var(--ld-col-vm);\n --ld-bg-cells-layer-col: var(--ld-col-vy);\n --ld-bg-cells-secondary-layer-col: transparent;\n --ld-bg-cells-layer-translation-x: -122%;\n --ld-bg-cells-layer-translation-y: 5%;\n --ld-bg-cells-layer-size: 362%;\n }\n\n :host(&--sigma-aldrich),\n &--sigma-aldrich {\n --ld-bg-cells-base-size-factor: 0.53;\n --ld-bg-cells-bg-col: var(--ld-col-rr);\n --ld-bg-cells-layer-col: var(--ld-col-vy);\n --ld-bg-cells-secondary-layer-col: transparent;\n --ld-bg-cells-layer-translation-x: -124%;\n --ld-bg-cells-layer-translation-y: -2%;\n --ld-bg-cells-layer-size: 460%;\n }\n\n :host(&--t),\n &--t {\n --ld-bg-cells-base-size-factor: 0.47;\n --ld-bg-cells-layer-translation-x: -108%;\n --ld-bg-cells-layer-translation-y: 72%;\n --ld-bg-cells-layer-size: 312%;\n }\n\n :host(&--tile),\n &--tile {\n --ld-bg-cells-base-size-factor: 0.31;\n --ld-bg-cells-layer-translation-x: -93%;\n --ld-bg-cells-layer-translation-y: -1%;\n --ld-bg-cells-layer-size: 340%;\n }\n}\n\n@keyframes layer-animate {\n 0%,\n 100% {\n transform: translate(\n calc(\n (var(--ld-bg-cells-layer-translation-x) / 10) -\n (50% - var(--ld-bg-cells-layer-animation-translate))\n ),\n calc(\n (var(--ld-bg-cells-layer-translation-y) / 10) -\n (50% - var(--ld-bg-cells-layer-animation-translate) / 2)\n )\n )\n scale(calc(var(--ld-bg-cells-layer-size-normalized)))\n rotate(calc(var(--ld-bg-cells-layer-rotation)));\n }\n 25% {\n transform: translate(\n calc(\n (\n (var(--ld-bg-cells-layer-translation-x) / 10) -\n (50% + var(--ld-bg-cells-layer-animation-translate))\n )\n ),\n calc(\n (\n (var(--ld-bg-cells-layer-translation-y) / 10) -\n (50% + var(--ld-bg-cells-layer-animation-translate) / 2)\n )\n )\n )\n scale(\n calc(\n var(--ld-bg-cells-layer-size-normalized) +\n var(--ld-bg-cells-layer-animation-scale)\n )\n )\n rotate(\n calc(\n var(--ld-bg-cells-layer-rotation) -\n var(--ld-bg-cells-layer-animation-rotate)\n )\n );\n }\n 50% {\n transform: translate(\n calc(\n (\n (var(--ld-bg-cells-layer-translation-x) / 10) -\n (50% + var(--ld-bg-cells-layer-animation-translate) / 2)\n )\n ),\n calc(\n (\n (var(--ld-bg-cells-layer-translation-y) / 10) -\n (50% + var(--ld-bg-cells-layer-animation-translate))\n )\n )\n )\n scale(calc(var(--ld-bg-cells-layer-size-normalized)))\n rotate(calc(var(--ld-bg-cells-layer-rotation)));\n }\n 75% {\n transform: translate(\n calc(\n (\n (var(--ld-bg-cells-layer-translation-x) / 10) -\n (50% - var(--ld-bg-cells-layer-animation-translate) / 2)\n )\n ),\n calc(\n (\n (var(--ld-bg-cells-layer-translation-y) / 10) -\n (50% - var(--ld-bg-cells-layer-animation-translate))\n )\n )\n )\n scale(\n calc(\n var(--ld-bg-cells-layer-size-normalized) -\n var(--ld-bg-cells-layer-animation-scale)\n )\n )\n rotate(\n calc(\n var(--ld-bg-cells-layer-rotation) +\n var(--ld-bg-cells-layer-animation-rotate)\n )\n );\n }\n}\n\n@keyframes secondary-layer-animate {\n 0%,\n 100% {\n transform: translate(\n calc(\n (var(--ld-bg-cells-secondary-layer-translation-x) / 10) -\n (50% - var(--ld-bg-cells-layer-animation-translate))\n ),\n calc(\n (var(--ld-bg-cells-secondary-layer-translation-y) / 10) -\n (50% - var(--ld-bg-cells-layer-animation-translate) / 2)\n )\n )\n scale(calc(var(--ld-bg-cells-secondary-layer-size-normalized)))\n rotate(calc(var(--ld-bg-cells-secondary-layer-rotation)));\n }\n 25% {\n transform: translate(\n calc(\n (\n (var(--ld-bg-cells-secondary-layer-translation-x) / 10) -\n (50% + var(--ld-bg-cells-layer-animation-translate))\n )\n ),\n calc(\n (\n (var(--ld-bg-cells-secondary-layer-translation-y) / 10) -\n (50% + var(--ld-bg-cells-layer-animation-translate) / 2)\n )\n )\n )\n scale(\n calc(\n var(--ld-bg-cells-secondary-layer-size-normalized) +\n var(--ld-bg-cells-layer-animation-scale)\n )\n )\n rotate(\n calc(\n var(--ld-bg-cells-secondary-layer-rotation) -\n var(--ld-bg-cells-layer-animation-rotate)\n )\n );\n }\n 50% {\n transform: translate(\n calc(\n (\n (var(--ld-bg-cells-secondary-layer-translation-x) / 10) -\n (50% + var(--ld-bg-cells-layer-animation-translate) / 2)\n )\n ),\n calc(\n (\n (var(--ld-bg-cells-secondary-layer-translation-y) / 10) -\n (50% + var(--ld-bg-cells-layer-animation-translate))\n )\n )\n )\n scale(calc(var(--ld-bg-cells-secondary-layer-size-normalized)))\n rotate(calc(var(--ld-bg-cells-secondary-layer-rotation)));\n }\n 75% {\n transform: translate(\n calc(\n (\n (var(--ld-bg-cells-secondary-layer-translation-x) / 10) -\n (50% - var(--ld-bg-cells-layer-animation-translate) / 2)\n )\n ),\n calc(\n (\n (var(--ld-bg-cells-secondary-layer-translation-y) / 10) -\n (50% - var(--ld-bg-cells-layer-animation-translate))\n )\n )\n )\n scale(\n calc(\n var(--ld-bg-cells-secondary-layer-size-normalized) -\n var(--ld-bg-cells-layer-animation-scale)\n )\n )\n rotate(\n calc(\n var(--ld-bg-cells-secondary-layer-rotation) +\n var(--ld-bg-cells-layer-animation-rotate)\n )\n );\n }\n}\n","import { Build, Component, Element, h, Host, Prop, Watch } from '@stencil/core'\nimport { getClassNames } from '../../utils/getClassNames'\nimport { fetchPattern } from '../../utils/fetchAsset'\n\nexport type CellType =\n | 'bioreliance'\n | 'f' // Functional\n | 'functional'\n | 'hexagon' // Synthetic\n | 'mdo'\n | 'millipore'\n | 'milliq'\n | 'o' // Organic\n | 'organic'\n | 'plastic'\n | 'qa-x2f-qc' // Supelco\n | 'safc'\n | 'sigma-aldrich'\n | 'supelco'\n | 'synthetic'\n | 't' // Technical\n | 'technical'\n | 'tile' // Plastic\n\n/**\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n * @part layer - the primary cell layer\n * @part secondary-layer - the secondary cell layer\n */\n@Component({\n assetsDirs: ['assets'],\n tag: 'ld-bg-cells',\n styleUrl: 'ld-bg-cells.css',\n shadow: true,\n})\nexport class LdBgCells {\n @Element() el: HTMLElement\n\n /** Cells pattern */\n @Prop() type?: CellType = 'hexagon'\n\n /** Use 3 color layers */\n @Prop() threeLayers? = false\n\n /** Animate the pattern */\n @Prop() animated? = false\n\n @Watch('type')\n private async loadPatternPathData(): Promise {\n if ((!Build.isBrowser && !Build.isTesting) || !this.type) {\n return\n }\n\n const patternString = await fetchPattern(this.type)\n this.el.shadowRoot.querySelectorAll('svg').forEach((layer) => {\n const div = document.createElement('div')\n div.innerHTML = patternString\n Array.from(div.children[0]?.children || []).forEach((child) => {\n if (child.tagName !== 'script') {\n layer.appendChild(child)\n }\n })\n })\n }\n\n componentWillLoad() {\n this.loadPatternPathData()\n }\n\n render() {\n // Handle aliases (for backward compatibility).\n let cellType = this.type\n\n if (cellType === 'qa-x2f-qc') cellType = 'supelco'\n if (cellType === 'functional') cellType = 'f'\n if (cellType === 'technical') cellType = 't'\n if (cellType === 'plastic') cellType = 'tile'\n if (cellType === 'synthetic') cellType = 'hexagon'\n if (cellType === 'organic') cellType = 'o'\n\n return (\n \n \n \n \n )\n }\n}\n"],"mappings":"iIAAA,MAAMA,EAAe,mzS,MCoCRC,EAAS,M,mCAIM,U,iBAGH,M,cAGH,K,CAGZ,yBAAMC,GACZ,IAA+CC,KAAKC,KAAM,CACxD,M,CAGF,MAAMC,QAAsBC,EAAaH,KAAKC,MAC9CD,KAAKI,GAAGC,WAAWC,iBAAiB,OAAOC,SAASC,I,MAClD,MAAMC,EAAMC,SAASC,cAAc,OACnCF,EAAIG,UAAYV,EAChBW,MAAMC,OAAKC,EAAAN,EAAIO,SAAS,MAAE,MAAAD,SAAA,SAAAA,EAAEC,WAAY,IAAIT,SAASU,IACnD,GAAIA,EAAMC,UAAY,SAAU,CAC9BV,EAAMW,YAAYF,E,IAEpB,G,CAIN,iBAAAG,GACEpB,KAAKD,qB,CAGP,MAAAsB,GAEE,IAAIC,EAAWtB,KAAKC,KAEpB,GAAIqB,IAAa,YAAaA,EAAW,UACzC,GAAIA,IAAa,aAAcA,EAAW,IAC1C,GAAIA,IAAa,YAAaA,EAAW,IACzC,GAAIA,IAAa,UAAWA,EAAW,OACvC,GAAIA,IAAa,YAAaA,EAAW,UACzC,GAAIA,IAAa,UAAWA,EAAW,IAEvC,OACEC,EAACC,EAAI,CACHC,MAAOC,EAAc,CACnB,cACA,gBAAgBJ,IAChBtB,KAAK2B,aAAe,+BAGtBJ,EAAA,OACEE,MAAOC,EAAc,CACnB,+BACA1B,KAAK4B,UAAY,2CAEnBC,QAAQ,gBACRC,KAAK,OACLC,MAAM,6BACNC,KAAK,oBAEPT,EAAA,OACEE,MAAOC,EAAc,CACnB,qBACA1B,KAAK4B,UAAY,iCAEnBC,QAAQ,gBACRC,KAAK,OACLC,MAAM,6BACNC,KAAK,U"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-430fe27d.entry.js b/1704966176737/dist/build/p-430fe27d.entry.js
deleted file mode 100644
index 10b4d76770..0000000000
--- a/1704966176737/dist/build/p-430fe27d.entry.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{r as t,h as s}from"./p-21a69c18.js";const o=":host{display:contents}";const r=class{constructor(s){t(this,s)}render(){return s("tbody",{class:"ld-table-body",part:"tbody"},s("slot",null))}};r.style=o;export{r as ld_table_body};
-//# sourceMappingURL=p-430fe27d.entry.js.map
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-430fe27d.entry.js.map b/1704966176737/dist/build/p-430fe27d.entry.js.map
deleted file mode 100644
index 2e381c0c44..0000000000
--- a/1704966176737/dist/build/p-430fe27d.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldTableBodyShadowCss","LdTableBody","render","h","class","part"],"sources":["../src/liquid/components/ld-table/ld-table-body/ld-table-body.shadow.css?tag=ld-table-body&encapsulation=shadow","../src/liquid/components/ld-table/ld-table-body/ld-table-body.tsx"],"sourcesContent":[":host {\n display: contents;\n}\n","import { Component, h } from '@stencil/core'\n\n/**\n * @part tbody - the actual tbody element\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n */\n@Component({\n tag: 'ld-table-body',\n styleUrl: 'ld-table-body.shadow.css',\n shadow: true,\n})\nexport class LdTableBody {\n render() {\n return (\n \n \n \n )\n }\n}\n"],"mappings":"2CAAA,MAAMA,EAAuB,0B,MCYhBC,EAAW,M,yBACtB,MAAAC,GACE,OACEC,EAAA,SAAOC,MAAM,gBAAgBC,KAAK,SAChCF,EAAA,a"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-43a7d779.entry.js b/1704966176737/dist/build/p-43a7d779.entry.js
deleted file mode 100644
index a96e08e2d7..0000000000
--- a/1704966176737/dist/build/p-43a7d779.entry.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{r as s,h as t,H as i,g as e}from"./p-21a69c18.js";import{T as n}from"./p-6f9b9619.js";import{a as r,b as o,c as h}from"./p-f13d3119.js";import"./p-8dc70a87.js";const a=":host{display:inline-flex}.ld-menu{background:var(--ld-col-wht);border-radius:var(--ld-br-l);box-shadow:var(--ld-shadow-stacked);box-sizing:border-box;list-style:none;margin:0;padding:var(--ld-sp-12)}";const l=s=>{if(!r(s)){return[]}if(o(s)){return[s]}const t=[];if(h(s)){s.assignedNodes().forEach((s=>t.push(...l(s))));return t}s.childNodes.forEach((s=>t.push(...l(s))));return t};const c=class{constructor(t){s(this,t);this.initMenuItems=(s,t=false)=>{if(!r(s)){return}if(o(s)){s.size=this.size;if(!t){return}s.ldTabindex=this.initialized?-1:0;if(!this.initialized){this.initialized=true}return}if(h(s)){s.assignedNodes().forEach((s=>this.initMenuItems(s)));return}s.childNodes.forEach((s=>this.initMenuItems(s)))};this.getAllMenuItems=()=>{const s=[];this.el.querySelectorAll("slot, ld-menuitem").forEach((t=>s.push(...l(t))));return s};this.focusFirst=s=>{const t=this.getAllMenuItems();const[i]=t;s.ldTabindex=-1;i.ldTabindex=0;i.focusInner()};this.focusLast=s=>{const t=this.getAllMenuItems();const i=t[t.length-1];s.ldTabindex=-1;i.ldTabindex=0;i.focusInner()};this.focusNext=s=>{const t=this.getAllMenuItems();const i=t.indexOf(s);const e=t.length>i+1?t[i+1]:t[0];s.ldTabindex=-1;e.ldTabindex=0;e.focusInner()};this.focusPrev=s=>{const t=this.getAllMenuItems();const i=t.indexOf(s);const e=i===0?t[t.length-1]:t[i-1];s.ldTabindex=-1;e.ldTabindex=0;e.focusInner()};this.handleKeyDown=s=>{const t=s.target;let i;switch(s.key){case"ArrowUp":s.preventDefault();if(s.metaKey){this.focusFirst(t)}else{this.focusPrev(t)}break;case"ArrowDown":s.preventDefault();if(s.metaKey){this.focusLast(t)}else{this.focusNext(t)}break;case"Home":s.preventDefault();this.focusFirst(t);break;case"End":s.preventDefault();this.focusLast(t);break;default:i=this.typeAheadHandler.typeAhead(s.key,t);if(i){t.ldTabindex=-1;i.ldTabindex=0}}};this.updateMenuItems=(s=false)=>{this.el.querySelectorAll("slot, ld-menuitem").forEach((t=>this.initMenuItems(t,s)))};this.size=undefined;this.initialized=false;this.typeAheadHandler=undefined}async getFirstMenuItem(){return this.getAllMenuItems()[0]}handleSizeChange(){this.updateMenuItems()}componentWillLoad(){this.updateMenuItems(true);this.typeAheadHandler=new n(this.getAllMenuItems())}disconnectedCallback(){var s;(s=this.typeAheadHandler)===null||s===void 0?void 0:s.clearTimeout()}render(){return t(i,{onKeyDown:this.handleKeyDown},t("ul",{class:"ld-menu",part:"list",role:"menu"},t("slot",null)))}get el(){return e(this)}static get watchers(){return{size:["handleSizeChange"]}}};c.style=a;export{c as ld_menu};
-//# sourceMappingURL=p-43a7d779.entry.js.map
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-43a7d779.entry.js.map b/1704966176737/dist/build/p-43a7d779.entry.js.map
deleted file mode 100644
index 5bd2850220..0000000000
--- a/1704966176737/dist/build/p-43a7d779.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldMenuCss","getMenuItemOrNestedMenuItems","node","isElement","isMenuItem","items","isSlot","assignedNodes","forEach","push","childNodes","LdMenu","this","initMenuItems","element","initial","size","ldTabindex","initialized","getAllMenuItems","el","querySelectorAll","focusFirst","target","allMenuItems","first","focusInner","focusLast","last","length","focusNext","index","indexOf","next","focusPrev","prev","handleKeyDown","event","focusedElement","key","preventDefault","metaKey","typeAheadHandler","typeAhead","updateMenuItems","getFirstMenuItem","handleSizeChange","componentWillLoad","TypeAheadHandler","disconnectedCallback","_a","clearTimeout","render","h","Host","onKeyDown","class","part","role"],"sources":["../src/liquid/components/ld-context-menu/ld-menu/ld-menu.css?tag=ld-menu&encapsulation=shadow","../src/liquid/components/ld-context-menu/ld-menu/ld-menu.tsx"],"sourcesContent":[":host {\n display: inline-flex;\n}\n\n.ld-menu {\n background: var(--ld-col-wht);\n border-radius: var(--ld-br-l);\n box-shadow: var(--ld-shadow-stacked);\n box-sizing: border-box;\n list-style: none;\n margin: 0;\n padding: var(--ld-sp-12);\n}\n","import {\n Component,\n Element,\n h,\n Host,\n Method,\n Prop,\n State,\n Watch,\n} from '@stencil/core'\nimport { TypeAheadHandler } from '../../../utils/typeahead'\nimport { isElement, isMenuItem, isSlot } from '../../../utils/type-checking'\n\nconst getMenuItemOrNestedMenuItems = (node: Node) => {\n if (!isElement(node)) {\n return []\n }\n\n if (isMenuItem(node)) {\n return [node]\n }\n\n const items: HTMLLdMenuitemElement[] = []\n\n if (isSlot(node)) {\n node\n .assignedNodes()\n .forEach((node) => items.push(...getMenuItemOrNestedMenuItems(node)))\n return items\n }\n\n node.childNodes.forEach((node) =>\n items.push(...getMenuItemOrNestedMenuItems(node))\n )\n\n return items\n}\n\n/**\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n * @part list - `ul` element wrapping the default slot\n */\n@Component({\n tag: 'ld-menu',\n styleUrl: 'ld-menu.css',\n shadow: true,\n})\nexport class LdMenu {\n @Element() el: HTMLLdMenuElement\n\n /** Size of the context menu. */\n @Prop() size?: 'sm' | 'lg'\n\n @State() initialized = false\n @State() typeAheadHandler: TypeAheadHandler\n\n private initMenuItems = (element: Node, initial = false) => {\n if (!isElement(element)) {\n return\n }\n\n if (isMenuItem(element)) {\n element.size = this.size\n\n if (!initial) {\n return\n }\n\n element.ldTabindex = this.initialized ? -1 : 0\n\n if (!this.initialized) {\n this.initialized = true\n }\n\n return\n }\n\n if (isSlot(element)) {\n element.assignedNodes().forEach((node) => this.initMenuItems(node))\n return\n }\n\n element.childNodes.forEach((node) => this.initMenuItems(node))\n }\n\n /** Get the first menu item inside this menu. */\n @Method()\n async getFirstMenuItem(): Promise {\n return this.getAllMenuItems()[0]\n }\n\n private getAllMenuItems = () => {\n const items: HTMLLdMenuitemElement[] = []\n\n this.el\n .querySelectorAll('slot, ld-menuitem')\n .forEach((node) => items.push(...getMenuItemOrNestedMenuItems(node)))\n\n return items\n }\n\n private focusFirst = (target: HTMLLdMenuitemElement) => {\n const allMenuItems = this.getAllMenuItems()\n const [first] = allMenuItems\n\n target.ldTabindex = -1\n first.ldTabindex = 0\n first.focusInner()\n }\n\n private focusLast = (target: HTMLLdMenuitemElement) => {\n const allMenuItems = this.getAllMenuItems()\n const last = allMenuItems[allMenuItems.length - 1]\n\n target.ldTabindex = -1\n last.ldTabindex = 0\n last.focusInner()\n }\n\n private focusNext = (target: HTMLLdMenuitemElement) => {\n const allMenuItems = this.getAllMenuItems()\n const index = allMenuItems.indexOf(target)\n const next =\n allMenuItems.length > index + 1\n ? allMenuItems[index + 1]\n : allMenuItems[0]\n\n target.ldTabindex = -1\n next.ldTabindex = 0\n next.focusInner()\n }\n\n private focusPrev = (target: HTMLLdMenuitemElement) => {\n const allMenuItems = this.getAllMenuItems()\n const index = allMenuItems.indexOf(target)\n const prev =\n index === 0\n ? allMenuItems[allMenuItems.length - 1]\n : allMenuItems[index - 1]\n\n target.ldTabindex = -1\n prev.ldTabindex = 0\n prev.focusInner()\n }\n\n private handleKeyDown = (event: KeyboardEvent) => {\n const target = event.target as HTMLLdMenuitemElement\n let focusedElement: HTMLLdMenuitemElement\n\n switch (event.key) {\n case 'ArrowUp':\n event.preventDefault()\n if (event.metaKey) {\n this.focusFirst(target)\n } else {\n this.focusPrev(target)\n }\n break\n case 'ArrowDown':\n event.preventDefault()\n if (event.metaKey) {\n this.focusLast(target)\n } else {\n this.focusNext(target)\n }\n break\n case 'Home':\n event.preventDefault()\n this.focusFirst(target)\n break\n case 'End':\n event.preventDefault()\n this.focusLast(target)\n break\n default:\n focusedElement = this.typeAheadHandler.typeAhead(event.key, target)\n\n if (focusedElement) {\n target.ldTabindex = -1\n focusedElement.ldTabindex = 0\n }\n }\n }\n\n @Watch('size')\n handleSizeChange() {\n this.updateMenuItems()\n }\n\n private updateMenuItems = (initial = false) => {\n this.el\n .querySelectorAll('slot, ld-menuitem')\n .forEach((element) => this.initMenuItems(element, initial))\n }\n\n componentWillLoad() {\n this.updateMenuItems(true)\n this.typeAheadHandler = new TypeAheadHandler(this.getAllMenuItems())\n }\n\n disconnectedCallback() {\n this.typeAheadHandler?.clearTimeout()\n }\n\n render() {\n return (\n \n \n \n )\n }\n}\n"],"mappings":"uKAAA,MAAMA,EAAY,2MCalB,MAAMC,EAAgCC,IACpC,IAAKC,EAAUD,GAAO,CACpB,MAAO,E,CAGT,GAAIE,EAAWF,GAAO,CACpB,MAAO,CAACA,E,CAGV,MAAMG,EAAiC,GAEvC,GAAIC,EAAOJ,GAAO,CAChBA,EACGK,gBACAC,SAASN,GAASG,EAAMI,QAAQR,EAA6BC,MAChE,OAAOG,C,CAGTH,EAAKQ,WAAWF,SAASN,G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build/p-47f9082b.entry.js b/1704966176737/dist/build/p-47f9082b.entry.js
deleted file mode 100644
index d7ecd752ac..0000000000
--- a/1704966176737/dist/build/p-47f9082b.entry.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{r as t,h as a}from"./p-21a69c18.js";const o="";const s=class{constructor(a){t(this,a)}render(){return a("figcaption",{class:"ld-table-caption",part:"figcaption"},a("slot",null))}};s.style=o;export{s as ld_table_caption};
-//# sourceMappingURL=p-47f9082b.entry.js.map
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-47f9082b.entry.js.map b/1704966176737/dist/build/p-47f9082b.entry.js.map
deleted file mode 100644
index b4e310344f..0000000000
--- a/1704966176737/dist/build/p-47f9082b.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldTableCaptionShadowCss","LdTableCaption","render","h","class","part"],"sources":["../src/liquid/components/ld-table/ld-table-caption/ld-table-caption.shadow.css?tag=ld-table-caption&encapsulation=shadow","../src/liquid/components/ld-table/ld-table-caption/ld-table-caption.tsx"],"sourcesContent":[null,"import { Component, h } from '@stencil/core'\n\n/**\n * @part figcaption - the actual figcaption element\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n */\n@Component({\n tag: 'ld-table-caption',\n styleUrl: 'ld-table-caption.shadow.css',\n shadow: true,\n})\nexport class LdTableCaption {\n render() {\n return (\n \n \n \n )\n }\n}\n"],"mappings":"2CAAA,MAAMA,EAA0B,G,MCYnBC,EAAc,M,yBACzB,MAAAC,GACE,OACEC,EAAA,cAAYC,MAAM,mBAAmBC,KAAK,cACxCF,EAAA,a"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-488f0189.entry.js.map b/1704966176737/dist/build/p-488f0189.entry.js.map
deleted file mode 100644
index 7fae860e29..0000000000
--- a/1704966176737/dist/build/p-488f0189.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldLoadingCss","LdLoading","render","cl","getClassNames","this","neutral","paused","h","Host","class","viewBox","preserveAspectRatio","label","cx","cy","r","attributeName","attributeType","type","from","to","dur","repeatCount"],"sources":["../src/liquid/components/ld-loading/ld-loading.css?tag=ld-loading&encapsulation=shadow","../src/liquid/components/ld-loading/ld-loading.tsx"],"sourcesContent":[":host,\nsvg.ld-loading {\n --ld-loading-col-base: var(--ld-thm-warning);\n --ld-loading-col-primary: var(--ld-thm-primary);\n --ld-loading-col-secondary: var(--ld-thm-secondary);\n --ld-loading-play-state: running;\n --ld-loading-size: var(--ld-sp-24);\n --ld-loading-stretch-dur: 4s;\n\n /* stylelint-disable-next-line */\n &:host(.ld-loading--neutral), /* safari specific hack */\n &.ld-loading--neutral {\n --ld-loading-col-base: var(--ld-col-neutral-100);\n --ld-loading-col-primary: var(--ld-col-neutral-700);\n --ld-loading-col-secondary: var(--ld-col-neutral-400);\n }\n\n /* stylelint-disable-next-line */\n &:host(.ld-loading--paused), /* safari specific hack */\n &.ld-loading--paused {\n --ld-loading-play-state: paused;\n }\n\n display: inline-flex;\n flex-shrink: 0;\n width: var(--ld-loading-size);\n height: var(--ld-loading-size);\n fill: none;\n border-radius: 100%;\n overflow: hidden;\n mask-image: url('data:image/svg+xml;utf8,');\n\n circle {\n transform-origin: center;\n stroke: var(--ld-loading-col-base);\n stroke-width: 40;\n stroke-dashoffset: 330;\n stroke-linecap: round;\n }\n\n g {\n circle {\n stroke-dasharray: 570;\n animation: ld-loading-stretch var(--ld-loading-stretch-dur) ease infinite\n var(--ld-loading-play-state);\n\n &:nth-last-of-type(1) {\n --ld-stroke-dashoffset-from: 420;\n --ld-stroke-dashoffset-to: 540;\n }\n &:nth-last-of-type(2) {\n --ld-stroke-dashoffset-from: 300;\n --ld-stroke-dashoffset-to: 490;\n stroke: var(--ld-loading-col-secondary);\n animation-delay: calc(0.2 * var(--ld-loading-stretch-dur));\n stroke-width: 39;\n }\n &:nth-last-of-type(3) {\n --ld-stroke-dashoffset-from: 330;\n --ld-stroke-dashoffset-to: 450;\n stroke: var(--ld-loading-col-primary);\n animation-delay: calc(0.4 * var(--ld-loading-stretch-dur));\n stroke-width: 39;\n }\n }\n }\n}\n\n@keyframes ld-loading-stretch {\n 0% {\n stroke-dashoffset: var(--ld-stroke-dashoffset-from);\n }\n 50% {\n stroke-dashoffset: var(--ld-stroke-dashoffset-to);\n }\n 100% {\n stroke-dashoffset: var(--ld-stroke-dashoffset-from);\n }\n}\n","import { Component, h, Host, Prop } from '@stencil/core'\nimport { getClassNames } from '../../utils/getClassNames'\n\n/**\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n */\n@Component({\n tag: 'ld-loading',\n styleUrl: 'ld-loading.css',\n shadow: true,\n})\nexport class LdLoading {\n /** Used as svg title element content. */\n @Prop() label? = 'Loading'\n\n /** Uses neutral colors. */\n @Prop() neutral?: boolean\n\n /** Pauses all animations. */\n @Prop() paused?: boolean\n\n render() {\n const cl = getClassNames([\n 'ld-loading',\n this.neutral && 'ld-loading--neutral',\n this.paused && 'ld-loading--paused',\n ])\n\n return (\n \n \n \n )\n }\n}\n"],"mappings":"sFAAA,MAAMA,EAAe,u3E,MCYRC,EAAS,M,oCAEH,U,6CAQjB,MAAAC,GACE,MAAMC,EAAKC,EAAc,CACvB,aACAC,KAAKC,SAAW,sBAChBD,KAAKE,QAAU,uBAGjB,OACEC,EAACC,EAAI,CAACC,MAAOP,GACXK,EAAA,OAAKG,QAAQ,cAAcC,oBAAoB,iBAC7CJ,EAAA,aAAQH,KAAKQ,OACbL,EAAA,UAAQM,GAAG,KAAKC,GAAG,KAAKC,EAAE,OAC1BR,EAAA,SACEA,EAAA,UAAQM,GAAG,KAAKC,GAAG,KAAKC,EAAE,OAC1BR,EAAA,UAAQM,GAAG,KAAKC,GAAG,KAAKC,EAAE,OAC1BR,EAAA,UAAQM,GAAG,KAAKC,GAAG,KAAKC,EAAE,QACxBX,KAAKE,QAGLC,EAAA,oBACES,cAAc,YACdC,cAAc,MACdC,KAAK,SACLC,KAAK,UACLC,GAAG,YACHC,IAAI,OACJC,YAAY,iB"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-48d582a3.entry.js b/1704966176737/dist/build/p-48d582a3.entry.js
deleted file mode 100644
index 73c6d257f3..0000000000
--- a/1704966176737/dist/build/p-48d582a3.entry.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{r as o,h as t,H as e,g as r}from"./p-21a69c18.js";const c='.docs-toc__content:before{background-color:var(--ld-col-neutral-050)}@media (prefers-color-scheme:dark){.docs-toc__content:before{background-color:var(--ld-col-neutral-400)}}.docs-ui-dark .docs-toc__content:before{background-color:var(--ld-col-neutral-400)}.docs-ui-light .docs-toc__content:before{background-color:var(--ld-col-neutral-050)}.docs-toc{--docs-toc-heading-height:2rem}.docs-toc__content{overflow:hidden;padding:var(--ld-sp-8) var(--ld-sp-24) var(--ld-sp-24) 0}.docs-toc__content:before{border-radius:var(--ld-br-full);bottom:1.25rem;content:"";display:block;left:0;position:absolute;top:calc(1.25rem + var(--docs-toc-heading-height));transform:translateY(-.4rem);width:.1875rem}.docs-toc__nav{margin-right:-3rem;max-height:calc(100vh - var(--docs-toc-top) - 4rem);overflow:visible scroll;padding-right:3rem;position:relative}.docs-toc__nav ol{list-style:none;padding-left:var(--ld-sp-24)}.docs-toc__nav li{margin-top:var(--ld-sp-12)}.docs-toc__nav a{font:var(--ld-typo-label-s);-webkit-text-decoration:none;text-decoration:none}.docs-toc__nav a:before{border-radius:var(--ld-br-full);content:"";display:block;height:2.2rem;left:0;position:absolute;transform:translateY(-.4rem);width:.1875rem}.docs-toc__nav a.docs-toc__link--is-active,.docs-toc__nav a.docs-toc__link--is-target{color:var(--ld-thm-secondary)}.docs-toc__nav a.docs-toc__link--is-active:before{background-color:var(--ld-thm-secondary);z-index:1}.docs-toc__nav a[href="#methods"]+ol a{word-break:break-all}[href="#graph"],[href="#graph"]+ol,[href="#overview"],[href="#overview"]+ol,[href="#shadow-parts"],[href="#shadow-parts"]+ol{display:none}.docs-toc__heading{display:block;font:var(--ld-typo-cap-m);font-weight:400;height:var(--docs-toc-heading-height);text-transform:uppercase}';const s=class{constructor(t){o(this,t);this.headings=undefined}createObserver(o){const t={rootMargin:"-60px 0px -70% 0px",threshold:1};const e=t=>this.handleObserver(t,o);return new IntersectionObserver(e,t)}handleObserver(o,t){for(let e=o.length;e--;){const r=o[e];const{target:c,isIntersecting:s,intersectionRatio:a}=r;if(s&&a>=1){const o=c.getAttribute("id");this.updateLinks(o,t);return}}}updateLinks(o,t){if(["overview","shadow-parts","graph"].includes(o)||!t.find((t=>t.href.split("#")[1]===o))){return}const e=document.getElementById(o);if(e&&e.tagName==="H1"){t.map((o=>{o.classList.remove("docs-toc__link--is-active")}));t[0].classList.add("docs-toc__link--is-active");return}t.map((t=>{const e=t.getAttribute("href");t.classList.remove("docs-toc__link--is-active");if(e===`#${o}`){t.classList.add("docs-toc__link--is-active")}}))}handleClick(o){var t;if(o.target.tagName!=="A")return;o.preventDefault();(t=this.el.querySelector(".docs-toc__link--is-active"))===null||t===void 0?void 0:t.classList.remove("docs-toc__link--is-active");o.target.classList.add("docs-toc__link--is-active");const e=o.target.getAttribute("href").replace("#","");const r=this.headings.find((o=>o.getAttribute("id")===e));r.setAttribute("tabindex","-1");r.focus();window.scroll({top:r.offsetTop-80})}componentDidLoad(){setTimeout((()=>{this.headings=Array.from(document.querySelectorAll("#main > h1, #main > h2, #main > h3"));const o=Array.from(this.el.querySelectorAll("a"));const t=this.createObserver(o);this.headings.map((o=>t.observe(o)))}))}render(){return t(e,{class:"docs-toc"},t("aside",{class:"docs-toc__content"},t("h2",{class:"docs-toc__heading","aria-label":"Content"},"Content"),t("slot",null)))}get el(){return r(this)}};s.style=c;export{s as docs_toc};
-//# sourceMappingURL=p-48d582a3.entry.js.map
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-48d582a3.entry.js.map b/1704966176737/dist/build/p-48d582a3.entry.js.map
deleted file mode 100644
index e34e08f6bd..0000000000
--- a/1704966176737/dist/build/p-48d582a3.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["docsTocCss","DocsToc","createObserver","links","options","rootMargin","threshold","callback","entries","this","handleObserver","IntersectionObserver","i","length","entry","target","isIntersecting","intersectionRatio","visibleId","getAttribute","updateLinks","includes","find","link","href","split","heading","document","getElementById","tagName","map","classList","remove","add","handleClick","ev","preventDefault","_a","el","querySelector","id","replace","headings","setAttribute","focus","window","scroll","top","offsetTop","componentDidLoad","setTimeout","Array","from","querySelectorAll","observer","observe","render","h","Host","class"],"sources":["../src/docs/components/docs-toc/docs-toc.css?tag=docs-toc","../src/docs/components/docs-toc/docs-toc.tsx"],"sourcesContent":["@define-mixin docs-toc-ui-light {\n .docs-toc__content::before {\n background-color: var(--ld-col-neutral-050);\n }\n}\n@define-mixin docs-toc-ui-dark {\n .docs-toc__content::before {\n background-color: var(--ld-col-neutral-400);\n }\n}\n\n@mixin docs-toc-ui-light;\n\n@media (prefers-color-scheme: dark) {\n @mixin docs-toc-ui-dark;\n}\n.docs-ui-dark {\n @mixin docs-toc-ui-dark;\n}\n.docs-ui-light {\n @mixin docs-toc-ui-light;\n}\n\n.docs-toc {\n --docs-toc-heading-height: 2rem;\n}\n\n.docs-toc__content {\n overflow: hidden;\n padding: var(--ld-sp-8) var(--ld-sp-24) var(--ld-sp-24) 0;\n\n &::before {\n content: '';\n position: absolute;\n left: 0;\n top: calc(1.25rem + var(--docs-toc-heading-height));\n bottom: 1.25rem;\n width: 0.1875rem;\n display: block;\n transform: translateY(-0.4rem);\n border-radius: var(--ld-br-full);\n }\n}\n\n.docs-toc__nav {\n max-height: calc(100vh - var(--docs-toc-top) - 4rem);\n overflow: visible scroll;\n position: relative;\n padding-right: 3rem;\n margin-right: -3rem;\n\n ol {\n list-style: none;\n padding-left: var(--ld-sp-24);\n }\n\n li {\n margin-top: var(--ld-sp-12);\n }\n\n a {\n font: var(--ld-typo-label-s);\n text-decoration: none;\n\n &::before {\n content: '';\n position: absolute;\n left: 0;\n height: 2.2rem;\n width: 0.1875rem;\n display: block;\n transform: translateY(-0.4rem);\n border-radius: var(--ld-br-full);\n }\n\n &.docs-toc__link--is-active,\n &.docs-toc__link--is-target {\n color: var(--ld-thm-secondary);\n }\n\n &.docs-toc__link--is-active {\n &::before {\n background-color: var(--ld-thm-secondary);\n z-index: 1;\n }\n }\n\n &[href='#methods'] + ol a {\n word-break: break-all;\n }\n }\n}\n\n[href='#overview'],\n[href='#graph'],\n[href='#shadow-parts'] {\n display: none;\n\n & + ol {\n display: none;\n }\n}\n\n.docs-toc__heading {\n display: block;\n font: var(--ld-typo-cap-m);\n font-weight: 400;\n height: var(--docs-toc-heading-height);\n text-transform: uppercase;\n}\n","import { Component, h, Host, Element, Listen, State } from '@stencil/core'\n\n/** @internal **/\n@Component({\n tag: 'docs-toc',\n styleUrl: 'docs-toc.css',\n shadow: false,\n})\nexport class DocsToc {\n @Element() el: HTMLElement\n @State() headings: HTMLElement[]\n\n private createObserver(links) {\n const options = {\n rootMargin: '-60px 0px -70% 0px',\n threshold: 1,\n }\n const callback = (entries) => this.handleObserver(entries, links)\n return new IntersectionObserver(callback, options)\n }\n\n private handleObserver(entries, links) {\n for (let i = entries.length; i--; ) {\n const entry = entries[i]\n const { target, isIntersecting, intersectionRatio } = entry\n if (isIntersecting && intersectionRatio >= 1) {\n const visibleId = target.getAttribute('id')\n this.updateLinks(visibleId, links)\n return\n }\n }\n }\n\n private updateLinks(visibleId, links) {\n if (\n ['overview', 'shadow-parts', 'graph'].includes(visibleId) ||\n !links.find((link) => link.href.split('#')[1] === visibleId)\n ) {\n return\n }\n\n const heading = document.getElementById(visibleId)\n if (heading && (heading as HTMLElement).tagName === 'H1') {\n links.map((link) => {\n link.classList.remove('docs-toc__link--is-active')\n })\n links[0].classList.add('docs-toc__link--is-active')\n return\n }\n\n links.map((link) => {\n const href = link.getAttribute('href')\n link.classList.remove('docs-toc__link--is-active')\n if (href === `#${visibleId}`) {\n link.classList.add('docs-toc__link--is-active')\n }\n })\n }\n\n @Listen('click', { capture: true })\n handleClick(ev) {\n if ((ev.target as HTMLElement).tagName !== 'A') return\n\n ev.preventDefault()\n this.el\n .querySelector('.docs-toc__link--is-active')\n ?.classList.remove('docs-toc__link--is-active')\n ev.target.classList.add('docs-toc__link--is-active')\n const id = ev.target.getAttribute('href').replace('#', '')\n const heading = this.headings.find(\n (heading) => heading.getAttribute('id') === id\n )\n heading.setAttribute('tabindex', '-1')\n heading.focus()\n\n window.scroll({\n top: heading.offsetTop - 80,\n })\n }\n\n componentDidLoad() {\n // Generating a list of heading links\n setTimeout(() => {\n this.headings = Array.from(\n document.querySelectorAll('#main > h1, #main > h2, #main > h3')\n )\n\n // Adding an Intersection Observer\n const links = Array.from(this.el.querySelectorAll('a'))\n const observer = this.createObserver(links)\n this.headings.map((heading) => observer.observe(heading))\n })\n }\n\n render() {\n return (\n \n \n \n )\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAa,kuD,MCQNC,EAAO,M,iDAIV,cAAAC,CAAeC,GACrB,MAAMC,EAAU,CACdC,WAAY,qBACZC,UAAW,GAEb,MAAMC,EAAYC,GAAYC,KAAKC,eAAeF,EAASL,GAC3D,OAAO,IAAIQ,qBAAqBJ,EAAUH,E,CAGpC,cAAAM,CAAeF,EAASL,GAC9B,IAAK,IAAIS,EAAIJ,EAAQK,OAAQD,KAAO,CAClC,MAAME,EAAQN,EAAQI,GACtB,MAAMG,OAAEA,EAAMC,eAAEA,EAAcC,kBAAEA,GAAsBH,EACtD,GAAIE,GAAkBC,GAAqB,EAAG,CAC5C,MAAMC,EAAYH,EAAOI,aAAa,MACtCV,KAAKW,YAAYF,EAAWf,GAC5B,M,GAKE,WAAAiB,CAAYF,EAAWf,GAC7B,GACE,CAAC,WAAY,eAAgB,SAASkB,SAASH,KAC9Cf,EAAMmB,MAAMC,GAASA,EAAKC,KAAKC,MAAM,KAAK,KAAOP,IAClD,CACA,M,CAGF,MAAMQ,EAAUC,SAASC,eAAeV,GACxC,GAAIQ,GAAYA,EAAwBG,UAAY,KAAM,CACxD1B,EAAM2B,KAAKP,IACTA,EAAKQ,UAAUC,OAAO,4BAA4B,IAEpD7B,EAAM,GAAG4B,UAAUE,IAAI,6BACvB,M,CAGF9B,EAAM2B,KAAKP,IACT,MAAMC,EAAOD,EAAKJ,aAAa,QAC/BI,EAAKQ,UAAUC,OAAO,6BACtB,GAAIR,IAAS,IAAIN,IAAa,CAC5BK,EAAKQ,UAAUE,IAAI,4B,KAMzB,WAAAC,CAAYC,G,MACV,GAAKA,EAAGpB,OAAuBc,UAAY,IAAK,OAEhDM,EAAGC,kBACHC,EAAA5B,KAAK6B,GACFC,cAAc,iCAA6B,MAAAF,SAAA,SAAAA,EAC1CN,UAAUC,OAAO,6BACrBG,EAAGpB,OAAOgB,UAAUE,IAAI,6BACxB,MAAMO,EAAKL,EAAGpB,OAAOI,aAAa,QAAQsB,QAAQ,IAAK,IACvD,MAAMf,EAAUjB,KAAKiC,SAASpB,MAC3BI,GAAYA,EAAQP,aAAa,QAAUqB,IAE9Cd,EAAQiB,aAAa,WAAY,MACjCjB,EAAQkB,QAERC,OAAOC,OAAO,CACZC,IAAKrB,EAAQsB,UAAY,I,CAI7B,gBAAAC,GAEEC,YAAW,KACTzC,KAAKiC,SAAWS,MAAMC,KACpBzB,SAAS0B,iBAAiB,uCAI5B,MAAMlD,EAAQgD,MAAMC,KAAK3C,KAAK6B,GAAGe,iBAAiB,MAClD,MAAMC,EAAW7C,KAAKP,eAAeC,GACrCM,KAAKiC,SAASZ,KAAKJ,GAAY4B,EAASC,QAAQ7B,IAAS,G,CAI7D,MAAA8B,GACE,OACEC,EAACC,EAAI,CAACC,MAAM,YACVF,EAAA,SAAOE,MAAM,qBACXF,EAAA,MAAIE,MAAM,oBAAmB,aAAY,WAAS,WAGlDF,EAAA,c"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-49b9f144.js.map b/1704966176737/dist/build/p-49b9f144.js.map
deleted file mode 100644
index 40dbb42554..0000000000
--- a/1704966176737/dist/build/p-49b9f144.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["NavEventType","SearchEventType","EventBus","constructor","description","this","eventTarget","document","appendChild","createComment","on","type","listener","addEventListener","once","off","removeEventListener","emit","detail","dispatchEvent","CustomEvent","eventBus"],"sources":["../src/docs/utils/eventTypes.ts","../src/docs/utils/eventBus.ts"],"sourcesContent":["/* eslint-disable @stencil/ban-exported-const-enums */\nexport enum NavEventType {\n open = 'NAV_OPEN',\n close = 'NAV_CLOSE',\n}\n\nexport enum SearchEventType {\n open = 'SEARCH_OPEN',\n close = 'SEARCH_CLOSE',\n}\n","class EventBus {\n private eventTarget: EventTarget\n constructor(description = '') {\n this.eventTarget = document.appendChild(document.createComment(description))\n }\n on(type: string, listener: (event: CustomEvent) => void) {\n this.eventTarget.addEventListener(type, listener)\n }\n once(type: string, listener: (event: CustomEvent) => void) {\n this.eventTarget.addEventListener(type, listener, { once: true })\n }\n off(type: string, listener: (event: CustomEvent) => void) {\n this.eventTarget.removeEventListener(type, listener)\n }\n emit(type: string, detail?: DetailType) {\n return this.eventTarget.dispatchEvent(new CustomEvent(type, { detail }))\n }\n}\n\nconst eventBus = new EventBus('event bus')\n\nexport default eventBus\n"],"mappings":"IACYA,GAAZ,SAAYA,GACVA,EAAA,mBACAA,EAAA,oBACD,EAHD,CAAYA,MAAY,K,IAKZC,GAAZ,SAAYA,GACVA,EAAA,sBACAA,EAAA,uBACD,EAHD,CAAYA,MAAe,KCN3B,MAAMC,EAEJ,WAAAC,CAAYC,EAAc,IACxBC,KAAKC,YAAcC,SAASC,YAAYD,SAASE,cAAcL,G,CAEjE,EAAAM,CAAGC,EAAcC,GACfP,KAAKC,YAAYO,iBAAiBF,EAAMC,E,CAE1C,IAAAE,CAAKH,EAAcC,GACjBP,KAAKC,YAAYO,iBAAiBF,EAAMC,EAAU,CAAEE,KAAM,M,CAE5D,GAAAC,CAAIJ,EAAcC,GAChBP,KAAKC,YAAYU,oBAAoBL,EAAMC,E,CAE7C,IAAAK,CAAKN,EAAcO,GACjB,OAAOb,KAAKC,YAAYa,cAAc,IAAIC,YAAYT,EAAM,CAAEO,W,QAI5DG,EAAW,IAAInB,EAAiB,oB"}
\ No newline at end of file
diff --git a/1704966176737/dist/build/p-4a9a72a7.entry.js.map b/1704966176737/dist/build/p-4a9a72a7.entry.js.map
deleted file mode 100644
index 53113a7eb9..0000000000
--- a/1704966176737/dist/build/p-4a9a72a7.entry.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["ldInputCss","LdInput","this","isInputTypeFile","input","type","handleChange","ev","el","dispatchEvent","InputEvent","ldchange","emit","value","handleInput","ldinput","handleClick","target","composedPath","disabled","isAriaDisabled","ariaDisabled","preventDefault","closest","shadowRoot","activeElement","focus","MouseEvent","bubbles","handleKeyDown","outerForm","formToSubmit","form","_a","document","querySelector","includes","key","multiline","requestSubmit","focusInner","undefined","updateHiddenInput","hiddenInput","name","createHiddenInput","dirname","dirName","remove","setAttribute","getAttribute","removeAttribute","clonedInput","cloneNode","style","display","replaceWith","createElement","appendChild","updateIconAndButtonSize","querySelectorAll","forEach","button","size","classList","add","icon","componentWillLoad","Object","defineProperty","get","files","attributesObserver","cloneAttributes","call","autocomplete","registerAutofocus","autofocus","disconnectedCallback","disconnect","render","cl","getClassNames","tone","invalid","resize","_c","clonedAttributes","clonedAttributesWithoutType","__rest","h","Host","class","onClick","assign","readonly","onChange","onInput","part","ref","tabIndex","ldTabindex","placeholder","onKeyDown","_b"],"sources":["../src/liquid/components/ld-input/ld-input.css?tag=ld-input&encapsulation=shadow","../src/liquid/components/ld-input/ld-input.tsx"],"sourcesContent":[":host > input [type='file'] {\n pointer-events: none; /* important for Safari */\n}\n\n:host,\n.ld-input {\n --ld-input-padding-x-sm: 0.5rem;\n --ld-input-padding-x-md: 0.625rem;\n --ld-input-padding-x-lg: 0.875rem;\n --ld-input-padding-top-sm: 0.25rem;\n --ld-input-padding-top-md: 0.625rem;\n --ld-input-padding-top-lg: 0.625rem;\n --ld-input-padding-bottom-sm: 0.25rem;\n --ld-input-padding-bottom-md: 0.6875rem;\n --ld-input-padding-bottom-lg: 0.6875rem;\n --ld-input-min-height-sm: 2rem;\n --ld-input-min-height-md: 2.5rem;\n --ld-input-min-height-lg: 3.125rem;\n --ld-input-max-height-sm: 2rem;\n --ld-input-max-height-md: 2.5rem;\n --ld-input-max-height-lg: 3.125rem;\n --ld-input-time-min-width-sm: 5.125rem;\n --ld-input-time-min-width-md: 6.25rem;\n --ld-input-time-min-width-lg: 7.5rem;\n\n /* colors */\n --ld-input-bg-col-disabled: var(--ld-col-neutral-010);\n --ld-input-bg-col-invalid-focus: var(--ld-col-wht);\n --ld-input-bg-col-invalid: var(--ld-thm-error-disabled);\n --ld-input-bg-col: var(--ld-col-wht);\n --ld-input-border-col-disabled: var(--ld-col-neutral-100);\n --ld-input-border-col-hover: var(--ld-col-neutral-300);\n --ld-input-border-col: var(--ld-col-neutral-100);\n --ld-input-icon-col-focus: var(--ld-thm-primary-focus);\n --ld-input-icon-col-invalid-focus: var(--ld-thm-error-focus);\n --ld-input-icon-col: var(--ld-thm-primary);\n --ld-input-placeholder-opacity: 0.6;\n --ld-input-text-col-disabled: var(--ld-col-neutral-300);\n --ld-input-text-col-invalid-focus: var(--ld-col-neutral-900);\n --ld-input-text-col-invalid: var(--ld-thm-error);\n --ld-input-text-col: var(--ld-col-neutral-900);\n\n /* mode colors */\n --ld-input-dark-bg-col-focus: var(--ld-col-wht);\n --ld-input-dark-bg-col: var(--ld-col-neutral-010);\n\n cursor: text;\n position: relative;\n display: inline-flex;\n align-items: center;\n background-color: var(--ld-input-bg-col);\n color: var(--ld-input-text-col);\n max-width: 100%;\n border-radius: var(--ld-br-m);\n line-height: 1;\n min-height: var(--ld-input-min-height-md);\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n border-radius: var(--ld-br-m);\n display: block;\n pointer-events: none;\n box-shadow: inset 0 0 0 var(--ld-sp-2) var(--ld-input-border-col);\n }\n\n :where(input) {\n margin: 0; /* margin reset for Safari */\n }\n\n ::slotted(*),\n > :where(:not(input, textarea)) {\n user-select: none;\n }\n\n ::slotted(:not(ld-button, .ld-button)[slot='start']),\n > :where(\n :not(input, textarea, ld-button, .ld-button, [slot='end']):first-child\n ) {\n margin-left: var(--ld-input-padding-x-md);\n }\n\n ::slotted(:not(ld-button, .ld-button)[slot='end']),\n > :where(\n :not(input, textarea, ld-button, .ld-button, [slot='start']):last-child\n ) {\n margin-right: var(--ld-input-padding-x-md);\n }\n\n > input {\n color: var(--ld-input-text-col);\n align-self: stretch;\n max-height: var(--ld-input-max-height-md);\n -webkit-text-fill-color: var(--ld-input-text-col);\n\n &[type='file'] {\n opacity: 0;\n\n &::-webkit-file-upload-button {\n display: none;\n }\n }\n\n &[type='number'] {\n appearance: textfield;\n\n &::-webkit-inner-spin-button,\n &::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n }\n\n &[type='search'] {\n &::-webkit-search-decoration,\n &::-webkit-search-cancel-button,\n &::-webkit-search-results-button,\n &::-webkit-search-results-decoration {\n -webkit-appearance: none;\n }\n }\n\n &::-webkit-calendar-picker-indicator {\n cursor: pointer;\n background: var(--ld-input-icon-col);\n mask-repeat: no-repeat;\n mask-position: center;\n outline: none;\n\n &:focus:focus-visible {\n background: var(--ld-input-icon-col-focus);\n }\n }\n /* custom icon calendar-picker */\n &[type='datetime-local']::-webkit-calendar-picker-indicator,\n &[type='date']::-webkit-calendar-picker-indicator {\n mask-image: url('data:image/svg+xml;utf8,');\n transform: translateY(4%);\n }\n /* custom icon calendar-picker */\n &[type='time'] {\n min-width: var(--ld-input-time-min-width-md);\n\n &::-webkit-calendar-picker-indicator {\n mask-image: url('data:image/svg+xml;utf8,');\n }\n }\n }\n\n > input,\n > textarea {\n padding: var(--ld-input-padding-top-md) var(--ld-input-padding-x-md)\n var(--ld-input-padding-bottom-md);\n font: var(--ld-typo-body-m);\n line-height: 1;\n background-color: rgba(255, 255, 255, 0);\n width: 100%;\n border: 0;\n border-radius: var(--ld-br-m);\n outline: none;\n appearance: none;\n box-sizing: border-box;\n\n &::placeholder {\n opacity: var(--ld-input-placeholder-opacity);\n }\n }\n\n > textarea {\n height: 100%;\n max-height: inherit;\n min-height: inherit;\n flex-grow: 1;\n }\n\n ::slotted(ld-button),\n ::slotted(.ld-button),\n > ld-button,\n > .ld-button {\n --ld-button-ghost-bg-color-active: transparent;\n --ld-button-ghost-bg-color-focus: transparent;\n --ld-button-ghost-bg-color-hover: transparent;\n flex-shrink: 0;\n z-index: 0;\n }\n\n ::slotted(ld-button[slot='start']),\n ::slotted(.ld-button[slot='start']),\n > ld-button:where(:not([slot='end'])):first-child,\n > .ld-button:where(:not([slot='end'])):first-child {\n --ld-button-border-top-right-radius: 0;\n --ld-button-border-bottom-right-radius: 0;\n }\n\n ::slotted(ld-button[slot='end']),\n ::slotted(.ld-button[slot='end']),\n > ld-button:where(:not([slot='start'])):last-child,\n > .ld-button:where(:not([slot='start'])):last-child {\n --ld-button-border-top-left-radius: 0;\n --ld-button-border-bottom-left-radius: 0;\n }\n\n ::slotted(ld-button[mode='ghost']:where([slot='start'])),\n ::slotted(.ld-button.ld-button--ghost:where([slot='start'])),\n > ld-button[mode='ghost']:where(:not([slot='end'])):first-child,\n > .ld-button.ld-button--ghost:where(:not([slot='end'])):first-child {\n margin-right: calc(-1 * var(--ld-input-padding-x-md));\n }\n\n ::slotted(ld-button[mode='ghost']:where([slot='end'])),\n ::slotted(.ld-button.ld-button--ghost:where([slot='end'])),\n > ld-button[mode='ghost']:where(:not([slot='start'])):last-child,\n > .ld-button.ld-button--ghost:where(:not([slot='start'])):last-child {\n margin-left: calc(-1 * var(--ld-input-padding-x-md));\n }\n\n ::slotted(ld-icon),\n ::slotted(.ld-icon),\n > ld-icon,\n > .ld-icon {\n color: var(--ld-input-icon-col);\n cursor: text;\n display: inline-flex;\n }\n}\n\n:host(.ld-input--resize-both),\n.ld-input--resize-both {\n > textarea {\n resize: both; /* stylelint-disable-line plugin/no-unsupported-browser-features */\n }\n}\n:host(.ld-input--resize-horizontal),\n.ld-input--resize-horizontal {\n > textarea {\n resize: horizontal; /* stylelint-disable-line plugin/no-unsupported-browser-features */\n }\n}\n:host(.ld-input--resize-vertical),\n.ld-input--resize-vertical {\n > textarea {\n resize: vertical; /* stylelint-disable-line plugin/no-unsupported-browser-features */\n }\n}\n:host(.ld-input--resize-none),\n.ld-input--resize-none {\n > textarea {\n resize: none; /* stylelint-disable-line plugin/no-unsupported-browser-features */\n }\n}\n\n:host(.ld-input--sm),\n.ld-input--sm {\n min-height: var(--ld-input-min-height-sm);\n\n ::slotted(:not(ld-button, .ld-button)[slot='start']),\n > :where(\n :not(input, textarea, ld-button, .ld-button, [slot='end']):first-child\n ) {\n margin-left: var(--ld-input-padding-x-sm);\n }\n\n ::slotted(:not(ld-button, .ld-button)[slot='end']),\n > :where(\n :not(input, textarea, ld-button, .ld-button, [slot='start']):last-child\n ) {\n margin-right: var(--ld-input-padding-x-sm);\n }\n\n > input {\n max-height: var(--ld-input-max-height-sm);\n\n &[type='datetime-local']::-webkit-calendar-picker-indicator,\n &[type='date']::-webkit-calendar-picker-indicator {\n mask-size: 65%;\n }\n &[type='time'] {\n min-width: var(--ld-input-time-min-width-sm);\n\n &::-webkit-calendar-picker-indicator {\n mask-size: 85%;\n }\n }\n }\n\n > input,\n > textarea {\n padding: var(--ld-input-padding-top-sm) var(--ld-input-padding-x-sm)\n var(--ld-input-padding-bottom-sm);\n font: var(--ld-typo-body-s);\n }\n\n ::slotted(ld-button[mode='ghost']:where([slot='start'])),\n ::slotted(.ld-button.ld-button--ghost:where([slot='start'])),\n > ld-button[mode='ghost']:where(:not([slot='end'])):first-child,\n > .ld-button.ld-button--ghost:where(:not([slot='end'])):first-child {\n margin-right: calc(-1 * var(--ld-input-padding-x-sm));\n }\n\n ::slotted(ld-button[mode='ghost']:where([slot='end'])),\n ::slotted(.ld-button.ld-button--ghost:where([slot='end'])),\n > ld-button[mode='ghost']:where(:not([slot='start'])):last-child,\n > .ld-button.ld-button--ghost:where(:not([slot='start'])):last-child {\n margin-left: calc(-1 * var(--ld-input-padding-x-sm));\n }\n}\n\n:host(.ld-input--lg),\n.ld-input--lg {\n min-height: var(--ld-input-min-height-lg);\n\n ::slotted(:not(ld-button, .ld-button)[slot='start']),\n > :where(\n :not(input, textarea, ld-button, .ld-button, [slot='end']):first-child\n ) {\n margin-left: var(--ld-input-padding-x-lg);\n }\n\n ::slotted(:not(ld-button, .ld-button)[slot='end']),\n > :where(\n :not(input, textarea, ld-button, .ld-button, [slot='start']):last-child\n ) {\n margin-right: var(--ld-input-padding-x-lg);\n }\n\n > input {\n max-height: var(--ld-input-max-height-lg);\n\n &[type='date']::-webkit-calendar-picker-indicator {\n mask-size: 90%;\n }\n &[type='time'] {\n min-width: var(--ld-input-time-min-width-lg);\n\n &::-webkit-calendar-picker-indicator {\n mask-size: 114%;\n }\n }\n }\n\n > input,\n > textarea {\n padding: var(--ld-input-padding-top-lg) var(--ld-input-padding-x-lg)\n var(--ld-input-padding-bottom-lg) var(--ld-input-padding-x-lg);\n font: var(--ld-typo-body-l);\n }\n\n ::slotted(ld-button[mode='ghost']:where([slot='start'])),\n ::slotted(.ld-button.ld-button--ghost:where([slot='start'])),\n > ld-button[mode='ghost']:where(:not([slot='end'])):first-child,\n > .ld-button.ld-button--ghost:where(:not([slot='end'])):first-child {\n margin-right: calc(-1 * var(--ld-input-padding-x-lg));\n }\n\n ::slotted(ld-button[mode='ghost']:where([slot='end'])),\n ::slotted(.ld-button.ld-button--ghost:where([slot='end'])),\n > ld-button[mode='ghost']:where(:not([slot='start'])):last-child,\n > .ld-button.ld-button--ghost:where(:not([slot='start'])):last-child {\n margin-left: calc(-1 * var(--ld-input-padding-x-lg));\n }\n}\n\n:host(.ld-input--dark),\n.ld-input--dark {\n background-color: var(--ld-input-dark-bg-col);\n}\n\n@media (hover: hover) {\n :host(\n :not(\n .ld-input--invalid,\n [aria-disabled]:where(\n :not([aria-disabled=''], [aria-disabled='false'])\n ),\n .ld-input--disabled\n ):hover:not(:focus-within)\n ),\n .ld-input:not(\n .ld-input--invalid,\n [aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false'])),\n .ld-input--disabled\n ):hover:not(:focus-within) {\n &::before {\n box-shadow: inset 0 0 0 var(--ld-sp-2) var(--ld-input-border-col-hover);\n }\n }\n}\n\n:host(:not(.ld-input--invalid):focus-within),\n.ld-input:not(.ld-input--invalid):focus-within {\n &::before {\n box-shadow: inset 0 0 0 var(--ld-sp-2) var(--ld-thm-primary);\n }\n}\n\n:host(.ld-input--dark:not(.ld-input--invalid):focus-within),\n.ld-input--dark:not(.ld-input--invalid):focus-within {\n background-color: var(--ld-input-dark-bg-col-focus);\n}\n\n:host(.ld-input--invalid:focus-within),\n.ld-input--invalid:focus-within {\n background-color: var(--ld-input-bg-col-invalid-focus);\n}\n\n:host(\n .ld-input--invalid:not(\n .ld-input--disabled,\n [aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false']))\n ):where(:not(:focus))\n ),\n.ld-input--invalid:not(\n .ld-input--disabled,\n [aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false']))\n ):where(:not(:focus)) {\n background-color: var(--ld-input-bg-col-invalid);\n color: var(--ld-input-text-col-invalid);\n -webkit-text-fill-color: var(--ld-input-text-col-invalid);\n}\n\n:host(\n .ld-input--invalid:not(\n .ld-input--disabled,\n [aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false']))\n )\n ),\n.ld-input--invalid:not(\n .ld-input--disabled,\n [aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false']))\n ) {\n &::before {\n box-shadow: inset 0 0 0 var(--ld-sp-2) var(--ld-input-text-col-invalid);\n }\n\n > input,\n > textarea {\n color: var(--ld-input-text-col-invalid);\n -webkit-text-fill-color: var(--ld-input-text-col-invalid);\n }\n\n > input::-webkit-calendar-picker-indicator {\n background: var(--ld-input-text-col-invalid);\n\n &:focus:focus-visible {\n background: var(--ld-input-icon-col-invalid-focus);\n }\n }\n}\n\n:host(\n .ld-input--invalid:not(\n .ld-input--disabled,\n [aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false']))\n ):focus-within\n ),\n.ld-input--invalid:not(\n .ld-input--disabled,\n [aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false']))\n ):focus-within {\n background-color: var(--ld-input-bg-col-invalid-focus);\n\n > input,\n > textarea {\n color: var(--ld-input-text-col-invalid-focus);\n -webkit-text-fill-color: var(--ld-input-text-col-invalid-focus);\n }\n}\n\n:host(.ld-input--disabled),\n:host([aria-disabled]:where(:not([aria-disabled=''], [aria-disabled='false']))),\n.ld-input.ld-input--disabled,\n.ld-input[aria-disabled]:where(\n :not([aria-disabled=''], [aria-disabled='false'])\n ) {\n color: var(--ld-input-text-col-disabled);\n background-color: var(--ld-input-bg-col-disabled);\n\n &::before {\n box-shadow: inset 0 0 0 var(--ld-sp-2) var(--ld-input-border-col-disabled);\n }\n\n input,\n textarea {\n color: var(--ld-input-text-col-disabled);\n caret-color: transparent;\n -webkit-text-fill-color: var(--ld-input-text-col-disabled);\n }\n\n input::-webkit-calendar-picker-indicator {\n background: var(--ld-input-text-col-disabled);\n pointer-events: none;\n }\n\n ::slotted(ld-icon),\n ::slotted(.ld-icon),\n ld-icon,\n .ld-icon {\n color: currentColor;\n }\n}\n\n.ld-input__placeholder {\n position: absolute;\n display: flex;\n height: 100%;\n align-items: center;\n pointer-events: none;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n right: var(--ld-input-padding-x-md);\n left: var(--ld-input-padding-x-md);\n margin-right: 0;\n opacity: var(--ld-input-placeholder-opacity);\n}\n\n.ld-select__slot-container {\n display: none;\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n State,\n Watch,\n} from '@stencil/core'\nimport { cloneAttributes } from '../../utils/cloneAttributes'\nimport { getClassNames } from '../../utils/getClassNames'\nimport { registerAutofocus } from '../../utils/focus'\nimport { isAriaDisabled } from '../../utils/ariaDisabled'\n\n/**\n * The `ld-input` component. You can use it in conjunction with the `ld-label`\n * and the `ld-input-message` component. See examples in the docs for a better\n * understanding on how they can be used together.\n *\n * @slot start - The purpose of this slot is to add icons or buttons\n * to the input, __justifying the item to the end of the component__.\n * Styling for `ld-icon` and `ld-button` is provided within the `ld-input` component.\n * If you choose to place something different into the slot, you will probably\n * need to adjust some styles on the slotted item in order to make it fit right.\n * @slot end - The purpose of this slot is to add icons or buttons\n * to the input, __justifying the item to the start of the component__.\n * Styling for `ld-icon` and `ld-button` is provided within the `ld-input` component.\n * If you choose to place something different into the slot, you will probably\n * need to adjust some styles on the slotted item in order to make it fit right.\n * @virtualProp { FileList | undefined } files - Selected files for ld-input with type file (readonly).\n * @virtualProp ref - reference to component\n * @virtualProp {string | number} key - for tracking the node's identity when working with lists\n * @part input - Actual input/textarea element\n * @part placeholder - Placeholder rendered for input type \"file\"\n */\n@Component({\n tag: 'ld-input',\n styleUrl: 'ld-input.css',\n shadow: true,\n})\nexport class LdInput implements InnerFocusable, ClonesAttributes {\n @Element() el: HTMLInputElement | HTMLTextAreaElement\n\n private attributesObserver: MutationObserver\n\n private hiddenInput?: HTMLInputElement\n private input: HTMLInputElement | HTMLTextAreaElement\n\n /** Hint for expected file type in file upload controls. */\n @Prop() accept?: string\n\n /** Alternative disabled state that keeps element focusable */\n @Prop() ariaDisabled: string\n\n /** Hint for form autofill feature. */\n @Prop({ mutable: true, reflect: true }) autocomplete?: string\n\n /** Automatically focus the form control when the page is loaded. */\n @Prop({ reflect: true }) autofocus: boolean\n\n /** Media capture input method in file upload controls. */\n @Prop() capture?: string\n\n /** The number of columns. */\n @Prop() cols?: number\n\n /** Name of form field to use for sending the element's directionality in form submission. */\n @Prop() dirname?: string\n\n /** Whether the form control is disabled. */\n @Prop() disabled?: boolean\n\n /** Associates the control with a form element. */\n @Prop() form?: string\n\n /** Set this property to `true` in order to mark the field visually as invalid. */\n @Prop() invalid?: boolean\n\n /** Tab index of the input. */\n @Prop() ldTabindex?: number\n\n /** Value of the id attribute of the `