screenreader-speech-capture 0.3.0 → 0.4.0-fix-bundle-material-web.12
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 +1 -1
- package/dist/ui/adapter-node.js +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/{0.CeDGT9MW.css → 0.Ck1JiV_4.css} +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/0.Ck1JiV_4.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/{0.CeDGT9MW.css.gz → 0.Ck1JiV_4.css.gz} +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.CnRjX9ZG.css +1 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.CnRjX9ZG.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.CnRjX9ZG.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/WKeSQOEM.js +37 -0
- package/dist/ui/client/ui/_app/immutable/chunks/WKeSQOEM.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/WKeSQOEM.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/{app.2mjWY9ga.js → app.DWG4jy_K.js} +2 -2
- package/dist/ui/client/ui/_app/immutable/entry/app.DWG4jy_K.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.DWG4jy_K.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/{0.CQ_XophD.js → 0.BHaQjZME.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/nodes/0.BHaQjZME.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.BHaQjZME.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/{2.BTJ1n3E7.js → 2.DnTpD-Gs.js} +66 -66
- package/dist/ui/client/ui/_app/immutable/nodes/2.DnTpD-Gs.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.DnTpD-Gs.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 +2 -2
- package/dist/ui/server/_app/immutable/assets/{_layout.CeDGT9MW.css → _layout.Ck1JiV_4.css} +1 -1
- package/dist/ui/server/_app/immutable/assets/_page.CnRjX9ZG.css +1 -0
- package/dist/ui/server/chunks/composition.js +2685 -1
- package/dist/ui/server/chunks/composition.js.map +1 -1
- package/dist/ui/server/chunks/instance.js +3 -3
- package/dist/ui/server/chunks/internal.js +1 -1
- package/dist/ui/server/entries/pages/_layout.svelte.js +1 -3
- package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/_page.svelte.js +2456 -35
- 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/0.js +2 -2
- 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/0.CeDGT9MW.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.DJfIfRJB.css +0 -1
- package/dist/ui/client/ui/_app/immutable/assets/2.DJfIfRJB.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.DJfIfRJB.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DSHrAZZ8.js +0 -37
- package/dist/ui/client/ui/_app/immutable/chunks/DSHrAZZ8.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DSHrAZZ8.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.2mjWY9ga.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.2mjWY9ga.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CQ_XophD.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CQ_XophD.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.BTJ1n3E7.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.BTJ1n3E7.js.gz +0 -0
- package/dist/ui/server/_app/immutable/assets/_page.DJfIfRJB.css +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{A as e,B as t,C as n,H as r,I as i,L as a,M as o,N as s,P as c,R as l,S as u,T as d,a as f,b as p,d as m,f as h,g,i as _,j as v,k as y,o as b,p as x,r as S,s as C,t as w,u as T,v as E,w as D,z as O}from"../chunks/CcBdu3S8.js";import{n as k,o as A}from"../chunks/Dg9MaatX.js";import{t as
|
|
2
|
-
`;
|
|
1
|
+
import{A as e,B as t,C as n,H as r,I as i,L as a,M as o,N as s,P as c,R as l,S as u,T as d,a as f,b as p,d as m,f as h,g,i as _,j as v,k as y,o as b,p as x,r as S,s as C,t as w,u as T,v as E,w as D,z as O}from"../chunks/CcBdu3S8.js";import{n as k,o as A}from"../chunks/Dg9MaatX.js";import{t as j}from"../chunks/DvmLiMpQ.js";import{A as M,C as N,D as P,E as F,O as I,S as L,T as R,_ as ee,a as te,b as z,c as ne,d as re,f as ie,g as ae,h as B,j as V,k as H,l as U,m as W,n as G,o as oe,p as se,s as ce,t as le,u as ue,v as K,w as de,x as fe,y as q}from"../chunks/WKeSQOEM.js";import"../chunks/DbiAGPgw.js";function pe(e){return(t,n)=>{let{slot:r,selector:i}=e??{},a=`slot`+(r?`[name=${r}]`:`:not([name])`);return F(t,n,{get(){let t=(this.renderRoot?.querySelector(a))?.assignedElements(e)??[];return i===void 0?t:t.filter(e=>e.matches(i))}})}}var me=p(`<span class="subtitle svelte-3qlloz"><!></span>`),he=p(`<span class="sr-only svelte-3qlloz"> </span>`),ge=p(`<span class="trailing svelte-3qlloz"><!></span>`),_e=p(`<li><md-ripple></md-ripple> <button type="button" class="select svelte-3qlloz"><span class="title svelte-3qlloz"> </span> <!> <!></button> <!></li>`,2);function ve(e,t){let i=w(t,`selected`,3,!1);var a=_e();let o,l;var u=v(a);_(u,`aria-hidden`,`true`);var d=c(u,2),p=v(d),h=s(p,!0),C=c(p,2),T=e=>{var n=me(),i=v(n);x(i,()=>t.subtitle),r(n),y(()=>S(n,`aria-hidden`,t.description===void 0?void 0:`true`)),E(e,n)};m(C,e=>{t.subtitle&&e(T)});var D=c(C,2),O=e=>{var n=he(),r=s(n,!0);y(()=>g(r,t.description)),E(e,n)};m(D,e=>{t.description!==void 0&&e(O)}),r(d);var k=c(d,2),A=e=>{var n=ge(),i=v(n);x(i,()=>t.trailing),r(n),E(e,n)};m(k,e=>{t.trailing&&e(A)}),r(a),y(()=>{o=b(a,1,`svelte-3qlloz`,null,o,{selected:i()}),l=f(a,``,l,{"--list-item-shape":t.shape}),S(d,`aria-current`,i()?`true`:void 0),g(h,t.title)}),n(`click`,d,function(...e){t.onSelect?.apply(this,e)}),E(e,a)}u([`click`]);function ye(e){let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60;return n>0?`${n} h ${String(r).padStart(2,`0`)} min`:r>0?`${r} min ${i} s`:`${i} s`}function be(e,t){let n=ye((e.endedAt===null?t:Date.parse(e.endedAt))-Date.parse(e.startedAt)),r=e.endedAt===null,i=`${e.entries} ${e.entries===1?`entry`:`entries`}`,a=[`Session ${e.id}`,r?`live`:null,e.run===null?null:`run ${e.run}`,n,i];return{id:`#${e.id}`,run:e.run,duration:n,entries:i,spoken:a.filter(e=>e!==null).join(`, `)}}var xe=`none`;function Se(e,t,n){if(e===`none`)return xe;let r=e===null||!/^\d+$/.test(e)?null:Number(e);return r!==null&&t.some(e=>e.id===r)?r:n??`none`}var Ce=H`:host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);box-sizing:border-box;cursor:pointer;display:inline-flex;gap:8px;min-height:var(--_container-height);outline:none;padding-block:calc((var(--_container-height) - max(var(--_label-text-line-height),var(--_icon-size)))/2);padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space);place-content:center;place-items:center;position:relative;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);text-overflow:ellipsis;text-wrap:nowrap;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:top;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host(:is([disabled],[soft-disabled])){cursor:default;pointer-events:none}.button{border-radius:inherit;cursor:inherit;display:inline-flex;align-items:center;justify-content:center;border:none;outline:none;-webkit-appearance:none;vertical-align:middle;background:rgba(0,0,0,0);text-decoration:none;min-width:calc(64px - var(--_leading-space) - var(--_trailing-space));width:100%;z-index:0;height:100%;font:inherit;color:var(--_label-text-color);padding:0;gap:inherit;text-transform:inherit}.button::-moz-focus-inner{padding:0;border:0}:host(:hover) .button{color:var(--_hover-label-text-color)}:host(:focus-within) .button{color:var(--_focus-label-text-color)}:host(:active) .button{color:var(--_pressed-label-text-color)}.background{background:var(--_container-color);border-radius:inherit;inset:0;position:absolute}.label{overflow:hidden}:is(.button,.label,.label slot),.label ::slotted(*){text-overflow:inherit}:host(:is([disabled],[soft-disabled])) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}:host(:is([disabled],[soft-disabled])) .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}@media(forced-colors: active){.background{border:1px solid CanvasText}:host(:is([disabled],[soft-disabled])){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1;--_disabled-container-opacity: 1;--_disabled-label-text-color: GrayText;--_disabled-label-text-opacity: 1}}:host([has-icon]:not([trailing-icon])){padding-inline-start:var(--_with-leading-icon-leading-space);padding-inline-end:var(--_with-leading-icon-trailing-space)}:host([has-icon][trailing-icon]){padding-inline-start:var(--_with-trailing-icon-leading-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;flex-shrink:0;color:var(--_icon-color);font-size:var(--_icon-size);inline-size:var(--_icon-size);block-size:var(--_icon-size)}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus-within) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host(:is([disabled],[soft-disabled])) ::slotted([slot=icon]){color:var(--_disabled-icon-color);opacity:var(--_disabled-icon-opacity)}.touch{position:absolute;top:50%;height:max(48px,100%);left:0;right:0;transform:translateY(-50%)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}:host([touch-target=none]) .touch{display:none}
|
|
2
|
+
`;Ce.styleSheet;function we(e){let t=new MouseEvent(`click`,{bubbles:!0});return e.dispatchEvent(t),t}function Te(e){return e.currentTarget!==e.target||e.composedPath()[0]!==e.target||e.target.disabled?!1:!Ee(e)}function Ee(e){let t=De;return t&&(e.preventDefault(),e.stopImmediatePropagation()),Oe(),t}var De=!1;async function Oe(){De=!0,await null,De=!1}var ke=re(oe(ne(ue(q)))),J=class extends ke{constructor(){super(),this.softDisabled=!1,this.href=``,this.download=``,this.target=``,this.trailingIcon=!1,this.hasIcon=!1,this.addEventListener(`click`,this.handleClick.bind(this))}focus(){this.buttonElement?.focus()}blur(){this.buttonElement?.blur()}render(){let e=this.disabled||this.softDisabled,t=this.href?this.renderLink():this.renderButton(),n=this.href?`link`:`button`;return N`
|
|
3
3
|
${this.renderElevationOrOutline?.()}
|
|
4
4
|
<div class="background"></div>
|
|
5
5
|
<md-focus-ring part="focus-ring" for=${n}></md-focus-ring>
|
|
@@ -8,61 +8,61 @@ import{A as e,B as t,C as n,H as r,I as i,L as a,M as o,N as s,P as c,R as l,S a
|
|
|
8
8
|
for=${n}
|
|
9
9
|
?disabled="${e}"></md-ripple>
|
|
10
10
|
${t}
|
|
11
|
-
`}renderButton(){let{ariaLabel:e,ariaHasPopup:t,ariaExpanded:n}=this;return
|
|
11
|
+
`}renderButton(){let{ariaLabel:e,ariaHasPopup:t,ariaExpanded:n}=this;return N`<button
|
|
12
12
|
id="button"
|
|
13
13
|
class="button"
|
|
14
14
|
?disabled=${this.disabled}
|
|
15
|
-
aria-disabled=${this.softDisabled||
|
|
16
|
-
aria-label="${e||
|
|
17
|
-
aria-haspopup="${t||
|
|
18
|
-
aria-expanded="${n||
|
|
15
|
+
aria-disabled=${this.softDisabled||z}
|
|
16
|
+
aria-label="${e||z}"
|
|
17
|
+
aria-haspopup="${t||z}"
|
|
18
|
+
aria-expanded="${n||z}">
|
|
19
19
|
${this.renderContent()}
|
|
20
|
-
</button>`}renderLink(){let{ariaLabel:e,ariaHasPopup:t,ariaExpanded:n}=this;return
|
|
20
|
+
</button>`}renderLink(){let{ariaLabel:e,ariaHasPopup:t,ariaExpanded:n}=this;return N`<a
|
|
21
21
|
id="link"
|
|
22
22
|
class="button"
|
|
23
|
-
aria-label="${e||
|
|
24
|
-
aria-haspopup="${t||
|
|
25
|
-
aria-expanded="${n||
|
|
26
|
-
aria-disabled=${this.disabled||this.softDisabled||
|
|
27
|
-
tabindex="${this.disabled&&!this.softDisabled?-1:
|
|
23
|
+
aria-label="${e||z}"
|
|
24
|
+
aria-haspopup="${t||z}"
|
|
25
|
+
aria-expanded="${n||z}"
|
|
26
|
+
aria-disabled=${this.disabled||this.softDisabled||z}
|
|
27
|
+
tabindex="${this.disabled&&!this.softDisabled?-1:z}"
|
|
28
28
|
href=${this.href}
|
|
29
|
-
download=${this.download||
|
|
30
|
-
target=${this.target||
|
|
29
|
+
download=${this.download||z}
|
|
30
|
+
target=${this.target||z}
|
|
31
31
|
>${this.renderContent()}
|
|
32
|
-
</a>`}renderContent(){let e=
|
|
32
|
+
</a>`}renderContent(){let e=N`<slot
|
|
33
33
|
name="icon"
|
|
34
|
-
@slotchange="${this.handleSlotChange}"></slot>`;return
|
|
34
|
+
@slotchange="${this.handleSlotChange}"></slot>`;return N`
|
|
35
35
|
<span class="touch"></span>
|
|
36
|
-
${this.trailingIcon?
|
|
36
|
+
${this.trailingIcon?z:e}
|
|
37
37
|
<span class="label"><slot></slot></span>
|
|
38
|
-
${this.trailingIcon?e:
|
|
39
|
-
`}handleClick(e){this.softDisabled||this.disabled&&this.href?(e.stopImmediatePropagation(),e.preventDefault()):
|
|
40
|
-
`;
|
|
41
|
-
`;
|
|
38
|
+
${this.trailingIcon?e:z}
|
|
39
|
+
`}handleClick(e){this.softDisabled||this.disabled&&this.href?(e.stopImmediatePropagation(),e.preventDefault()):Te(e)&&this.buttonElement&&(this.focus(),we(this.buttonElement))}handleSlotChange(){this.hasIcon=this.assignedIcons.length>0}};J.shadowRootOptions={mode:`open`,delegatesFocus:!0},V([I({type:Boolean,attribute:`soft-disabled`,reflect:!0})],J.prototype,`softDisabled`,void 0),V([I()],J.prototype,`href`,void 0),V([I()],J.prototype,`download`,void 0),V([I()],J.prototype,`target`,void 0),V([I({type:Boolean,attribute:`trailing-icon`,reflect:!0})],J.prototype,`trailingIcon`,void 0),V([I({type:Boolean,attribute:`has-icon`,reflect:!0})],J.prototype,`hasIcon`,void 0),V([R(`.button`)],J.prototype,`buttonElement`,void 0),V([pe({slot:`icon`,flatten:!0})],J.prototype,`assignedIcons`,void 0);var Ae=class extends J{},je=H`:host{--_container-height: var(--md-text-button-container-height, 40px);--_disabled-label-text-color: var(--md-text-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-text-button-disabled-label-text-opacity, 0.38);--_focus-label-text-color: var(--md-text-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-text-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-text-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-text-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-text-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-text-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-text-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-text-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-text-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-text-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-text-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-text-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-text-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-text-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-text-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-text-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-text-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-text-button-icon-size, 18px);--_pressed-icon-color: var(--md-text-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-text-button-container-shape-start-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-text-button-container-shape-start-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-text-button-container-shape-end-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-text-button-container-shape-end-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-text-button-leading-space, 12px);--_trailing-space: var(--md-text-button-trailing-space, 12px);--_with-leading-icon-leading-space: var(--md-text-button-with-leading-icon-leading-space, 12px);--_with-leading-icon-trailing-space: var(--md-text-button-with-leading-icon-trailing-space, 16px);--_with-trailing-icon-leading-space: var(--md-text-button-with-trailing-icon-leading-space, 16px);--_with-trailing-icon-trailing-space: var(--md-text-button-with-trailing-icon-trailing-space, 12px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0}
|
|
40
|
+
`;je.styleSheet;var Me=class extends Ae{};Me.styles=[Ce,je],Me=V([M(`md-text-button`)],Me);var Ne=class extends q{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}};V([I({type:Boolean,reflect:!0})],Ne.prototype,`inset`,void 0),V([I({type:Boolean,reflect:!0,attribute:`inset-start`})],Ne.prototype,`insetStart`,void 0),V([I({type:Boolean,reflect:!0,attribute:`inset-end`})],Ne.prototype,`insetEnd`,void 0);var Pe=H`: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}}
|
|
41
|
+
`;Pe.styleSheet;var Fe=class extends Ne{};Fe.styles=[Pe],Fe=V([M(`md-divider`)],Fe);function Ie(e,t){t.bubbles&&(!e.shadowRoot||t.composed)&&t.stopPropagation();let n=Reflect.construct(t.constructor,[t.type,t]),r=e.dispatchEvent(n);return r||t.preventDefault(),r}var Le={dialog:[[[{transform:`translateY(-50px)`},{transform:`translateY(0)`}],{duration:500,easing:W.EMPHASIZED}]],scrim:[[[{opacity:0},{opacity:.32}],{duration:500,easing:`linear`}]],container:[[[{opacity:0},{opacity:1}],{duration:50,easing:`linear`,pseudoElement:`::before`}],[[{height:`35%`},{height:`100%`}],{duration:500,easing:W.EMPHASIZED,pseudoElement:`::before`}]],headline:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:`linear`,fill:`forwards`}]],content:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:`linear`,fill:`forwards`}]],actions:[[[{opacity:0},{opacity:0,offset:.5},{opacity:1}],{duration:300,easing:`linear`,fill:`forwards`}]]},Re={dialog:[[[{transform:`translateY(0)`},{transform:`translateY(-50px)`}],{duration:150,easing:W.EMPHASIZED_ACCELERATE}]],scrim:[[[{opacity:.32},{opacity:0}],{duration:150,easing:`linear`}]],container:[[[{height:`100%`},{height:`35%`}],{duration:150,easing:W.EMPHASIZED_ACCELERATE,pseudoElement:`::before`}],[[{opacity:`1`},{opacity:`0`}],{delay:100,duration:50,easing:`linear`,pseudoElement:`::before`}]],headline:[[[{opacity:1},{opacity:0}],{duration:100,easing:`linear`,fill:`forwards`}]],content:[[[{opacity:1},{opacity:0}],{duration:100,easing:`linear`,fill:`forwards`}]],actions:[[[{opacity:1},{opacity:0}],{duration:100,easing:`linear`,fill:`forwards`}]]},ze=re(q),Y=class extends ze{get open(){return this.isOpen}set open(e){e!==this.isOpen&&(this.isOpen=e,e?(this.setAttribute(`open`,``),this.show()):(this.removeAttribute(`open`),this.close()))}constructor(){super(),this.quick=!1,this.returnValue=``,this.noFocusTrap=!1,this.getOpenAnimation=()=>Le,this.getCloseAnimation=()=>Re,this.isOpen=!1,this.isOpening=!1,this.isConnectedPromise=this.getIsConnectedPromise(),this.isAtScrollTop=!1,this.isAtScrollBottom=!1,this.nextClickIsFromContent=!1,this.hasHeadline=!1,this.hasActions=!1,this.hasIcon=!1,this.escapePressedWithoutCancel=!1,this.treewalker=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT),this.addEventListener(`submit`,this.handleSubmit)}async show(){this.isOpening=!0,await this.isConnectedPromise,await this.updateComplete;let e=this.dialog;e.open||!this.isOpening?this.isOpening=!1:this.dispatchEvent(new Event(`open`,{cancelable:!0}))?(e.showModal(),this.open=!0,this.scroller&&(this.scroller.scrollTop=0),this.querySelector(`[autofocus]`)?.focus(),await this.animateDialog(this.getOpenAnimation()),this.dispatchEvent(new Event(`opened`)),this.isOpening=!1):(this.open=!1,this.isOpening=!1)}async close(e=this.returnValue){if(this.isOpening=!1,!this.isConnected){this.open=!1;return}await this.updateComplete;let t=this.dialog;if(!t.open||this.isOpening){this.open=!1;return}let n=this.returnValue;this.returnValue=e,this.dispatchEvent(new Event(`close`,{cancelable:!0}))?(await this.animateDialog(this.getCloseAnimation()),t.close(e),this.open=!1,this.dispatchEvent(new Event(`closed`))):this.returnValue=n}connectedCallback(){super.connectedCallback(),this.isConnectedPromiseResolve()}disconnectedCallback(){super.disconnectedCallback(),this.isConnectedPromise=this.getIsConnectedPromise()}render(){let e=this.open&&!(this.isAtScrollTop&&this.isAtScrollBottom),t={"has-headline":this.hasHeadline,"has-actions":this.hasActions,"has-icon":this.hasIcon,scrollable:e,"show-top-divider":e&&!this.isAtScrollTop,"show-bottom-divider":e&&!this.isAtScrollBottom},n=this.open&&!this.noFocusTrap,r=N`
|
|
42
42
|
<div
|
|
43
43
|
class="focus-trap"
|
|
44
44
|
tabindex="0"
|
|
45
45
|
aria-hidden="true"
|
|
46
46
|
@focus=${this.handleFocusTrapFocus}></div>
|
|
47
|
-
`,{ariaLabel:i}=this;return
|
|
47
|
+
`,{ariaLabel:i}=this;return N`
|
|
48
48
|
<div class="scrim"></div>
|
|
49
49
|
<dialog
|
|
50
50
|
class=${B(t)}
|
|
51
|
-
aria-label=${i||
|
|
52
|
-
aria-labelledby=${this.hasHeadline?`headline`:
|
|
53
|
-
role=${this.type===`alert`?`alertdialog`:
|
|
51
|
+
aria-label=${i||z}
|
|
52
|
+
aria-labelledby=${this.hasHeadline?`headline`:z}
|
|
53
|
+
role=${this.type===`alert`?`alertdialog`:z}
|
|
54
54
|
@cancel=${this.handleCancel}
|
|
55
55
|
@click=${this.handleDialogClick}
|
|
56
56
|
@close=${this.handleClose}
|
|
57
57
|
@keydown=${this.handleKeydown}
|
|
58
|
-
.returnValue=${this.returnValue||
|
|
59
|
-
${n?r:
|
|
58
|
+
.returnValue=${this.returnValue||z}>
|
|
59
|
+
${n?r:z}
|
|
60
60
|
<div class="container" @click=${this.handleContentClick}>
|
|
61
61
|
<div class="headline">
|
|
62
62
|
<div class="icon" aria-hidden="true">
|
|
63
63
|
<slot name="icon" @slotchange=${this.handleIconChange}></slot>
|
|
64
64
|
</div>
|
|
65
|
-
<h2 id="headline" aria-hidden=${!this.hasHeadline||
|
|
65
|
+
<h2 id="headline" aria-hidden=${!this.hasHeadline||z}>
|
|
66
66
|
<slot
|
|
67
67
|
name="headline"
|
|
68
68
|
@slotchange=${this.handleHeadlineChange}></slot>
|
|
@@ -81,10 +81,10 @@ import{A as e,B as t,C as n,H as r,I as i,L as a,M as o,N as s,P as c,R as l,S a
|
|
|
81
81
|
<slot name="actions" @slotchange=${this.handleActionsChange}></slot>
|
|
82
82
|
</div>
|
|
83
83
|
</div>
|
|
84
|
-
${n?r:
|
|
84
|
+
${n?r:z}
|
|
85
85
|
</dialog>
|
|
86
|
-
`}firstUpdated(){this.intersectionObserver=new IntersectionObserver(e=>{for(let t of e)this.handleAnchorIntersection(t)},{root:this.scroller}),this.intersectionObserver.observe(this.topAnchor),this.intersectionObserver.observe(this.bottomAnchor)}handleDialogClick(){this.nextClickIsFromContent?this.nextClickIsFromContent=!1:this.dispatchEvent(new Event(`cancel`,{cancelable:!0}))&&this.close()}handleContentClick(){this.nextClickIsFromContent=!0}handleSubmit(e){let t=e.target,{submitter:n}=e;t.getAttribute(`method`)===`dialog`&&n&&this.close(n.getAttribute(`value`)??this.returnValue)}handleCancel(e){if(e.target!==this.dialog)return;this.escapePressedWithoutCancel=!1;let t=!
|
|
87
|
-
`;
|
|
86
|
+
`}firstUpdated(){this.intersectionObserver=new IntersectionObserver(e=>{for(let t of e)this.handleAnchorIntersection(t)},{root:this.scroller}),this.intersectionObserver.observe(this.topAnchor),this.intersectionObserver.observe(this.bottomAnchor)}handleDialogClick(){this.nextClickIsFromContent?this.nextClickIsFromContent=!1:this.dispatchEvent(new Event(`cancel`,{cancelable:!0}))&&this.close()}handleContentClick(){this.nextClickIsFromContent=!0}handleSubmit(e){let t=e.target,{submitter:n}=e;t.getAttribute(`method`)===`dialog`&&n&&this.close(n.getAttribute(`value`)??this.returnValue)}handleCancel(e){if(e.target!==this.dialog)return;this.escapePressedWithoutCancel=!1;let t=!Ie(this,e);e.preventDefault(),t||this.close()}handleClose(){this.escapePressedWithoutCancel&&(this.escapePressedWithoutCancel=!1,this.dialog?.dispatchEvent(new Event(`cancel`,{cancelable:!0})))}handleKeydown(e){e.key===`Escape`&&(this.escapePressedWithoutCancel=!0,setTimeout(()=>{this.escapePressedWithoutCancel=!1}))}async animateDialog(e){if(this.cancelAnimations?.abort(),this.cancelAnimations=new AbortController,this.quick)return;let{dialog:t,scrim:n,container:r,headline:i,content:a,actions:o}=this;if(!t||!n||!r||!i||!a||!o)return;let{container:s,dialog:c,scrim:l,headline:u,content:d,actions:f}=e,p=[[t,c??[]],[n,l??[]],[r,s??[]],[i,u??[]],[a,d??[]],[o,f??[]]],m=[];for(let[e,t]of p)for(let n of t){let t=e.animate(...n);this.cancelAnimations.signal.addEventListener(`abort`,()=>{t.cancel()}),m.push(t)}await Promise.all(m.map(e=>e.finished.catch(()=>{})))}handleHeadlineChange(e){let t=e.target;this.hasHeadline=t.assignedElements().length>0}handleActionsChange(e){let t=e.target;this.hasActions=t.assignedElements().length>0}handleIconChange(e){let t=e.target;this.hasIcon=t.assignedElements().length>0}handleAnchorIntersection(e){let{target:t,isIntersecting:n}=e;t===this.topAnchor&&(this.isAtScrollTop=n),t===this.bottomAnchor&&(this.isAtScrollBottom=n)}getIsConnectedPromise(){return new Promise(e=>{this.isConnectedPromiseResolve=e})}handleFocusTrapFocus(e){let[t,n]=this.getFirstAndLastFocusableChildren();if(!t||!n){this.dialog?.focus();return}let r=e.target===this.firstFocusTrap,i=!r,a=e.relatedTarget===t,o=e.relatedTarget===n,s=!a&&!o;i&&o||r&&s?t.focus():(r&&a||i&&s)&&n.focus()}getFirstAndLastFocusableChildren(){if(!this.treewalker)return[null,null];let e=null,t=null;for(this.treewalker.currentNode=this.treewalker.root;this.treewalker.nextNode();){let n=this.treewalker.currentNode;Be(n)&&(e||=n,t=n)}return[e,t]}};V([I({type:Boolean})],Y.prototype,`open`,null),V([I({type:Boolean})],Y.prototype,`quick`,void 0),V([I({attribute:!1})],Y.prototype,`returnValue`,void 0),V([I()],Y.prototype,`type`,void 0),V([I({type:Boolean,attribute:`no-focus-trap`})],Y.prototype,`noFocusTrap`,void 0),V([R(`dialog`)],Y.prototype,`dialog`,void 0),V([R(`.scrim`)],Y.prototype,`scrim`,void 0),V([R(`.container`)],Y.prototype,`container`,void 0),V([R(`.headline`)],Y.prototype,`headline`,void 0),V([R(`.content`)],Y.prototype,`content`,void 0),V([R(`.actions`)],Y.prototype,`actions`,void 0),V([P()],Y.prototype,`isAtScrollTop`,void 0),V([P()],Y.prototype,`isAtScrollBottom`,void 0),V([R(`.scroller`)],Y.prototype,`scroller`,void 0),V([R(`.top.anchor`)],Y.prototype,`topAnchor`,void 0),V([R(`.bottom.anchor`)],Y.prototype,`bottomAnchor`,void 0),V([R(`.focus-trap`)],Y.prototype,`firstFocusTrap`,void 0),V([P()],Y.prototype,`hasHeadline`,void 0),V([P()],Y.prototype,`hasActions`,void 0),V([P()],Y.prototype,`hasIcon`,void 0);function Be(e){let t=`:not(:disabled,[disabled])`;return e.matches(`:is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true])`+t+`:not([tabindex^="-"])`)?!0:!e.localName.includes(`-`)||!e.matches(t)?!1:e.shadowRoot?.delegatesFocus??!1}var Ve=H`: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}}
|
|
87
|
+
`;Ve.styleSheet;var He=class extends Y{};He.styles=[Ve],He=V([M(`md-dialog`)],He);var Ue=p(`<p class="svelte-17z3k9b">This session has no entries, so ending it deletes it. Its number is not reused.</p>`),We=p(`<p class="svelte-17z3k9b">Speech captured after this belongs to no session.</p>`),Ge=p(`<p role="alert" class="failure svelte-17z3k9b"> </p>`),Ke=p(`<md-dialog><div slot="headline"> </div> <div slot="content"><!> <!></div> <div slot="actions"><md-text-button>Cancel</md-text-button> <md-text-button>End session</md-text-button></div></md-dialog>`,2);function qe(o,u){t(u,!0);let f=l(()=>u.entries===0),p=a(``),h=a(!1);e(()=>{u.open&&i(p,``)});async function x(){if(!d(h)){i(p,``),i(h,!0);try{await u.onEnd(),u.onClose()}catch(e){i(p,e instanceof Error?e.message:`The session could not be ended.`,!0)}finally{i(h,!1)}}}var S=Ke();y(()=>_(S,`open`,u.open)),b(S,1,`svelte-17z3k9b`);var C=v(S),w=s(C),T=c(C,2),k=v(T),A=e=>{var t=Ue();E(e,t)},j=e=>{var t=We();E(e,t)};m(k,e=>{d(f)?e(A):e(j,-1)});var M=c(k,2),N=e=>{var t=Ge(),n=s(t,!0);y(()=>g(n,d(p))),E(e,t)};m(M,e=>{d(p)!==``&&e(N)}),r(T);var P=c(T,2),F=v(P);_(F,`type`,`button`);var I=c(F,2);_(I,`type`,`button`),y(()=>_(I,`disabled`,d(h))),r(P),r(S),y(()=>g(w,`${d(f)?`Drop`:`End`} session ${u.sessionId===null?``:`#${u.sessionId}`}?`)),D(`closed`,S,function(...e){u.onClose?.apply(this,e)}),n(`click`,F,function(...e){u.onClose?.apply(this,e)}),n(`click`,I,x),E(o,S),O()}u([`click`]);var Je=p(`<span class="dot svelte-wvg2ho"></span>`),Ye=p(`<span class="run svelte-wvg2ho"> </span>`),Xe=p(`<span class="meta svelte-wvg2ho"><!> <span class="svelte-wvg2ho"> </span> <!> <span class="svelte-wvg2ho"> </span> <span class="svelte-wvg2ho"> </span></span>`);function Ze(e,n){t(n,!0);let i=e=>{var t=Xe(),i=v(t),o=e=>{var t=Je();E(e,t)};m(i,e=>{n.live&&e(o)});var l=c(i,2),u=s(l,!0),f=c(l,2),p=e=>{var t=Ye(),n=s(t,!0);y(()=>g(n,d(a).run)),E(e,t)};m(f,e=>{d(a).run!==null&&e(p)});var h=c(f,2),_=s(h,!0),b=c(h,2),x=s(b,!0);r(t),y(()=>{g(u,d(a).id),g(_,d(a).duration),g(x,d(a).entries)}),E(e,t)},a=l(()=>be(n.session,n.now));ve(e,{get title(){return n.session.name},shape:`var(--md-sys-shape-corner-extra-large, 28px)`,get subtitle(){return i},get selected(){return n.selected},get description(){return d(a).spoken},get onSelect(){return n.onSelect}}),O()}var X=class extends q{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label=``,this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText=``,this.errorText=``,this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){let e=this.count??-1,t=this.max??-1;return e<0||t<=0?``:`${e} / ${t}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has(`disabled`)&&e.get(`disabled`)!==void 0&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set(`focused`,!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get(`focused`),wasPopulated:e.get(`populated`)}),super.update(e)}render(){let e=this.renderLabel(!0),t=this.renderLabel(!1),n=this.renderOutline?.(e),r={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return N`
|
|
88
88
|
<div class="field ${B(r)}">
|
|
89
89
|
<div class="container-overflow">
|
|
90
90
|
${this.renderBackground?.()}
|
|
@@ -96,7 +96,7 @@ import{A as e,B as t,C as n,H as r,I as i,L as a,M as o,N as s,P as c,R as l,S a
|
|
|
96
96
|
</div>
|
|
97
97
|
<div class="middle">
|
|
98
98
|
<div class="label-wrapper">
|
|
99
|
-
${t} ${n?
|
|
99
|
+
${t} ${n?z:e}
|
|
100
100
|
</div>
|
|
101
101
|
<div class="content">
|
|
102
102
|
<slot></slot>
|
|
@@ -109,16 +109,16 @@ import{A as e,B as t,C as n,H as r,I as i,L as a,M as o,N as s,P as c,R as l,S a
|
|
|
109
109
|
</div>
|
|
110
110
|
${this.renderSupportingText()}
|
|
111
111
|
</div>
|
|
112
|
-
`}updated(e){(e.has(`supportingText`)||e.has(`errorText`)||e.has(`count`)||e.has(`max`))&&this.updateSlottedAriaDescribedBy(),this.refreshErrorAlert&&requestAnimationFrame(()=>{this.refreshErrorAlert=!1}),this.disableTransitions&&requestAnimationFrame(()=>{this.disableTransitions=!1})}renderSupportingText(){let{supportingOrErrorText:e,counterText:t}=this;if(!e&&!t)return
|
|
112
|
+
`}updated(e){(e.has(`supportingText`)||e.has(`errorText`)||e.has(`count`)||e.has(`max`))&&this.updateSlottedAriaDescribedBy(),this.refreshErrorAlert&&requestAnimationFrame(()=>{this.refreshErrorAlert=!1}),this.disableTransitions&&requestAnimationFrame(()=>{this.disableTransitions=!1})}renderSupportingText(){let{supportingOrErrorText:e,counterText:t}=this;if(!e&&!t)return z;let n=N`<span>${e}</span>`,r=t?N`<span class="counter">${t}</span>`:z,i=this.error&&this.errorText&&!this.refreshErrorAlert?`alert`:z;return N`
|
|
113
113
|
<div class="supporting-text" role=${i}>${n}${r}</div>
|
|
114
114
|
<slot
|
|
115
115
|
name="aria-describedby"
|
|
116
116
|
@slotchange=${this.updateSlottedAriaDescribedBy}></slot>
|
|
117
|
-
`}updateSlottedAriaDescribedBy(){for(let e of this.slottedAriaDescribedBy)
|
|
117
|
+
`}updateSlottedAriaDescribedBy(){for(let e of this.slottedAriaDescribedBy)fe(N`${this.supportingOrErrorText} ${this.counterText}`,e),e.setAttribute(`hidden`,``)}renderLabel(e){if(!this.label)return z;let t;t=e?this.focused||this.populated||this.isAnimating:!this.focused&&!this.populated&&!this.isAnimating;let n={hidden:!t,floating:e,resting:!e},r=`${this.label}${this.required&&!this.noAsterisk?`*`:``}`;return N`
|
|
118
118
|
<span class="label ${B(n)}" aria-hidden=${!t}
|
|
119
119
|
>${r}</span
|
|
120
120
|
>
|
|
121
|
-
`}animateLabelIfNeeded({wasFocused:e,wasPopulated:t}){if(!this.label||(e??=this.focused,t??=this.populated,(e||t)===(this.focused||this.populated)))return;let n=this.getLabelKeyframes();n.length&&(this.isAnimating=!0,this.labelAnimation?.cancel(),this.labelAnimation=this.floatingLabelEl?.animate(n,{duration:150,easing:
|
|
121
|
+
`}animateLabelIfNeeded({wasFocused:e,wasPopulated:t}){if(!this.label||(e??=this.focused,t??=this.populated,(e||t)===(this.focused||this.populated)))return;let n=this.getLabelKeyframes();n.length&&(this.isAnimating=!0,this.labelAnimation?.cancel(),this.labelAnimation=this.floatingLabelEl?.animate(n,{duration:150,easing:W.STANDARD}),this.labelAnimation?.addEventListener(`finish`,()=>{this.isAnimating=!1}))}getLabelKeyframes(){let{floatingLabelEl:e,restingLabelEl:t}=this;if(!e||!t)return[];let{x:n,y:r,height:i}=e.getBoundingClientRect(),{x:a,y:o,height:s}=t.getBoundingClientRect(),c=e.scrollWidth,l=t.scrollWidth;if(c===0||l===0)return[];let u=l/c,d=`translateX(${a-n}px) translateY(${o-r+Math.round((s-i*u)/2)}px) scale(${u})`,f=`translateX(0) translateY(0) scale(1)`,p=t.clientWidth,m=l>p?`${p/u}px`:``;return this.focused||this.populated?[{transform:d,width:m},{transform:f,width:m}]:[{transform:f,width:m},{transform:d,width:m}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}};V([I({type:Boolean})],X.prototype,`disabled`,void 0),V([I({type:Boolean})],X.prototype,`error`,void 0),V([I({type:Boolean})],X.prototype,`focused`,void 0),V([I()],X.prototype,`label`,void 0),V([I({type:Boolean,attribute:`no-asterisk`})],X.prototype,`noAsterisk`,void 0),V([I({type:Boolean})],X.prototype,`populated`,void 0),V([I({type:Boolean})],X.prototype,`required`,void 0),V([I({type:Boolean})],X.prototype,`resizable`,void 0),V([I({attribute:`supporting-text`})],X.prototype,`supportingText`,void 0),V([I({attribute:`error-text`})],X.prototype,`errorText`,void 0),V([I({type:Number})],X.prototype,`count`,void 0),V([I({type:Number})],X.prototype,`max`,void 0),V([I({type:Boolean,attribute:`has-start`})],X.prototype,`hasStart`,void 0),V([I({type:Boolean,attribute:`has-end`})],X.prototype,`hasEnd`,void 0),V([pe({slot:`aria-describedby`})],X.prototype,`slottedAriaDescribedBy`,void 0),V([P()],X.prototype,`isAnimating`,void 0),V([P()],X.prototype,`refreshErrorAlert`,void 0),V([P()],X.prototype,`disableTransitions`,void 0),V([R(`.label.floating`)],X.prototype,`floatingLabelEl`,void 0),V([R(`.label.resting`)],X.prototype,`restingLabelEl`,void 0),V([R(`.container`)],X.prototype,`containerEl`,void 0);var Qe=class extends X{renderOutline(e){return N`
|
|
122
122
|
<div class="outline">
|
|
123
123
|
<div class="outline-start"></div>
|
|
124
124
|
<div class="outline-notch">
|
|
@@ -128,14 +128,14 @@ import{A as e,B as t,C as n,H as r,I as i,L as a,M as o,N as s,P as c,R as l,S a
|
|
|
128
128
|
</div>
|
|
129
129
|
<div class="outline-end"></div>
|
|
130
130
|
</div>
|
|
131
|
-
`}},Ze=F`@layer styles{:host{--_bottom-space: var(--md-outlined-field-bottom-space, 16px);--_content-color: var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-outlined-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-outlined-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-outlined-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-space: var(--md-outlined-field-content-space, 16px);--_content-weight: var(--md-outlined-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-content-color: var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-outlined-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-outlined-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-outlined-field-disabled-leading-content-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-outlined-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-outlined-field-disabled-trailing-content-opacity, 0.38);--_error-content-color: var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-content-color: var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-outlined-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-outlined-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-content-color: var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-outlined-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-outlined-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-outlined-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-outlined-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-content-color: var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-outlined-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-outlined-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-content-color: var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-content-color: var(--md-outlined-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-outlined-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-padding-bottom: var(--md-outlined-field-label-text-padding-bottom, 8px);--_label-text-populated-line-height: var(--md-outlined-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-outlined-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-outlined-field-leading-space, 16px);--_outline-color: var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-label-padding: var(--md-outlined-field-outline-label-padding, 4px);--_outline-width: var(--md-outlined-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-outlined-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-outlined-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-outlined-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-outlined-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-outlined-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-outlined-field-top-space, 16px);--_trailing-content-color: var(--md-outlined-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-outlined-field-trailing-space, 16px);--_with-leading-content-leading-space: var(--md-outlined-field-with-leading-content-leading-space, 12px);--_with-trailing-content-trailing-space: var(--md-outlined-field-with-trailing-content-trailing-space, 12px);--_container-shape-start-start: var(--md-outlined-field-container-shape-start-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-field-container-shape-start-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-field-container-shape-end-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-field-container-shape-end-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)))}.outline{border-color:var(--_outline-color);border-radius:inherit;display:flex;pointer-events:none;height:100%;position:absolute;width:100%;z-index:1}.outline-start::before,.outline-start::after,.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after,.outline-end::before,.outline-end::after{border:inherit;content:"";inset:0;position:absolute}.outline-start,.outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.outline-start::before,.outline-start::after,.outline-end::before,.outline-end::after{border-bottom-style:solid;border-top-style:solid}.outline-start::after,.outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-start::after,.focused .outline-end::after{opacity:1}.outline-start::before,.outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0;margin-inline-end:var(--_outline-label-padding)}.outline-end{flex-grow:1;margin-inline-start:calc(-1*var(--_outline-label-padding))}.outline-end::before,.outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.outline-notch{align-items:flex-start;border:inherit;display:flex;margin-inline-start:calc(-1*var(--_outline-label-padding));margin-inline-end:var(--_outline-label-padding);max-width:calc(100% - var(--_leading-space) - var(--_trailing-space));padding:0 var(--_outline-label-padding);position:relative}.no-label .outline-notch{display:none}.outline-panel-inactive,.outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.2, 0, 0, 1)}.outline-panel-inactive::before,.outline-panel-active::before{right:50%;transform-origin:top left}.outline-panel-inactive::after,.outline-panel-active::after{left:50%;transform-origin:top right}.populated .outline-panel-inactive::before,.populated .outline-panel-inactive::after,.populated .outline-panel-active::before,.populated .outline-panel-active::after,.focused .outline-panel-inactive::before,.focused .outline-panel-inactive::after,.focused .outline-panel-active::before,.focused .outline-panel-active::after{transform:scaleX(0)}.outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-panel-active{opacity:1}.outline-label{display:flex;max-width:100%;transform:translateY(calc(-100% + var(--_label-text-padding-bottom)))}.outline-start,.field:not(.with-start) .content ::slotted(*){padding-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-start) .label-wrapper{margin-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-end) .content ::slotted(*){padding-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.field:not(.with-end) .label-wrapper{margin-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.outline-start::before,.outline-end::before,.outline-panel-inactive,.outline-panel-inactive::before,.outline-panel-inactive::after{border-width:var(--_outline-width)}:hover .outline{border-color:var(--_hover-outline-color);color:var(--_hover-outline-color)}:hover .outline-start::before,:hover .outline-end::before,:hover .outline-panel-inactive,:hover .outline-panel-inactive::before,:hover .outline-panel-inactive::after{border-width:var(--_hover-outline-width)}.focused .outline{border-color:var(--_focus-outline-color);color:var(--_focus-outline-color)}.outline-start::after,.outline-end::after,.outline-panel-active,.outline-panel-active::before,.outline-panel-active::after{border-width:var(--_focus-outline-width)}.disabled .outline{border-color:var(--_disabled-outline-color);color:var(--_disabled-outline-color)}.disabled .outline-start,.disabled .outline-end,.disabled .outline-panel-inactive{opacity:var(--_disabled-outline-opacity)}.disabled .outline-start::before,.disabled .outline-end::before,.disabled .outline-panel-inactive,.disabled .outline-panel-inactive::before,.disabled .outline-panel-inactive::after{border-width:var(--_disabled-outline-width)}.error .outline{border-color:var(--_error-outline-color);color:var(--_error-outline-color)}.error:hover .outline{border-color:var(--_error-hover-outline-color);color:var(--_error-hover-outline-color)}.error.focused .outline{border-color:var(--_error-focus-outline-color);color:var(--_error-focus-outline-color)}.resizable .container{bottom:var(--_focus-outline-width);inset-inline-end:var(--_focus-outline-width);clip-path:inset(var(--_focus-outline-width) 0 0 var(--_focus-outline-width))}.resizable .container>*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}}@layer hcm{@media(forced-colors: active){.disabled .outline{border-color:GrayText;color:GrayText}.disabled :is(.outline-start,.outline-end,.outline-panel-inactive){opacity:1}}}
|
|
132
|
-
|
|
133
|
-
`;Qe.styleSheet;var $e=class extends Xe{};$e.styles=[Qe,Ze],$e=j([z(`md-outlined-field`)],$e);var et=F`:host{--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var(--md-outlined-text-field-container-shape-start-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-text-field-container-shape-start-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-text-field-container-shape-end-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-text-field-container-shape-end-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_icon-input-space: var(--md-outlined-text-field-icon-input-space, 16px);--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--_with-leading-icon-leading-space: var(--md-outlined-text-field-with-leading-icon-leading-space, 12px);--_with-trailing-icon-trailing-space: var(--md-outlined-text-field-with-trailing-icon-trailing-space, 12px);--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-space: var(--_icon-input-space);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space);--md-outlined-field-with-leading-content-leading-space: var(--_with-leading-icon-leading-space);--md-outlined-field-with-trailing-content-trailing-space: var(--_with-trailing-icon-trailing-space)}
|
|
134
|
-
`;
|
|
131
|
+
`}},$e=H`@layer styles{:host{--_bottom-space: var(--md-outlined-field-bottom-space, 16px);--_content-color: var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-outlined-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-outlined-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-outlined-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-space: var(--md-outlined-field-content-space, 16px);--_content-weight: var(--md-outlined-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-content-color: var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-outlined-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-outlined-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-outlined-field-disabled-leading-content-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-outlined-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-outlined-field-disabled-trailing-content-opacity, 0.38);--_error-content-color: var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-content-color: var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-outlined-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-outlined-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-content-color: var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-outlined-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-outlined-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-outlined-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-outlined-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-content-color: var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-outlined-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-outlined-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-content-color: var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-content-color: var(--md-outlined-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-outlined-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-padding-bottom: var(--md-outlined-field-label-text-padding-bottom, 8px);--_label-text-populated-line-height: var(--md-outlined-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-outlined-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-outlined-field-leading-space, 16px);--_outline-color: var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-label-padding: var(--md-outlined-field-outline-label-padding, 4px);--_outline-width: var(--md-outlined-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-outlined-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-outlined-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-outlined-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-outlined-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-outlined-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-outlined-field-top-space, 16px);--_trailing-content-color: var(--md-outlined-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-outlined-field-trailing-space, 16px);--_with-leading-content-leading-space: var(--md-outlined-field-with-leading-content-leading-space, 12px);--_with-trailing-content-trailing-space: var(--md-outlined-field-with-trailing-content-trailing-space, 12px);--_container-shape-start-start: var(--md-outlined-field-container-shape-start-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-field-container-shape-start-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-field-container-shape-end-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-field-container-shape-end-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)))}.outline{border-color:var(--_outline-color);border-radius:inherit;display:flex;pointer-events:none;height:100%;position:absolute;width:100%;z-index:1}.outline-start::before,.outline-start::after,.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after,.outline-end::before,.outline-end::after{border:inherit;content:"";inset:0;position:absolute}.outline-start,.outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.outline-start::before,.outline-start::after,.outline-end::before,.outline-end::after{border-bottom-style:solid;border-top-style:solid}.outline-start::after,.outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-start::after,.focused .outline-end::after{opacity:1}.outline-start::before,.outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0;margin-inline-end:var(--_outline-label-padding)}.outline-end{flex-grow:1;margin-inline-start:calc(-1*var(--_outline-label-padding))}.outline-end::before,.outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.outline-notch{align-items:flex-start;border:inherit;display:flex;margin-inline-start:calc(-1*var(--_outline-label-padding));margin-inline-end:var(--_outline-label-padding);max-width:calc(100% - var(--_leading-space) - var(--_trailing-space));padding:0 var(--_outline-label-padding);position:relative}.no-label .outline-notch{display:none}.outline-panel-inactive,.outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.2, 0, 0, 1)}.outline-panel-inactive::before,.outline-panel-active::before{right:50%;transform-origin:top left}.outline-panel-inactive::after,.outline-panel-active::after{left:50%;transform-origin:top right}.populated .outline-panel-inactive::before,.populated .outline-panel-inactive::after,.populated .outline-panel-active::before,.populated .outline-panel-active::after,.focused .outline-panel-inactive::before,.focused .outline-panel-inactive::after,.focused .outline-panel-active::before,.focused .outline-panel-active::after{transform:scaleX(0)}.outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-panel-active{opacity:1}.outline-label{display:flex;max-width:100%;transform:translateY(calc(-100% + var(--_label-text-padding-bottom)))}.outline-start,.field:not(.with-start) .content ::slotted(*){padding-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-start) .label-wrapper{margin-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-end) .content ::slotted(*){padding-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.field:not(.with-end) .label-wrapper{margin-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.outline-start::before,.outline-end::before,.outline-panel-inactive,.outline-panel-inactive::before,.outline-panel-inactive::after{border-width:var(--_outline-width)}:hover .outline{border-color:var(--_hover-outline-color);color:var(--_hover-outline-color)}:hover .outline-start::before,:hover .outline-end::before,:hover .outline-panel-inactive,:hover .outline-panel-inactive::before,:hover .outline-panel-inactive::after{border-width:var(--_hover-outline-width)}.focused .outline{border-color:var(--_focus-outline-color);color:var(--_focus-outline-color)}.outline-start::after,.outline-end::after,.outline-panel-active,.outline-panel-active::before,.outline-panel-active::after{border-width:var(--_focus-outline-width)}.disabled .outline{border-color:var(--_disabled-outline-color);color:var(--_disabled-outline-color)}.disabled .outline-start,.disabled .outline-end,.disabled .outline-panel-inactive{opacity:var(--_disabled-outline-opacity)}.disabled .outline-start::before,.disabled .outline-end::before,.disabled .outline-panel-inactive,.disabled .outline-panel-inactive::before,.disabled .outline-panel-inactive::after{border-width:var(--_disabled-outline-width)}.error .outline{border-color:var(--_error-outline-color);color:var(--_error-outline-color)}.error:hover .outline{border-color:var(--_error-hover-outline-color);color:var(--_error-hover-outline-color)}.error.focused .outline{border-color:var(--_error-focus-outline-color);color:var(--_error-focus-outline-color)}.resizable .container{bottom:var(--_focus-outline-width);inset-inline-end:var(--_focus-outline-width);clip-path:inset(var(--_focus-outline-width) 0 0 var(--_focus-outline-width))}.resizable .container>*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}}@layer hcm{@media(forced-colors: active){.disabled .outline{border-color:GrayText;color:GrayText}.disabled :is(.outline-start,.outline-end,.outline-panel-inactive){opacity:1}}}
|
|
132
|
+
`;$e.styleSheet;var et=H`:host{display:inline-flex;resize:both}.field{display:flex;flex:1;flex-direction:column;writing-mode:horizontal-tb;max-width:100%}.container-overflow{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start);display:flex;height:100%;position:relative}.container{align-items:center;border-radius:inherit;display:flex;flex:1;max-height:100%;min-height:100%;min-width:min-content;position:relative}.field,.container-overflow{resize:inherit}.resizable:not(.disabled) .container{resize:inherit;overflow:hidden}.disabled{pointer-events:none}slot[name=container]{border-radius:inherit}slot[name=container]::slotted(*){border-radius:inherit;inset:0;pointer-events:none;position:absolute}@layer styles{.start,.middle,.end{display:flex;box-sizing:border-box;height:100%;position:relative}.start{color:var(--_leading-content-color)}.end{color:var(--_trailing-content-color)}.start,.end{align-items:center;justify-content:center}.with-start .start{margin-inline:var(--_with-leading-content-leading-space) var(--_content-space)}.with-end .end{margin-inline:var(--_content-space) var(--_with-trailing-content-trailing-space)}.middle{align-items:stretch;align-self:baseline;flex:1}.content{color:var(--_content-color);display:flex;flex:1;opacity:0;transition:opacity 83ms cubic-bezier(0.2, 0, 0, 1)}.no-label .content,.focused .content,.populated .content{opacity:1;transition-delay:67ms}:is(.disabled,.disable-transitions) .content{transition:none}.content ::slotted(*){all:unset;color:currentColor;font-family:var(--_content-font);font-size:var(--_content-size);line-height:var(--_content-line-height);font-weight:var(--_content-weight);width:100%;overflow-wrap:revert;white-space:revert}.content ::slotted(:not(textarea)){padding-top:var(--_top-space);padding-bottom:var(--_bottom-space)}.content ::slotted(textarea){margin-top:var(--_top-space);margin-bottom:var(--_bottom-space)}:hover .content{color:var(--_hover-content-color)}:hover .start{color:var(--_hover-leading-content-color)}:hover .end{color:var(--_hover-trailing-content-color)}.focused .content{color:var(--_focus-content-color)}.focused .start{color:var(--_focus-leading-content-color)}.focused .end{color:var(--_focus-trailing-content-color)}.disabled .content{color:var(--_disabled-content-color)}.disabled.no-label .content,.disabled.focused .content,.disabled.populated .content{opacity:var(--_disabled-content-opacity)}.disabled .start{color:var(--_disabled-leading-content-color);opacity:var(--_disabled-leading-content-opacity)}.disabled .end{color:var(--_disabled-trailing-content-color);opacity:var(--_disabled-trailing-content-opacity)}.error .content{color:var(--_error-content-color)}.error .start{color:var(--_error-leading-content-color)}.error .end{color:var(--_error-trailing-content-color)}.error:hover .content{color:var(--_error-hover-content-color)}.error:hover .start{color:var(--_error-hover-leading-content-color)}.error:hover .end{color:var(--_error-hover-trailing-content-color)}.error.focused .content{color:var(--_error-focus-content-color)}.error.focused .start{color:var(--_error-focus-leading-content-color)}.error.focused .end{color:var(--_error-focus-trailing-content-color)}}@layer hcm{@media(forced-colors: active){.disabled :is(.start,.content,.end){color:GrayText;opacity:1}}}@layer styles{.label{box-sizing:border-box;color:var(--_label-text-color);overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;z-index:1;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);width:min-content}.label-wrapper{inset:0;pointer-events:none;position:absolute}.label.resting{position:absolute;top:var(--_top-space)}.label.floating{font-size:var(--_label-text-populated-size);line-height:var(--_label-text-populated-line-height);transform-origin:top left}.label.hidden{opacity:0}.no-label .label{display:none}.label-wrapper{inset:0;position:absolute;text-align:initial}:hover .label{color:var(--_hover-label-text-color)}.focused .label{color:var(--_focus-label-text-color)}.disabled .label{color:var(--_disabled-label-text-color)}.disabled .label:not(.hidden){opacity:var(--_disabled-label-text-opacity)}.error .label{color:var(--_error-label-text-color)}.error:hover .label{color:var(--_error-hover-label-text-color)}.error.focused .label{color:var(--_error-focus-label-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .label:not(.hidden){color:GrayText;opacity:1}}}@layer styles{.supporting-text{color:var(--_supporting-text-color);display:flex;font-family:var(--_supporting-text-font);font-size:var(--_supporting-text-size);line-height:var(--_supporting-text-line-height);font-weight:var(--_supporting-text-weight);gap:16px;justify-content:space-between;padding-inline-start:var(--_supporting-text-leading-space);padding-inline-end:var(--_supporting-text-trailing-space);padding-top:var(--_supporting-text-top-space)}.supporting-text :nth-child(2){flex-shrink:0}:hover .supporting-text{color:var(--_hover-supporting-text-color)}.focus .supporting-text{color:var(--_focus-supporting-text-color)}.disabled .supporting-text{color:var(--_disabled-supporting-text-color);opacity:var(--_disabled-supporting-text-opacity)}.error .supporting-text{color:var(--_error-supporting-text-color)}.error:hover .supporting-text{color:var(--_error-hover-supporting-text-color)}.error.focus .supporting-text{color:var(--_error-focus-supporting-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .supporting-text{color:GrayText;opacity:1}}}
|
|
133
|
+
`;et.styleSheet;var tt=class extends Qe{};tt.styles=[et,$e],tt=V([M(`md-outlined-field`)],tt);var nt=H`:host{--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var(--md-outlined-text-field-container-shape-start-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-text-field-container-shape-start-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-text-field-container-shape-end-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-text-field-container-shape-end-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_icon-input-space: var(--md-outlined-text-field-icon-input-space, 16px);--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--_with-leading-icon-leading-space: var(--md-outlined-text-field-with-leading-icon-leading-space, 12px);--_with-trailing-icon-trailing-space: var(--md-outlined-text-field-with-trailing-icon-trailing-space, 12px);--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-space: var(--_icon-input-space);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space);--md-outlined-field-with-leading-content-leading-space: var(--_with-leading-icon-leading-space);--md-outlined-field-with-trailing-content-trailing-space: var(--_with-trailing-icon-trailing-space)}
|
|
134
|
+
`;nt.styleSheet;var{I:rt}=de,it=e=>e.strings===void 0,at={},ot=(e,t=at)=>e._$AH=t,st=ae(class extends ee{constructor(e){if(super(e),e.type!==K.PROPERTY&&e.type!==K.ATTRIBUTE&&e.type!==K.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!it(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===L||t===z)return t;let n=e.element,r=e.name;if(e.type===K.PROPERTY){if(t===n[r])return L}else if(e.type===K.BOOLEAN_ATTRIBUTE){if(!!t===n.hasAttribute(r))return L}else if(e.type===K.ATTRIBUTE&&n.getAttribute(r)===t+``)return L;return ot(e),t}}),ct=`important`,lt=` !`+ct,ut=ae(class extends ee{constructor(e){if(super(e),e.type!==K.ATTRIBUTE||e.name!==`style`||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r==null?t:t+`${n=n.includes(`-`)?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,`-$&`).toLowerCase()}:${r};`},``)}update(e,[t]){let{style:n}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let e of this.ft)t[e]??(this.ft.delete(e),e.includes(`-`)?n.removeProperty(e):n[e]=null);for(let e in t){let r=t[e];if(r!=null){this.ft.add(e);let t=typeof r==`string`&&r.endsWith(lt);e.includes(`-`)||t?n.setProperty(e,t?r.slice(0,-11):r,t?ct:``):n[e]=r}}return L}}),dt={fromAttribute(e){return e??``},toAttribute(e){return e||null}},ft=Symbol(`createValidator`),pt=Symbol(`getValidityAnchor`),mt=Symbol(`privateValidator`),Z=Symbol(`privateSyncValidity`),ht=Symbol(`privateCustomValidationMessage`);function gt(e){var t;class n extends e{constructor(){super(...arguments),this[t]=``}get validity(){return this[Z](),this[U].validity}get validationMessage(){return this[Z](),this[U].validationMessage}get willValidate(){return this[Z](),this[U].willValidate}checkValidity(){return this[Z](),this[U].checkValidity()}reportValidity(){return this[Z](),this[U].reportValidity()}setCustomValidity(e){this[ht]=e,this[Z]()}requestUpdate(e,t,n){super.requestUpdate(e,t,n),this[Z]()}firstUpdated(e){super.firstUpdated(e),this[Z]()}[(t=ht,Z)](){this[mt]||(this[mt]=this[ft]());let{validity:e,validationMessage:t}=this[mt].getValidity(),n=!!this[ht],r=this[ht]||t;this[U].setValidity({...e,customError:n},r,this[pt]()??void 0)}[ft](){throw Error(`Implement [createValidator]`)}[pt](){throw Error(`Implement [getValidityAnchor]`)}}return n}var _t=Symbol(`onReportValidity`),vt=Symbol(`privateCleanupFormListeners`),yt=Symbol(`privateDoNotReportInvalid`),bt=Symbol(`privateIsSelfReportingValidity`),xt=Symbol(`privateCallOnReportValidity`);function St(e){var t,n,r;class i extends e{constructor(...e){super(...e),this[t]=new AbortController,this[n]=!1,this[r]=!1,this.addEventListener(`invalid`,e=>{!this[yt]&&e.isTrusted&&this.addEventListener(`invalid`,()=>{this[xt](e)},{once:!0})},{capture:!0})}checkValidity(){this[yt]=!0;let e=super.checkValidity();return this[yt]=!1,e}reportValidity(){this[bt]=!0;let e=super.reportValidity();return e&&this[xt](null),this[bt]=!1,e}[(t=vt,n=yt,r=bt,xt)](e){let t=e?.defaultPrevented;t||(this[_t](e),!t&&e?.defaultPrevented&&(this[bt]||Et(this[U].form,this))&&this.focus())}[_t](e){throw Error(`Implement [onReportValidity]`)}formAssociatedCallback(e){super.formAssociatedCallback&&super.formAssociatedCallback(e),this[vt].abort(),e&&(this[vt]=new AbortController,Ct(this,e,()=>{this[xt](null)},this[vt].signal))}}return i}function Ct(e,t,n,r){let i=Tt(t),a=!1,o,s=!1;i.addEventListener(`before`,()=>{s=!0,o=new AbortController,a=!1,e.addEventListener(`invalid`,()=>{a=!0},{signal:o.signal})},{signal:r}),i.addEventListener(`after`,()=>{s=!1,o?.abort(),a||n()},{signal:r}),t.addEventListener(`submit`,()=>{s||n()},{signal:r})}var wt=new WeakMap;function Tt(e){if(!wt.has(e)){let t=new EventTarget;wt.set(e,t);for(let n of[`reportValidity`,`requestSubmit`]){let r=e[n];e[n]=function(){t.dispatchEvent(new Event(`before`));let e=Reflect.apply(r,this,arguments);return t.dispatchEvent(new Event(`after`)),e}}}return wt.get(e)}function Et(e,t){if(!e)return!0;let n;for(let t of e.elements)if(t.matches(`:invalid`)){n=t;break}return n===t}var Dt=class{constructor(e){this.getCurrentState=e,this.currentValidity={validity:{},validationMessage:``}}getValidity(){let e=this.getCurrentState();if(this.prevState&&this.equals(this.prevState,e))return this.currentValidity;let{validity:t,validationMessage:n}=this.computeValidity(e);return this.prevState=this.copy(e),this.currentValidity={validationMessage:n,validity:{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing}},this.currentValidity}},Ot=class extends Dt{computeValidity({state:e,renderedControl:t}){let n=t;Q(e)&&!n?(n=this.inputControl||document.createElement(`input`),this.inputControl=n):n||(n=this.textAreaControl||document.createElement(`textarea`),this.textAreaControl=n);let r=Q(e)?n:null;if(r&&(r.type=e.type),n.value!==e.value&&(n.value=e.value),n.required=e.required,r){let t=e;t.pattern?r.pattern=t.pattern:r.removeAttribute(`pattern`),t.min?r.min=t.min:r.removeAttribute(`min`),t.max?r.max=t.max:r.removeAttribute(`max`),t.step?r.step=t.step:r.removeAttribute(`step`)}return(e.minLength??-1)>-1?n.setAttribute(`minlength`,String(e.minLength)):n.removeAttribute(`minlength`),(e.maxLength??-1)>-1?n.setAttribute(`maxlength`,String(e.maxLength)):n.removeAttribute(`maxlength`),{validity:n.validity,validationMessage:n.validationMessage}}equals({state:e},{state:t}){let n=e.type===t.type&&e.value===t.value&&e.required===t.required&&e.minLength===t.minLength&&e.maxLength===t.maxLength;return!Q(e)||!Q(t)?n:n&&e.pattern===t.pattern&&e.min===t.min&&e.max===t.max&&e.step===t.step}copy({state:e}){return{state:Q(e)?this.copyInput(e):this.copyTextArea(e),renderedControl:null}}copyInput(e){let{type:t,pattern:n,min:r,max:i,step:a}=e;return{...this.copySharedState(e),type:t,pattern:n,min:r,max:i,step:a}}copyTextArea(e){return{...this.copySharedState(e),type:e.type}}copySharedState({value:e,required:t,minLength:n,maxLength:r}){return{value:e,required:t,minLength:n,maxLength:r}}};function Q(e){return e.type!==`textarea`}var kt=re(St(gt(ne(ue(q))))),$=class extends kt{constructor(){super(...arguments),this.error=!1,this.errorText=``,this.label=``,this.noAsterisk=!1,this.required=!1,this.value=``,this.prefixText=``,this.suffixText=``,this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.supportingText=``,this.textDirection=``,this.rows=2,this.cols=20,this.inputMode=``,this.max=``,this.maxLength=-1,this.min=``,this.minLength=-1,this.noSpinner=!1,this.pattern=``,this.placeholder=``,this.readOnly=!1,this.multiple=!1,this.step=``,this.type=`text`,this.autocomplete=``,this.dirty=!1,this.focused=!1,this.nativeError=!1,this.nativeErrorText=``}get selectionDirection(){return this.getInputOrTextarea().selectionDirection}set selectionDirection(e){this.getInputOrTextarea().selectionDirection=e}get selectionEnd(){return this.getInputOrTextarea().selectionEnd}set selectionEnd(e){this.getInputOrTextarea().selectionEnd=e}get selectionStart(){return this.getInputOrTextarea().selectionStart}set selectionStart(e){this.getInputOrTextarea().selectionStart=e}get valueAsNumber(){let e=this.getInput();return e?e.valueAsNumber:NaN}set valueAsNumber(e){let t=this.getInput();t&&(t.valueAsNumber=e,this.value=t.value)}get valueAsDate(){let e=this.getInput();return e?e.valueAsDate:null}set valueAsDate(e){let t=this.getInput();t&&(t.valueAsDate=e,this.value=t.value)}get hasError(){return this.error||this.nativeError}select(){this.getInputOrTextarea().select()}setRangeText(...e){this.getInputOrTextarea().setRangeText(...e),this.value=this.getInputOrTextarea().value}setSelectionRange(e,t,n){this.getInputOrTextarea().setSelectionRange(e,t,n)}showPicker(){let e=this.getInput();e&&e.showPicker()}stepDown(e){let t=this.getInput();t&&(t.stepDown(e),this.value=t.value)}stepUp(e){let t=this.getInput();t&&(t.stepUp(e),this.value=t.value)}reset(){this.dirty=!1,this.value=this.getAttribute(`value`)??``,this.nativeError=!1,this.nativeErrorText=``}attributeChangedCallback(e,t,n){e===`value`&&this.dirty||super.attributeChangedCallback(e,t,n)}render(){let e={disabled:this.disabled,error:!this.disabled&&this.hasError,textarea:this.type===`textarea`,"no-spinner":this.noSpinner};return N`
|
|
135
135
|
<span class="text-field ${B(e)}">
|
|
136
136
|
${this.renderField()}
|
|
137
137
|
</span>
|
|
138
|
-
`}updated(e){let t=this.getInputOrTextarea().value;this.value!==t&&(this.value=t)}renderField(){return
|
|
138
|
+
`}updated(e){let t=this.getInputOrTextarea().value;this.value!==t&&(this.value=t)}renderField(){return se`<${this.fieldTag}
|
|
139
139
|
class="field"
|
|
140
140
|
count=${this.value.length}
|
|
141
141
|
?disabled=${this.disabled}
|
|
@@ -157,62 +157,62 @@ import{A as e,B as t,C as n,H as r,I as i,L as a,M as o,N as s,P as c,R as l,S a
|
|
|
157
157
|
${this.renderTrailingIcon()}
|
|
158
158
|
<div id="description" slot="aria-describedby"></div>
|
|
159
159
|
<slot name="container" slot="container"></slot>
|
|
160
|
-
</${this.fieldTag}>`}renderLeadingIcon(){return
|
|
160
|
+
</${this.fieldTag}>`}renderLeadingIcon(){return N`
|
|
161
161
|
<span class="icon leading" slot="start">
|
|
162
162
|
<slot name="leading-icon" @slotchange=${this.handleIconChange}></slot>
|
|
163
163
|
</span>
|
|
164
|
-
`}renderTrailingIcon(){return
|
|
164
|
+
`}renderTrailingIcon(){return N`
|
|
165
165
|
<span class="icon trailing" slot="end">
|
|
166
166
|
<slot name="trailing-icon" @slotchange=${this.handleIconChange}></slot>
|
|
167
167
|
</span>
|
|
168
|
-
`}renderInputOrTextarea(){let e={direction:this.textDirection},t=this.ariaLabel||this.label||
|
|
168
|
+
`}renderInputOrTextarea(){let e={direction:this.textDirection},t=this.ariaLabel||this.label||z,n=this.autocomplete,r=(this.maxLength??-1)>-1,i=(this.minLength??-1)>-1;if(this.type===`textarea`)return N`
|
|
169
169
|
<textarea
|
|
170
170
|
class="input"
|
|
171
|
-
style=${
|
|
171
|
+
style=${ut(e)}
|
|
172
172
|
aria-describedby="description"
|
|
173
173
|
aria-invalid=${this.hasError}
|
|
174
174
|
aria-label=${t}
|
|
175
|
-
autocomplete=${n||
|
|
176
|
-
name=${this.name||
|
|
175
|
+
autocomplete=${n||z}
|
|
176
|
+
name=${this.name||z}
|
|
177
177
|
?disabled=${this.disabled}
|
|
178
|
-
maxlength=${r?this.maxLength:
|
|
179
|
-
minlength=${i?this.minLength:
|
|
180
|
-
placeholder=${this.placeholder||
|
|
178
|
+
maxlength=${r?this.maxLength:z}
|
|
179
|
+
minlength=${i?this.minLength:z}
|
|
180
|
+
placeholder=${this.placeholder||z}
|
|
181
181
|
?readonly=${this.readOnly}
|
|
182
182
|
?required=${this.required}
|
|
183
183
|
rows=${this.rows}
|
|
184
184
|
cols=${this.cols}
|
|
185
|
-
.value=${
|
|
185
|
+
.value=${st(this.value)}
|
|
186
186
|
@change=${this.redispatchEvent}
|
|
187
187
|
@focus=${this.handleFocusChange}
|
|
188
188
|
@blur=${this.handleFocusChange}
|
|
189
189
|
@input=${this.handleInput}
|
|
190
190
|
@select=${this.redispatchEvent}></textarea>
|
|
191
|
-
`;let a=this.renderPrefix(),o=this.renderSuffix(),s=this.inputMode;return
|
|
191
|
+
`;let a=this.renderPrefix(),o=this.renderSuffix(),s=this.inputMode;return N`
|
|
192
192
|
<div class="input-wrapper">
|
|
193
193
|
${a}
|
|
194
194
|
<input
|
|
195
195
|
class="input"
|
|
196
|
-
style=${
|
|
196
|
+
style=${ut(e)}
|
|
197
197
|
aria-describedby="description"
|
|
198
198
|
aria-invalid=${this.hasError}
|
|
199
199
|
aria-label=${t}
|
|
200
|
-
autocomplete=${n||
|
|
201
|
-
name=${this.name||
|
|
200
|
+
autocomplete=${n||z}
|
|
201
|
+
name=${this.name||z}
|
|
202
202
|
?disabled=${this.disabled}
|
|
203
|
-
inputmode=${s||
|
|
204
|
-
max=${this.max||
|
|
205
|
-
maxlength=${r?this.maxLength:
|
|
206
|
-
min=${this.min||
|
|
207
|
-
minlength=${i?this.minLength:
|
|
208
|
-
pattern=${this.pattern||
|
|
209
|
-
placeholder=${this.placeholder||
|
|
203
|
+
inputmode=${s||z}
|
|
204
|
+
max=${this.max||z}
|
|
205
|
+
maxlength=${r?this.maxLength:z}
|
|
206
|
+
min=${this.min||z}
|
|
207
|
+
minlength=${i?this.minLength:z}
|
|
208
|
+
pattern=${this.pattern||z}
|
|
209
|
+
placeholder=${this.placeholder||z}
|
|
210
210
|
?readonly=${this.readOnly}
|
|
211
211
|
?required=${this.required}
|
|
212
212
|
?multiple=${this.multiple}
|
|
213
|
-
step=${this.step||
|
|
213
|
+
step=${this.step||z}
|
|
214
214
|
type=${this.type}
|
|
215
|
-
.value=${
|
|
215
|
+
.value=${st(this.value)}
|
|
216
216
|
@change=${this.redispatchEvent}
|
|
217
217
|
@focus=${this.handleFocusChange}
|
|
218
218
|
@blur=${this.handleFocusChange}
|
|
@@ -220,5 +220,5 @@ import{A as e,B as t,C as n,H as r,I as i,L as a,M as o,N as s,P as c,R as l,S a
|
|
|
220
220
|
@select=${this.redispatchEvent} />
|
|
221
221
|
${o}
|
|
222
222
|
</div>
|
|
223
|
-
`}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,t){return e?
|
|
224
|
-
`;
|
|
223
|
+
`}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,t){return e?N`<span class="${B({suffix:t,prefix:!t})}">${e}</span>`:z}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusChange(){this.focused=this.inputOrTextarea?.matches(`:focus`)??!1}handleInput(e){this.dirty=!0,this.value=e.target.value}redispatchEvent(e){Ie(this,e)}getInputOrTextarea(){return this.inputOrTextarea||(this.connectedCallback(),this.scheduleUpdate()),this.isUpdatePending&&this.scheduleUpdate(),this.inputOrTextarea}getInput(){return this.type===`textarea`?null:this.getInputOrTextarea()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0,this.hasTrailingIcon=this.trailingIcons.length>0}[ce](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}[ft](){return new Ot(()=>({state:this,renderedControl:this.inputOrTextarea}))}[pt](){return this.inputOrTextarea}[_t](e){e?.preventDefault();let t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&this.field?.reannounceError()}};$.shadowRootOptions={...q.shadowRootOptions,delegatesFocus:!0},V([I({type:Boolean,reflect:!0})],$.prototype,`error`,void 0),V([I({attribute:`error-text`})],$.prototype,`errorText`,void 0),V([I()],$.prototype,`label`,void 0),V([I({type:Boolean,attribute:`no-asterisk`})],$.prototype,`noAsterisk`,void 0),V([I({type:Boolean,reflect:!0})],$.prototype,`required`,void 0),V([I()],$.prototype,`value`,void 0),V([I({attribute:`prefix-text`})],$.prototype,`prefixText`,void 0),V([I({attribute:`suffix-text`})],$.prototype,`suffixText`,void 0),V([I({type:Boolean,attribute:`has-leading-icon`})],$.prototype,`hasLeadingIcon`,void 0),V([I({type:Boolean,attribute:`has-trailing-icon`})],$.prototype,`hasTrailingIcon`,void 0),V([I({attribute:`supporting-text`})],$.prototype,`supportingText`,void 0),V([I({attribute:`text-direction`})],$.prototype,`textDirection`,void 0),V([I({type:Number})],$.prototype,`rows`,void 0),V([I({type:Number})],$.prototype,`cols`,void 0),V([I({reflect:!0})],$.prototype,`inputMode`,void 0),V([I()],$.prototype,`max`,void 0),V([I({type:Number})],$.prototype,`maxLength`,void 0),V([I()],$.prototype,`min`,void 0),V([I({type:Number})],$.prototype,`minLength`,void 0),V([I({type:Boolean,attribute:`no-spinner`})],$.prototype,`noSpinner`,void 0),V([I()],$.prototype,`pattern`,void 0),V([I({reflect:!0,converter:dt})],$.prototype,`placeholder`,void 0),V([I({type:Boolean,reflect:!0})],$.prototype,`readOnly`,void 0),V([I({type:Boolean,reflect:!0})],$.prototype,`multiple`,void 0),V([I()],$.prototype,`step`,void 0),V([I({reflect:!0})],$.prototype,`type`,void 0),V([I({reflect:!0})],$.prototype,`autocomplete`,void 0),V([P()],$.prototype,`dirty`,void 0),V([P()],$.prototype,`focused`,void 0),V([P()],$.prototype,`nativeError`,void 0),V([P()],$.prototype,`nativeErrorText`,void 0),V([R(`.input`)],$.prototype,`inputOrTextarea`,void 0),V([R(`.field`)],$.prototype,`field`,void 0),V([pe({slot:`leading-icon`})],$.prototype,`leadingIcons`,void 0),V([pe({slot:`trailing-icon`})],$.prototype,`trailingIcons`,void 0);var At=class extends ${constructor(){super(...arguments),this.fieldTag=ie`md-outlined-field`}},jt=H`:host{display:inline-flex;outline:none;resize:both;text-align:start;-webkit-tap-highlight-color:rgba(0,0,0,0)}.text-field,.field{width:100%}.text-field{display:inline-flex}.field{cursor:text}.disabled .field{cursor:default}.text-field,.textarea .field{resize:inherit}slot[name=container]{border-radius:inherit}.icon{color:currentColor;display:flex;align-items:center;justify-content:center;fill:currentColor;position:relative}.icon ::slotted(*){display:flex;position:absolute}[has-start] .icon.leading{font-size:var(--_leading-icon-size);height:var(--_leading-icon-size);width:var(--_leading-icon-size)}[has-end] .icon.trailing{font-size:var(--_trailing-icon-size);height:var(--_trailing-icon-size);width:var(--_trailing-icon-size)}.input-wrapper{display:flex}.input-wrapper>*{all:inherit;padding:0}.input{caret-color:var(--_caret-color);overflow-x:hidden;text-align:inherit}.input::placeholder{color:currentColor;opacity:1}.input::-webkit-calendar-picker-indicator{display:none}.input::-webkit-search-decoration,.input::-webkit-search-cancel-button{display:none}@media(forced-colors: active){.input{background:none}}.no-spinner .input::-webkit-inner-spin-button,.no-spinner .input::-webkit-outer-spin-button{display:none}.no-spinner .input[type=number]{-moz-appearance:textfield}:focus-within .input{caret-color:var(--_focus-caret-color)}.error:focus-within .input{caret-color:var(--_error-focus-caret-color)}.text-field:not(.disabled) .prefix{color:var(--_input-text-prefix-color)}.text-field:not(.disabled) .suffix{color:var(--_input-text-suffix-color)}.text-field:not(.disabled) .input::placeholder{color:var(--_input-text-placeholder-color)}.prefix,.suffix{text-wrap:nowrap;width:min-content}.prefix{padding-inline-end:var(--_input-text-prefix-trailing-space)}.suffix{padding-inline-start:var(--_input-text-suffix-leading-space)}
|
|
224
|
+
`;jt.styleSheet;var Mt=class extends At{constructor(){super(...arguments),this.fieldTag=ie`md-outlined-field`}};Mt.styles=[jt,nt],Mt=V([M(`md-outlined-text-field`)],Mt);var Nt=p(`<p role="alert" class="failure svelte-2k1elc"> </p>`),Pt=p(`<md-dialog><div slot="headline">Start a session</div> <form slot="content" id="start-session-form" novalidate="" class="svelte-2k1elc"><md-outlined-text-field></md-outlined-text-field> <md-outlined-text-field></md-outlined-text-field> <!></form> <div slot="actions"><md-text-button>Cancel</md-text-button> <md-text-button>Start</md-text-button></div></md-dialog>`,2);function Ft(o,l){t(l,!0);let u=a(``),f=a(``),p=a(``),h=a(``),x=a(!1);e(()=>{l.open&&(i(u,``),i(f,``),i(p,``),i(h,``))});async function S(e){if(e.preventDefault(),d(x))return;let t=d(u).trim();if(t===``)i(p,`Enter a name.`);else{i(p,``),i(h,``),i(x,!0);try{await l.onStart(t,d(f).trim()===``?null:d(f).trim()),l.onClose()}catch(e){i(h,e instanceof Error?e.message:`The session could not be started.`,!0)}finally{i(x,!1)}}}var C=Pt();y(()=>_(C,`open`,l.open)),b(C,1,`svelte-2k1elc`);var w=c(v(C),2),T=v(w);_(T,`label`,`Name`),_(T,`required`,!0),y(()=>_(T,`maxlength`,te.sessionLabelLength)),y(()=>_(T,`value`,d(u))),y(()=>_(T,`error`,d(p)!==``)),y(()=>_(T,`error-text`,d(p)));var k=c(T,2);_(k,`label`,`Run (optional)`),_(k,`supporting-text`,`Groups sessions, for example one run id per test run.`),y(()=>_(k,`maxlength`,te.sessionLabelLength)),y(()=>_(k,`value`,d(f)));var A=c(k,2),j=e=>{var t=Nt(),n=s(t,!0);y(()=>g(n,d(h))),E(e,t)};m(A,e=>{d(h)!==``&&e(j)}),r(w);var M=c(w,2),N=v(M);_(N,`type`,`button`);var P=c(N,2);_(P,`type`,`submit`),_(P,`form`,`start-session-form`),y(()=>_(P,`disabled`,d(x))),r(M),r(C),D(`closed`,C,function(...e){l.onClose?.apply(this,e)}),D(`submit`,w,S),n(`input`,T,e=>i(u,e.target.value,!0)),n(`input`,k,e=>i(f,e.target.value,!0)),n(`click`,N,function(...e){l.onClose?.apply(this,e)}),E(o,C),O()}u([`input`,`click`]);var It=p(`<span> </span>`),Lt=p(`<md-icon-button><md-icon> </md-icon></md-icon-button>`,2),Rt=p(`<p class="empty svelte-1fz71rn">No sessions in the buffer. Start one with the play button.</p>`),zt=p(`<ul aria-labelledby="sessions-heading" class="svelte-1fz71rn"></ul>`),Bt=p(`<ul class="outside svelte-1fz71rn" aria-label="Outside sessions"><!></ul>`),Vt=p(`<section aria-labelledby="sessions-heading"><header class="svelte-1fz71rn"><!> <h2 id="sessions-heading">Sessions</h2> <md-icon-button><md-icon> </md-icon></md-icon-button></header> <!> <!></section> <!> <!>`,3);function Ht(e,u){t(u,!0);let f=e=>{var t=It(),n=s(t,!0);y(()=>g(n,d(k))),E(e,t)},p=w(u,`collapsed`,3,!1),h=a(!1),x=a(!1),S=l(()=>u.currentId===null?`Start a session`:`End session ${u.currentId}`),D=l(()=>p()?`Expand sessions`:`Collapse sessions`),k=l(()=>u.outsideEntries===1?`1 entry`:`${u.outsideEntries} entries`);var A=Vt(),j=o(A);let M;var N=v(j),P=v(N),F=e=>{var t=Lt();b(t,1,`collapse`),y(()=>_(t,`title`,d(D))),y(()=>_(t,`aria-label`,d(D))),y(()=>_(t,`aria-expanded`,!p()));var i=v(t);_(i,`aria-hidden`,`true`);var a=s(i,!0);r(t),y(()=>g(a,p()?`left_panel_open`:`left_panel_close`)),n(`click`,t,function(...e){u.onToggleCollapse?.apply(this,e)}),E(e,t)};m(P,e=>{u.onToggleCollapse&&e(F)});var I=c(P,2);let L;var R=c(I,2);y(()=>_(R,`title`,d(S))),y(()=>_(R,`aria-label`,d(S)));var ee=v(R);_(ee,`aria-hidden`,`true`);var te=s(ee,!0);r(R),r(N);var z=c(N,2),ne=e=>{},re=e=>{var t=Rt();E(e,t)},ie=e=>{var t=zt();T(t,21,()=>u.sessions,e=>e.id,(e,t)=>{{let n=l(()=>d(t).id===u.currentId),r=l(()=>d(t).id===u.selectedId);Ze(e,{get session(){return d(t)},get now(){return u.now},get live(){return d(n)},get selected(){return d(r)},onSelect:()=>u.onSelect(d(t).id)})}}),r(t),E(e,t)};m(z,e=>{p()?e(ne):u.sessions.length===0?e(re,1):e(ie,-1)});var ae=c(z,2),B=e=>{var t=Bt(),n=v(t);{let e=l(()=>u.selectedId===xe),t=l(()=>`Speech captured while no session was running, ${d(k)}`);ve(n,{title:`Outside sessions`,shape:`var(--md-sys-shape-corner-extra-large, 28px)`,get subtitle(){return f},get selected(){return d(e)},get description(){return d(t)},onSelect:()=>u.onSelect(xe)})}r(t),E(e,t)};m(ae,e=>{!p()&&(u.outsideEntries>0||u.selectedId===`none`)&&e(B)}),r(j);var V=c(j,2);Ft(V,{get open(){return d(h)},get onStart(){return u.onStart},onClose:()=>i(h,!1)});var H=c(V,2);{let e=l(()=>u.sessions.find(e=>e.id===u.currentId)?.entries??null);qe(H,{get open(){return d(x)},get sessionId(){return u.currentId},get entries(){return d(e)},get onEnd(){return u.onEnd},onClose:()=>i(x,!1)})}y(()=>{M=b(j,1,`svelte-1fz71rn`,null,M,{collapsed:p()}),L=b(I,1,`svelte-1fz71rn`,null,L,{"visually-hidden":p()}),b(R,1,C(u.currentId===null?`start`:`stop`),`svelte-1fz71rn`),g(te,u.currentId===null?`play_arrow`:`stop`)}),n(`click`,R,()=>u.currentId===null?i(h,!0):i(x,!0)),E(e,A),O()}u([`click`]);var Ut=p(`<p> </p>`),Wt=p(`<p>The bridge is not reachable.</p>`),Gt=p(`<div class="monitor svelte-1uha8ag"><aside><!></aside> <div class="log svelte-1uha8ag"><h1>Monitor</h1> <!></div></div>`);function Kt(e,n){t(n,!0);let i=l(()=>G.loaded?{sessions:G.sessions,currentId:G.currentId,outsideEntries:G.outsideEntries}:n.data.sessions??{sessions:[],currentId:null,outsideEntries:0}),a=l(()=>G.loaded?G.now:n.data.now),o=l(()=>Se(k.url.searchParams.get(`session`),d(i).sessions,d(i).currentId));h(()=>(le.init(),G.init(n.data.sessions)));function u(e){let t=e===null||e===d(i).currentId;return j(t?A(`/`):`${A(`/`)}?session=${e}`,{reset:!1})}async function f(e,t){await G.start(e,t),await u(null)}var p=Gt(),_=v(p);let x;Ht(v(_),{get collapsed(){return le.collapsed},onToggleCollapse:()=>le.toggle(),get sessions(){return d(i).sessions},get currentId(){return d(i).currentId},get outsideEntries(){return d(i).outsideEntries},get selectedId(){return d(o)},get now(){return d(a)},onSelect:e=>void u(e),onStart:f,onEnd:()=>G.end()}),r(_);var S=c(_,2),C=c(v(S),2),w=e=>{var t=Ut(),r=s(t);y(()=>g(r,`Bridge ${n.data.status.bridge.version??``} is ${n.data.status.bridge.state??``}.`)),E(e,t)},T=e=>{var t=Wt();E(e,t)};m(C,e=>{n.data.status?e(w):e(T,-1)}),r(S),r(p),y(()=>x=b(_,1,`svelte-1uha8ag`,null,x,{collapsed:le.collapsed})),E(e,p),O()}export{Kt as component};
|