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EAAGR,WAAW,IAAAO,GAAW,QAAS,CAAC,OAAQP,IAoC7DS,EAAuB,CALAZ,EAAWV,QAAQ,CAC9CC,SAAU,cACVC,SAhCyB,IAAM,EAAAqB,CAAI;;WAE1BJ;YACEK,IAAOA,EAAEX;eACNW,GAAMA,EAAEb,UAAY,sBAAwB;cAC9C,CAACa,EAAGJ,IAiBI,EAACI,GAAK7I,UAC1B,GAAY,WAARA,EAGF,OAAO,EAFP6I,EAAEX,MAAO,CAGX,EAtBsBY,CAAcD,EAAGJ,EAAElH;;;;;gDAKMsH,GAAMA,EAAEX,MAAQW,EAAEZ;;;;IAIhE,IAAAc,IACAF,GAAMA,EAAEZ,OACT,EAAAW,CAAI;YACMF;aACEG,GAAMA,EAAEX,MAAO;;EAe3BT,OA1Ca,0/BA4CeuB,IACxBC,GAAqB,IAAAnB,GAAgBa,E","sources":["webpack://frontend/./node_modules/@vonage/vivid/shared/definition46.js","webpack://frontend/./node_modules/@vonage/vivid/shared/definition45.js"],"sourcesContent":["import { F as FoundationElement, _ as __decorate, a as attr, o as observable, n as nullableNumberConverter, r as registerFactory } from './index.js';\nimport './affix.js';\nimport './index2.js';\nimport { L as Localized } from './localized.js';\nimport { D as Direction, g as getDirection } from './direction.js';\nimport { l as limit } from './numbers.js';\nimport { F as FormAssociated } from './form-associated.js';\nimport { O as Orientation } from './aria2.js';\nimport { g as keyHome, d as keyEnd, f as keyArrowDown, i as keyArrowLeft, e as keyArrowUp, h as keyArrowRight } from './key-codes.js';\nimport { l as limit$1, S as SliderTemplate } from './slider.template.js';\nimport { a as applyMixins } from './apply-mixins.js';\n\n/**\n * Converts a pixel coordinate on the track to a percent of the track's range\n */\nfunction convertPixelToPercent(pixelPos, minPosition, maxPosition, direction) {\n let pct = limit(0, 1, (pixelPos - minPosition) / (maxPosition - minPosition));\n if (direction === Direction.rtl) {\n pct = 1 - pct;\n }\n return pct;\n}\n\nclass _Slider extends FoundationElement {\n}\n/**\n * A form-associated base class for the {@link @microsoft/fast-foundation#(Slider:class)} component.\n *\n * @internal\n */\nclass FormAssociatedSlider extends FormAssociated(_Slider) {\n constructor() {\n super(...arguments);\n this.proxy = document.createElement(\"input\");\n }\n}\n\n/**\n * The selection modes of a {@link @microsoft/fast-foundation#(Slider:class)}.\n * @public\n */\nconst SliderMode = {\n singleValue: \"single-value\",\n};\n/**\n * A Slider Custom HTML Element.\n * Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#slider | ARIA slider }.\n *\n * @slot track - The track of the slider\n * @slot track-start - The track-start visual indicator\n * @slot thumb - The slider thumb\n * @slot - The default slot for labels\n * @csspart positioning-region - The region used to position the elements of the slider\n * @csspart track-container - The region containing the track elements\n * @csspart track-start - The element wrapping the track start slot\n * @csspart thumb-container - The thumb container element which is programatically positioned\n * @fires change - Fires a custom 'change' event when the slider value changes\n *\n * @public\n */\nlet Slider$1 = class Slider extends FormAssociatedSlider {\n constructor() {\n super(...arguments);\n /**\n * @internal\n */\n this.direction = Direction.ltr;\n /**\n * @internal\n */\n this.isDragging = false;\n /**\n * @internal\n */\n this.trackWidth = 0;\n /**\n * @internal\n */\n this.trackMinWidth = 0;\n /**\n * @internal\n */\n this.trackHeight = 0;\n /**\n * @internal\n */\n this.trackLeft = 0;\n /**\n * @internal\n */\n this.trackMinHeight = 0;\n /**\n * Custom function that generates a string for the component's \"aria-valuetext\" attribute based on the current value.\n *\n * @public\n */\n this.valueTextFormatter = () => null;\n /**\n * The minimum allowed value.\n *\n * @defaultValue - 0\n * @public\n * @remarks\n * HTML Attribute: min\n */\n this.min = 0; // Map to proxy element.\n /**\n * The maximum allowed value.\n *\n * @defaultValue - 10\n * @public\n * @remarks\n * HTML Attribute: max\n */\n this.max = 10; // Map to proxy element.\n /**\n * Value to increment or decrement via arrow keys, mouse click or drag.\n *\n * @public\n * @remarks\n * HTML Attribute: step\n */\n this.step = 1; // Map to proxy element.\n /**\n * The orientation of the slider.\n *\n * @public\n * @remarks\n * HTML Attribute: orientation\n */\n this.orientation = Orientation.horizontal;\n /**\n * The selection mode.\n *\n * @public\n * @remarks\n * HTML Attribute: mode\n */\n this.mode = SliderMode.singleValue;\n this.keypressHandler = (e) => {\n if (this.readOnly) {\n return;\n }\n if (e.key === keyHome) {\n e.preventDefault();\n this.value = `${this.min}`;\n }\n else if (e.key === keyEnd) {\n e.preventDefault();\n this.value = `${this.max}`;\n }\n else if (!e.shiftKey) {\n switch (e.key) {\n case keyArrowRight:\n case keyArrowUp:\n e.preventDefault();\n this.increment();\n break;\n case keyArrowLeft:\n case keyArrowDown:\n e.preventDefault();\n this.decrement();\n break;\n }\n }\n };\n this.setupTrackConstraints = () => {\n const clientRect = this.track.getBoundingClientRect();\n this.trackWidth = this.track.clientWidth;\n this.trackMinWidth = this.track.clientLeft;\n this.trackHeight = clientRect.bottom;\n this.trackMinHeight = clientRect.top;\n this.trackLeft = this.getBoundingClientRect().left;\n if (this.trackWidth === 0) {\n this.trackWidth = 1;\n }\n };\n this.setupListeners = (remove = false) => {\n const eventAction = `${remove ? \"remove\" : \"add\"}EventListener`;\n this[eventAction](\"keydown\", this.keypressHandler);\n this[eventAction](\"mousedown\", this.handleMouseDown);\n this.thumb[eventAction](\"mousedown\", this.handleThumbMouseDown, {\n passive: true,\n });\n this.thumb[eventAction](\"touchstart\", this.handleThumbMouseDown, {\n passive: true,\n });\n // removes handlers attached by mousedown handlers\n if (remove) {\n this.handleMouseDown(null);\n this.handleThumbMouseDown(null);\n }\n };\n /**\n * @internal\n */\n this.initialValue = \"\";\n /**\n * Handle mouse moves during a thumb drag operation\n * If the event handler is null it removes the events\n */\n this.handleThumbMouseDown = (event) => {\n if (event) {\n if (this.readOnly || this.disabled || event.defaultPrevented) {\n return;\n }\n event.target.focus();\n }\n const eventAction = `${event !== null ? \"add\" : \"remove\"}EventListener`;\n window[eventAction](\"mouseup\", this.handleWindowMouseUp);\n window[eventAction](\"mousemove\", this.handleMouseMove, { passive: true });\n window[eventAction](\"touchmove\", this.handleMouseMove, { passive: true });\n window[eventAction](\"touchend\", this.handleWindowMouseUp);\n this.isDragging = event !== null;\n };\n /**\n * Handle mouse moves during a thumb drag operation\n */\n this.handleMouseMove = (e) => {\n if (this.readOnly || this.disabled || e.defaultPrevented) {\n return;\n }\n // update the value based on current position\n const sourceEvent = window.TouchEvent && e instanceof TouchEvent\n ? e.touches[0]\n : e;\n const eventValue = this.orientation === Orientation.horizontal\n ? sourceEvent.pageX - document.documentElement.scrollLeft - this.trackLeft\n : sourceEvent.pageY - document.documentElement.scrollTop;\n this.value = `${this.calculateNewValue(eventValue)}`;\n };\n this.calculateNewValue = (rawValue) => {\n // update the value based on current position\n const newPosition = convertPixelToPercent(rawValue, this.orientation === Orientation.horizontal\n ? this.trackMinWidth\n : this.trackMinHeight, this.orientation === Orientation.horizontal\n ? this.trackWidth\n : this.trackHeight, this.direction);\n const newValue = (this.max - this.min) * newPosition + this.min;\n return this.convertToConstrainedValue(newValue);\n };\n /**\n * Handle a window mouse up during a drag operation\n */\n this.handleWindowMouseUp = (event) => {\n this.stopDragging();\n };\n this.stopDragging = () => {\n this.isDragging = false;\n this.handleMouseDown(null);\n this.handleThumbMouseDown(null);\n };\n /**\n *\n * @param e - MouseEvent or null. If there is no event handler it will remove the events\n */\n this.handleMouseDown = (e) => {\n const eventAction = `${e !== null ? \"add\" : \"remove\"}EventListener`;\n if (e === null || (!this.disabled && !this.readOnly)) {\n window[eventAction](\"mouseup\", this.handleWindowMouseUp);\n window.document[eventAction](\"mouseleave\", this.handleWindowMouseUp);\n window[eventAction](\"mousemove\", this.handleMouseMove);\n if (e) {\n e.preventDefault();\n this.setupTrackConstraints();\n e.target.focus();\n const controlValue = this.orientation === Orientation.horizontal\n ? e.pageX - document.documentElement.scrollLeft - this.trackLeft\n : e.pageY - document.documentElement.scrollTop;\n this.value = `${this.calculateNewValue(controlValue)}`;\n }\n }\n };\n this.convertToConstrainedValue = (value) => {\n if (isNaN(value)) {\n value = this.min;\n }\n /**\n * The following logic intends to overcome the issue with math in JavaScript with regards to floating point numbers.\n * This is needed as the `step` may be an integer but could also be a float. To accomplish this the step is assumed to be a float\n * and is converted to an integer by determining the number of decimal places it represent, multiplying it until it is an\n * integer and then dividing it to get back to the correct number.\n */\n let constrainedValue = value - this.min;\n const roundedConstrainedValue = Math.round(constrainedValue / this.step);\n const remainderValue = constrainedValue -\n (roundedConstrainedValue * (this.stepMultiplier * this.step)) /\n this.stepMultiplier;\n constrainedValue =\n remainderValue >= Number(this.step) / 2\n ? constrainedValue - remainderValue + Number(this.step)\n : constrainedValue - remainderValue;\n return constrainedValue + this.min;\n };\n }\n readOnlyChanged() {\n if (this.proxy instanceof HTMLInputElement) {\n this.proxy.readOnly = this.readOnly;\n }\n }\n /**\n * The value property, typed as a number.\n *\n * @public\n */\n get valueAsNumber() {\n return parseFloat(super.value);\n }\n set valueAsNumber(next) {\n this.value = next.toString();\n }\n /**\n * @internal\n */\n valueChanged(previous, next) {\n super.valueChanged(previous, next);\n if (this.$fastController.isConnected) {\n this.setThumbPositionForOrientation(this.direction);\n }\n this.$emit(\"change\");\n }\n minChanged() {\n if (this.proxy instanceof HTMLInputElement) {\n this.proxy.min = `${this.min}`;\n }\n this.validate();\n }\n maxChanged() {\n if (this.proxy instanceof HTMLInputElement) {\n this.proxy.max = `${this.max}`;\n }\n this.validate();\n }\n stepChanged() {\n if (this.proxy instanceof HTMLInputElement) {\n this.proxy.step = `${this.step}`;\n }\n this.updateStepMultiplier();\n this.validate();\n }\n orientationChanged() {\n if (this.$fastController.isConnected) {\n this.setThumbPositionForOrientation(this.direction);\n }\n }\n /**\n * @internal\n */\n connectedCallback() {\n super.connectedCallback();\n this.proxy.setAttribute(\"type\", \"range\");\n this.direction = getDirection(this);\n this.updateStepMultiplier();\n this.setupTrackConstraints();\n this.setupListeners();\n this.setupDefaultValue();\n this.setThumbPositionForOrientation(this.direction);\n }\n /**\n * @internal\n */\n disconnectedCallback() {\n this.setupListeners(true);\n }\n /**\n * Increment the value by the step\n *\n * @public\n */\n increment() {\n const newVal = this.direction !== Direction.rtl && this.orientation !== Orientation.vertical\n ? Number(this.value) + Number(this.step)\n : Number(this.value) - Number(this.step);\n const incrementedVal = this.convertToConstrainedValue(newVal);\n const incrementedValString = incrementedVal < Number(this.max) ? `${incrementedVal}` : `${this.max}`;\n this.value = incrementedValString;\n }\n /**\n * Decrement the value by the step\n *\n * @public\n */\n decrement() {\n const newVal = this.direction !== Direction.rtl && this.orientation !== Orientation.vertical\n ? Number(this.value) - Number(this.step)\n : Number(this.value) + Number(this.step);\n const decrementedVal = this.convertToConstrainedValue(newVal);\n const decrementedValString = decrementedVal > Number(this.min) ? `${decrementedVal}` : `${this.min}`;\n this.value = decrementedValString;\n }\n /**\n * Places the thumb based on the current value\n *\n * @public\n * @param direction - writing mode\n */\n setThumbPositionForOrientation(direction) {\n const newPct = convertPixelToPercent(Number(this.value), Number(this.min), Number(this.max), direction);\n const percentage = (1 - newPct) * 100;\n if (this.orientation === Orientation.horizontal) {\n this.position = this.isDragging\n ? `right: ${percentage}%; transition: none;`\n : `right: ${percentage}%; transition: all 0.2s ease;`;\n }\n else {\n this.position = this.isDragging\n ? `bottom: ${percentage}%; transition: none;`\n : `bottom: ${percentage}%; transition: all 0.2s ease;`;\n }\n }\n /**\n * Update the step multiplier used to ensure rounding errors from steps that\n * are not whole numbers\n */\n updateStepMultiplier() {\n const stepString = this.step + \"\";\n const decimalPlacesOfStep = !!(this.step % 1)\n ? stepString.length - stepString.indexOf(\".\") - 1\n : 0;\n this.stepMultiplier = Math.pow(10, decimalPlacesOfStep);\n }\n get midpoint() {\n return `${this.convertToConstrainedValue((this.max + this.min) / 2)}`;\n }\n setupDefaultValue() {\n if (typeof this.value === \"string\") {\n if (this.value.length === 0) {\n this.initialValue = this.midpoint;\n }\n else {\n const value = parseFloat(this.value);\n if (!Number.isNaN(value) && (value < this.min || value > this.max)) {\n this.value = this.midpoint;\n }\n }\n }\n }\n};\n__decorate([\n attr({ attribute: \"readonly\", mode: \"boolean\" })\n], Slider$1.prototype, \"readOnly\", void 0);\n__decorate([\n observable\n], Slider$1.prototype, \"direction\", void 0);\n__decorate([\n observable\n], Slider$1.prototype, \"isDragging\", void 0);\n__decorate([\n observable\n], Slider$1.prototype, \"position\", void 0);\n__decorate([\n observable\n], Slider$1.prototype, \"trackWidth\", void 0);\n__decorate([\n observable\n], Slider$1.prototype, \"trackMinWidth\", void 0);\n__decorate([\n observable\n], Slider$1.prototype, \"trackHeight\", void 0);\n__decorate([\n observable\n], Slider$1.prototype, \"trackLeft\", void 0);\n__decorate([\n observable\n], Slider$1.prototype, \"trackMinHeight\", void 0);\n__decorate([\n observable\n], Slider$1.prototype, \"valueTextFormatter\", void 0);\n__decorate([\n attr({ converter: nullableNumberConverter })\n], Slider$1.prototype, \"min\", void 0);\n__decorate([\n attr({ converter: nullableNumberConverter })\n], Slider$1.prototype, \"max\", void 0);\n__decorate([\n attr({ converter: nullableNumberConverter })\n], Slider$1.prototype, \"step\", void 0);\n__decorate([\n attr\n], Slider$1.prototype, \"orientation\", void 0);\n__decorate([\n attr\n], Slider$1.prototype, \"mode\", void 0);\n\nconst styles = \":host{display:inline-block}:host(:not([orientation=vertical])){inline-size:100%}:host([orientation=vertical]){block-size:100%;min-block-size:calc(var(--_thumb-interaction-indicator-size) * 5)}:host([disabled]){cursor:not-allowed}.control{--_thumb-size: 12px;--_thumb-interaction-indicator-size: 36px;--_track-start-inset-inline-start: 0;--_track-start-inset-block-start: 0;cursor:pointer;outline:none;user-select:none}.control.connotation-cta{--_connotation-color-primary: var(--vvd-slider-cta-primary, var(--vvd-color-cta-500))}.control:not(.connotation-cta){--_connotation-color-primary: var(--vvd-slider-accent-primary, var(--vvd-color-canvas-text))}.control{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: transparent}.control .positioning-region{position:relative}.control .track{position:absolute;border-radius:4px;background:var(--_track-background-color)}.control .track-start{position:absolute;border-radius:inherit;background:var(--_track-start-background-color);block-size:100%;inset-inline-start:var(--_track-start-inset-inline-start)}.control.horizontal{block-size:var(--_thumb-interaction-indicator-size);inline-size:calc(100% - var(--_thumb-size));margin-inline-start:calc(var(--_thumb-size) / 2);min-inline-size:var(--_thumb-size)}.control.horizontal .track{top:calc((var(--_thumb-interaction-indicator-size) - 2px) / 2);right:0;left:0;block-size:2px}:host([markers]) .control.horizontal .track-start{--_track-start-inset-inline-start: 1px;border-bottom-left-radius:0;border-top-left-radius:0}.control.horizontal .track .mark{position:absolute;block-size:6px;inline-size:100%;inset-block-start:-2px;inset-inline-start:0}.control.vertical{margin-top:calc(var(--_thumb-interaction-indicator-size) / 2);block-size:calc(100% - var(--_thumb-interaction-indicator-size));inline-size:var(--_thumb-interaction-indicator-size);min-block-size:var(--_thumb-interaction-indicator-size)}.control.vertical .positioning-region{block-size:100%}.control.vertical .track{left:calc((var(--_thumb-interaction-indicator-size) - 2px) / 2);block-size:100%;inline-size:2px}.control.vertical .track .mark{position:absolute;block-size:100%;inline-size:6px;inset-block-start:0;inset-inline-start:-2px}.control.vertical .track-start{block-size:auto;inline-size:100%;inset-block-start:var(--_track-start-inset-block-start)}:host([markers]) .control.vertical .track-start{--_track-start-inset-block-start: 1px;border-radius:0}.control.disabled{--_track-background-color: var(--vvd-color-neutral-100);--_track-start-background-color: var(--vvd-color-neutral-300);pointer-events:none}.control:not(.disabled){--_track-background-color: var(--vvd-color-neutral-300);--_track-start-background-color: var(--_appearance-color-fill)}.control:not(.disabled) .mark{color:var(--vvd-color-neutral-950)}.control.disabled .mark{color:var(--_track-start-background-color)}.thumb-container{position:absolute;border-radius:50%;block-size:var(--_thumb-interaction-indicator-size);cursor:inherit;inline-size:var(--_thumb-interaction-indicator-size);outline-color:transparent;touch-action:none}:focus-visible .thumb-container,.thumb-container:focus-visible{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent;--_thumb-interaction-indicator-alpha: .05;border-radius:50%}.control.horizontal .thumb-container{transform:translate(calc(var(--_thumb-interaction-indicator-size) / 2))}.control.vertical .thumb-container{transform:translateY(calc(var(--_thumb-interaction-indicator-size) / 2))}.control:not(.disabled) .thumb-container:hover{--_thumb-interaction-indicator-alpha: .12}.control:not(.disabled) .thumb-container:active{--_thumb-interaction-indicator-alpha: .25}.thumb-container:before{position:absolute;display:block;border-radius:inherit;background-color:var(--_track-start-background-color);block-size:var(--_thumb-interaction-indicator-size);content:\\\"\\\";inline-size:var(--_thumb-interaction-indicator-size);opacity:var(--_thumb-interaction-indicator-alpha, 0);transition:opacity .2s ease-out 0s}.thumb-container:after{position:absolute;display:block;border-radius:inherit;background-color:var(--_track-start-background-color);block-size:var(--_thumb-size);content:\\\"\\\";inline-size:var(--_thumb-size);inset:calc((var(--_thumb-interaction-indicator-size) - var(--_thumb-size)) / 2)}\";\n\nvar __defProp = Object.defineProperty;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = void 0 ;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (decorator(target, key, result) ) || result;\n if (result)\n __defProp(target, key, result);\n return result;\n};\nclass Slider extends Slider$1 {\n constructor() {\n super(...arguments);\n this.ariaLabel = null;\n this.ariaValuetext = null;\n this.markers = false;\n this.valueTextFormatter = (value) => parseFloat(value).toLocaleString(this.locale.lang);\n }\n /**\n * TO BE REMOVED WHEN UPGRADING TO FAST-FOUNDATION 3\n *\n * @internal\n */\n valueChanged(previous, next) {\n if (this.$fastController.isConnected) {\n const nextAsNumber = parseFloat(next);\n const value = limit$1(\n this.min,\n this.max,\n this[\"convertToConstrainedValue\"](nextAsNumber)\n ).toString();\n if (value !== next) {\n this.value = value;\n return;\n }\n super.valueChanged(previous, value);\n }\n }\n}\n__decorateClass([\n attr({ attribute: \"aria-label\" })\n], Slider.prototype, \"ariaLabel\");\n__decorateClass([\n attr({ attribute: \"aria-valuetext\" })\n], Slider.prototype, \"ariaValuetext\");\n__decorateClass([\n attr({\n mode: \"boolean\"\n })\n], Slider.prototype, \"markers\");\n__decorateClass([\n attr\n], Slider.prototype, \"connotation\");\n__decorateClass([\n observable\n], Slider.prototype, \"valueTextFormatter\");\napplyMixins(Slider, Localized);\n\nconst sliderDefinition = Slider.compose({\n baseName: \"slider\",\n template: SliderTemplate,\n styles,\n shadowOptions: {\n delegatesFocus: true\n }\n});\nconst sliderRegistries = [sliderDefinition()];\nconst registerSlider = registerFactory(sliderRegistries);\n\nexport { Slider as S, sliderRegistries as a, registerSlider as r, sliderDefinition as s };\n","import { a as attr, F as FoundationElement, h as html, r as registerFactory } from './index.js';\nimport { w as when } from './when.js';\nimport { c as classNames } from './class-names.js';\n\nvar __defProp = Object.defineProperty;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = void 0 ;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (decorator(target, key, result) ) || result;\n if (result)\n __defProp(target, key, result);\n return result;\n};\nclass SideDrawer extends FoundationElement {\n constructor() {\n super(...arguments);\n this.alternate = false;\n this.modal = false;\n this.open = false;\n this.trailing = false;\n }\n attributeChangedCallback(name, oldValue, newValue) {\n super.attributeChangedCallback(name, oldValue, newValue);\n switch (name) {\n case \"open\": {\n this.open ? this.#open() : this.#close();\n }\n }\n }\n #close() {\n this.$emit(\"close\", void 0, { bubbles: false });\n }\n #open() {\n this.$emit(\"open\", void 0, { bubbles: false });\n }\n}\n__decorateClass([\n attr({\n mode: \"boolean\"\n })\n], SideDrawer.prototype, \"alternate\");\n__decorateClass([\n attr({\n mode: \"boolean\"\n })\n], SideDrawer.prototype, \"modal\");\n__decorateClass([\n attr({\n mode: \"boolean\"\n })\n], SideDrawer.prototype, \"open\");\n__decorateClass([\n attr({\n mode: \"boolean\"\n })\n], SideDrawer.prototype, \"trailing\");\n\nconst styles = \":host{display:block}.side-drawer-app-content{block-size:100%}.control{position:fixed;z-index:1;background-color:var(--vvd-color-canvas);color:var(--vvd-color-canvas-text);inline-size:280px;inset-block:0;overflow-y:auto}.control[part~=vvd-theme-alternate]{background-color:var(--vvd-color-canvas);color:var(--vvd-color-canvas-text);color-scheme:var(--vvd-color-scheme)}.control.trailing{inset-inline-end:0}.control:not(.open).trailing{transform:translate(100%)}.control:not(.open):not(.trailing){transform:translate(-100%)}.control.open:not(.modal).trailing+.side-drawer-app-content{margin-inline-end:var(--side-drawer-app-content-offset, 280px)}.control.open:not(.modal):not(.trailing)+.side-drawer-app-content{margin-inline-start:var(--side-drawer-app-content-offset, 280px)}@media (prefers-reduced-motion: no-preference){.control{transition:transform .2s cubic-bezier(.4,0,.2,1)}}.scrim{background-color:var(--vvd-color-canvas-text, currentColor);opacity:.5;position:fixed;inset:0}.scrim:not(.open){display:none}\";\n\nconst getClasses = ({ modal, open, trailing }) => classNames(\n \"control\",\n [\"modal\", modal],\n [\"open\", open],\n [\"trailing\", trailing]\n);\nconst getScrimClasses = ({ open }) => classNames(\"scrim\", [\"open\", open]);\nconst sideDrawerTemplate = () => html`\n\t