screenreader-speech-capture 0.8.1-fix-ui-csrf-protocol.18 → 0.8.2-fix-ui-loopback.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +11 -1
- package/dist/ui/adapter-node.js +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/2.ChCvyBVk.css +1 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.ChCvyBVk.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.ChCvyBVk.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/{app.D_WMpF1j.js → app.CBrC_IQm.js} +2 -2
- package/dist/ui/client/ui/_app/immutable/entry/app.CBrC_IQm.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.CBrC_IQm.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.C9mfOUwo.js +52 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.C9mfOUwo.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.C9mfOUwo.js.gz +0 -0
- package/dist/ui/client/ui/_app/version.json +1 -1
- package/dist/ui/client/ui/_app/version.json.br +0 -0
- package/dist/ui/client/ui/_app/version.json.gz +0 -0
- package/dist/ui/server/.vite/manifest.json +11 -2
- package/dist/ui/server/_app/immutable/assets/_page.ChCvyBVk.css +1 -0
- package/dist/ui/server/chunks/instance.js +4 -3
- package/dist/ui/server/chunks/instance.js.map +1 -1
- package/dist/ui/server/chunks/internal.js +1 -1
- package/dist/ui/server/entries/hooks.server.js +14 -0
- package/dist/ui/server/entries/hooks.server.js.map +1 -0
- package/dist/ui/server/entries/pages/_layout.server.ts.js +9 -3
- package/dist/ui/server/entries/pages/_layout.server.ts.js.map +1 -1
- package/dist/ui/server/entries/pages/_page.svelte.js +20 -4
- package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
- package/dist/ui/server/manifest-full.js +1 -1
- package/dist/ui/server/manifest.js +1 -1
- package/dist/ui/server/nodes/2.js +2 -2
- package/dist/ui/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/2.IKhva0W0.css +0 -1
- package/dist/ui/client/ui/_app/immutable/assets/2.IKhva0W0.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.IKhva0W0.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.D_WMpF1j.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.D_WMpF1j.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.Y_rJeHBb.js +0 -50
- package/dist/ui/client/ui/_app/immutable/nodes/2.Y_rJeHBb.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.Y_rJeHBb.js.gz +0 -0
- package/dist/ui/server/_app/immutable/assets/_page.IKhva0W0.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte.js","names":["styles","sharedStyles","sharedElevationStyles","tonalStyles","customElement","LitElement","property","styles","styles","customElement","LitElement","classMap","nothing","property","query","state","customElement","$.attr","$.escape","$.attr","$.escape","$.attr","$.ensure_array_like","$.attr_class","$.escape","$.attr","$.attr","$.attr_class","$.attr_style","$.attr","$.escape","$.derived","$.attr","$.escape","$.derived","$.escape","$.attr","$.derived","$.escape","$.attr_class","$.attr","$.clsx","$.ensure_array_like","$.derived","$.attr_class"],"sources":["../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-tonal-button.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-tonal-styles.cssresult.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/filled-tonal-button.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/divider/internal/divider.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/divider/internal/divider-styles.cssresult.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/divider/divider.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/internal/animations.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/internal/dialog.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/internal/dialog-styles.cssresult.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/dialog.js","../../../../src/lib/components/SpeechLog/ClearSpeechDialog.svelte","../../../../src/lib/components/SpeechLog/DeleteSessionDialog.svelte","../../../../src/lib/components/SpeechLog/MarkerDialog.svelte","../../../../src/lib/components/SpeechLog/SpeechTable.svelte","../../../../src/lib/components/SpeechLog/SpeechLog.svelte","../../../../src/lib/components/ListItem/ListItem.svelte","../../../../src/lib/core/sessions.ts","../../../../src/lib/components/SessionsPane/EndSessionDialog.svelte","../../../../src/lib/components/SessionsPane/SessionRow.svelte","../../../../src/lib/components/SessionsPane/StartSessionDialog.svelte","../../../../src/lib/components/SessionsPane/SessionsPane.svelte","../../../../src/routes/+page.svelte"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport '../../elevation/elevation.js';\nimport { html } from 'lit';\nimport { Button } from './button.js';\n/**\n * A filled tonal button component.\n */\nexport class FilledTonalButton extends Button {\n renderElevationOrOutline() {\n return html `<md-elevation part=\"elevation\"></md-elevation>`;\n }\n}\n//# sourceMappingURL=filled-tonal-button.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./button/internal/filled-tonal-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{--_container-color: var(--md-filled-tonal-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-elevation: var(--md-filled-tonal-button-container-elevation, 0);--_container-height: var(--md-filled-tonal-button-container-height, 40px);--_container-shadow-color: var(--md-filled-tonal-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-tonal-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-tonal-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-tonal-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-tonal-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-tonal-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-tonal-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-tonal-button-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-container-elevation: var(--md-filled-tonal-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-tonal-button-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-tonal-button-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_label-text-font: var(--md-filled-tonal-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-tonal-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-tonal-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-tonal-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-tonal-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-tonal-button-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-color: var(--md-filled-tonal-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-tonal-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_container-shape-start-start: var(--md-filled-tonal-button-container-shape-start-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-tonal-button-container-shape-start-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-tonal-button-container-shape-end-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-tonal-button-container-shape-end-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-tonal-button-leading-space, 24px);--_trailing-space: var(--md-filled-tonal-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-tonal-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-tonal-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-tonal-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-tonal-button-with-trailing-icon-trailing-space, 16px)}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=filled-tonal-styles.cssresult.js.map","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { customElement } from 'lit/decorators.js';\nimport { FilledTonalButton } from './internal/filled-tonal-button.js';\nimport { styles as tonalStyles } from './internal/filled-tonal-styles.cssresult.js';\nimport { styles as sharedElevationStyles } from './internal/shared-elevation-styles.cssresult.js';\nimport { styles as sharedStyles } from './internal/shared-styles.cssresult.js';\n/**\n * @summary Buttons help people take action, such as sending an email, sharing a\n * document, or liking a comment.\n *\n * @description\n * __Emphasis:__ Medium emphasis – For important actions that don’t distract\n * from other onscreen elements.\n *\n * __Rationale:__ Filled tonal buttons have a lighter background color and\n * darker label color, making them less visually prominent than a regular,\n * filled button. They’re still used for final or unblocking actions in a flow,\n * but do so with less emphasis.\n *\n * __Example usages:__\n * - Save\n * - Confirm\n * - Done\n *\n * @final\n * @suppress {visibility}\n */\nlet MdFilledTonalButton = class MdFilledTonalButton extends FilledTonalButton {\n};\nMdFilledTonalButton.styles = [\n sharedStyles,\n sharedElevationStyles,\n tonalStyles,\n];\nMdFilledTonalButton = __decorate([\n customElement('md-filled-tonal-button')\n], MdFilledTonalButton);\nexport { MdFilledTonalButton };\n//# sourceMappingURL=filled-tonal-button.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\n/**\n * A divider component.\n */\nexport class Divider extends LitElement {\n constructor() {\n super(...arguments);\n /**\n * Indents the divider with equal padding on both sides.\n */\n this.inset = false;\n /**\n * Indents the divider with padding on the leading side.\n */\n this.insetStart = false;\n /**\n * Indents the divider with padding on the trailing side.\n */\n this.insetEnd = false;\n }\n}\n__decorate([\n property({ type: Boolean, reflect: true })\n], Divider.prototype, \"inset\", void 0);\n__decorate([\n property({ type: Boolean, reflect: true, attribute: 'inset-start' })\n], Divider.prototype, \"insetStart\", void 0);\n__decorate([\n property({ type: Boolean, reflect: true, attribute: 'inset-end' })\n], Divider.prototype, \"insetEnd\", void 0);\n//# sourceMappingURL=divider.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./divider/internal/divider-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{box-sizing:border-box;color:var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));display:flex;height:var(--md-divider-thickness, 1px);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:\"\";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=divider-styles.cssresult.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { customElement } from 'lit/decorators.js';\nimport { Divider } from './internal/divider.js';\nimport { styles } from './internal/divider-styles.cssresult.js';\n/**\n * @summary A divider is a thin line that groups content in lists and\n * containers.\n *\n * @description Dividers can reinforce tapability, such as when used to separate\n * list items or define tappable regions in an accordion.\n *\n * @final\n * @suppress {visibility}\n */\nlet MdDivider = class MdDivider extends Divider {\n};\nMdDivider.styles = [styles];\nMdDivider = __decorate([\n customElement('md-divider')\n], MdDivider);\nexport { MdDivider };\n//# sourceMappingURL=divider.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { EASING } from '../../internal/motion/animation.js';\n/**\n * The default dialog open animation.\n */\nexport const DIALOG_DEFAULT_OPEN_ANIMATION = {\n dialog: [\n [\n // Dialog slide down\n [{ 'transform': 'translateY(-50px)' }, { 'transform': 'translateY(0)' }],\n { duration: 500, easing: EASING.EMPHASIZED },\n ],\n ],\n scrim: [\n [\n // Scrim fade in\n [{ 'opacity': 0 }, { 'opacity': 0.32 }],\n { duration: 500, easing: 'linear' },\n ],\n ],\n container: [\n [\n // Container fade in\n [{ 'opacity': 0 }, { 'opacity': 1 }],\n { duration: 50, easing: 'linear', pseudoElement: '::before' },\n ],\n [\n // Container grow\n // Note: current spec says to grow from 0dp->100% and shrink from\n // 100%->35%. We change this to 35%->100% to simplify the animation that\n // is supposed to clip content as it grows. From 0dp it's possible to see\n // text/actions appear before the container has fully grown.\n [{ 'height': '35%' }, { 'height': '100%' }],\n { duration: 500, easing: EASING.EMPHASIZED, pseudoElement: '::before' },\n ],\n ],\n headline: [\n [\n // Headline fade in\n [{ 'opacity': 0 }, { 'opacity': 0, offset: 0.2 }, { 'opacity': 1 }],\n { duration: 250, easing: 'linear', fill: 'forwards' },\n ],\n ],\n content: [\n [\n // Content fade in\n [{ 'opacity': 0 }, { 'opacity': 0, offset: 0.2 }, { 'opacity': 1 }],\n { duration: 250, easing: 'linear', fill: 'forwards' },\n ],\n ],\n actions: [\n [\n // Actions fade in\n [{ 'opacity': 0 }, { 'opacity': 0, offset: 0.5 }, { 'opacity': 1 }],\n { duration: 300, easing: 'linear', fill: 'forwards' },\n ],\n ],\n};\n/**\n * The default dialog close animation.\n */\nexport const DIALOG_DEFAULT_CLOSE_ANIMATION = {\n dialog: [\n [\n // Dialog slide up\n [{ 'transform': 'translateY(0)' }, { 'transform': 'translateY(-50px)' }],\n { duration: 150, easing: EASING.EMPHASIZED_ACCELERATE },\n ],\n ],\n scrim: [\n [\n // Scrim fade out\n [{ 'opacity': 0.32 }, { 'opacity': 0 }],\n { duration: 150, easing: 'linear' },\n ],\n ],\n container: [\n [\n // Container shrink\n [{ 'height': '100%' }, { 'height': '35%' }],\n {\n duration: 150,\n easing: EASING.EMPHASIZED_ACCELERATE,\n pseudoElement: '::before',\n },\n ],\n [\n // Container fade out\n [{ 'opacity': '1' }, { 'opacity': '0' }],\n { delay: 100, duration: 50, easing: 'linear', pseudoElement: '::before' },\n ],\n ],\n headline: [\n [\n // Headline fade out\n [{ 'opacity': 1 }, { 'opacity': 0 }],\n { duration: 100, easing: 'linear', fill: 'forwards' },\n ],\n ],\n content: [\n [\n // Content fade out\n [{ 'opacity': 1 }, { 'opacity': 0 }],\n { duration: 100, easing: 'linear', fill: 'forwards' },\n ],\n ],\n actions: [\n [\n // Actions fade out\n [{ 'opacity': 1 }, { 'opacity': 0 }],\n { duration: 100, easing: 'linear', fill: 'forwards' },\n ],\n ],\n};\n//# sourceMappingURL=animations.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport '../../divider/divider.js';\nimport { html, isServer, LitElement, nothing } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { mixinDelegatesAria } from '../../internal/aria/delegate.js';\nimport { redispatchEvent } from '../../internal/events/redispatch-event.js';\nimport { DIALOG_DEFAULT_CLOSE_ANIMATION, DIALOG_DEFAULT_OPEN_ANIMATION, } from './animations.js';\n// Separate variable needed for closure.\nconst dialogBaseClass = mixinDelegatesAria(LitElement);\n/**\n * A dialog component.\n *\n * @fires open {Event} Dispatched when the dialog is opening before any animations.\n * @fires opened {Event} Dispatched when the dialog has opened after any animations.\n * @fires close {Event} Dispatched when the dialog is closing before any animations.\n * @fires closed {Event} Dispatched when the dialog has closed after any animations.\n * @fires cancel {Event} Dispatched when the dialog has been canceled by clicking\n * on the scrim or pressing Escape.\n */\nexport class Dialog extends dialogBaseClass {\n // We do not use `delegatesFocus: true` due to a Chromium bug with\n // selecting text.\n // See https://bugs.chromium.org/p/chromium/issues/detail?id=950357\n /**\n * Opens the dialog when set to `true` and closes it when set to `false`.\n */\n get open() {\n return this.isOpen;\n }\n set open(open) {\n if (open === this.isOpen) {\n return;\n }\n this.isOpen = open;\n if (open) {\n this.setAttribute('open', '');\n this.show();\n }\n else {\n this.removeAttribute('open');\n this.close();\n }\n }\n constructor() {\n super();\n /**\n * Skips the opening and closing animations.\n */\n this.quick = false;\n /**\n * Gets or sets the dialog's return value, usually to indicate which button\n * a user pressed to close it.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/returnValue\n */\n this.returnValue = '';\n /**\n * Disables focus trapping, which by default keeps keyboard Tab navigation\n * within the dialog.\n *\n * When disabled, after focusing the last element of a dialog, pressing Tab\n * again will release focus from the window back to the browser (such as the\n * URL bar).\n *\n * Focus trapping is recommended for accessibility, and should not typically\n * be disabled. Only turn this off if the use case of a dialog is more\n * accessible without focus trapping.\n */\n this.noFocusTrap = false;\n /**\n * Gets the opening animation for a dialog. Set to a new function to customize\n * the animation.\n */\n this.getOpenAnimation = () => DIALOG_DEFAULT_OPEN_ANIMATION;\n /**\n * Gets the closing animation for a dialog. Set to a new function to customize\n * the animation.\n */\n this.getCloseAnimation = () => DIALOG_DEFAULT_CLOSE_ANIMATION;\n this.isOpen = false;\n this.isOpening = false;\n this.isConnectedPromise = this.getIsConnectedPromise();\n this.isAtScrollTop = false;\n this.isAtScrollBottom = false;\n this.nextClickIsFromContent = false;\n // Dialogs should not be SSR'd while open, so we can just use runtime checks.\n this.hasHeadline = false;\n this.hasActions = false;\n this.hasIcon = false;\n // See https://bugs.chromium.org/p/chromium/issues/detail?id=1512224\n // Chrome v120 has a bug where escape keys do not trigger cancels. If we get\n // a dialog \"close\" event that is triggered without a \"cancel\" after an escape\n // keydown, then we need to manually trigger our closing logic.\n //\n // This bug occurs when pressing escape to close a dialog without first\n // interacting with the dialog's content.\n //\n // Cleanup tracking:\n // https://github.com/material-components/material-web/issues/5330\n // This can be removed when full CloseWatcher support added and the above bug\n // in Chromium is fixed to fire 'cancel' with one escape press and close with\n // multiple.\n this.escapePressedWithoutCancel = false;\n // This TreeWalker is used to walk through a dialog's children to find\n // focusable elements. TreeWalker is faster than `querySelectorAll('*')`.\n // We check for isServer because there isn't a \"document\" during an SSR\n // run.\n this.treewalker = isServer\n ? null\n : document.createTreeWalker(this, NodeFilter.SHOW_ELEMENT);\n if (!isServer) {\n this.addEventListener('submit', this.handleSubmit);\n }\n }\n /**\n * Opens the dialog and fires a cancelable `open` event. After a dialog's\n * animation, an `opened` event is fired.\n *\n * Add an `autofocus` attribute to a child of the dialog that should\n * receive focus after opening.\n *\n * @return A Promise that resolves after the animation is finished and the\n * `opened` event was fired.\n */\n async show() {\n this.isOpening = true;\n // Dialogs can be opened before being attached to the DOM, so we need to\n // wait until we're connected before calling `showModal()`.\n await this.isConnectedPromise;\n await this.updateComplete;\n const dialog = this.dialog;\n // Check if already opened or if `dialog.close()` was called while awaiting.\n if (dialog.open || !this.isOpening) {\n this.isOpening = false;\n return;\n }\n const preventOpen = !this.dispatchEvent(new Event('open', { cancelable: true }));\n if (preventOpen) {\n this.open = false;\n this.isOpening = false;\n return;\n }\n // All Material dialogs are modal.\n dialog.showModal();\n this.open = true;\n // Reset scroll position if re-opening a dialog with the same content.\n if (this.scroller) {\n this.scroller.scrollTop = 0;\n }\n // Native modal dialogs ignore autofocus and instead force focus to the\n // first focusable child. Override this behavior if there is a child with\n // an autofocus attribute.\n this.querySelector('[autofocus]')?.focus();\n await this.animateDialog(this.getOpenAnimation());\n this.dispatchEvent(new Event('opened'));\n this.isOpening = false;\n }\n /**\n * Closes the dialog and fires a cancelable `close` event. After a dialog's\n * animation, a `closed` event is fired.\n *\n * @param returnValue A return value usually indicating which button was used\n * to close a dialog. If a dialog is canceled by clicking the scrim or\n * pressing Escape, it will not change the return value after closing.\n * @return A Promise that resolves after the animation is finished and the\n * `closed` event was fired.\n */\n async close(returnValue = this.returnValue) {\n this.isOpening = false;\n if (!this.isConnected) {\n // Disconnected dialogs do not fire close events or animate.\n this.open = false;\n return;\n }\n await this.updateComplete;\n const dialog = this.dialog;\n // Check if already closed or if `dialog.show()` was called while awaiting.\n if (!dialog.open || this.isOpening) {\n this.open = false;\n return;\n }\n const prevReturnValue = this.returnValue;\n this.returnValue = returnValue;\n const preventClose = !this.dispatchEvent(new Event('close', { cancelable: true }));\n if (preventClose) {\n this.returnValue = prevReturnValue;\n return;\n }\n await this.animateDialog(this.getCloseAnimation());\n dialog.close(returnValue);\n this.open = false;\n this.dispatchEvent(new Event('closed'));\n }\n connectedCallback() {\n super.connectedCallback();\n this.isConnectedPromiseResolve();\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n this.isConnectedPromise = this.getIsConnectedPromise();\n }\n render() {\n const scrollable = this.open && !(this.isAtScrollTop && this.isAtScrollBottom);\n const classes = {\n 'has-headline': this.hasHeadline,\n 'has-actions': this.hasActions,\n 'has-icon': this.hasIcon,\n 'scrollable': scrollable,\n 'show-top-divider': scrollable && !this.isAtScrollTop,\n 'show-bottom-divider': scrollable && !this.isAtScrollBottom,\n };\n // The focus trap sentinels are only added after the dialog opens, since\n // dialog.showModal() will try to autofocus them, even with tabindex=\"-1\".\n const showFocusTrap = this.open && !this.noFocusTrap;\n const focusTrap = html `\n <div\n class=\"focus-trap\"\n tabindex=\"0\"\n aria-hidden=\"true\"\n @focus=${this.handleFocusTrapFocus}></div>\n `;\n const { ariaLabel } = this;\n return html `\n <div class=\"scrim\"></div>\n <dialog\n class=${classMap(classes)}\n aria-label=${ariaLabel || nothing}\n aria-labelledby=${this.hasHeadline ? 'headline' : nothing}\n role=${this.type === 'alert' ? 'alertdialog' : nothing}\n @cancel=${this.handleCancel}\n @click=${this.handleDialogClick}\n @close=${this.handleClose}\n @keydown=${this.handleKeydown}\n .returnValue=${this.returnValue || nothing}>\n ${showFocusTrap ? focusTrap : nothing}\n <div class=\"container\" @click=${this.handleContentClick}>\n <div class=\"headline\">\n <div class=\"icon\" aria-hidden=\"true\">\n <slot name=\"icon\" @slotchange=${this.handleIconChange}></slot>\n </div>\n <h2 id=\"headline\" aria-hidden=${!this.hasHeadline || nothing}>\n <slot\n name=\"headline\"\n @slotchange=${this.handleHeadlineChange}></slot>\n </h2>\n <md-divider></md-divider>\n </div>\n <div class=\"scroller\">\n <div class=\"content\">\n <div class=\"top anchor\"></div>\n <slot name=\"content\"></slot>\n <div class=\"bottom anchor\"></div>\n </div>\n </div>\n <div class=\"actions\">\n <md-divider></md-divider>\n <slot name=\"actions\" @slotchange=${this.handleActionsChange}></slot>\n </div>\n </div>\n ${showFocusTrap ? focusTrap : nothing}\n </dialog>\n `;\n }\n firstUpdated() {\n this.intersectionObserver = new IntersectionObserver((entries) => {\n for (const entry of entries) {\n this.handleAnchorIntersection(entry);\n }\n }, { root: this.scroller });\n this.intersectionObserver.observe(this.topAnchor);\n this.intersectionObserver.observe(this.bottomAnchor);\n }\n handleDialogClick() {\n if (this.nextClickIsFromContent) {\n // Avoid doing a layout calculation below if we know the click came from\n // content.\n this.nextClickIsFromContent = false;\n return;\n }\n // Click originated on the backdrop. Native `<dialog>`s will not cancel,\n // but Material dialogs do.\n const preventDefault = !this.dispatchEvent(new Event('cancel', { cancelable: true }));\n if (preventDefault) {\n return;\n }\n this.close();\n }\n handleContentClick() {\n this.nextClickIsFromContent = true;\n }\n handleSubmit(event) {\n const form = event.target;\n const { submitter } = event;\n if (form.getAttribute('method') !== 'dialog' || !submitter) {\n return;\n }\n // Close reason is the submitter's value attribute, or the dialog's\n // `returnValue` if there is no attribute.\n this.close(submitter.getAttribute('value') ?? this.returnValue);\n }\n handleCancel(event) {\n if (event.target !== this.dialog) {\n // Ignore any cancel events dispatched by content.\n return;\n }\n this.escapePressedWithoutCancel = false;\n const preventDefault = !redispatchEvent(this, event);\n // We always prevent default on the original dialog event since we'll\n // animate closing it before it actually closes.\n event.preventDefault();\n if (preventDefault) {\n return;\n }\n this.close();\n }\n handleClose() {\n if (!this.escapePressedWithoutCancel) {\n return;\n }\n this.escapePressedWithoutCancel = false;\n this.dialog?.dispatchEvent(new Event('cancel', { cancelable: true }));\n }\n handleKeydown(event) {\n if (event.key !== 'Escape') {\n return;\n }\n // An escape key was pressed. If a \"close\" event fires next without a\n // \"cancel\" event first, then we know we're in the Chrome v120 bug.\n this.escapePressedWithoutCancel = true;\n // Wait a full task for the cancel/close event listeners to fire, then\n // reset the flag.\n setTimeout(() => {\n this.escapePressedWithoutCancel = false;\n });\n }\n async animateDialog(animation) {\n // Always cancel the previous animations. Animations can include `fill`\n // modes that need to be cleared when `quick` is toggled. If not, content\n // that faded out will remain hidden when a `quick` dialog re-opens after\n // previously opening and closing without `quick`.\n this.cancelAnimations?.abort();\n this.cancelAnimations = new AbortController();\n if (this.quick) {\n return;\n }\n const { dialog, scrim, container, headline, content, actions } = this;\n if (!dialog || !scrim || !container || !headline || !content || !actions) {\n return;\n }\n const { container: containerAnimate, dialog: dialogAnimate, scrim: scrimAnimate, headline: headlineAnimate, content: contentAnimate, actions: actionsAnimate, } = animation;\n const elementAndAnimation = [\n [dialog, dialogAnimate ?? []],\n [scrim, scrimAnimate ?? []],\n [container, containerAnimate ?? []],\n [headline, headlineAnimate ?? []],\n [content, contentAnimate ?? []],\n [actions, actionsAnimate ?? []],\n ];\n const animations = [];\n for (const [element, animation] of elementAndAnimation) {\n for (const animateArgs of animation) {\n const animation = element.animate(...animateArgs);\n this.cancelAnimations.signal.addEventListener('abort', () => {\n animation.cancel();\n });\n animations.push(animation);\n }\n }\n await Promise.all(animations.map((animation) => animation.finished.catch(() => {\n // Ignore intentional AbortErrors when calling `animation.cancel()`.\n })));\n }\n handleHeadlineChange(event) {\n const slot = event.target;\n this.hasHeadline = slot.assignedElements().length > 0;\n }\n handleActionsChange(event) {\n const slot = event.target;\n this.hasActions = slot.assignedElements().length > 0;\n }\n handleIconChange(event) {\n const slot = event.target;\n this.hasIcon = slot.assignedElements().length > 0;\n }\n handleAnchorIntersection(entry) {\n const { target, isIntersecting } = entry;\n if (target === this.topAnchor) {\n this.isAtScrollTop = isIntersecting;\n }\n if (target === this.bottomAnchor) {\n this.isAtScrollBottom = isIntersecting;\n }\n }\n getIsConnectedPromise() {\n return new Promise((resolve) => {\n this.isConnectedPromiseResolve = resolve;\n });\n }\n handleFocusTrapFocus(event) {\n const [firstFocusableChild, lastFocusableChild] = this.getFirstAndLastFocusableChildren();\n if (!firstFocusableChild || !lastFocusableChild) {\n // When a dialog does not have focusable children, the dialog itself\n // receives focus.\n this.dialog?.focus();\n return;\n }\n // To determine which child to focus, we need to know which focus trap\n // received focus...\n const isFirstFocusTrap = event.target === this.firstFocusTrap;\n const isLastFocusTrap = !isFirstFocusTrap;\n // ...and where the focus came from (what was previously focused).\n const focusCameFromFirstChild = event.relatedTarget === firstFocusableChild;\n const focusCameFromLastChild = event.relatedTarget === lastFocusableChild;\n // Although this is a focus trap, focus can come from outside the trap.\n // This can happen when elements are programmatically `focus()`'d. It also\n // happens when focus leaves and returns to the window, such as clicking on\n // the browser's URL bar and pressing Tab, or switching focus between\n // iframes.\n const focusCameFromOutsideDialog = !focusCameFromFirstChild && !focusCameFromLastChild;\n // Focus the dialog's first child when we reach the end of the dialog and\n // focus is moving forward. Or, when focus is moving forwards into the\n // dialog from outside of the window.\n const shouldFocusFirstChild = (isLastFocusTrap && focusCameFromLastChild) ||\n (isFirstFocusTrap && focusCameFromOutsideDialog);\n if (shouldFocusFirstChild) {\n firstFocusableChild.focus();\n return;\n }\n // Focus the dialog's last child when we reach the beginning of the dialog\n // and focus is moving backward. Or, when focus is moving backwards into the\n // dialog from outside of the window.\n const shouldFocusLastChild = (isFirstFocusTrap && focusCameFromFirstChild) ||\n (isLastFocusTrap && focusCameFromOutsideDialog);\n if (shouldFocusLastChild) {\n lastFocusableChild.focus();\n return;\n }\n // The booleans above are verbose for readability, but code executation\n // won't actually reach here.\n }\n getFirstAndLastFocusableChildren() {\n if (!this.treewalker) {\n return [null, null];\n }\n let firstFocusableChild = null;\n let lastFocusableChild = null;\n // Reset the current node back to the root host element.\n this.treewalker.currentNode = this.treewalker.root;\n while (this.treewalker.nextNode()) {\n // Cast as Element since the TreeWalker filter only accepts Elements.\n const nextChild = this.treewalker.currentNode;\n if (!isFocusable(nextChild)) {\n continue;\n }\n if (!firstFocusableChild) {\n firstFocusableChild = nextChild;\n }\n lastFocusableChild = nextChild;\n }\n // We set lastFocusableChild immediately after finding a\n // firstFocusableChild, which means the pair is either both null or both\n // non-null. Cast since TypeScript does not recognize this.\n return [firstFocusableChild, lastFocusableChild];\n }\n}\n__decorate([\n property({ type: Boolean })\n], Dialog.prototype, \"open\", null);\n__decorate([\n property({ type: Boolean })\n], Dialog.prototype, \"quick\", void 0);\n__decorate([\n property({ attribute: false })\n], Dialog.prototype, \"returnValue\", void 0);\n__decorate([\n property()\n], Dialog.prototype, \"type\", void 0);\n__decorate([\n property({ type: Boolean, attribute: 'no-focus-trap' })\n], Dialog.prototype, \"noFocusTrap\", void 0);\n__decorate([\n query('dialog')\n], Dialog.prototype, \"dialog\", void 0);\n__decorate([\n query('.scrim')\n], Dialog.prototype, \"scrim\", void 0);\n__decorate([\n query('.container')\n], Dialog.prototype, \"container\", void 0);\n__decorate([\n query('.headline')\n], Dialog.prototype, \"headline\", void 0);\n__decorate([\n query('.content')\n], Dialog.prototype, \"content\", void 0);\n__decorate([\n query('.actions')\n], Dialog.prototype, \"actions\", void 0);\n__decorate([\n state()\n], Dialog.prototype, \"isAtScrollTop\", void 0);\n__decorate([\n state()\n], Dialog.prototype, \"isAtScrollBottom\", void 0);\n__decorate([\n query('.scroller')\n], Dialog.prototype, \"scroller\", void 0);\n__decorate([\n query('.top.anchor')\n], Dialog.prototype, \"topAnchor\", void 0);\n__decorate([\n query('.bottom.anchor')\n], Dialog.prototype, \"bottomAnchor\", void 0);\n__decorate([\n query('.focus-trap')\n], Dialog.prototype, \"firstFocusTrap\", void 0);\n__decorate([\n state()\n], Dialog.prototype, \"hasHeadline\", void 0);\n__decorate([\n state()\n], Dialog.prototype, \"hasActions\", void 0);\n__decorate([\n state()\n], Dialog.prototype, \"hasIcon\", void 0);\nfunction isFocusable(element) {\n // Check if the element is a known built-in focusable element:\n // - <a> and <area> with `href` attributes.\n // - Form controls that are not disabled.\n // - `contenteditable` elements.\n // - Anything with a non-negative `tabindex`.\n const knownFocusableElements = ':is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true])';\n const notDisabled = ':not(:disabled,[disabled])';\n const notNegativeTabIndex = ':not([tabindex^=\"-\"])';\n if (element.matches(knownFocusableElements + notDisabled + notNegativeTabIndex)) {\n return true;\n }\n const isCustomElement = element.localName.includes('-');\n if (!isCustomElement) {\n return false;\n }\n // If a custom element does not have a tabindex, it may still be focusable\n // if it delegates focus with a shadow root. We also need to check again if\n // the custom element is a disabled form control.\n if (!element.matches(notDisabled)) {\n return false;\n }\n return element.shadowRoot?.delegatesFocus ?? false;\n}\n//# sourceMappingURL=dialog.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./dialog/internal/dialog-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{border-start-start-radius:var(--md-dialog-container-shape-start-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-start-end-radius:var(--md-dialog-container-shape-start-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-end-radius:var(--md-dialog-container-shape-end-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-start-radius:var(--md-dialog-container-shape-end-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));display:contents;margin:auto;max-height:min(560px,100% - 48px);max-width:min(560px,100% - 48px);min-height:140px;min-width:280px;position:fixed;height:fit-content;width:fit-content}dialog{background:rgba(0,0,0,0);border:none;border-radius:inherit;flex-direction:column;height:inherit;margin:inherit;max-height:inherit;max-width:inherit;min-height:inherit;min-width:inherit;outline:none;overflow:visible;padding:0;width:inherit}dialog[open]{display:flex}::backdrop{background:none}.scrim{background:var(--md-sys-color-scrim, #000);display:none;inset:0;opacity:32%;pointer-events:none;position:fixed;z-index:1}:host([open]) .scrim{display:flex}h2{all:unset;align-self:stretch}.headline{align-items:center;color:var(--md-dialog-headline-color, var(--md-sys-color-on-surface, #1d1b20));display:flex;flex-direction:column;font-family:var(--md-dialog-headline-font, var(--md-sys-typescale-headline-small-font, var(--md-ref-typeface-brand, Roboto)));font-size:var(--md-dialog-headline-size, var(--md-sys-typescale-headline-small-size, 1.5rem));line-height:var(--md-dialog-headline-line-height, var(--md-sys-typescale-headline-small-line-height, 2rem));font-weight:var(--md-dialog-headline-weight, var(--md-sys-typescale-headline-small-weight, var(--md-ref-typeface-weight-regular, 400)));position:relative}slot[name=headline]::slotted(*){align-items:center;align-self:stretch;box-sizing:border-box;display:flex;gap:8px;padding:24px 24px 0}.icon{display:flex}slot[name=icon]::slotted(*){color:var(--md-dialog-icon-color, var(--md-sys-color-secondary, #625b71));fill:currentColor;font-size:var(--md-dialog-icon-size, 24px);margin-top:24px;height:var(--md-dialog-icon-size, 24px);width:var(--md-dialog-icon-size, 24px)}.has-icon slot[name=headline]::slotted(*){justify-content:center;padding-top:16px}.scrollable slot[name=headline]::slotted(*){padding-bottom:16px}.scrollable.has-headline slot[name=content]::slotted(*){padding-top:8px}.container{border-radius:inherit;display:flex;flex-direction:column;flex-grow:1;overflow:hidden;position:relative;transform-origin:top}.container::before{background:var(--md-dialog-container-color, var(--md-sys-color-surface-container-high, #ece6f0));border-radius:inherit;content:\"\";inset:0;position:absolute}.scroller{display:flex;flex:1;flex-direction:column;overflow:hidden;z-index:1}.scrollable .scroller{overflow-y:scroll}.content{color:var(--md-dialog-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-dialog-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-dialog-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-dialog-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));flex:1;font-weight:var(--md-dialog-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)));height:min-content;position:relative}slot[name=content]::slotted(*){box-sizing:border-box;padding:24px}.anchor{position:absolute}.top.anchor{top:0}.bottom.anchor{bottom:0}.actions{position:relative}slot[name=actions]::slotted(*){box-sizing:border-box;display:flex;gap:8px;justify-content:flex-end;padding:16px 24px 24px}.has-actions slot[name=content]::slotted(*){padding-bottom:8px}md-divider{display:none;position:absolute}.has-headline.show-top-divider .headline md-divider,.has-actions.show-bottom-divider .actions md-divider{display:flex}.headline md-divider{bottom:0}.actions md-divider{top:0}@media(forced-colors: active){dialog{outline:2px solid WindowText}}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=dialog-styles.cssresult.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { customElement } from 'lit/decorators.js';\nimport { Dialog } from './internal/dialog.js';\nimport { styles } from './internal/dialog-styles.cssresult.js';\n/**\n * @summary Dialogs can require an action, communicate information, or help\n * users accomplish a task. There are two types of dialogs: basic and\n * full-screen.\n *\n * @description\n * A dialog is a modal window that appears in front of app content to provide\n * critical information or ask for a decision. Dialogs disable all app\n * functionality when they appear, and remain on screen until confirmed,\n * dismissed, or a required action has been taken.\n *\n * Dialogs are purposefully interruptive, so they should be used sparingly.\n * A less disruptive alternative is to use a menu, which provides options\n * without interrupting a user’s experience.\n *\n * On mobile devices only, complex dialogs should be displayed fullscreen.\n *\n * __Example usages:__\n * - Common use cases for basic dialogs include alerts, quick selection, and\n * confirmation.\n * - More complex dialogs may contain actions that require a series of tasks\n * to complete. One example is creating a calendar entry with the event title,\n * date, location, and time.\n *\n * @final\n * @suppress {visibility}\n */\nlet MdDialog = class MdDialog extends Dialog {\n};\nMdDialog.styles = [styles];\nMdDialog = __decorate([\n customElement('md-dialog')\n], MdDialog);\nexport { MdDialog };\n//# sourceMappingURL=dialog.js.map","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n\n type Props = {\n open: boolean;\n /** `#3 Checkout flow` */\n heading: string;\n /** Rejects with a message to show; resolves when the speech is cleared. */\n onClear: () => Promise<void>;\n onClose: () => void;\n };\n\n let { open, heading, onClear, onClose }: Props = $props();\n\n let failure = $state('');\n let busy = $state(false);\n\n $effect(() => {\n if (open) failure = '';\n });\n\n async function confirm(): Promise<void> {\n if (busy) return;\n failure = '';\n busy = true;\n try {\n await onClear();\n onClose();\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The speech could not be cleared.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">Clear speech?</div>\n <div slot=\"content\">\n <p>\n The speech of <strong>{heading}</strong> is removed from the bridge. The session keeps running.\n This cannot be undone.\n </p>\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n </div>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" disabled={busy} onclick={confirm}>Clear</md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n max-width: min(400px, calc(100% - 48px));\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n p {\n margin: 0;\n }\n\n .failure {\n margin-top: 12px;\n color: var(--md-sys-color-error);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n\n type Props = {\n open: boolean;\n /** `#3 Checkout flow` */\n heading: string;\n /** Rejects with a message to show; resolves when the session is deleted. */\n onDelete: () => Promise<void>;\n onClose: () => void;\n };\n\n let { open, heading, onDelete, onClose }: Props = $props();\n\n let failure = $state('');\n let busy = $state(false);\n\n $effect(() => {\n if (open) failure = '';\n });\n\n async function confirm(): Promise<void> {\n if (busy) return;\n failure = '';\n busy = true;\n try {\n await onDelete();\n onClose();\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The session could not be deleted.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">Delete session?</div>\n <div slot=\"content\">\n <p>\n <strong>{heading}</strong> and its speech are removed from the bridge. This cannot be undone.\n </p>\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n </div>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" disabled={busy} onclick={confirm}>Delete</md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n max-width: min(400px, calc(100% - 48px));\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n p {\n margin: 0;\n }\n\n .failure {\n margin-top: 12px;\n color: var(--md-sys-color-error);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n import '@material/web/textfield/outlined-text-field.js';\n import { API_LIMITS } from '@screenreader-speech-capture/shared';\n\n type Props = {\n open: boolean;\n /** Rejects with a message to show; resolves when the marker is in. */\n onAdd: (label: string) => Promise<void>;\n onClose: () => void;\n };\n\n let { open, onAdd, onClose }: Props = $props();\n\n let label = $state('');\n let labelError = $state('');\n let failure = $state('');\n let busy = $state(false);\n\n $effect(() => {\n if (open) {\n label = '';\n labelError = '';\n failure = '';\n }\n });\n\n async function submit(event: SubmitEvent): Promise<void> {\n event.preventDefault();\n if (busy) return;\n const trimmed = label.trim();\n if (trimmed === '') {\n labelError = 'Enter a label.';\n return;\n }\n labelError = '';\n failure = '';\n busy = true;\n try {\n await onAdd(trimmed);\n onClose();\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The marker could not be added.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">Add a marker</div>\n <form slot=\"content\" id=\"add-marker-form\" novalidate onsubmit={submit}>\n <md-outlined-text-field\n label=\"Label\"\n required\n maxlength={API_LIMITS.markerLength}\n supporting-text=\"Shows in the log as a row of its own, for example “step 3”.\"\n value={label}\n error={labelError !== ''}\n error-text={labelError}\n oninput={(event: Event) => (label = (event.target as HTMLInputElement).value)}\n ></md-outlined-text-field>\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n </form>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <md-text-button type=\"submit\" form=\"add-marker-form\" disabled={busy}>Add</md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n min-width: min(360px, 70vw);\n }\n\n .failure {\n margin: 0;\n color: var(--md-sys-color-error);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n import type { SpeechEntryDto } from '@screenreader-speech-capture/shared';\n import { formatReceivedTime } from '#lib/core/speech.js';\n\n type Props = {\n /** Oldest first. */\n entries: readonly SpeechEntryDto[];\n };\n\n let { entries }: Props = $props();\n\n /** A row that arrived this recently gets the tint that fades out (see `--app-new-row-ms`). */\n const FRESH_MS = 2000;\n const fresh = (entry: SpeechEntryDto): boolean =>\n Date.now() - Date.parse(entry.receivedAt) < FRESH_MS;\n</script>\n\n<table aria-label=\"Speech\">\n <thead>\n <tr>\n <th scope=\"col\">Received</th>\n <th scope=\"col\">Spoken text</th>\n <th scope=\"col\" class=\"seq\">Seq</th>\n </tr>\n </thead>\n <tbody>\n {#each entries as entry (entry.seq)}\n <tr class:fresh={fresh(entry)} class:marker={entry.kind === 'marker'}>\n <td class=\"time mono\">{formatReceivedTime(entry.receivedAt)}</td>\n <td class=\"text\">\n {#if entry.kind === 'marker'}\n <span class=\"pill\" title={entry.text}>\n <md-icon aria-hidden=\"true\">bookmark</md-icon>\n <span class=\"visually-hidden\">Marker: </span>\n <span class=\"label mono\">{entry.text}</span>\n </span>\n {:else}\n {entry.text}\n {/if}\n </td>\n <td class=\"seq mono\">#{entry.seq}</td>\n </tr>\n {/each}\n </tbody>\n</table>\n\n<style>\n table {\n width: 100%;\n /* `collapse` would leave the borders of the sticky header behind when scrolling. */\n border-collapse: separate;\n border-spacing: 0;\n }\n\n thead th {\n position: sticky;\n top: 0;\n z-index: 1;\n padding: 6px 12px;\n border-top: 1px solid var(--md-sys-color-outline-variant);\n border-bottom: 1px solid var(--md-sys-color-outline-variant);\n background: var(--md-sys-color-surface-container-low);\n color: var(--md-sys-color-on-surface-variant);\n font-size: 11px;\n font-weight: 500;\n letter-spacing: 0.5px;\n text-align: left;\n text-transform: uppercase;\n }\n\n thead th:first-child {\n padding-left: 24px;\n }\n\n th.seq,\n td.seq {\n padding-right: 24px;\n text-align: left;\n }\n\n tbody tr:hover {\n background: var(--md-sys-color-surface-container);\n }\n\n td {\n padding: 7px 12px;\n vertical-align: baseline;\n }\n\n /* Time and seq are as wide as their text (seq is a 13-digit number); the text takes the rest. */\n td.time,\n td.seq {\n width: 1%;\n white-space: nowrap;\n }\n\n td.time {\n padding-left: 24px;\n color: var(--md-sys-color-on-surface-variant);\n font-size: var(--app-mono-size);\n line-height: var(--app-mono-line-height);\n }\n\n td.text {\n color: var(--md-sys-color-on-surface);\n font-size: var(--app-log-text-size);\n line-height: var(--app-log-text-line-height);\n overflow-wrap: anywhere;\n }\n\n td.seq {\n color: var(--md-sys-color-outline);\n font-size: 11px;\n }\n\n tr.fresh {\n animation: fade-new calc(var(--app-new-row-ms) * 1ms) ease-out;\n }\n\n /* High-contrast themes: a left edge marks the new row too (the tint alone is a weak cue). */\n tr.fresh td:first-child {\n animation: fade-new-edge calc(var(--app-new-row-ms) * 1ms) ease-out;\n }\n\n @keyframes fade-new {\n from {\n background: var(--app-new-row);\n }\n }\n\n @keyframes fade-new-edge {\n from {\n box-shadow: inset calc(var(--app-border-width) * 2) 0 0 var(--md-sys-color-primary);\n }\n }\n\n /* In a narrow log the sequence number is the first thing to go (the log pane is the container). */\n @container (max-width: 520px) {\n th.seq,\n td.seq {\n display: none;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n tr.fresh {\n animation: none;\n }\n }\n\n .pill {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n max-width: 70%;\n height: 24px;\n padding: 0 8px 0 4px;\n border-radius: 6px;\n background: var(--md-sys-color-tertiary-container);\n color: var(--md-sys-color-on-tertiary-container);\n font-size: 12px;\n font-weight: 500;\n line-height: 16px;\n vertical-align: middle;\n }\n\n .pill md-icon {\n --md-icon-size: 16px;\n font-size: 16px;\n }\n\n .label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/filled-tonal-button.js';\n import '@material/web/icon/icon.js';\n import '@material/web/iconbutton/icon-button.js';\n import type { SpeechEntryDto } from '@screenreader-speech-capture/shared';\n import type { FeedState } from '#lib/core/speech.js';\n import ClearSpeechDialog from './ClearSpeechDialog.svelte';\n import DeleteSessionDialog from './DeleteSessionDialog.svelte';\n import MarkerDialog from './MarkerDialog.svelte';\n import SpeechTable from './SpeechTable.svelte';\n\n type Props = {\n /** `#3 Checkout flow`, or `Outside sessions`. */\n heading: string;\n /** Oldest first. */\n entries: readonly SpeechEntryDto[];\n connection: FeedState;\n /** Whether a marker added now shows up in this log (see `canAddMarker`). */\n canMark: boolean;\n /** Rejects with a message to show; resolves when the marker is in. */\n onAddMarker: (label: string) => Promise<void>;\n /** Whether the shown scope is an ended session that can be deleted (see `canDeleteSession`). */\n canDelete: boolean;\n /** Whether the shown scope can be cleared: the current session, or the speech outside sessions. */\n canClear: boolean;\n /** Rejects with a message to show; resolves when the speech is cleared. */\n onClear: () => Promise<void>;\n /** Rejects with a message to show; resolves when the session is deleted. */\n onDelete: () => Promise<void>;\n };\n\n let {\n heading,\n entries,\n connection,\n canMark,\n onAddMarker,\n canDelete,\n onDelete,\n canClear,\n onClear,\n }: Props = $props();\n\n let markerOpen = $state(false);\n let deleteOpen = $state(false);\n let clearOpen = $state(false);\n\n /** Scrolled up further than this from the end, the log stops following new rows. */\n const FOLLOW_SLACK_PX = 48;\n\n let scroller: HTMLElement | undefined = $state();\n let following = $state(true);\n\n function onScroll(): void {\n if (!scroller) return;\n following =\n scroller.scrollHeight - scroller.scrollTop - scroller.clientHeight <= FOLLOW_SLACK_PX;\n }\n\n function jumpToLatest(): void {\n following = true;\n scroller?.scrollTo({ top: scroller.scrollHeight });\n }\n\n // After the new row is in the DOM, stay at the end while following. An empty table is a new\n // scope (or a wipe): start following again.\n $effect(() => {\n if (entries.length === 0) following = true;\n if (following && scroller) scroller.scrollTop = scroller.scrollHeight;\n });\n</script>\n\n<section class=\"log\" aria-labelledby=\"log-heading\">\n <header>\n <h1 id=\"log-heading\" class=\"trunc\">{heading}</h1>\n {#if canMark || canClear || canDelete}\n <div role=\"toolbar\" aria-label=\"Log actions\">\n {#if canMark}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n title=\"Add marker\"\n aria-label=\"Add marker\"\n onclick={() => (markerOpen = true)}\n >\n <md-icon aria-hidden=\"true\">bookmark_add</md-icon>\n </md-icon-button>\n {/if}\n {#if canClear}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n title=\"Clear speech\"\n aria-label=\"Clear speech\"\n disabled={entries.length === 0}\n onclick={() => (clearOpen = true)}\n >\n <md-icon aria-hidden=\"true\">delete_sweep</md-icon>\n </md-icon-button>\n {/if}\n {#if canDelete}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n title=\"Delete session\"\n aria-label=\"Delete session\"\n onclick={() => (deleteOpen = true)}\n >\n <md-icon aria-hidden=\"true\">delete</md-icon>\n </md-icon-button>\n {/if}\n </div>\n {/if}\n </header>\n\n <!-- Focusable so the keyboard can scroll it. -->\n <!-- svelte-ignore a11y_no_noninteractive_tabindex -->\n <div\n class=\"scroll\"\n bind:this={scroller}\n onscroll={onScroll}\n role=\"region\"\n aria-label=\"Speech log\"\n aria-live=\"off\"\n tabindex=\"0\"\n >\n <!-- Always there, so its header row doesn't come and go while another scope loads. -->\n <SpeechTable {entries} />\n {#if entries.length === 0}\n <div class=\"empty\">\n <md-icon aria-hidden=\"true\">mic</md-icon>\n {#if connection === 'ended'}\n <p class=\"title\">No entries left</p>\n <p>This session's entries are no longer in the buffer.</p>\n {:else}\n <p class=\"title\">No speech yet</p>\n <p>Make the screen reader speak.</p>\n {/if}\n </div>\n {/if}\n </div>\n\n {#if connection === 'reconnecting' || connection === 'failed' || !following}\n <footer>\n {#if connection === 'reconnecting'}\n <p role=\"status\" class=\"mono\">Connection lost, reconnecting…</p>\n {:else if connection === 'failed'}\n <p role=\"alert\" class=\"mono failed\">The speech could not be loaded.</p>\n {:else}\n <span></span>\n {/if}\n {#if !following}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-filled-tonal-button onclick={jumpToLatest}>\n <md-icon slot=\"icon\" aria-hidden=\"true\">arrow_downward</md-icon>\n Jump to latest\n </md-filled-tonal-button>\n {/if}\n </footer>\n {/if}\n</section>\n\n{#if canMark}\n <MarkerDialog open={markerOpen} onAdd={onAddMarker} onClose={() => (markerOpen = false)} />\n{/if}\n\n{#if canClear}\n <ClearSpeechDialog open={clearOpen} {heading} {onClear} onClose={() => (clearOpen = false)} />\n{/if}\n\n{#if canDelete}\n <DeleteSessionDialog\n open={deleteOpen}\n {heading}\n {onDelete}\n onClose={() => (deleteOpen = false)}\n />\n{/if}\n\n<style>\n .log {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n overflow: hidden;\n border: 1px solid var(--md-sys-color-outline-variant);\n border-width: max(1px, var(--app-border-width));\n border-radius: 16px;\n background: var(--md-sys-color-surface-container-lowest);\n }\n\n header {\n box-sizing: border-box;\n flex: none;\n /* The icon button (40px) is only there in some scopes: always reserve its height, so the\n table doesn't jump when the selected session changes. */\n min-height: 64px;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px 12px 8px 24px;\n }\n\n h1 {\n flex: 1;\n min-width: 0;\n margin: 0;\n color: var(--md-sys-color-on-surface);\n font-size: 22px;\n font-weight: 500;\n line-height: 28px;\n }\n\n .trunc {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .scroll {\n container-type: inline-size;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n /* Hidden for a moment: while another scope's rows load there is no point in saying \"No speech\". */\n .empty {\n animation: reveal 0s 250ms backwards;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 96px 24px;\n color: var(--md-sys-color-on-surface-variant);\n text-align: center;\n }\n\n @keyframes reveal {\n from {\n visibility: hidden;\n }\n }\n\n .empty md-icon {\n --md-icon-size: 40px;\n font-size: 40px;\n }\n\n .empty p {\n margin: 4px 0 0;\n font-size: 14px;\n }\n\n .empty .title {\n color: var(--md-sys-color-on-surface);\n font-size: 16px;\n font-weight: 500;\n }\n\n footer {\n flex: none;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 8px 12px 8px 24px;\n border-top: 1px solid var(--md-sys-color-outline-variant);\n background: var(--md-sys-color-surface-container-low);\n }\n\n footer p.failed {\n color: var(--md-sys-color-error);\n }\n\n footer p {\n margin: 0;\n color: var(--md-sys-color-on-surface-variant);\n font-size: var(--app-mono-size);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/ripple/ripple.js';\n import type { Snippet } from 'svelte';\n\n type Props = {\n /** One line, cut off with an ellipsis. */\n title: string;\n /** The muted monospace line under the title. */\n subtitle?: Snippet;\n /** Actions at the end of the row. They sit beside the select button, never inside it. */\n trailing?: Snippet;\n /** Highlights the row and sets `aria-current`. */\n selected?: boolean;\n /**\n * What a screen reader should hear instead of the visual subtitle. Without it the subtitle\n * is read as it is.\n */\n description?: string;\n /**\n * The row's corner radius as a CSS value. Defaults to 8px, the radius of md-list-item's\n * focus ring (md-list-item itself has no container shape).\n */\n shape?: string;\n onSelect: () => void;\n };\n\n let {\n title,\n subtitle,\n trailing,\n selected = false,\n description,\n shape,\n onSelect,\n }: Props = $props();\n</script>\n\n<li class:selected style:--list-item-shape={shape}>\n <!-- One hover and press layer for the whole row, trailing actions included. -->\n <md-ripple aria-hidden=\"true\"></md-ripple>\n <button\n type=\"button\"\n class=\"select\"\n aria-current={selected ? 'true' : undefined}\n onclick={onSelect}\n >\n <span class=\"title\">{title}</span>\n {#if subtitle}\n <!-- With a description, the sentence below says all of this once. -->\n <span class=\"subtitle\" aria-hidden={description === undefined ? undefined : 'true'}>\n {@render subtitle()}\n </span>\n {/if}\n {#if description !== undefined}<span class=\"sr-only\">{description}</span>{/if}\n </button>\n {#if trailing}\n <!-- A sibling of the select button, so no interactive element sits inside another. -->\n <span class=\"trailing\">{@render trailing()}</span>\n {/if}\n</li>\n\n<style>\n li {\n position: relative;\n display: flex;\n align-items: center;\n min-height: 60px;\n border-radius: var(--list-item-shape, var(--md-sys-shape-corner-small, 8px));\n color: var(--md-sys-color-on-surface);\n /* The layer follows the text colour, so it shows on the selected row too. */\n --md-ripple-hover-color: currentColor;\n --md-ripple-pressed-color: currentColor;\n }\n\n li.selected {\n outline: var(--app-border-width) solid var(--md-sys-color-outline);\n outline-offset: calc(var(--app-border-width) * -1);\n background: var(--md-sys-color-secondary-container);\n color: var(--md-sys-color-on-secondary-container);\n }\n\n .select {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 4px;\n align-items: flex-start;\n min-width: 0;\n min-height: 60px;\n padding: 8px 16px;\n border: 0;\n border-radius: inherit;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n justify-content: center;\n }\n\n .title {\n max-width: 100%;\n overflow: hidden;\n font-size: var(--md-sys-typescale-label-large-size, 14px);\n font-weight: 500;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n /* Font, size and colour are inherited by whatever the subtitle snippet renders. */\n .subtitle {\n max-width: 100%;\n overflow: hidden;\n color: var(--md-sys-color-on-surface-variant);\n font-family: var(--app-font-mono);\n font-size: var(--app-mono-size);\n white-space: nowrap;\n }\n\n li.selected .subtitle {\n color: inherit;\n }\n\n .trailing {\n display: flex;\n flex: none;\n margin-right: 8px;\n }\n\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n</style>\n","import type {\n SessionDto,\n SessionListDto,\n StartSessionResponseDto,\n} from '@screenreader-speech-capture/shared';\n\n/** Where the sessions come from and go to (the HTTP adapter asks the BFF, which asks the bridge). */\nexport interface SessionsApi {\n list(): Promise<SessionListDto>;\n start(name: string, run: string | null): Promise<StartSessionResponseDto>;\n /** Ends the current session; does nothing if none is current. */\n end(): Promise<void>;\n /** Deletes an ended session and its speech. Rejects with the bridge's message. */\n delete(id: number): Promise<void>;\n}\n\n/** `4 s`, `3 min 12 s`, `1 h 05 min`. Never negative (the bridge's clock may run ahead). */\nexport function formatDuration(milliseconds: number): string {\n const total = Math.max(0, Math.floor(milliseconds / 1000));\n const hours = Math.floor(total / 3600);\n const minutes = Math.floor((total % 3600) / 60);\n const seconds = total % 60;\n if (hours > 0) return `${hours} h ${String(minutes).padStart(2, '0')} min`;\n if (minutes > 0) return `${minutes} min ${seconds} s`;\n return `${seconds} s`;\n}\n\nexport type SessionMeta = {\n /** `#7` */\n id: string;\n run: string | null;\n duration: string;\n /** `4 entries`, `1 entry` */\n entries: string;\n /** The same facts as a sentence, for the screen reader. */\n spoken: string;\n};\n\n/** What a row shows under the name. `now` (epoch ms) is the end of a session that is still live. */\nexport function describeSession(session: SessionDto, now: number): SessionMeta {\n const end = session.endedAt === null ? now : Date.parse(session.endedAt);\n const duration = formatDuration(end - Date.parse(session.startedAt));\n const live = session.endedAt === null;\n const entries = `${session.entries} ${session.entries === 1 ? 'entry' : 'entries'}`;\n const parts = [\n `Session ${session.id}`,\n live ? 'live' : null,\n session.run === null ? null : `run ${session.run}`,\n duration,\n entries,\n ];\n return {\n id: `#${session.id}`,\n run: session.run,\n duration,\n entries,\n spoken: parts.filter((part) => part !== null).join(', '),\n };\n}\n\n/** What the log shows: a session by id, or `'none'` for the speech outside any session. */\nexport type SessionScope = number | 'none';\n\n/** The URL value that selects the speech outside any session (the bridge's `session=none`). */\nexport const OUTSIDE_SESSIONS = 'none';\n\n/**\n * The scope a pane shows: `none` if the URL asks for it, the session named in the URL if it still\n * exists, otherwise the current one (following), otherwise the speech outside any session.\n */\nexport function selectedScope(\n requested: string | null,\n sessions: SessionDto[],\n currentId: number | null,\n): SessionScope {\n if (requested === OUTSIDE_SESSIONS) return OUTSIDE_SESSIONS;\n const id = requested === null || !/^\\d+$/.test(requested) ? null : Number(requested);\n if (id !== null && sessions.some((session) => session.id === id)) return id;\n return currentId ?? OUTSIDE_SESSIONS;\n}\n\n/**\n * The session to show once `deletedId` is gone: the next older one, else the next newer one\n * (`sessions` is newest first), else `null`, which the page resolves to the current session or the\n * speech outside any session (`selectedScope`).\n */\nexport function scopeAfterDelete(deletedId: number, sessions: SessionDto[]): number | null {\n const at = sessions.findIndex((session) => session.id === deletedId);\n if (at === -1) return null;\n return (sessions[at + 1] ?? sessions[at - 1])?.id ?? null;\n}\n","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n\n type Props = {\n open: boolean;\n sessionId: number | null;\n /** The session's entry count; the bridge forgets a session that ends with none. */\n entries: number | null;\n /** Rejects with a message to show; resolves when the session has ended. */\n onEnd: () => Promise<void>;\n onClose: () => void;\n };\n\n let { open, sessionId, entries, onEnd, onClose }: Props = $props();\n\n const empty = $derived(entries === 0);\n\n let failure = $state('');\n let busy = $state(false);\n\n $effect(() => {\n if (open) failure = '';\n });\n\n async function confirm(): Promise<void> {\n if (busy) return;\n failure = '';\n busy = true;\n try {\n await onEnd();\n onClose();\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The session could not be ended.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">\n {empty ? 'Drop' : 'End'} session {sessionId === null ? '' : `#${sessionId}`}?\n </div>\n <div slot=\"content\">\n {#if empty}\n <p>This session has no entries, so ending it deletes it. Its number is not reused.</p>\n {:else}\n <p>Speech captured after this belongs to no session.</p>\n {/if}\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n </div>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" disabled={busy} onclick={confirm}>End session</md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n /* The dialog is as wide as its longest line by default; a cap makes the text wrap. */\n max-width: min(400px, calc(100% - 48px));\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n p {\n margin: 0;\n }\n\n .failure {\n margin-top: 12px;\n color: var(--md-sys-color-error);\n }\n</style>\n","<script lang=\"ts\">\n import ListItem from '#lib/components/ListItem/ListItem.svelte';\n import { describeSession } from '#lib/core/sessions.js';\n import type { SessionDto } from '@screenreader-speech-capture/shared';\n\n type Props = {\n session: SessionDto;\n /** Epoch ms: the end of a live session's duration. */\n now: number;\n selected: boolean;\n live: boolean;\n onSelect: () => void;\n };\n\n let { session, now, selected, live, onSelect }: Props = $props();\n\n const meta = $derived(describeSession(session, now));\n</script>\n\n{#snippet subtitle()}\n <span class=\"meta\">\n {#if live}<span class=\"dot\"></span>{/if}\n <span>{meta.id}</span>\n {#if meta.run !== null}<span class=\"run\">{meta.run}</span>{/if}\n <span>{meta.duration}</span>\n <span>{meta.entries}</span>\n </span>\n{/snippet}\n\n<ListItem\n title={session.name}\n shape=\"var(--md-sys-shape-corner-extra-large, 28px)\"\n {subtitle}\n {selected}\n description={meta.spoken}\n {onSelect}\n/>\n\n<style>\n /* One line. The run name and then the entry count shrink with an ellipsis; the rest stays whole. */\n .meta {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n .meta > span {\n flex: none;\n white-space: nowrap;\n }\n\n .meta > :not(:last-child)::after {\n content: '\\00a0·\\00a0';\n }\n\n .meta > .dot::after {\n content: none;\n }\n\n .meta > .run,\n .meta > span:last-child {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .dot {\n flex: none;\n width: 8px;\n height: 8px;\n margin-right: 6px;\n border-radius: 50%;\n background: var(--app-success);\n animation: pulse 1.6s ease-in-out infinite;\n }\n\n @keyframes pulse {\n 50% {\n opacity: 0.35;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .dot {\n animation: none;\n }\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n import '@material/web/textfield/outlined-text-field.js';\n import { API_LIMITS } from '@screenreader-speech-capture/shared';\n\n type Props = {\n open: boolean;\n /** Rejects with a message to show; resolves when the session has started. */\n onStart: (name: string, run: string | null) => Promise<void>;\n onClose: () => void;\n };\n\n let { open, onStart, onClose }: Props = $props();\n\n let name = $state('');\n let run = $state('');\n let nameError = $state('');\n let failure = $state('');\n let busy = $state(false);\n\n $effect(() => {\n if (open) {\n name = '';\n run = '';\n nameError = '';\n failure = '';\n }\n });\n\n async function submit(event: SubmitEvent): Promise<void> {\n event.preventDefault();\n if (busy) return;\n const trimmedName = name.trim();\n if (trimmedName === '') {\n nameError = 'Enter a name.';\n return;\n }\n nameError = '';\n failure = '';\n busy = true;\n try {\n await onStart(trimmedName, run.trim() === '' ? null : run.trim());\n onClose();\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The session could not be started.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">Start a session</div>\n <form slot=\"content\" id=\"start-session-form\" novalidate onsubmit={submit}>\n <md-outlined-text-field\n label=\"Name\"\n required\n maxlength={API_LIMITS.sessionLabelLength}\n value={name}\n error={nameError !== ''}\n error-text={nameError}\n oninput={(event: Event) => (name = (event.target as HTMLInputElement).value)}\n ></md-outlined-text-field>\n <md-outlined-text-field\n label=\"Run (optional)\"\n supporting-text=\"Groups sessions, for example one run id per test run.\"\n maxlength={API_LIMITS.sessionLabelLength}\n value={run}\n oninput={(event: Event) => (run = (event.target as HTMLInputElement).value)}\n ></md-outlined-text-field>\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n </form>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <md-text-button type=\"submit\" form=\"start-session-form\" disabled={busy}>Start</md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n min-width: min(360px, 70vw);\n }\n\n .failure {\n margin: 0;\n color: var(--md-sys-color-error);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n import '@material/web/iconbutton/icon-button.js';\n import type { SessionDto } from '@screenreader-speech-capture/shared';\n import ListItem from '#lib/components/ListItem/ListItem.svelte';\n import { OUTSIDE_SESSIONS, type SessionScope } from '#lib/core/sessions.js';\n import EndSessionDialog from './EndSessionDialog.svelte';\n import SessionRow from './SessionRow.svelte';\n import StartSessionDialog from './StartSessionDialog.svelte';\n\n type Props = {\n /** Newest first. */\n sessions: SessionDto[];\n currentId: number | null;\n /** Entries in the buffer recorded outside any session. */\n outsideEntries: number;\n /** The session the log shows, or `'none'` for the speech outside any session. */\n selectedId: SessionScope;\n /** Epoch ms, for the duration of the live session. */\n now: number;\n /** Only the header buttons show; the list and the heading are hidden. */\n collapsed?: boolean;\n onToggleCollapse?: () => void;\n onSelect: (id: SessionScope) => void;\n onStart: (name: string, run: string | null) => Promise<void>;\n onEnd: () => Promise<void>;\n };\n\n let {\n sessions,\n currentId,\n outsideEntries,\n selectedId,\n now,\n collapsed = false,\n onToggleCollapse,\n onSelect,\n onStart,\n onEnd,\n }: Props = $props();\n\n let startOpen = $state(false);\n let endOpen = $state(false);\n\n const toggleLabel = $derived(currentId === null ? 'Start a session' : `End session ${currentId}`);\n\n const collapseLabel = $derived(collapsed ? 'Expand sessions' : 'Collapse sessions');\n\n const entries = $derived(outsideEntries === 1 ? '1 entry' : `${outsideEntries} entries`);\n</script>\n\n{#snippet subtitle()}\n <span>{entries}</span>\n{/snippet}\n\n<section aria-labelledby=\"sessions-heading\" class:collapsed>\n <header>\n <!-- First, so it stays where it is when the pane collapses and the buttons stack. -->\n {#if onToggleCollapse}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n class=\"collapse\"\n title={collapseLabel}\n aria-label={collapseLabel}\n aria-expanded={!collapsed}\n onclick={onToggleCollapse}\n >\n <md-icon aria-hidden=\"true\">{collapsed ? 'left_panel_open' : 'left_panel_close'}</md-icon>\n </md-icon-button>\n {/if}\n <h2 id=\"sessions-heading\" class:visually-hidden={collapsed}>Sessions</h2>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n class={currentId === null ? 'start' : 'stop'}\n title={toggleLabel}\n aria-label={toggleLabel}\n onclick={() => (currentId === null ? (startOpen = true) : (endOpen = true))}\n >\n <md-icon aria-hidden=\"true\">{currentId === null ? 'play_arrow' : 'stop'}</md-icon>\n </md-icon-button>\n </header>\n\n {#if collapsed}\n <!-- Only the header shows while collapsed. -->\n {:else if sessions.length === 0}\n <p class=\"empty\">No sessions in the buffer. Start one with the play button.</p>\n {:else}\n <ul aria-labelledby=\"sessions-heading\">\n {#each sessions as session (session.id)}\n <SessionRow\n {session}\n {now}\n live={session.id === currentId}\n selected={session.id === selectedId}\n onSelect={() => onSelect(session.id)}\n />\n {/each}\n </ul>\n {/if}\n\n <!-- Pinned below the list: not a session, so it stays out of the newest-first order. Always shown\n while expanded, so it doesn't vanish when a session starts. -->\n {#if !collapsed}\n <ul class=\"outside\" aria-label=\"Outside sessions\">\n <ListItem\n title=\"Outside sessions\"\n shape=\"var(--md-sys-shape-corner-extra-large, 28px)\"\n {subtitle}\n selected={selectedId === OUTSIDE_SESSIONS}\n description={`Speech captured while no session was running, ${entries}`}\n onSelect={() => onSelect(OUTSIDE_SESSIONS)}\n />\n </ul>\n {/if}\n</section>\n\n<StartSessionDialog open={startOpen} {onStart} onClose={() => (startOpen = false)} />\n<EndSessionDialog\n open={endOpen}\n sessionId={currentId}\n entries={sessions.find((session) => session.id === currentId)?.entries ?? null}\n {onEnd}\n onClose={() => (endOpen = false)}\n/>\n\n<style>\n section {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n padding: 16px 12px;\n border: var(--app-border-width) solid var(--md-sys-color-outline);\n border-radius: 28px;\n background: var(--md-sys-color-surface-container-low);\n }\n\n header {\n flex: none;\n display: flex;\n align-items: center;\n padding: 0 4px 8px 0;\n }\n\n /* The buttons stack; the section's 12px padding and the 72px strip keep the first one at the\n same x (and y) as when expanded. */\n section.collapsed {\n align-items: flex-start;\n }\n\n .collapsed header {\n flex-direction: column;\n padding: 0;\n }\n\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n\n h2 {\n flex: 1;\n margin: 0 0 0 8px;\n font-size: var(--md-sys-typescale-title-medium-size, 16px);\n font-weight: 500;\n }\n\n .start {\n --md-icon-button-icon-color: var(--md-sys-color-primary);\n --md-icon-button-hover-icon-color: var(--md-sys-color-primary);\n --md-icon-button-focus-icon-color: var(--md-sys-color-primary);\n }\n\n .stop {\n --md-icon-button-icon-color: var(--md-sys-color-error);\n --md-icon-button-hover-icon-color: var(--md-sys-color-error);\n --md-icon-button-focus-icon-color: var(--md-sys-color-error);\n }\n\n ul {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 4px;\n min-height: 0;\n overflow-y: auto;\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n /* Not scrollable and not stretched: it sits at the bottom, under the (possibly empty) list. */\n ul.outside {\n flex: none;\n margin-top: auto;\n padding-top: 8px;\n overflow: visible;\n border-top: 1px solid var(--md-sys-color-outline-variant);\n }\n\n .empty {\n margin: 0;\n padding: 8px 16px;\n color: var(--md-sys-color-on-surface-variant);\n }\n</style>\n","<script lang=\"ts\">\n import { onMount, untrack } from 'svelte';\n import { goto } from '$app/navigation';\n import { resolve } from '$app/paths';\n import { page } from '$app/state';\n import SpeechLog from '#lib/components/SpeechLog/SpeechLog.svelte';\n import SessionsPane from '#lib/components/SessionsPane/SessionsPane.svelte';\n import { sessionsPaneStore, sessionsStore, speechStore } from '#lib/composition.js';\n import { scopeAfterDelete, selectedScope, type SessionScope } from '#lib/core/sessions.js';\n import {\n canAddMarker,\n canClearSpeech,\n canDeleteSession,\n isLiveScope,\n logHeading,\n } from '#lib/core/speech.js';\n import type { PageProps } from './$types';\n\n let { data }: PageProps = $props();\n\n // Until the store has read the list, show what the server rendered (`+page.server.ts`), so the\n // server's HTML already has the sessions. The store is shared by all requests: it is never\n // filled on the server.\n const list = $derived(\n sessionsStore.loaded\n ? {\n sessions: sessionsStore.sessions,\n currentId: sessionsStore.currentId,\n outsideEntries: sessionsStore.outsideEntries,\n }\n : (data.sessions ?? { sessions: [], currentId: null, outsideEntries: 0 }),\n );\n const now = $derived(sessionsStore.loaded ? sessionsStore.now : data.now);\n\n // The URL names the selected session (or `none`, the speech outside any session); without it the\n // pane follows the current session, and with no current session it shows the speech outside.\n const selectedId = $derived(\n selectedScope(page.url.searchParams.get('session'), list.sessions, list.currentId),\n );\n\n const heading = $derived(logHeading(selectedId, list.sessions));\n const canMark = $derived(canAddMarker(selectedId, list.currentId));\n const canClear = $derived(canClearSpeech(selectedId, list.currentId));\n const canDelete = $derived(canDeleteSession(selectedId, list.currentId));\n\n onMount(() => {\n sessionsPaneStore.init();\n return sessionsStore.init(data.sessions);\n });\n\n // The log follows the selected scope; it only runs in the browser (effects never run on the\n // server). Whether the scope is live is read once, when it opens: a session that ends while it\n // is shown keeps what it has, and is read as an ended one the next time it is selected.\n $effect(() =>\n speechStore.open(\n selectedId,\n untrack(() => isLiveScope(selectedId, list.currentId)),\n ),\n );\n\n function select(id: SessionScope | null): Promise<void> {\n // Always spelled out, even for the current session: a clean URL only follows the current\n // session, so it would jump to the speech outside once that session ends.\n // eslint-disable-next-line svelte/no-navigation-without-resolve\n return goto(id === null ? resolve('/') : `${resolve('/')}?session=${id}`, { reset: false });\n }\n\n async function end(): Promise<void> {\n const ended = list.currentId;\n await sessionsStore.end();\n // A session without entries is dropped by the bridge: don't leave its id in the URL.\n if (ended !== null && !list.sessions.some((session) => session.id === ended)) {\n await select(null);\n }\n }\n\n async function clear(): Promise<void> {\n await speechStore.clear(selectedId);\n // The table empties through the feed; the counts in the list don't wait for the next poll.\n await sessionsStore.refresh();\n }\n\n async function remove(): Promise<void> {\n if (typeof selectedId !== 'number') return;\n const next = scopeAfterDelete(selectedId, list.sessions);\n await sessionsStore.delete(selectedId);\n // Without a neighbour the URL is dropped, and the pane follows the current session (or the\n // speech outside any session).\n await select(next);\n }\n\n async function start(name: string, run: string | null): Promise<void> {\n const started = await sessionsStore.start(name, run);\n await select(started.id); // pinned in the URL, so it stays selected after it ends\n }\n</script>\n\n<div class=\"monitor\">\n <aside class:collapsed={sessionsPaneStore.collapsed}>\n <SessionsPane\n collapsed={sessionsPaneStore.collapsed}\n onToggleCollapse={() => sessionsPaneStore.toggle()}\n sessions={list.sessions}\n currentId={list.currentId}\n outsideEntries={list.outsideEntries}\n {selectedId}\n {now}\n onSelect={(id: SessionScope) => void select(id)}\n onStart={start}\n onEnd={end}\n />\n </aside>\n <div class=\"log\">\n <SpeechLog\n {heading}\n entries={speechStore.entries}\n connection={speechStore.connection}\n {canMark}\n onAddMarker={(label: string) => speechStore.addMarker(label)}\n {canClear}\n onClear={clear}\n {canDelete}\n onDelete={remove}\n />\n </div>\n</div>\n\n<style>\n /* The same gap above as below, and the one the rail keeps above its active item, so the pane\n starts level with it. */\n .monitor {\n display: flex;\n gap: 16px;\n align-items: stretch;\n height: 100%;\n padding: var(--app-gutter) 0;\n }\n\n aside {\n flex: none;\n width: var(--app-sessions-width);\n min-height: 0;\n transition: width 200ms ease;\n }\n\n aside.collapsed {\n width: var(--app-sessions-collapsed-width);\n }\n\n @media (prefers-reduced-motion: reduce) {\n aside {\n transition: none;\n }\n }\n\n .log {\n flex: 1;\n min-width: 0;\n min-height: 0;\n }\n</style>\n"],"ignoreList":[0,1,2,3,4,5,6,7,8,9],"mappings":";;;;;;;;;;;;;;;;;;AAWA,IAAa,oBAAb,cAAuC,OAAO;CAC1C,2BAA2B;EACvB,OAAO,CAAK;CAChB;AACJ;;;;;;;ACRA,IAAaA,WAAS,CAAI;;AAEXA,SAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuBtB,IAAI,sBAAsB,MAAM,4BAA4B,kBAAkB,CAC9E;AACA,oBAAoB,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A,KAAI,CAAA,CAAC;GACpB,YAAA,WAAU;GACV,KAAA,IAAG;GACM,WAAC,OAAqB,KAAK,OAAO,EAAE;GACrC,SAAA;GACF,OAAA;;;;GAKN,SAAA,QAAO;GACC,SAAA,YAAY;GACT,YAAA,YAAY;GACvB,SAAA,QAAO;GACK,cAAC,UAAkB,YAAY,UAAU,KAAK;GAC1D,UAAA,SAAQ;GACA,SAAA;GACR,WAAA,UAAS;GACA,UAAA;;;CA3BR,CAAA"}
|
|
1
|
+
{"version":3,"file":"_page.svelte.js","names":["styles","sharedStyles","sharedElevationStyles","tonalStyles","customElement","LitElement","property","styles","styles","customElement","LitElement","classMap","nothing","property","query","state","customElement","$.attr","$.escape","$.attr","$.escape","$.attr","$.ensure_array_like","$.attr_class","$.escape","$.attr","$.attr","$.attr_class","$.attr_style","$.attr","$.escape","$.derived","$.attr","$.escape","$.derived","$.escape","$.attr","$.derived","$.escape","$.attr_class","$.attr","$.clsx","$.ensure_array_like","$.derived","$.attr_class"],"sources":["../../../../src/lib/components/LoopbackBanner/LoopbackBanner.svelte","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-tonal-button.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-tonal-styles.cssresult.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/filled-tonal-button.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/divider/internal/divider.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/divider/internal/divider-styles.cssresult.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/divider/divider.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/internal/animations.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/internal/dialog.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/internal/dialog-styles.cssresult.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/dialog/dialog.js","../../../../src/lib/components/SpeechLog/ClearSpeechDialog.svelte","../../../../src/lib/components/SpeechLog/DeleteSessionDialog.svelte","../../../../src/lib/components/SpeechLog/MarkerDialog.svelte","../../../../src/lib/components/SpeechLog/SpeechTable.svelte","../../../../src/lib/components/SpeechLog/SpeechLog.svelte","../../../../src/lib/components/ListItem/ListItem.svelte","../../../../src/lib/core/sessions.ts","../../../../src/lib/components/SessionsPane/EndSessionDialog.svelte","../../../../src/lib/components/SessionsPane/SessionRow.svelte","../../../../src/lib/components/SessionsPane/StartSessionDialog.svelte","../../../../src/lib/components/SessionsPane/SessionsPane.svelte","../../../../src/routes/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n</script>\n\n<!-- Static: it is rendered once, and must not be read as a live announcement itself. -->\n<div class=\"banner\" role=\"note\">\n <md-icon aria-hidden=\"true\">warning</md-icon>\n <p>\n <strong>The speech log is hidden from the screen reader (aria-hidden).</strong>\n This page is opened on the bridge's own machine (loopback address): the screen reader would read new\n rows aloud and they would be recorded again. Open the UI from another machine to read the log with\n a screen reader.\n </p>\n</div>\n\n<style>\n .banner {\n display: flex;\n align-items: flex-start;\n gap: 12px;\n padding: 12px 16px;\n border-radius: 12px;\n background: var(--app-warning-container);\n color: var(--app-on-warning-container);\n font-size: 14px;\n line-height: 20px;\n }\n\n p {\n flex: 1;\n min-width: 0;\n margin: 0;\n }\n\n md-icon {\n flex: none;\n }\n</style>\n","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport '../../elevation/elevation.js';\nimport { html } from 'lit';\nimport { Button } from './button.js';\n/**\n * A filled tonal button component.\n */\nexport class FilledTonalButton extends Button {\n renderElevationOrOutline() {\n return html `<md-elevation part=\"elevation\"></md-elevation>`;\n }\n}\n//# sourceMappingURL=filled-tonal-button.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./button/internal/filled-tonal-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{--_container-color: var(--md-filled-tonal-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-elevation: var(--md-filled-tonal-button-container-elevation, 0);--_container-height: var(--md-filled-tonal-button-container-height, 40px);--_container-shadow-color: var(--md-filled-tonal-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-tonal-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-tonal-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-tonal-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-tonal-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-tonal-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-tonal-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-tonal-button-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-container-elevation: var(--md-filled-tonal-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-tonal-button-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-tonal-button-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_label-text-font: var(--md-filled-tonal-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-tonal-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-tonal-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-tonal-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-tonal-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-tonal-button-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-color: var(--md-filled-tonal-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-tonal-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_container-shape-start-start: var(--md-filled-tonal-button-container-shape-start-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-tonal-button-container-shape-start-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-tonal-button-container-shape-end-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-tonal-button-container-shape-end-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-tonal-button-leading-space, 24px);--_trailing-space: var(--md-filled-tonal-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-tonal-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-tonal-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-tonal-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-tonal-button-with-trailing-icon-trailing-space, 16px)}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=filled-tonal-styles.cssresult.js.map","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { customElement } from 'lit/decorators.js';\nimport { FilledTonalButton } from './internal/filled-tonal-button.js';\nimport { styles as tonalStyles } from './internal/filled-tonal-styles.cssresult.js';\nimport { styles as sharedElevationStyles } from './internal/shared-elevation-styles.cssresult.js';\nimport { styles as sharedStyles } from './internal/shared-styles.cssresult.js';\n/**\n * @summary Buttons help people take action, such as sending an email, sharing a\n * document, or liking a comment.\n *\n * @description\n * __Emphasis:__ Medium emphasis – For important actions that don’t distract\n * from other onscreen elements.\n *\n * __Rationale:__ Filled tonal buttons have a lighter background color and\n * darker label color, making them less visually prominent than a regular,\n * filled button. They’re still used for final or unblocking actions in a flow,\n * but do so with less emphasis.\n *\n * __Example usages:__\n * - Save\n * - Confirm\n * - Done\n *\n * @final\n * @suppress {visibility}\n */\nlet MdFilledTonalButton = class MdFilledTonalButton extends FilledTonalButton {\n};\nMdFilledTonalButton.styles = [\n sharedStyles,\n sharedElevationStyles,\n tonalStyles,\n];\nMdFilledTonalButton = __decorate([\n customElement('md-filled-tonal-button')\n], MdFilledTonalButton);\nexport { MdFilledTonalButton };\n//# sourceMappingURL=filled-tonal-button.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\n/**\n * A divider component.\n */\nexport class Divider extends LitElement {\n constructor() {\n super(...arguments);\n /**\n * Indents the divider with equal padding on both sides.\n */\n this.inset = false;\n /**\n * Indents the divider with padding on the leading side.\n */\n this.insetStart = false;\n /**\n * Indents the divider with padding on the trailing side.\n */\n this.insetEnd = false;\n }\n}\n__decorate([\n property({ type: Boolean, reflect: true })\n], Divider.prototype, \"inset\", void 0);\n__decorate([\n property({ type: Boolean, reflect: true, attribute: 'inset-start' })\n], Divider.prototype, \"insetStart\", void 0);\n__decorate([\n property({ type: Boolean, reflect: true, attribute: 'inset-end' })\n], Divider.prototype, \"insetEnd\", void 0);\n//# sourceMappingURL=divider.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./divider/internal/divider-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{box-sizing:border-box;color:var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));display:flex;height:var(--md-divider-thickness, 1px);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:\"\";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=divider-styles.cssresult.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { customElement } from 'lit/decorators.js';\nimport { Divider } from './internal/divider.js';\nimport { styles } from './internal/divider-styles.cssresult.js';\n/**\n * @summary A divider is a thin line that groups content in lists and\n * containers.\n *\n * @description Dividers can reinforce tapability, such as when used to separate\n * list items or define tappable regions in an accordion.\n *\n * @final\n * @suppress {visibility}\n */\nlet MdDivider = class MdDivider extends Divider {\n};\nMdDivider.styles = [styles];\nMdDivider = __decorate([\n customElement('md-divider')\n], MdDivider);\nexport { MdDivider };\n//# sourceMappingURL=divider.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { EASING } from '../../internal/motion/animation.js';\n/**\n * The default dialog open animation.\n */\nexport const DIALOG_DEFAULT_OPEN_ANIMATION = {\n dialog: [\n [\n // Dialog slide down\n [{ 'transform': 'translateY(-50px)' }, { 'transform': 'translateY(0)' }],\n { duration: 500, easing: EASING.EMPHASIZED },\n ],\n ],\n scrim: [\n [\n // Scrim fade in\n [{ 'opacity': 0 }, { 'opacity': 0.32 }],\n { duration: 500, easing: 'linear' },\n ],\n ],\n container: [\n [\n // Container fade in\n [{ 'opacity': 0 }, { 'opacity': 1 }],\n { duration: 50, easing: 'linear', pseudoElement: '::before' },\n ],\n [\n // Container grow\n // Note: current spec says to grow from 0dp->100% and shrink from\n // 100%->35%. We change this to 35%->100% to simplify the animation that\n // is supposed to clip content as it grows. From 0dp it's possible to see\n // text/actions appear before the container has fully grown.\n [{ 'height': '35%' }, { 'height': '100%' }],\n { duration: 500, easing: EASING.EMPHASIZED, pseudoElement: '::before' },\n ],\n ],\n headline: [\n [\n // Headline fade in\n [{ 'opacity': 0 }, { 'opacity': 0, offset: 0.2 }, { 'opacity': 1 }],\n { duration: 250, easing: 'linear', fill: 'forwards' },\n ],\n ],\n content: [\n [\n // Content fade in\n [{ 'opacity': 0 }, { 'opacity': 0, offset: 0.2 }, { 'opacity': 1 }],\n { duration: 250, easing: 'linear', fill: 'forwards' },\n ],\n ],\n actions: [\n [\n // Actions fade in\n [{ 'opacity': 0 }, { 'opacity': 0, offset: 0.5 }, { 'opacity': 1 }],\n { duration: 300, easing: 'linear', fill: 'forwards' },\n ],\n ],\n};\n/**\n * The default dialog close animation.\n */\nexport const DIALOG_DEFAULT_CLOSE_ANIMATION = {\n dialog: [\n [\n // Dialog slide up\n [{ 'transform': 'translateY(0)' }, { 'transform': 'translateY(-50px)' }],\n { duration: 150, easing: EASING.EMPHASIZED_ACCELERATE },\n ],\n ],\n scrim: [\n [\n // Scrim fade out\n [{ 'opacity': 0.32 }, { 'opacity': 0 }],\n { duration: 150, easing: 'linear' },\n ],\n ],\n container: [\n [\n // Container shrink\n [{ 'height': '100%' }, { 'height': '35%' }],\n {\n duration: 150,\n easing: EASING.EMPHASIZED_ACCELERATE,\n pseudoElement: '::before',\n },\n ],\n [\n // Container fade out\n [{ 'opacity': '1' }, { 'opacity': '0' }],\n { delay: 100, duration: 50, easing: 'linear', pseudoElement: '::before' },\n ],\n ],\n headline: [\n [\n // Headline fade out\n [{ 'opacity': 1 }, { 'opacity': 0 }],\n { duration: 100, easing: 'linear', fill: 'forwards' },\n ],\n ],\n content: [\n [\n // Content fade out\n [{ 'opacity': 1 }, { 'opacity': 0 }],\n { duration: 100, easing: 'linear', fill: 'forwards' },\n ],\n ],\n actions: [\n [\n // Actions fade out\n [{ 'opacity': 1 }, { 'opacity': 0 }],\n { duration: 100, easing: 'linear', fill: 'forwards' },\n ],\n ],\n};\n//# sourceMappingURL=animations.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport '../../divider/divider.js';\nimport { html, isServer, LitElement, nothing } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { mixinDelegatesAria } from '../../internal/aria/delegate.js';\nimport { redispatchEvent } from '../../internal/events/redispatch-event.js';\nimport { DIALOG_DEFAULT_CLOSE_ANIMATION, DIALOG_DEFAULT_OPEN_ANIMATION, } from './animations.js';\n// Separate variable needed for closure.\nconst dialogBaseClass = mixinDelegatesAria(LitElement);\n/**\n * A dialog component.\n *\n * @fires open {Event} Dispatched when the dialog is opening before any animations.\n * @fires opened {Event} Dispatched when the dialog has opened after any animations.\n * @fires close {Event} Dispatched when the dialog is closing before any animations.\n * @fires closed {Event} Dispatched when the dialog has closed after any animations.\n * @fires cancel {Event} Dispatched when the dialog has been canceled by clicking\n * on the scrim or pressing Escape.\n */\nexport class Dialog extends dialogBaseClass {\n // We do not use `delegatesFocus: true` due to a Chromium bug with\n // selecting text.\n // See https://bugs.chromium.org/p/chromium/issues/detail?id=950357\n /**\n * Opens the dialog when set to `true` and closes it when set to `false`.\n */\n get open() {\n return this.isOpen;\n }\n set open(open) {\n if (open === this.isOpen) {\n return;\n }\n this.isOpen = open;\n if (open) {\n this.setAttribute('open', '');\n this.show();\n }\n else {\n this.removeAttribute('open');\n this.close();\n }\n }\n constructor() {\n super();\n /**\n * Skips the opening and closing animations.\n */\n this.quick = false;\n /**\n * Gets or sets the dialog's return value, usually to indicate which button\n * a user pressed to close it.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/returnValue\n */\n this.returnValue = '';\n /**\n * Disables focus trapping, which by default keeps keyboard Tab navigation\n * within the dialog.\n *\n * When disabled, after focusing the last element of a dialog, pressing Tab\n * again will release focus from the window back to the browser (such as the\n * URL bar).\n *\n * Focus trapping is recommended for accessibility, and should not typically\n * be disabled. Only turn this off if the use case of a dialog is more\n * accessible without focus trapping.\n */\n this.noFocusTrap = false;\n /**\n * Gets the opening animation for a dialog. Set to a new function to customize\n * the animation.\n */\n this.getOpenAnimation = () => DIALOG_DEFAULT_OPEN_ANIMATION;\n /**\n * Gets the closing animation for a dialog. Set to a new function to customize\n * the animation.\n */\n this.getCloseAnimation = () => DIALOG_DEFAULT_CLOSE_ANIMATION;\n this.isOpen = false;\n this.isOpening = false;\n this.isConnectedPromise = this.getIsConnectedPromise();\n this.isAtScrollTop = false;\n this.isAtScrollBottom = false;\n this.nextClickIsFromContent = false;\n // Dialogs should not be SSR'd while open, so we can just use runtime checks.\n this.hasHeadline = false;\n this.hasActions = false;\n this.hasIcon = false;\n // See https://bugs.chromium.org/p/chromium/issues/detail?id=1512224\n // Chrome v120 has a bug where escape keys do not trigger cancels. If we get\n // a dialog \"close\" event that is triggered without a \"cancel\" after an escape\n // keydown, then we need to manually trigger our closing logic.\n //\n // This bug occurs when pressing escape to close a dialog without first\n // interacting with the dialog's content.\n //\n // Cleanup tracking:\n // https://github.com/material-components/material-web/issues/5330\n // This can be removed when full CloseWatcher support added and the above bug\n // in Chromium is fixed to fire 'cancel' with one escape press and close with\n // multiple.\n this.escapePressedWithoutCancel = false;\n // This TreeWalker is used to walk through a dialog's children to find\n // focusable elements. TreeWalker is faster than `querySelectorAll('*')`.\n // We check for isServer because there isn't a \"document\" during an SSR\n // run.\n this.treewalker = isServer\n ? null\n : document.createTreeWalker(this, NodeFilter.SHOW_ELEMENT);\n if (!isServer) {\n this.addEventListener('submit', this.handleSubmit);\n }\n }\n /**\n * Opens the dialog and fires a cancelable `open` event. After a dialog's\n * animation, an `opened` event is fired.\n *\n * Add an `autofocus` attribute to a child of the dialog that should\n * receive focus after opening.\n *\n * @return A Promise that resolves after the animation is finished and the\n * `opened` event was fired.\n */\n async show() {\n this.isOpening = true;\n // Dialogs can be opened before being attached to the DOM, so we need to\n // wait until we're connected before calling `showModal()`.\n await this.isConnectedPromise;\n await this.updateComplete;\n const dialog = this.dialog;\n // Check if already opened or if `dialog.close()` was called while awaiting.\n if (dialog.open || !this.isOpening) {\n this.isOpening = false;\n return;\n }\n const preventOpen = !this.dispatchEvent(new Event('open', { cancelable: true }));\n if (preventOpen) {\n this.open = false;\n this.isOpening = false;\n return;\n }\n // All Material dialogs are modal.\n dialog.showModal();\n this.open = true;\n // Reset scroll position if re-opening a dialog with the same content.\n if (this.scroller) {\n this.scroller.scrollTop = 0;\n }\n // Native modal dialogs ignore autofocus and instead force focus to the\n // first focusable child. Override this behavior if there is a child with\n // an autofocus attribute.\n this.querySelector('[autofocus]')?.focus();\n await this.animateDialog(this.getOpenAnimation());\n this.dispatchEvent(new Event('opened'));\n this.isOpening = false;\n }\n /**\n * Closes the dialog and fires a cancelable `close` event. After a dialog's\n * animation, a `closed` event is fired.\n *\n * @param returnValue A return value usually indicating which button was used\n * to close a dialog. If a dialog is canceled by clicking the scrim or\n * pressing Escape, it will not change the return value after closing.\n * @return A Promise that resolves after the animation is finished and the\n * `closed` event was fired.\n */\n async close(returnValue = this.returnValue) {\n this.isOpening = false;\n if (!this.isConnected) {\n // Disconnected dialogs do not fire close events or animate.\n this.open = false;\n return;\n }\n await this.updateComplete;\n const dialog = this.dialog;\n // Check if already closed or if `dialog.show()` was called while awaiting.\n if (!dialog.open || this.isOpening) {\n this.open = false;\n return;\n }\n const prevReturnValue = this.returnValue;\n this.returnValue = returnValue;\n const preventClose = !this.dispatchEvent(new Event('close', { cancelable: true }));\n if (preventClose) {\n this.returnValue = prevReturnValue;\n return;\n }\n await this.animateDialog(this.getCloseAnimation());\n dialog.close(returnValue);\n this.open = false;\n this.dispatchEvent(new Event('closed'));\n }\n connectedCallback() {\n super.connectedCallback();\n this.isConnectedPromiseResolve();\n }\n disconnectedCallback() {\n super.disconnectedCallback();\n this.isConnectedPromise = this.getIsConnectedPromise();\n }\n render() {\n const scrollable = this.open && !(this.isAtScrollTop && this.isAtScrollBottom);\n const classes = {\n 'has-headline': this.hasHeadline,\n 'has-actions': this.hasActions,\n 'has-icon': this.hasIcon,\n 'scrollable': scrollable,\n 'show-top-divider': scrollable && !this.isAtScrollTop,\n 'show-bottom-divider': scrollable && !this.isAtScrollBottom,\n };\n // The focus trap sentinels are only added after the dialog opens, since\n // dialog.showModal() will try to autofocus them, even with tabindex=\"-1\".\n const showFocusTrap = this.open && !this.noFocusTrap;\n const focusTrap = html `\n <div\n class=\"focus-trap\"\n tabindex=\"0\"\n aria-hidden=\"true\"\n @focus=${this.handleFocusTrapFocus}></div>\n `;\n const { ariaLabel } = this;\n return html `\n <div class=\"scrim\"></div>\n <dialog\n class=${classMap(classes)}\n aria-label=${ariaLabel || nothing}\n aria-labelledby=${this.hasHeadline ? 'headline' : nothing}\n role=${this.type === 'alert' ? 'alertdialog' : nothing}\n @cancel=${this.handleCancel}\n @click=${this.handleDialogClick}\n @close=${this.handleClose}\n @keydown=${this.handleKeydown}\n .returnValue=${this.returnValue || nothing}>\n ${showFocusTrap ? focusTrap : nothing}\n <div class=\"container\" @click=${this.handleContentClick}>\n <div class=\"headline\">\n <div class=\"icon\" aria-hidden=\"true\">\n <slot name=\"icon\" @slotchange=${this.handleIconChange}></slot>\n </div>\n <h2 id=\"headline\" aria-hidden=${!this.hasHeadline || nothing}>\n <slot\n name=\"headline\"\n @slotchange=${this.handleHeadlineChange}></slot>\n </h2>\n <md-divider></md-divider>\n </div>\n <div class=\"scroller\">\n <div class=\"content\">\n <div class=\"top anchor\"></div>\n <slot name=\"content\"></slot>\n <div class=\"bottom anchor\"></div>\n </div>\n </div>\n <div class=\"actions\">\n <md-divider></md-divider>\n <slot name=\"actions\" @slotchange=${this.handleActionsChange}></slot>\n </div>\n </div>\n ${showFocusTrap ? focusTrap : nothing}\n </dialog>\n `;\n }\n firstUpdated() {\n this.intersectionObserver = new IntersectionObserver((entries) => {\n for (const entry of entries) {\n this.handleAnchorIntersection(entry);\n }\n }, { root: this.scroller });\n this.intersectionObserver.observe(this.topAnchor);\n this.intersectionObserver.observe(this.bottomAnchor);\n }\n handleDialogClick() {\n if (this.nextClickIsFromContent) {\n // Avoid doing a layout calculation below if we know the click came from\n // content.\n this.nextClickIsFromContent = false;\n return;\n }\n // Click originated on the backdrop. Native `<dialog>`s will not cancel,\n // but Material dialogs do.\n const preventDefault = !this.dispatchEvent(new Event('cancel', { cancelable: true }));\n if (preventDefault) {\n return;\n }\n this.close();\n }\n handleContentClick() {\n this.nextClickIsFromContent = true;\n }\n handleSubmit(event) {\n const form = event.target;\n const { submitter } = event;\n if (form.getAttribute('method') !== 'dialog' || !submitter) {\n return;\n }\n // Close reason is the submitter's value attribute, or the dialog's\n // `returnValue` if there is no attribute.\n this.close(submitter.getAttribute('value') ?? this.returnValue);\n }\n handleCancel(event) {\n if (event.target !== this.dialog) {\n // Ignore any cancel events dispatched by content.\n return;\n }\n this.escapePressedWithoutCancel = false;\n const preventDefault = !redispatchEvent(this, event);\n // We always prevent default on the original dialog event since we'll\n // animate closing it before it actually closes.\n event.preventDefault();\n if (preventDefault) {\n return;\n }\n this.close();\n }\n handleClose() {\n if (!this.escapePressedWithoutCancel) {\n return;\n }\n this.escapePressedWithoutCancel = false;\n this.dialog?.dispatchEvent(new Event('cancel', { cancelable: true }));\n }\n handleKeydown(event) {\n if (event.key !== 'Escape') {\n return;\n }\n // An escape key was pressed. If a \"close\" event fires next without a\n // \"cancel\" event first, then we know we're in the Chrome v120 bug.\n this.escapePressedWithoutCancel = true;\n // Wait a full task for the cancel/close event listeners to fire, then\n // reset the flag.\n setTimeout(() => {\n this.escapePressedWithoutCancel = false;\n });\n }\n async animateDialog(animation) {\n // Always cancel the previous animations. Animations can include `fill`\n // modes that need to be cleared when `quick` is toggled. If not, content\n // that faded out will remain hidden when a `quick` dialog re-opens after\n // previously opening and closing without `quick`.\n this.cancelAnimations?.abort();\n this.cancelAnimations = new AbortController();\n if (this.quick) {\n return;\n }\n const { dialog, scrim, container, headline, content, actions } = this;\n if (!dialog || !scrim || !container || !headline || !content || !actions) {\n return;\n }\n const { container: containerAnimate, dialog: dialogAnimate, scrim: scrimAnimate, headline: headlineAnimate, content: contentAnimate, actions: actionsAnimate, } = animation;\n const elementAndAnimation = [\n [dialog, dialogAnimate ?? []],\n [scrim, scrimAnimate ?? []],\n [container, containerAnimate ?? []],\n [headline, headlineAnimate ?? []],\n [content, contentAnimate ?? []],\n [actions, actionsAnimate ?? []],\n ];\n const animations = [];\n for (const [element, animation] of elementAndAnimation) {\n for (const animateArgs of animation) {\n const animation = element.animate(...animateArgs);\n this.cancelAnimations.signal.addEventListener('abort', () => {\n animation.cancel();\n });\n animations.push(animation);\n }\n }\n await Promise.all(animations.map((animation) => animation.finished.catch(() => {\n // Ignore intentional AbortErrors when calling `animation.cancel()`.\n })));\n }\n handleHeadlineChange(event) {\n const slot = event.target;\n this.hasHeadline = slot.assignedElements().length > 0;\n }\n handleActionsChange(event) {\n const slot = event.target;\n this.hasActions = slot.assignedElements().length > 0;\n }\n handleIconChange(event) {\n const slot = event.target;\n this.hasIcon = slot.assignedElements().length > 0;\n }\n handleAnchorIntersection(entry) {\n const { target, isIntersecting } = entry;\n if (target === this.topAnchor) {\n this.isAtScrollTop = isIntersecting;\n }\n if (target === this.bottomAnchor) {\n this.isAtScrollBottom = isIntersecting;\n }\n }\n getIsConnectedPromise() {\n return new Promise((resolve) => {\n this.isConnectedPromiseResolve = resolve;\n });\n }\n handleFocusTrapFocus(event) {\n const [firstFocusableChild, lastFocusableChild] = this.getFirstAndLastFocusableChildren();\n if (!firstFocusableChild || !lastFocusableChild) {\n // When a dialog does not have focusable children, the dialog itself\n // receives focus.\n this.dialog?.focus();\n return;\n }\n // To determine which child to focus, we need to know which focus trap\n // received focus...\n const isFirstFocusTrap = event.target === this.firstFocusTrap;\n const isLastFocusTrap = !isFirstFocusTrap;\n // ...and where the focus came from (what was previously focused).\n const focusCameFromFirstChild = event.relatedTarget === firstFocusableChild;\n const focusCameFromLastChild = event.relatedTarget === lastFocusableChild;\n // Although this is a focus trap, focus can come from outside the trap.\n // This can happen when elements are programmatically `focus()`'d. It also\n // happens when focus leaves and returns to the window, such as clicking on\n // the browser's URL bar and pressing Tab, or switching focus between\n // iframes.\n const focusCameFromOutsideDialog = !focusCameFromFirstChild && !focusCameFromLastChild;\n // Focus the dialog's first child when we reach the end of the dialog and\n // focus is moving forward. Or, when focus is moving forwards into the\n // dialog from outside of the window.\n const shouldFocusFirstChild = (isLastFocusTrap && focusCameFromLastChild) ||\n (isFirstFocusTrap && focusCameFromOutsideDialog);\n if (shouldFocusFirstChild) {\n firstFocusableChild.focus();\n return;\n }\n // Focus the dialog's last child when we reach the beginning of the dialog\n // and focus is moving backward. Or, when focus is moving backwards into the\n // dialog from outside of the window.\n const shouldFocusLastChild = (isFirstFocusTrap && focusCameFromFirstChild) ||\n (isLastFocusTrap && focusCameFromOutsideDialog);\n if (shouldFocusLastChild) {\n lastFocusableChild.focus();\n return;\n }\n // The booleans above are verbose for readability, but code executation\n // won't actually reach here.\n }\n getFirstAndLastFocusableChildren() {\n if (!this.treewalker) {\n return [null, null];\n }\n let firstFocusableChild = null;\n let lastFocusableChild = null;\n // Reset the current node back to the root host element.\n this.treewalker.currentNode = this.treewalker.root;\n while (this.treewalker.nextNode()) {\n // Cast as Element since the TreeWalker filter only accepts Elements.\n const nextChild = this.treewalker.currentNode;\n if (!isFocusable(nextChild)) {\n continue;\n }\n if (!firstFocusableChild) {\n firstFocusableChild = nextChild;\n }\n lastFocusableChild = nextChild;\n }\n // We set lastFocusableChild immediately after finding a\n // firstFocusableChild, which means the pair is either both null or both\n // non-null. Cast since TypeScript does not recognize this.\n return [firstFocusableChild, lastFocusableChild];\n }\n}\n__decorate([\n property({ type: Boolean })\n], Dialog.prototype, \"open\", null);\n__decorate([\n property({ type: Boolean })\n], Dialog.prototype, \"quick\", void 0);\n__decorate([\n property({ attribute: false })\n], Dialog.prototype, \"returnValue\", void 0);\n__decorate([\n property()\n], Dialog.prototype, \"type\", void 0);\n__decorate([\n property({ type: Boolean, attribute: 'no-focus-trap' })\n], Dialog.prototype, \"noFocusTrap\", void 0);\n__decorate([\n query('dialog')\n], Dialog.prototype, \"dialog\", void 0);\n__decorate([\n query('.scrim')\n], Dialog.prototype, \"scrim\", void 0);\n__decorate([\n query('.container')\n], Dialog.prototype, \"container\", void 0);\n__decorate([\n query('.headline')\n], Dialog.prototype, \"headline\", void 0);\n__decorate([\n query('.content')\n], Dialog.prototype, \"content\", void 0);\n__decorate([\n query('.actions')\n], Dialog.prototype, \"actions\", void 0);\n__decorate([\n state()\n], Dialog.prototype, \"isAtScrollTop\", void 0);\n__decorate([\n state()\n], Dialog.prototype, \"isAtScrollBottom\", void 0);\n__decorate([\n query('.scroller')\n], Dialog.prototype, \"scroller\", void 0);\n__decorate([\n query('.top.anchor')\n], Dialog.prototype, \"topAnchor\", void 0);\n__decorate([\n query('.bottom.anchor')\n], Dialog.prototype, \"bottomAnchor\", void 0);\n__decorate([\n query('.focus-trap')\n], Dialog.prototype, \"firstFocusTrap\", void 0);\n__decorate([\n state()\n], Dialog.prototype, \"hasHeadline\", void 0);\n__decorate([\n state()\n], Dialog.prototype, \"hasActions\", void 0);\n__decorate([\n state()\n], Dialog.prototype, \"hasIcon\", void 0);\nfunction isFocusable(element) {\n // Check if the element is a known built-in focusable element:\n // - <a> and <area> with `href` attributes.\n // - Form controls that are not disabled.\n // - `contenteditable` elements.\n // - Anything with a non-negative `tabindex`.\n const knownFocusableElements = ':is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true])';\n const notDisabled = ':not(:disabled,[disabled])';\n const notNegativeTabIndex = ':not([tabindex^=\"-\"])';\n if (element.matches(knownFocusableElements + notDisabled + notNegativeTabIndex)) {\n return true;\n }\n const isCustomElement = element.localName.includes('-');\n if (!isCustomElement) {\n return false;\n }\n // If a custom element does not have a tabindex, it may still be focusable\n // if it delegates focus with a shadow root. We also need to check again if\n // the custom element is a disabled form control.\n if (!element.matches(notDisabled)) {\n return false;\n }\n return element.shadowRoot?.delegatesFocus ?? false;\n}\n//# sourceMappingURL=dialog.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./dialog/internal/dialog-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{border-start-start-radius:var(--md-dialog-container-shape-start-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-start-end-radius:var(--md-dialog-container-shape-start-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-end-radius:var(--md-dialog-container-shape-end-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-start-radius:var(--md-dialog-container-shape-end-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));display:contents;margin:auto;max-height:min(560px,100% - 48px);max-width:min(560px,100% - 48px);min-height:140px;min-width:280px;position:fixed;height:fit-content;width:fit-content}dialog{background:rgba(0,0,0,0);border:none;border-radius:inherit;flex-direction:column;height:inherit;margin:inherit;max-height:inherit;max-width:inherit;min-height:inherit;min-width:inherit;outline:none;overflow:visible;padding:0;width:inherit}dialog[open]{display:flex}::backdrop{background:none}.scrim{background:var(--md-sys-color-scrim, #000);display:none;inset:0;opacity:32%;pointer-events:none;position:fixed;z-index:1}:host([open]) .scrim{display:flex}h2{all:unset;align-self:stretch}.headline{align-items:center;color:var(--md-dialog-headline-color, var(--md-sys-color-on-surface, #1d1b20));display:flex;flex-direction:column;font-family:var(--md-dialog-headline-font, var(--md-sys-typescale-headline-small-font, var(--md-ref-typeface-brand, Roboto)));font-size:var(--md-dialog-headline-size, var(--md-sys-typescale-headline-small-size, 1.5rem));line-height:var(--md-dialog-headline-line-height, var(--md-sys-typescale-headline-small-line-height, 2rem));font-weight:var(--md-dialog-headline-weight, var(--md-sys-typescale-headline-small-weight, var(--md-ref-typeface-weight-regular, 400)));position:relative}slot[name=headline]::slotted(*){align-items:center;align-self:stretch;box-sizing:border-box;display:flex;gap:8px;padding:24px 24px 0}.icon{display:flex}slot[name=icon]::slotted(*){color:var(--md-dialog-icon-color, var(--md-sys-color-secondary, #625b71));fill:currentColor;font-size:var(--md-dialog-icon-size, 24px);margin-top:24px;height:var(--md-dialog-icon-size, 24px);width:var(--md-dialog-icon-size, 24px)}.has-icon slot[name=headline]::slotted(*){justify-content:center;padding-top:16px}.scrollable slot[name=headline]::slotted(*){padding-bottom:16px}.scrollable.has-headline slot[name=content]::slotted(*){padding-top:8px}.container{border-radius:inherit;display:flex;flex-direction:column;flex-grow:1;overflow:hidden;position:relative;transform-origin:top}.container::before{background:var(--md-dialog-container-color, var(--md-sys-color-surface-container-high, #ece6f0));border-radius:inherit;content:\"\";inset:0;position:absolute}.scroller{display:flex;flex:1;flex-direction:column;overflow:hidden;z-index:1}.scrollable .scroller{overflow-y:scroll}.content{color:var(--md-dialog-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-dialog-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-dialog-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-dialog-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));flex:1;font-weight:var(--md-dialog-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)));height:min-content;position:relative}slot[name=content]::slotted(*){box-sizing:border-box;padding:24px}.anchor{position:absolute}.top.anchor{top:0}.bottom.anchor{bottom:0}.actions{position:relative}slot[name=actions]::slotted(*){box-sizing:border-box;display:flex;gap:8px;justify-content:flex-end;padding:16px 24px 24px}.has-actions slot[name=content]::slotted(*){padding-bottom:8px}md-divider{display:none;position:absolute}.has-headline.show-top-divider .headline md-divider,.has-actions.show-bottom-divider .actions md-divider{display:flex}.headline md-divider{bottom:0}.actions md-divider{top:0}@media(forced-colors: active){dialog{outline:2px solid WindowText}}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=dialog-styles.cssresult.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { customElement } from 'lit/decorators.js';\nimport { Dialog } from './internal/dialog.js';\nimport { styles } from './internal/dialog-styles.cssresult.js';\n/**\n * @summary Dialogs can require an action, communicate information, or help\n * users accomplish a task. There are two types of dialogs: basic and\n * full-screen.\n *\n * @description\n * A dialog is a modal window that appears in front of app content to provide\n * critical information or ask for a decision. Dialogs disable all app\n * functionality when they appear, and remain on screen until confirmed,\n * dismissed, or a required action has been taken.\n *\n * Dialogs are purposefully interruptive, so they should be used sparingly.\n * A less disruptive alternative is to use a menu, which provides options\n * without interrupting a user’s experience.\n *\n * On mobile devices only, complex dialogs should be displayed fullscreen.\n *\n * __Example usages:__\n * - Common use cases for basic dialogs include alerts, quick selection, and\n * confirmation.\n * - More complex dialogs may contain actions that require a series of tasks\n * to complete. One example is creating a calendar entry with the event title,\n * date, location, and time.\n *\n * @final\n * @suppress {visibility}\n */\nlet MdDialog = class MdDialog extends Dialog {\n};\nMdDialog.styles = [styles];\nMdDialog = __decorate([\n customElement('md-dialog')\n], MdDialog);\nexport { MdDialog };\n//# sourceMappingURL=dialog.js.map","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n\n type Props = {\n open: boolean;\n /** `#3 Checkout flow` */\n heading: string;\n /** Rejects with a message to show; resolves when the speech is cleared. */\n onClear: () => Promise<void>;\n onClose: () => void;\n };\n\n let { open, heading, onClear, onClose }: Props = $props();\n\n let failure = $state('');\n let busy = $state(false);\n\n $effect(() => {\n if (open) failure = '';\n });\n\n async function confirm(): Promise<void> {\n if (busy) return;\n failure = '';\n busy = true;\n try {\n await onClear();\n onClose();\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The speech could not be cleared.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">Clear speech?</div>\n <div slot=\"content\">\n <p>\n The speech of <strong>{heading}</strong> is removed from the bridge. The session keeps running.\n This cannot be undone.\n </p>\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n </div>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" disabled={busy} onclick={confirm}>Clear</md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n max-width: min(400px, calc(100% - 48px));\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n p {\n margin: 0;\n }\n\n .failure {\n margin-top: 12px;\n color: var(--md-sys-color-error);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n\n type Props = {\n open: boolean;\n /** `#3 Checkout flow` */\n heading: string;\n /** Rejects with a message to show; resolves when the session is deleted. */\n onDelete: () => Promise<void>;\n onClose: () => void;\n };\n\n let { open, heading, onDelete, onClose }: Props = $props();\n\n let failure = $state('');\n let busy = $state(false);\n\n $effect(() => {\n if (open) failure = '';\n });\n\n async function confirm(): Promise<void> {\n if (busy) return;\n failure = '';\n busy = true;\n try {\n await onDelete();\n onClose();\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The session could not be deleted.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">Delete session?</div>\n <div slot=\"content\">\n <p>\n <strong>{heading}</strong> and its speech are removed from the bridge. This cannot be undone.\n </p>\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n </div>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" disabled={busy} onclick={confirm}>Delete</md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n max-width: min(400px, calc(100% - 48px));\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n p {\n margin: 0;\n }\n\n .failure {\n margin-top: 12px;\n color: var(--md-sys-color-error);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n import '@material/web/textfield/outlined-text-field.js';\n import { API_LIMITS } from '@screenreader-speech-capture/shared';\n\n type Props = {\n open: boolean;\n /** Rejects with a message to show; resolves when the marker is in. */\n onAdd: (label: string) => Promise<void>;\n onClose: () => void;\n };\n\n let { open, onAdd, onClose }: Props = $props();\n\n let label = $state('');\n let labelError = $state('');\n let failure = $state('');\n let busy = $state(false);\n\n $effect(() => {\n if (open) {\n label = '';\n labelError = '';\n failure = '';\n }\n });\n\n async function submit(event: SubmitEvent): Promise<void> {\n event.preventDefault();\n if (busy) return;\n const trimmed = label.trim();\n if (trimmed === '') {\n labelError = 'Enter a label.';\n return;\n }\n labelError = '';\n failure = '';\n busy = true;\n try {\n await onAdd(trimmed);\n onClose();\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The marker could not be added.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">Add a marker</div>\n <form slot=\"content\" id=\"add-marker-form\" novalidate onsubmit={submit}>\n <md-outlined-text-field\n label=\"Label\"\n required\n maxlength={API_LIMITS.markerLength}\n supporting-text=\"Shows in the log as a row of its own, for example “step 3”.\"\n value={label}\n error={labelError !== ''}\n error-text={labelError}\n oninput={(event: Event) => (label = (event.target as HTMLInputElement).value)}\n ></md-outlined-text-field>\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n </form>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <md-text-button type=\"submit\" form=\"add-marker-form\" disabled={busy}>Add</md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n min-width: min(360px, 70vw);\n }\n\n .failure {\n margin: 0;\n color: var(--md-sys-color-error);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n import type { SpeechEntryDto } from '@screenreader-speech-capture/shared';\n import { formatReceivedTime } from '#lib/core/speech.js';\n\n type Props = {\n /** Oldest first. */\n entries: readonly SpeechEntryDto[];\n };\n\n let { entries }: Props = $props();\n\n /** A row that arrived this recently gets the tint that fades out (see `--app-new-row-ms`). */\n const FRESH_MS = 2000;\n const fresh = (entry: SpeechEntryDto): boolean =>\n Date.now() - Date.parse(entry.receivedAt) < FRESH_MS;\n</script>\n\n<table aria-label=\"Speech\">\n <thead>\n <tr>\n <th scope=\"col\">Received</th>\n <th scope=\"col\">Spoken text</th>\n <th scope=\"col\" class=\"seq\">Seq</th>\n </tr>\n </thead>\n <tbody>\n {#each entries as entry (entry.seq)}\n <tr class:fresh={fresh(entry)} class:marker={entry.kind === 'marker'}>\n <td class=\"time mono\">{formatReceivedTime(entry.receivedAt)}</td>\n <td class=\"text\">\n {#if entry.kind === 'marker'}\n <span class=\"pill\" title={entry.text}>\n <md-icon aria-hidden=\"true\">bookmark</md-icon>\n <span class=\"visually-hidden\">Marker: </span>\n <span class=\"label mono\">{entry.text}</span>\n </span>\n {:else}\n {entry.text}\n {/if}\n </td>\n <td class=\"seq mono\">#{entry.seq}</td>\n </tr>\n {/each}\n </tbody>\n</table>\n\n<style>\n table {\n width: 100%;\n /* `collapse` would leave the borders of the sticky header behind when scrolling. */\n border-collapse: separate;\n border-spacing: 0;\n }\n\n thead th {\n position: sticky;\n top: 0;\n z-index: 1;\n padding: 6px 12px;\n border-top: 1px solid var(--md-sys-color-outline-variant);\n border-bottom: 1px solid var(--md-sys-color-outline-variant);\n background: var(--md-sys-color-surface-container-low);\n color: var(--md-sys-color-on-surface-variant);\n font-size: 11px;\n font-weight: 500;\n letter-spacing: 0.5px;\n text-align: left;\n text-transform: uppercase;\n }\n\n thead th:first-child {\n padding-left: 24px;\n }\n\n th.seq,\n td.seq {\n padding-right: 24px;\n text-align: left;\n }\n\n tbody tr:hover {\n background: var(--md-sys-color-surface-container);\n }\n\n td {\n padding: 7px 12px;\n vertical-align: baseline;\n }\n\n /* Time and seq are as wide as their text (seq is a 13-digit number); the text takes the rest. */\n td.time,\n td.seq {\n width: 1%;\n white-space: nowrap;\n }\n\n td.time {\n padding-left: 24px;\n color: var(--md-sys-color-on-surface-variant);\n font-size: var(--app-mono-size);\n line-height: var(--app-mono-line-height);\n }\n\n td.text {\n color: var(--md-sys-color-on-surface);\n font-size: var(--app-log-text-size);\n line-height: var(--app-log-text-line-height);\n overflow-wrap: anywhere;\n }\n\n td.seq {\n color: var(--md-sys-color-outline);\n font-size: 11px;\n }\n\n tr.fresh {\n animation: fade-new calc(var(--app-new-row-ms) * 1ms) ease-out;\n }\n\n /* High-contrast themes: a left edge marks the new row too (the tint alone is a weak cue). */\n tr.fresh td:first-child {\n animation: fade-new-edge calc(var(--app-new-row-ms) * 1ms) ease-out;\n }\n\n @keyframes fade-new {\n from {\n background: var(--app-new-row);\n }\n }\n\n @keyframes fade-new-edge {\n from {\n box-shadow: inset calc(var(--app-border-width) * 2) 0 0 var(--md-sys-color-primary);\n }\n }\n\n /* In a narrow log the sequence number is the first thing to go (the log pane is the container). */\n @container (max-width: 520px) {\n th.seq,\n td.seq {\n display: none;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n tr.fresh {\n animation: none;\n }\n }\n\n .pill {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n max-width: 70%;\n height: 24px;\n padding: 0 8px 0 4px;\n border-radius: 6px;\n background: var(--md-sys-color-tertiary-container);\n color: var(--md-sys-color-on-tertiary-container);\n font-size: 12px;\n font-weight: 500;\n line-height: 16px;\n vertical-align: middle;\n }\n\n .pill md-icon {\n --md-icon-size: 16px;\n font-size: 16px;\n }\n\n .label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/filled-tonal-button.js';\n import '@material/web/icon/icon.js';\n import '@material/web/iconbutton/icon-button.js';\n import type { SpeechEntryDto } from '@screenreader-speech-capture/shared';\n import type { FeedState } from '#lib/core/speech.js';\n import ClearSpeechDialog from './ClearSpeechDialog.svelte';\n import DeleteSessionDialog from './DeleteSessionDialog.svelte';\n import MarkerDialog from './MarkerDialog.svelte';\n import SpeechTable from './SpeechTable.svelte';\n\n type Props = {\n /** `#3 Checkout flow`, or `Outside sessions`. */\n heading: string;\n /**\n * The page is opened on the screen reader's own machine: the screen reader would read new\n * rows, and that speech would be logged again. The rows are hidden from it.\n */\n local?: boolean;\n /** Oldest first. */\n entries: readonly SpeechEntryDto[];\n connection: FeedState;\n /** Whether a marker added now shows up in this log (see `canAddMarker`). */\n canMark: boolean;\n /** Rejects with a message to show; resolves when the marker is in. */\n onAddMarker: (label: string) => Promise<void>;\n /** Whether the shown scope is an ended session that can be deleted (see `canDeleteSession`). */\n canDelete: boolean;\n /** Whether the shown scope can be cleared: the current session, or the speech outside sessions. */\n canClear: boolean;\n /** Rejects with a message to show; resolves when the speech is cleared. */\n onClear: () => Promise<void>;\n /** Rejects with a message to show; resolves when the session is deleted. */\n onDelete: () => Promise<void>;\n };\n\n let {\n heading,\n local = false,\n entries,\n connection,\n canMark,\n onAddMarker,\n canDelete,\n onDelete,\n canClear,\n onClear,\n }: Props = $props();\n\n let markerOpen = $state(false);\n let deleteOpen = $state(false);\n let clearOpen = $state(false);\n\n /** Scrolled up further than this from the end, the log stops following new rows. */\n const FOLLOW_SLACK_PX = 48;\n\n let scroller: HTMLElement | undefined = $state();\n let following = $state(true);\n\n function onScroll(): void {\n if (!scroller) return;\n following =\n scroller.scrollHeight - scroller.scrollTop - scroller.clientHeight <= FOLLOW_SLACK_PX;\n }\n\n function jumpToLatest(): void {\n following = true;\n scroller?.scrollTo({ top: scroller.scrollHeight });\n }\n\n // After the new row is in the DOM, stay at the end while following. An empty table is a new\n // scope (or a wipe): start following again.\n $effect(() => {\n if (entries.length === 0) following = true;\n if (following && scroller) scroller.scrollTop = scroller.scrollHeight;\n });\n</script>\n\n<section class=\"log\" aria-labelledby=\"log-heading\">\n <header>\n <h1 id=\"log-heading\" class=\"trunc\">{heading}</h1>\n {#if canMark || canClear || canDelete}\n <div role=\"toolbar\" aria-label=\"Log actions\">\n {#if canMark}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n title=\"Add marker\"\n aria-label=\"Add marker\"\n onclick={() => (markerOpen = true)}\n >\n <md-icon aria-hidden=\"true\">bookmark_add</md-icon>\n </md-icon-button>\n {/if}\n {#if canClear}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n title=\"Clear speech\"\n aria-label=\"Clear speech\"\n disabled={entries.length === 0}\n onclick={() => (clearOpen = true)}\n >\n <md-icon aria-hidden=\"true\">delete_sweep</md-icon>\n </md-icon-button>\n {/if}\n {#if canDelete}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n title=\"Delete session\"\n aria-label=\"Delete session\"\n onclick={() => (deleteOpen = true)}\n >\n <md-icon aria-hidden=\"true\">delete</md-icon>\n </md-icon-button>\n {/if}\n </div>\n {/if}\n </header>\n\n <!-- Focusable so the keyboard can scroll it, except when it is hidden from the screen reader. -->\n <!-- svelte-ignore a11y_no_noninteractive_tabindex -->\n <div\n class=\"scroll\"\n bind:this={scroller}\n onscroll={onScroll}\n role={local ? undefined : 'region'}\n aria-label={local ? undefined : 'Speech log'}\n aria-live={local ? undefined : 'off'}\n aria-hidden={local ? 'true' : undefined}\n tabindex={local ? undefined : 0}\n >\n <!-- Always there, so its header row doesn't come and go while another scope loads. -->\n <SpeechTable {entries} />\n {#if entries.length === 0}\n <div class=\"empty\">\n <md-icon aria-hidden=\"true\">mic</md-icon>\n {#if connection === 'ended'}\n <p class=\"title\">No entries left</p>\n <p>This session's entries are no longer in the buffer.</p>\n {:else}\n <p class=\"title\">No speech yet</p>\n <p>Make the screen reader speak.</p>\n {/if}\n </div>\n {/if}\n </div>\n\n {#if connection === 'reconnecting' || connection === 'failed' || !following}\n <footer>\n {#if connection === 'reconnecting'}\n <p role=\"status\" class=\"mono\">Connection lost, reconnecting…</p>\n {:else if connection === 'failed'}\n <p role=\"alert\" class=\"mono failed\">The speech could not be loaded.</p>\n {:else}\n <span></span>\n {/if}\n {#if !following}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-filled-tonal-button onclick={jumpToLatest}>\n <md-icon slot=\"icon\" aria-hidden=\"true\">arrow_downward</md-icon>\n Jump to latest\n </md-filled-tonal-button>\n {/if}\n </footer>\n {/if}\n</section>\n\n{#if canMark}\n <MarkerDialog open={markerOpen} onAdd={onAddMarker} onClose={() => (markerOpen = false)} />\n{/if}\n\n{#if canClear}\n <ClearSpeechDialog open={clearOpen} {heading} {onClear} onClose={() => (clearOpen = false)} />\n{/if}\n\n{#if canDelete}\n <DeleteSessionDialog\n open={deleteOpen}\n {heading}\n {onDelete}\n onClose={() => (deleteOpen = false)}\n />\n{/if}\n\n<style>\n .log {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n overflow: hidden;\n border: 1px solid var(--md-sys-color-outline-variant);\n border-width: max(1px, var(--app-border-width));\n border-radius: 16px;\n background: var(--md-sys-color-surface-container-lowest);\n }\n\n header {\n box-sizing: border-box;\n flex: none;\n /* The icon button (40px) is only there in some scopes: always reserve its height, so the\n table doesn't jump when the selected session changes. */\n min-height: 64px;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px 12px 8px 24px;\n }\n\n h1 {\n flex: 1;\n min-width: 0;\n margin: 0;\n color: var(--md-sys-color-on-surface);\n font-size: 22px;\n font-weight: 500;\n line-height: 28px;\n }\n\n .trunc {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .scroll {\n container-type: inline-size;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n /* Hidden for a moment: while another scope's rows load there is no point in saying \"No speech\". */\n .empty {\n animation: reveal 0s 250ms backwards;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 96px 24px;\n color: var(--md-sys-color-on-surface-variant);\n text-align: center;\n }\n\n @keyframes reveal {\n from {\n visibility: hidden;\n }\n }\n\n .empty md-icon {\n --md-icon-size: 40px;\n font-size: 40px;\n }\n\n .empty p {\n margin: 4px 0 0;\n font-size: 14px;\n }\n\n .empty .title {\n color: var(--md-sys-color-on-surface);\n font-size: 16px;\n font-weight: 500;\n }\n\n footer {\n flex: none;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 8px 12px 8px 24px;\n border-top: 1px solid var(--md-sys-color-outline-variant);\n background: var(--md-sys-color-surface-container-low);\n }\n\n footer p.failed {\n color: var(--md-sys-color-error);\n }\n\n footer p {\n margin: 0;\n color: var(--md-sys-color-on-surface-variant);\n font-size: var(--app-mono-size);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/ripple/ripple.js';\n import type { Snippet } from 'svelte';\n\n type Props = {\n /** One line, cut off with an ellipsis. */\n title: string;\n /** The muted monospace line under the title. */\n subtitle?: Snippet;\n /** Actions at the end of the row. They sit beside the select button, never inside it. */\n trailing?: Snippet;\n /** Highlights the row and sets `aria-current`. */\n selected?: boolean;\n /**\n * What a screen reader should hear instead of the visual subtitle. Without it the subtitle\n * is read as it is.\n */\n description?: string;\n /**\n * The row's corner radius as a CSS value. Defaults to 8px, the radius of md-list-item's\n * focus ring (md-list-item itself has no container shape).\n */\n shape?: string;\n onSelect: () => void;\n };\n\n let {\n title,\n subtitle,\n trailing,\n selected = false,\n description,\n shape,\n onSelect,\n }: Props = $props();\n</script>\n\n<li class:selected style:--list-item-shape={shape}>\n <!-- One hover and press layer for the whole row, trailing actions included. -->\n <md-ripple aria-hidden=\"true\"></md-ripple>\n <button\n type=\"button\"\n class=\"select\"\n aria-current={selected ? 'true' : undefined}\n onclick={onSelect}\n >\n <span class=\"title\">{title}</span>\n {#if subtitle}\n <!-- With a description, the sentence below says all of this once. -->\n <span class=\"subtitle\" aria-hidden={description === undefined ? undefined : 'true'}>\n {@render subtitle()}\n </span>\n {/if}\n {#if description !== undefined}<span class=\"sr-only\">{description}</span>{/if}\n </button>\n {#if trailing}\n <!-- A sibling of the select button, so no interactive element sits inside another. -->\n <span class=\"trailing\">{@render trailing()}</span>\n {/if}\n</li>\n\n<style>\n li {\n position: relative;\n display: flex;\n align-items: center;\n min-height: 60px;\n border-radius: var(--list-item-shape, var(--md-sys-shape-corner-small, 8px));\n color: var(--md-sys-color-on-surface);\n /* The layer follows the text colour, so it shows on the selected row too. */\n --md-ripple-hover-color: currentColor;\n --md-ripple-pressed-color: currentColor;\n }\n\n li.selected {\n outline: var(--app-border-width) solid var(--md-sys-color-outline);\n outline-offset: calc(var(--app-border-width) * -1);\n background: var(--md-sys-color-secondary-container);\n color: var(--md-sys-color-on-secondary-container);\n }\n\n .select {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 4px;\n align-items: flex-start;\n min-width: 0;\n min-height: 60px;\n padding: 8px 16px;\n border: 0;\n border-radius: inherit;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n justify-content: center;\n }\n\n .title {\n max-width: 100%;\n overflow: hidden;\n font-size: var(--md-sys-typescale-label-large-size, 14px);\n font-weight: 500;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n /* Font, size and colour are inherited by whatever the subtitle snippet renders. */\n .subtitle {\n max-width: 100%;\n overflow: hidden;\n color: var(--md-sys-color-on-surface-variant);\n font-family: var(--app-font-mono);\n font-size: var(--app-mono-size);\n white-space: nowrap;\n }\n\n li.selected .subtitle {\n color: inherit;\n }\n\n .trailing {\n display: flex;\n flex: none;\n margin-right: 8px;\n }\n\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n</style>\n","import type {\n SessionDto,\n SessionListDto,\n StartSessionResponseDto,\n} from '@screenreader-speech-capture/shared';\n\n/** Where the sessions come from and go to (the HTTP adapter asks the BFF, which asks the bridge). */\nexport interface SessionsApi {\n list(): Promise<SessionListDto>;\n start(name: string, run: string | null): Promise<StartSessionResponseDto>;\n /** Ends the current session; does nothing if none is current. */\n end(): Promise<void>;\n /** Deletes an ended session and its speech. Rejects with the bridge's message. */\n delete(id: number): Promise<void>;\n}\n\n/** `4 s`, `3 min 12 s`, `1 h 05 min`. Never negative (the bridge's clock may run ahead). */\nexport function formatDuration(milliseconds: number): string {\n const total = Math.max(0, Math.floor(milliseconds / 1000));\n const hours = Math.floor(total / 3600);\n const minutes = Math.floor((total % 3600) / 60);\n const seconds = total % 60;\n if (hours > 0) return `${hours} h ${String(minutes).padStart(2, '0')} min`;\n if (minutes > 0) return `${minutes} min ${seconds} s`;\n return `${seconds} s`;\n}\n\nexport type SessionMeta = {\n /** `#7` */\n id: string;\n run: string | null;\n duration: string;\n /** `4 entries`, `1 entry` */\n entries: string;\n /** The same facts as a sentence, for the screen reader. */\n spoken: string;\n};\n\n/** What a row shows under the name. `now` (epoch ms) is the end of a session that is still live. */\nexport function describeSession(session: SessionDto, now: number): SessionMeta {\n const end = session.endedAt === null ? now : Date.parse(session.endedAt);\n const duration = formatDuration(end - Date.parse(session.startedAt));\n const live = session.endedAt === null;\n const entries = `${session.entries} ${session.entries === 1 ? 'entry' : 'entries'}`;\n const parts = [\n `Session ${session.id}`,\n live ? 'live' : null,\n session.run === null ? null : `run ${session.run}`,\n duration,\n entries,\n ];\n return {\n id: `#${session.id}`,\n run: session.run,\n duration,\n entries,\n spoken: parts.filter((part) => part !== null).join(', '),\n };\n}\n\n/** What the log shows: a session by id, or `'none'` for the speech outside any session. */\nexport type SessionScope = number | 'none';\n\n/** The URL value that selects the speech outside any session (the bridge's `session=none`). */\nexport const OUTSIDE_SESSIONS = 'none';\n\n/**\n * The scope a pane shows: `none` if the URL asks for it, the session named in the URL if it still\n * exists, otherwise the current one (following), otherwise the speech outside any session.\n */\nexport function selectedScope(\n requested: string | null,\n sessions: SessionDto[],\n currentId: number | null,\n): SessionScope {\n if (requested === OUTSIDE_SESSIONS) return OUTSIDE_SESSIONS;\n const id = requested === null || !/^\\d+$/.test(requested) ? null : Number(requested);\n if (id !== null && sessions.some((session) => session.id === id)) return id;\n return currentId ?? OUTSIDE_SESSIONS;\n}\n\n/**\n * The session to show once `deletedId` is gone: the next older one, else the next newer one\n * (`sessions` is newest first), else `null`, which the page resolves to the current session or the\n * speech outside any session (`selectedScope`).\n */\nexport function scopeAfterDelete(deletedId: number, sessions: SessionDto[]): number | null {\n const at = sessions.findIndex((session) => session.id === deletedId);\n if (at === -1) return null;\n return (sessions[at + 1] ?? sessions[at - 1])?.id ?? null;\n}\n","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n\n type Props = {\n open: boolean;\n sessionId: number | null;\n /** The session's entry count; the bridge forgets a session that ends with none. */\n entries: number | null;\n /** Rejects with a message to show; resolves when the session has ended. */\n onEnd: () => Promise<void>;\n onClose: () => void;\n };\n\n let { open, sessionId, entries, onEnd, onClose }: Props = $props();\n\n const empty = $derived(entries === 0);\n\n let failure = $state('');\n let busy = $state(false);\n\n $effect(() => {\n if (open) failure = '';\n });\n\n async function confirm(): Promise<void> {\n if (busy) return;\n failure = '';\n busy = true;\n try {\n await onEnd();\n onClose();\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The session could not be ended.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">\n {empty ? 'Drop' : 'End'} session {sessionId === null ? '' : `#${sessionId}`}?\n </div>\n <div slot=\"content\">\n {#if empty}\n <p>This session has no entries, so ending it deletes it. Its number is not reused.</p>\n {:else}\n <p>Speech captured after this belongs to no session.</p>\n {/if}\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n </div>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" disabled={busy} onclick={confirm}>End session</md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n /* The dialog is as wide as its longest line by default; a cap makes the text wrap. */\n max-width: min(400px, calc(100% - 48px));\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n p {\n margin: 0;\n }\n\n .failure {\n margin-top: 12px;\n color: var(--md-sys-color-error);\n }\n</style>\n","<script lang=\"ts\">\n import ListItem from '#lib/components/ListItem/ListItem.svelte';\n import { describeSession } from '#lib/core/sessions.js';\n import type { SessionDto } from '@screenreader-speech-capture/shared';\n\n type Props = {\n session: SessionDto;\n /** Epoch ms: the end of a live session's duration. */\n now: number;\n selected: boolean;\n live: boolean;\n onSelect: () => void;\n };\n\n let { session, now, selected, live, onSelect }: Props = $props();\n\n const meta = $derived(describeSession(session, now));\n</script>\n\n{#snippet subtitle()}\n <span class=\"meta\">\n {#if live}<span class=\"dot\"></span>{/if}\n <span>{meta.id}</span>\n {#if meta.run !== null}<span class=\"run\">{meta.run}</span>{/if}\n <span>{meta.duration}</span>\n <span>{meta.entries}</span>\n </span>\n{/snippet}\n\n<ListItem\n title={session.name}\n shape=\"var(--md-sys-shape-corner-extra-large, 28px)\"\n {subtitle}\n {selected}\n description={meta.spoken}\n {onSelect}\n/>\n\n<style>\n /* One line. The run name and then the entry count shrink with an ellipsis; the rest stays whole. */\n .meta {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n .meta > span {\n flex: none;\n white-space: nowrap;\n }\n\n .meta > :not(:last-child)::after {\n content: '\\00a0·\\00a0';\n }\n\n .meta > .dot::after {\n content: none;\n }\n\n .meta > .run,\n .meta > span:last-child {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .dot {\n flex: none;\n width: 8px;\n height: 8px;\n margin-right: 6px;\n border-radius: 50%;\n background: var(--app-success);\n animation: pulse 1.6s ease-in-out infinite;\n }\n\n @keyframes pulse {\n 50% {\n opacity: 0.35;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .dot {\n animation: none;\n }\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n import '@material/web/textfield/outlined-text-field.js';\n import { API_LIMITS } from '@screenreader-speech-capture/shared';\n\n type Props = {\n open: boolean;\n /** Rejects with a message to show; resolves when the session has started. */\n onStart: (name: string, run: string | null) => Promise<void>;\n onClose: () => void;\n };\n\n let { open, onStart, onClose }: Props = $props();\n\n let name = $state('');\n let run = $state('');\n let nameError = $state('');\n let failure = $state('');\n let busy = $state(false);\n\n $effect(() => {\n if (open) {\n name = '';\n run = '';\n nameError = '';\n failure = '';\n }\n });\n\n async function submit(event: SubmitEvent): Promise<void> {\n event.preventDefault();\n if (busy) return;\n const trimmedName = name.trim();\n if (trimmedName === '') {\n nameError = 'Enter a name.';\n return;\n }\n nameError = '';\n failure = '';\n busy = true;\n try {\n await onStart(trimmedName, run.trim() === '' ? null : run.trim());\n onClose();\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The session could not be started.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">Start a session</div>\n <form slot=\"content\" id=\"start-session-form\" novalidate onsubmit={submit}>\n <md-outlined-text-field\n label=\"Name\"\n required\n maxlength={API_LIMITS.sessionLabelLength}\n value={name}\n error={nameError !== ''}\n error-text={nameError}\n oninput={(event: Event) => (name = (event.target as HTMLInputElement).value)}\n ></md-outlined-text-field>\n <md-outlined-text-field\n label=\"Run (optional)\"\n supporting-text=\"Groups sessions, for example one run id per test run.\"\n maxlength={API_LIMITS.sessionLabelLength}\n value={run}\n oninput={(event: Event) => (run = (event.target as HTMLInputElement).value)}\n ></md-outlined-text-field>\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n </form>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <md-text-button type=\"submit\" form=\"start-session-form\" disabled={busy}>Start</md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n min-width: min(360px, 70vw);\n }\n\n .failure {\n margin: 0;\n color: var(--md-sys-color-error);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n import '@material/web/iconbutton/icon-button.js';\n import type { SessionDto } from '@screenreader-speech-capture/shared';\n import ListItem from '#lib/components/ListItem/ListItem.svelte';\n import { OUTSIDE_SESSIONS, type SessionScope } from '#lib/core/sessions.js';\n import EndSessionDialog from './EndSessionDialog.svelte';\n import SessionRow from './SessionRow.svelte';\n import StartSessionDialog from './StartSessionDialog.svelte';\n\n type Props = {\n /** Newest first. */\n sessions: SessionDto[];\n currentId: number | null;\n /** Entries in the buffer recorded outside any session. */\n outsideEntries: number;\n /** The session the log shows, or `'none'` for the speech outside any session. */\n selectedId: SessionScope;\n /** Epoch ms, for the duration of the live session. */\n now: number;\n /** Only the header buttons show; the list and the heading are hidden. */\n collapsed?: boolean;\n onToggleCollapse?: () => void;\n onSelect: (id: SessionScope) => void;\n onStart: (name: string, run: string | null) => Promise<void>;\n onEnd: () => Promise<void>;\n };\n\n let {\n sessions,\n currentId,\n outsideEntries,\n selectedId,\n now,\n collapsed = false,\n onToggleCollapse,\n onSelect,\n onStart,\n onEnd,\n }: Props = $props();\n\n let startOpen = $state(false);\n let endOpen = $state(false);\n\n const toggleLabel = $derived(currentId === null ? 'Start a session' : `End session ${currentId}`);\n\n const collapseLabel = $derived(collapsed ? 'Expand sessions' : 'Collapse sessions');\n\n const entries = $derived(outsideEntries === 1 ? '1 entry' : `${outsideEntries} entries`);\n</script>\n\n{#snippet subtitle()}\n <span>{entries}</span>\n{/snippet}\n\n<section aria-labelledby=\"sessions-heading\" class:collapsed>\n <header>\n <!-- First, so it stays where it is when the pane collapses and the buttons stack. -->\n {#if onToggleCollapse}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n class=\"collapse\"\n title={collapseLabel}\n aria-label={collapseLabel}\n aria-expanded={!collapsed}\n onclick={onToggleCollapse}\n >\n <md-icon aria-hidden=\"true\">{collapsed ? 'left_panel_open' : 'left_panel_close'}</md-icon>\n </md-icon-button>\n {/if}\n <h2 id=\"sessions-heading\" class:visually-hidden={collapsed}>Sessions</h2>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n class={currentId === null ? 'start' : 'stop'}\n title={toggleLabel}\n aria-label={toggleLabel}\n onclick={() => (currentId === null ? (startOpen = true) : (endOpen = true))}\n >\n <md-icon aria-hidden=\"true\">{currentId === null ? 'play_arrow' : 'stop'}</md-icon>\n </md-icon-button>\n </header>\n\n {#if collapsed}\n <!-- Only the header shows while collapsed. -->\n {:else if sessions.length === 0}\n <p class=\"empty\">No sessions in the buffer. Start one with the play button.</p>\n {:else}\n <ul aria-labelledby=\"sessions-heading\">\n {#each sessions as session (session.id)}\n <SessionRow\n {session}\n {now}\n live={session.id === currentId}\n selected={session.id === selectedId}\n onSelect={() => onSelect(session.id)}\n />\n {/each}\n </ul>\n {/if}\n\n <!-- Pinned below the list: not a session, so it stays out of the newest-first order. Always shown\n while expanded, so it doesn't vanish when a session starts. -->\n {#if !collapsed}\n <ul class=\"outside\" aria-label=\"Outside sessions\">\n <ListItem\n title=\"Outside sessions\"\n shape=\"var(--md-sys-shape-corner-extra-large, 28px)\"\n {subtitle}\n selected={selectedId === OUTSIDE_SESSIONS}\n description={`Speech captured while no session was running, ${entries}`}\n onSelect={() => onSelect(OUTSIDE_SESSIONS)}\n />\n </ul>\n {/if}\n</section>\n\n<StartSessionDialog open={startOpen} {onStart} onClose={() => (startOpen = false)} />\n<EndSessionDialog\n open={endOpen}\n sessionId={currentId}\n entries={sessions.find((session) => session.id === currentId)?.entries ?? null}\n {onEnd}\n onClose={() => (endOpen = false)}\n/>\n\n<style>\n section {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n padding: 16px 12px;\n border: var(--app-border-width) solid var(--md-sys-color-outline);\n border-radius: 28px;\n background: var(--md-sys-color-surface-container-low);\n }\n\n header {\n flex: none;\n display: flex;\n align-items: center;\n padding: 0 4px 8px 0;\n }\n\n /* The buttons stack; the section's 12px padding and the 72px strip keep the first one at the\n same x (and y) as when expanded. */\n section.collapsed {\n align-items: flex-start;\n }\n\n .collapsed header {\n flex-direction: column;\n padding: 0;\n }\n\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n\n h2 {\n flex: 1;\n margin: 0 0 0 8px;\n font-size: var(--md-sys-typescale-title-medium-size, 16px);\n font-weight: 500;\n }\n\n .start {\n --md-icon-button-icon-color: var(--md-sys-color-primary);\n --md-icon-button-hover-icon-color: var(--md-sys-color-primary);\n --md-icon-button-focus-icon-color: var(--md-sys-color-primary);\n }\n\n .stop {\n --md-icon-button-icon-color: var(--md-sys-color-error);\n --md-icon-button-hover-icon-color: var(--md-sys-color-error);\n --md-icon-button-focus-icon-color: var(--md-sys-color-error);\n }\n\n ul {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 4px;\n min-height: 0;\n overflow-y: auto;\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n /* Not scrollable and not stretched: it sits at the bottom, under the (possibly empty) list. */\n ul.outside {\n flex: none;\n margin-top: auto;\n padding-top: 8px;\n overflow: visible;\n border-top: 1px solid var(--md-sys-color-outline-variant);\n }\n\n .empty {\n margin: 0;\n padding: 8px 16px;\n color: var(--md-sys-color-on-surface-variant);\n }\n</style>\n","<script lang=\"ts\">\n import { onMount, untrack } from 'svelte';\n import { goto } from '$app/navigation';\n import { resolve } from '$app/paths';\n import { page } from '$app/state';\n import LoopbackBanner from '#lib/components/LoopbackBanner/LoopbackBanner.svelte';\n import SpeechLog from '#lib/components/SpeechLog/SpeechLog.svelte';\n import SessionsPane from '#lib/components/SessionsPane/SessionsPane.svelte';\n import { sessionsPaneStore, sessionsStore, speechStore } from '#lib/composition.js';\n import { scopeAfterDelete, selectedScope, type SessionScope } from '#lib/core/sessions.js';\n import {\n canAddMarker,\n canClearSpeech,\n canDeleteSession,\n isLiveScope,\n logHeading,\n } from '#lib/core/speech.js';\n import type { PageProps } from './$types';\n\n let { data }: PageProps = $props();\n\n // Until the store has read the list, show what the server rendered (`+page.server.ts`), so the\n // server's HTML already has the sessions. The store is shared by all requests: it is never\n // filled on the server.\n const list = $derived(\n sessionsStore.loaded\n ? {\n sessions: sessionsStore.sessions,\n currentId: sessionsStore.currentId,\n outsideEntries: sessionsStore.outsideEntries,\n }\n : (data.sessions ?? { sessions: [], currentId: null, outsideEntries: 0 }),\n );\n const now = $derived(sessionsStore.loaded ? sessionsStore.now : data.now);\n\n // The URL names the selected session (or `none`, the speech outside any session); without it the\n // pane follows the current session, and with no current session it shows the speech outside.\n const selectedId = $derived(\n selectedScope(page.url.searchParams.get('session'), list.sessions, list.currentId),\n );\n\n const heading = $derived(logHeading(selectedId, list.sessions));\n const canMark = $derived(canAddMarker(selectedId, list.currentId));\n const canClear = $derived(canClearSpeech(selectedId, list.currentId));\n const canDelete = $derived(canDeleteSession(selectedId, list.currentId));\n\n onMount(() => {\n sessionsPaneStore.init();\n return sessionsStore.init(data.sessions);\n });\n\n // The log follows the selected scope; it only runs in the browser (effects never run on the\n // server). Whether the scope is live is read once, when it opens: a session that ends while it\n // is shown keeps what it has, and is read as an ended one the next time it is selected.\n $effect(() =>\n speechStore.open(\n selectedId,\n untrack(() => isLiveScope(selectedId, list.currentId)),\n ),\n );\n\n function select(id: SessionScope | null): Promise<void> {\n // Always spelled out, even for the current session: a clean URL only follows the current\n // session, so it would jump to the speech outside once that session ends.\n // eslint-disable-next-line svelte/no-navigation-without-resolve\n return goto(id === null ? resolve('/') : `${resolve('/')}?session=${id}`, { reset: false });\n }\n\n async function end(): Promise<void> {\n const ended = list.currentId;\n await sessionsStore.end();\n // A session without entries is dropped by the bridge: don't leave its id in the URL.\n if (ended !== null && !list.sessions.some((session) => session.id === ended)) {\n await select(null);\n }\n }\n\n async function clear(): Promise<void> {\n await speechStore.clear(selectedId);\n // The table empties through the feed; the counts in the list don't wait for the next poll.\n await sessionsStore.refresh();\n }\n\n async function remove(): Promise<void> {\n if (typeof selectedId !== 'number') return;\n const next = scopeAfterDelete(selectedId, list.sessions);\n await sessionsStore.delete(selectedId);\n // Without a neighbour the URL is dropped, and the pane follows the current session (or the\n // speech outside any session).\n await select(next);\n }\n\n async function start(name: string, run: string | null): Promise<void> {\n const started = await sessionsStore.start(name, run);\n await select(started.id); // pinned in the URL, so it stays selected after it ends\n }\n</script>\n\n<div class=\"monitor\">\n <aside class:collapsed={sessionsPaneStore.collapsed}>\n <SessionsPane\n collapsed={sessionsPaneStore.collapsed}\n onToggleCollapse={() => sessionsPaneStore.toggle()}\n sessions={list.sessions}\n currentId={list.currentId}\n outsideEntries={list.outsideEntries}\n {selectedId}\n {now}\n onSelect={(id: SessionScope) => void select(id)}\n onStart={start}\n onEnd={end}\n />\n </aside>\n <div class=\"log\">\n {#if data.local}\n <LoopbackBanner />\n {/if}\n <div class=\"log-body\">\n <SpeechLog\n {heading}\n local={data.local}\n entries={speechStore.entries}\n connection={speechStore.connection}\n {canMark}\n onAddMarker={(label: string) => speechStore.addMarker(label)}\n {canClear}\n onClear={clear}\n {canDelete}\n onDelete={remove}\n />\n </div>\n </div>\n</div>\n\n<style>\n /* The same gap above as below, and the one the rail keeps above its active item, so the pane\n starts level with it. */\n .monitor {\n display: flex;\n gap: 16px;\n align-items: stretch;\n height: 100%;\n padding: var(--app-gutter) 0;\n }\n\n aside {\n flex: none;\n width: var(--app-sessions-width);\n min-height: 0;\n transition: width 200ms ease;\n }\n\n aside.collapsed {\n width: var(--app-sessions-collapsed-width);\n }\n\n @media (prefers-reduced-motion: reduce) {\n aside {\n transition: none;\n }\n }\n\n .log {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 12px;\n min-width: 0;\n min-height: 0;\n }\n\n /* The log fills what the banner (when there is one) leaves. */\n .log-body {\n flex: 1;\n min-height: 0;\n }\n</style>\n"],"ignoreList":[1,2,3,4,5,6,7,8,9,10],"mappings":";;;;;;;;;;AAAA,SAAA,eAAA,YAAA;;;;AAEQ;;;;;;;;;;ACSR,IAAa,oBAAb,cAAuC,OAAO;CAC1C,2BAA2B;EACvB,OAAO,CAAK;CAChB;AACJ;;;;;;;ACRA,IAAaA,WAAS,CAAI;;AAEXA,SAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuBtB,IAAI,sBAAsB,MAAM,4BAA4B,kBAAkB,CAC9E;AACA,oBAAoB,SAAS;CACzBC;CACAC;CACAC;AACJ;AACA,sBAAsB,WAAW,CAC7BC,EAAc,wBAAwB,CAC1C,GAAG,mBAAmB;;;;;;;;;;AC9BtB,IAAa,UAAb,cAA6BC,IAAW;CACpC,cAAc;EACV,MAAM,GAAG,SAAS;;;;EAIlB,KAAK,QAAQ;;;;EAIb,KAAK,aAAa;;;;EAIlB,KAAK,WAAW;CACpB;AACJ;AACA,WAAW,CACPC,EAAS;CAAE,MAAM;CAAS,SAAS;AAAK,CAAC,CAC7C,GAAG,QAAQ,WAAW,SAAS,KAAK,CAAC;AACrC,WAAW,CACPA,EAAS;CAAE,MAAM;CAAS,SAAS;CAAM,WAAW;AAAc,CAAC,CACvE,GAAG,QAAQ,WAAW,cAAc,KAAK,CAAC;AAC1C,WAAW,CACPA,EAAS;CAAE,MAAM;CAAS,SAAS;CAAM,WAAW;AAAY,CAAC,CACrE,GAAG,QAAQ,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A,SAAA;GACR,WAAA,UAAS;GACA,UAAA;;;CAhCV,CAAA"}
|
|
@@ -9,7 +9,7 @@ return {
|
|
|
9
9
|
app_path: "ui/_app",
|
|
10
10
|
assets: new Set(["robots.txt"]),
|
|
11
11
|
mime_types: {".txt":"text/plain"},
|
|
12
|
-
client: {start:"_app/immutable/entry/start.uodUAHNT.js",app:"_app/immutable/entry/app.
|
|
12
|
+
client: {start:"_app/immutable/entry/start.uodUAHNT.js",app:"_app/immutable/entry/app.CBrC_IQm.js",imports:["_app/immutable/entry/start.uodUAHNT.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DclECHGd.js","_app/immutable/chunks/CKeiBgOI.js","_app/immutable/chunks/CVUOwNb5.js","_app/immutable/chunks/h7UQ89-l.js","_app/immutable/chunks/Dksil5Gu.js","_app/immutable/chunks/C67ohLw_.js","_app/immutable/entry/app.CBrC_IQm.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
13
13
|
|
|
14
14
|
nodes: [
|
|
15
15
|
__memo(() => import('./nodes/0.js')),
|
|
@@ -9,7 +9,7 @@ return {
|
|
|
9
9
|
app_path: "ui/_app",
|
|
10
10
|
assets: new Set(["robots.txt"]),
|
|
11
11
|
mime_types: {".txt":"text/plain"},
|
|
12
|
-
client: {start:"_app/immutable/entry/start.uodUAHNT.js",app:"_app/immutable/entry/app.
|
|
12
|
+
client: {start:"_app/immutable/entry/start.uodUAHNT.js",app:"_app/immutable/entry/app.CBrC_IQm.js",imports:["_app/immutable/entry/start.uodUAHNT.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DclECHGd.js","_app/immutable/chunks/CKeiBgOI.js","_app/immutable/chunks/CVUOwNb5.js","_app/immutable/chunks/h7UQ89-l.js","_app/immutable/chunks/Dksil5Gu.js","_app/immutable/chunks/C67ohLw_.js","_app/immutable/entry/app.CBrC_IQm.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
13
13
|
|
|
14
14
|
nodes: [
|
|
15
15
|
__memo(() => import('./nodes/0.js')),
|