scb-wc-test 0.1.2 → 0.1.4

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/README.md CHANGED
@@ -45,7 +45,7 @@ Lägg till i din apps `package.json`:
45
45
  ```jsonc
46
46
  {
47
47
  "scripts": {
48
- "ui:install": "node -e \"const fs=require('fs'),p=require('path');const base=(process.env.npm_config_ui_wwwroot)||'wwwroot';const src=p.resolve('node_modules/scb-wc-test/mvc');const dst=p.resolve(base,'ui');if(!fs.existsSync(src)){console.error('Hittar inte '+src+'. Har du kört npm install scb-wc-test?');process.exit(1);}fs.rmSync(dst,{recursive:true,force:true});fs.mkdirSync(base,{recursive:true});fs.cpSync(src,dst,{recursive:true});console.log('Kopierade '+src+' → '+dst);\""
48
+ "ui:install": "node -e \"const fs=require('fs'),p=require('path');const src=p.resolve('node_modules/scb-wc-test/mvc');if(!fs.existsSync(src)){console.error('Hittar inte '+src+'. Har du kört npm install scb-wc-test?');process.exit(1);}const start=process.env.INIT_CWD||process.cwd();const ov=process.env.npm_config_ui_wwwroot;function findBase(){if(ov){return p.isAbsolute(ov)?ov:p.resolve(start,ov);}let d=start;while(true){const cand=p.join(d,'wwwroot');if(fs.existsSync(cand)) return cand;const up=p.dirname(d);if(up===d) return p.resolve(start,'wwwroot');d=up;}}const base=findBase();const dst=p.resolve(base,'ui');fs.rmSync(dst,{recursive:true,force:true});fs.mkdirSync(base,{recursive:true});fs.cpSync(src,dst,{recursive:true});console.log('Kopierade '+src+' → '+dst);\""
49
49
  }
50
50
  }
51
51
  ```
@@ -57,24 +57,6 @@ npm run ui:install
57
57
 
58
58
  Det kopierar hela `mvc/` till `wwwroot/ui/` (komponenter, vendor och CSS).
59
59
 
60
- #### Vanliga lägen (var ligger din `package.json`?)
61
-
62
- **A) Standard MVC-projekt**
63
- `package.json` ligger i **projektroten** (vid sidan av `.csproj`).
64
- Kör bara:
65
- ```sh
66
- npm run ui:install
67
- ```
68
- Resultat: filer kopieras till `./wwwroot/ui/`.
69
-
70
- **B) Frontend i `ClientApp/`**
71
- `package.json` ligger i **ClientApp/** och webbroten är `../wwwroot`.
72
- Kör med flagga:
73
- ```sh
74
- npm run ui:install --ui_wwwroot=../wwwroot
75
- ```
76
- Resultat: filer kopieras till `../wwwroot/ui/`.
77
-
78
60
  ### Ladda filer i din layout
79
61
 
80
62
  ```html
@@ -1,5 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../vendor/vendor-material.js","../../vendor/vendor.js"])))=>i.map(i=>d[i]);
2
- import{_ as d}from"../../vendor/preload-helper.js";import{n as m,i as p,b,x as n,t as h}from"../../vendor/vendor.js";import"./scb-breadcrumb-item.js";var u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c=(e,s,a,l)=>{for(var r=l>1?void 0:l?f(s,a):s,i=e.length-1,o;i>=0;i--)(o=e[i])&&(r=(l?o(s,a,r):o(r))||r);return l&&r&&u(s,a,r),r};let t=class extends p{constructor(){super(...arguments),this.showAll=!1}async __ensureIconLoaded(){t.__iconLoaded||(await d(()=>import("../../vendor/vendor-material.js").then(e=>e.i),__vite__mapDeps([0,1]),import.meta.url),t.__iconLoaded=!0)}static get styles(){return b`
1
+ import{n as d,t as m,i as b,b as p,x as o}from"../../vendor/vendor.js";import"./scb-breadcrumb-item.js";import"../../vendor/vendor-material.js";var h=Object.defineProperty,u=Object.getOwnPropertyDescriptor,n=(e,s,r,l)=>{for(var a=l>1?void 0:l?u(s,r):s,t=e.length-1,i;t>=0;t--)(i=e[t])&&(a=(l?i(s,r,a):i(a))||a);return l&&a&&h(s,r,a),a};let c=class extends b{constructor(){super(...arguments),this.showAll=!1}static get styles(){return p`
3
2
  .scb-breadcrumb {
4
3
  display: flex;
5
4
  align-items: center;
@@ -27,26 +26,26 @@ import{_ as d}from"../../vendor/preload-helper.js";import{n as m,i as p,b,x as n
27
26
  .expanded .ellipsis {
28
27
  display: none;
29
28
  }
30
- .breadcrumb-animate {
31
- opacity: 0;
32
- transform: translateY(10px);
33
- animation: fadeInBreadcrumb 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
34
- }
35
- @keyframes fadeInBreadcrumb {
36
- to {
37
- opacity: 1;
38
- transform: translateY(0);
39
- }
29
+ .breadcrumb-animate {
30
+ opacity: 0;
31
+ transform: translateY(10px);
32
+ animation: fadeInBreadcrumb 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
33
+ }
34
+ @keyframes fadeInBreadcrumb {
35
+ to {
36
+ opacity: 1;
37
+ transform: translateY(0);
40
38
  }
41
- `}firstUpdated(){this.children.length>6&&!this.showAll&&this.__ensureIconLoaded()}_onEllipsisClick(){this.showAll?(this.showAll=!1,t.__iconLoaded||this.__ensureIconLoaded()):(this.showAll=!0,this.updateComplete.then(()=>{const e=this.shadowRoot?.querySelectorAll(".scb-breadcrumb.expanded > scb-breadcrumb-item");e&&(e.forEach((s,a)=>{s.classList.add("breadcrumb-animate"),s.style.animationDelay=`${a*60}ms`}),setTimeout(()=>{e.forEach(s=>{s.classList.remove("breadcrumb-animate"),s.style.animationDelay=""})},600))}))}render(){let e=[];this.children.length||(e=Array.from(this.shadowRoot?this.shadowRoot.querySelectorAll("scb-breadcrumb-item"):[])),e.length||(e=Array.from(this.children).filter(a=>a.tagName.toLowerCase()==="scb-breadcrumb-item")),e.length>0&&e[e.length-1].setAttribute("is-current","true");const s=e.length>6&&!this.showAll;return n`
39
+ }
40
+ `}_onEllipsisClick(){this.showAll?this.showAll=!1:(this.showAll=!0,this.updateComplete.then(()=>{const e=this.shadowRoot?.querySelectorAll(".scb-breadcrumb.expanded > scb-breadcrumb-item");e&&(e.forEach((s,r)=>{s.classList.add("breadcrumb-animate"),s.style.animationDelay=`${r*60}ms`}),setTimeout(()=>{e.forEach(s=>{s.classList.remove("breadcrumb-animate"),s.style.animationDelay=""})},600))}))}render(){let e=[];this.children.length||(e=Array.from(this.shadowRoot?this.shadowRoot.querySelectorAll("scb-breadcrumb-item"):[])),e.length||(e=Array.from(this.children).filter(r=>r.tagName.toLowerCase()==="scb-breadcrumb-item")),e.length>0&&e[e.length-1].setAttribute("is-current","true");const s=e.length>6&&!this.showAll;return o`
42
41
  <div class="scb-breadcrumb ${s?"collapsed":"expanded"}">
43
- ${s?e.map((a,l)=>l===3?n`<span
42
+ ${s?e.map((r,l)=>l===3?o`<span
44
43
  class="ellipsis"
45
44
  aria-label="Visa alla"
46
45
  role="button"
47
46
  tabindex="0"
48
47
  @click=${this._onEllipsisClick}
49
- @keydown=${r=>{(r.key==="Enter"||r.key===" ")&&this._onEllipsisClick()}}
50
- ><md-icon>more_horiz</md-icon></span><span class="breadcrumb-separator">/</span>${a}`:n`${a}`):e.map(a=>a)}
48
+ @keydown=${a=>{(a.key==="Enter"||a.key===" ")&&this._onEllipsisClick()}}
49
+ ><md-icon>more_horiz</md-icon></span><span class="breadcrumb-separator">/</span>${r}`:o`${r}`):e.map(r=>r)}
51
50
  </div>
52
- `}};t.__iconLoaded=!1;c([m({type:Boolean})],t.prototype,"showAll",2);t=c([h("scb-breadcrumb")],t);
51
+ `}};n([d({type:Boolean})],c.prototype,"showAll",2);c=n([m("scb-breadcrumb")],c);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scb-wc-test",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -253,5 +253,5 @@
253
253
  },
254
254
  "./mvc/*": "./mvc/*"
255
255
  },
256
- "buildHash": "C5ABB771E597ABFC063C8CFFFEA3234B846F8421F9C164C6DAC64D93234212C4"
256
+ "buildHash": "CD32372191927C7EF78539D1A827994CA4ABF22CA526979C7B46A3054BE1234B"
257
257
  }
@@ -2,10 +2,7 @@ import { LitElement, TemplateResult } from 'lit';
2
2
 
3
3
  export declare class SCBBreadcrumb extends LitElement {
4
4
  showAll: boolean;
5
- private static __iconLoaded;
6
- private __ensureIconLoaded;
7
5
  static get styles(): import('lit').CSSResult;
8
- protected firstUpdated(): void;
9
6
  private _onEllipsisClick;
10
7
  render(): TemplateResult;
11
8
  }
@@ -1,20 +1,18 @@
1
- import { LitElement as d, css as m, html as n } from "lit";
1
+ import { LitElement as m, css as d, html as o } from "lit";
2
2
  import { property as p, customElement as b } from "lit/decorators.js";
3
3
  import "./scb-breadcrumb-item.js";
4
- var h = Object.defineProperty, u = Object.getOwnPropertyDescriptor, c = (e, r, s, t) => {
5
- for (var a = t > 1 ? void 0 : t ? u(r, s) : r, i = e.length - 1, o; i >= 0; i--)
6
- (o = e[i]) && (a = (t ? o(r, s, a) : o(a)) || a);
7
- return t && a && h(r, s, a), a;
4
+ import "@material/web/icon/icon.js";
5
+ var h = Object.defineProperty, u = Object.getOwnPropertyDescriptor, n = (s, r, e, l) => {
6
+ for (var a = l > 1 ? void 0 : l ? u(r, e) : r, t = s.length - 1, i; t >= 0; t--)
7
+ (i = s[t]) && (a = (l ? i(r, e, a) : i(a)) || a);
8
+ return l && a && h(r, e, a), a;
8
9
  };
9
- let l = class extends d {
10
+ let c = class extends m {
10
11
  constructor() {
11
12
  super(...arguments), this.showAll = !1;
12
13
  }
13
- async __ensureIconLoaded() {
14
- l.__iconLoaded || (await import("@material/web/icon/icon.js"), l.__iconLoaded = !0);
15
- }
16
14
  static get styles() {
17
- return m`
15
+ return d`
18
16
  .scb-breadcrumb {
19
17
  display: flex;
20
18
  align-items: center;
@@ -42,43 +40,40 @@ let l = class extends d {
42
40
  .expanded .ellipsis {
43
41
  display: none;
44
42
  }
45
- .breadcrumb-animate {
46
- opacity: 0;
47
- transform: translateY(10px);
48
- animation: fadeInBreadcrumb 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
49
- }
50
- @keyframes fadeInBreadcrumb {
51
- to {
52
- opacity: 1;
53
- transform: translateY(0);
54
- }
43
+ .breadcrumb-animate {
44
+ opacity: 0;
45
+ transform: translateY(10px);
46
+ animation: fadeInBreadcrumb 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
47
+ }
48
+ @keyframes fadeInBreadcrumb {
49
+ to {
50
+ opacity: 1;
51
+ transform: translateY(0);
55
52
  }
53
+ }
56
54
  `;
57
55
  }
58
- firstUpdated() {
59
- this.children.length > 6 && !this.showAll && this.__ensureIconLoaded();
60
- }
61
56
  _onEllipsisClick() {
62
- this.showAll ? (this.showAll = !1, l.__iconLoaded || this.__ensureIconLoaded()) : (this.showAll = !0, this.updateComplete.then(() => {
57
+ this.showAll ? this.showAll = !1 : (this.showAll = !0, this.updateComplete.then(() => {
63
58
  var r;
64
- const e = (r = this.shadowRoot) == null ? void 0 : r.querySelectorAll(".scb-breadcrumb.expanded > scb-breadcrumb-item");
65
- e && (e.forEach((s, t) => {
66
- s.classList.add("breadcrumb-animate"), s.style.animationDelay = `${t * 60}ms`;
59
+ const s = (r = this.shadowRoot) == null ? void 0 : r.querySelectorAll(".scb-breadcrumb.expanded > scb-breadcrumb-item");
60
+ s && (s.forEach((e, l) => {
61
+ e.classList.add("breadcrumb-animate"), e.style.animationDelay = `${l * 60}ms`;
67
62
  }), setTimeout(() => {
68
- e.forEach((s) => {
69
- s.classList.remove("breadcrumb-animate"), s.style.animationDelay = "";
63
+ s.forEach((e) => {
64
+ e.classList.remove("breadcrumb-animate"), e.style.animationDelay = "";
70
65
  });
71
66
  }, 600));
72
67
  }));
73
68
  }
74
69
  render() {
75
- let e = [];
76
- this.children.length || (e = Array.from(this.shadowRoot ? this.shadowRoot.querySelectorAll("scb-breadcrumb-item") : [])), e.length || (e = Array.from(this.children).filter((s) => s.tagName.toLowerCase() === "scb-breadcrumb-item")), e.length > 0 && e[e.length - 1].setAttribute("is-current", "true");
77
- const r = e.length > 6 && !this.showAll;
78
- return n`
70
+ let s = [];
71
+ this.children.length || (s = Array.from(this.shadowRoot ? this.shadowRoot.querySelectorAll("scb-breadcrumb-item") : [])), s.length || (s = Array.from(this.children).filter((e) => e.tagName.toLowerCase() === "scb-breadcrumb-item")), s.length > 0 && s[s.length - 1].setAttribute("is-current", "true");
72
+ const r = s.length > 6 && !this.showAll;
73
+ return o`
79
74
  <div class="scb-breadcrumb ${r ? "collapsed" : "expanded"}">
80
- ${r ? e.map(
81
- (s, t) => t === 3 ? n`<span
75
+ ${r ? s.map(
76
+ (e, l) => l === 3 ? o`<span
82
77
  class="ellipsis"
83
78
  aria-label="Visa alla"
84
79
  role="button"
@@ -87,19 +82,18 @@ let l = class extends d {
87
82
  @keydown=${(a) => {
88
83
  (a.key === "Enter" || a.key === " ") && this._onEllipsisClick();
89
84
  }}
90
- ><md-icon>more_horiz</md-icon></span><span class="breadcrumb-separator">/</span>${s}` : n`${s}`
91
- ) : e.map((s) => s)}
85
+ ><md-icon>more_horiz</md-icon></span><span class="breadcrumb-separator">/</span>${e}` : o`${e}`
86
+ ) : s.map((e) => e)}
92
87
  </div>
93
88
  `;
94
89
  }
95
90
  };
96
- l.__iconLoaded = !1;
97
- c([
91
+ n([
98
92
  p({ type: Boolean })
99
- ], l.prototype, "showAll", 2);
100
- l = c([
93
+ ], c.prototype, "showAll", 2);
94
+ c = n([
101
95
  b("scb-breadcrumb")
102
- ], l);
96
+ ], c);
103
97
  export {
104
- l as SCBBreadcrumb
98
+ c as SCBBreadcrumb
105
99
  };
@@ -115,7 +115,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
115
115
  * @license
116
116
  * Copyright 2023 Google LLC
117
117
  * SPDX-License-Identifier: Apache-2.0
118
- */function X(o){for(const e of Xo)o.createProperty(e,{attribute:Zo(e),reflect:!0});o.addInitializer(e=>{const t={hostConnected(){e.setAttribute("role","presentation")}};e.addController(t)})}/**
118
+ */function Y(o){for(const e of Xo)o.createProperty(e,{attribute:Zo(e),reflect:!0});o.addInitializer(e=>{const t={hostConnected(){e.setAttribute("role","presentation")}};e.addController(t)})}/**
119
119
  * @license
120
120
  * Copyright 2023 Google LLC
121
121
  * SPDX-License-Identifier: Apache-2.0
@@ -164,7 +164,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
164
164
  ${this.trailingIcon?p:e}
165
165
  <span class="label"><slot></slot></span>
166
166
  ${this.trailingIcon?e:p}
167
- `}handleSlotChange(){this.hasIcon=this.assignedIcons.length>0}}X(M),Jo(M),M.formAssociated=!0,M.shadowRootOptions={mode:"open",delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],M.prototype,"disabled",void 0),d([l()],M.prototype,"href",void 0),d([l()],M.prototype,"target",void 0),d([l({type:Boolean,attribute:"trailing-icon",reflect:!0})],M.prototype,"trailingIcon",void 0),d([l({type:Boolean,attribute:"has-icon",reflect:!0})],M.prototype,"hasIcon",void 0),d([l()],M.prototype,"type",void 0),d([l({reflect:!0})],M.prototype,"value",void 0),d([$(".button")],M.prototype,"buttonElement",void 0),d([j({slot:"icon",flatten:!0})],M.prototype,"assignedIcons",void 0);/**
167
+ `}handleSlotChange(){this.hasIcon=this.assignedIcons.length>0}}Y(M),Jo(M),M.formAssociated=!0,M.shadowRootOptions={mode:"open",delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],M.prototype,"disabled",void 0),d([l()],M.prototype,"href",void 0),d([l()],M.prototype,"target",void 0),d([l({type:Boolean,attribute:"trailing-icon",reflect:!0})],M.prototype,"trailingIcon",void 0),d([l({type:Boolean,attribute:"has-icon",reflect:!0})],M.prototype,"hasIcon",void 0),d([l()],M.prototype,"type",void 0),d([l({reflect:!0})],M.prototype,"value",void 0),d([$(".button")],M.prototype,"buttonElement",void 0),d([j({slot:"icon",flatten:!0})],M.prototype,"assignedIcons",void 0);/**
168
168
  * @license
169
169
  * Copyright 2021 Google LLC
170
170
  * SPDX-License-Identifier: Apache-2.0
@@ -287,7 +287,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
287
287
  <rect class="mark long" />
288
288
  </svg>
289
289
  </div>
290
- `}handleInput(e){const t=e.target;this.checked=t.checked,this.indeterminate=t.indeterminate}handleChange(e){Ie(this,e)}[fe](){return!this.checked||this.indeterminate?null:this.value}[Mt](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[Ke](){return new Qo(()=>this)}[Ye](){return this.input}}X(ne),ne.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean})],ne.prototype,"checked",void 0),d([l({type:Boolean})],ne.prototype,"indeterminate",void 0),d([l({type:Boolean})],ne.prototype,"required",void 0),d([l()],ne.prototype,"value",void 0),d([w()],ne.prototype,"prevChecked",void 0),d([w()],ne.prototype,"prevDisabled",void 0),d([w()],ne.prototype,"prevIndeterminate",void 0),d([$("input")],ne.prototype,"input",void 0);/**
290
+ `}handleInput(e){const t=e.target;this.checked=t.checked,this.indeterminate=t.indeterminate}handleChange(e){Ie(this,e)}[fe](){return!this.checked||this.indeterminate?null:this.value}[Mt](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[Ke](){return new Qo(()=>this)}[Ye](){return this.input}}Y(ne),ne.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean})],ne.prototype,"checked",void 0),d([l({type:Boolean})],ne.prototype,"indeterminate",void 0),d([l({type:Boolean})],ne.prototype,"required",void 0),d([l()],ne.prototype,"value",void 0),d([w()],ne.prototype,"prevChecked",void 0),d([w()],ne.prototype,"prevDisabled",void 0),d([w()],ne.prototype,"prevIndeterminate",void 0),d([$("input")],ne.prototype,"input",void 0);/**
291
291
  * @license
292
292
  * Copyright 2024 Google LLC
293
293
  * SPDX-License-Identifier: Apache-2.0
@@ -317,7 +317,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
317
317
  </span>
318
318
  <span class="label">${this.label}</span>
319
319
  <span class="touch"></span>
320
- `}handleIconChange(e){const t=e.target;this.hasIcon=t.assignedElements({flatten:!0}).length>0}}X(be),be.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],be.prototype,"disabled",void 0),d([l({type:Boolean,attribute:"always-focusable"})],be.prototype,"alwaysFocusable",void 0),d([l()],be.prototype,"label",void 0),d([l({type:Boolean,reflect:!0,attribute:"has-icon"})],be.prototype,"hasIcon",void 0);/**
320
+ `}handleIconChange(e){const t=e.target;this.hasIcon=t.assignedElements({flatten:!0}).length>0}}Y(be),be.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],be.prototype,"disabled",void 0),d([l({type:Boolean,attribute:"always-focusable"})],be.prototype,"alwaysFocusable",void 0),d([l()],be.prototype,"label",void 0),d([l({type:Boolean,reflect:!0,attribute:"has-icon"})],be.prototype,"hasIcon",void 0);/**
321
321
  * @license
322
322
  * Copyright 2023 Google LLC
323
323
  * SPDX-License-Identifier: Apache-2.0
@@ -555,7 +555,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
555
555
  </div>
556
556
  ${r?i:p}
557
557
  </dialog>
558
- `}firstUpdated(){this.intersectionObserver=new IntersectionObserver(e=>{for(const t of e)this.handleAnchorIntersection(t)},{root:this.scroller}),this.intersectionObserver.observe(this.topAnchor),this.intersectionObserver.observe(this.bottomAnchor)}handleDialogClick(){if(this.nextClickIsFromContent){this.nextClickIsFromContent=!1;return}this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.close()}handleContentClick(){this.nextClickIsFromContent=!0}handleSubmit(e){const t=e.target,{submitter:r}=e;t.method!=="dialog"||!r||this.close(r.getAttribute("value")??this.returnValue)}handleCancel(e){if(e.target!==this.dialog)return;this.escapePressedWithoutCancel=!1;const t=!Ie(this,e);e.preventDefault(),!t&&this.close()}handleClose(){var e;this.escapePressedWithoutCancel&&(this.escapePressedWithoutCancel=!1,(e=this.dialog)==null||e.dispatchEvent(new Event("cancel",{cancelable:!0})))}handleKeydown(e){e.key==="Escape"&&(this.escapePressedWithoutCancel=!0,setTimeout(()=>{this.escapePressedWithoutCancel=!1}))}async animateDialog(e){var T;if((T=this.cancelAnimations)==null||T.abort(),this.cancelAnimations=new AbortController,this.quick)return;const{dialog:t,scrim:r,container:i,headline:a,content:n,actions:h}=this;if(!t||!r||!i||!a||!n||!h)return;const{container:u,dialog:f,scrim:y,headline:m,content:x,actions:_}=e,k=[[t,f??[]],[r,y??[]],[i,u??[]],[a,m??[]],[n,x??[]],[h,_??[]]],A=[];for(const[O,I]of k)for(const te of I){const q=O.animate(...te);this.cancelAnimations.signal.addEventListener("abort",()=>{q.cancel()}),A.push(q)}await Promise.all(A.map(O=>O.finished.catch(()=>{})))}handleHeadlineChange(e){const t=e.target;this.hasHeadline=t.assignedElements().length>0}handleActionsChange(e){const t=e.target;this.hasActions=t.assignedElements().length>0}handleIconChange(e){const t=e.target;this.hasIcon=t.assignedElements().length>0}handleAnchorIntersection(e){const{target:t,isIntersecting:r}=e;t===this.topAnchor&&(this.isAtScrollTop=r),t===this.bottomAnchor&&(this.isAtScrollBottom=r)}getIsConnectedPromise(){return new Promise(e=>{this.isConnectedPromiseResolve=e})}handleFocusTrapFocus(e){var m;const[t,r]=this.getFirstAndLastFocusableChildren();if(!t||!r){(m=this.dialog)==null||m.focus();return}const i=e.target===this.firstFocusTrap,a=!i,n=e.relatedTarget===t,h=e.relatedTarget===r,u=!n&&!h;if(a&&h||i&&u){t.focus();return}if(i&&n||a&&u){r.focus();return}}getFirstAndLastFocusableChildren(){let e=null,t=null;for(this.treewalker.currentNode=this.treewalker.root;this.treewalker.nextNode();){const r=this.treewalker.currentNode;Ln(r)&&(e||(e=r),t=r)}return[e,t]}}X(D),d([l({type:Boolean})],D.prototype,"open",null),d([l({type:Boolean})],D.prototype,"quick",void 0),d([l({attribute:!1})],D.prototype,"returnValue",void 0),d([l()],D.prototype,"type",void 0),d([l({type:Boolean,attribute:"no-focus-trap"})],D.prototype,"noFocusTrap",void 0),d([$("dialog")],D.prototype,"dialog",void 0),d([$(".scrim")],D.prototype,"scrim",void 0),d([$(".container")],D.prototype,"container",void 0),d([$(".headline")],D.prototype,"headline",void 0),d([$(".content")],D.prototype,"content",void 0),d([$(".actions")],D.prototype,"actions",void 0),d([w()],D.prototype,"isAtScrollTop",void 0),d([w()],D.prototype,"isAtScrollBottom",void 0),d([$(".scroller")],D.prototype,"scroller",void 0),d([$(".top.anchor")],D.prototype,"topAnchor",void 0),d([$(".bottom.anchor")],D.prototype,"bottomAnchor",void 0),d([$(".focus-trap")],D.prototype,"firstFocusTrap",void 0),d([w()],D.prototype,"hasHeadline",void 0),d([w()],D.prototype,"hasActions",void 0),d([w()],D.prototype,"hasIcon",void 0);function Ln(o){var a;const e=":is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true])",t=":not(:disabled,[disabled])";return o.matches(e+t+':not([tabindex^="-"])')?!0:!o.localName.includes("-")||!o.matches(t)?!1:((a=o.shadowRoot)==null?void 0:a.delegatesFocus)??!1}/**
558
+ `}firstUpdated(){this.intersectionObserver=new IntersectionObserver(e=>{for(const t of e)this.handleAnchorIntersection(t)},{root:this.scroller}),this.intersectionObserver.observe(this.topAnchor),this.intersectionObserver.observe(this.bottomAnchor)}handleDialogClick(){if(this.nextClickIsFromContent){this.nextClickIsFromContent=!1;return}this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.close()}handleContentClick(){this.nextClickIsFromContent=!0}handleSubmit(e){const t=e.target,{submitter:r}=e;t.method!=="dialog"||!r||this.close(r.getAttribute("value")??this.returnValue)}handleCancel(e){if(e.target!==this.dialog)return;this.escapePressedWithoutCancel=!1;const t=!Ie(this,e);e.preventDefault(),!t&&this.close()}handleClose(){var e;this.escapePressedWithoutCancel&&(this.escapePressedWithoutCancel=!1,(e=this.dialog)==null||e.dispatchEvent(new Event("cancel",{cancelable:!0})))}handleKeydown(e){e.key==="Escape"&&(this.escapePressedWithoutCancel=!0,setTimeout(()=>{this.escapePressedWithoutCancel=!1}))}async animateDialog(e){var T;if((T=this.cancelAnimations)==null||T.abort(),this.cancelAnimations=new AbortController,this.quick)return;const{dialog:t,scrim:r,container:i,headline:a,content:n,actions:h}=this;if(!t||!r||!i||!a||!n||!h)return;const{container:u,dialog:f,scrim:y,headline:m,content:x,actions:_}=e,k=[[t,f??[]],[r,y??[]],[i,u??[]],[a,m??[]],[n,x??[]],[h,_??[]]],A=[];for(const[O,I]of k)for(const te of I){const q=O.animate(...te);this.cancelAnimations.signal.addEventListener("abort",()=>{q.cancel()}),A.push(q)}await Promise.all(A.map(O=>O.finished.catch(()=>{})))}handleHeadlineChange(e){const t=e.target;this.hasHeadline=t.assignedElements().length>0}handleActionsChange(e){const t=e.target;this.hasActions=t.assignedElements().length>0}handleIconChange(e){const t=e.target;this.hasIcon=t.assignedElements().length>0}handleAnchorIntersection(e){const{target:t,isIntersecting:r}=e;t===this.topAnchor&&(this.isAtScrollTop=r),t===this.bottomAnchor&&(this.isAtScrollBottom=r)}getIsConnectedPromise(){return new Promise(e=>{this.isConnectedPromiseResolve=e})}handleFocusTrapFocus(e){var m;const[t,r]=this.getFirstAndLastFocusableChildren();if(!t||!r){(m=this.dialog)==null||m.focus();return}const i=e.target===this.firstFocusTrap,a=!i,n=e.relatedTarget===t,h=e.relatedTarget===r,u=!n&&!h;if(a&&h||i&&u){t.focus();return}if(i&&n||a&&u){r.focus();return}}getFirstAndLastFocusableChildren(){let e=null,t=null;for(this.treewalker.currentNode=this.treewalker.root;this.treewalker.nextNode();){const r=this.treewalker.currentNode;Ln(r)&&(e||(e=r),t=r)}return[e,t]}}Y(D),d([l({type:Boolean})],D.prototype,"open",null),d([l({type:Boolean})],D.prototype,"quick",void 0),d([l({attribute:!1})],D.prototype,"returnValue",void 0),d([l()],D.prototype,"type",void 0),d([l({type:Boolean,attribute:"no-focus-trap"})],D.prototype,"noFocusTrap",void 0),d([$("dialog")],D.prototype,"dialog",void 0),d([$(".scrim")],D.prototype,"scrim",void 0),d([$(".container")],D.prototype,"container",void 0),d([$(".headline")],D.prototype,"headline",void 0),d([$(".content")],D.prototype,"content",void 0),d([$(".actions")],D.prototype,"actions",void 0),d([w()],D.prototype,"isAtScrollTop",void 0),d([w()],D.prototype,"isAtScrollBottom",void 0),d([$(".scroller")],D.prototype,"scroller",void 0),d([$(".top.anchor")],D.prototype,"topAnchor",void 0),d([$(".bottom.anchor")],D.prototype,"bottomAnchor",void 0),d([$(".focus-trap")],D.prototype,"firstFocusTrap",void 0),d([w()],D.prototype,"hasHeadline",void 0),d([w()],D.prototype,"hasActions",void 0),d([w()],D.prototype,"hasIcon",void 0);function Ln(o){var a;const e=":is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true])",t=":not(:disabled,[disabled])";return o.matches(e+t+':not([tabindex^="-"])')?!0:!o.localName.includes("-")||!o.matches(t)?!1:((a=o.shadowRoot)==null?void 0:a.delegatesFocus)??!1}/**
559
559
  * @license
560
560
  * Copyright 2024 Google LLC
561
561
  * SPDX-License-Identifier: Apache-2.0
@@ -583,7 +583,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
583
583
  aria-hidden=${e||this.label?"true":p}>
584
584
  <span></span>
585
585
  </slot>
586
- </span>`}}X(dt),dt.shadowRootOptions={mode:"open",delegatesFocus:!0},d([l({reflect:!0})],dt.prototype,"size",void 0),d([l()],dt.prototype,"label",void 0),d([l({type:Boolean})],dt.prototype,"lowered",void 0);/**
586
+ </span>`}}Y(dt),dt.shadowRootOptions={mode:"open",delegatesFocus:!0},d([l({reflect:!0})],dt.prototype,"size",void 0),d([l()],dt.prototype,"label",void 0),d([l({type:Boolean})],dt.prototype,"lowered",void 0);/**
587
587
  * @license
588
588
  * Copyright 2023 Google LLC
589
589
  * SPDX-License-Identifier: Apache-2.0
@@ -708,7 +708,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
708
708
  * @license
709
709
  * Copyright 2022 Google LLC
710
710
  * SPDX-License-Identifier: Apache-2.0
711
- */let _r=class extends Un{};_r.styles=[Vn],_r=d([b("md-icon")],_r);const G=Object.freeze(Object.defineProperty({__proto__:null,get MdIcon(){return _r}},Symbol.toStringTag,{value:"Module"}));/**
711
+ */let _r=class extends Un{};_r.styles=[Vn],_r=d([b("md-icon")],_r);const X=Object.freeze(Object.defineProperty({__proto__:null,get MdIcon(){return _r}},Symbol.toStringTag,{value:"Module"}));/**
712
712
  * @license
713
713
  * Copyright 2024 Google LLC
714
714
  * SPDX-License-Identifier: Apache-2.0
@@ -754,7 +754,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
754
754
  part="focus-ring"
755
755
  for=${this.href?"link":"button"}></md-focus-ring>`}renderRipple(){return c`<md-ripple
756
756
  for=${this.href?"link":p}
757
- ?disabled="${!this.href&&this.disabled}"></md-ripple>`}connectedCallback(){this.flipIcon=da(this,this.flipIconInRtl),super.connectedCallback()}async handleClick(e){await 0,!(!this.toggle||this.disabled||e.defaultPrevented)&&(this.selected=!this.selected,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}X(F),Jo(F),F.formAssociated=!0,F.shadowRootOptions={mode:"open",delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],F.prototype,"disabled",void 0),d([l({type:Boolean,attribute:"flip-icon-in-rtl"})],F.prototype,"flipIconInRtl",void 0),d([l()],F.prototype,"href",void 0),d([l()],F.prototype,"target",void 0),d([l({attribute:"aria-label-selected"})],F.prototype,"ariaLabelSelected",void 0),d([l({type:Boolean})],F.prototype,"toggle",void 0),d([l({type:Boolean,reflect:!0})],F.prototype,"selected",void 0),d([l()],F.prototype,"type",void 0),d([l({reflect:!0})],F.prototype,"value",void 0),d([w()],F.prototype,"flipIcon",void 0);/**
757
+ ?disabled="${!this.href&&this.disabled}"></md-ripple>`}connectedCallback(){this.flipIcon=da(this,this.flipIconInRtl),super.connectedCallback()}async handleClick(e){await 0,!(!this.toggle||this.disabled||e.defaultPrevented)&&(this.selected=!this.selected,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}Y(F),Jo(F),F.formAssociated=!0,F.shadowRootOptions={mode:"open",delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],F.prototype,"disabled",void 0),d([l({type:Boolean,attribute:"flip-icon-in-rtl"})],F.prototype,"flipIconInRtl",void 0),d([l()],F.prototype,"href",void 0),d([l()],F.prototype,"target",void 0),d([l({attribute:"aria-label-selected"})],F.prototype,"ariaLabelSelected",void 0),d([l({type:Boolean})],F.prototype,"toggle",void 0),d([l({type:Boolean,reflect:!0})],F.prototype,"selected",void 0),d([l()],F.prototype,"type",void 0),d([l({reflect:!0})],F.prototype,"value",void 0),d([w()],F.prototype,"flipIcon",void 0);/**
758
758
  * @license
759
759
  * Copyright 2024 Google LLC
760
760
  * SPDX-License-Identifier: Apache-2.0
@@ -888,7 +888,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
888
888
  <slot
889
889
  name="trailing-supporting-text"
890
890
  slot="trailing-supporting-text"></slot>
891
- `}onFocus(){this.tabIndex===-1&&this.dispatchEvent(fa())}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}X(ge),ge.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],ge.prototype,"disabled",void 0),d([l({reflect:!0})],ge.prototype,"type",void 0),d([l({type:Boolean,attribute:"md-list-item",reflect:!0})],ge.prototype,"isListItem",void 0),d([l()],ge.prototype,"href",void 0),d([l()],ge.prototype,"target",void 0),d([$(".list-item")],ge.prototype,"listItemRoot",void 0);/**
891
+ `}onFocus(){this.tabIndex===-1&&this.dispatchEvent(fa())}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}Y(ge),ge.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],ge.prototype,"disabled",void 0),d([l({reflect:!0})],ge.prototype,"type",void 0),d([l({type:Boolean,attribute:"md-list-item",reflect:!0})],ge.prototype,"isListItem",void 0),d([l()],ge.prototype,"href",void 0),d([l()],ge.prototype,"target",void 0),d([$(".list-item")],ge.prototype,"listItemRoot",void 0);/**
892
892
  * @license
893
893
  * Copyright 2024 Google LLC
894
894
  * SPDX-License-Identifier: Apache-2.0
@@ -991,7 +991,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
991
991
  <slot
992
992
  name="trailing-supporting-text"
993
993
  slot="trailing-supporting-text"></slot>
994
- `}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}X(J),J.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],J.prototype,"disabled",void 0),d([l()],J.prototype,"type",void 0),d([l()],J.prototype,"href",void 0),d([l()],J.prototype,"target",void 0),d([l({type:Boolean,attribute:"keep-open"})],J.prototype,"keepOpen",void 0),d([l({type:Boolean})],J.prototype,"selected",void 0),d([$(".list-item")],J.prototype,"listItemRoot",void 0),d([j({slot:"headline"})],J.prototype,"headlineElements",void 0),d([j({slot:"supporting-text"})],J.prototype,"supportingTextElements",void 0),d([vi({slot:""})],J.prototype,"defaultElements",void 0),d([l({attribute:"typeahead-text"})],J.prototype,"typeaheadText",null);/**
994
+ `}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}Y(J),J.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],J.prototype,"disabled",void 0),d([l()],J.prototype,"type",void 0),d([l()],J.prototype,"href",void 0),d([l()],J.prototype,"target",void 0),d([l({type:Boolean,attribute:"keep-open"})],J.prototype,"keepOpen",void 0),d([l({type:Boolean})],J.prototype,"selected",void 0),d([$(".list-item")],J.prototype,"listItemRoot",void 0),d([j({slot:"headline"})],J.prototype,"headlineElements",void 0),d([j({slot:"supporting-text"})],J.prototype,"supportingTextElements",void 0),d([vi({slot:""})],J.prototype,"defaultElements",void 0),d([l({attribute:"typeahead-text"})],J.prototype,"typeaheadText",null);/**
995
995
  * @license
996
996
  * Copyright 2024 Google LLC
997
997
  * SPDX-License-Identifier: Apache-2.0
@@ -1040,7 +1040,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
1040
1040
  aria-valuenow=${this.indeterminate?p:this.value}
1041
1041
  >${this.renderIndicator()}</div
1042
1042
  >
1043
- `}getRenderClasses(){return{indeterminate:this.indeterminate,"four-color":this.fourColor}}}X(Qe),d([l({type:Number})],Qe.prototype,"value",void 0),d([l({type:Number})],Qe.prototype,"max",void 0),d([l({type:Boolean})],Qe.prototype,"indeterminate",void 0),d([l({type:Boolean,attribute:"four-color"})],Qe.prototype,"fourColor",void 0);/**
1043
+ `}getRenderClasses(){return{indeterminate:this.indeterminate,"four-color":this.fourColor}}}Y(Qe),d([l({type:Number})],Qe.prototype,"value",void 0),d([l({type:Number})],Qe.prototype,"max",void 0),d([l({type:Boolean})],Qe.prototype,"indeterminate",void 0),d([l({type:Boolean,attribute:"four-color"})],Qe.prototype,"fourColor",void 0);/**
1044
1044
  * @license
1045
1045
  * Copyright 2023 Google LLC
1046
1046
  * SPDX-License-Identifier: Apache-2.0
@@ -1242,7 +1242,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
1242
1242
  @request-deselection=${this.handleRequestDeselection}>
1243
1243
  ${this.renderMenuContent()}
1244
1244
  </md-menu>
1245
- </div>`}renderMenuContent(){return c`<slot></slot>`}handleKeydown(e){var a,n;if(this.open||this.disabled||!this.menu)return;const t=this.menu.typeaheadController,r=e.code==="Space"||e.code==="ArrowDown"||e.code==="ArrowUp"||e.code==="End"||e.code==="Home"||e.code==="Enter";if(!t.isTypingAhead&&r){switch(e.preventDefault(),this.open=!0,e.code){case"Space":case"ArrowDown":case"Enter":this.defaultFocus=le.NONE;break;case"End":this.defaultFocus=le.LAST_ITEM;break;case"ArrowUp":case"Home":this.defaultFocus=le.FIRST_ITEM;break}return}if(e.key.length===1){t.onKeydown(e),e.preventDefault();const{lastActiveRecord:h}=t;if(!h)return;(n=(a=this.labelEl)==null?void 0:a.setAttribute)==null||n.call(a,"aria-live","polite"),this.selectItem(h[ie.ITEM])&&this.dispatchInteractionEvents()}}handleClick(){this.open=!this.open}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}handleFocusout(e){e.relatedTarget&&Gi(e.relatedTarget,this)||(this.open=!1)}getSelectedOptions(){if(!this.menu)return this.lastSelectedOptionRecords=[],null;const e=this.menu.items;return this.lastSelectedOptionRecords=Pl(e),this.lastSelectedOptionRecords}async getUpdateComplete(){var e;return await((e=this.menu)==null?void 0:e.updateComplete),super.getUpdateComplete()}updateValueAndDisplayText(){const e=this.getSelectedOptions()??[];let t=!1;if(e.length){const[r]=e[0];t=this.lastSelectedOption!==r,this.lastSelectedOption=r,this[Nr]=r.value,this.displayText=r.displayText}else t=this.lastSelectedOption!==null,this.lastSelectedOption=null,this[Nr]="",this.displayText="";return t}async handleOpening(e){var a,n,h;if((n=(a=this.labelEl)==null?void 0:a.removeAttribute)==null||n.call(a,"aria-live"),this.redispatchEvent(e),this.defaultFocus!==le.NONE)return;const t=this.menu.items,r=(h=ht(t))==null?void 0:h.item;let[i]=this.lastSelectedOptionRecords[0]??[null];r&&r!==i&&(r.tabIndex=-1),i=i??t[0],i&&(i.tabIndex=0,i.focus())}redispatchEvent(e){Ie(this,e)}handleClosed(e){this.open=!1,this.redispatchEvent(e)}handleCloseMenu(e){const t=e.detail.reason,r=e.detail.itemPath[0];this.open=!1;let i=!1;t.kind==="click-selection"?i=this.selectItem(r):t.kind==="keydown"&&vl(t.key)?i=this.selectItem(r):(r.tabIndex=-1,r.blur()),i&&this.dispatchInteractionEvents()}selectItem(e){return(this.getSelectedOptions()??[]).forEach(([r])=>{e!==r&&(r.selected=!1)}),e.selected=!0,this.updateValueAndDisplayText()}handleRequestSelection(e){const t=e.target;this.lastSelectedOptionRecords.some(([r])=>r===t)||this.selectItem(t)}handleRequestDeselection(e){const t=e.target;this.lastSelectedOptionRecords.some(([r])=>r===t)&&this.updateValueAndDisplayText()}initUserSelection(){this.lastUserSetValue&&!this.lastSelectedOptionRecords.length?this.select(this.lastUserSetValue):this.lastUserSetSelectedIndex!==null&&!this.lastSelectedOptionRecords.length?this.selectIndex(this.lastUserSetSelectedIndex):this.updateValueAndDisplayText()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0}dispatchInteractionEvents(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0}))}getErrorText(){return this.error?this.errorText:this.nativeErrorText}[fe](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}click(){var e;(e=this.field)==null||e.click()}[Ke](){return new Ol(()=>this)}[Ye](){return this.field}}X(z),z.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean})],z.prototype,"quick",void 0),d([l({type:Boolean})],z.prototype,"required",void 0),d([l({type:String,attribute:"error-text"})],z.prototype,"errorText",void 0),d([l()],z.prototype,"label",void 0),d([l({type:Boolean,attribute:"no-asterisk"})],z.prototype,"noAsterisk",void 0),d([l({type:String,attribute:"supporting-text"})],z.prototype,"supportingText",void 0),d([l({type:Boolean,reflect:!0})],z.prototype,"error",void 0),d([l({attribute:"menu-positioning"})],z.prototype,"menuPositioning",void 0),d([l({type:Boolean,attribute:"clamp-menu-width"})],z.prototype,"clampMenuWidth",void 0),d([l({type:Number,attribute:"typeahead-delay"})],z.prototype,"typeaheadDelay",void 0),d([l({type:Boolean,attribute:"has-leading-icon"})],z.prototype,"hasLeadingIcon",void 0),d([l({attribute:"display-text"})],z.prototype,"displayText",void 0),d([l({attribute:"menu-align"})],z.prototype,"menuAlign",void 0),d([l()],z.prototype,"value",null),d([l({type:Number,attribute:"selected-index"})],z.prototype,"selectedIndex",null),d([w()],z.prototype,"nativeError",void 0),d([w()],z.prototype,"nativeErrorText",void 0),d([w()],z.prototype,"focused",void 0),d([w()],z.prototype,"open",void 0),d([w()],z.prototype,"defaultFocus",void 0),d([$(".field")],z.prototype,"field",void 0),d([$("md-menu")],z.prototype,"menu",void 0),d([$("#label")],z.prototype,"labelEl",void 0),d([j({slot:"leading-icon",flatten:!0})],z.prototype,"leadingIcons",void 0);/**
1245
+ </div>`}renderMenuContent(){return c`<slot></slot>`}handleKeydown(e){var a,n;if(this.open||this.disabled||!this.menu)return;const t=this.menu.typeaheadController,r=e.code==="Space"||e.code==="ArrowDown"||e.code==="ArrowUp"||e.code==="End"||e.code==="Home"||e.code==="Enter";if(!t.isTypingAhead&&r){switch(e.preventDefault(),this.open=!0,e.code){case"Space":case"ArrowDown":case"Enter":this.defaultFocus=le.NONE;break;case"End":this.defaultFocus=le.LAST_ITEM;break;case"ArrowUp":case"Home":this.defaultFocus=le.FIRST_ITEM;break}return}if(e.key.length===1){t.onKeydown(e),e.preventDefault();const{lastActiveRecord:h}=t;if(!h)return;(n=(a=this.labelEl)==null?void 0:a.setAttribute)==null||n.call(a,"aria-live","polite"),this.selectItem(h[ie.ITEM])&&this.dispatchInteractionEvents()}}handleClick(){this.open=!this.open}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}handleFocusout(e){e.relatedTarget&&Gi(e.relatedTarget,this)||(this.open=!1)}getSelectedOptions(){if(!this.menu)return this.lastSelectedOptionRecords=[],null;const e=this.menu.items;return this.lastSelectedOptionRecords=Pl(e),this.lastSelectedOptionRecords}async getUpdateComplete(){var e;return await((e=this.menu)==null?void 0:e.updateComplete),super.getUpdateComplete()}updateValueAndDisplayText(){const e=this.getSelectedOptions()??[];let t=!1;if(e.length){const[r]=e[0];t=this.lastSelectedOption!==r,this.lastSelectedOption=r,this[Nr]=r.value,this.displayText=r.displayText}else t=this.lastSelectedOption!==null,this.lastSelectedOption=null,this[Nr]="",this.displayText="";return t}async handleOpening(e){var a,n,h;if((n=(a=this.labelEl)==null?void 0:a.removeAttribute)==null||n.call(a,"aria-live"),this.redispatchEvent(e),this.defaultFocus!==le.NONE)return;const t=this.menu.items,r=(h=ht(t))==null?void 0:h.item;let[i]=this.lastSelectedOptionRecords[0]??[null];r&&r!==i&&(r.tabIndex=-1),i=i??t[0],i&&(i.tabIndex=0,i.focus())}redispatchEvent(e){Ie(this,e)}handleClosed(e){this.open=!1,this.redispatchEvent(e)}handleCloseMenu(e){const t=e.detail.reason,r=e.detail.itemPath[0];this.open=!1;let i=!1;t.kind==="click-selection"?i=this.selectItem(r):t.kind==="keydown"&&vl(t.key)?i=this.selectItem(r):(r.tabIndex=-1,r.blur()),i&&this.dispatchInteractionEvents()}selectItem(e){return(this.getSelectedOptions()??[]).forEach(([r])=>{e!==r&&(r.selected=!1)}),e.selected=!0,this.updateValueAndDisplayText()}handleRequestSelection(e){const t=e.target;this.lastSelectedOptionRecords.some(([r])=>r===t)||this.selectItem(t)}handleRequestDeselection(e){const t=e.target;this.lastSelectedOptionRecords.some(([r])=>r===t)&&this.updateValueAndDisplayText()}initUserSelection(){this.lastUserSetValue&&!this.lastSelectedOptionRecords.length?this.select(this.lastUserSetValue):this.lastUserSetSelectedIndex!==null&&!this.lastSelectedOptionRecords.length?this.selectIndex(this.lastUserSetSelectedIndex):this.updateValueAndDisplayText()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0}dispatchInteractionEvents(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0}))}getErrorText(){return this.error?this.errorText:this.nativeErrorText}[fe](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}click(){var e;(e=this.field)==null||e.click()}[Ke](){return new Ol(()=>this)}[Ye](){return this.field}}Y(z),z.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean})],z.prototype,"quick",void 0),d([l({type:Boolean})],z.prototype,"required",void 0),d([l({type:String,attribute:"error-text"})],z.prototype,"errorText",void 0),d([l()],z.prototype,"label",void 0),d([l({type:Boolean,attribute:"no-asterisk"})],z.prototype,"noAsterisk",void 0),d([l({type:String,attribute:"supporting-text"})],z.prototype,"supportingText",void 0),d([l({type:Boolean,reflect:!0})],z.prototype,"error",void 0),d([l({attribute:"menu-positioning"})],z.prototype,"menuPositioning",void 0),d([l({type:Boolean,attribute:"clamp-menu-width"})],z.prototype,"clampMenuWidth",void 0),d([l({type:Number,attribute:"typeahead-delay"})],z.prototype,"typeaheadDelay",void 0),d([l({type:Boolean,attribute:"has-leading-icon"})],z.prototype,"hasLeadingIcon",void 0),d([l({attribute:"display-text"})],z.prototype,"displayText",void 0),d([l({attribute:"menu-align"})],z.prototype,"menuAlign",void 0),d([l()],z.prototype,"value",null),d([l({type:Number,attribute:"selected-index"})],z.prototype,"selectedIndex",null),d([w()],z.prototype,"nativeError",void 0),d([w()],z.prototype,"nativeErrorText",void 0),d([w()],z.prototype,"focused",void 0),d([w()],z.prototype,"open",void 0),d([w()],z.prototype,"defaultFocus",void 0),d([$(".field")],z.prototype,"field",void 0),d([$("md-menu")],z.prototype,"menu",void 0),d([$("#label")],z.prototype,"labelEl",void 0),d([j({slot:"leading-icon",flatten:!0})],z.prototype,"leadingIcons",void 0);/**
1246
1246
  * @license
1247
1247
  * Copyright 2023 Google LLC
1248
1248
  * SPDX-License-Identifier: Apache-2.0
@@ -1319,7 +1319,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
1319
1319
  <slot
1320
1320
  name="trailing-supporting-text"
1321
1321
  slot="trailing-supporting-text"></slot>
1322
- `}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}X(Q),Q.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],Q.prototype,"disabled",void 0),d([l({type:Boolean,attribute:"md-menu-item",reflect:!0})],Q.prototype,"isMenuItem",void 0),d([l({type:Boolean})],Q.prototype,"selected",void 0),d([l()],Q.prototype,"value",void 0),d([$(".list-item")],Q.prototype,"listItemRoot",void 0),d([j({slot:"headline"})],Q.prototype,"headlineElements",void 0),d([j({slot:"supporting-text"})],Q.prototype,"supportingTextElements",void 0),d([vi({slot:""})],Q.prototype,"defaultElements",void 0),d([l({attribute:"typeahead-text"})],Q.prototype,"typeaheadText",null),d([l({attribute:"display-text"})],Q.prototype,"displayText",null);/**
1322
+ `}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}Y(Q),Q.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],Q.prototype,"disabled",void 0),d([l({type:Boolean,attribute:"md-menu-item",reflect:!0})],Q.prototype,"isMenuItem",void 0),d([l({type:Boolean})],Q.prototype,"selected",void 0),d([l()],Q.prototype,"value",void 0),d([$(".list-item")],Q.prototype,"listItemRoot",void 0),d([j({slot:"headline"})],Q.prototype,"headlineElements",void 0),d([j({slot:"supporting-text"})],Q.prototype,"supportingTextElements",void 0),d([vi({slot:""})],Q.prototype,"defaultElements",void 0),d([l({attribute:"typeahead-text"})],Q.prototype,"typeaheadText",null),d([l({attribute:"display-text"})],Q.prototype,"displayText",null);/**
1323
1323
  * @license
1324
1324
  * Copyright 2023 Google LLC
1325
1325
  * SPDX-License-Identifier: Apache-2.0
@@ -1388,7 +1388,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
1388
1388
  .value=${String(t)}
1389
1389
  .tabIndex=${e?1:0}
1390
1390
  aria-label=${r||p}
1391
- aria-valuetext=${i} />`}async toggleRippleHover(e,t){const r=await e;r&&(t?r.handlePointerenter(new PointerEvent("pointerenter",{isPrimary:!0,pointerId:this.ripplePointerId})):r.handlePointerleave(new PointerEvent("pointerleave",{isPrimary:!0,pointerId:this.ripplePointerId})))}handleFocus(e){this.updateOnTop(e.target)}startAction(e){const t=e.target,r=t===this.inputStart?this.inputEnd:this.inputStart;this.action={canFlip:e.type==="pointerdown",flipped:!1,target:t,fixed:r,values:new Map([[t,t.valueAsNumber],[r,r==null?void 0:r.valueAsNumber]])}}finishAction(e){this.action=void 0}handleKeydown(e){this.startAction(e)}handleKeyup(e){this.finishAction(e)}handleDown(e){this.startAction(e),this.ripplePointerId=e.pointerId;const t=e.target===this.inputStart;this.handleStartHover=!this.disabled&&t&&!!this.handleStart,this.handleEndHover=!this.disabled&&!t&&!!this.handleEnd}async handleUp(e){if(!this.action)return;const{target:t,values:r,flipped:i}=this.action;await new Promise(requestAnimationFrame),t!==void 0&&(t.focus(),i&&t.valueAsNumber!==r.get(t)&&t.dispatchEvent(new Event("change",{bubbles:!0}))),this.finishAction(e)}handleMove(e){this.handleStartHover=!this.disabled&&Oa(e,this.handleStart),this.handleEndHover=!this.disabled&&Oa(e,this.handleEnd)}handleEnter(e){this.handleMove(e)}handleLeave(){this.handleStartHover=!1,this.handleEndHover=!1}updateOnTop(e){this.startOnTop=e.classList.contains("start")}needsClamping(){if(!this.action)return!1;const{target:e,fixed:t}=this.action;return e===this.inputStart?e.valueAsNumber>t.valueAsNumber:e.valueAsNumber<t.valueAsNumber}isActionFlipped(){const{action:e}=this;if(!e)return!1;const{target:t,fixed:r,values:i}=e;return e.canFlip&&i.get(t)===i.get(r)&&this.needsClamping()&&(e.canFlip=!1,e.flipped=!0,e.target=r,e.fixed=t),e.flipped}flipAction(){if(!this.action)return!1;const{target:e,fixed:t,values:r}=this.action,i=e.valueAsNumber!==t.valueAsNumber;return e.valueAsNumber=t.valueAsNumber,t.valueAsNumber=r.get(t),i}clampAction(){if(!this.needsClamping()||!this.action)return!1;const{target:e,fixed:t}=this.action;return e.valueAsNumber=t.valueAsNumber,!0}handleInput(e){if(this.isRedispatchingEvent)return;let t=!1,r=!1;this.range&&(this.isActionFlipped()&&(t=!0,r=this.flipAction()),this.clampAction()&&(t=!0,r=!1));const i=e.target;this.updateOnTop(i),this.range?(this.valueStart=this.inputStart.valueAsNumber,this.valueEnd=this.inputEnd.valueAsNumber):this.value=this.inputEnd.valueAsNumber,t&&e.stopPropagation(),r&&(this.isRedispatchingEvent=!0,Ie(i,e),this.isRedispatchingEvent=!1)}handleChange(e){const t=e.target,{target:r,values:i}=this.action??{};r&&r.valueAsNumber===i.get(t)||Ie(this,e),this.finishAction(e)}[fe](){if(this.range){const e=new FormData;return e.append(this.nameStart,String(this.valueStart)),e.append(this.nameEnd,String(this.valueEnd)),e}return String(this.value)}formResetCallback(){if(this.range){const t=this.getAttribute("value-start");this.valueStart=t!==null?Number(t):void 0;const r=this.getAttribute("value-end");this.valueEnd=r!==null?Number(r):void 0;return}const e=this.getAttribute("value");this.value=e!==null?Number(e):void 0}formStateRestoreCallback(e){if(Array.isArray(e)){const[[,t],[,r]]=e;this.valueStart=Number(t),this.valueEnd=Number(r),this.range=!0;return}this.value=Number(e),this.range=!1}}X(C),C.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Number})],C.prototype,"min",void 0),d([l({type:Number})],C.prototype,"max",void 0),d([l({type:Number})],C.prototype,"value",void 0),d([l({type:Number,attribute:"value-start"})],C.prototype,"valueStart",void 0),d([l({type:Number,attribute:"value-end"})],C.prototype,"valueEnd",void 0),d([l({attribute:"value-label"})],C.prototype,"valueLabel",void 0),d([l({attribute:"value-label-start"})],C.prototype,"valueLabelStart",void 0),d([l({attribute:"value-label-end"})],C.prototype,"valueLabelEnd",void 0),d([l({attribute:"aria-label-start"})],C.prototype,"ariaLabelStart",void 0),d([l({attribute:"aria-valuetext-start"})],C.prototype,"ariaValueTextStart",void 0),d([l({attribute:"aria-label-end"})],C.prototype,"ariaLabelEnd",void 0),d([l({attribute:"aria-valuetext-end"})],C.prototype,"ariaValueTextEnd",void 0),d([l({type:Number})],C.prototype,"step",void 0),d([l({type:Boolean})],C.prototype,"ticks",void 0),d([l({type:Boolean})],C.prototype,"labeled",void 0),d([l({type:Boolean})],C.prototype,"range",void 0),d([$("input.start")],C.prototype,"inputStart",void 0),d([$(".handle.start")],C.prototype,"handleStart",void 0),d([Do("md-ripple.start")],C.prototype,"rippleStart",void 0),d([$("input.end")],C.prototype,"inputEnd",void 0),d([$(".handle.end")],C.prototype,"handleEnd",void 0),d([Do("md-ripple.end")],C.prototype,"rippleEnd",void 0),d([w()],C.prototype,"handleStartHover",void 0),d([w()],C.prototype,"handleEndHover",void 0),d([w()],C.prototype,"startOnTop",void 0),d([w()],C.prototype,"handlesOverlapping",void 0),d([w()],C.prototype,"renderValueStart",void 0),d([w()],C.prototype,"renderValueEnd",void 0);function Oa({x:o,y:e},t){if(!t)return!1;const{top:r,left:i,bottom:a,right:n}=t.getBoundingClientRect();return o>=i&&o<=n&&e>=r&&e<=a}function ql(o,e){if(!(o&&e))return!1;const t=o.getBoundingClientRect(),r=e.getBoundingClientRect();return!(t.top>r.bottom||t.right<r.left||t.bottom<r.top||t.left>r.right)}/**
1391
+ aria-valuetext=${i} />`}async toggleRippleHover(e,t){const r=await e;r&&(t?r.handlePointerenter(new PointerEvent("pointerenter",{isPrimary:!0,pointerId:this.ripplePointerId})):r.handlePointerleave(new PointerEvent("pointerleave",{isPrimary:!0,pointerId:this.ripplePointerId})))}handleFocus(e){this.updateOnTop(e.target)}startAction(e){const t=e.target,r=t===this.inputStart?this.inputEnd:this.inputStart;this.action={canFlip:e.type==="pointerdown",flipped:!1,target:t,fixed:r,values:new Map([[t,t.valueAsNumber],[r,r==null?void 0:r.valueAsNumber]])}}finishAction(e){this.action=void 0}handleKeydown(e){this.startAction(e)}handleKeyup(e){this.finishAction(e)}handleDown(e){this.startAction(e),this.ripplePointerId=e.pointerId;const t=e.target===this.inputStart;this.handleStartHover=!this.disabled&&t&&!!this.handleStart,this.handleEndHover=!this.disabled&&!t&&!!this.handleEnd}async handleUp(e){if(!this.action)return;const{target:t,values:r,flipped:i}=this.action;await new Promise(requestAnimationFrame),t!==void 0&&(t.focus(),i&&t.valueAsNumber!==r.get(t)&&t.dispatchEvent(new Event("change",{bubbles:!0}))),this.finishAction(e)}handleMove(e){this.handleStartHover=!this.disabled&&Oa(e,this.handleStart),this.handleEndHover=!this.disabled&&Oa(e,this.handleEnd)}handleEnter(e){this.handleMove(e)}handleLeave(){this.handleStartHover=!1,this.handleEndHover=!1}updateOnTop(e){this.startOnTop=e.classList.contains("start")}needsClamping(){if(!this.action)return!1;const{target:e,fixed:t}=this.action;return e===this.inputStart?e.valueAsNumber>t.valueAsNumber:e.valueAsNumber<t.valueAsNumber}isActionFlipped(){const{action:e}=this;if(!e)return!1;const{target:t,fixed:r,values:i}=e;return e.canFlip&&i.get(t)===i.get(r)&&this.needsClamping()&&(e.canFlip=!1,e.flipped=!0,e.target=r,e.fixed=t),e.flipped}flipAction(){if(!this.action)return!1;const{target:e,fixed:t,values:r}=this.action,i=e.valueAsNumber!==t.valueAsNumber;return e.valueAsNumber=t.valueAsNumber,t.valueAsNumber=r.get(t),i}clampAction(){if(!this.needsClamping()||!this.action)return!1;const{target:e,fixed:t}=this.action;return e.valueAsNumber=t.valueAsNumber,!0}handleInput(e){if(this.isRedispatchingEvent)return;let t=!1,r=!1;this.range&&(this.isActionFlipped()&&(t=!0,r=this.flipAction()),this.clampAction()&&(t=!0,r=!1));const i=e.target;this.updateOnTop(i),this.range?(this.valueStart=this.inputStart.valueAsNumber,this.valueEnd=this.inputEnd.valueAsNumber):this.value=this.inputEnd.valueAsNumber,t&&e.stopPropagation(),r&&(this.isRedispatchingEvent=!0,Ie(i,e),this.isRedispatchingEvent=!1)}handleChange(e){const t=e.target,{target:r,values:i}=this.action??{};r&&r.valueAsNumber===i.get(t)||Ie(this,e),this.finishAction(e)}[fe](){if(this.range){const e=new FormData;return e.append(this.nameStart,String(this.valueStart)),e.append(this.nameEnd,String(this.valueEnd)),e}return String(this.value)}formResetCallback(){if(this.range){const t=this.getAttribute("value-start");this.valueStart=t!==null?Number(t):void 0;const r=this.getAttribute("value-end");this.valueEnd=r!==null?Number(r):void 0;return}const e=this.getAttribute("value");this.value=e!==null?Number(e):void 0}formStateRestoreCallback(e){if(Array.isArray(e)){const[[,t],[,r]]=e;this.valueStart=Number(t),this.valueEnd=Number(r),this.range=!0;return}this.value=Number(e),this.range=!1}}Y(C),C.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Number})],C.prototype,"min",void 0),d([l({type:Number})],C.prototype,"max",void 0),d([l({type:Number})],C.prototype,"value",void 0),d([l({type:Number,attribute:"value-start"})],C.prototype,"valueStart",void 0),d([l({type:Number,attribute:"value-end"})],C.prototype,"valueEnd",void 0),d([l({attribute:"value-label"})],C.prototype,"valueLabel",void 0),d([l({attribute:"value-label-start"})],C.prototype,"valueLabelStart",void 0),d([l({attribute:"value-label-end"})],C.prototype,"valueLabelEnd",void 0),d([l({attribute:"aria-label-start"})],C.prototype,"ariaLabelStart",void 0),d([l({attribute:"aria-valuetext-start"})],C.prototype,"ariaValueTextStart",void 0),d([l({attribute:"aria-label-end"})],C.prototype,"ariaLabelEnd",void 0),d([l({attribute:"aria-valuetext-end"})],C.prototype,"ariaValueTextEnd",void 0),d([l({type:Number})],C.prototype,"step",void 0),d([l({type:Boolean})],C.prototype,"ticks",void 0),d([l({type:Boolean})],C.prototype,"labeled",void 0),d([l({type:Boolean})],C.prototype,"range",void 0),d([$("input.start")],C.prototype,"inputStart",void 0),d([$(".handle.start")],C.prototype,"handleStart",void 0),d([Do("md-ripple.start")],C.prototype,"rippleStart",void 0),d([$("input.end")],C.prototype,"inputEnd",void 0),d([$(".handle.end")],C.prototype,"handleEnd",void 0),d([Do("md-ripple.end")],C.prototype,"rippleEnd",void 0),d([w()],C.prototype,"handleStartHover",void 0),d([w()],C.prototype,"handleEndHover",void 0),d([w()],C.prototype,"startOnTop",void 0),d([w()],C.prototype,"handlesOverlapping",void 0),d([w()],C.prototype,"renderValueStart",void 0),d([w()],C.prototype,"renderValueEnd",void 0);function Oa({x:o,y:e},t){if(!t)return!1;const{top:r,left:i,bottom:a,right:n}=t.getBoundingClientRect();return o>=i&&o<=n&&e>=r&&e<=a}function ql(o,e){if(!(o&&e))return!1;const t=o.getBoundingClientRect(),r=e.getBoundingClientRect();return!(t.top>r.bottom||t.right<r.left||t.bottom<r.top||t.left>r.right)}/**
1392
1392
  * @license
1393
1393
  * Copyright 2024 Google LLC
1394
1394
  * SPDX-License-Identifier: Apache-2.0
@@ -1449,7 +1449,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
1449
1449
  d="M6.4 19.2 4.8 17.6 10.4 12 4.8 6.4 6.4 4.8 12 10.4 17.6 4.8 19.2 6.4 13.6 12 19.2 17.6 17.6 19.2 12 13.6Z" />
1450
1450
  </svg>
1451
1451
  </slot>
1452
- `}renderTouchTarget(){return c`<span class="touch"></span>`}shouldShowIcons(){return this.icons||this.showOnlySelectedIcon}handleInput(e){const t=e.target;this.selected=t.checked}handleChange(e){Ie(this,e)}[fe](){return this.selected?this.value:null}[Mt](){return String(this.selected)}formResetCallback(){this.selected=this.hasAttribute("selected")}formStateRestoreCallback(e){this.selected=e==="true"}[Ke](){return new Qo(()=>({checked:this.selected,required:this.required}))}[Ye](){return this.input}}X(ye),ye.shadowRootOptions={mode:"open",delegatesFocus:!0},d([l({type:Boolean})],ye.prototype,"selected",void 0),d([l({type:Boolean})],ye.prototype,"icons",void 0),d([l({type:Boolean,attribute:"show-only-selected-icon"})],ye.prototype,"showOnlySelectedIcon",void 0),d([l({type:Boolean})],ye.prototype,"required",void 0),d([l()],ye.prototype,"value",void 0),d([$("input")],ye.prototype,"input",void 0);/**
1452
+ `}renderTouchTarget(){return c`<span class="touch"></span>`}shouldShowIcons(){return this.icons||this.showOnlySelectedIcon}handleInput(e){const t=e.target;this.selected=t.checked}handleChange(e){Ie(this,e)}[fe](){return this.selected?this.value:null}[Mt](){return String(this.selected)}formResetCallback(){this.selected=this.hasAttribute("selected")}formStateRestoreCallback(e){this.selected=e==="true"}[Ke](){return new Qo(()=>({checked:this.selected,required:this.required}))}[Ye](){return this.input}}Y(ye),ye.shadowRootOptions={mode:"open",delegatesFocus:!0},d([l({type:Boolean})],ye.prototype,"selected",void 0),d([l({type:Boolean})],ye.prototype,"icons",void 0),d([l({type:Boolean,attribute:"show-only-selected-icon"})],ye.prototype,"showOnlySelectedIcon",void 0),d([l({type:Boolean})],ye.prototype,"required",void 0),d([l()],ye.prototype,"value",void 0),d([$("input")],ye.prototype,"input",void 0);/**
1453
1453
  * @license
1454
1454
  * Copyright 2024 Google LLC
1455
1455
  * SPDX-License-Identifier: Apache-2.0
@@ -1641,7 +1641,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
1641
1641
  @select=${this.redispatchEvent} />
1642
1642
  ${h}
1643
1643
  </div>
1644
- `}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,t){return e?c`<span class="${P({suffix:t,prefix:!t})}">${e}</span>`:p}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusChange(){var e;this.focused=((e=this.inputOrTextarea)==null?void 0:e.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}[fe](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}[Ke](){return new cc(()=>({state:this,renderedControl:this.inputOrTextarea}))}[Ye](){return this.inputOrTextarea}[Rr](e){var r;e==null||e.preventDefault();const t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&((r=this.field)==null||r.reannounceError())}}X(S),S.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],S.prototype,"error",void 0),d([l({attribute:"error-text"})],S.prototype,"errorText",void 0),d([l()],S.prototype,"label",void 0),d([l({type:Boolean,attribute:"no-asterisk"})],S.prototype,"noAsterisk",void 0),d([l({type:Boolean,reflect:!0})],S.prototype,"required",void 0),d([l()],S.prototype,"value",void 0),d([l({attribute:"prefix-text"})],S.prototype,"prefixText",void 0),d([l({attribute:"suffix-text"})],S.prototype,"suffixText",void 0),d([l({type:Boolean,attribute:"has-leading-icon"})],S.prototype,"hasLeadingIcon",void 0),d([l({type:Boolean,attribute:"has-trailing-icon"})],S.prototype,"hasTrailingIcon",void 0),d([l({attribute:"supporting-text"})],S.prototype,"supportingText",void 0),d([l({attribute:"text-direction"})],S.prototype,"textDirection",void 0),d([l({type:Number})],S.prototype,"rows",void 0),d([l({type:Number})],S.prototype,"cols",void 0),d([l({reflect:!0})],S.prototype,"inputMode",void 0),d([l()],S.prototype,"max",void 0),d([l({type:Number})],S.prototype,"maxLength",void 0),d([l()],S.prototype,"min",void 0),d([l({type:Number})],S.prototype,"minLength",void 0),d([l({type:Boolean,attribute:"no-spinner"})],S.prototype,"noSpinner",void 0),d([l()],S.prototype,"pattern",void 0),d([l({reflect:!0,converter:lc})],S.prototype,"placeholder",void 0),d([l({type:Boolean,reflect:!0})],S.prototype,"readOnly",void 0),d([l({type:Boolean,reflect:!0})],S.prototype,"multiple",void 0),d([l()],S.prototype,"step",void 0),d([l({reflect:!0})],S.prototype,"type",void 0),d([l({reflect:!0})],S.prototype,"autocomplete",void 0),d([w()],S.prototype,"dirty",void 0),d([w()],S.prototype,"focused",void 0),d([w()],S.prototype,"nativeError",void 0),d([w()],S.prototype,"nativeErrorText",void 0),d([$(".input")],S.prototype,"inputOrTextarea",void 0),d([$(".field")],S.prototype,"field",void 0),d([j({slot:"leading-icon"})],S.prototype,"leadingIcons",void 0),d([j({slot:"trailing-icon"})],S.prototype,"trailingIcons",void 0);/**
1644
+ `}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,t){return e?c`<span class="${P({suffix:t,prefix:!t})}">${e}</span>`:p}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusChange(){var e;this.focused=((e=this.inputOrTextarea)==null?void 0:e.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}[fe](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}[Ke](){return new cc(()=>({state:this,renderedControl:this.inputOrTextarea}))}[Ye](){return this.inputOrTextarea}[Rr](e){var r;e==null||e.preventDefault();const t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&((r=this.field)==null||r.reannounceError())}}Y(S),S.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],S.prototype,"error",void 0),d([l({attribute:"error-text"})],S.prototype,"errorText",void 0),d([l()],S.prototype,"label",void 0),d([l({type:Boolean,attribute:"no-asterisk"})],S.prototype,"noAsterisk",void 0),d([l({type:Boolean,reflect:!0})],S.prototype,"required",void 0),d([l()],S.prototype,"value",void 0),d([l({attribute:"prefix-text"})],S.prototype,"prefixText",void 0),d([l({attribute:"suffix-text"})],S.prototype,"suffixText",void 0),d([l({type:Boolean,attribute:"has-leading-icon"})],S.prototype,"hasLeadingIcon",void 0),d([l({type:Boolean,attribute:"has-trailing-icon"})],S.prototype,"hasTrailingIcon",void 0),d([l({attribute:"supporting-text"})],S.prototype,"supportingText",void 0),d([l({attribute:"text-direction"})],S.prototype,"textDirection",void 0),d([l({type:Number})],S.prototype,"rows",void 0),d([l({type:Number})],S.prototype,"cols",void 0),d([l({reflect:!0})],S.prototype,"inputMode",void 0),d([l()],S.prototype,"max",void 0),d([l({type:Number})],S.prototype,"maxLength",void 0),d([l()],S.prototype,"min",void 0),d([l({type:Number})],S.prototype,"minLength",void 0),d([l({type:Boolean,attribute:"no-spinner"})],S.prototype,"noSpinner",void 0),d([l()],S.prototype,"pattern",void 0),d([l({reflect:!0,converter:lc})],S.prototype,"placeholder",void 0),d([l({type:Boolean,reflect:!0})],S.prototype,"readOnly",void 0),d([l({type:Boolean,reflect:!0})],S.prototype,"multiple",void 0),d([l()],S.prototype,"step",void 0),d([l({reflect:!0})],S.prototype,"type",void 0),d([l({reflect:!0})],S.prototype,"autocomplete",void 0),d([w()],S.prototype,"dirty",void 0),d([w()],S.prototype,"focused",void 0),d([w()],S.prototype,"nativeError",void 0),d([w()],S.prototype,"nativeErrorText",void 0),d([$(".input")],S.prototype,"inputOrTextarea",void 0),d([$(".field")],S.prototype,"field",void 0),d([j({slot:"leading-icon"})],S.prototype,"leadingIcons",void 0),d([j({slot:"trailing-icon"})],S.prototype,"trailingIcons",void 0);/**
1645
1645
  * @license
1646
1646
  * Copyright 2021 Google LLC
1647
1647
  * SPDX-License-Identifier: Apache-2.0
@@ -1667,7 +1667,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
1667
1667
  * @license
1668
1668
  * Copyright 2021 Google LLC
1669
1669
  * SPDX-License-Identifier: Apache-2.0
1670
- */let co=class extends uc{constructor(){super(...arguments),this.fieldTag=Z`md-outlined-field`}};co.styles=[Ha,pc],co=d([b("md-outlined-text-field")],co);var vc=Object.defineProperty,mc=Object.getOwnPropertyDescriptor,K=(o,e,t,r)=>{for(var i=r>1?void 0:r?mc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&vc(e,t,i),i};s.ScbAccordionItem=class extends g{constructor(){super(...arguments),this.expanded=!1,this.label="",this.content="",this.overline="",this.supportingText="",this.leading=!1,this.leadingVariant="",this.leadingIcon="",this.imgHrefImage="https://www.scb.se/img/scb-logo.svg",this.avatarLabel="",this.avatarAlt="",this.avatarVariant="icon",this.avatarSrc="",this.density=0,this._unique=s.ScbAccordionItem._uid(),this.toggleAccordion=()=>{const e=this.closest("scb-accordion");e!=null&&e.hasAttribute("detached")||e.querySelectorAll("scb-accordion-item").forEach(r=>{r!==this&&(r.expanded=!1,r._applyInert(),r._setBottomMaxHeight(r))}),this.expanded=!this.expanded,this._applyInert(),this._setBottomMaxHeight(this)},this._onSlotChange=()=>{this.expanded&&this._setBottomMaxHeight(this)},this._onContentLoad=()=>{this.expanded&&this._setBottomMaxHeight(this)}}static _uid(){var e,t;return((t=(e=globalThis.crypto)==null?void 0:e.randomUUID)==null?void 0:t.call(e))??`${s.ScbAccordionItem._uidPrefix}-${++s.ScbAccordionItem._uidSeq}`}async firstUpdated(){var e;s.ScbAccordionItem._mdIconLoaded||(await Promise.resolve().then(()=>G),s.ScbAccordionItem._mdIconLoaded=!0),s.ScbAccordionItem._mdRippleLoaded||(await Promise.resolve().then(()=>nr),s.ScbAccordionItem._mdRippleLoaded=!0),this._applyInert(),(e=this._bottomEl())==null||e.addEventListener("load",this._onContentLoad,!0)}disconnectedCallback(){var e;(e=this._bottomEl())==null||e.removeEventListener("load",this._onContentLoad,!0),super.disconnectedCallback()}_setBottomMaxHeight(e){const t=e._bottomEl();t&&(e.expanded?(t.style.maxHeight=`${t.scrollHeight}px`,setTimeout(()=>t.style.maxHeight="unset",160)):(t.style.maxHeight=`${t.scrollHeight}px`,requestAnimationFrame(()=>t.style.maxHeight="0")))}_onKeyDown(e){const t=this.closest("scb-accordion"),i=Array.from((t==null?void 0:t.querySelectorAll("scb-accordion-item"))||[]).map(h=>h.renderRoot.querySelector(".scb-accordion-top")).filter(h=>!!h),a=e.currentTarget,n=i.indexOf(a);switch(e.key){case"Enter":case" ":e.preventDefault(),this.toggleAccordion();break;case"ArrowDown":e.preventDefault(),n<i.length-1&&i[n+1].focus();break;case"ArrowUp":e.preventDefault(),n>0&&i[n-1].focus();break;case"Home":e.preventDefault(),i.length&&i[0].focus();break;case"End":e.preventDefault(),i.length&&i[i.length-1].focus();break}}_renderLeading(){if(!this.leading)return p;switch(this.leadingVariant){case"icon":return c`<md-icon>${this.leadingIcon}</md-icon>`;case"avatar":return c`
1670
+ */let co=class extends uc{constructor(){super(...arguments),this.fieldTag=Z`md-outlined-field`}};co.styles=[Ha,pc],co=d([b("md-outlined-text-field")],co);var vc=Object.defineProperty,mc=Object.getOwnPropertyDescriptor,G=(o,e,t,r)=>{for(var i=r>1?void 0:r?mc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&vc(e,t,i),i};s.ScbAccordionItem=class extends g{constructor(){super(...arguments),this.expanded=!1,this.label="",this.content="",this.overline="",this.supportingText="",this.leading=!1,this.leadingVariant="",this.leadingIcon="",this.imgHrefImage="https://www.scb.se/img/scb-logo.svg",this.avatarLabel="",this.avatarAlt="",this.avatarVariant="icon",this.avatarSrc="",this.density=0,this._unique=s.ScbAccordionItem._uid(),this.toggleAccordion=()=>{const e=this.closest("scb-accordion");e!=null&&e.hasAttribute("detached")||e.querySelectorAll("scb-accordion-item").forEach(r=>{r!==this&&(r.expanded=!1,r._applyInert(),r._setBottomMaxHeight(r))}),this.expanded=!this.expanded,this._applyInert(),this._setBottomMaxHeight(this)},this._onSlotChange=()=>{this.expanded&&this._setBottomMaxHeight(this)},this._onContentLoad=()=>{this.expanded&&this._setBottomMaxHeight(this)}}static _uid(){var e,t;return((t=(e=globalThis.crypto)==null?void 0:e.randomUUID)==null?void 0:t.call(e))??`${s.ScbAccordionItem._uidPrefix}-${++s.ScbAccordionItem._uidSeq}`}async firstUpdated(){var e;s.ScbAccordionItem._mdIconLoaded||(await Promise.resolve().then(()=>X),s.ScbAccordionItem._mdIconLoaded=!0),s.ScbAccordionItem._mdRippleLoaded||(await Promise.resolve().then(()=>nr),s.ScbAccordionItem._mdRippleLoaded=!0),this._applyInert(),(e=this._bottomEl())==null||e.addEventListener("load",this._onContentLoad,!0)}disconnectedCallback(){var e;(e=this._bottomEl())==null||e.removeEventListener("load",this._onContentLoad,!0),super.disconnectedCallback()}_setBottomMaxHeight(e){const t=e._bottomEl();t&&(e.expanded?(t.style.maxHeight=`${t.scrollHeight}px`,setTimeout(()=>t.style.maxHeight="unset",160)):(t.style.maxHeight=`${t.scrollHeight}px`,requestAnimationFrame(()=>t.style.maxHeight="0")))}_onKeyDown(e){const t=this.closest("scb-accordion"),i=Array.from((t==null?void 0:t.querySelectorAll("scb-accordion-item"))||[]).map(h=>h.renderRoot.querySelector(".scb-accordion-top")).filter(h=>!!h),a=e.currentTarget,n=i.indexOf(a);switch(e.key){case"Enter":case" ":e.preventDefault(),this.toggleAccordion();break;case"ArrowDown":e.preventDefault(),n<i.length-1&&i[n+1].focus();break;case"ArrowUp":e.preventDefault(),n>0&&i[n-1].focus();break;case"Home":e.preventDefault(),i.length&&i[0].focus();break;case"End":e.preventDefault(),i.length&&i[i.length-1].focus();break}}_renderLeading(){if(!this.leading)return p;switch(this.leadingVariant){case"icon":return c`<md-icon>${this.leadingIcon}</md-icon>`;case"avatar":return c`
1671
1671
  <scb-avatar
1672
1672
  label=${this.avatarLabel}
1673
1673
  alt=${this.avatarAlt}
@@ -1859,11 +1859,11 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
1859
1859
  @media (prefers-reduced-motion: reduce) {
1860
1860
  md-ripple { display: none; } /* endast fokusring visas */
1861
1861
  }
1862
- `],K([l({type:Boolean})],s.ScbAccordionItem.prototype,"expanded",2),K([l({type:String,reflect:!0})],s.ScbAccordionItem.prototype,"label",2),K([l({type:String})],s.ScbAccordionItem.prototype,"content",2),K([l({type:String,attribute:"overline"})],s.ScbAccordionItem.prototype,"overline",2),K([l({type:String,attribute:"supporting-text"})],s.ScbAccordionItem.prototype,"supportingText",2),K([l({type:Boolean})],s.ScbAccordionItem.prototype,"leading",2),K([l({type:String,attribute:"leading-variant",reflect:!0})],s.ScbAccordionItem.prototype,"leadingVariant",2),K([l({type:String,attribute:"leading-icon"})],s.ScbAccordionItem.prototype,"leadingIcon",2),K([l({type:String,attribute:"img-href-image",reflect:!0})],s.ScbAccordionItem.prototype,"imgHrefImage",2),K([l({type:String,attribute:"avatar-label"})],s.ScbAccordionItem.prototype,"avatarLabel",2),K([l({type:String,attribute:"avatar-alt"})],s.ScbAccordionItem.prototype,"avatarAlt",2),K([l({type:String,attribute:"avatar-variant"})],s.ScbAccordionItem.prototype,"avatarVariant",2),K([l({type:String,attribute:"avatar-src"})],s.ScbAccordionItem.prototype,"avatarSrc",2),K([l({type:Number,reflect:!0})],s.ScbAccordionItem.prototype,"density",2),s.ScbAccordionItem=K([b("scb-accordion-item")],s.ScbAccordionItem);var fc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,Na=(o,e,t,r)=>{for(var i=r>1?void 0:r?bc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&fc(e,t,i),i};s.ScbAccordion=class extends g{constructor(){super(...arguments),this.detached=!1}render(){return c`
1862
+ `],G([l({type:Boolean})],s.ScbAccordionItem.prototype,"expanded",2),G([l({type:String,reflect:!0})],s.ScbAccordionItem.prototype,"label",2),G([l({type:String})],s.ScbAccordionItem.prototype,"content",2),G([l({type:String,attribute:"overline"})],s.ScbAccordionItem.prototype,"overline",2),G([l({type:String,attribute:"supporting-text"})],s.ScbAccordionItem.prototype,"supportingText",2),G([l({type:Boolean})],s.ScbAccordionItem.prototype,"leading",2),G([l({type:String,attribute:"leading-variant",reflect:!0})],s.ScbAccordionItem.prototype,"leadingVariant",2),G([l({type:String,attribute:"leading-icon"})],s.ScbAccordionItem.prototype,"leadingIcon",2),G([l({type:String,attribute:"img-href-image",reflect:!0})],s.ScbAccordionItem.prototype,"imgHrefImage",2),G([l({type:String,attribute:"avatar-label"})],s.ScbAccordionItem.prototype,"avatarLabel",2),G([l({type:String,attribute:"avatar-alt"})],s.ScbAccordionItem.prototype,"avatarAlt",2),G([l({type:String,attribute:"avatar-variant"})],s.ScbAccordionItem.prototype,"avatarVariant",2),G([l({type:String,attribute:"avatar-src"})],s.ScbAccordionItem.prototype,"avatarSrc",2),G([l({type:Number,reflect:!0})],s.ScbAccordionItem.prototype,"density",2),s.ScbAccordionItem=G([b("scb-accordion-item")],s.ScbAccordionItem);var fc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,Na=(o,e,t,r)=>{for(var i=r>1?void 0:r?bc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&fc(e,t,i),i};s.ScbAccordion=class extends g{constructor(){super(...arguments),this.detached=!1}render(){return c`
1863
1863
  <div class="scb-accordion" ?detached=${this.detached}>
1864
1864
  <slot></slot>
1865
1865
  </div>
1866
- `}},Na([l({type:Boolean,reflect:!0})],s.ScbAccordion.prototype,"detached",2),s.ScbAccordion=Na([b("scb-accordion")],s.ScbAccordion);var gc=Object.defineProperty,yc=Object.getOwnPropertyDescriptor,xe=(o,e,t,r)=>{for(var i=r>1?void 0:r?yc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&gc(e,t,i),i};s.ScbIconButton=class extends g{constructor(){super(...arguments),this.ariaLabel="",this.variant="standard",this.icon="home",this.toggle=!1,this.toggleofficon="add",this.toggleonicon="remove",this.disabled=!1,this.error=!1,this.__loadedVariants=new Set,this.__iconLoaded=!1,this.__onChange=()=>{const e=this.__lastBtn;this.dispatchEvent(new CustomEvent("change",{detail:{selected:!!(e!=null&&e.selected)},bubbles:!0,composed:!0}))}}__attachChangeListener(){var t,r,i;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("md-filled-icon-button, md-outlined-icon-button, md-filled-tonal-icon-button, md-icon-button");e&&e!==this.__lastBtn&&((i=(r=this.__lastBtn)==null?void 0:r.removeEventListener)==null||i.call(r,"change",this.__onChange),e.addEventListener("change",this.__onChange),this.__lastBtn=e)}async firstUpdated(){await this.__ensureDepsLoaded(),await this.updateComplete,this.__attachChangeListener()}updated(e){super.updated(e),e.has("disabled")&&this.toggleAttribute("aria-disabled",this.disabled),e.has("variant")||e.has("icon")||e.has("toggle")?this.__ensureDepsLoaded().then(()=>queueMicrotask(()=>this.__attachChangeListener())):queueMicrotask(()=>this.__attachChangeListener())}disconnectedCallback(){var e,t;super.disconnectedCallback(),(t=(e=this.__lastBtn)==null?void 0:e.removeEventListener)==null||t.call(e,"change",this.__onChange),this.__lastBtn=null}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"filled":await Promise.resolve().then(()=>Kn);break;case"outlined":await Promise.resolve().then(()=>el);break;case"filled-tonal":await Promise.resolve().then(()=>Xn);break;default:await Promise.resolve().then(()=>Jn);break}this.__loadedVariants.add(this.variant)}this.__iconLoaded||(await Promise.resolve().then(()=>G),this.__iconLoaded=!0)}render(){const e=this.ariaLabel.trim()||this.icon,t=this.error?"error":void 0,r=c`
1866
+ `}},Na([l({type:Boolean,reflect:!0})],s.ScbAccordion.prototype,"detached",2),s.ScbAccordion=Na([b("scb-accordion")],s.ScbAccordion);var gc=Object.defineProperty,yc=Object.getOwnPropertyDescriptor,xe=(o,e,t,r)=>{for(var i=r>1?void 0:r?yc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&gc(e,t,i),i};s.ScbIconButton=class extends g{constructor(){super(...arguments),this.ariaLabel="",this.variant="standard",this.icon="home",this.toggle=!1,this.toggleofficon="add",this.toggleonicon="remove",this.disabled=!1,this.error=!1,this.__loadedVariants=new Set,this.__iconLoaded=!1,this.__onChange=()=>{const e=this.__lastBtn;this.dispatchEvent(new CustomEvent("change",{detail:{selected:!!(e!=null&&e.selected)},bubbles:!0,composed:!0}))}}__attachChangeListener(){var t,r,i;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("md-filled-icon-button, md-outlined-icon-button, md-filled-tonal-icon-button, md-icon-button");e&&e!==this.__lastBtn&&((i=(r=this.__lastBtn)==null?void 0:r.removeEventListener)==null||i.call(r,"change",this.__onChange),e.addEventListener("change",this.__onChange),this.__lastBtn=e)}async firstUpdated(){await this.__ensureDepsLoaded(),await this.updateComplete,this.__attachChangeListener()}updated(e){super.updated(e),e.has("disabled")&&this.toggleAttribute("aria-disabled",this.disabled),e.has("variant")||e.has("icon")||e.has("toggle")?this.__ensureDepsLoaded().then(()=>queueMicrotask(()=>this.__attachChangeListener())):queueMicrotask(()=>this.__attachChangeListener())}disconnectedCallback(){var e,t;super.disconnectedCallback(),(t=(e=this.__lastBtn)==null?void 0:e.removeEventListener)==null||t.call(e,"change",this.__onChange),this.__lastBtn=null}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"filled":await Promise.resolve().then(()=>Kn);break;case"outlined":await Promise.resolve().then(()=>el);break;case"filled-tonal":await Promise.resolve().then(()=>Xn);break;default:await Promise.resolve().then(()=>Jn);break}this.__loadedVariants.add(this.variant)}this.__iconLoaded||(await Promise.resolve().then(()=>X),this.__iconLoaded=!0)}render(){const e=this.ariaLabel.trim()||this.icon,t=this.error?"error":void 0,r=c`
1867
1867
  <md-icon aria-hidden="true">${this.toggleofficon}</md-icon>
1868
1868
  <md-icon slot="selected" aria-hidden="true">${this.toggleonicon}</md-icon>
1869
1869
  `,i=c`<md-icon aria-hidden="true">${this.icon}</md-icon>`;if(this.toggle){const a=this.selected||!1;switch(this.variant){case"filled":return c`
@@ -1992,7 +1992,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
1992
1992
  ${i}
1993
1993
  </div>
1994
1994
  </md-list-item>
1995
- `}},jr=new WeakMap,Wr=new WeakMap,Gr=new WeakMap,Kr=new WeakMap,Yr=new WeakSet,po=async function(){Vr(this,jr)||(await Promise.resolve().then(()=>dl),qr(this,jr,!0));const o=this.type==="link"&&(!this.trailing||this.trailingVariant==="icon");(this.leading&&this.leadingVariant==="icon"||this.trailing&&this.trailingVariant==="icon"||o)&&!Vr(this,Wr)&&(await Promise.resolve().then(()=>G),qr(this,Wr,!0)),this.trailing&&this.trailingVariant==="checkbox"&&!Vr(this,Gr)&&(await Promise.resolve().then(()=>Ya),qr(this,Gr,!0)),this.trailing&&this.trailingVariant==="switch"&&!Vr(this,Kr)&&(await Promise.resolve().then(()=>ms),qr(this,Kr,!0))},V([l({type:String,reflect:!0,attribute:"type"})],s.ScbListItem.prototype,"type",2),V([l({type:String})],s.ScbListItem.prototype,"href",2),V([l({type:String,attribute:"item-href"})],s.ScbListItem.prototype,"itemHref",2),V([l({type:String,attribute:"target"})],s.ScbListItem.prototype,"target",2),V([l({type:Boolean,attribute:"disabled"})],s.ScbListItem.prototype,"disabled",2),V([l({type:String,reflect:!0})],s.ScbListItem.prototype,"label",2),V([l({type:String,attribute:"supporting-text"})],s.ScbListItem.prototype,"supportingText",2),V([l({type:String,attribute:"overline"})],s.ScbListItem.prototype,"overline",2),V([l({type:Boolean})],s.ScbListItem.prototype,"leading",2),V([l({type:String,attribute:"leading-icon"})],s.ScbListItem.prototype,"leadingIcon",2),V([l({type:String,reflect:!0,attribute:"img-href-avatar"})],s.ScbListItem.prototype,"imgHrefAvatar",2),V([l({type:String,reflect:!0,attribute:"img-href-image"})],s.ScbListItem.prototype,"imgHrefImage",2),V([l({type:String,reflect:!0,attribute:"leading-variant"})],s.ScbListItem.prototype,"leadingVariant",2),V([l({type:Boolean})],s.ScbListItem.prototype,"trailing",2),V([l({type:String,attribute:"trailing-icon"})],s.ScbListItem.prototype,"trailingIcon",2),V([l({type:String,reflect:!0,attribute:"trailing-variant"})],s.ScbListItem.prototype,"trailingVariant",2),s.ScbListItem=V([b("scb-list-item")],s.ScbListItem);var wc=Object.getOwnPropertyDescriptor,ja=o=>{throw TypeError(o)},Sc=(o,e,t,r)=>{for(var i=r>1?void 0:r?wc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=n(i)||i);return i},Wa=(o,e,t)=>e.has(o)||ja("Cannot "+t),$c=(o,e,t)=>(Wa(o,e,"read from private field"),e.get(o)),kc=(o,e,t)=>e.has(o)?ja("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Cc=(o,e,t,r)=>(Wa(o,e,"write to private field"),e.set(o,t),t),Xr;s.ScbList=class extends g{constructor(){super(...arguments),kc(this,Xr,!1)}async firstUpdated(){$c(this,Xr)||(await Promise.resolve().then(()=>sl),Cc(this,Xr,!0))}render(){return c`
1995
+ `}},jr=new WeakMap,Wr=new WeakMap,Gr=new WeakMap,Kr=new WeakMap,Yr=new WeakSet,po=async function(){Vr(this,jr)||(await Promise.resolve().then(()=>dl),qr(this,jr,!0));const o=this.type==="link"&&(!this.trailing||this.trailingVariant==="icon");(this.leading&&this.leadingVariant==="icon"||this.trailing&&this.trailingVariant==="icon"||o)&&!Vr(this,Wr)&&(await Promise.resolve().then(()=>X),qr(this,Wr,!0)),this.trailing&&this.trailingVariant==="checkbox"&&!Vr(this,Gr)&&(await Promise.resolve().then(()=>Ya),qr(this,Gr,!0)),this.trailing&&this.trailingVariant==="switch"&&!Vr(this,Kr)&&(await Promise.resolve().then(()=>ms),qr(this,Kr,!0))},V([l({type:String,reflect:!0,attribute:"type"})],s.ScbListItem.prototype,"type",2),V([l({type:String})],s.ScbListItem.prototype,"href",2),V([l({type:String,attribute:"item-href"})],s.ScbListItem.prototype,"itemHref",2),V([l({type:String,attribute:"target"})],s.ScbListItem.prototype,"target",2),V([l({type:Boolean,attribute:"disabled"})],s.ScbListItem.prototype,"disabled",2),V([l({type:String,reflect:!0})],s.ScbListItem.prototype,"label",2),V([l({type:String,attribute:"supporting-text"})],s.ScbListItem.prototype,"supportingText",2),V([l({type:String,attribute:"overline"})],s.ScbListItem.prototype,"overline",2),V([l({type:Boolean})],s.ScbListItem.prototype,"leading",2),V([l({type:String,attribute:"leading-icon"})],s.ScbListItem.prototype,"leadingIcon",2),V([l({type:String,reflect:!0,attribute:"img-href-avatar"})],s.ScbListItem.prototype,"imgHrefAvatar",2),V([l({type:String,reflect:!0,attribute:"img-href-image"})],s.ScbListItem.prototype,"imgHrefImage",2),V([l({type:String,reflect:!0,attribute:"leading-variant"})],s.ScbListItem.prototype,"leadingVariant",2),V([l({type:Boolean})],s.ScbListItem.prototype,"trailing",2),V([l({type:String,attribute:"trailing-icon"})],s.ScbListItem.prototype,"trailingIcon",2),V([l({type:String,reflect:!0,attribute:"trailing-variant"})],s.ScbListItem.prototype,"trailingVariant",2),s.ScbListItem=V([b("scb-list-item")],s.ScbListItem);var wc=Object.getOwnPropertyDescriptor,ja=o=>{throw TypeError(o)},Sc=(o,e,t,r)=>{for(var i=r>1?void 0:r?wc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=n(i)||i);return i},Wa=(o,e,t)=>e.has(o)||ja("Cannot "+t),$c=(o,e,t)=>(Wa(o,e,"read from private field"),e.get(o)),kc=(o,e,t)=>e.has(o)?ja("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Cc=(o,e,t,r)=>(Wa(o,e,"write to private field"),e.set(o,t),t),Xr;s.ScbList=class extends g{constructor(){super(...arguments),kc(this,Xr,!1)}async firstUpdated(){$c(this,Xr)||(await Promise.resolve().then(()=>sl),Cc(this,Xr,!0))}render(){return c`
1996
1996
  <md-list role="list">
1997
1997
  <slot></slot>
1998
1998
  </md-list>
@@ -2353,7 +2353,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
2353
2353
  align-items: center;
2354
2354
  margin-bottom: 8px;
2355
2355
  }
2356
- `],Gt([l({type:String})],s.ScbAppBar.prototype,"title",2),Gt([l({type:String})],s.ScbAppBar.prototype,"type",2),Gt([l({type:String,reflect:!0})],s.ScbAppBar.prototype,"position",2),Gt([l({type:String,attribute:"search-supporting-text"})],s.ScbAppBar.prototype,"searchSupportingText",2),s.ScbAppBar=Gt([b("scb-app-bar")],s.ScbAppBar);var Oc=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,pe=(o,e,t,r)=>{for(var i=r>1?void 0:r?Pc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Oc(e,t,i),i};s.ScbAvatar=class extends g{constructor(){super(...arguments),this.src="",this.alt="",this.label="",this.size="medium",this.shape="circular",this.iconName="",this.variant="image",this._imgError=!1,this._hasIconSlot=!1,this._onImgLoad=()=>{this._imgError=!1,this.dispatchEvent(new CustomEvent("image-load",{bubbles:!0,composed:!0}))},this._onImgError=()=>{this._imgError=!0,this.dispatchEvent(new CustomEvent("image-error",{bubbles:!0,composed:!0}))},this._onIconSlotChange=e=>{const t=e.currentTarget;this._hasIconSlot=(t.assignedNodes({flatten:!0})||[]).length>0}}async firstUpdated(){this.variant==="icon"&&await Promise.resolve().then(()=>G)}_initials(){const e=(this.label||this.alt||"").trim();if(!e)return"?";const t=e.split(/\s+/).filter(Boolean);if(t.length===1)return t[0].slice(0,1).toUpperCase();const r=t[0].slice(0,1),i=t[t.length-1].slice(0,1);return(r+i).toUpperCase()}_ariaLabel(){const e=(this.label||this.alt||"").trim();return e||null}render(){const e=this._ariaLabel(),t=this.variant==="image"&&!!this.src&&!this._imgError,r=c`${p}
2356
+ `],Gt([l({type:String})],s.ScbAppBar.prototype,"title",2),Gt([l({type:String})],s.ScbAppBar.prototype,"type",2),Gt([l({type:String,reflect:!0})],s.ScbAppBar.prototype,"position",2),Gt([l({type:String,attribute:"search-supporting-text"})],s.ScbAppBar.prototype,"searchSupportingText",2),s.ScbAppBar=Gt([b("scb-app-bar")],s.ScbAppBar);var Oc=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,pe=(o,e,t,r)=>{for(var i=r>1?void 0:r?Pc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Oc(e,t,i),i};s.ScbAvatar=class extends g{constructor(){super(...arguments),this.src="",this.alt="",this.label="",this.size="medium",this.shape="circular",this.iconName="",this.variant="image",this._imgError=!1,this._hasIconSlot=!1,this._onImgLoad=()=>{this._imgError=!1,this.dispatchEvent(new CustomEvent("image-load",{bubbles:!0,composed:!0}))},this._onImgError=()=>{this._imgError=!0,this.dispatchEvent(new CustomEvent("image-error",{bubbles:!0,composed:!0}))},this._onIconSlotChange=e=>{const t=e.currentTarget;this._hasIconSlot=(t.assignedNodes({flatten:!0})||[]).length>0}}async firstUpdated(){this.variant==="icon"&&await Promise.resolve().then(()=>X)}_initials(){const e=(this.label||this.alt||"").trim();if(!e)return"?";const t=e.split(/\s+/).filter(Boolean);if(t.length===1)return t[0].slice(0,1).toUpperCase();const r=t[0].slice(0,1),i=t[t.length-1].slice(0,1);return(r+i).toUpperCase()}_ariaLabel(){const e=(this.label||this.alt||"").trim();return e||null}render(){const e=this._ariaLabel(),t=this.variant==="image"&&!!this.src&&!this._imgError,r=c`${p}
2357
2357
  <slot name="icon" @slotchange=${this._onIconSlotChange}></slot>
2358
2358
  ${this._hasIconSlot?p:this.iconName?c`<md-icon aria-hidden="true">${this.iconName}</md-icon>`:c`<div class="fallback" part="fallback">${this._initials()}</div>`}
2359
2359
  `,i=t?c`<img class="photo" part="image" src=${this.src} alt=${this.alt}
@@ -2466,7 +2466,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
2466
2466
  `}render(){switch(!0){case this.isCurrent:return c`<span class="breadcrumb-current">${this.label}</span>`;default:return c`
2467
2467
  <a href="${this.href}" class="breadcrumb-link">${this.label}</a>
2468
2468
  <span class="breadcrumb-separator">/</span>
2469
- `}}},Zr([l({type:String})],s.SCBBreadcrumbItem.prototype,"label",2),Zr([l({type:Boolean,attribute:"is-current"})],s.SCBBreadcrumbItem.prototype,"isCurrent",2),Zr([l({type:String,attribute:"item-href"})],s.SCBBreadcrumbItem.prototype,"href",2),s.SCBBreadcrumbItem=Zr([b("scb-breadcrumb-item")],s.SCBBreadcrumbItem);var Rc=Object.defineProperty,Bc=Object.getOwnPropertyDescriptor,Ga=(o,e,t,r)=>{for(var i=r>1?void 0:r?Bc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Rc(e,t,i),i};s.SCBBreadcrumb=class extends g{constructor(){super(...arguments),this.showAll=!1}async __ensureIconLoaded(){s.SCBBreadcrumb.__iconLoaded||(await Promise.resolve().then(()=>G),s.SCBBreadcrumb.__iconLoaded=!0)}static get styles(){return v`
2469
+ `}}},Zr([l({type:String})],s.SCBBreadcrumbItem.prototype,"label",2),Zr([l({type:Boolean,attribute:"is-current"})],s.SCBBreadcrumbItem.prototype,"isCurrent",2),Zr([l({type:String,attribute:"item-href"})],s.SCBBreadcrumbItem.prototype,"href",2),s.SCBBreadcrumbItem=Zr([b("scb-breadcrumb-item")],s.SCBBreadcrumbItem);var Rc=Object.defineProperty,Bc=Object.getOwnPropertyDescriptor,Ga=(o,e,t,r)=>{for(var i=r>1?void 0:r?Bc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Rc(e,t,i),i};s.SCBBreadcrumb=class extends g{constructor(){super(...arguments),this.showAll=!1}static get styles(){return v`
2470
2470
  .scb-breadcrumb {
2471
2471
  display: flex;
2472
2472
  align-items: center;
@@ -2494,18 +2494,18 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
2494
2494
  .expanded .ellipsis {
2495
2495
  display: none;
2496
2496
  }
2497
- .breadcrumb-animate {
2498
- opacity: 0;
2499
- transform: translateY(10px);
2500
- animation: fadeInBreadcrumb 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
2501
- }
2502
- @keyframes fadeInBreadcrumb {
2503
- to {
2504
- opacity: 1;
2505
- transform: translateY(0);
2506
- }
2497
+ .breadcrumb-animate {
2498
+ opacity: 0;
2499
+ transform: translateY(10px);
2500
+ animation: fadeInBreadcrumb 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
2501
+ }
2502
+ @keyframes fadeInBreadcrumb {
2503
+ to {
2504
+ opacity: 1;
2505
+ transform: translateY(0);
2507
2506
  }
2508
- `}firstUpdated(){this.children.length>6&&!this.showAll&&this.__ensureIconLoaded()}_onEllipsisClick(){this.showAll?(this.showAll=!1,s.SCBBreadcrumb.__iconLoaded||this.__ensureIconLoaded()):(this.showAll=!0,this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelectorAll(".scb-breadcrumb.expanded > scb-breadcrumb-item");e&&(e.forEach((r,i)=>{r.classList.add("breadcrumb-animate"),r.style.animationDelay=`${i*60}ms`}),setTimeout(()=>{e.forEach(r=>{r.classList.remove("breadcrumb-animate"),r.style.animationDelay=""})},600))}))}render(){let e=[];this.children.length||(e=Array.from(this.shadowRoot?this.shadowRoot.querySelectorAll("scb-breadcrumb-item"):[])),e.length||(e=Array.from(this.children).filter(r=>r.tagName.toLowerCase()==="scb-breadcrumb-item")),e.length>0&&e[e.length-1].setAttribute("is-current","true");const t=e.length>6&&!this.showAll;return c`
2507
+ }
2508
+ `}_onEllipsisClick(){this.showAll?this.showAll=!1:(this.showAll=!0,this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelectorAll(".scb-breadcrumb.expanded > scb-breadcrumb-item");e&&(e.forEach((r,i)=>{r.classList.add("breadcrumb-animate"),r.style.animationDelay=`${i*60}ms`}),setTimeout(()=>{e.forEach(r=>{r.classList.remove("breadcrumb-animate"),r.style.animationDelay=""})},600))}))}render(){let e=[];this.children.length||(e=Array.from(this.shadowRoot?this.shadowRoot.querySelectorAll("scb-breadcrumb-item"):[])),e.length||(e=Array.from(this.children).filter(r=>r.tagName.toLowerCase()==="scb-breadcrumb-item")),e.length>0&&e[e.length-1].setAttribute("is-current","true");const t=e.length>6&&!this.showAll;return c`
2509
2509
  <div class="scb-breadcrumb ${t?"collapsed":"expanded"}">
2510
2510
  ${t?e.map((r,i)=>i===3?c`<span
2511
2511
  class="ellipsis"
@@ -2516,7 +2516,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
2516
2516
  @keydown=${a=>{(a.key==="Enter"||a.key===" ")&&this._onEllipsisClick()}}
2517
2517
  ><md-icon>more_horiz</md-icon></span><span class="breadcrumb-separator">/</span>${r}`:c`${r}`):e.map(r=>r)}
2518
2518
  </div>
2519
- `}},s.SCBBreadcrumb.__iconLoaded=!1,Ga([l({type:Boolean})],s.SCBBreadcrumb.prototype,"showAll",2),s.SCBBreadcrumb=Ga([b("scb-breadcrumb")],s.SCBBreadcrumb);var Mc=Object.defineProperty,Fc=Object.getOwnPropertyDescriptor,ue=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Mc(e,t,i),i};s.ScbButton=class extends g{constructor(){super(...arguments),this.variant="filled",this.type="button",this.label="Button",this.trailingIcon=!1,this.icon="",this.disabled=!1,this.href="",this.target="",this.rel="",this.__loadedButtons=new Set,this.__iconLoaded=!1}async __ensureDepsLoaded(){if(!this.__loadedButtons.has(this.variant)){switch(this.variant){case"filled":await Promise.resolve().then(()=>cn);break;case"outlined":await Promise.resolve().then(()=>mn);break;case"filled-tonal":await Promise.resolve().then(()=>pn);break;case"text":await Promise.resolve().then(()=>gn);break}this.__loadedButtons.add(this.variant)}this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>G),this.__iconLoaded=!0)}__getInnerButton(){return this.renderRoot.querySelector("md-filled-button, md-outlined-button, md-filled-tonal-button, md-text-button")}__syncAriaToInner(){var i;const e=this.__getInnerButton();if(!e)return;const t=this.getAttribute("aria-controls");t&&e.setAttribute("aria-controls",t);const r=this.getAttribute("aria-expanded");r!==null&&(e.setAttribute("aria-expanded",r),this.removeAttribute("aria-expanded")),(i=this.__ariaObserver)==null||i.disconnect(),this.__ariaObserver=new MutationObserver(a=>{const n=this.__getInnerButton();if(n){for(const h of a)if(!(h.type!=="attributes"||!h.attributeName)&&(h.attributeName==="aria-controls"||h.attributeName==="aria-expanded")){const u=this.getAttribute(h.attributeName);u===null?n.removeAttribute(h.attributeName):n.setAttribute(h.attributeName,u),h.attributeName==="aria-expanded"&&this.removeAttribute("aria-expanded")}}}),this.__ariaObserver.observe(this,{attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}firstUpdated(){(this.type==="submit"||this.type==="reset")&&this.addEventListener("click",()=>{if(!this.disabled){const e=this.closest("form");e&&(this.type==="submit"&&e.requestSubmit(),this.type==="reset"&&e.reset())}}),this.__ensureDepsLoaded(),this.__syncAriaToInner()}updated(e){(e.has("variant")||e.has("icon")&&this.icon)&&this.__ensureDepsLoaded(),e.has("variant")&&this.__syncAriaToInner()}disconnectedCallback(){var e;(e=this.__ariaObserver)==null||e.disconnect(),super.disconnectedCallback()}static get styles(){return v`
2519
+ `}},Ga([l({type:Boolean})],s.SCBBreadcrumb.prototype,"showAll",2),s.SCBBreadcrumb=Ga([b("scb-breadcrumb")],s.SCBBreadcrumb);var Mc=Object.defineProperty,Fc=Object.getOwnPropertyDescriptor,ue=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Mc(e,t,i),i};s.ScbButton=class extends g{constructor(){super(...arguments),this.variant="filled",this.type="button",this.label="Button",this.trailingIcon=!1,this.icon="",this.disabled=!1,this.href="",this.target="",this.rel="",this.__loadedButtons=new Set,this.__iconLoaded=!1}async __ensureDepsLoaded(){if(!this.__loadedButtons.has(this.variant)){switch(this.variant){case"filled":await Promise.resolve().then(()=>cn);break;case"outlined":await Promise.resolve().then(()=>mn);break;case"filled-tonal":await Promise.resolve().then(()=>pn);break;case"text":await Promise.resolve().then(()=>gn);break}this.__loadedButtons.add(this.variant)}this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>X),this.__iconLoaded=!0)}__getInnerButton(){return this.renderRoot.querySelector("md-filled-button, md-outlined-button, md-filled-tonal-button, md-text-button")}__syncAriaToInner(){var i;const e=this.__getInnerButton();if(!e)return;const t=this.getAttribute("aria-controls");t&&e.setAttribute("aria-controls",t);const r=this.getAttribute("aria-expanded");r!==null&&(e.setAttribute("aria-expanded",r),this.removeAttribute("aria-expanded")),(i=this.__ariaObserver)==null||i.disconnect(),this.__ariaObserver=new MutationObserver(a=>{const n=this.__getInnerButton();if(n){for(const h of a)if(!(h.type!=="attributes"||!h.attributeName)&&(h.attributeName==="aria-controls"||h.attributeName==="aria-expanded")){const u=this.getAttribute(h.attributeName);u===null?n.removeAttribute(h.attributeName):n.setAttribute(h.attributeName,u),h.attributeName==="aria-expanded"&&this.removeAttribute("aria-expanded")}}}),this.__ariaObserver.observe(this,{attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}firstUpdated(){(this.type==="submit"||this.type==="reset")&&this.addEventListener("click",()=>{if(!this.disabled){const e=this.closest("form");e&&(this.type==="submit"&&e.requestSubmit(),this.type==="reset"&&e.reset())}}),this.__ensureDepsLoaded(),this.__syncAriaToInner()}updated(e){(e.has("variant")||e.has("icon")&&this.icon)&&this.__ensureDepsLoaded(),e.has("variant")&&this.__syncAriaToInner()}disconnectedCallback(){var e;(e=this.__ariaObserver)==null||e.disconnect(),super.disconnectedCallback()}static get styles(){return v`
2520
2520
  /* Gör hosten stretchbar i t.ex. flex/grid */
2521
2521
  :host {
2522
2522
  display: inline-flex;
@@ -2635,7 +2635,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
2635
2635
  ${this.label}
2636
2636
  ${e&&this.trailingIcon?t:p}
2637
2637
  </md-text-button>
2638
- `;default:return c``}}},ue([l({type:String,reflect:!0})],s.ScbButton.prototype,"variant",2),ue([l({type:String,reflect:!0})],s.ScbButton.prototype,"type",2),ue([l({type:String})],s.ScbButton.prototype,"label",2),ue([l({type:Boolean,attribute:"trailing-icon"})],s.ScbButton.prototype,"trailingIcon",2),ue([l({type:String})],s.ScbButton.prototype,"icon",2),ue([l({type:Boolean,reflect:!0})],s.ScbButton.prototype,"disabled",2),ue([l({type:String})],s.ScbButton.prototype,"href",2),ue([l({type:String})],s.ScbButton.prototype,"target",2),ue([l({type:String})],s.ScbButton.prototype,"rel",2),s.ScbButton=ue([b("scb-button")],s.ScbButton);const Hc=Object.freeze(Object.defineProperty({__proto__:null,get ScbButton(){return s.ScbButton}},Symbol.toStringTag,{value:"Module"}));var Nc=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,Oe=(o,e,t,r)=>{for(var i=r>1?void 0:r?Uc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Nc(e,t,i),i};s.ScbCalendarCard=class extends g{constructor(){super(...arguments),this.variant="default",this.direction="horizontal",this.header="",this.subtitle="",this.supportingText="",this.cardHref="",this.showMedia=null}async firstUpdated(){s.ScbCalendarCard.__iconLoaded||(await Promise.resolve().then(()=>G),s.ScbCalendarCard.__iconLoaded=!0),s.ScbCalendarCard.__rippleLoaded||(await Promise.resolve().then(()=>nr),s.ScbCalendarCard.__rippleLoaded=!0)}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",t=this.direction?`${this.direction.toLowerCase()}`:"",r=this.cardHref?"clickable":"",i=new Date().getDate(),a=new Date().toLocaleString("default",{month:"short"}).replace(".","");return c`
2638
+ `;default:return c``}}},ue([l({type:String,reflect:!0})],s.ScbButton.prototype,"variant",2),ue([l({type:String,reflect:!0})],s.ScbButton.prototype,"type",2),ue([l({type:String})],s.ScbButton.prototype,"label",2),ue([l({type:Boolean,attribute:"trailing-icon"})],s.ScbButton.prototype,"trailingIcon",2),ue([l({type:String})],s.ScbButton.prototype,"icon",2),ue([l({type:Boolean,reflect:!0})],s.ScbButton.prototype,"disabled",2),ue([l({type:String})],s.ScbButton.prototype,"href",2),ue([l({type:String})],s.ScbButton.prototype,"target",2),ue([l({type:String})],s.ScbButton.prototype,"rel",2),s.ScbButton=ue([b("scb-button")],s.ScbButton);const Hc=Object.freeze(Object.defineProperty({__proto__:null,get ScbButton(){return s.ScbButton}},Symbol.toStringTag,{value:"Module"}));var Nc=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,Oe=(o,e,t,r)=>{for(var i=r>1?void 0:r?Uc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Nc(e,t,i),i};s.ScbCalendarCard=class extends g{constructor(){super(...arguments),this.variant="default",this.direction="horizontal",this.header="",this.subtitle="",this.supportingText="",this.cardHref="",this.showMedia=null}async firstUpdated(){s.ScbCalendarCard.__iconLoaded||(await Promise.resolve().then(()=>X),s.ScbCalendarCard.__iconLoaded=!0),s.ScbCalendarCard.__rippleLoaded||(await Promise.resolve().then(()=>nr),s.ScbCalendarCard.__rippleLoaded=!0)}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",t=this.direction?`${this.direction.toLowerCase()}`:"",r=this.cardHref?"clickable":"",i=new Date().getDate(),a=new Date().toLocaleString("default",{month:"short"}).replace(".","");return c`
2639
2639
  <div
2640
2640
  class="calendar-card ${t} ${r} ${e}"
2641
2641
  role="${this.cardHref?"link":"group"}"
@@ -2773,7 +2773,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
2773
2773
  line-height: var(--md-sys-typescale-body-large-line-height, 26px);
2774
2774
  letter-spacing: var(--md-sys-typescale-body-large-tracking, -0.3px);
2775
2775
  }
2776
- `,Oe([l({type:String,reflect:!0})],s.ScbCalendarCard.prototype,"variant",2),Oe([l({type:String,reflect:!0})],s.ScbCalendarCard.prototype,"direction",2),Oe([l({type:String})],s.ScbCalendarCard.prototype,"header",2),Oe([l({type:String})],s.ScbCalendarCard.prototype,"subtitle",2),Oe([l({type:String,attribute:"supporting-text"})],s.ScbCalendarCard.prototype,"supportingText",2),Oe([l({type:String,attribute:"card-href"})],s.ScbCalendarCard.prototype,"cardHref",2),Oe([l({type:Boolean,reflect:!0,attribute:"show-media"})],s.ScbCalendarCard.prototype,"showMedia",2),s.ScbCalendarCard=Oe([b("scb-calendar-card")],s.ScbCalendarCard);var Vc=Object.defineProperty,qc=Object.getOwnPropertyDescriptor,Y=(o,e,t,r)=>{for(var i=r>1?void 0:r?qc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Vc(e,t,i),i};s.ScbCard=class extends g{constructor(){super(...arguments),this.type="",this.variant="",this.direction="",this.mediaType="",this.mediaHref="",this.cardHref="",this.label="",this.subLabel="",this.supportingText="",this.commentsText="",this.comments=0,this.likesText="",this.likes=0}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",t=this.direction?`${this.direction.toLowerCase()}`:"",r=this.cardHref?"clickable":"",i=this.mediaType?`${this.mediaType.toLowerCase()}`:"";switch(this.type){case"standard":return c`
2776
+ `,Oe([l({type:String,reflect:!0})],s.ScbCalendarCard.prototype,"variant",2),Oe([l({type:String,reflect:!0})],s.ScbCalendarCard.prototype,"direction",2),Oe([l({type:String})],s.ScbCalendarCard.prototype,"header",2),Oe([l({type:String})],s.ScbCalendarCard.prototype,"subtitle",2),Oe([l({type:String,attribute:"supporting-text"})],s.ScbCalendarCard.prototype,"supportingText",2),Oe([l({type:String,attribute:"card-href"})],s.ScbCalendarCard.prototype,"cardHref",2),Oe([l({type:Boolean,reflect:!0,attribute:"show-media"})],s.ScbCalendarCard.prototype,"showMedia",2),s.ScbCalendarCard=Oe([b("scb-calendar-card")],s.ScbCalendarCard);var Vc=Object.defineProperty,qc=Object.getOwnPropertyDescriptor,K=(o,e,t,r)=>{for(var i=r>1?void 0:r?qc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Vc(e,t,i),i};s.ScbCard=class extends g{constructor(){super(...arguments),this.type="",this.variant="",this.direction="",this.mediaType="",this.mediaHref="",this.cardHref="",this.label="",this.subLabel="",this.supportingText="",this.commentsText="",this.comments=0,this.likesText="",this.likes=0}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",t=this.direction?`${this.direction.toLowerCase()}`:"",r=this.cardHref?"clickable":"",i=this.mediaType?`${this.mediaType.toLowerCase()}`:"";switch(this.type){case"standard":return c`
2777
2777
  <div class="scb-card ${e} ${t} ${r}">
2778
2778
  ${this.cardHref?c`<md-ripple></md-ripple>`:""}
2779
2779
  ${this.mediaHref?c`<img src="${this.mediaHref}" class="${i}" alt="" ?hidden=${!this.mediaHref} />`:""}
@@ -3028,7 +3028,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
3028
3028
  gap: var(--spacing-3);
3029
3029
  }
3030
3030
 
3031
- `,Y([l({type:String})],s.ScbCard.prototype,"type",2),Y([l({type:String})],s.ScbCard.prototype,"variant",2),Y([l({type:String})],s.ScbCard.prototype,"direction",2),Y([l({type:String,attribute:"media-type"})],s.ScbCard.prototype,"mediaType",2),Y([l({type:String,attribute:"media-href"})],s.ScbCard.prototype,"mediaHref",2),Y([l({type:String,attribute:"card-href"})],s.ScbCard.prototype,"cardHref",2),Y([l({type:String})],s.ScbCard.prototype,"label",2),Y([l({type:String,attribute:"sub-label"})],s.ScbCard.prototype,"subLabel",2),Y([l({type:String,attribute:"supporting-text"})],s.ScbCard.prototype,"supportingText",2),Y([l({type:Date,reflect:!0})],s.ScbCard.prototype,"date",2),Y([l({type:String,attribute:"social-comments-text"})],s.ScbCard.prototype,"commentsText",2),Y([l({type:Number,attribute:"social-comments",reflect:!0})],s.ScbCard.prototype,"comments",2),Y([l({type:String,attribute:"social-likes-text"})],s.ScbCard.prototype,"likesText",2),Y([l({type:Number,attribute:"social-likes",reflect:!0})],s.ScbCard.prototype,"likes",2),s.ScbCard=Y([b("scb-card")],s.ScbCard);var jc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,Ka=o=>{throw TypeError(o)},Jr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Wc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&jc(e,t,i),i},Gc=(o,e,t)=>e.has(o)||Ka("Cannot "+t),uo=(o,e,t)=>(Gc(o,e,"read from private field"),t?t.call(o):e.get(o)),Kc=(o,e,t)=>e.has(o)?Ka("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Kt;s.ScbCheckboxGroup=class extends g{constructor(){super(...arguments),this.orientation="vertical",this.disabled=!1,this.spacing="group",Kc(this,Kt,()=>{var r;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");if(!e)return;const t=e.assignedElements({flatten:!0}).filter(i=>i.tagName.toLowerCase()==="scb-checkbox");for(const i of t)this.disabled?i.setAttribute("disabled",""):i.removeAttribute("disabled"),this.orientation==="horizontal"?i.setAttribute("orientation","horizontal"):i.removeAttribute("orientation"),this.spacing==="group"?i.style.setProperty("--scb-checkbox-gap","0"):i.style.removeProperty("--scb-checkbox-gap")})}render(){const e=this.orientation==="horizontal"?"row":"column";return c`
3031
+ `,K([l({type:String})],s.ScbCard.prototype,"type",2),K([l({type:String})],s.ScbCard.prototype,"variant",2),K([l({type:String})],s.ScbCard.prototype,"direction",2),K([l({type:String,attribute:"media-type"})],s.ScbCard.prototype,"mediaType",2),K([l({type:String,attribute:"media-href"})],s.ScbCard.prototype,"mediaHref",2),K([l({type:String,attribute:"card-href"})],s.ScbCard.prototype,"cardHref",2),K([l({type:String})],s.ScbCard.prototype,"label",2),K([l({type:String,attribute:"sub-label"})],s.ScbCard.prototype,"subLabel",2),K([l({type:String,attribute:"supporting-text"})],s.ScbCard.prototype,"supportingText",2),K([l({type:Date,reflect:!0})],s.ScbCard.prototype,"date",2),K([l({type:String,attribute:"social-comments-text"})],s.ScbCard.prototype,"commentsText",2),K([l({type:Number,attribute:"social-comments",reflect:!0})],s.ScbCard.prototype,"comments",2),K([l({type:String,attribute:"social-likes-text"})],s.ScbCard.prototype,"likesText",2),K([l({type:Number,attribute:"social-likes",reflect:!0})],s.ScbCard.prototype,"likes",2),s.ScbCard=K([b("scb-card")],s.ScbCard);var jc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,Ka=o=>{throw TypeError(o)},Jr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Wc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&jc(e,t,i),i},Gc=(o,e,t)=>e.has(o)||Ka("Cannot "+t),uo=(o,e,t)=>(Gc(o,e,"read from private field"),t?t.call(o):e.get(o)),Kc=(o,e,t)=>e.has(o)?Ka("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Kt;s.ScbCheckboxGroup=class extends g{constructor(){super(...arguments),this.orientation="vertical",this.disabled=!1,this.spacing="group",Kc(this,Kt,()=>{var r;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");if(!e)return;const t=e.assignedElements({flatten:!0}).filter(i=>i.tagName.toLowerCase()==="scb-checkbox");for(const i of t)this.disabled?i.setAttribute("disabled",""):i.removeAttribute("disabled"),this.orientation==="horizontal"?i.setAttribute("orientation","horizontal"):i.removeAttribute("orientation"),this.spacing==="group"?i.style.setProperty("--scb-checkbox-gap","0"):i.style.removeProperty("--scb-checkbox-gap")})}render(){const e=this.orientation==="horizontal"?"row":"column";return c`
3032
3032
  <div class="g" role="group" aria-disabled=${String(this.disabled)} style=${`--_dir:${e}`}>
3033
3033
  <slot @slotchange=${uo(this,Kt)}></slot>
3034
3034
  </div>
@@ -3130,7 +3130,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
3130
3130
  .lbl { color: var(--md-sys-color-on-surface); }
3131
3131
  .supporting-text { color: var(--md-sys-color-on-surface-variant); }
3132
3132
  }
3133
- `,ft([l({type:Boolean,reflect:!0})],s.ScbCheckbox.prototype,"disabled",2),ft([l({type:Boolean,reflect:!0})],s.ScbCheckbox.prototype,"indeterminate",2),ft([l({type:Boolean,reflect:!0})],s.ScbCheckbox.prototype,"checked",2),ft([l({type:String})],s.ScbCheckbox.prototype,"label",2),ft([l({type:String,attribute:"supporting-text"})],s.ScbCheckbox.prototype,"supportingText",2),s.ScbCheckbox=ft([b("scb-checkbox")],s.ScbCheckbox);const Ya=Object.freeze(Object.defineProperty({__proto__:null,get ScbCheckbox(){return s.ScbCheckbox}},Symbol.toStringTag,{value:"Module"}));var Zc=Object.defineProperty,Jc=Object.getOwnPropertyDescriptor,Pe=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Zc(e,t,i),i};s.ScbChip=class extends g{constructor(){super(...arguments),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1}updated(e){super.updated(e),e.has("disabled")&&this.toggleAttribute("aria-disabled",this.disabled),(e.has("variant")||e.has("icon"))&&this.__ensureDepsLoaded()}firstUpdated(){this.__ensureDepsLoaded()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await Promise.resolve().then(()=>wn);break;case"filter":await Promise.resolve().then(()=>En);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await Promise.resolve().then(()=>$n),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>G),this.__iconLoaded=!0)}get _insideChipSet(){return!!this.closest("md-chip-set")}render(){const e=this._renderChip();return this._insideChipSet?e:c`<md-chip-set>${e}</md-chip-set>`}_renderChip(){const e=this.icon?c`<md-icon slot="icon">${this.icon}</md-icon>`:null;switch(this.variant){case"assist":return c`
3133
+ `,ft([l({type:Boolean,reflect:!0})],s.ScbCheckbox.prototype,"disabled",2),ft([l({type:Boolean,reflect:!0})],s.ScbCheckbox.prototype,"indeterminate",2),ft([l({type:Boolean,reflect:!0})],s.ScbCheckbox.prototype,"checked",2),ft([l({type:String})],s.ScbCheckbox.prototype,"label",2),ft([l({type:String,attribute:"supporting-text"})],s.ScbCheckbox.prototype,"supportingText",2),s.ScbCheckbox=ft([b("scb-checkbox")],s.ScbCheckbox);const Ya=Object.freeze(Object.defineProperty({__proto__:null,get ScbCheckbox(){return s.ScbCheckbox}},Symbol.toStringTag,{value:"Module"}));var Zc=Object.defineProperty,Jc=Object.getOwnPropertyDescriptor,Pe=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jc(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Zc(e,t,i),i};s.ScbChip=class extends g{constructor(){super(...arguments),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1}updated(e){super.updated(e),e.has("disabled")&&this.toggleAttribute("aria-disabled",this.disabled),(e.has("variant")||e.has("icon"))&&this.__ensureDepsLoaded()}firstUpdated(){this.__ensureDepsLoaded()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await Promise.resolve().then(()=>wn);break;case"filter":await Promise.resolve().then(()=>En);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await Promise.resolve().then(()=>$n),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>X),this.__iconLoaded=!0)}get _insideChipSet(){return!!this.closest("md-chip-set")}render(){const e=this._renderChip();return this._insideChipSet?e:c`<md-chip-set>${e}</md-chip-set>`}_renderChip(){const e=this.icon?c`<md-icon slot="icon">${this.icon}</md-icon>`:null;switch(this.variant){case"assist":return c`
3134
3134
  <md-assist-chip
3135
3135
  label=${this.label}
3136
3136
  ?disabled=${this.disabled}
@@ -3174,7 +3174,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
3174
3174
  color: var(--md-sys-color-on-surface);
3175
3175
  }
3176
3176
  }
3177
- `,Pe([l({type:String,reflect:!0})],s.ScbChip.prototype,"variant",2),Pe([l({type:String})],s.ScbChip.prototype,"label",2),Pe([l({type:String})],s.ScbChip.prototype,"icon",2),Pe([l({type:Boolean,reflect:!0})],s.ScbChip.prototype,"disabled",2),Pe([l({type:Boolean,reflect:!0})],s.ScbChip.prototype,"elevated",2),Pe([l({type:Boolean,reflect:!0})],s.ScbChip.prototype,"removable",2),Pe([l({type:Boolean,reflect:!0})],s.ScbChip.prototype,"selected",2),s.ScbChip=Pe([b("scb-chip")],s.ScbChip);const Qc=Object.freeze(Object.defineProperty({__proto__:null,get ScbChip(){return s.ScbChip}},Symbol.toStringTag,{value:"Module"}));var ed=Object.defineProperty,td=Object.getOwnPropertyDescriptor,H=(o,e,t,r)=>{for(var i=r>1?void 0:r?td(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ed(e,t,i),i};s.ScbDialog=class extends g{constructor(){super(...arguments),this.open=!1,this.inSb=!1,this.scrimClose=!0,this.variant="basic",this.label="",this.icon="",this.supportingText="",this.okButton="OK",this.cancelButton="Avbryt",this.deleteButton="Delete",this.confirmButton="Ta bort",this.denyButton="Avbryt",this.resetButton="Återställ",this.submitButton="Spara",this.formId="",this.formAction="",this.formMethod="",this.__lastTriggerEl=null,this.__slotDeps={"SCB-TEXTFIELD":()=>Promise.resolve().then(()=>Ih),"SCB-CHECKBOX":()=>Promise.resolve().then(()=>Ya),"SCB-RADIO-BUTTON":()=>Promise.resolve().then(()=>uh),"SCB-SWITCH":()=>Promise.resolve().then(()=>ms),"SCB-CHIP":()=>Promise.resolve().then(()=>Qc)},this.__onDocumentClick=e=>{this.__getActionFromEvent(e)==="toggle"&&(this.__setOpen(!this.open),e.stopPropagation())},this.__onDocumentKeydown=e=>{this.open&&e.key==="Escape"&&(this.__fire("esc"),this.__setOpen(!1))},this.__onScrimClick=()=>{this.scrimClose&&(this.__fire("scrim"),this.__setOpen(!1))},this.__onOk=()=>{this.__fire("ok"),this.__setOpen(!1)},this.__onCancel=()=>{this.__fire("cancel"),this.__setOpen(!1)},this.__onConfirm=()=>{this.__fire("confirm"),this.__setOpen(!1)},this.__onDeny=()=>{this.__fire("deny"),this.__setOpen(!1)},this.__onReset=()=>{var t,r,i,a;(r=(t=this.shadowRoot)==null?void 0:t.querySelector("form"))==null||r.reset(),(((a=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"))==null?void 0:a.assignedElements({flatten:!0}))??[]).forEach(n=>{const h=n.tagName;h==="SCB-TEXTFIELD"&&(n.value=""),h==="SCB-CHECKBOX"&&(n.checked=!1),h==="SCB-RADIO-BUTTON"&&(n.checked=!1),h==="SCB-SWITCH"&&(n.selected=!1),h==="SCB-CHIP"&&(n.selected=!1)}),this.__fire("reset")},this.__onSubmit=()=>{var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector("form"))==null||t.requestSubmit(),this.__fire("submit"),this.__setOpen(!1)},this.__onKeydownTrap=e=>{if(!this.open||e.key!=="Tab")return;const t=Array.from(this.shadowRoot.querySelectorAll('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])')).filter(a=>!a.hasAttribute("disabled"));if(!t.length)return;const r=t[0],i=t[t.length-1];e.shiftKey&&document.activeElement===r?(i.focus(),e.preventDefault()):!e.shiftKey&&document.activeElement===i&&(r.focus(),e.preventDefault())}}async firstUpdated(){await Promise.resolve().then(()=>Hc),await Promise.resolve().then(()=>Ua),this.icon&&await Promise.resolve().then(()=>G),await this.__ensureSlottedDeps()}async __ensureSlottedDeps(){var r;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");if(!e)return;const t=async i=>{const a=new Set(i.map(n=>n.tagName));for(const n of a){const h=this.__slotDeps[n];h&&await h()}};await t(e.assignedElements({flatten:!0})),e.addEventListener("slotchange",async()=>t(e.assignedElements({flatten:!0})))}__getActionFromEvent(e){if(!this.id)return null;for(const t of e.composedPath())if(t instanceof Element){if(t.getAttribute("data-dialog-toggle")===this.id)return this.__lastTriggerEl=t,"toggle";if(t.getAttribute("aria-controls")===this.id)return this.__lastTriggerEl=t,"toggle"}return null}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.__onDocumentClick,!1),document.addEventListener("keydown",this.__onDocumentKeydown,!0),this.addEventListener("keydown",this.__onKeydownTrap)}disconnectedCallback(){document.removeEventListener("click",this.__onDocumentClick,!1),document.removeEventListener("keydown",this.__onDocumentKeydown,!0),this.removeEventListener("keydown",this.__onKeydownTrap),super.disconnectedCallback()}updated(e){var t,r;if(e.has("open")){const i=e.get("open");this.__updateTriggersExpanded(),this.open&&!i?this.updateComplete.then(()=>{var a,n,h;(h=(n=(a=this.shadowRoot)==null?void 0:a.querySelector('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])'))==null?void 0:n.focus)==null||h.call(n)}):!this.open&&i&&((r=(t=this.__lastTriggerEl)==null?void 0:t.focus)==null||r.call(t)),this.__toggleScrollLock(this.open)}e.has("icon")&&this.icon&&Promise.resolve().then(()=>G)}__updateTriggersExpanded(){this.id&&document.querySelectorAll(`[aria-controls="${this.id}"], [data-dialog-toggle="${this.id}"]`).forEach(e=>{e.hasAttribute("aria-controls")&&e.setAttribute("aria-expanded",String(this.open))})}__toggleScrollLock(e){if(this.inSb)return;const t=document.documentElement;t.style.overflow=e?"hidden":""}__setOpen(e){this.open=e,this.__fire(e?"open":"close")}__fire(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}__slotIsEmpty(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");return e?e.assignedElements({flatten:!0}).length===0:!0}renderHeader(e){const t=this.variant==="form"||this.variant==="floating";return c`
3177
+ `,Pe([l({type:String,reflect:!0})],s.ScbChip.prototype,"variant",2),Pe([l({type:String})],s.ScbChip.prototype,"label",2),Pe([l({type:String})],s.ScbChip.prototype,"icon",2),Pe([l({type:Boolean,reflect:!0})],s.ScbChip.prototype,"disabled",2),Pe([l({type:Boolean,reflect:!0})],s.ScbChip.prototype,"elevated",2),Pe([l({type:Boolean,reflect:!0})],s.ScbChip.prototype,"removable",2),Pe([l({type:Boolean,reflect:!0})],s.ScbChip.prototype,"selected",2),s.ScbChip=Pe([b("scb-chip")],s.ScbChip);const Qc=Object.freeze(Object.defineProperty({__proto__:null,get ScbChip(){return s.ScbChip}},Symbol.toStringTag,{value:"Module"}));var ed=Object.defineProperty,td=Object.getOwnPropertyDescriptor,H=(o,e,t,r)=>{for(var i=r>1?void 0:r?td(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ed(e,t,i),i};s.ScbDialog=class extends g{constructor(){super(...arguments),this.open=!1,this.inSb=!1,this.scrimClose=!0,this.variant="basic",this.label="",this.icon="",this.supportingText="",this.okButton="OK",this.cancelButton="Avbryt",this.deleteButton="Delete",this.confirmButton="Ta bort",this.denyButton="Avbryt",this.resetButton="Återställ",this.submitButton="Spara",this.formId="",this.formAction="",this.formMethod="",this.__lastTriggerEl=null,this.__slotDeps={"SCB-TEXTFIELD":()=>Promise.resolve().then(()=>Ih),"SCB-CHECKBOX":()=>Promise.resolve().then(()=>Ya),"SCB-RADIO-BUTTON":()=>Promise.resolve().then(()=>uh),"SCB-SWITCH":()=>Promise.resolve().then(()=>ms),"SCB-CHIP":()=>Promise.resolve().then(()=>Qc)},this.__onDocumentClick=e=>{this.__getActionFromEvent(e)==="toggle"&&(this.__setOpen(!this.open),e.stopPropagation())},this.__onDocumentKeydown=e=>{this.open&&e.key==="Escape"&&(this.__fire("esc"),this.__setOpen(!1))},this.__onScrimClick=()=>{this.scrimClose&&(this.__fire("scrim"),this.__setOpen(!1))},this.__onOk=()=>{this.__fire("ok"),this.__setOpen(!1)},this.__onCancel=()=>{this.__fire("cancel"),this.__setOpen(!1)},this.__onConfirm=()=>{this.__fire("confirm"),this.__setOpen(!1)},this.__onDeny=()=>{this.__fire("deny"),this.__setOpen(!1)},this.__onReset=()=>{var t,r,i,a;(r=(t=this.shadowRoot)==null?void 0:t.querySelector("form"))==null||r.reset(),(((a=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"))==null?void 0:a.assignedElements({flatten:!0}))??[]).forEach(n=>{const h=n.tagName;h==="SCB-TEXTFIELD"&&(n.value=""),h==="SCB-CHECKBOX"&&(n.checked=!1),h==="SCB-RADIO-BUTTON"&&(n.checked=!1),h==="SCB-SWITCH"&&(n.selected=!1),h==="SCB-CHIP"&&(n.selected=!1)}),this.__fire("reset")},this.__onSubmit=()=>{var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector("form"))==null||t.requestSubmit(),this.__fire("submit"),this.__setOpen(!1)},this.__onKeydownTrap=e=>{if(!this.open||e.key!=="Tab")return;const t=Array.from(this.shadowRoot.querySelectorAll('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])')).filter(a=>!a.hasAttribute("disabled"));if(!t.length)return;const r=t[0],i=t[t.length-1];e.shiftKey&&document.activeElement===r?(i.focus(),e.preventDefault()):!e.shiftKey&&document.activeElement===i&&(r.focus(),e.preventDefault())}}async firstUpdated(){await Promise.resolve().then(()=>Hc),await Promise.resolve().then(()=>Ua),this.icon&&await Promise.resolve().then(()=>X),await this.__ensureSlottedDeps()}async __ensureSlottedDeps(){var r;const e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");if(!e)return;const t=async i=>{const a=new Set(i.map(n=>n.tagName));for(const n of a){const h=this.__slotDeps[n];h&&await h()}};await t(e.assignedElements({flatten:!0})),e.addEventListener("slotchange",async()=>t(e.assignedElements({flatten:!0})))}__getActionFromEvent(e){if(!this.id)return null;for(const t of e.composedPath())if(t instanceof Element){if(t.getAttribute("data-dialog-toggle")===this.id)return this.__lastTriggerEl=t,"toggle";if(t.getAttribute("aria-controls")===this.id)return this.__lastTriggerEl=t,"toggle"}return null}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.__onDocumentClick,!1),document.addEventListener("keydown",this.__onDocumentKeydown,!0),this.addEventListener("keydown",this.__onKeydownTrap)}disconnectedCallback(){document.removeEventListener("click",this.__onDocumentClick,!1),document.removeEventListener("keydown",this.__onDocumentKeydown,!0),this.removeEventListener("keydown",this.__onKeydownTrap),super.disconnectedCallback()}updated(e){var t,r;if(e.has("open")){const i=e.get("open");this.__updateTriggersExpanded(),this.open&&!i?this.updateComplete.then(()=>{var a,n,h;(h=(n=(a=this.shadowRoot)==null?void 0:a.querySelector('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])'))==null?void 0:n.focus)==null||h.call(n)}):!this.open&&i&&((r=(t=this.__lastTriggerEl)==null?void 0:t.focus)==null||r.call(t)),this.__toggleScrollLock(this.open)}e.has("icon")&&this.icon&&Promise.resolve().then(()=>X)}__updateTriggersExpanded(){this.id&&document.querySelectorAll(`[aria-controls="${this.id}"], [data-dialog-toggle="${this.id}"]`).forEach(e=>{e.hasAttribute("aria-controls")&&e.setAttribute("aria-expanded",String(this.open))})}__toggleScrollLock(e){if(this.inSb)return;const t=document.documentElement;t.style.overflow=e?"hidden":""}__setOpen(e){this.open=e,this.__fire(e?"open":"close")}__fire(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}__slotIsEmpty(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");return e?e.assignedElements({flatten:!0}).length===0:!0}renderHeader(e){const t=this.variant==="form"||this.variant==="floating";return c`
3178
3178
  <div class="header">
3179
3179
  <div class="title">
3180
3180
  ${this.icon?c`<md-icon class="dialog-icon">${this.icon}</md-icon>`:p}
@@ -3382,7 +3382,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
3382
3382
  // // // :host([inset="end"][direction="vertical"]) {
3383
3383
  // // // margin-bottom: 32px;
3384
3384
  // // // }
3385
- `],Qr([l({type:String,reflect:!0})],s.ScbDivider.prototype,"variant",2),Qr([l({type:String,reflect:!0})],s.ScbDivider.prototype,"direction",2),Qr([l({type:String,reflect:!0})],s.ScbDivider.prototype,"inset",2),s.ScbDivider=Qr([b("scb-divider")],s.ScbDivider);var od=Object.defineProperty,ad=Object.getOwnPropertyDescriptor,et=(o,e,t,r)=>{for(var i=r>1?void 0:r?ad(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&od(e,t,i),i};s.ScbDrawerItem=class extends g{constructor(){super(...arguments),this.label="",this.selected=!1,this.leadingIcon="",this.itemHref="",this.hasSlotContent=!1,this.expanded=!1,this.__submenuId=`sub-${Math.random().toString(36).slice(2)}`,this._toggleExpand=e=>{e&&e.stopPropagation(),this.hasSlotContent&&(this.expanded=!this.expanded)},this._onButtonClick=e=>{e.stopPropagation(),this._dispatchSelect(),this._toggleExpand()},this._onLinkClick=()=>{this._dispatchSelect()},this._onKeyDown=e=>{var i,a,n,h,u,f,y,m,x;const t=Array.from(((i=this.parentElement)==null?void 0:i.querySelectorAll("scb-drawer-item"))||[]),r=t.indexOf(this);switch(e.key){case"ArrowDown":{e.preventDefault(),(n=(a=(t[r+1]||t[0]).shadowRoot)==null?void 0:a.querySelector(".scb-drawer-label-text"))==null||n.focus();break}case"ArrowUp":{e.preventDefault(),(u=(h=(t[r-1]||t[t.length-1]).shadowRoot)==null?void 0:h.querySelector(".scb-drawer-label-text"))==null||u.focus();break}case"Home":{e.preventDefault(),(y=(f=t[0].shadowRoot)==null?void 0:f.querySelector(".scb-drawer-label-text"))==null||y.focus();break}case"End":{e.preventDefault(),(x=(m=t[t.length-1].shadowRoot)==null?void 0:m.querySelector(".scb-drawer-label-text"))==null||x.focus();break}}}}async __ensureDepsLoaded(){s.ScbDrawerItem.__rippleLoaded||(await Promise.resolve().then(()=>nr),s.ScbDrawerItem.__rippleLoaded=!0),this.leadingIcon&&!s.ScbDrawerItem.__iconLoaded&&(await Promise.resolve().then(()=>G),s.ScbDrawerItem.__iconLoaded=!0),this.hasSlotContent&&!s.ScbDrawerItem.__iconButtonLoaded&&(await Promise.resolve().then(()=>Ua),s.ScbDrawerItem.__iconButtonLoaded=!0)}_onSlotChange(e){const r=e.target.assignedElements({flatten:!0});this.hasSlotContent=r.length>0&&r.every(i=>i.tagName==="SCB-SUB-DRAWER")}_dispatchSelect(){this.dispatchEvent(new CustomEvent("scb-drawer-select",{bubbles:!0,composed:!0,detail:{item:this}}))}async firstUpdated(){const e=this.renderRoot.querySelector("slot");if(e){const t=e.assignedElements({flatten:!0});this.hasSlotContent=t.length>0&&t.every(r=>r.tagName==="SCB-SUB-DRAWER")}await this.__ensureDepsLoaded()}updated(e){e.has("leadingIcon")&&this.leadingIcon&&this.__ensureDepsLoaded(),e.has("hasSlotContent")&&this.hasSlotContent&&this.__ensureDepsLoaded()}render(){const e=!!this.leadingIcon,t=!!this.itemHref,r=this.hasSlotContent;return c`
3385
+ `],Qr([l({type:String,reflect:!0})],s.ScbDivider.prototype,"variant",2),Qr([l({type:String,reflect:!0})],s.ScbDivider.prototype,"direction",2),Qr([l({type:String,reflect:!0})],s.ScbDivider.prototype,"inset",2),s.ScbDivider=Qr([b("scb-divider")],s.ScbDivider);var od=Object.defineProperty,ad=Object.getOwnPropertyDescriptor,et=(o,e,t,r)=>{for(var i=r>1?void 0:r?ad(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&od(e,t,i),i};s.ScbDrawerItem=class extends g{constructor(){super(...arguments),this.label="",this.selected=!1,this.leadingIcon="",this.itemHref="",this.hasSlotContent=!1,this.expanded=!1,this.__submenuId=`sub-${Math.random().toString(36).slice(2)}`,this._toggleExpand=e=>{e&&e.stopPropagation(),this.hasSlotContent&&(this.expanded=!this.expanded)},this._onButtonClick=e=>{e.stopPropagation(),this._dispatchSelect(),this._toggleExpand()},this._onLinkClick=()=>{this._dispatchSelect()},this._onKeyDown=e=>{var i,a,n,h,u,f,y,m,x;const t=Array.from(((i=this.parentElement)==null?void 0:i.querySelectorAll("scb-drawer-item"))||[]),r=t.indexOf(this);switch(e.key){case"ArrowDown":{e.preventDefault(),(n=(a=(t[r+1]||t[0]).shadowRoot)==null?void 0:a.querySelector(".scb-drawer-label-text"))==null||n.focus();break}case"ArrowUp":{e.preventDefault(),(u=(h=(t[r-1]||t[t.length-1]).shadowRoot)==null?void 0:h.querySelector(".scb-drawer-label-text"))==null||u.focus();break}case"Home":{e.preventDefault(),(y=(f=t[0].shadowRoot)==null?void 0:f.querySelector(".scb-drawer-label-text"))==null||y.focus();break}case"End":{e.preventDefault(),(x=(m=t[t.length-1].shadowRoot)==null?void 0:m.querySelector(".scb-drawer-label-text"))==null||x.focus();break}}}}async __ensureDepsLoaded(){s.ScbDrawerItem.__rippleLoaded||(await Promise.resolve().then(()=>nr),s.ScbDrawerItem.__rippleLoaded=!0),this.leadingIcon&&!s.ScbDrawerItem.__iconLoaded&&(await Promise.resolve().then(()=>X),s.ScbDrawerItem.__iconLoaded=!0),this.hasSlotContent&&!s.ScbDrawerItem.__iconButtonLoaded&&(await Promise.resolve().then(()=>Ua),s.ScbDrawerItem.__iconButtonLoaded=!0)}_onSlotChange(e){const r=e.target.assignedElements({flatten:!0});this.hasSlotContent=r.length>0&&r.every(i=>i.tagName==="SCB-SUB-DRAWER")}_dispatchSelect(){this.dispatchEvent(new CustomEvent("scb-drawer-select",{bubbles:!0,composed:!0,detail:{item:this}}))}async firstUpdated(){const e=this.renderRoot.querySelector("slot");if(e){const t=e.assignedElements({flatten:!0});this.hasSlotContent=t.length>0&&t.every(r=>r.tagName==="SCB-SUB-DRAWER")}await this.__ensureDepsLoaded()}updated(e){e.has("leadingIcon")&&this.leadingIcon&&this.__ensureDepsLoaded(),e.has("hasSlotContent")&&this.hasSlotContent&&this.__ensureDepsLoaded()}render(){const e=!!this.leadingIcon,t=!!this.itemHref,r=this.hasSlotContent;return c`
3386
3386
  <div class="scb-drawer-item">
3387
3387
  <div class="scb-drawer-item-label" ?selected=${this.selected}>
3388
3388
  ${t?c`
@@ -4051,12 +4051,12 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
4051
4051
  :host([inline]) {
4052
4052
  --scb-stack-display: inline-flex;
4053
4053
  }
4054
- `,it([l({type:String,reflect:!0})],s.ScbStack.prototype,"direction",2),it([l({type:String,reflect:!0})],s.ScbStack.prototype,"gap",2),it([l({type:String,reflect:!0})],s.ScbStack.prototype,"align",2),it([l({type:String,reflect:!0})],s.ScbStack.prototype,"justify",2),it([l({type:Boolean,reflect:!0})],s.ScbStack.prototype,"wrap",2),it([l({type:Boolean,reflect:!0})],s.ScbStack.prototype,"inline",2),s.ScbStack=it([b("scb-stack")],s.ScbStack);var Bd=Object.defineProperty,Md=Object.getOwnPropertyDescriptor,So=(o,e,t,r)=>{for(var i=r>1?void 0:r?Md(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Bd(e,t,i),i};s.ScbHeaderDrawerGroup=class extends g{constructor(){super(...arguments),this.label=""}render(){return c`<slot></slot>`}},s.ScbHeaderDrawerGroup.styles=v`:host{display:none !important}`,So([l({type:String})],s.ScbHeaderDrawerGroup.prototype,"label",2),So([l({type:String})],s.ScbHeaderDrawerGroup.prototype,"icon",2),s.ScbHeaderDrawerGroup=So([b("scb-header-drawer-group")],s.ScbHeaderDrawerGroup);var Fd=Object.defineProperty,Hd=Object.getOwnPropertyDescriptor,oi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Hd(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Fd(e,t,i),i};s.ScbHeaderDrawerItem=class extends g{constructor(){super(...arguments),this.label="",this.href="#"}render(){return c`<slot></slot>`}},s.ScbHeaderDrawerItem.styles=v`:host{display:none !important}`,oi([l({type:String})],s.ScbHeaderDrawerItem.prototype,"label",2),oi([l({type:String})],s.ScbHeaderDrawerItem.prototype,"href",2),oi([l({type:String})],s.ScbHeaderDrawerItem.prototype,"icon",2),s.ScbHeaderDrawerItem=oi([b("scb-header-drawer-item")],s.ScbHeaderDrawerItem);var Nd=Object.defineProperty,Ud=Object.getOwnPropertyDescriptor,$o=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ud(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Nd(e,t,i),i};s.ScbHeaderTab=class extends g{constructor(){super(...arguments),this.label="",this.href="#"}render(){return c`<slot></slot>`}},s.ScbHeaderTab.styles=v`:host{display:none !important}`,$o([l({type:String})],s.ScbHeaderTab.prototype,"label",2),$o([l({type:String})],s.ScbHeaderTab.prototype,"href",2),s.ScbHeaderTab=$o([b("scb-header-tab")],s.ScbHeaderTab);var Vd=Object.defineProperty,qd=Object.getOwnPropertyDescriptor,ai=(o,e,t,r)=>{for(var i=r>1?void 0:r?qd(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Vd(e,t,i),i};s.ScbHeaderUtility=class extends g{constructor(){super(...arguments),this.label="",this.href="#"}render(){return c`<slot></slot>`}},s.ScbHeaderUtility.styles=v`:host{display:none !important}`,ai([l({type:String})],s.ScbHeaderUtility.prototype,"label",2),ai([l({type:String})],s.ScbHeaderUtility.prototype,"href",2),ai([l({type:String})],s.ScbHeaderUtility.prototype,"target",2),s.ScbHeaderUtility=ai([b("scb-header-utility")],s.ScbHeaderUtility);var jd=Object.defineProperty,Wd=Object.getOwnPropertyDescriptor,si=(o,e,t,r)=>{for(var i=r>1?void 0:r?Wd(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&jd(e,t,i),i};s.ScbPrimaryTab=class extends Ut{constructor(){super(...arguments),this.iconOnly=!1,this.inlineIcon=!1,this._onActivate=()=>{var t;const e=((t=this.textContent)==null?void 0:t.trim())??"";this.dispatchEvent(new CustomEvent("activate",{detail:{label:e},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}get icon(){return this._icon}set icon(e){const t=this._icon;t!==e&&(this._icon=e,this.requestUpdate("icon",t),this.updateIconSlot())}firstUpdated(e){super.firstUpdated(e),this.addEventListener("click",this._onActivate),this._icon&&this.updateIconSlot()}updated(){var e;if(super.updated(),this.setAttribute("aria-selected",this.active?"true":"false"),this.iconOnly&&!this.hasAttribute("aria-label")){const t=((e=this.textContent)==null?void 0:e.trim())??"";t&&this.setAttribute("aria-label",t)}}async ensureMdIconLoaded(){const e=globalThis;e.__mdIconLoaded||(await Promise.resolve().then(()=>G),e.__mdIconLoaded=!0)}async updateIconSlot(){const e=this.querySelector('md-icon[slot="icon"]');if(!this._icon){e==null||e.remove();return}if(await this.ensureMdIconLoaded(),e)e.textContent=this._icon;else{const t=document.createElement("md-icon");t.setAttribute("slot","icon"),t.textContent=this._icon,this.appendChild(t)}}},s.ScbPrimaryTab.styles=[...Ut.styles,v`
4054
+ `,it([l({type:String,reflect:!0})],s.ScbStack.prototype,"direction",2),it([l({type:String,reflect:!0})],s.ScbStack.prototype,"gap",2),it([l({type:String,reflect:!0})],s.ScbStack.prototype,"align",2),it([l({type:String,reflect:!0})],s.ScbStack.prototype,"justify",2),it([l({type:Boolean,reflect:!0})],s.ScbStack.prototype,"wrap",2),it([l({type:Boolean,reflect:!0})],s.ScbStack.prototype,"inline",2),s.ScbStack=it([b("scb-stack")],s.ScbStack);var Bd=Object.defineProperty,Md=Object.getOwnPropertyDescriptor,So=(o,e,t,r)=>{for(var i=r>1?void 0:r?Md(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Bd(e,t,i),i};s.ScbHeaderDrawerGroup=class extends g{constructor(){super(...arguments),this.label=""}render(){return c`<slot></slot>`}},s.ScbHeaderDrawerGroup.styles=v`:host{display:none !important}`,So([l({type:String})],s.ScbHeaderDrawerGroup.prototype,"label",2),So([l({type:String})],s.ScbHeaderDrawerGroup.prototype,"icon",2),s.ScbHeaderDrawerGroup=So([b("scb-header-drawer-group")],s.ScbHeaderDrawerGroup);var Fd=Object.defineProperty,Hd=Object.getOwnPropertyDescriptor,oi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Hd(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Fd(e,t,i),i};s.ScbHeaderDrawerItem=class extends g{constructor(){super(...arguments),this.label="",this.href="#"}render(){return c`<slot></slot>`}},s.ScbHeaderDrawerItem.styles=v`:host{display:none !important}`,oi([l({type:String})],s.ScbHeaderDrawerItem.prototype,"label",2),oi([l({type:String})],s.ScbHeaderDrawerItem.prototype,"href",2),oi([l({type:String})],s.ScbHeaderDrawerItem.prototype,"icon",2),s.ScbHeaderDrawerItem=oi([b("scb-header-drawer-item")],s.ScbHeaderDrawerItem);var Nd=Object.defineProperty,Ud=Object.getOwnPropertyDescriptor,$o=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ud(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Nd(e,t,i),i};s.ScbHeaderTab=class extends g{constructor(){super(...arguments),this.label="",this.href="#"}render(){return c`<slot></slot>`}},s.ScbHeaderTab.styles=v`:host{display:none !important}`,$o([l({type:String})],s.ScbHeaderTab.prototype,"label",2),$o([l({type:String})],s.ScbHeaderTab.prototype,"href",2),s.ScbHeaderTab=$o([b("scb-header-tab")],s.ScbHeaderTab);var Vd=Object.defineProperty,qd=Object.getOwnPropertyDescriptor,ai=(o,e,t,r)=>{for(var i=r>1?void 0:r?qd(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Vd(e,t,i),i};s.ScbHeaderUtility=class extends g{constructor(){super(...arguments),this.label="",this.href="#"}render(){return c`<slot></slot>`}},s.ScbHeaderUtility.styles=v`:host{display:none !important}`,ai([l({type:String})],s.ScbHeaderUtility.prototype,"label",2),ai([l({type:String})],s.ScbHeaderUtility.prototype,"href",2),ai([l({type:String})],s.ScbHeaderUtility.prototype,"target",2),s.ScbHeaderUtility=ai([b("scb-header-utility")],s.ScbHeaderUtility);var jd=Object.defineProperty,Wd=Object.getOwnPropertyDescriptor,si=(o,e,t,r)=>{for(var i=r>1?void 0:r?Wd(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&jd(e,t,i),i};s.ScbPrimaryTab=class extends Ut{constructor(){super(...arguments),this.iconOnly=!1,this.inlineIcon=!1,this._onActivate=()=>{var t;const e=((t=this.textContent)==null?void 0:t.trim())??"";this.dispatchEvent(new CustomEvent("activate",{detail:{label:e},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}get icon(){return this._icon}set icon(e){const t=this._icon;t!==e&&(this._icon=e,this.requestUpdate("icon",t),this.updateIconSlot())}firstUpdated(e){super.firstUpdated(e),this.addEventListener("click",this._onActivate),this._icon&&this.updateIconSlot()}updated(){var e;if(super.updated(),this.setAttribute("aria-selected",this.active?"true":"false"),this.iconOnly&&!this.hasAttribute("aria-label")){const t=((e=this.textContent)==null?void 0:e.trim())??"";t&&this.setAttribute("aria-label",t)}}async ensureMdIconLoaded(){const e=globalThis;e.__mdIconLoaded||(await Promise.resolve().then(()=>X),e.__mdIconLoaded=!0)}async updateIconSlot(){const e=this.querySelector('md-icon[slot="icon"]');if(!this._icon){e==null||e.remove();return}if(await this.ensureMdIconLoaded(),e)e.textContent=this._icon;else{const t=document.createElement("md-icon");t.setAttribute("slot","icon"),t.textContent=this._icon,this.appendChild(t)}}},s.ScbPrimaryTab.styles=[...Ut.styles,v`
4055
4055
  /* Icon-only: dölj textslot */
4056
4056
  :host([icon-only]) slot:not([name='icon']) {
4057
4057
  display: none;
4058
4058
  }
4059
- `],si([l({type:String})],s.ScbPrimaryTab.prototype,"icon",1),si([l({type:Boolean,reflect:!0,attribute:"icon-only"})],s.ScbPrimaryTab.prototype,"iconOnly",2),si([l({type:Boolean,reflect:!0,attribute:"inline-icon"})],s.ScbPrimaryTab.prototype,"inlineIcon",2),s.ScbPrimaryTab=si([b("scb-primary-tab")],s.ScbPrimaryTab);var Gd=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,ko=(o,e,t,r)=>{for(var i=r>1?void 0:r?Kd(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Gd(e,t,i),i};s.ScbSecondaryTab=class extends Vt{constructor(){super(...arguments),this.iconOnly=!1,this._onActivate=()=>{var t;const e=((t=this.textContent)==null?void 0:t.trim())??"";this.dispatchEvent(new CustomEvent("activate",{detail:{label:e},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}get icon(){return this._icon}set icon(e){const t=this._icon;t!==e&&(this._icon=e,this.requestUpdate("icon",t),this.updateIconSlot())}firstUpdated(e){var t;if(super.firstUpdated(e),this.iconOnly&&!this.hasAttribute("aria-label")){const r=((t=this.textContent)==null?void 0:t.trim())??"";r&&this.setAttribute("aria-label",r)}this.addEventListener("click",this._onActivate),this._icon&&this.updateIconSlot()}updated(){var e;if(super.updated(),this.iconOnly&&!this.hasAttribute("aria-label")){const t=((e=this.textContent)==null?void 0:e.trim())??"";t&&this.setAttribute("aria-label",t)}}async ensureMdIconLoaded(){const e=globalThis;e.__mdIconLoaded||(await Promise.resolve().then(()=>G),e.__mdIconLoaded=!0)}async updateIconSlot(){const e=this.querySelector('md-icon[slot="icon"]');if(!this._icon){e==null||e.remove();return}if(await this.ensureMdIconLoaded(),e)e.textContent=this._icon;else{const t=document.createElement("md-icon");t.setAttribute("slot","icon"),t.textContent=this._icon,this.appendChild(t)}}},s.ScbSecondaryTab.styles=[...Vt.styles,v`
4059
+ `],si([l({type:String})],s.ScbPrimaryTab.prototype,"icon",1),si([l({type:Boolean,reflect:!0,attribute:"icon-only"})],s.ScbPrimaryTab.prototype,"iconOnly",2),si([l({type:Boolean,reflect:!0,attribute:"inline-icon"})],s.ScbPrimaryTab.prototype,"inlineIcon",2),s.ScbPrimaryTab=si([b("scb-primary-tab")],s.ScbPrimaryTab);var Gd=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,ko=(o,e,t,r)=>{for(var i=r>1?void 0:r?Kd(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Gd(e,t,i),i};s.ScbSecondaryTab=class extends Vt{constructor(){super(...arguments),this.iconOnly=!1,this._onActivate=()=>{var t;const e=((t=this.textContent)==null?void 0:t.trim())??"";this.dispatchEvent(new CustomEvent("activate",{detail:{label:e},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}get icon(){return this._icon}set icon(e){const t=this._icon;t!==e&&(this._icon=e,this.requestUpdate("icon",t),this.updateIconSlot())}firstUpdated(e){var t;if(super.firstUpdated(e),this.iconOnly&&!this.hasAttribute("aria-label")){const r=((t=this.textContent)==null?void 0:t.trim())??"";r&&this.setAttribute("aria-label",r)}this.addEventListener("click",this._onActivate),this._icon&&this.updateIconSlot()}updated(){var e;if(super.updated(),this.iconOnly&&!this.hasAttribute("aria-label")){const t=((e=this.textContent)==null?void 0:e.trim())??"";t&&this.setAttribute("aria-label",t)}}async ensureMdIconLoaded(){const e=globalThis;e.__mdIconLoaded||(await Promise.resolve().then(()=>X),e.__mdIconLoaded=!0)}async updateIconSlot(){const e=this.querySelector('md-icon[slot="icon"]');if(!this._icon){e==null||e.remove();return}if(await this.ensureMdIconLoaded(),e)e.textContent=this._icon;else{const t=document.createElement("md-icon");t.setAttribute("slot","icon"),t.textContent=this._icon,this.appendChild(t)}}},s.ScbSecondaryTab.styles=[...Vt.styles,v`
4060
4060
  /* Icon-only: göm all text utom slot="icon" */
4061
4061
  :host([icon-only]) slot:not([name='icon']) {
4062
4062
  display: none;
@@ -4390,7 +4390,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
4390
4390
  line-height: var(--md-sys-typescale-display-medium-line-height);
4391
4391
  letter-spacing: var(--md-sys-typescale-display-medium-tracking);
4392
4392
  }
4393
- `,ot([l({type:Number})],s.ScbKeyFigureCard.prototype,"keyfigure",2),ot([l({type:String,attribute:"sub-label"})],s.ScbKeyFigureCard.prototype,"subLabel",2),ot([l({type:String,attribute:"supporting-text"})],s.ScbKeyFigureCard.prototype,"supportingText",2),ot([l({type:String,attribute:"card-href"})],s.ScbKeyFigureCard.prototype,"cardHref",2),ot([l({type:String})],s.ScbKeyFigureCard.prototype,"icon",2),ot([l({type:String})],s.ScbKeyFigureCard.prototype,"size",2),s.ScbKeyFigureCard=ot([b("scb-keyfigure-card")],s.ScbKeyFigureCard);var th=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,Be=(o,e,t,r)=>{for(var i=r>1?void 0:r?rh(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&th(e,t,i),i};s.ScbMenuItem=class extends g{constructor(){super(...arguments),this.label="",this.hasSubMenu=!1,this.openLeft=!1,this.divider=!1,this.leadingIcon="",this.trailingIcon="",this.itemHref="",this.handleClick=e=>{this.itemHref?this._navigateToHref(e):this._toggleSubMenu()},this._onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.handleClick(e))}}async firstUpdated(){s.ScbMenuItem.__iconLoaded||(await Promise.resolve().then(()=>G),s.ScbMenuItem.__iconLoaded=!0),s.ScbMenuItem.__rippleLoaded||(await Promise.resolve().then(()=>nr),s.ScbMenuItem.__rippleLoaded=!0)}updated(){const e=this.nextElementSibling;this.hasSubMenu=!!(e&&e.tagName==="SCB-SUB-MENU"),this.openLeft=!!(this.hasSubMenu&&e&&e.hasAttribute("open-left"))}render(){return c`
4393
+ `,ot([l({type:Number})],s.ScbKeyFigureCard.prototype,"keyfigure",2),ot([l({type:String,attribute:"sub-label"})],s.ScbKeyFigureCard.prototype,"subLabel",2),ot([l({type:String,attribute:"supporting-text"})],s.ScbKeyFigureCard.prototype,"supportingText",2),ot([l({type:String,attribute:"card-href"})],s.ScbKeyFigureCard.prototype,"cardHref",2),ot([l({type:String})],s.ScbKeyFigureCard.prototype,"icon",2),ot([l({type:String})],s.ScbKeyFigureCard.prototype,"size",2),s.ScbKeyFigureCard=ot([b("scb-keyfigure-card")],s.ScbKeyFigureCard);var th=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,Be=(o,e,t,r)=>{for(var i=r>1?void 0:r?rh(e,t):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&th(e,t,i),i};s.ScbMenuItem=class extends g{constructor(){super(...arguments),this.label="",this.hasSubMenu=!1,this.openLeft=!1,this.divider=!1,this.leadingIcon="",this.trailingIcon="",this.itemHref="",this.handleClick=e=>{this.itemHref?this._navigateToHref(e):this._toggleSubMenu()},this._onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.handleClick(e))}}async firstUpdated(){s.ScbMenuItem.__iconLoaded||(await Promise.resolve().then(()=>X),s.ScbMenuItem.__iconLoaded=!0),s.ScbMenuItem.__rippleLoaded||(await Promise.resolve().then(()=>nr),s.ScbMenuItem.__rippleLoaded=!0)}updated(){const e=this.nextElementSibling;this.hasSubMenu=!!(e&&e.tagName==="SCB-SUB-MENU"),this.openLeft=!!(this.hasSubMenu&&e&&e.hasAttribute("open-left"))}render(){return c`
4394
4394
  ${this.divider?c`<scb-divider></scb-divider>`:""}
4395
4395
  <li @click=${this.handleClick} @keydown=${this._onKeyDown} role="menuitem" tabindex="0">
4396
4396
  ${this.itemHref?c`<a href="${this.itemHref}" tabindex="-1">
@@ -5001,7 +5001,7 @@ var ScbWcTest=function(s){"use strict";var fs;function d(o,e,t,r){var i=argument
5001
5001
  />
5002
5002
  ${t}
5003
5003
  </div>
5004
- `}firstUpdated(e){var r;super.firstUpdated(e),this._initialValue=this.value,(this.leadingIcon||this.error)&&this.__ensureMdIconLoaded();const t=(r=this.shadowRoot)==null?void 0:r.querySelector(".scb-textfield");t&&(t.addEventListener("input",i=>{const a=t;if(this.value=a.value,this.pattern){const n=new RegExp(this.pattern);this.error=!n.test(this.value)}this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("onValueChanged",{detail:{value:this.value},bubbles:!0,composed:!0}))}),t.addEventListener("change",i=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),t.addEventListener("select",i=>{this.dispatchEvent(new Event("select",{bubbles:!0,composed:!0}))}))}updated(e){super.updated(e),(e.has("leadingIcon")||e.has("error"))&&(this.leadingIcon&&this.leadingIcon.trim()||this.error)&&this.__ensureMdIconLoaded(),this.toggleAttribute("aria-disabled",this.disabled)}connectedCallback(){super.connectedCallback(),this._inputId=this.id||`scb-textfield-${Math.random().toString(36).substr(2,9)}`,this._formSubmitHandler=e=>{this.reportValidity()||(e.preventDefault(),e.stopPropagation())},this._form=this.closest("form"),this._form&&(this._form.addEventListener("submit",this._formSubmitHandler,!0),this._formResetHandler=()=>{var t;this.value=this._initialValue;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value=this._initialValue),this.error=!1},this._form.addEventListener("reset",this._formResetHandler,!0))}disconnectedCallback(){super.disconnectedCallback(),this._form&&this._formSubmitHandler&&(this._form.removeEventListener("submit",this._formSubmitHandler,!0),this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0))}reportValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");if(e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){this.required&&!e.value?e.setCustomValidity(this.errorText||"Ogiltig inmatning."):e.setCustomValidity("");const r=e.reportValidity();return this.error=!r,r||(this.errorText=this.errorText||e.validationMessage||"Ogiltig inmatning."),r}return!0}async __ensureMdIconLoaded(){window.__scb_md_icon_loaded||(await Promise.resolve().then(()=>G),window.__scb_md_icon_loaded=!0)}},s.ScbTextField2.styles=[v`
5004
+ `}firstUpdated(e){var r;super.firstUpdated(e),this._initialValue=this.value,(this.leadingIcon||this.error)&&this.__ensureMdIconLoaded();const t=(r=this.shadowRoot)==null?void 0:r.querySelector(".scb-textfield");t&&(t.addEventListener("input",i=>{const a=t;if(this.value=a.value,this.pattern){const n=new RegExp(this.pattern);this.error=!n.test(this.value)}this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("onValueChanged",{detail:{value:this.value},bubbles:!0,composed:!0}))}),t.addEventListener("change",i=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),t.addEventListener("select",i=>{this.dispatchEvent(new Event("select",{bubbles:!0,composed:!0}))}))}updated(e){super.updated(e),(e.has("leadingIcon")||e.has("error"))&&(this.leadingIcon&&this.leadingIcon.trim()||this.error)&&this.__ensureMdIconLoaded(),this.toggleAttribute("aria-disabled",this.disabled)}connectedCallback(){super.connectedCallback(),this._inputId=this.id||`scb-textfield-${Math.random().toString(36).substr(2,9)}`,this._formSubmitHandler=e=>{this.reportValidity()||(e.preventDefault(),e.stopPropagation())},this._form=this.closest("form"),this._form&&(this._form.addEventListener("submit",this._formSubmitHandler,!0),this._formResetHandler=()=>{var t;this.value=this._initialValue;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value=this._initialValue),this.error=!1},this._form.addEventListener("reset",this._formResetHandler,!0))}disconnectedCallback(){super.disconnectedCallback(),this._form&&this._formSubmitHandler&&(this._form.removeEventListener("submit",this._formSubmitHandler,!0),this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0))}reportValidity(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");if(e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){this.required&&!e.value?e.setCustomValidity(this.errorText||"Ogiltig inmatning."):e.setCustomValidity("");const r=e.reportValidity();return this.error=!r,r||(this.errorText=this.errorText||e.validationMessage||"Ogiltig inmatning."),r}return!0}async __ensureMdIconLoaded(){window.__scb_md_icon_loaded||(await Promise.resolve().then(()=>X),window.__scb_md_icon_loaded=!0)}},s.ScbTextField2.styles=[v`
5005
5005
  :host {
5006
5006
  display: flex;
5007
5007
  flex-direction: column;