scb-wc-test 0.1.115 → 0.1.116

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.
@@ -247,11 +247,11 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
247
247
  * @license
248
248
  * Copyright 2023 Google LLC
249
249
  * SPDX-License-Identifier: Apache-2.0
250
- */const yt=Symbol("createValidator"),_t=Symbol("getValidityAnchor"),Vo=Symbol("privateValidator"),Fe=Symbol("privateSyncValidity"),sr=Symbol("privateCustomValidationMessage");function mi(o){var e;class t extends o{constructor(){super(...arguments),this[e]=""}get validity(){return this[Fe](),this[K].validity}get validationMessage(){return this[Fe](),this[K].validationMessage}get willValidate(){return this[Fe](),this[K].willValidate}checkValidity(){return this[Fe](),this[K].checkValidity()}reportValidity(){return this[Fe](),this[K].reportValidity()}setCustomValidity(r){this[sr]=r,this[Fe]()}requestUpdate(r,s,l){super.requestUpdate(r,s,l),this[Fe]()}firstUpdated(r){super.firstUpdated(r),this[Fe]()}[(e=sr,Fe)](){this[Vo]||(this[Vo]=this[yt]());const{validity:r,validationMessage:s}=this[Vo].getValidity(),l=!!this[sr],h=this[sr]||s;this[K].setValidity({...r,customError:l},h,this[_t]()??void 0)}[yt](){throw new Error("Implement [createValidator]")}[_t](){throw new Error("Implement [getValidityAnchor]")}}return t}/**
250
+ */const yt=Symbol("createValidator"),_t=Symbol("getValidityAnchor"),Vo=Symbol("privateValidator"),He=Symbol("privateSyncValidity"),sr=Symbol("privateCustomValidationMessage");function mi(o){var e;class t extends o{constructor(){super(...arguments),this[e]=""}get validity(){return this[He](),this[K].validity}get validationMessage(){return this[He](),this[K].validationMessage}get willValidate(){return this[He](),this[K].willValidate}checkValidity(){return this[He](),this[K].checkValidity()}reportValidity(){return this[He](),this[K].reportValidity()}setCustomValidity(r){this[sr]=r,this[He]()}requestUpdate(r,s,l){super.requestUpdate(r,s,l),this[He]()}firstUpdated(r){super.firstUpdated(r),this[He]()}[(e=sr,He)](){this[Vo]||(this[Vo]=this[yt]());const{validity:r,validationMessage:s}=this[Vo].getValidity(),l=!!this[sr],h=this[sr]||s;this[K].setValidity({...r,customError:l},h,this[_t]()??void 0)}[yt](){throw new Error("Implement [createValidator]")}[_t](){throw new Error("Implement [getValidityAnchor]")}}return t}/**
251
251
  * @license
252
252
  * Copyright 2023 Google LLC
253
253
  * SPDX-License-Identifier: Apache-2.0
254
- */const He=Symbol("getFormValue"),fi=Symbol("getFormState");function qt(o){class e extends o{get form(){return this[K].form}get labels(){return this[K].labels}get name(){return this.getAttribute("name")??""}set name(i){this.setAttribute("name",i)}get disabled(){return this.hasAttribute("disabled")}set disabled(i){this.toggleAttribute("disabled",i)}attributeChangedCallback(i,r,s){if(i==="name"||i==="disabled"){const l=i==="disabled"?r!==null:r;this.requestUpdate(i,l);return}super.attributeChangedCallback(i,r,s)}requestUpdate(i,r,s){super.requestUpdate(i,r,s),this[K].setFormValue(this[He](),this[fi]())}[He](){throw new Error("Implement [getFormValue]")}[fi](){return this[He]()}formDisabledCallback(i){this.disabled=i}}return e.formAssociated=!0,d([n({noAccessor:!0})],e.prototype,"name",null),d([n({type:Boolean,noAccessor:!0})],e.prototype,"disabled",null),e}/**
254
+ */const Ne=Symbol("getFormValue"),fi=Symbol("getFormState");function qt(o){class e extends o{get form(){return this[K].form}get labels(){return this[K].labels}get name(){return this.getAttribute("name")??""}set name(i){this.setAttribute("name",i)}get disabled(){return this.hasAttribute("disabled")}set disabled(i){this.toggleAttribute("disabled",i)}attributeChangedCallback(i,r,s){if(i==="name"||i==="disabled"){const l=i==="disabled"?r!==null:r;this.requestUpdate(i,l);return}super.attributeChangedCallback(i,r,s)}requestUpdate(i,r,s){super.requestUpdate(i,r,s),this[K].setFormValue(this[Ne](),this[fi]())}[Ne](){throw new Error("Implement [getFormValue]")}[fi](){return this[Ne]()}formDisabledCallback(i){this.disabled=i}}return e.formAssociated=!0,d([n({noAccessor:!0})],e.prototype,"name",null),d([n({type:Boolean,noAccessor:!0})],e.prototype,"disabled",null),e}/**
255
255
  * @license
256
256
  * Copyright 2023 Google LLC
257
257
  * SPDX-License-Identifier: Apache-2.0
@@ -287,7 +287,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=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){st(this,e)}[He](){return!this.checked||this.indeterminate?null:this.value}[fi](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[yt](){return new Ps(()=>this)}[_t](){return this.input}}re(Se),Se.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean})],Se.prototype,"checked",void 0),d([n({type:Boolean})],Se.prototype,"indeterminate",void 0),d([n({type:Boolean})],Se.prototype,"required",void 0),d([n()],Se.prototype,"value",void 0),d([w()],Se.prototype,"prevChecked",void 0),d([w()],Se.prototype,"prevDisabled",void 0),d([w()],Se.prototype,"prevIndeterminate",void 0),d([k("input")],Se.prototype,"input",void 0);/**
290
+ `}handleInput(e){const t=e.target;this.checked=t.checked,this.indeterminate=t.indeterminate}handleChange(e){st(this,e)}[Ne](){return!this.checked||this.indeterminate?null:this.value}[fi](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[yt](){return new Ps(()=>this)}[_t](){return this.input}}re(Se),Se.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean})],Se.prototype,"checked",void 0),d([n({type:Boolean})],Se.prototype,"indeterminate",void 0),d([n({type:Boolean})],Se.prototype,"required",void 0),d([n()],Se.prototype,"value",void 0),d([w()],Se.prototype,"prevChecked",void 0),d([w()],Se.prototype,"prevDisabled",void 0),d([w()],Se.prototype,"prevIndeterminate",void 0),d([k("input")],Se.prototype,"input",void 0);/**
291
291
  * @license
292
292
  * Copyright 2024 Google LLC
293
293
  * SPDX-License-Identifier: Apache-2.0
@@ -300,7 +300,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
300
300
  * @license
301
301
  * Copyright 2023 Google LLC
302
302
  * SPDX-License-Identifier: Apache-2.0
303
- */class Ne extends y{constructor(){super(...arguments),this.disabled=!1,this.alwaysFocusable=!1,this.label="",this.hasIcon=!1}get rippleDisabled(){return this.disabled}focus(e){this.disabled&&!this.alwaysFocusable||super.focus(e)}render(){return c`
303
+ */class Ve extends y{constructor(){super(...arguments),this.disabled=!1,this.alwaysFocusable=!1,this.label="",this.hasIcon=!1}get rippleDisabled(){return this.disabled}focus(e){this.disabled&&!this.alwaysFocusable||super.focus(e)}render(){return c`
304
304
  <div class="container ${L(this.getContainerClasses())}">
305
305
  ${this.renderContainerContent()}
306
306
  </div>
@@ -317,11 +317,11 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=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}}re(Ne),Ne.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean,reflect:!0})],Ne.prototype,"disabled",void 0),d([n({type:Boolean,attribute:"always-focusable"})],Ne.prototype,"alwaysFocusable",void 0),d([n()],Ne.prototype,"label",void 0),d([n({type:Boolean,reflect:!0,attribute:"has-icon"})],Ne.prototype,"hasIcon",void 0);/**
320
+ `}handleIconChange(e){const t=e.target;this.hasIcon=t.assignedElements({flatten:!0}).length>0}}re(Ve),Ve.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean,reflect:!0})],Ve.prototype,"disabled",void 0),d([n({type:Boolean,attribute:"always-focusable"})],Ve.prototype,"alwaysFocusable",void 0),d([n()],Ve.prototype,"label",void 0),d([n({type:Boolean,reflect:!0,attribute:"has-icon"})],Ve.prototype,"hasIcon",void 0);/**
321
321
  * @license
322
322
  * Copyright 2023 Google LLC
323
323
  * SPDX-License-Identifier: Apache-2.0
324
- */class gi extends Ne{constructor(){super(...arguments),this.elevated=!1,this.href="",this.target=""}get primaryId(){return this.href?"link":"button"}get rippleDisabled(){return!this.href&&this.disabled}getContainerClasses(){return{...super.getContainerClasses(),disabled:!this.href&&this.disabled,elevated:this.elevated,link:!!this.href}}renderPrimaryAction(e){const{ariaLabel:t}=this;return this.href?c`
324
+ */class gi extends Ve{constructor(){super(...arguments),this.elevated=!1,this.href="",this.target=""}get primaryId(){return this.href?"link":"button"}get rippleDisabled(){return!this.href&&this.disabled}getContainerClasses(){return{...super.getContainerClasses(),disabled:!this.href&&this.disabled,elevated:this.elevated,link:!!this.href}}renderPrimaryAction(e){const{ariaLabel:t}=this;return this.href?c`
325
325
  <a
326
326
  class="primary action"
327
327
  id="link"
@@ -362,7 +362,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
362
362
  * @license
363
363
  * Copyright 2023 Google LLC
364
364
  * SPDX-License-Identifier: Apache-2.0
365
- */class Os extends y{get chips(){return this.childElements.filter(e=>e instanceof Ne)}constructor(){super(),this.internals=this.attachInternals(),this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar"}render(){return c`<slot @slotchange=${this.updateTabIndices}></slot>`}handleKeyDown(e){const t=e.key==="ArrowLeft",i=e.key==="ArrowRight",r=e.key==="Home",s=e.key==="End";if(!t&&!i&&!r&&!s)return;const{chips:l}=this;if(l.length<2)return;if(e.preventDefault(),r||s){const _=r?0:l.length-1;l[_].focus({trailing:s}),this.updateTabIndices();return}const p=getComputedStyle(this).direction==="rtl"?t:i,v=l.find(_=>_.matches(":focus-within"));if(!v){(p?l[0]:l[l.length-1]).focus({trailing:!p}),this.updateTabIndices();return}const f=l.indexOf(v);let b=p?f+1:f-1;for(;b!==f;){b>=l.length?b=0:b<0&&(b=l.length-1);const _=l[b];if(_.disabled&&!_.alwaysFocusable){p?b++:b--;continue}_.focus({trailing:!p}),this.updateTabIndices();break}}updateTabIndices(){const{chips:e}=this;let t;for(const i of e){const r=i.alwaysFocusable||!i.disabled;if(i.matches(":focus-within")&&r){t=i;continue}r&&!t&&(t=i),i.tabIndex=-1}t&&(t.tabIndex=0)}}d([X()],Os.prototype,"childElements",void 0);/**
365
+ */class Os extends y{get chips(){return this.childElements.filter(e=>e instanceof Ve)}constructor(){super(),this.internals=this.attachInternals(),this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar"}render(){return c`<slot @slotchange=${this.updateTabIndices}></slot>`}handleKeyDown(e){const t=e.key==="ArrowLeft",i=e.key==="ArrowRight",r=e.key==="Home",s=e.key==="End";if(!t&&!i&&!r&&!s)return;const{chips:l}=this;if(l.length<2)return;if(e.preventDefault(),r||s){const _=r?0:l.length-1;l[_].focus({trailing:s}),this.updateTabIndices();return}const p=getComputedStyle(this).direction==="rtl"?t:i,v=l.find(_=>_.matches(":focus-within"));if(!v){(p?l[0]:l[l.length-1]).focus({trailing:!p}),this.updateTabIndices();return}const f=l.indexOf(v);let b=p?f+1:f-1;for(;b!==f;){b>=l.length?b=0:b<0&&(b=l.length-1);const _=l[b];if(_.disabled&&!_.alwaysFocusable){p?b++:b--;continue}_.focus({trailing:!p}),this.updateTabIndices();break}}updateTabIndices(){const{chips:e}=this;let t;for(const i of e){const r=i.alwaysFocusable||!i.disabled;if(i.matches(":focus-within")&&r){t=i;continue}r&&!t&&(t=i),i.tabIndex=-1}t&&(t.tabIndex=0)}}d([X()],Os.prototype,"childElements",void 0);/**
366
366
  * @license
367
367
  * Copyright 2024 Google LLC
368
368
  * SPDX-License-Identifier: Apache-2.0
@@ -375,7 +375,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
375
375
  * @license
376
376
  * Copyright 2023 Google LLC
377
377
  * SPDX-License-Identifier: Apache-2.0
378
- */const hr="aria-label-remove";class Ls extends Ne{get ariaLabelRemove(){if(this.hasAttribute(hr))return this.getAttribute(hr);const{ariaLabel:e}=this;return`Remove ${e||this.label}`}set ariaLabelRemove(e){const t=this.ariaLabelRemove;e!==t&&(e===null?this.removeAttribute(hr):this.setAttribute(hr,e),this.requestUpdate())}constructor(){super(),this.handleTrailingActionFocus=this.handleTrailingActionFocus.bind(this),this.addEventListener("keydown",this.handleKeyDown.bind(this))}focus(e){if((this.alwaysFocusable||!this.disabled)&&(e!=null&&e.trailing)&&this.trailingAction){this.trailingAction.focus(e);return}super.focus(e)}renderContainerContent(){return c`
378
+ */const hr="aria-label-remove";class Ls extends Ve{get ariaLabelRemove(){if(this.hasAttribute(hr))return this.getAttribute(hr);const{ariaLabel:e}=this;return`Remove ${e||this.label}`}set ariaLabelRemove(e){const t=this.ariaLabelRemove;e!==t&&(e===null?this.removeAttribute(hr):this.setAttribute(hr,e),this.requestUpdate())}constructor(){super(),this.handleTrailingActionFocus=this.handleTrailingActionFocus.bind(this),this.addEventListener("keydown",this.handleKeyDown.bind(this))}focus(e){if((this.alwaysFocusable||!this.disabled)&&(e!=null&&e.trailing)&&this.trailingAction){this.trailingAction.focus(e);return}super.focus(e)}renderContainerContent(){return c`
379
379
  ${super.renderContainerContent()}
380
380
  ${this.renderTrailingAction(this.handleTrailingActionFocus)}
381
381
  `}handleKeyDown(e){var v,f;const t=e.key==="ArrowLeft",i=e.key==="ArrowRight";if(!t&&!i||!this.primaryAction||!this.trailingAction)return;const s=getComputedStyle(this).direction==="rtl"?t:i,l=(v=this.primaryAction)==null?void 0:v.matches(":focus-within"),h=(f=this.trailingAction)==null?void 0:f.matches(":focus-within");if(s&&h||!s&&l)return;e.preventDefault(),e.stopPropagation(),(s?this.trailingAction:this.primaryAction).focus()}handleTrailingActionFocus(){const{primaryAction:e,trailingAction:t}=this;!e||!t||(e.tabIndex=-1,t.addEventListener("focusout",()=>{e.tabIndex=0},{once:!0}))}}/**
@@ -708,7 +708,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
708
708
  * @license
709
709
  * Copyright 2022 Google LLC
710
710
  * SPDX-License-Identifier: Apache-2.0
711
- */let vr=class extends Wc{};vr.styles=[jc],vr=d([g("md-icon")],vr);const Pe=Object.freeze(Object.defineProperty({__proto__:null,get MdIcon(){return vr}},Symbol.toStringTag,{value:"Module"}));/**
711
+ */let vr=class extends Wc{};vr.styles=[jc],vr=d([g("md-icon")],vr);const Oe=Object.freeze(Object.defineProperty({__proto__:null,get MdIcon(){return vr}},Symbol.toStringTag,{value:"Module"}));/**
712
712
  * @license
713
713
  * Copyright 2024 Google LLC
714
714
  * SPDX-License-Identifier: Apache-2.0
@@ -794,7 +794,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
794
794
  * @license
795
795
  * Copyright 2023 Google LLC
796
796
  * SPDX-License-Identifier: Apache-2.0
797
- */function Us(o,e=Oe){const t=_r(o,e);return t&&(t.tabIndex=0,t.focus()),t}function Ws(o,e=Oe){const t=js(o,e);return t&&(t.tabIndex=0,t.focus()),t}function od(o,e=Oe){const t=Wt(o,e);return t&&(t.item.tabIndex=-1),t}function Wt(o,e=Oe){for(let t=0;t<o.length;t++){const i=o[t];if(i.tabIndex===0&&e(i))return{item:i,index:t}}return null}function _r(o,e=Oe){for(const t of o)if(e(t))return t;return null}function js(o,e=Oe){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return i}return null}function ad(o,e,t=Oe,i=!0){for(let r=1;r<o.length;r++){const s=(r+e)%o.length;if(s<e&&!i)return null;const l=o[s];if(t(l))return l}return o[e]?o[e]:null}function sd(o,e,t=Oe,i=!0){for(let r=1;r<o.length;r++){const s=(e-r+o.length)%o.length;if(s>e&&!i)return null;const l=o[s];if(t(l))return l}return o[e]?o[e]:null}function Ks(o,e,t=Oe,i=!0){if(e){const r=ad(o,e.index,t,i);return r&&(r.tabIndex=0,r.focus()),r}else return Us(o,t)}function Gs(o,e,t=Oe,i=!0){if(e){const r=sd(o,e.index,t,i);return r&&(r.tabIndex=0,r.focus()),r}else return Ws(o,t)}function xr(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function Ys(){return new Event("request-activation",{bubbles:!0,composed:!0})}function Oe(o){return!o.disabled}/**
797
+ */function Us(o,e=Le){const t=_r(o,e);return t&&(t.tabIndex=0,t.focus()),t}function Ws(o,e=Le){const t=js(o,e);return t&&(t.tabIndex=0,t.focus()),t}function od(o,e=Le){const t=Wt(o,e);return t&&(t.item.tabIndex=-1),t}function Wt(o,e=Le){for(let t=0;t<o.length;t++){const i=o[t];if(i.tabIndex===0&&e(i))return{item:i,index:t}}return null}function _r(o,e=Le){for(const t of o)if(e(t))return t;return null}function js(o,e=Le){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return i}return null}function ad(o,e,t=Le,i=!0){for(let r=1;r<o.length;r++){const s=(r+e)%o.length;if(s<e&&!i)return null;const l=o[s];if(t(l))return l}return o[e]?o[e]:null}function sd(o,e,t=Le,i=!0){for(let r=1;r<o.length;r++){const s=(e-r+o.length)%o.length;if(s>e&&!i)return null;const l=o[s];if(t(l))return l}return o[e]?o[e]:null}function Ks(o,e,t=Le,i=!0){if(e){const r=ad(o,e.index,t,i);return r&&(r.tabIndex=0,r.focus()),r}else return Us(o,t)}function Gs(o,e,t=Le,i=!0){if(e){const r=sd(o,e.index,t,i);return r&&(r.tabIndex=0,r.focus()),r}else return Ws(o,t)}function xr(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function Ys(){return new Event("request-activation",{bubbles:!0,composed:!0})}function Le(o){return!o.disabled}/**
798
798
  * @license
799
799
  * Copyright 2023 Google LLC
800
800
  * SPDX-License-Identifier: Apache-2.0
@@ -849,7 +849,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
849
849
  * @license
850
850
  * Copyright 2022 Google LLC
851
851
  * SPDX-License-Identifier: Apache-2.0
852
- */class Ve extends y{constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}get isDisabled(){return this.disabled&&this.type!=="link"}willUpdate(e){this.href&&(this.type="link"),super.willUpdate(e)}render(){return this.renderListItem(c`
852
+ */class qe extends y{constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}get isDisabled(){return this.disabled&&this.type!=="link"}willUpdate(e){this.href&&(this.type="link"),super.willUpdate(e)}render(){return this.renderListItem(c`
853
853
  <md-item>
854
854
  <div slot="container">
855
855
  ${this.renderRipple()} ${this.renderFocusRing()}
@@ -888,7 +888,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
888
888
  <slot
889
889
  name="trailing-supporting-text"
890
890
  slot="trailing-supporting-text"></slot>
891
- `}onFocus(){this.tabIndex===-1&&this.dispatchEvent(Ys())}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}re(Ve),Ve.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean,reflect:!0})],Ve.prototype,"disabled",void 0),d([n({reflect:!0})],Ve.prototype,"type",void 0),d([n({type:Boolean,attribute:"md-list-item",reflect:!0})],Ve.prototype,"isListItem",void 0),d([n()],Ve.prototype,"href",void 0),d([n()],Ve.prototype,"target",void 0),d([k(".list-item")],Ve.prototype,"listItemRoot",void 0);/**
891
+ `}onFocus(){this.tabIndex===-1&&this.dispatchEvent(Ys())}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}re(qe),qe.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean,reflect:!0})],qe.prototype,"disabled",void 0),d([n({reflect:!0})],qe.prototype,"type",void 0),d([n({type:Boolean,attribute:"md-list-item",reflect:!0})],qe.prototype,"isListItem",void 0),d([n()],qe.prototype,"href",void 0),d([n()],qe.prototype,"target",void 0),d([k(".list-item")],qe.prototype,"listItemRoot",void 0);/**
892
892
  * @license
893
893
  * Copyright 2024 Google LLC
894
894
  * SPDX-License-Identifier: Apache-2.0
@@ -897,7 +897,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
897
897
  * @license
898
898
  * Copyright 2022 Google LLC
899
899
  * SPDX-License-Identifier: Apache-2.0
900
- */let ia=class extends Ve{};ia.styles=[pd],ia=d([g("md-list-item")],ia);/**
900
+ */let ia=class extends qe{};ia.styles=[pd],ia=d([g("md-list-item")],ia);/**
901
901
  * @license
902
902
  * Copyright 2018 Google LLC
903
903
  * SPDX-License-Identifier: BSD-3-Clause
@@ -909,7 +909,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
909
909
  * @license
910
910
  * Copyright 2023 Google LLC
911
911
  * SPDX-License-Identifier: Apache-2.0
912
- */const Sr={END_START:"end-start",START_START:"start-start",START_END:"start-end"};class fd{constructor(e,t){this.host=e,this.getProperties=t,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:t,anchorCorner:i,surfaceCorner:r,positioning:s,xOffset:l,yOffset:h,repositionStrategy:p}=this.getProperties(),v=i.toLowerCase().trim(),f=r.toLowerCase().trim();if(!e||!t)return;const b=window.innerWidth,_=window.innerHeight,x=document.createElement("div");x.style.opacity="0",x.style.position="fixed",x.style.display="block",x.style.inset="0",document.body.appendChild(x);const S=x.getBoundingClientRect();x.remove();const C=window.innerHeight-S.bottom,T=window.innerWidth-S.right;this.surfaceStylesInternal={display:"block",opacity:"0"},this.host.requestUpdate(),await this.host.updateComplete,e.popover&&e.isConnected&&e.showPopover();const A=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),z=t.getSurfacePositionClientRect?t.getSurfacePositionClientRect():t.getBoundingClientRect(),[ee,q]=f.split("-"),[H,et]=v.split("-"),tt=getComputedStyle(e).direction==="ltr";let{blockInset:xe,blockOutOfBoundsCorrection:pe,surfaceBlockProperty:Ht}=this.calculateBlock({surfaceRect:A,anchorRect:z,anchorBlock:H,surfaceBlock:ee,yOffset:h,positioning:s,windowInnerHeight:_,blockScrollbarHeight:C});if(pe){const Gi=ee==="start"?"end":"start",Yi=H==="start"?"end":"start",ze=this.calculateBlock({surfaceRect:A,anchorRect:z,anchorBlock:Yi,surfaceBlock:Gi,yOffset:h,positioning:s,windowInnerHeight:_,blockScrollbarHeight:C});pe>ze.blockOutOfBoundsCorrection&&(xe=ze.blockInset,pe=ze.blockOutOfBoundsCorrection,Ht=ze.surfaceBlockProperty)}let{inlineInset:Me,inlineOutOfBoundsCorrection:vt,surfaceInlineProperty:fo}=this.calculateInline({surfaceRect:A,anchorRect:z,anchorInline:et,surfaceInline:q,xOffset:l,positioning:s,isLTR:tt,windowInnerWidth:b,inlineScrollbarWidth:T});if(vt){const Gi=q==="start"?"end":"start",Yi=et==="start"?"end":"start",ze=this.calculateInline({surfaceRect:A,anchorRect:z,anchorInline:Yi,surfaceInline:Gi,xOffset:l,positioning:s,isLTR:tt,windowInnerWidth:b,inlineScrollbarWidth:T});Math.abs(vt)>Math.abs(ze.inlineOutOfBoundsCorrection)&&(Me=ze.inlineInset,vt=ze.inlineOutOfBoundsCorrection,fo=ze.surfaceInlineProperty)}p==="move"&&(xe=xe-pe,Me=Me-vt),this.surfaceStylesInternal={display:"block",opacity:"1",[Ht]:`${xe}px`,[fo]:`${Me}px`},p==="resize"&&(pe&&(this.surfaceStylesInternal.height=`${A.height-pe}px`),vt&&(this.surfaceStylesInternal.width=`${A.width-vt}px`)),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:t,anchorRect:i,anchorBlock:r,surfaceBlock:s,yOffset:l,positioning:h,windowInnerHeight:p,blockScrollbarHeight:v}=e,f=h==="fixed"||h==="document"?1:0,b=h==="document"?1:0,_=s==="start"?1:0,x=s==="end"?1:0,C=(r!==s?1:0)*i.height+l,T=_*i.top+x*(p-i.bottom-v),A=_*window.scrollY-x*window.scrollY,z=Math.abs(Math.min(0,p-T-C-t.height));return{blockInset:f*T+b*A+C,blockOutOfBoundsCorrection:z,surfaceBlockProperty:s==="start"?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:t,surfaceInline:i,anchorInline:r,anchorRect:s,surfaceRect:l,xOffset:h,positioning:p,windowInnerWidth:v,inlineScrollbarWidth:f}=e,b=p==="fixed"||p==="document"?1:0,_=p==="document"?1:0,x=t?1:0,S=t?0:1,C=i==="start"?1:0,T=i==="end"?1:0,z=(r!==i?1:0)*s.width+h,ee=C*s.left+T*(v-s.right-f),q=C*(v-s.right-f)+T*s.left,H=x*ee+S*q,et=C*window.scrollX-T*window.scrollX,tt=T*window.scrollX-C*window.scrollX,xe=x*et+S*tt,pe=Math.abs(Math.min(0,v-H-z-l.width)),Ht=b*H+z+_*xe;let Me=i==="start"?"inset-inline-start":"inset-inline-end";return(p==="document"||p==="fixed")&&(i==="start"&&t||i==="end"&&!t?Me="left":Me="right"),{inlineInset:Ht,inlineOutOfBoundsCorrection:pe,surfaceInlineProperty:Me}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let t=!1;for(const[l,h]of Object.entries(e))if(t=t||h!==this.lastValues[l],t)break;const i=this.lastValues.isOpen!==e.isOpen,r=!!e.anchorEl,s=!!e.surfaceEl;t&&r&&s&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):i&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate();const e=this.getProperties().surfaceEl;e!=null&&e.popover&&(e!=null&&e.isConnected)&&e.hidePopover()}}/**
912
+ */const Sr={END_START:"end-start",START_START:"start-start",START_END:"start-end"};class fd{constructor(e,t){this.host=e,this.getProperties=t,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:t,anchorCorner:i,surfaceCorner:r,positioning:s,xOffset:l,yOffset:h,repositionStrategy:p}=this.getProperties(),v=i.toLowerCase().trim(),f=r.toLowerCase().trim();if(!e||!t)return;const b=window.innerWidth,_=window.innerHeight,x=document.createElement("div");x.style.opacity="0",x.style.position="fixed",x.style.display="block",x.style.inset="0",document.body.appendChild(x);const S=x.getBoundingClientRect();x.remove();const C=window.innerHeight-S.bottom,T=window.innerWidth-S.right;this.surfaceStylesInternal={display:"block",opacity:"0"},this.host.requestUpdate(),await this.host.updateComplete,e.popover&&e.isConnected&&e.showPopover();const A=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),z=t.getSurfacePositionClientRect?t.getSurfacePositionClientRect():t.getBoundingClientRect(),[ee,q]=f.split("-"),[H,et]=v.split("-"),tt=getComputedStyle(e).direction==="ltr";let{blockInset:xe,blockOutOfBoundsCorrection:pe,surfaceBlockProperty:Ht}=this.calculateBlock({surfaceRect:A,anchorRect:z,anchorBlock:H,surfaceBlock:ee,yOffset:h,positioning:s,windowInnerHeight:_,blockScrollbarHeight:C});if(pe){const Gi=ee==="start"?"end":"start",Yi=H==="start"?"end":"start",Ie=this.calculateBlock({surfaceRect:A,anchorRect:z,anchorBlock:Yi,surfaceBlock:Gi,yOffset:h,positioning:s,windowInnerHeight:_,blockScrollbarHeight:C});pe>Ie.blockOutOfBoundsCorrection&&(xe=Ie.blockInset,pe=Ie.blockOutOfBoundsCorrection,Ht=Ie.surfaceBlockProperty)}let{inlineInset:Fe,inlineOutOfBoundsCorrection:vt,surfaceInlineProperty:fo}=this.calculateInline({surfaceRect:A,anchorRect:z,anchorInline:et,surfaceInline:q,xOffset:l,positioning:s,isLTR:tt,windowInnerWidth:b,inlineScrollbarWidth:T});if(vt){const Gi=q==="start"?"end":"start",Yi=et==="start"?"end":"start",Ie=this.calculateInline({surfaceRect:A,anchorRect:z,anchorInline:Yi,surfaceInline:Gi,xOffset:l,positioning:s,isLTR:tt,windowInnerWidth:b,inlineScrollbarWidth:T});Math.abs(vt)>Math.abs(Ie.inlineOutOfBoundsCorrection)&&(Fe=Ie.inlineInset,vt=Ie.inlineOutOfBoundsCorrection,fo=Ie.surfaceInlineProperty)}p==="move"&&(xe=xe-pe,Fe=Fe-vt),this.surfaceStylesInternal={display:"block",opacity:"1",[Ht]:`${xe}px`,[fo]:`${Fe}px`},p==="resize"&&(pe&&(this.surfaceStylesInternal.height=`${A.height-pe}px`),vt&&(this.surfaceStylesInternal.width=`${A.width-vt}px`)),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:t,anchorRect:i,anchorBlock:r,surfaceBlock:s,yOffset:l,positioning:h,windowInnerHeight:p,blockScrollbarHeight:v}=e,f=h==="fixed"||h==="document"?1:0,b=h==="document"?1:0,_=s==="start"?1:0,x=s==="end"?1:0,C=(r!==s?1:0)*i.height+l,T=_*i.top+x*(p-i.bottom-v),A=_*window.scrollY-x*window.scrollY,z=Math.abs(Math.min(0,p-T-C-t.height));return{blockInset:f*T+b*A+C,blockOutOfBoundsCorrection:z,surfaceBlockProperty:s==="start"?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:t,surfaceInline:i,anchorInline:r,anchorRect:s,surfaceRect:l,xOffset:h,positioning:p,windowInnerWidth:v,inlineScrollbarWidth:f}=e,b=p==="fixed"||p==="document"?1:0,_=p==="document"?1:0,x=t?1:0,S=t?0:1,C=i==="start"?1:0,T=i==="end"?1:0,z=(r!==i?1:0)*s.width+h,ee=C*s.left+T*(v-s.right-f),q=C*(v-s.right-f)+T*s.left,H=x*ee+S*q,et=C*window.scrollX-T*window.scrollX,tt=T*window.scrollX-C*window.scrollX,xe=x*et+S*tt,pe=Math.abs(Math.min(0,v-H-z-l.width)),Ht=b*H+z+_*xe;let Fe=i==="start"?"inset-inline-start":"inset-inline-end";return(p==="document"||p==="fixed")&&(i==="start"&&t||i==="end"&&!t?Fe="left":Fe="right"),{inlineInset:Ht,inlineOutOfBoundsCorrection:pe,surfaceInlineProperty:Fe}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let t=!1;for(const[l,h]of Object.entries(e))if(t=t||h!==this.lastValues[l],t)break;const i=this.lastValues.isOpen!==e.isOpen,r=!!e.anchorEl,s=!!e.surfaceEl;t&&r&&s&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):i&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate();const e=this.getProperties().surfaceEl;e!=null&&e.popover&&(e!=null&&e.isConnected)&&e.hidePopover()}}/**
913
913
  * @license
914
914
  * Copyright 2023 Google LLC
915
915
  * SPDX-License-Identifier: Apache-2.0
@@ -1135,7 +1135,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
1135
1135
  .value=${this.value}
1136
1136
  ?disabled=${this.disabled} />
1137
1137
  </div>
1138
- `}updated(){this[K].ariaChecked=String(this.checked)}async handleClick(e){this.disabled||(await 0,!e.defaultPrevented&&(vi(e)&&this.focus(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}async handleKeydown(e){await 0,!(e.key!==" "||e.defaultPrevented)&&this.click()}[(ln=ua,He)](){return this.checked?this.value:null}[fi](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[yt](){return new Cd(()=>this.selectionController?this.selectionController.controls:[this])}[_t](){return this.container}}d([n({type:Boolean})],_i.prototype,"checked",null),d([n({type:Boolean})],_i.prototype,"required",void 0),d([n()],_i.prototype,"value",void 0),d([k(".container")],_i.prototype,"container",void 0);/**
1138
+ `}updated(){this[K].ariaChecked=String(this.checked)}async handleClick(e){this.disabled||(await 0,!e.defaultPrevented&&(vi(e)&&this.focus(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}async handleKeydown(e){await 0,!(e.key!==" "||e.defaultPrevented)&&this.click()}[(ln=ua,Ne)](){return this.checked?this.value:null}[fi](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[yt](){return new Cd(()=>this.selectionController?this.selectionController.controls:[this])}[_t](){return this.container}}d([n({type:Boolean})],_i.prototype,"checked",null),d([n({type:Boolean})],_i.prototype,"required",void 0),d([n()],_i.prototype,"value",void 0),d([k(".container")],_i.prototype,"container",void 0);/**
1139
1139
  * @license
1140
1140
  * Copyright 2024 Google LLC
1141
1141
  * SPDX-License-Identifier: Apache-2.0
@@ -1242,7 +1242,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=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 s,l;if(this.open||this.disabled||!this.menu)return;const t=this.menu.typeaheadController,i=e.code==="Space"||e.code==="ArrowDown"||e.code==="ArrowUp"||e.code==="End"||e.code==="Home"||e.code==="Enter";if(!t.isTypingAhead&&i){switch(e.preventDefault(),this.open=!0,e.code){case"Space":case"ArrowDown":case"Enter":this.defaultFocus=ke.NONE;break;case"End":this.defaultFocus=ke.LAST_ITEM;break;case"ArrowUp":case"Home":this.defaultFocus=ke.FIRST_ITEM;break}return}if(e.key.length===1){t.onKeydown(e),e.preventDefault();const{lastActiveRecord:h}=t;if(!h)return;(l=(s=this.labelEl)==null?void 0:s.setAttribute)==null||l.call(s,"aria-live","polite"),this.selectItem(h[be.ITEM])&&this.dispatchInteractionEvents()}}handleClick(){this.open=!this.open}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}handleFocusout(e){e.relatedTarget&&sa(e.relatedTarget,this)||(this.open=!1)}getSelectedOptions(){if(!this.menu)return this.lastSelectedOptionRecords=[],null;const e=this.menu.items;return this.lastSelectedOptionRecords=Dd(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[i]=e[0];t=this.lastSelectedOption!==i,this.lastSelectedOption=i,this[Or]=i.value,this.displayText=i.displayText}else t=this.lastSelectedOption!==null,this.lastSelectedOption=null,this[Or]="",this.displayText="";return t}async handleOpening(e){var s,l,h;if((l=(s=this.labelEl)==null?void 0:s.removeAttribute)==null||l.call(s,"aria-live"),this.redispatchEvent(e),this.defaultFocus!==ke.NONE)return;const t=this.menu.items,i=(h=Wt(t))==null?void 0:h.item;let[r]=this.lastSelectedOptionRecords[0]??[null];i&&i!==r&&(i.tabIndex=-1),r=r??t[0],r&&(r.tabIndex=0,r.focus())}redispatchEvent(e){st(this,e)}handleClosed(e){this.open=!1,this.redispatchEvent(e)}handleCloseMenu(e){const t=e.detail.reason,i=e.detail.itemPath[0];this.open=!1;let r=!1;t.kind==="click-selection"?r=this.selectItem(i):t.kind==="keydown"&&md(t.key)?r=this.selectItem(i):(i.tabIndex=-1,i.blur()),r&&this.dispatchInteractionEvents()}selectItem(e){return(this.getSelectedOptions()??[]).forEach(([i])=>{e!==i&&(i.selected=!1)}),e.selected=!0,this.updateValueAndDisplayText()}handleRequestSelection(e){const t=e.target;this.lastSelectedOptionRecords.some(([i])=>i===t)||this.selectItem(t)}handleRequestDeselection(e){const t=e.target;this.lastSelectedOptionRecords.some(([i])=>i===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}[He](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}click(){var e;(e=this.field)==null||e.click()}[yt](){return new Ld(()=>this)}[_t](){return this.field}}re(O),O.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean})],O.prototype,"quick",void 0),d([n({type:Boolean})],O.prototype,"required",void 0),d([n({type:String,attribute:"error-text"})],O.prototype,"errorText",void 0),d([n()],O.prototype,"label",void 0),d([n({type:Boolean,attribute:"no-asterisk"})],O.prototype,"noAsterisk",void 0),d([n({type:String,attribute:"supporting-text"})],O.prototype,"supportingText",void 0),d([n({type:Boolean,reflect:!0})],O.prototype,"error",void 0),d([n({attribute:"menu-positioning"})],O.prototype,"menuPositioning",void 0),d([n({type:Boolean,attribute:"clamp-menu-width"})],O.prototype,"clampMenuWidth",void 0),d([n({type:Number,attribute:"typeahead-delay"})],O.prototype,"typeaheadDelay",void 0),d([n({type:Boolean,attribute:"has-leading-icon"})],O.prototype,"hasLeadingIcon",void 0),d([n({attribute:"display-text"})],O.prototype,"displayText",void 0),d([n({attribute:"menu-align"})],O.prototype,"menuAlign",void 0),d([n()],O.prototype,"value",null),d([n({type:Number,attribute:"selected-index"})],O.prototype,"selectedIndex",null),d([w()],O.prototype,"nativeError",void 0),d([w()],O.prototype,"nativeErrorText",void 0),d([w()],O.prototype,"focused",void 0),d([w()],O.prototype,"open",void 0),d([w()],O.prototype,"defaultFocus",void 0),d([k(".field")],O.prototype,"field",void 0),d([k("md-menu")],O.prototype,"menu",void 0),d([k("#label")],O.prototype,"labelEl",void 0),d([X({slot:"leading-icon",flatten:!0})],O.prototype,"leadingIcons",void 0);/**
1245
+ </div>`}renderMenuContent(){return c`<slot></slot>`}handleKeydown(e){var s,l;if(this.open||this.disabled||!this.menu)return;const t=this.menu.typeaheadController,i=e.code==="Space"||e.code==="ArrowDown"||e.code==="ArrowUp"||e.code==="End"||e.code==="Home"||e.code==="Enter";if(!t.isTypingAhead&&i){switch(e.preventDefault(),this.open=!0,e.code){case"Space":case"ArrowDown":case"Enter":this.defaultFocus=ke.NONE;break;case"End":this.defaultFocus=ke.LAST_ITEM;break;case"ArrowUp":case"Home":this.defaultFocus=ke.FIRST_ITEM;break}return}if(e.key.length===1){t.onKeydown(e),e.preventDefault();const{lastActiveRecord:h}=t;if(!h)return;(l=(s=this.labelEl)==null?void 0:s.setAttribute)==null||l.call(s,"aria-live","polite"),this.selectItem(h[be.ITEM])&&this.dispatchInteractionEvents()}}handleClick(){this.open=!this.open}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}handleFocusout(e){e.relatedTarget&&sa(e.relatedTarget,this)||(this.open=!1)}getSelectedOptions(){if(!this.menu)return this.lastSelectedOptionRecords=[],null;const e=this.menu.items;return this.lastSelectedOptionRecords=Dd(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[i]=e[0];t=this.lastSelectedOption!==i,this.lastSelectedOption=i,this[Or]=i.value,this.displayText=i.displayText}else t=this.lastSelectedOption!==null,this.lastSelectedOption=null,this[Or]="",this.displayText="";return t}async handleOpening(e){var s,l,h;if((l=(s=this.labelEl)==null?void 0:s.removeAttribute)==null||l.call(s,"aria-live"),this.redispatchEvent(e),this.defaultFocus!==ke.NONE)return;const t=this.menu.items,i=(h=Wt(t))==null?void 0:h.item;let[r]=this.lastSelectedOptionRecords[0]??[null];i&&i!==r&&(i.tabIndex=-1),r=r??t[0],r&&(r.tabIndex=0,r.focus())}redispatchEvent(e){st(this,e)}handleClosed(e){this.open=!1,this.redispatchEvent(e)}handleCloseMenu(e){const t=e.detail.reason,i=e.detail.itemPath[0];this.open=!1;let r=!1;t.kind==="click-selection"?r=this.selectItem(i):t.kind==="keydown"&&md(t.key)?r=this.selectItem(i):(i.tabIndex=-1,i.blur()),r&&this.dispatchInteractionEvents()}selectItem(e){return(this.getSelectedOptions()??[]).forEach(([i])=>{e!==i&&(i.selected=!1)}),e.selected=!0,this.updateValueAndDisplayText()}handleRequestSelection(e){const t=e.target;this.lastSelectedOptionRecords.some(([i])=>i===t)||this.selectItem(t)}handleRequestDeselection(e){const t=e.target;this.lastSelectedOptionRecords.some(([i])=>i===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}[Ne](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}click(){var e;(e=this.field)==null||e.click()}[yt](){return new Ld(()=>this)}[_t](){return this.field}}re(O),O.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean})],O.prototype,"quick",void 0),d([n({type:Boolean})],O.prototype,"required",void 0),d([n({type:String,attribute:"error-text"})],O.prototype,"errorText",void 0),d([n()],O.prototype,"label",void 0),d([n({type:Boolean,attribute:"no-asterisk"})],O.prototype,"noAsterisk",void 0),d([n({type:String,attribute:"supporting-text"})],O.prototype,"supportingText",void 0),d([n({type:Boolean,reflect:!0})],O.prototype,"error",void 0),d([n({attribute:"menu-positioning"})],O.prototype,"menuPositioning",void 0),d([n({type:Boolean,attribute:"clamp-menu-width"})],O.prototype,"clampMenuWidth",void 0),d([n({type:Number,attribute:"typeahead-delay"})],O.prototype,"typeaheadDelay",void 0),d([n({type:Boolean,attribute:"has-leading-icon"})],O.prototype,"hasLeadingIcon",void 0),d([n({attribute:"display-text"})],O.prototype,"displayText",void 0),d([n({attribute:"menu-align"})],O.prototype,"menuAlign",void 0),d([n()],O.prototype,"value",null),d([n({type:Number,attribute:"selected-index"})],O.prototype,"selectedIndex",null),d([w()],O.prototype,"nativeError",void 0),d([w()],O.prototype,"nativeErrorText",void 0),d([w()],O.prototype,"focused",void 0),d([w()],O.prototype,"open",void 0),d([w()],O.prototype,"defaultFocus",void 0),d([k(".field")],O.prototype,"field",void 0),d([k("md-menu")],O.prototype,"menu",void 0),d([k("#label")],O.prototype,"labelEl",void 0),d([X({slot:"leading-icon",flatten:!0})],O.prototype,"leadingIcons",void 0);/**
1246
1246
  * @license
1247
1247
  * Copyright 2023 Google LLC
1248
1248
  * SPDX-License-Identifier: Apache-2.0
@@ -1388,7 +1388,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
1388
1388
  .value=${String(t)}
1389
1389
  .tabIndex=${e?1:0}
1390
1390
  aria-label=${i||u}
1391
- aria-valuetext=${r} />`}async toggleRippleHover(e,t){const i=await e;i&&(t?i.handlePointerenter(new PointerEvent("pointerenter",{isPrimary:!0,pointerId:this.ripplePointerId})):i.handlePointerleave(new PointerEvent("pointerleave",{isPrimary:!0,pointerId:this.ripplePointerId})))}handleFocus(e){this.updateOnTop(e.target)}startAction(e){const t=e.target,i=t===this.inputStart?this.inputEnd:this.inputStart;this.action={canFlip:e.type==="pointerdown",flipped:!1,target:t,fixed:i,values:new Map([[t,t.valueAsNumber],[i,i==null?void 0:i.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:i,flipped:r}=this.action;await new Promise(requestAnimationFrame),t!==void 0&&(t.focus(),r&&t.valueAsNumber!==i.get(t)&&t.dispatchEvent(new Event("change",{bubbles:!0}))),this.finishAction(e)}handleMove(e){this.handleStartHover=!this.disabled&&pn(e,this.handleStart),this.handleEndHover=!this.disabled&&pn(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:i,values:r}=e;return e.canFlip&&r.get(t)===r.get(i)&&this.needsClamping()&&(e.canFlip=!1,e.flipped=!0,e.target=i,e.fixed=t),e.flipped}flipAction(){if(!this.action)return!1;const{target:e,fixed:t,values:i}=this.action,r=e.valueAsNumber!==t.valueAsNumber;return e.valueAsNumber=t.valueAsNumber,t.valueAsNumber=i.get(t),r}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,i=!1;this.range&&(this.isActionFlipped()&&(t=!0,i=this.flipAction()),this.clampAction()&&(t=!0,i=!1));const r=e.target;this.updateOnTop(r),this.range?(this.valueStart=this.inputStart.valueAsNumber,this.valueEnd=this.inputEnd.valueAsNumber):this.value=this.inputEnd.valueAsNumber,t&&e.stopPropagation(),i&&(this.isRedispatchingEvent=!0,st(r,e),this.isRedispatchingEvent=!1)}handleChange(e){const t=e.target,{target:i,values:r}=this.action??{};i&&i.valueAsNumber===r.get(t)||st(this,e),this.finishAction(e)}[He](){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 i=this.getAttribute("value-end");this.valueEnd=i!==null?Number(i):void 0;return}const e=this.getAttribute("value");this.value=e!==null?Number(e):void 0}formStateRestoreCallback(e){if(Array.isArray(e)){const[[,t],[,i]]=e;this.valueStart=Number(t),this.valueEnd=Number(i),this.range=!0;return}this.value=Number(e),this.range=!1}}re(I),I.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Number})],I.prototype,"min",void 0),d([n({type:Number})],I.prototype,"max",void 0),d([n({type:Number})],I.prototype,"value",void 0),d([n({type:Number,attribute:"value-start"})],I.prototype,"valueStart",void 0),d([n({type:Number,attribute:"value-end"})],I.prototype,"valueEnd",void 0),d([n({attribute:"value-label"})],I.prototype,"valueLabel",void 0),d([n({attribute:"value-label-start"})],I.prototype,"valueLabelStart",void 0),d([n({attribute:"value-label-end"})],I.prototype,"valueLabelEnd",void 0),d([n({attribute:"aria-label-start"})],I.prototype,"ariaLabelStart",void 0),d([n({attribute:"aria-valuetext-start"})],I.prototype,"ariaValueTextStart",void 0),d([n({attribute:"aria-label-end"})],I.prototype,"ariaLabelEnd",void 0),d([n({attribute:"aria-valuetext-end"})],I.prototype,"ariaValueTextEnd",void 0),d([n({type:Number})],I.prototype,"step",void 0),d([n({type:Boolean})],I.prototype,"ticks",void 0),d([n({type:Boolean})],I.prototype,"labeled",void 0),d([n({type:Boolean})],I.prototype,"range",void 0),d([k("input.start")],I.prototype,"inputStart",void 0),d([k(".handle.start")],I.prototype,"handleStart",void 0),d([vs("md-ripple.start")],I.prototype,"rippleStart",void 0),d([k("input.end")],I.prototype,"inputEnd",void 0),d([k(".handle.end")],I.prototype,"handleEnd",void 0),d([vs("md-ripple.end")],I.prototype,"rippleEnd",void 0),d([w()],I.prototype,"handleStartHover",void 0),d([w()],I.prototype,"handleEndHover",void 0),d([w()],I.prototype,"startOnTop",void 0),d([w()],I.prototype,"handlesOverlapping",void 0),d([w()],I.prototype,"renderValueStart",void 0),d([w()],I.prototype,"renderValueEnd",void 0);function pn({x:o,y:e},t){if(!t)return!1;const{top:i,left:r,bottom:s,right:l}=t.getBoundingClientRect();return o>=r&&o<=l&&e>=i&&e<=s}function jd(o,e){if(!(o&&e))return!1;const t=o.getBoundingClientRect(),i=e.getBoundingClientRect();return!(t.top>i.bottom||t.right<i.left||t.bottom<i.top||t.left>i.right)}/**
1391
+ aria-valuetext=${r} />`}async toggleRippleHover(e,t){const i=await e;i&&(t?i.handlePointerenter(new PointerEvent("pointerenter",{isPrimary:!0,pointerId:this.ripplePointerId})):i.handlePointerleave(new PointerEvent("pointerleave",{isPrimary:!0,pointerId:this.ripplePointerId})))}handleFocus(e){this.updateOnTop(e.target)}startAction(e){const t=e.target,i=t===this.inputStart?this.inputEnd:this.inputStart;this.action={canFlip:e.type==="pointerdown",flipped:!1,target:t,fixed:i,values:new Map([[t,t.valueAsNumber],[i,i==null?void 0:i.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:i,flipped:r}=this.action;await new Promise(requestAnimationFrame),t!==void 0&&(t.focus(),r&&t.valueAsNumber!==i.get(t)&&t.dispatchEvent(new Event("change",{bubbles:!0}))),this.finishAction(e)}handleMove(e){this.handleStartHover=!this.disabled&&pn(e,this.handleStart),this.handleEndHover=!this.disabled&&pn(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:i,values:r}=e;return e.canFlip&&r.get(t)===r.get(i)&&this.needsClamping()&&(e.canFlip=!1,e.flipped=!0,e.target=i,e.fixed=t),e.flipped}flipAction(){if(!this.action)return!1;const{target:e,fixed:t,values:i}=this.action,r=e.valueAsNumber!==t.valueAsNumber;return e.valueAsNumber=t.valueAsNumber,t.valueAsNumber=i.get(t),r}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,i=!1;this.range&&(this.isActionFlipped()&&(t=!0,i=this.flipAction()),this.clampAction()&&(t=!0,i=!1));const r=e.target;this.updateOnTop(r),this.range?(this.valueStart=this.inputStart.valueAsNumber,this.valueEnd=this.inputEnd.valueAsNumber):this.value=this.inputEnd.valueAsNumber,t&&e.stopPropagation(),i&&(this.isRedispatchingEvent=!0,st(r,e),this.isRedispatchingEvent=!1)}handleChange(e){const t=e.target,{target:i,values:r}=this.action??{};i&&i.valueAsNumber===r.get(t)||st(this,e),this.finishAction(e)}[Ne](){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 i=this.getAttribute("value-end");this.valueEnd=i!==null?Number(i):void 0;return}const e=this.getAttribute("value");this.value=e!==null?Number(e):void 0}formStateRestoreCallback(e){if(Array.isArray(e)){const[[,t],[,i]]=e;this.valueStart=Number(t),this.valueEnd=Number(i),this.range=!0;return}this.value=Number(e),this.range=!1}}re(I),I.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Number})],I.prototype,"min",void 0),d([n({type:Number})],I.prototype,"max",void 0),d([n({type:Number})],I.prototype,"value",void 0),d([n({type:Number,attribute:"value-start"})],I.prototype,"valueStart",void 0),d([n({type:Number,attribute:"value-end"})],I.prototype,"valueEnd",void 0),d([n({attribute:"value-label"})],I.prototype,"valueLabel",void 0),d([n({attribute:"value-label-start"})],I.prototype,"valueLabelStart",void 0),d([n({attribute:"value-label-end"})],I.prototype,"valueLabelEnd",void 0),d([n({attribute:"aria-label-start"})],I.prototype,"ariaLabelStart",void 0),d([n({attribute:"aria-valuetext-start"})],I.prototype,"ariaValueTextStart",void 0),d([n({attribute:"aria-label-end"})],I.prototype,"ariaLabelEnd",void 0),d([n({attribute:"aria-valuetext-end"})],I.prototype,"ariaValueTextEnd",void 0),d([n({type:Number})],I.prototype,"step",void 0),d([n({type:Boolean})],I.prototype,"ticks",void 0),d([n({type:Boolean})],I.prototype,"labeled",void 0),d([n({type:Boolean})],I.prototype,"range",void 0),d([k("input.start")],I.prototype,"inputStart",void 0),d([k(".handle.start")],I.prototype,"handleStart",void 0),d([vs("md-ripple.start")],I.prototype,"rippleStart",void 0),d([k("input.end")],I.prototype,"inputEnd",void 0),d([k(".handle.end")],I.prototype,"handleEnd",void 0),d([vs("md-ripple.end")],I.prototype,"rippleEnd",void 0),d([w()],I.prototype,"handleStartHover",void 0),d([w()],I.prototype,"handleEndHover",void 0),d([w()],I.prototype,"startOnTop",void 0),d([w()],I.prototype,"handlesOverlapping",void 0),d([w()],I.prototype,"renderValueStart",void 0),d([w()],I.prototype,"renderValueEnd",void 0);function pn({x:o,y:e},t){if(!t)return!1;const{top:i,left:r,bottom:s,right:l}=t.getBoundingClientRect();return o>=r&&o<=l&&e>=i&&e<=s}function jd(o,e){if(!(o&&e))return!1;const t=o.getBoundingClientRect(),i=e.getBoundingClientRect();return!(t.top>i.bottom||t.right<i.left||t.bottom<i.top||t.left>i.right)}/**
1392
1392
  * @license
1393
1393
  * Copyright 2024 Google LLC
1394
1394
  * SPDX-License-Identifier: Apache-2.0
@@ -1405,7 +1405,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
1405
1405
  * @license
1406
1406
  * Copyright 2021 Google LLC
1407
1407
  * SPDX-License-Identifier: Apache-2.0
1408
- */const Xd=mi(qt(at(y)));class qe extends Xd{constructor(){super(),this.selected=!1,this.icons=!1,this.showOnlySelectedIcon=!1,this.required=!1,this.value="on",this.addEventListener("click",e=>{!vi(e)||!this.input||(this.focus(),ar(this.input))}),Yd(this,"keydown"),this.addEventListener("keydown",e=>{Gd(e,()=>{e.defaultPrevented||e.key!=="Enter"||this.disabled||!this.input||this.input.click()})})}render(){return c`
1408
+ */const Xd=mi(qt(at(y)));class Ue extends Xd{constructor(){super(),this.selected=!1,this.icons=!1,this.showOnlySelectedIcon=!1,this.required=!1,this.value="on",this.addEventListener("click",e=>{!vi(e)||!this.input||(this.focus(),ar(this.input))}),Yd(this,"keydown"),this.addEventListener("keydown",e=>{Gd(e,()=>{e.defaultPrevented||e.key!=="Enter"||this.disabled||!this.input||this.input.click()})})}render(){return c`
1409
1409
  <div class="switch ${L(this.getRenderClasses())}">
1410
1410
  <input
1411
1411
  id="switch"
@@ -1449,7 +1449,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=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){st(this,e)}[He](){return this.selected?this.value:null}[fi](){return String(this.selected)}formResetCallback(){this.selected=this.hasAttribute("selected")}formStateRestoreCallback(e){this.selected=e==="true"}[yt](){return new Ps(()=>({checked:this.selected,required:this.required}))}[_t](){return this.input}}re(qe),qe.shadowRootOptions={mode:"open",delegatesFocus:!0},d([n({type:Boolean})],qe.prototype,"selected",void 0),d([n({type:Boolean})],qe.prototype,"icons",void 0),d([n({type:Boolean,attribute:"show-only-selected-icon"})],qe.prototype,"showOnlySelectedIcon",void 0),d([n({type:Boolean})],qe.prototype,"required",void 0),d([n()],qe.prototype,"value",void 0),d([k("input")],qe.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){st(this,e)}[Ne](){return this.selected?this.value:null}[fi](){return String(this.selected)}formResetCallback(){this.selected=this.hasAttribute("selected")}formStateRestoreCallback(e){this.selected=e==="true"}[yt](){return new Ps(()=>({checked:this.selected,required:this.required}))}[_t](){return this.input}}re(Ue),Ue.shadowRootOptions={mode:"open",delegatesFocus:!0},d([n({type:Boolean})],Ue.prototype,"selected",void 0),d([n({type:Boolean})],Ue.prototype,"icons",void 0),d([n({type:Boolean,attribute:"show-only-selected-icon"})],Ue.prototype,"showOnlySelectedIcon",void 0),d([n({type:Boolean})],Ue.prototype,"required",void 0),d([n()],Ue.prototype,"value",void 0),d([k("input")],Ue.prototype,"input",void 0);/**
1453
1453
  * @license
1454
1454
  * Copyright 2024 Google LLC
1455
1455
  * SPDX-License-Identifier: Apache-2.0
@@ -1458,7 +1458,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
1458
1458
  * @license
1459
1459
  * Copyright 2021 Google LLC
1460
1460
  * SPDX-License-Identifier: Apache-2.0
1461
- */let xa=class extends qe{};xa.styles=[Zd],xa=d([g("md-switch")],xa);/**
1461
+ */let xa=class extends Ue{};xa.styles=[Zd],xa=d([g("md-switch")],xa);/**
1462
1462
  * @license
1463
1463
  * Copyright 2023 Google LLC
1464
1464
  * SPDX-License-Identifier: Apache-2.0
@@ -1641,7 +1641,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=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="${L({suffix:t,prefix:!t})}">${e}</span>`:u}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){st(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}[He](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}[yt](){return new dh(()=>({state:this,renderedControl:this.inputOrTextarea}))}[_t](){return this.inputOrTextarea}[Tr](e){var i;e==null||e.preventDefault();const t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&((i=this.field)==null||i.reannounceError())}}re($),$.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean,reflect:!0})],$.prototype,"error",void 0),d([n({attribute:"error-text"})],$.prototype,"errorText",void 0),d([n()],$.prototype,"label",void 0),d([n({type:Boolean,attribute:"no-asterisk"})],$.prototype,"noAsterisk",void 0),d([n({type:Boolean,reflect:!0})],$.prototype,"required",void 0),d([n()],$.prototype,"value",void 0),d([n({attribute:"prefix-text"})],$.prototype,"prefixText",void 0),d([n({attribute:"suffix-text"})],$.prototype,"suffixText",void 0),d([n({type:Boolean,attribute:"has-leading-icon"})],$.prototype,"hasLeadingIcon",void 0),d([n({type:Boolean,attribute:"has-trailing-icon"})],$.prototype,"hasTrailingIcon",void 0),d([n({attribute:"supporting-text"})],$.prototype,"supportingText",void 0),d([n({attribute:"text-direction"})],$.prototype,"textDirection",void 0),d([n({type:Number})],$.prototype,"rows",void 0),d([n({type:Number})],$.prototype,"cols",void 0),d([n({reflect:!0})],$.prototype,"inputMode",void 0),d([n()],$.prototype,"max",void 0),d([n({type:Number})],$.prototype,"maxLength",void 0),d([n()],$.prototype,"min",void 0),d([n({type:Number})],$.prototype,"minLength",void 0),d([n({type:Boolean,attribute:"no-spinner"})],$.prototype,"noSpinner",void 0),d([n()],$.prototype,"pattern",void 0),d([n({reflect:!0,converter:ch})],$.prototype,"placeholder",void 0),d([n({type:Boolean,reflect:!0})],$.prototype,"readOnly",void 0),d([n({type:Boolean,reflect:!0})],$.prototype,"multiple",void 0),d([n()],$.prototype,"step",void 0),d([n({reflect:!0})],$.prototype,"type",void 0),d([n({reflect:!0})],$.prototype,"autocomplete",void 0),d([w()],$.prototype,"dirty",void 0),d([w()],$.prototype,"focused",void 0),d([w()],$.prototype,"nativeError",void 0),d([w()],$.prototype,"nativeErrorText",void 0),d([k(".input")],$.prototype,"inputOrTextarea",void 0),d([k(".field")],$.prototype,"field",void 0),d([X({slot:"leading-icon"})],$.prototype,"leadingIcons",void 0),d([X({slot:"trailing-icon"})],$.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="${L({suffix:t,prefix:!t})}">${e}</span>`:u}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){st(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}[Ne](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}[yt](){return new dh(()=>({state:this,renderedControl:this.inputOrTextarea}))}[_t](){return this.inputOrTextarea}[Tr](e){var i;e==null||e.preventDefault();const t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&((i=this.field)==null||i.reannounceError())}}re($),$.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([n({type:Boolean,reflect:!0})],$.prototype,"error",void 0),d([n({attribute:"error-text"})],$.prototype,"errorText",void 0),d([n()],$.prototype,"label",void 0),d([n({type:Boolean,attribute:"no-asterisk"})],$.prototype,"noAsterisk",void 0),d([n({type:Boolean,reflect:!0})],$.prototype,"required",void 0),d([n()],$.prototype,"value",void 0),d([n({attribute:"prefix-text"})],$.prototype,"prefixText",void 0),d([n({attribute:"suffix-text"})],$.prototype,"suffixText",void 0),d([n({type:Boolean,attribute:"has-leading-icon"})],$.prototype,"hasLeadingIcon",void 0),d([n({type:Boolean,attribute:"has-trailing-icon"})],$.prototype,"hasTrailingIcon",void 0),d([n({attribute:"supporting-text"})],$.prototype,"supportingText",void 0),d([n({attribute:"text-direction"})],$.prototype,"textDirection",void 0),d([n({type:Number})],$.prototype,"rows",void 0),d([n({type:Number})],$.prototype,"cols",void 0),d([n({reflect:!0})],$.prototype,"inputMode",void 0),d([n()],$.prototype,"max",void 0),d([n({type:Number})],$.prototype,"maxLength",void 0),d([n()],$.prototype,"min",void 0),d([n({type:Number})],$.prototype,"minLength",void 0),d([n({type:Boolean,attribute:"no-spinner"})],$.prototype,"noSpinner",void 0),d([n()],$.prototype,"pattern",void 0),d([n({reflect:!0,converter:ch})],$.prototype,"placeholder",void 0),d([n({type:Boolean,reflect:!0})],$.prototype,"readOnly",void 0),d([n({type:Boolean,reflect:!0})],$.prototype,"multiple",void 0),d([n()],$.prototype,"step",void 0),d([n({reflect:!0})],$.prototype,"type",void 0),d([n({reflect:!0})],$.prototype,"autocomplete",void 0),d([w()],$.prototype,"dirty",void 0),d([w()],$.prototype,"focused",void 0),d([w()],$.prototype,"nativeError",void 0),d([w()],$.prototype,"nativeErrorText",void 0),d([k(".input")],$.prototype,"inputOrTextarea",void 0),d([k(".field")],$.prototype,"field",void 0),d([X({slot:"leading-icon"})],$.prototype,"leadingIcons",void 0),d([X({slot:"trailing-icon"})],$.prototype,"trailingIcons",void 0);/**
1645
1645
  * @license
1646
1646
  * Copyright 2021 Google LLC
1647
1647
  * SPDX-License-Identifier: Apache-2.0
@@ -1881,7 +1881,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
1881
1881
  margin-block-start: var(--scb-accordion-spacing-block-start, 0);
1882
1882
  margin-block-end: var(--scb-accordion-spacing-block-end, 0);
1883
1883
  }
1884
- `,$i([n({type:Boolean,reflect:!0})],a.ScbAccordion.prototype,"detached",2),$i([n({type:String,reflect:!0})],a.ScbAccordion.prototype,"spacing",2),$i([n({type:String,attribute:"spacing-top",reflect:!0})],a.ScbAccordion.prototype,"spacingTop",2),$i([n({type:String,attribute:"spacing-bottom",reflect:!0})],a.ScbAccordion.prototype,"spacingBottom",2),a.ScbAccordion=$i([g("scb-accordion")],a.ScbAccordion);var xh=Object.defineProperty,wh=Object.getOwnPropertyDescriptor,Sn=o=>{throw TypeError(o)},le=(o,e,t,i)=>{for(var r=i>1?void 0:i?wh(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&xh(e,t,r),r},Sh=(o,e,t)=>e.has(o)||Sn("Cannot "+t),kh=(o,e,t)=>e.has(o)?Sn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),kn=(o,e,t)=>(Sh(o,e,"access private method"),t),Dr,$a;a.ScbIconButton=class extends y{constructor(){super(...arguments),kh(this,Dr),this.icon="home",this.tooltip="",this.ariaLabel="",this.variant="standard",this.toggle=!1,this.selected=!1,this.toggleofficon="add",this.toggleonicon="remove",this.disabled=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",this.__loadedVariants=new Set,this.__iconLoaded=!1,this.__lastMdHost=null,this.__onInnerChange=()=>{const e=this.__getMdHost(),t=!!(e!=null&&e.selected);this.toggle&&(this.selected=t),this.dispatchEvent(new CustomEvent("change",{detail:{selected:t},bubbles:!0,composed:!0}))}}async firstUpdated(){await this.__ensureDepsLoaded(),await this.updateComplete,this.__attachChangeListener(),this.__syncTitleAndAria(),kn(this,Dr,$a).call(this)}updated(e){if(super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&kn(this,Dr,$a).call(this),e.has("variant")){this.__ensureDepsLoaded().then(()=>{queueMicrotask(()=>{this.__attachChangeListener(),this.__syncTitleAndAria()})});return}(e.has("toggle")||e.has("icon")||e.has("toggleofficon")||e.has("toggleonicon")||e.has("selected")||e.has("disabled")||e.has("tooltip")||e.has("ariaLabel"))&&queueMicrotask(()=>{this.__attachChangeListener(),this.__syncTitleAndAria()})}disconnectedCallback(){var e,t;(t=(e=this.__lastMdHost)==null?void 0:e.removeEventListener)==null||t.call(e,"change",this.__onInnerChange),this.__lastMdHost=null,super.disconnectedCallback()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"filled":await Promise.resolve().then(()=>Zc);break;case"outlined":await Promise.resolve().then(()=>rd);break;case"filled-tonal":await Promise.resolve().then(()=>Qc);break;default:await Promise.resolve().then(()=>td);break}this.__loadedVariants.add(this.variant)}this.__iconLoaded||(await Promise.resolve().then(()=>Pe),this.__iconLoaded=!0)}__getMdHost(){return this.renderRoot.querySelector("md-filled-icon-button, md-outlined-icon-button, md-filled-tonal-icon-button, md-icon-button")}__attachChangeListener(){var t,i;const e=this.__getMdHost();e&&e!==this.__lastMdHost&&((i=(t=this.__lastMdHost)==null?void 0:t.removeEventListener)==null||i.call(t,"change",this.__onInnerChange),e.addEventListener("change",this.__onInnerChange),this.__lastMdHost=e),this.toggle&&e&&"selected"in e&&(e.selected=this.selected)}__syncTitleAndAria(){const e=this.__getMdHost();if(!e)return;const t=(this.tooltip||this.getAttribute("title")||"").trim(),i=(this.ariaLabel||this.getAttribute("aria-label")||"").trim(),r=this.getAttribute("aria-controls"),s=this.getAttribute("aria-expanded");this.tooltip&&this.setAttribute("title",t);const l=i||t||this.icon.trim()||void 0;l?e.setAttribute("aria-label",l):e.removeAttribute("aria-label"),t?e.setAttribute("title",t):e.removeAttribute("title"),r!==null?e.setAttribute("aria-controls",r):e.removeAttribute("aria-controls"),s!==null?e.setAttribute("aria-expanded",s):e.removeAttribute("aria-expanded")}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}__renderToggleIcons(){return c`
1884
+ `,$i([n({type:Boolean,reflect:!0})],a.ScbAccordion.prototype,"detached",2),$i([n({type:String,reflect:!0})],a.ScbAccordion.prototype,"spacing",2),$i([n({type:String,attribute:"spacing-top",reflect:!0})],a.ScbAccordion.prototype,"spacingTop",2),$i([n({type:String,attribute:"spacing-bottom",reflect:!0})],a.ScbAccordion.prototype,"spacingBottom",2),a.ScbAccordion=$i([g("scb-accordion")],a.ScbAccordion);var xh=Object.defineProperty,wh=Object.getOwnPropertyDescriptor,Sn=o=>{throw TypeError(o)},le=(o,e,t,i)=>{for(var r=i>1?void 0:i?wh(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&xh(e,t,r),r},Sh=(o,e,t)=>e.has(o)||Sn("Cannot "+t),kh=(o,e,t)=>e.has(o)?Sn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),kn=(o,e,t)=>(Sh(o,e,"access private method"),t),Dr,$a;a.ScbIconButton=class extends y{constructor(){super(...arguments),kh(this,Dr),this.icon="home",this.tooltip="",this.ariaLabel="",this.variant="standard",this.toggle=!1,this.selected=!1,this.toggleofficon="add",this.toggleonicon="remove",this.disabled=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",this.__loadedVariants=new Set,this.__iconLoaded=!1,this.__lastMdHost=null,this.__onInnerChange=()=>{const e=this.__getMdHost(),t=!!(e!=null&&e.selected);this.toggle&&(this.selected=t),this.dispatchEvent(new CustomEvent("change",{detail:{selected:t},bubbles:!0,composed:!0}))}}async firstUpdated(){await this.__ensureDepsLoaded(),await this.updateComplete,this.__attachChangeListener(),this.__syncTitleAndAria(),kn(this,Dr,$a).call(this)}updated(e){if(super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&kn(this,Dr,$a).call(this),e.has("variant")){this.__ensureDepsLoaded().then(()=>{queueMicrotask(()=>{this.__attachChangeListener(),this.__syncTitleAndAria()})});return}(e.has("toggle")||e.has("icon")||e.has("toggleofficon")||e.has("toggleonicon")||e.has("selected")||e.has("disabled")||e.has("tooltip")||e.has("ariaLabel"))&&queueMicrotask(()=>{this.__attachChangeListener(),this.__syncTitleAndAria()})}disconnectedCallback(){var e,t;(t=(e=this.__lastMdHost)==null?void 0:e.removeEventListener)==null||t.call(e,"change",this.__onInnerChange),this.__lastMdHost=null,super.disconnectedCallback()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"filled":await Promise.resolve().then(()=>Zc);break;case"outlined":await Promise.resolve().then(()=>rd);break;case"filled-tonal":await Promise.resolve().then(()=>Qc);break;default:await Promise.resolve().then(()=>td);break}this.__loadedVariants.add(this.variant)}this.__iconLoaded||(await Promise.resolve().then(()=>Oe),this.__iconLoaded=!0)}__getMdHost(){return this.renderRoot.querySelector("md-filled-icon-button, md-outlined-icon-button, md-filled-tonal-icon-button, md-icon-button")}__attachChangeListener(){var t,i;const e=this.__getMdHost();e&&e!==this.__lastMdHost&&((i=(t=this.__lastMdHost)==null?void 0:t.removeEventListener)==null||i.call(t,"change",this.__onInnerChange),e.addEventListener("change",this.__onInnerChange),this.__lastMdHost=e),this.toggle&&e&&"selected"in e&&(e.selected=this.selected)}__syncTitleAndAria(){const e=this.__getMdHost();if(!e)return;const t=(this.tooltip||this.getAttribute("title")||"").trim(),i=(this.ariaLabel||this.getAttribute("aria-label")||"").trim(),r=this.getAttribute("aria-controls"),s=this.getAttribute("aria-expanded");this.tooltip&&this.setAttribute("title",t);const l=i||t||this.icon.trim()||void 0;l?e.setAttribute("aria-label",l):e.removeAttribute("aria-label"),t?e.setAttribute("title",t):e.removeAttribute("title"),r!==null?e.setAttribute("aria-controls",r):e.removeAttribute("aria-controls"),s!==null?e.setAttribute("aria-expanded",s):e.removeAttribute("aria-expanded")}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}__renderToggleIcons(){return c`
1885
1885
  <md-icon aria-hidden="true">${this.toggleofficon}</md-icon>
1886
1886
  <md-icon slot="selected" aria-hidden="true">${this.toggleonicon}</md-icon>
1887
1887
  `}__renderSingleIcon(){return c`<md-icon aria-hidden="true">${this.icon}</md-icon>`}__renderMd(){const e=this.toggle?this.__renderToggleIcons():this.__renderSingleIcon();if(this.toggle)switch(this.variant){case"filled":return c`
@@ -2076,7 +2076,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
2076
2076
  </div>
2077
2077
 
2078
2078
  <md-focus-ring></md-focus-ring>
2079
- `}},Rr=new WeakMap,Mr=new WeakMap,Fr=new WeakMap,Hr=new WeakSet,Ta=async function(){const o=this.type==="link"&&(!this.trailing||this.trailingVariant==="icon");(this.leading&&this.leadingVariant==="icon"||this.trailing&&this.trailingVariant==="icon"||o)&&!Br(this,Rr)&&(await Promise.resolve().then(()=>Pe),Ea(this,Rr,!0)),this.trailing&&this.trailingVariant==="checkbox"&&!Br(this,Mr)&&(await Promise.resolve().then(()=>fp),Ea(this,Mr,!0)),this.trailing&&this.trailingVariant==="switch"&&!Br(this,Fr)&&(await Promise.resolve().then(()=>Vp),Ea(this,Fr,!0))},Aa=new WeakMap,R([n({type:String,reflect:!0,attribute:"type"})],a.ScbListItem.prototype,"type",2),R([n({type:String})],a.ScbListItem.prototype,"href",2),R([n({type:String,attribute:"item-href"})],a.ScbListItem.prototype,"itemHref",2),R([n({type:String,attribute:"target"})],a.ScbListItem.prototype,"target",2),R([n({type:Boolean,attribute:"disabled"})],a.ScbListItem.prototype,"disabled",2),R([n({type:String,reflect:!0})],a.ScbListItem.prototype,"label",2),R([n({type:String,attribute:"supporting-text"})],a.ScbListItem.prototype,"supportingText",2),R([n({type:String,attribute:"overline"})],a.ScbListItem.prototype,"overline",2),R([n({type:Boolean})],a.ScbListItem.prototype,"leading",2),R([n({type:String,attribute:"leading-variant",reflect:!0})],a.ScbListItem.prototype,"leadingVariant",2),R([n({type:String,attribute:"leading-icon"})],a.ScbListItem.prototype,"leadingIcon",2),R([n({type:String,attribute:"avatar-label"})],a.ScbListItem.prototype,"avatarLabel",2),R([n({type:String,attribute:"avatar-alt"})],a.ScbListItem.prototype,"avatarAlt",2),R([n({type:String,attribute:"avatar-variant"})],a.ScbListItem.prototype,"avatarVariant",2),R([n({type:String,attribute:"avatar-src"})],a.ScbListItem.prototype,"avatarSrc",2),R([n({type:String,reflect:!0,attribute:"img-href-image"})],a.ScbListItem.prototype,"imgHrefImage",2),R([n({type:Boolean})],a.ScbListItem.prototype,"trailing",2),R([n({type:String,attribute:"trailing-variant",reflect:!0})],a.ScbListItem.prototype,"trailingVariant",2),R([n({type:String,attribute:"trailing-icon"})],a.ScbListItem.prototype,"trailingIcon",2),R([n({type:Number,reflect:!0})],a.ScbListItem.prototype,"density",2),R([n({type:Boolean,attribute:"no-divider",reflect:!0})],a.ScbListItem.prototype,"noDivider",2),a.ScbListItem=R([g("scb-list-item")],a.ScbListItem);var Th=Object.defineProperty,Ah=Object.getOwnPropertyDescriptor,En=o=>{throw TypeError(o)},Yt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ah(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Th(e,t,r),r},Tn=(o,e,t)=>e.has(o)||En("Cannot "+t),zh=(o,e,t)=>(Tn(o,e,"read from private field"),e.get(o)),Ih=(o,e,t)=>e.has(o)?En("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Ph=(o,e,t,i)=>(Tn(o,e,"write to private field"),e.set(o,t),t),Nr;a.ScbList=class extends y{constructor(){super(...arguments),Ih(this,Nr,!1),this.noDivider=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",this._onSlotChange=()=>this._setupItems()}async firstUpdated(){zh(this,Nr)||(await Promise.resolve().then(()=>cd),Ph(this,Nr,!0)),this._setupItems(),this._applySpacing()}updated(e){super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&this._applySpacing()}_getItems(){var t;return(((t=this._slotEl)==null?void 0:t.assignedElements({flatten:!0}))??[]).filter(i=>i instanceof HTMLElement)}_setupItems(){var i;this._getItems().forEach((r,s)=>{r.hasAttribute("role")||r.setAttribute("role","listitem"),r.setAttribute("tabindex",s===0?"0":"-1")});const t=(i=this.renderRoot)==null?void 0:i.querySelector("md-list");t&&!t.hasAttribute("data-kbd")&&(t.setAttribute("data-kbd","true"),t.addEventListener("keydown",r=>this._onKeyDown(r)))}_onKeyDown(e){const t=this._getItems();if(!t.length)return;const i=t.findIndex(s=>s.getAttribute("tabindex")==="0"),r=s=>{const l=(s%t.length+t.length)%t.length;t.forEach(p=>p.setAttribute("tabindex","-1"));const h=t[l];h.setAttribute("tabindex","0"),h.focus()};switch(e.key){case"ArrowDown":case"ArrowRight":e.preventDefault(),r(i<0?0:i+1);break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),r(i<0?0:i-1);break;case"Home":e.preventDefault(),r(0);break;case"End":e.preventDefault(),r(t.length-1);break}}_mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}_applySpacing(){const e=this._mapSpacingToken(this.spacing),t=this._mapSpacingToken(this.spacingTop)??e,i=this._mapSpacingToken(this.spacingBottom)??e;t?this.style.marginBlockStart=t:this.style.removeProperty("margin-block-start"),i?this.style.marginBlockEnd=i:this.style.removeProperty("margin-block-end")}render(){return c`
2079
+ `}},Rr=new WeakMap,Mr=new WeakMap,Fr=new WeakMap,Hr=new WeakSet,Ta=async function(){const o=this.type==="link"&&(!this.trailing||this.trailingVariant==="icon");(this.leading&&this.leadingVariant==="icon"||this.trailing&&this.trailingVariant==="icon"||o)&&!Br(this,Rr)&&(await Promise.resolve().then(()=>Oe),Ea(this,Rr,!0)),this.trailing&&this.trailingVariant==="checkbox"&&!Br(this,Mr)&&(await Promise.resolve().then(()=>fp),Ea(this,Mr,!0)),this.trailing&&this.trailingVariant==="switch"&&!Br(this,Fr)&&(await Promise.resolve().then(()=>Vp),Ea(this,Fr,!0))},Aa=new WeakMap,R([n({type:String,reflect:!0,attribute:"type"})],a.ScbListItem.prototype,"type",2),R([n({type:String})],a.ScbListItem.prototype,"href",2),R([n({type:String,attribute:"item-href"})],a.ScbListItem.prototype,"itemHref",2),R([n({type:String,attribute:"target"})],a.ScbListItem.prototype,"target",2),R([n({type:Boolean,attribute:"disabled"})],a.ScbListItem.prototype,"disabled",2),R([n({type:String,reflect:!0})],a.ScbListItem.prototype,"label",2),R([n({type:String,attribute:"supporting-text"})],a.ScbListItem.prototype,"supportingText",2),R([n({type:String,attribute:"overline"})],a.ScbListItem.prototype,"overline",2),R([n({type:Boolean})],a.ScbListItem.prototype,"leading",2),R([n({type:String,attribute:"leading-variant",reflect:!0})],a.ScbListItem.prototype,"leadingVariant",2),R([n({type:String,attribute:"leading-icon"})],a.ScbListItem.prototype,"leadingIcon",2),R([n({type:String,attribute:"avatar-label"})],a.ScbListItem.prototype,"avatarLabel",2),R([n({type:String,attribute:"avatar-alt"})],a.ScbListItem.prototype,"avatarAlt",2),R([n({type:String,attribute:"avatar-variant"})],a.ScbListItem.prototype,"avatarVariant",2),R([n({type:String,attribute:"avatar-src"})],a.ScbListItem.prototype,"avatarSrc",2),R([n({type:String,reflect:!0,attribute:"img-href-image"})],a.ScbListItem.prototype,"imgHrefImage",2),R([n({type:Boolean})],a.ScbListItem.prototype,"trailing",2),R([n({type:String,attribute:"trailing-variant",reflect:!0})],a.ScbListItem.prototype,"trailingVariant",2),R([n({type:String,attribute:"trailing-icon"})],a.ScbListItem.prototype,"trailingIcon",2),R([n({type:Number,reflect:!0})],a.ScbListItem.prototype,"density",2),R([n({type:Boolean,attribute:"no-divider",reflect:!0})],a.ScbListItem.prototype,"noDivider",2),a.ScbListItem=R([g("scb-list-item")],a.ScbListItem);var Th=Object.defineProperty,Ah=Object.getOwnPropertyDescriptor,En=o=>{throw TypeError(o)},Yt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ah(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Th(e,t,r),r},Tn=(o,e,t)=>e.has(o)||En("Cannot "+t),zh=(o,e,t)=>(Tn(o,e,"read from private field"),e.get(o)),Ih=(o,e,t)=>e.has(o)?En("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Ph=(o,e,t,i)=>(Tn(o,e,"write to private field"),e.set(o,t),t),Nr;a.ScbList=class extends y{constructor(){super(...arguments),Ih(this,Nr,!1),this.noDivider=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",this._onSlotChange=()=>this._setupItems()}async firstUpdated(){zh(this,Nr)||(await Promise.resolve().then(()=>cd),Ph(this,Nr,!0)),this._setupItems(),this._applySpacing()}updated(e){super.updated(e),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&this._applySpacing()}_getItems(){var t;return(((t=this._slotEl)==null?void 0:t.assignedElements({flatten:!0}))??[]).filter(i=>i instanceof HTMLElement)}_setupItems(){var i;this._getItems().forEach((r,s)=>{r.hasAttribute("role")||r.setAttribute("role","listitem"),r.setAttribute("tabindex",s===0?"0":"-1")});const t=(i=this.renderRoot)==null?void 0:i.querySelector("md-list");t&&!t.hasAttribute("data-kbd")&&(t.setAttribute("data-kbd","true"),t.addEventListener("keydown",r=>this._onKeyDown(r)))}_onKeyDown(e){const t=this._getItems();if(!t.length)return;const i=t.findIndex(s=>s.getAttribute("tabindex")==="0"),r=s=>{const l=(s%t.length+t.length)%t.length;t.forEach(p=>p.setAttribute("tabindex","-1"));const h=t[l];h.setAttribute("tabindex","0"),h.focus()};switch(e.key){case"ArrowDown":case"ArrowRight":e.preventDefault(),r(i<0?0:i+1);break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),r(i<0?0:i-1);break;case"Home":e.preventDefault(),r(0);break;case"End":e.preventDefault(),r(t.length-1);break}}_mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}_applySpacing(){const e=this._mapSpacingToken(this.spacing),t=this._mapSpacingToken(this.spacingTop)??e,i=this._mapSpacingToken(this.spacingBottom)??e;t?this.style.marginBlockStart=t:this.style.removeProperty("margin-block-start"),i?this.style.marginBlockEnd=i:this.style.removeProperty("margin-block-end")}render(){return c`
2080
2080
  <md-list role="list" @slotchange=${this._onSlotChange}>
2081
2081
  <slot></slot>
2082
2082
  </md-list>
@@ -2373,7 +2373,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
2373
2373
  color: var(--md-sys-color-on-surface);
2374
2374
  }
2375
2375
  }
2376
- `,ct([n({type:String,attribute:"trailing-icon"})],a.ScbSearch.prototype,"trailingIcon",2),ct([n({type:String,attribute:"supporting-text"})],a.ScbSearch.prototype,"supportingText",2),ct([n({type:String})],a.ScbSearch.prototype,"value",2),ct([n({type:String,reflect:!0})],a.ScbSearch.prototype,"name",2),ct([n({type:Boolean,reflect:!0})],a.ScbSearch.prototype,"disabled",2),ct([n({type:String,reflect:!0})],a.ScbSearch.prototype,"size",2),ct([n({type:Boolean,attribute:"full-screen",reflect:!0})],a.ScbSearch.prototype,"fullScreen",2),a.ScbSearch=ct([g("scb-search")],a.ScbSearch);var Bh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,An=o=>{throw TypeError(o)},ce=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rh(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Bh(e,t,r),r},Mh=(o,e,t)=>e.has(o)||An("Cannot "+t),Fh=(o,e,t)=>e.has(o)?An("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),zn=(o,e,t)=>(Mh(o,e,"access private method"),t),Vr,za;a.ScbAvatar=class extends y{constructor(){super(...arguments),Fh(this,Vr),this.src="",this.alt="",this.label="",this.size="medium",this.shape="circular",this.iconName="",this.variant="image",this.spacing="",this.spacingTop="",this.spacingBottom="",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(()=>Pe),zn(this,Vr,za).call(this)}updated(e){super.updated(e),e.has("variant")&&this.variant==="icon"&&Promise.resolve().then(()=>Pe),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&zn(this,Vr,za).call(this)}_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 i=t[0].slice(0,1),r=t[t.length-1].slice(0,1);return(i+r).toUpperCase()}_ariaLabel(){const e=(this.label||this.alt||"").trim();return e||null}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}render(){const e=this._ariaLabel(),t=this.variant==="image"&&!!this.src&&!this._imgError,i=c`${u}
2376
+ `,ct([n({type:String,attribute:"trailing-icon"})],a.ScbSearch.prototype,"trailingIcon",2),ct([n({type:String,attribute:"supporting-text"})],a.ScbSearch.prototype,"supportingText",2),ct([n({type:String})],a.ScbSearch.prototype,"value",2),ct([n({type:String,reflect:!0})],a.ScbSearch.prototype,"name",2),ct([n({type:Boolean,reflect:!0})],a.ScbSearch.prototype,"disabled",2),ct([n({type:String,reflect:!0})],a.ScbSearch.prototype,"size",2),ct([n({type:Boolean,attribute:"full-screen",reflect:!0})],a.ScbSearch.prototype,"fullScreen",2),a.ScbSearch=ct([g("scb-search")],a.ScbSearch);var Bh=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,An=o=>{throw TypeError(o)},ce=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rh(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Bh(e,t,r),r},Mh=(o,e,t)=>e.has(o)||An("Cannot "+t),Fh=(o,e,t)=>e.has(o)?An("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),zn=(o,e,t)=>(Mh(o,e,"access private method"),t),Vr,za;a.ScbAvatar=class extends y{constructor(){super(...arguments),Fh(this,Vr),this.src="",this.alt="",this.label="",this.size="medium",this.shape="circular",this.iconName="",this.variant="image",this.spacing="",this.spacingTop="",this.spacingBottom="",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(()=>Oe),zn(this,Vr,za).call(this)}updated(e){super.updated(e),e.has("variant")&&this.variant==="icon"&&Promise.resolve().then(()=>Oe),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&zn(this,Vr,za).call(this)}_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 i=t[0].slice(0,1),r=t[t.length-1].slice(0,1);return(i+r).toUpperCase()}_ariaLabel(){const e=(this.label||this.alt||"").trim();return e||null}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}render(){const e=this._ariaLabel(),t=this.variant==="image"&&!!this.src&&!this._imgError,i=c`${u}
2377
2377
  <slot name="icon" @slotchange=${this._onIconSlotChange}></slot>
2378
2378
  ${this._hasIconSlot?u:this.iconName?c`<md-icon aria-hidden="true">${this.iconName}</md-icon>`:c`<div class="fallback" part="fallback">${this._initials()}</div>`}
2379
2379
  `,r=t?c`<img
@@ -2637,7 +2637,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
2637
2637
  display: flex;
2638
2638
  align-items: center;
2639
2639
  }
2640
- `],Ei([n({type:String,reflect:!0})],a.ScbAppBar.prototype,"title",2),Ei([n({type:String,reflect:!0})],a.ScbAppBar.prototype,"type",2),Ei([n({type:String,reflect:!0})],a.ScbAppBar.prototype,"position",2),Ei([n({type:String,attribute:"search-supporting-text",reflect:!0})],a.ScbAppBar.prototype,"searchSupportingText",2),a.ScbAppBar=Ei([g("scb-app-bar")],a.ScbAppBar);var Vh=Object.defineProperty,qh=Object.getOwnPropertyDescriptor,Ue=(o,e,t,i)=>{for(var r=i>1?void 0:i?qh(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Vh(e,t,r),r};a.ScbBadge=class extends y{constructor(){super(...arguments),this._slotClickHandler=e=>{var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),i=e.target;i&&i!==t&&i.dispatchEvent(new CustomEvent("hide-badge",{bubbles:!0,composed:!0}))},this.autoHide=!1,this.position="relative",this.positionTop=0,this.positionRight=12,this.value="",this.label="",this.hidden=!1,this.variant="dot",this._badgeVisible=!0,this._onHideBadge=()=>{this._badgeVisible=!1,this.requestUpdate()}}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");this.autoHide&&e&&e.addEventListener("click",this._slotClickHandler)}updated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&(this.autoHide?e.addEventListener("click",this._slotClickHandler):e.removeEventListener("click",this._slotClickHandler))}connectedCallback(){super.connectedCallback(),this.addEventListener("hide-badge",this._onHideBadge)}disconnectedCallback(){this.removeEventListener("hide-badge",this._onHideBadge),super.disconnectedCallback()}render(){this.style.setProperty("--scb-badge-absolute-top",this.positionTop+"px"),this.style.setProperty("--scb-badge-absolute-right",this.positionRight+"px");let e=this.value;!isNaN(Number(this.value))&&this.value.length>4&&(e=this.value.slice(0,4)+"+");const t=this.variant==="value"&&!this.value?"badge-value-empty":"",i=this._badgeVisible?"":"badge--hide",r=this.label||(this.variant==="dot"?"Indikator":`Märke: ${e}`);return c`
2640
+ `],Ei([n({type:String,reflect:!0})],a.ScbAppBar.prototype,"title",2),Ei([n({type:String,reflect:!0})],a.ScbAppBar.prototype,"type",2),Ei([n({type:String,reflect:!0})],a.ScbAppBar.prototype,"position",2),Ei([n({type:String,attribute:"search-supporting-text",reflect:!0})],a.ScbAppBar.prototype,"searchSupportingText",2),a.ScbAppBar=Ei([g("scb-app-bar")],a.ScbAppBar);var Vh=Object.defineProperty,qh=Object.getOwnPropertyDescriptor,We=(o,e,t,i)=>{for(var r=i>1?void 0:i?qh(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Vh(e,t,r),r};a.ScbBadge=class extends y{constructor(){super(...arguments),this._slotClickHandler=e=>{var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),i=e.target;i&&i!==t&&i.dispatchEvent(new CustomEvent("hide-badge",{bubbles:!0,composed:!0}))},this.autoHide=!1,this.position="relative",this.positionTop=0,this.positionRight=12,this.value="",this.label="",this.hidden=!1,this.variant="dot",this._badgeVisible=!0,this._onHideBadge=()=>{this._badgeVisible=!1,this.requestUpdate()}}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");this.autoHide&&e&&e.addEventListener("click",this._slotClickHandler)}updated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&(this.autoHide?e.addEventListener("click",this._slotClickHandler):e.removeEventListener("click",this._slotClickHandler))}connectedCallback(){super.connectedCallback(),this.addEventListener("hide-badge",this._onHideBadge)}disconnectedCallback(){this.removeEventListener("hide-badge",this._onHideBadge),super.disconnectedCallback()}render(){this.style.setProperty("--scb-badge-absolute-top",this.positionTop+"px"),this.style.setProperty("--scb-badge-absolute-right",this.positionRight+"px");let e=this.value;!isNaN(Number(this.value))&&this.value.length>4&&(e=this.value.slice(0,4)+"+");const t=this.variant==="value"&&!this.value?"badge-value-empty":"",i=this._badgeVisible?"":"badge--hide",r=this.label||(this.variant==="dot"?"Indikator":`Märke: ${e}`);return c`
2641
2641
  <div class="badge-content">
2642
2642
  <slot></slot>
2643
2643
  <div
@@ -2708,7 +2708,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
2708
2708
  justify-content: center;
2709
2709
  gap: var(--scb-badge-relative-gap);
2710
2710
  }
2711
- `,Ue([n({type:Boolean,reflect:!0,attribute:"auto-hide"})],a.ScbBadge.prototype,"autoHide",2),Ue([n({type:String,reflect:!0})],a.ScbBadge.prototype,"position",2),Ue([n({type:Number,attribute:"position-top"})],a.ScbBadge.prototype,"positionTop",2),Ue([n({type:Number,attribute:"position-right"})],a.ScbBadge.prototype,"positionRight",2),Ue([n({type:String,reflect:!0})],a.ScbBadge.prototype,"value",2),Ue([n({type:String,reflect:!0})],a.ScbBadge.prototype,"label",2),Ue([n({type:Boolean,reflect:!0})],a.ScbBadge.prototype,"hidden",2),Ue([n({type:String,reflect:!0})],a.ScbBadge.prototype,"variant",2),a.ScbBadge=Ue([g("scb-badge")],a.ScbBadge);/**
2711
+ `,We([n({type:Boolean,reflect:!0,attribute:"auto-hide"})],a.ScbBadge.prototype,"autoHide",2),We([n({type:String,reflect:!0})],a.ScbBadge.prototype,"position",2),We([n({type:Number,attribute:"position-top"})],a.ScbBadge.prototype,"positionTop",2),We([n({type:Number,attribute:"position-right"})],a.ScbBadge.prototype,"positionRight",2),We([n({type:String,reflect:!0})],a.ScbBadge.prototype,"value",2),We([n({type:String,reflect:!0})],a.ScbBadge.prototype,"label",2),We([n({type:Boolean,reflect:!0})],a.ScbBadge.prototype,"hidden",2),We([n({type:String,reflect:!0})],a.ScbBadge.prototype,"variant",2),a.ScbBadge=We([g("scb-badge")],a.ScbBadge);/**
2712
2712
  * @license
2713
2713
  * Copyright 2018 Google LLC
2714
2714
  * SPDX-License-Identifier: BSD-3-Clause
@@ -2994,7 +2994,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
2994
2994
  ${this.label}
2995
2995
  ${e&&this.trailingIcon?t:u}
2996
2996
  </md-text-button>
2997
- `;default:return c``}}},Wr=new WeakSet,Oa=function(){const o=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??o,t=this.mapSpacingToken(this.spacingBottom)??o;e?this.style.setProperty("--scb-button-spacing-block-start",e):this.style.removeProperty("--scb-button-spacing-block-start"),t?this.style.setProperty("--scb-button-spacing-block-end",t):this.style.removeProperty("--scb-button-spacing-block-end")},de([n({type:String,reflect:!0})],a.ScbButton.prototype,"variant",2),de([n({type:String,reflect:!0})],a.ScbButton.prototype,"type",2),de([n({type:String})],a.ScbButton.prototype,"label",2),de([n({type:Boolean,attribute:"trailing-icon"})],a.ScbButton.prototype,"trailingIcon",2),de([n({type:String})],a.ScbButton.prototype,"icon",2),de([n({type:Boolean,reflect:!0})],a.ScbButton.prototype,"disabled",2),de([n({type:String})],a.ScbButton.prototype,"href",2),de([n({type:String})],a.ScbButton.prototype,"target",2),de([n({type:String})],a.ScbButton.prototype,"rel",2),de([n({type:String,reflect:!0})],a.ScbButton.prototype,"spacing",2),de([n({type:String,attribute:"spacing-top",reflect:!0})],a.ScbButton.prototype,"spacingTop",2),de([n({type:String,attribute:"spacing-bottom",reflect:!0})],a.ScbButton.prototype,"spacingBottom",2),a.ScbButton=de([g("scb-button")],a.ScbButton);var ap=Object.defineProperty,sp=Object.getOwnPropertyDescriptor,Bn=o=>{throw TypeError(o)},M=(o,e,t,i)=>{for(var r=i>1?void 0:i?sp(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&ap(e,t,r),r},np=(o,e,t)=>e.has(o)||Bn("Cannot "+t),lp=(o,e,t)=>e.has(o)?Bn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Rn=(o,e,t)=>(np(o,e,"access private method"),t),jr,La;a.ScbCalendarCard=class extends y{constructor(){super(...arguments),lp(this,jr),this.variant="default",this.direction="horizontal",this.title="",this.subtitle="",this.supportingText="",this.cardHref="",this.cardHrefNav="",this.showMedia=null,this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.width="",this.maxWidth="",this.minWidth="",this.height="",this.maxHeight="",this.minHeight="",this.sizing="stretch",this.spacing="",this.spacingTop="",this.spacingBottom=""}async firstUpdated(){a.ScbCalendarCard.__iconLoaded||(await Promise.resolve().then(()=>Pe),a.ScbCalendarCard.__iconLoaded=!0),a.ScbCalendarCard.__rippleLoaded||(await Promise.resolve().then(()=>or),a.ScbCalendarCard.__rippleLoaded=!0),this.__applyInnerSizing(),Rn(this,jr,La).call(this)}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",t=this.direction?`${this.direction.toLowerCase()}`:"",i=this.cardHref?"clickable":"",r=1,s="Jan",l=this.mediaWidth&&this.mediaWidth.trim()!==""?this.mediaWidth:"",h=this.mediaHeight&&this.mediaHeight.trim()!==""?this.mediaHeight:"",p=this.mediaAspect&&this.mediaAspect.trim()!==""?this.mediaAspect:"",v=`${l?`inline-size:${l};`:""}${h?`block-size:${h};`:""}${p?`aspect-ratio:${p};`:""}`;return c`
2997
+ `;default:return c``}}},Wr=new WeakSet,Oa=function(){const o=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??o,t=this.mapSpacingToken(this.spacingBottom)??o;e?this.style.setProperty("--scb-button-spacing-block-start",e):this.style.removeProperty("--scb-button-spacing-block-start"),t?this.style.setProperty("--scb-button-spacing-block-end",t):this.style.removeProperty("--scb-button-spacing-block-end")},de([n({type:String,reflect:!0})],a.ScbButton.prototype,"variant",2),de([n({type:String,reflect:!0})],a.ScbButton.prototype,"type",2),de([n({type:String})],a.ScbButton.prototype,"label",2),de([n({type:Boolean,attribute:"trailing-icon"})],a.ScbButton.prototype,"trailingIcon",2),de([n({type:String})],a.ScbButton.prototype,"icon",2),de([n({type:Boolean,reflect:!0})],a.ScbButton.prototype,"disabled",2),de([n({type:String})],a.ScbButton.prototype,"href",2),de([n({type:String})],a.ScbButton.prototype,"target",2),de([n({type:String})],a.ScbButton.prototype,"rel",2),de([n({type:String,reflect:!0})],a.ScbButton.prototype,"spacing",2),de([n({type:String,attribute:"spacing-top",reflect:!0})],a.ScbButton.prototype,"spacingTop",2),de([n({type:String,attribute:"spacing-bottom",reflect:!0})],a.ScbButton.prototype,"spacingBottom",2),a.ScbButton=de([g("scb-button")],a.ScbButton);var ap=Object.defineProperty,sp=Object.getOwnPropertyDescriptor,Bn=o=>{throw TypeError(o)},M=(o,e,t,i)=>{for(var r=i>1?void 0:i?sp(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&ap(e,t,r),r},np=(o,e,t)=>e.has(o)||Bn("Cannot "+t),lp=(o,e,t)=>e.has(o)?Bn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Rn=(o,e,t)=>(np(o,e,"access private method"),t),jr,La;a.ScbCalendarCard=class extends y{constructor(){super(...arguments),lp(this,jr),this.variant="default",this.direction="horizontal",this.title="",this.subtitle="",this.supportingText="",this.cardHref="",this.cardHrefNav="",this.showMedia=null,this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.width="",this.maxWidth="",this.minWidth="",this.height="",this.maxHeight="",this.minHeight="",this.sizing="stretch",this.spacing="",this.spacingTop="",this.spacingBottom=""}async firstUpdated(){a.ScbCalendarCard.__iconLoaded||(await Promise.resolve().then(()=>Oe),a.ScbCalendarCard.__iconLoaded=!0),a.ScbCalendarCard.__rippleLoaded||(await Promise.resolve().then(()=>or),a.ScbCalendarCard.__rippleLoaded=!0),this.__applyInnerSizing(),Rn(this,jr,La).call(this)}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",t=this.direction?`${this.direction.toLowerCase()}`:"",i=this.cardHref?"clickable":"",r=1,s="Jan",l=this.mediaWidth&&this.mediaWidth.trim()!==""?this.mediaWidth:"",h=this.mediaHeight&&this.mediaHeight.trim()!==""?this.mediaHeight:"",p=this.mediaAspect&&this.mediaAspect.trim()!==""?this.mediaAspect:"",v=`${l?`inline-size:${l};`:""}${h?`block-size:${h};`:""}${p?`aspect-ratio:${p};`:""}`;return c`
2998
2998
  <div
2999
2999
  class="calendar-card ${t} ${i} ${e}"
3000
3000
  role="${this.cardHref?"link":"group"}"
@@ -3355,7 +3355,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
3355
3355
  ${r?c`<div class="date">${r}</div>`:""}
3356
3356
  </div>
3357
3357
  </div>
3358
- `)}}updated(e){super.updated(e),e.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),e.has("type")&&(this.type==="list"?this.setAttribute("data-density","-2"):this.removeAttribute("data-density")),this.style.setProperty("--scb-card-media-fit",this.mediaFit||"cover"),this.style.setProperty("--scb-card-media-position",this.mediaPosition||"center"),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Fn(this,Kr,Da).call(this)}async firstUpdated(e){a.ScbCard.__iconLoaded||(await Promise.resolve().then(()=>Pe),a.ScbCard.__iconLoaded=!0),a.ScbCard.__rippleLoaded||(await Promise.resolve().then(()=>or),a.ScbCard.__rippleLoaded=!0),Fn(this,Kr,Da).call(this)}},Kr=new WeakSet,Da=function(){const o=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??o,t=this.mapSpacingToken(this.spacingBottom)??o;e?this.style.setProperty("--scb-card-spacing-block-start",e):this.style.removeProperty("--scb-card-spacing-block-start"),t?this.style.setProperty("--scb-card-spacing-block-end",t):this.style.removeProperty("--scb-card-spacing-block-end")},a.ScbCard.__iconLoaded=!1,a.ScbCard.__rippleLoaded=!1,a.ScbCard.styles=m`
3358
+ `)}}updated(e){super.updated(e),e.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),e.has("type")&&(this.type==="list"?this.setAttribute("data-density","-2"):this.removeAttribute("data-density")),this.style.setProperty("--scb-card-media-fit",this.mediaFit||"cover"),this.style.setProperty("--scb-card-media-position",this.mediaPosition||"center"),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Fn(this,Kr,Da).call(this)}async firstUpdated(e){a.ScbCard.__iconLoaded||(await Promise.resolve().then(()=>Oe),a.ScbCard.__iconLoaded=!0),a.ScbCard.__rippleLoaded||(await Promise.resolve().then(()=>or),a.ScbCard.__rippleLoaded=!0),Fn(this,Kr,Da).call(this)}},Kr=new WeakSet,Da=function(){const o=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??o,t=this.mapSpacingToken(this.spacingBottom)??o;e?this.style.setProperty("--scb-card-spacing-block-start",e):this.style.removeProperty("--scb-card-spacing-block-start"),t?this.style.setProperty("--scb-card-spacing-block-end",t):this.style.removeProperty("--scb-card-spacing-block-end")},a.ScbCard.__iconLoaded=!1,a.ScbCard.__rippleLoaded=!1,a.ScbCard.styles=m`
3359
3359
  :host {
3360
3360
  display: block;
3361
3361
  box-sizing: border-box;
@@ -3690,7 +3690,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
3690
3690
  ::slotted(scb-checkbox) {
3691
3691
  --scb-checkbox-gap: 0;
3692
3692
  }
3693
- `,Xt([n({type:String,reflect:!0})],a.ScbCheckboxGroup.prototype,"orientation",2),Xt([n({type:Boolean,reflect:!0})],a.ScbCheckboxGroup.prototype,"disabled",2),Xt([n({type:String,reflect:!0})],a.ScbCheckboxGroup.prototype,"spacing",2),Xt([n({type:String,attribute:"spacing-top",reflect:!0})],a.ScbCheckboxGroup.prototype,"spacingTop",2),Xt([n({type:String,attribute:"spacing-bottom",reflect:!0})],a.ScbCheckboxGroup.prototype,"spacingBottom",2),a.ScbCheckboxGroup=Xt([g("scb-checkbox-group")],a.ScbCheckboxGroup);var bp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,We=(o,e,t,i)=>{for(var r=i>1?void 0:i?mp(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&bp(e,t,r),r};a.ScbCheckbox=class extends y{constructor(){super(),this._internals=null,this.disabled=!1,this.indeterminate=!1,this.checked=!1,this.label="",this.supportingText="",this.ariaLabel="",this.name="",this.value="on",this._form=null,this._formResetHandler=null,this._initialChecked=!1,this._checkboxId="","attachInternals"in this&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this._checkboxId=this.id||`scb-checkbox-${Math.random().toString(36).slice(2,11)}`,this._initialChecked=this.checked,this._form=this.closest("form"),this._form&&(this._formResetHandler=()=>{this.checked=this._initialChecked,this.indeterminate=!1,this.__syncFormValue()},this._form.addEventListener("reset",this._formResetHandler,!0)),this.__syncFormValue()}disconnectedCallback(){super.disconnectedCallback(),this._form&&this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0)}firstUpdated(){var i,r;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("md-checkbox");e&&e.addEventListener("change",()=>{const s=e,l=!!s.checked,h=!!s.indeterminate;this.checked=l,this.indeterminate=h,this.dispatchEvent(new CustomEvent("change",{detail:{checked:l,indeterminate:h},bubbles:!0,composed:!0}))});const t=(r=this.shadowRoot)==null?void 0:r.querySelector("label.wrap");t==null||t.addEventListener("click",s=>{if(this.disabled)return;if(!s.composedPath().some(p=>{var b,_,x;const v=p;return((_=(b=v==null?void 0:v.tagName)==null?void 0:b.toLowerCase)==null?void 0:_.call(b))==="md-checkbox"||((x=v==null?void 0:v.classList)==null?void 0:x.contains("box-wrap"))})){s.preventDefault();const p=this.shadowRoot.querySelector("md-checkbox");p&&(p.checked=!p.checked,p.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}}),this.__syncInnerAria()}updated(e){super.updated(e),e.has("disabled")&&this.toggleAttribute("aria-disabled",this.disabled),(e.has("label")||e.has("supportingText")||e.has("ariaLabel"))&&this.__syncInnerAria(),(e.has("checked")||e.has("disabled")||e.has("value"))&&this.__syncFormValue()}formDisabledCallback(e){this.disabled=e}__syncInnerAria(){var h,p,v;const e=(h=this.shadowRoot)==null?void 0:h.querySelector("md-checkbox"),t=e==null?void 0:e.shadowRoot;if(!t)return;const i=t.querySelector('[role="checkbox"]')||t.querySelector('input[type="checkbox"]');if(!i)return;const r=!!((p=this.label)!=null&&p.trim()),s=r?`${this._checkboxId}-label`:"",l=this.supportingText?`${this._checkboxId}-supporting-text`:"";r&&s?(i.setAttribute("aria-labelledby",s),i.removeAttribute("aria-label")):(i.removeAttribute("aria-labelledby"),(v=this.ariaLabel)!=null&&v.trim()?i.setAttribute("aria-label",this.ariaLabel.trim()):i.removeAttribute("aria-label")),l?i.setAttribute("aria-describedby",l):i.removeAttribute("aria-describedby")}__syncFormValue(){if(!this._internals)return;const e=this.disabled||!this.checked?null:this.value;this._internals.setFormValue(e)}render(){var r;const e=this.supportingText?`${this._checkboxId}-supporting-text`:void 0,t=!!((r=this.label)!=null&&r.trim()),i=t?u:this.ariaLabel||u;return c`
3693
+ `,Xt([n({type:String,reflect:!0})],a.ScbCheckboxGroup.prototype,"orientation",2),Xt([n({type:Boolean,reflect:!0})],a.ScbCheckboxGroup.prototype,"disabled",2),Xt([n({type:String,reflect:!0})],a.ScbCheckboxGroup.prototype,"spacing",2),Xt([n({type:String,attribute:"spacing-top",reflect:!0})],a.ScbCheckboxGroup.prototype,"spacingTop",2),Xt([n({type:String,attribute:"spacing-bottom",reflect:!0})],a.ScbCheckboxGroup.prototype,"spacingBottom",2),a.ScbCheckboxGroup=Xt([g("scb-checkbox-group")],a.ScbCheckboxGroup);var bp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,je=(o,e,t,i)=>{for(var r=i>1?void 0:i?mp(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&bp(e,t,r),r};a.ScbCheckbox=class extends y{constructor(){super(),this._internals=null,this.disabled=!1,this.indeterminate=!1,this.checked=!1,this.label="",this.supportingText="",this.ariaLabel="",this.name="",this.value="on",this._form=null,this._formResetHandler=null,this._initialChecked=!1,this._checkboxId="","attachInternals"in this&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this._checkboxId=this.id||`scb-checkbox-${Math.random().toString(36).slice(2,11)}`,this._initialChecked=this.checked,this._form=this.closest("form"),this._form&&(this._formResetHandler=()=>{this.checked=this._initialChecked,this.indeterminate=!1,this.__syncFormValue()},this._form.addEventListener("reset",this._formResetHandler,!0)),this.__syncFormValue()}disconnectedCallback(){super.disconnectedCallback(),this._form&&this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0)}firstUpdated(){var i,r;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("md-checkbox");e&&e.addEventListener("change",()=>{const s=e,l=!!s.checked,h=!!s.indeterminate;this.checked=l,this.indeterminate=h,this.dispatchEvent(new CustomEvent("change",{detail:{checked:l,indeterminate:h},bubbles:!0,composed:!0}))});const t=(r=this.shadowRoot)==null?void 0:r.querySelector("label.wrap");t==null||t.addEventListener("click",s=>{if(this.disabled)return;if(!s.composedPath().some(p=>{var b,_,x;const v=p;return((_=(b=v==null?void 0:v.tagName)==null?void 0:b.toLowerCase)==null?void 0:_.call(b))==="md-checkbox"||((x=v==null?void 0:v.classList)==null?void 0:x.contains("box-wrap"))})){s.preventDefault();const p=this.shadowRoot.querySelector("md-checkbox");p&&(p.checked=!p.checked,p.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}}),this.__syncInnerAria()}updated(e){super.updated(e),e.has("disabled")&&this.toggleAttribute("aria-disabled",this.disabled),(e.has("label")||e.has("supportingText")||e.has("ariaLabel"))&&this.__syncInnerAria(),(e.has("checked")||e.has("disabled")||e.has("value"))&&this.__syncFormValue()}formDisabledCallback(e){this.disabled=e}__syncInnerAria(){var h,p,v;const e=(h=this.shadowRoot)==null?void 0:h.querySelector("md-checkbox"),t=e==null?void 0:e.shadowRoot;if(!t)return;const i=t.querySelector('[role="checkbox"]')||t.querySelector('input[type="checkbox"]');if(!i)return;const r=!!((p=this.label)!=null&&p.trim()),s=r?`${this._checkboxId}-label`:"",l=this.supportingText?`${this._checkboxId}-supporting-text`:"";r&&s?(i.setAttribute("aria-labelledby",s),i.removeAttribute("aria-label")):(i.removeAttribute("aria-labelledby"),(v=this.ariaLabel)!=null&&v.trim()?i.setAttribute("aria-label",this.ariaLabel.trim()):i.removeAttribute("aria-label")),l?i.setAttribute("aria-describedby",l):i.removeAttribute("aria-describedby")}__syncFormValue(){if(!this._internals)return;const e=this.disabled||!this.checked?null:this.value;this._internals.setFormValue(e)}render(){var r;const e=this.supportingText?`${this._checkboxId}-supporting-text`:void 0,t=!!((r=this.label)!=null&&r.trim()),i=t?u:this.ariaLabel||u;return c`
3694
3694
  <label class="wrap">
3695
3695
  <div class="box-wrap">
3696
3696
  <md-checkbox
@@ -3779,7 +3779,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
3779
3779
  color: var(--md-sys-color-on-surface-variant);
3780
3780
  }
3781
3781
  }
3782
- `,We([n({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"disabled",2),We([n({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"indeterminate",2),We([n({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"checked",2),We([n({type:String})],a.ScbCheckbox.prototype,"label",2),We([n({type:String,attribute:"supporting-text"})],a.ScbCheckbox.prototype,"supportingText",2),We([n({type:String,reflect:!0,attribute:"aria-label"})],a.ScbCheckbox.prototype,"ariaLabel",2),We([n({type:String})],a.ScbCheckbox.prototype,"name",2),We([n({type:String})],a.ScbCheckbox.prototype,"value",2),a.ScbCheckbox=We([g("scb-checkbox")],a.ScbCheckbox);const fp=Object.freeze(Object.defineProperty({__proto__:null,get ScbCheckbox(){return a.ScbCheckbox}},Symbol.toStringTag,{value:"Module"}));var gp=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,qn=o=>{throw TypeError(o)},Z=(o,e,t,i)=>{for(var r=i>1?void 0:i?yp(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&gp(e,t,r),r},_p=(o,e,t)=>e.has(o)||qn("Cannot "+t),xp=(o,e,t)=>e.has(o)?qn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Un=(o,e,t)=>(_p(o,e,"access private method"),t),Yr,Ma;a.ScbChip=class extends y{constructor(){super(),xp(this,Yr),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.href="",this.target="",this.name="",this.value="",this.spacing="",this.spacingTop="",this.spacingBottom="",this.size="",this._internals=null,this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1,"attachInternals"in this&&(this._internals=this.attachInternals())}updated(e){super.updated(e),(e.has("variant")||e.has("icon"))&&this.__ensureDepsLoaded(),e.has("disabled")&&(this.toggleAttribute("aria-disabled",this.disabled),this.dispatchEvent(new CustomEvent("disabled-changed",{detail:{disabled:this.disabled},bubbles:!0,composed:!0}))),e.has("variant")&&this.dispatchEvent(new CustomEvent("variant-changed",{detail:{variant:this.variant},bubbles:!0,composed:!0})),e.has("label")&&this.dispatchEvent(new CustomEvent("label-changed",{detail:{label:this.label},bubbles:!0,composed:!0})),e.has("elevated")&&this.dispatchEvent(new CustomEvent("elevated-changed",{detail:{elevated:this.elevated},bubbles:!0,composed:!0})),e.has("icon")&&this.dispatchEvent(new CustomEvent("icon-changed",{detail:{icon:this.icon},bubbles:!0,composed:!0})),e.has("size")&&this.dispatchEvent(new CustomEvent("size-changed",{detail:{size:this.size},bubbles:!0,composed:!0})),(e.has("selected")||e.has("disabled")||e.has("variant")||e.has("value")||e.has("name"))&&this._updateFormValue(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Un(this,Yr,Ma).call(this)}firstUpdated(){this.__ensureDepsLoaded(),Un(this,Yr,Ma).call(this),this._updateFormValue()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await Promise.resolve().then(()=>$c);break;case"filter":await Promise.resolve().then(()=>zc);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await Promise.resolve().then(()=>Ec),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>Pe),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":{const t=this.target==="_blank"?"noopener noreferrer":void 0;return c`
3782
+ `,je([n({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"disabled",2),je([n({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"indeterminate",2),je([n({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"checked",2),je([n({type:String})],a.ScbCheckbox.prototype,"label",2),je([n({type:String,attribute:"supporting-text"})],a.ScbCheckbox.prototype,"supportingText",2),je([n({type:String,reflect:!0,attribute:"aria-label"})],a.ScbCheckbox.prototype,"ariaLabel",2),je([n({type:String})],a.ScbCheckbox.prototype,"name",2),je([n({type:String})],a.ScbCheckbox.prototype,"value",2),a.ScbCheckbox=je([g("scb-checkbox")],a.ScbCheckbox);const fp=Object.freeze(Object.defineProperty({__proto__:null,get ScbCheckbox(){return a.ScbCheckbox}},Symbol.toStringTag,{value:"Module"}));var gp=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,qn=o=>{throw TypeError(o)},Z=(o,e,t,i)=>{for(var r=i>1?void 0:i?yp(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&gp(e,t,r),r},_p=(o,e,t)=>e.has(o)||qn("Cannot "+t),xp=(o,e,t)=>e.has(o)?qn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Un=(o,e,t)=>(_p(o,e,"access private method"),t),Yr,Ma;a.ScbChip=class extends y{constructor(){super(),xp(this,Yr),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.href="",this.target="",this.name="",this.value="",this.spacing="",this.spacingTop="",this.spacingBottom="",this.size="",this._internals=null,this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1,"attachInternals"in this&&(this._internals=this.attachInternals())}updated(e){super.updated(e),(e.has("variant")||e.has("icon"))&&this.__ensureDepsLoaded(),e.has("disabled")&&(this.toggleAttribute("aria-disabled",this.disabled),this.dispatchEvent(new CustomEvent("disabled-changed",{detail:{disabled:this.disabled},bubbles:!0,composed:!0}))),e.has("variant")&&this.dispatchEvent(new CustomEvent("variant-changed",{detail:{variant:this.variant},bubbles:!0,composed:!0})),e.has("label")&&this.dispatchEvent(new CustomEvent("label-changed",{detail:{label:this.label},bubbles:!0,composed:!0})),e.has("elevated")&&this.dispatchEvent(new CustomEvent("elevated-changed",{detail:{elevated:this.elevated},bubbles:!0,composed:!0})),e.has("icon")&&this.dispatchEvent(new CustomEvent("icon-changed",{detail:{icon:this.icon},bubbles:!0,composed:!0})),e.has("size")&&this.dispatchEvent(new CustomEvent("size-changed",{detail:{size:this.size},bubbles:!0,composed:!0})),(e.has("selected")||e.has("disabled")||e.has("variant")||e.has("value")||e.has("name"))&&this._updateFormValue(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Un(this,Yr,Ma).call(this)}firstUpdated(){this.__ensureDepsLoaded(),Un(this,Yr,Ma).call(this),this._updateFormValue()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await Promise.resolve().then(()=>$c);break;case"filter":await Promise.resolve().then(()=>zc);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await Promise.resolve().then(()=>Ec),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>Oe),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":{const t=this.target==="_blank"?"noopener noreferrer":void 0;return c`
3783
3783
  <md-assist-chip
3784
3784
  label=${this.label}
3785
3785
  ?disabled=${this.disabled}
@@ -3958,8 +3958,8 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
3958
3958
  :host([overlay][direction='vertical'][anchor='start']) {
3959
3959
  left: calc(var(--scb-divider-gap) / -2);
3960
3960
  }
3961
- `,Et([n({type:String,reflect:!0})],a.ScbDivider.prototype,"variant",2),Et([n({type:String,reflect:!0})],a.ScbDivider.prototype,"direction",2),Et([n({type:String,reflect:!0})],a.ScbDivider.prototype,"inset",2),Et([n({type:Boolean,reflect:!0})],a.ScbDivider.prototype,"overlay",2),Et([n({type:String,reflect:!0})],a.ScbDivider.prototype,"anchor",2),Et([n({type:String,reflect:!0})],a.ScbDivider.prototype,"spacing",2),a.ScbDivider=Et([g("scb-divider")],a.ScbDivider);var Tp=Object.defineProperty,Ap=Object.getOwnPropertyDescriptor,je=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ap(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Tp(e,t,r),r};a.ScbDatepicker=class extends y{constructor(){super(...arguments),this._currentDate=new Date,this._selectedDate=null,this._showMonthDropdown=!1,this._showYearDropdown=!1,this.variant="static",this.lang="sv",this.selectedValue="",this.open=!0,this._outsideClickHandler=e=>{this.variant!=="static"&&this.open&&(e.composedPath().includes(this)||this._close())},this._monthNames=[this.lang=="sv"?"Januari":"January",this.lang=="sv"?"Februari":"February",this.lang=="sv"?"Mars":"March",(this.lang=="sv","April"),this.lang=="sv"?"Maj":"May",this.lang=="sv"?"Juni":"June",this.lang=="sv"?"Juli":"July",this.lang=="sv"?"Augusti":"August",(this.lang=="sv","September"),this.lang=="sv"?"Oktober":"October",(this.lang=="sv","November"),(this.lang=="sv","December")],this._prevYear=()=>{const e=this._currentDate.getFullYear(),t=this._currentDate.getMonth();this._currentDate=new Date(e-1,t,1)},this._nextYear=()=>{const e=this._currentDate.getFullYear(),t=this._currentDate.getMonth();this._currentDate=new Date(e+1,t,1)},this._prevMonth=()=>{const e=this._currentDate.getFullYear(),t=this._currentDate.getMonth();this._currentDate=new Date(e,t-1,1)},this._nextMonth=()=>{const e=this._currentDate.getFullYear(),t=this._currentDate.getMonth();this._currentDate=new Date(e,t+1,1)},this._close=()=>{this.open=!1,this.dispatchEvent(new CustomEvent("datepicker-closed",{bubbles:!0,composed:!0})),window.removeEventListener("mousedown",this._outsideClickHandler)}}updated(e){if(super.updated(e),this.variant!=="static"&&this.open?window.addEventListener("mousedown",this._outsideClickHandler):window.removeEventListener("mousedown",this._outsideClickHandler),e.has("selectedValue")&&this.selectedValue){const t=new Date(this.selectedValue);isNaN(t.getTime())||(this._selectedDate=t,this._currentDate=new Date(t.getFullYear(),t.getMonth(),1))}}_getMonthDays(e,t){const i=new Date(e,t,1),r=new Date(e,t+1,0),s=[];let l=[],h=(i.getDay()+6)%7;for(let p=0;p<h;p++)l.push(null);for(let p=1;p<=r.getDate();p++){const v=new Date(e,t,p);l.push(v),l.length===7&&(s.push(l),l=[])}if(l.length){for(;l.length<7;)l.push(null);s.push(l)}return s}render(){if(!this.open)return c``;const e=this._currentDate.getFullYear(),t=this._currentDate.getMonth(),i=new Date,r=this._getMonthDays(e,t),s=Array.from({length:101},(l,h)=>i.getFullYear()-50+h);return c`
3962
- <div class="datepicker-popup ${this.variant==="popup"?"popup":"static"}">
3961
+ `,Et([n({type:String,reflect:!0})],a.ScbDivider.prototype,"variant",2),Et([n({type:String,reflect:!0})],a.ScbDivider.prototype,"direction",2),Et([n({type:String,reflect:!0})],a.ScbDivider.prototype,"inset",2),Et([n({type:Boolean,reflect:!0})],a.ScbDivider.prototype,"overlay",2),Et([n({type:String,reflect:!0})],a.ScbDivider.prototype,"anchor",2),Et([n({type:String,reflect:!0})],a.ScbDivider.prototype,"spacing",2),a.ScbDivider=Et([g("scb-divider")],a.ScbDivider);var Tp=Object.defineProperty,Ap=Object.getOwnPropertyDescriptor,Ce=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ap(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Tp(e,t,r),r};a.ScbDatepicker=class extends y{constructor(){super(...arguments),this._currentDate=new Date,this._selectedDate=null,this._showMonthDropdown=!1,this._showYearDropdown=!1,this.variant="date",this.lang="sv",this.selectedValue="",this.open=!0,this._selectedHour=0,this._selectedMinute=0,this._monthNames=[this.lang=="sv"?"Januari":"January",this.lang=="sv"?"Februari":"February",this.lang=="sv"?"Mars":"March",(this.lang=="sv","April"),this.lang=="sv"?"Maj":"May",this.lang=="sv"?"Juni":"June",this.lang=="sv"?"Juli":"July",this.lang=="sv"?"Augusti":"August",(this.lang=="sv","September"),this.lang=="sv"?"Oktober":"October",(this.lang=="sv","November"),(this.lang=="sv","December")],this._outsideClickHandler=e=>{this.open&&(e.composedPath().includes(this)||this._close())},this._prevMonth=()=>{const e=this._currentDate.getFullYear(),t=this._currentDate.getMonth();t===0?this._currentDate=new Date(e-1,11,1):this._currentDate=new Date(e,t-1,1)},this._prevYear=()=>{const e=this._currentDate.getFullYear(),t=this._currentDate.getMonth();this._currentDate=new Date(e-1,t,1)},this._nextMonth=()=>{const e=this._currentDate.getFullYear(),t=this._currentDate.getMonth();t===11?this._currentDate=new Date(e+1,0,1):this._currentDate=new Date(e,t+1,1)},this._nextYear=()=>{const e=this._currentDate.getFullYear(),t=this._currentDate.getMonth();this._currentDate=new Date(e+1,t,1)},this._onTimeChange=e=>{const t=e.target.value,[i,r]=t.split(":"),s=parseInt(i,10),l=parseInt(r,10);this._selectedHour=isNaN(s)?0:Math.max(0,Math.min(23,s)),this._selectedMinute=isNaN(l)?0:Math.max(0,Math.min(59,l)),this._fireDateTimeChange()},this._close=()=>{this.open=!1,this.dispatchEvent(new CustomEvent("datepicker-closed",{bubbles:!0,composed:!0}))}}updated(e){if(super.updated(e),this.open?window.addEventListener("mousedown",this._outsideClickHandler):window.removeEventListener("mousedown",this._outsideClickHandler),e.has("selectedValue")&&this.selectedValue){const t=new Date(this.selectedValue);isNaN(t.getTime())||(this._selectedDate=t,this._currentDate=new Date(t.getFullYear(),t.getMonth(),1),this.variant==="datetime-local"&&(this._selectedHour=t.getHours(),this._selectedMinute=t.getMinutes()))}}render(){if(!this.open)return c``;const e=this._currentDate.getFullYear(),t=this._currentDate.getMonth(),i=new Date,r=this._getMonthDays(e,t),s=Array.from({length:101},(h,p)=>i.getFullYear()-50+p),l=this.variant==="datetime-local"&&!this._showMonthDropdown&&!this._showYearDropdown;return c`
3962
+ <div class="datepicker-popup popup">
3963
3963
  <div class="header">
3964
3964
  <div class="month-selector ${this._showMonthDropdown?"open":""} ${this._showYearDropdown?"disable":""}">
3965
3965
  <scb-icon-button icon="chevron_left" @click=${this._prevMonth} aria-label=${this.lang=="sv"?"Föregående månad":"Previous month"}></scb-icon-button>
@@ -3968,7 +3968,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
3968
3968
  tabindex=${this._showYearDropdown?-1:0}
3969
3969
  class="dropdown-selected"
3970
3970
  @click=${()=>this._toggleMonthDropdown()}
3971
- @keydown=${l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),this._toggleMonthDropdown())}}
3971
+ @keydown=${h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),this._toggleMonthDropdown())}}
3972
3972
  >
3973
3973
  ${this._monthNames[t].slice(0,3)}
3974
3974
  <md-icon>arrow_drop_down</md-icon>
@@ -3985,7 +3985,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
3985
3985
  tabindex=${this._showMonthDropdown?-1:0}
3986
3986
  class="dropdown-selected"
3987
3987
  @click=${()=>this._toggleYearDropdown()}
3988
- @keydown=${l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),this._toggleYearDropdown())}}
3988
+ @keydown=${h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),this._toggleYearDropdown())}}
3989
3989
  >
3990
3990
  ${e}
3991
3991
  <md-icon>arrow_drop_down</md-icon>
@@ -4000,16 +4000,16 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
4000
4000
  <div class="datepicker-content" style="position:relative;">
4001
4001
  ${this._showMonthDropdown?c`
4002
4002
  <div class="dropdown-list">
4003
- ${this._monthNames.map((l,h)=>c`
4003
+ ${this._monthNames.map((h,p)=>c`
4004
4004
  <div
4005
- @keydown=${p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),this._onMonthChangeCustom(h))}}
4005
+ @keydown=${v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),this._onMonthChangeCustom(p))}}
4006
4006
  tabindex="0"
4007
- class="dropdown-item${h===t?" selected":""}"
4008
- @click=${()=>this._onMonthChangeCustom(h)}
4009
- id=${h===t?"selected-month":""}
4007
+ class="dropdown-item${p===t?" selected":""}"
4008
+ @click=${()=>this._onMonthChangeCustom(p)}
4009
+ id=${p===t?"selected-month":""}
4010
4010
  >
4011
- ${h===t?c`<md-icon>check</md-icon>`:""}
4012
- ${l}
4011
+ ${p===t?c`<md-icon>check</md-icon>`:""}
4012
+ ${h}
4013
4013
  <md-ripple></md-ripple><md-focus-ring inward></md-focus-ring>
4014
4014
  </div>
4015
4015
  `)}
@@ -4017,16 +4017,16 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
4017
4017
  `:""}
4018
4018
  ${this._showYearDropdown?c`
4019
4019
  <div class="dropdown-list">
4020
- ${s.map(l=>c`
4020
+ ${s.map(h=>c`
4021
4021
  <div
4022
- @keydown=${h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),this._onYearChangeCustom(l))}}
4022
+ @keydown=${p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),this._onYearChangeCustom(h))}}
4023
4023
  tabindex="0"
4024
- class="dropdown-item${l===e?" selected":""}"
4025
- @click=${()=>this._onYearChangeCustom(l)}
4026
- id=${l===e?"selected-year":""}
4024
+ class="dropdown-item${h===e?" selected":""}"
4025
+ @click=${()=>this._onYearChangeCustom(h)}
4026
+ id=${h===e?"selected-year":""}
4027
4027
  >
4028
- ${l===e?c`<md-icon>check</md-icon>`:""}
4029
- ${l}
4028
+ ${h===e?c`<md-icon>check</md-icon>`:""}
4029
+ ${h}
4030
4030
  <md-ripple></md-ripple><md-focus-ring inward></md-focus-ring>
4031
4031
  </div>
4032
4032
  `)}
@@ -4041,17 +4041,17 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
4041
4041
  </tr>
4042
4042
  </thead>
4043
4043
  <tbody>
4044
- ${r.map(l=>c`
4044
+ ${r.map(h=>c`
4045
4045
  <tr>
4046
- ${l.map(h=>h?c`
4046
+ ${h.map(p=>p?c`
4047
4047
  <td>
4048
4048
  <div
4049
- @keydown=${p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),this._selectDate(h))}}
4049
+ @keydown=${v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),this._selectDate(p))}}
4050
4050
  role="button"
4051
4051
  tabindex="0"
4052
- class="day${this._isToday(h,i)?" today":""}${this._isSelected(h)?" selected":""}"
4053
- @click=${()=>this._selectDate(h)}
4054
- >${h.getDate()}<md-ripple></md-ripple><md-focus-ring></md-focus-ring></div>
4052
+ class="day${this._isToday(p,i)?" today":""}${this._isSelected(p)?" selected":""}"
4053
+ @click=${()=>this._selectDate(p)}
4054
+ >${p.getDate()}<md-ripple></md-ripple><md-focus-ring></md-focus-ring></div>
4055
4055
  </td>
4056
4056
  `:c`<td></td>`)}
4057
4057
  </tr>
@@ -4061,13 +4061,21 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
4061
4061
  </div>
4062
4062
  `:""}
4063
4063
  </div>
4064
+ ${l?c`
4065
+ <div style="padding: 0 24px;">
4066
+ <label style="display:flex;align-items:center;gap:8px;">
4067
+ <span>${this.lang=="sv"?"Tid:":"Time:"}</span>
4068
+ <scb-textfield type="time" .value=${`${String(this._selectedHour).padStart(2,"0")}:${String(this._selectedMinute).padStart(2,"0")}`} @blur=${this._onTimeChange} aria-label="${this.lang=="sv"?"Tid":"Time"}"></scb-textfield>
4069
+ </label>
4070
+ </div>
4071
+ `:""}
4064
4072
  <div class="datepicker-footer">
4065
- ${!this._showMonthDropdown&&!this._showYearDropdown&&this.variant=="popup"?c`
4073
+ ${!this._showMonthDropdown&&!this._showYearDropdown?c`
4066
4074
  <scb-button variant="text" label=${this.lang=="sv"?"Stäng":"Close"} @click=${this._close}></scb-button>
4067
4075
  `:""}
4068
4076
  </div>
4069
4077
  </div>
4070
- `}_toggleMonthDropdown(){this._showMonthDropdown=!this._showMonthDropdown,this._showMonthDropdown&&(this._showYearDropdown=!1,setTimeout(()=>{const e=this.renderRoot.querySelector("#selected-month");e&&e.scrollIntoView({block:"center"})},0))}_toggleYearDropdown(){this._showYearDropdown=!this._showYearDropdown,this._showYearDropdown&&(this._showMonthDropdown=!1,setTimeout(()=>{const e=this.renderRoot.querySelector("#selected-year");e&&e.scrollIntoView({block:"center"})},0))}_onMonthChangeCustom(e){const t=this._currentDate.getFullYear();this._currentDate=new Date(t,e,1),this._showMonthDropdown=!1}_onYearChangeCustom(e){const t=this._currentDate.getMonth();this._currentDate=new Date(e,t,1),this._showYearDropdown=!1}_isToday(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}_isSelected(e){return this._selectedDate&&e.getDate()===this._selectedDate.getDate()&&e.getMonth()===this._selectedDate.getMonth()&&e.getFullYear()===this._selectedDate.getFullYear()}_selectDate(e){this._selectedDate=e;const t=e.toISOString().slice(0,10);this.dispatchEvent(new CustomEvent("date-selected",{detail:{value:t},bubbles:!0,composed:!0}))}},a.ScbDatepicker.styles=[m`
4078
+ `}_getMonthDays(e,t){const i=new Date(Date.UTC(e,t,1)),r=new Date(Date.UTC(e,t+1,0)),s=[];let l=[],h=i.getUTCDay(),p=h===0?6:h-1;for(let v=0;v<p;v++)l.push(null);for(let v=1;v<=r.getUTCDate();v++){const f=new Date(Date.UTC(e,t,v));l.push(f),l.length===7&&(s.push(l),l=[])}if(l.length){for(;l.length<7;)l.push(null);s.push(l)}return s}_toggleMonthDropdown(){this._showMonthDropdown=!this._showMonthDropdown,this._showMonthDropdown&&(this._showYearDropdown=!1,setTimeout(()=>{const e=this.renderRoot.querySelector("#selected-month");e&&e.scrollIntoView({block:"center"})},0))}_toggleYearDropdown(){this._showYearDropdown=!this._showYearDropdown,this._showYearDropdown&&(this._showMonthDropdown=!1,setTimeout(()=>{const e=this.renderRoot.querySelector("#selected-year");e&&e.scrollIntoView({block:"center"})},0))}_onMonthChangeCustom(e){const t=this._currentDate.getFullYear();this._currentDate=new Date(t,e,1),this._showMonthDropdown=!1}_onYearChangeCustom(e){const t=this._currentDate.getMonth();this._currentDate=new Date(e,t,1),this._showYearDropdown=!1}_isToday(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}_isSelected(e){return this._selectedDate&&e.getDate()===this._selectedDate.getDate()&&e.getMonth()===this._selectedDate.getMonth()&&e.getFullYear()===this._selectedDate.getFullYear()}_selectDate(e){if(this._selectedDate=e,this.variant==="datetime-local"){const t=new Date(e);t.setHours(this._selectedHour??0,this._selectedMinute??0,0,0),this._selectedHour=t.getHours(),this._selectedMinute=t.getMinutes();const i=s=>s.toString().padStart(2,"0"),r=`${t.getFullYear()}-${i(t.getMonth()+1)}-${i(t.getDate())} ${i(t.getHours())}:${i(t.getMinutes())}`;this.dispatchEvent(new CustomEvent("date-selected",{detail:{value:r},bubbles:!0,composed:!0}))}else{const t=e.toISOString().slice(0,10);this.dispatchEvent(new CustomEvent("date-selected",{detail:{value:t},bubbles:!0,composed:!0}))}}_fireDateTimeChange(){if(this.variant==="datetime-local"&&this._selectedDate){const e=new Date(this._selectedDate);e.setHours(this._selectedHour??0,this._selectedMinute??0,0,0);const t=r=>r.toString().padStart(2,"0"),i=`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}`;this.dispatchEvent(new CustomEvent("date-selected",{detail:{value:i},bubbles:!0,composed:!0}))}}},a.ScbDatepicker.styles=[m`
4071
4079
  :host {
4072
4080
  --scb-datepicker-width: 380px;
4073
4081
  max-width: var(--scb-datepicker-width);
@@ -4233,7 +4241,7 @@ var ScbWcTest=function(a){"use strict";var kl;function d(o,e,t,i){var r=argument
4233
4241
  .close-datepicker:hover {
4234
4242
  background: var(--md-sys-color-primary-container, #e3f2fd);
4235
4243
  }
4236
- `],je([w()],a.ScbDatepicker.prototype,"_currentDate",2),je([w()],a.ScbDatepicker.prototype,"_selectedDate",2),je([w()],a.ScbDatepicker.prototype,"_showMonthDropdown",2),je([w()],a.ScbDatepicker.prototype,"_showYearDropdown",2),je([n({type:String})],a.ScbDatepicker.prototype,"variant",2),je([n({type:String})],a.ScbDatepicker.prototype,"lang",2),je([n({type:String})],a.ScbDatepicker.prototype,"selectedValue",2),je([n({type:Boolean})],a.ScbDatepicker.prototype,"open",2),a.ScbDatepicker=je([g("scb-datepicker")],a.ScbDatepicker);var zp=Object.defineProperty,Ip=Object.getOwnPropertyDescriptor,Kn=o=>{throw TypeError(o)},Y=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ip(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&zp(e,t,r),r},Pp=(o,e,t)=>e.has(o)||Kn("Cannot "+t),Op=(o,e,t)=>e.has(o)?Kn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Ke=(o,e,t)=>(Pp(o,e,"access private method"),t),Ce,Ha,Zr,Oi;a.ScbTextField=class extends y{constructor(){super(),Op(this,Ce),this._internals=null,this._inputFocused=!1,this._kbShouldShowRing=!1,this._onGlobalKeydown=e=>{e.key==="Tab"&&(this._kbShouldShowRing=!0,this._inputFocused&&Ke(this,Ce,Oi).call(this))},this._onGlobalPointerDown=()=>{this._kbShouldShowRing=!1,this._inputFocused&&Ke(this,Ce,Oi).call(this)},this.type="text",this.label="",this.supportingText="",this.errorText="",this.leadingIcon="",this.name="",this.pattern="",this.value="",this.underLabel="",this.error=!1,this.disabled=!1,this.required=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",this._form=null,this._formSubmitHandler=null,this._formResetHandler=null,this._initialValue="",this._inputId="",this._showDatepicker=!1,this._toggleDatepicker=()=>{this._showDatepicker=!this._showDatepicker},this._onDateSelected=e=>{if(this.value=e.detail.value,this._showDatepicker=!1,this._internals){const t=this.disabled?null:this.value;this._internals.setFormValue(t)}if(this.pattern){const t=new RegExp(this.pattern);this.error=!t.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}))},"attachInternals"in this&&(this._internals=this.attachInternals())}render(){const e=this.leadingIcon?c`<md-icon class="scb-textfield-icon">${this.leadingIcon}</md-icon>`:null,t=this.error?c`<md-icon class="scb-textfield-error-icon" aria-hidden="true">error</md-icon>`:null;this.underLabel=this.error?this.errorText||"Ogiltig inmatning.":this.supportingText,this.value=this.value||"";const i=this.underLabel?`${this._inputId}-supporting-text`:void 0,r=this.type==="search"&&this.value?c`
4244
+ `],Ce([w()],a.ScbDatepicker.prototype,"_currentDate",2),Ce([w()],a.ScbDatepicker.prototype,"_selectedDate",2),Ce([w()],a.ScbDatepicker.prototype,"_showMonthDropdown",2),Ce([w()],a.ScbDatepicker.prototype,"_showYearDropdown",2),Ce([n({type:String})],a.ScbDatepicker.prototype,"variant",2),Ce([n({type:String})],a.ScbDatepicker.prototype,"lang",2),Ce([n({type:String})],a.ScbDatepicker.prototype,"selectedValue",2),Ce([n({type:Boolean})],a.ScbDatepicker.prototype,"open",2),Ce([w()],a.ScbDatepicker.prototype,"_selectedHour",2),Ce([w()],a.ScbDatepicker.prototype,"_selectedMinute",2),a.ScbDatepicker=Ce([g("scb-datepicker")],a.ScbDatepicker);var zp=Object.defineProperty,Ip=Object.getOwnPropertyDescriptor,Kn=o=>{throw TypeError(o)},Y=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ip(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&zp(e,t,r),r},Pp=(o,e,t)=>e.has(o)||Kn("Cannot "+t),Op=(o,e,t)=>e.has(o)?Kn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Ke=(o,e,t)=>(Pp(o,e,"access private method"),t),Ee,Ha,Zr,Oi;a.ScbTextField=class extends y{constructor(){super(),Op(this,Ee),this._internals=null,this._inputFocused=!1,this._kbShouldShowRing=!1,this._onGlobalKeydown=e=>{e.key==="Tab"&&(this._kbShouldShowRing=!0,this._inputFocused&&Ke(this,Ee,Oi).call(this))},this._onGlobalPointerDown=()=>{this._kbShouldShowRing=!1,this._inputFocused&&Ke(this,Ee,Oi).call(this)},this.type="text",this.label="",this.supportingText="",this.errorText="",this.leadingIcon="",this.name="",this.pattern="",this.value="",this.underLabel="",this.error=!1,this.disabled=!1,this.required=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",this._form=null,this._formSubmitHandler=null,this._formResetHandler=null,this._initialValue="",this._inputId="",this._showDatepicker=!1,this._toggleDatepicker=()=>{this._showDatepicker=!this._showDatepicker},this._onDateSelected=e=>{if(this.value=e.detail.value,this._showDatepicker=!1,this._internals){const t=this.disabled?null:this.value;this._internals.setFormValue(t)}if(this.pattern){const t=new RegExp(this.pattern);this.error=!t.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}))},"attachInternals"in this&&(this._internals=this.attachInternals())}render(){const e=this.leadingIcon?c`<md-icon class="scb-textfield-icon">${this.leadingIcon}</md-icon>`:null,t=this.error?c`<md-icon class="scb-textfield-error-icon" aria-hidden="true">error</md-icon>`:null;this.underLabel=this.error?this.errorText||"Ogiltig inmatning.":this.supportingText,this.value=this.value||"";const i=this.underLabel?`${this._inputId}-supporting-text`:void 0,r=this.type==="search"&&this.value?c`
4237
4245
  <button
4238
4246
  type="button"
4239
4247
  class="scb-textfield-clear"
@@ -4312,24 +4320,95 @@ ${this.value}</textarea
4312
4320
  aria-invalid=${this.error?"true":"false"}
4313
4321
  aria-describedby=${i}
4314
4322
  readonly
4323
+ @focus=${this._toggleDatepicker}
4324
+ @click=${this._toggleDatepicker}
4315
4325
  />
4316
- ${t}
4317
4326
  <md-ripple></md-ripple>
4318
4327
  <md-focus-ring class="input-ring"></md-focus-ring>
4319
4328
  </div>
4320
- <scb-icon-button
4321
- class="scb-textfield-datepicker-button"
4322
- icon="calendar_today"
4329
+ ${this.error?t:c`
4330
+ <scb-icon-button
4331
+ class="scb-textfield-datepicker-button"
4332
+ icon="calendar_today"
4333
+ @click=${this._toggleDatepicker}
4334
+ aria-label="Välj datum"
4335
+ ></scb-icon-button>`}
4336
+ <scb-datepicker
4337
+ .selectedValue=${this.value}
4338
+ .open=${this._showDatepicker}
4339
+ @date-selected=${this._onDateSelected}
4340
+ ></scb-datepicker>
4341
+ </div>
4342
+ `:this.type==="datetime-local"?c`
4343
+ <label class="scb-textfield-label" for="${this._inputId}">${this.label}</label>
4344
+ <span
4345
+ class="scb-textfield-supporting-text"
4346
+ id="${this.underLabel?`${this._inputId}-supporting-text`:""}"
4347
+ >${this.underLabel}</span
4348
+ >
4349
+ <div class="scb-textfield-wrapper" style="position:relative;">
4350
+ ${e}
4351
+ <div class="ripple-wrapper">
4352
+ <input
4353
+ class="scb-textfield${this.error?" has-error-icon":""}"
4354
+ .value=${this.value}
4355
+ type="text"
4356
+ name="${this.name}"
4357
+ id="${this._inputId}"
4358
+ ?disabled=${this.disabled}
4359
+ ?required=${this.required}
4360
+ aria-invalid=${this.error?"true":"false"}
4361
+ aria-describedby=${i}
4362
+ readonly
4363
+ @focus=${this._toggleDatepicker}
4323
4364
  @click=${this._toggleDatepicker}
4324
- aria-label="Välj datum"
4325
- ></scb-icon-button>
4365
+ />
4366
+
4367
+ <md-ripple></md-ripple>
4368
+ <md-focus-ring class="input-ring"></md-focus-ring>
4369
+ </div>
4370
+
4371
+ ${this.error?t:c`
4372
+ <scb-icon-button
4373
+ class="scb-textfield-datepicker-button"
4374
+ icon="calendar_today"
4375
+ @click=${this._toggleDatepicker}
4376
+ aria-label="Välj datum"
4377
+ ></scb-icon-button>`}
4326
4378
  <scb-datepicker
4327
- variant="popup"
4379
+ variant="datetime-local"
4328
4380
  .selectedValue=${this.value}
4329
4381
  .open=${this._showDatepicker}
4330
4382
  @date-selected=${this._onDateSelected}
4331
4383
  ></scb-datepicker>
4332
4384
  </div>
4385
+ `:this.type==="time"?c`
4386
+ <label class="scb-textfield-label" for="${this._inputId}">${this.label}</label>
4387
+ <span
4388
+ class="scb-textfield-supporting-text"
4389
+ id="${this.underLabel?`${this._inputId}-supporting-text`:""}"
4390
+ >${this.underLabel}</span
4391
+ >
4392
+ <div class="scb-textfield-wrapper">
4393
+ ${e}
4394
+ <div class="ripple-wrapper">
4395
+ <input
4396
+ class="scb-textfield${this.error?" has-error-icon":""}"
4397
+ .value=${this.value}
4398
+ type="time"
4399
+ name="${this.name}"
4400
+ id="${this._inputId}"
4401
+ ?disabled=${this.disabled}
4402
+ ?required=${this.required}
4403
+ aria-invalid=${this.error?"true":"false"}
4404
+ aria-describedby=${i}
4405
+ @input=${s=>{const l=s.target;if(this.value=l.value,this._internals){const h=this.disabled?null:this.value;this._internals.setFormValue(h)}this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("onValueChanged",{detail:{value:this.value},bubbles:!0,composed:!0}))}}
4406
+ />
4407
+ ${t}
4408
+ <md-ripple></md-ripple>
4409
+ <md-focus-ring class="input-ring"></md-focus-ring>
4410
+ </div>
4411
+ </div>
4333
4412
  `:c`
4334
4413
  <label class="scb-textfield-label" for="${this._inputId}">${this.label}</label>
4335
4414
  <span
@@ -4357,7 +4436,7 @@ ${this.value}</textarea
4357
4436
  <md-focus-ring class="input-ring"></md-focus-ring>
4358
4437
  </div>
4359
4438
  </div>
4360
- `}firstUpdated(e){var i;super.firstUpdated(e),this._initialValue=this.value;const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-textfield");t&&(t.addEventListener("input",()=>{const r=t;if(this.value=r.value,this._internals){const s=this.disabled?null:this.value;this._internals.setFormValue(s)}if(this.pattern){const s=new RegExp(this.pattern);this.error=!s.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",()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),t.addEventListener("select",()=>{this.dispatchEvent(new Event("select",{bubbles:!0,composed:!0}))}),t.addEventListener("focus",()=>{this._inputFocused=!0,Ke(this,Ce,Oi).call(this)}),t.addEventListener("blur",()=>{this._inputFocused=!1,Ke(this,Ce,Oi).call(this)})),Ke(this,Ce,Ha).call(this)}updated(e){if(super.updated(e),this.toggleAttribute("aria-disabled",this.disabled),this._internals&&(e.has("value")||e.has("disabled"))){const t=this.disabled?null:this.value;this._internals.setFormValue(t)}(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Ke(this,Ce,Ha).call(this)}formDisabledCallback(e){this.disabled=e}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)),window.addEventListener("keydown",this._onGlobalKeydown,!0),window.addEventListener("pointerdown",this._onGlobalPointerDown,!0)}disconnectedCallback(){super.disconnectedCallback(),this._form&&this._formSubmitHandler&&(this._form.removeEventListener("submit",this._formSubmitHandler,!0),this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0)),window.removeEventListener("keydown",this._onGlobalKeydown,!0),window.removeEventListener("pointerdown",this._onGlobalPointerDown,!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 i=e.reportValidity();this.error=!i;const r=i?"":this.errorText||e.validationMessage||"Ogiltig inmatning.";return i||(this.errorText=r),this._internals&&(i?this._internals.setValidity({}):this._internals.setValidity({customError:!0},r,e)),i}return!0}_onClearClick(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");if(e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){if(e.value="",this.value="",this._internals){const i=this.disabled?null:this.value;this._internals.setFormValue(i),this._internals.setValidity({})}this.error=!1,e.setCustomValidity(""),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("onValueChanged",{detail:{value:this.value},bubbles:!0,composed:!0})),e.focus()}}},Ce=new WeakSet,Ha=function(){const o=Ke(this,Ce,Zr).call(this,this.spacing),e=Ke(this,Ce,Zr).call(this,this.spacingTop)??o,t=Ke(this,Ce,Zr).call(this,this.spacingBottom)??o;e?this.style.setProperty("--scb-textfield-spacing-block-start",e):this.style.removeProperty("--scb-textfield-spacing-block-start"),t?this.style.setProperty("--scb-textfield-spacing-block-end",t):this.style.removeProperty("--scb-textfield-spacing-block-end")},Zr=function(o){if(!o)return;const e=String(o).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e},Oi=function(){var e;const o=(e=this.renderRoot)==null?void 0:e.querySelector(".ripple-wrapper");o&&(this._inputFocused&&this._kbShouldShowRing?o.setAttribute("data-kb-focus","true"):o.removeAttribute("data-kb-focus"))},a.ScbTextField.formAssociated=!0,a.ScbTextField.styles=[m`
4439
+ `}firstUpdated(e){var i;super.firstUpdated(e),this._initialValue=this.value;const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-textfield");t&&(t.addEventListener("input",()=>{const r=t;if(this.value=r.value,this._internals){const s=this.disabled?null:this.value;this._internals.setFormValue(s)}if(this.pattern){const s=new RegExp(this.pattern);this.error=!s.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",()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),t.addEventListener("select",()=>{this.dispatchEvent(new Event("select",{bubbles:!0,composed:!0}))}),t.addEventListener("focus",()=>{this._inputFocused=!0,Ke(this,Ee,Oi).call(this)}),t.addEventListener("blur",()=>{this._inputFocused=!1,Ke(this,Ee,Oi).call(this)})),Ke(this,Ee,Ha).call(this)}updated(e){if(super.updated(e),this.toggleAttribute("aria-disabled",this.disabled),this._internals&&(e.has("value")||e.has("disabled"))){const t=this.disabled?null:this.value;this._internals.setFormValue(t)}(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Ke(this,Ee,Ha).call(this)}formDisabledCallback(e){this.disabled=e}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)),window.addEventListener("keydown",this._onGlobalKeydown,!0),window.addEventListener("pointerdown",this._onGlobalPointerDown,!0)}disconnectedCallback(){super.disconnectedCallback(),this._form&&this._formSubmitHandler&&(this._form.removeEventListener("submit",this._formSubmitHandler,!0),this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0)),window.removeEventListener("keydown",this._onGlobalKeydown,!0),window.removeEventListener("pointerdown",this._onGlobalPointerDown,!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 i=e.reportValidity();this.error=!i;const r=i?"":this.errorText||e.validationMessage||"Ogiltig inmatning.";return i||(this.errorText=r),this._internals&&(i?this._internals.setValidity({}):this._internals.setValidity({customError:!0},r,e)),i}return!0}_onClearClick(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-textfield");if(e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){if(e.value="",this.value="",this._internals){const i=this.disabled?null:this.value;this._internals.setFormValue(i),this._internals.setValidity({})}this.error=!1,e.setCustomValidity(""),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("onValueChanged",{detail:{value:this.value},bubbles:!0,composed:!0})),e.focus()}}},Ee=new WeakSet,Ha=function(){const o=Ke(this,Ee,Zr).call(this,this.spacing),e=Ke(this,Ee,Zr).call(this,this.spacingTop)??o,t=Ke(this,Ee,Zr).call(this,this.spacingBottom)??o;e?this.style.setProperty("--scb-textfield-spacing-block-start",e):this.style.removeProperty("--scb-textfield-spacing-block-start"),t?this.style.setProperty("--scb-textfield-spacing-block-end",t):this.style.removeProperty("--scb-textfield-spacing-block-end")},Zr=function(o){if(!o)return;const e=String(o).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e},Oi=function(){var e;const o=(e=this.renderRoot)==null?void 0:e.querySelector(".ripple-wrapper");o&&(this._inputFocused&&this._kbShouldShowRing?o.setAttribute("data-kb-focus","true"):o.removeAttribute("data-kb-focus"))},a.ScbTextField.formAssociated=!0,a.ScbTextField.styles=[m`
4361
4440
  :host {
4362
4441
  --scb-textfield-number-max-width: 280px;
4363
4442
  --scb-textfield-text-max-width: 400px;
@@ -4383,6 +4462,12 @@ ${this.value}</textarea
4383
4462
  :host([type='text']) {
4384
4463
  --scb-textfield-max-width: var(--scb-textfield-text-max-width);
4385
4464
  }
4465
+ :host([type='date']) {
4466
+ --scb-textfield-max-width: var(--scb-textfield-text-max-width);
4467
+ }
4468
+ :host([type='datetime-local']) {
4469
+ --scb-textfield-max-width: var(--scb-textfield-text-max-width);
4470
+ }
4386
4471
  :host([type='search']) {
4387
4472
  --scb-textfield-max-width: var(--scb-textfield-search-max-width);
4388
4473
  }
@@ -4404,6 +4489,13 @@ ${this.value}</textarea
4404
4489
  :host([type='date']) {
4405
4490
  --scb-textfield-max-width: var(--scb-textfield-text-max-width);
4406
4491
  }
4492
+ :host([type='time']) {
4493
+ --scb-textfield-max-width: var(--scb-textfield-text-max-width);
4494
+ }
4495
+ input[type="time"]::-webkit-calendar-picker-indicator {
4496
+ display: none;
4497
+ background: none;
4498
+ }
4407
4499
 
4408
4500
  :host {
4409
4501
  display: flex;
@@ -4927,7 +5019,7 @@ ${this.value}</textarea
4927
5019
  display:block;
4928
5020
  margin-block: var(--scb-choice-gap, 6px);
4929
5021
  }
4930
- `,j([n({type:Boolean,reflect:!0})],a.ScbDialog.prototype,"open",2),j([n({type:Boolean,attribute:!1})],a.ScbDialog.prototype,"inSb",2),j([n({type:Boolean,attribute:"scrim-close"})],a.ScbDialog.prototype,"scrimClose",2),j([n({type:String})],a.ScbDialog.prototype,"variant",2),j([n({type:String})],a.ScbDialog.prototype,"label",2),j([n({type:String})],a.ScbDialog.prototype,"icon",2),j([n({type:String,attribute:"supporting-text"})],a.ScbDialog.prototype,"supportingText",2),j([n({type:String,attribute:"ok-button"})],a.ScbDialog.prototype,"okButton",2),j([n({type:String,attribute:"cancel-button"})],a.ScbDialog.prototype,"cancelButton",2),j([n({type:String,attribute:"delete-button"})],a.ScbDialog.prototype,"deleteButton",2),j([n({type:String,attribute:"confirm-button"})],a.ScbDialog.prototype,"confirmButton",2),j([n({type:String,attribute:"deny-button"})],a.ScbDialog.prototype,"denyButton",2),j([n({type:String,attribute:"reset-button"})],a.ScbDialog.prototype,"resetButton",2),j([n({type:String,attribute:"submit-button"})],a.ScbDialog.prototype,"submitButton",2),j([n({type:String,attribute:"form-id"})],a.ScbDialog.prototype,"formId",2),j([n({type:String,attribute:"form-action"})],a.ScbDialog.prototype,"formAction",2),j([n({type:String,attribute:"form-method"})],a.ScbDialog.prototype,"formMethod",2),a.ScbDialog=j([g("scb-dialog")],a.ScbDialog);var Wp=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,Pt=(o,e,t,i)=>{for(var r=i>1?void 0:i?jp(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Wp(e,t,r),r};a.ScbDrawerItem=class extends y{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.__focusId=`f-${Math.random().toString(36).slice(2)}`,this._toggleExpand=e=>{e&&e.stopPropagation(),this.hasSlotContent&&this.__setExpanded(!this.expanded)},this._onButtonClick=e=>{e.stopPropagation(),this._dispatchSelect(),this._toggleExpand()},this._onLinkClick=()=>{this._dispatchSelect()},this._onKeyDown=e=>{var r,s,l,h,p,v,f,b,_;const t=Array.from(((r=this.parentElement)==null?void 0:r.querySelectorAll("scb-drawer-item"))||[]),i=t.indexOf(this);switch(e.key){case"ArrowDown":{e.preventDefault(),(l=(s=(t[i+1]||t[0]).shadowRoot)==null?void 0:s.querySelector(".scb-drawer-label-text"))==null||l.focus();break}case"ArrowUp":{e.preventDefault(),(p=(h=(t[i-1]||t[t.length-1]).shadowRoot)==null?void 0:h.querySelector(".scb-drawer-label-text"))==null||p.focus();break}case"Home":{e.preventDefault(),(f=(v=t[0].shadowRoot)==null?void 0:v.querySelector(".scb-drawer-label-text"))==null||f.focus();break}case"End":{e.preventDefault(),(_=(b=t[t.length-1].shadowRoot)==null?void 0:b.querySelector(".scb-drawer-label-text"))==null||_.focus();break}}}}get __submenuEl(){return this.renderRoot.querySelector(`#${this.__submenuId}`)}async __ensureDepsLoaded(){a.ScbDrawerItem.__rippleLoaded||(await Promise.resolve().then(()=>or),a.ScbDrawerItem.__rippleLoaded=!0),a.ScbDrawerItem.__focusRingLoaded||(await Promise.resolve().then(()=>Zl),a.ScbDrawerItem.__focusRingLoaded=!0),this.leadingIcon&&!a.ScbDrawerItem.__iconLoaded&&(await Promise.resolve().then(()=>Pe),a.ScbDrawerItem.__iconLoaded=!0),this.hasSlotContent&&!a.ScbDrawerItem.__iconButtonLoaded&&(await Promise.resolve().then(()=>$h),a.ScbDrawerItem.__iconButtonLoaded=!0)}_onSlotChange(e){const i=e.target.assignedElements({flatten:!0});this.hasSlotContent=i.length>0&&i.every(r=>r.tagName==="SCB-SUB-DRAWER")}__setExpanded(e){this.hasSlotContent&&(this.expanded=e,this.dispatchEvent(new CustomEvent("scb-drawer-expand",{bubbles:!0,composed:!0,detail:{item:this,expanded:e}})))}_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(i=>i.tagName==="SCB-SUB-DRAWER")}await this.__ensureDepsLoaded()}updated(e){e.has("leadingIcon")&&this.leadingIcon&&this.__ensureDepsLoaded(),e.has("hasSlotContent")&&this.hasSlotContent&&this.__ensureDepsLoaded(),e.has("expanded")&&this.__applyInert()}__applyInert(){const e=this.__submenuEl;e&&(this.expanded?(e.removeAttribute("inert"),e.setAttribute("aria-hidden","false")):(e.setAttribute("inert",""),e.setAttribute("aria-hidden","true")))}render(){const e=!!this.leadingIcon,t=!!this.itemHref,i=this.hasSlotContent;return c`
5022
+ `,j([n({type:Boolean,reflect:!0})],a.ScbDialog.prototype,"open",2),j([n({type:Boolean,attribute:!1})],a.ScbDialog.prototype,"inSb",2),j([n({type:Boolean,attribute:"scrim-close"})],a.ScbDialog.prototype,"scrimClose",2),j([n({type:String})],a.ScbDialog.prototype,"variant",2),j([n({type:String})],a.ScbDialog.prototype,"label",2),j([n({type:String})],a.ScbDialog.prototype,"icon",2),j([n({type:String,attribute:"supporting-text"})],a.ScbDialog.prototype,"supportingText",2),j([n({type:String,attribute:"ok-button"})],a.ScbDialog.prototype,"okButton",2),j([n({type:String,attribute:"cancel-button"})],a.ScbDialog.prototype,"cancelButton",2),j([n({type:String,attribute:"delete-button"})],a.ScbDialog.prototype,"deleteButton",2),j([n({type:String,attribute:"confirm-button"})],a.ScbDialog.prototype,"confirmButton",2),j([n({type:String,attribute:"deny-button"})],a.ScbDialog.prototype,"denyButton",2),j([n({type:String,attribute:"reset-button"})],a.ScbDialog.prototype,"resetButton",2),j([n({type:String,attribute:"submit-button"})],a.ScbDialog.prototype,"submitButton",2),j([n({type:String,attribute:"form-id"})],a.ScbDialog.prototype,"formId",2),j([n({type:String,attribute:"form-action"})],a.ScbDialog.prototype,"formAction",2),j([n({type:String,attribute:"form-method"})],a.ScbDialog.prototype,"formMethod",2),a.ScbDialog=j([g("scb-dialog")],a.ScbDialog);var Wp=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,Pt=(o,e,t,i)=>{for(var r=i>1?void 0:i?jp(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Wp(e,t,r),r};a.ScbDrawerItem=class extends y{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.__focusId=`f-${Math.random().toString(36).slice(2)}`,this._toggleExpand=e=>{e&&e.stopPropagation(),this.hasSlotContent&&this.__setExpanded(!this.expanded)},this._onButtonClick=e=>{e.stopPropagation(),this._dispatchSelect(),this._toggleExpand()},this._onLinkClick=()=>{this._dispatchSelect()},this._onKeyDown=e=>{var r,s,l,h,p,v,f,b,_;const t=Array.from(((r=this.parentElement)==null?void 0:r.querySelectorAll("scb-drawer-item"))||[]),i=t.indexOf(this);switch(e.key){case"ArrowDown":{e.preventDefault(),(l=(s=(t[i+1]||t[0]).shadowRoot)==null?void 0:s.querySelector(".scb-drawer-label-text"))==null||l.focus();break}case"ArrowUp":{e.preventDefault(),(p=(h=(t[i-1]||t[t.length-1]).shadowRoot)==null?void 0:h.querySelector(".scb-drawer-label-text"))==null||p.focus();break}case"Home":{e.preventDefault(),(f=(v=t[0].shadowRoot)==null?void 0:v.querySelector(".scb-drawer-label-text"))==null||f.focus();break}case"End":{e.preventDefault(),(_=(b=t[t.length-1].shadowRoot)==null?void 0:b.querySelector(".scb-drawer-label-text"))==null||_.focus();break}}}}get __submenuEl(){return this.renderRoot.querySelector(`#${this.__submenuId}`)}async __ensureDepsLoaded(){a.ScbDrawerItem.__rippleLoaded||(await Promise.resolve().then(()=>or),a.ScbDrawerItem.__rippleLoaded=!0),a.ScbDrawerItem.__focusRingLoaded||(await Promise.resolve().then(()=>Zl),a.ScbDrawerItem.__focusRingLoaded=!0),this.leadingIcon&&!a.ScbDrawerItem.__iconLoaded&&(await Promise.resolve().then(()=>Oe),a.ScbDrawerItem.__iconLoaded=!0),this.hasSlotContent&&!a.ScbDrawerItem.__iconButtonLoaded&&(await Promise.resolve().then(()=>$h),a.ScbDrawerItem.__iconButtonLoaded=!0)}_onSlotChange(e){const i=e.target.assignedElements({flatten:!0});this.hasSlotContent=i.length>0&&i.every(r=>r.tagName==="SCB-SUB-DRAWER")}__setExpanded(e){this.hasSlotContent&&(this.expanded=e,this.dispatchEvent(new CustomEvent("scb-drawer-expand",{bubbles:!0,composed:!0,detail:{item:this,expanded:e}})))}_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(i=>i.tagName==="SCB-SUB-DRAWER")}await this.__ensureDepsLoaded()}updated(e){e.has("leadingIcon")&&this.leadingIcon&&this.__ensureDepsLoaded(),e.has("hasSlotContent")&&this.hasSlotContent&&this.__ensureDepsLoaded(),e.has("expanded")&&this.__applyInert()}__applyInert(){const e=this.__submenuEl;e&&(this.expanded?(e.removeAttribute("inert"),e.setAttribute("aria-hidden","false")):(e.setAttribute("inert",""),e.setAttribute("aria-hidden","true")))}render(){const e=!!this.leadingIcon,t=!!this.itemHref,i=this.hasSlotContent;return c`
4931
5023
  <div class="scb-drawer-item">
4932
5024
  <div class="scb-drawer-item-label" ?selected=${this.selected}>
4933
5025
  ${t?c`
@@ -5129,7 +5221,7 @@ ${this.value}</textarea
5129
5221
  margin-block: var(--spacing-2, 4px);
5130
5222
  margin-inline: var(--spacing-4, 12px);
5131
5223
  }
5132
- `,Zn([n({type:String})],a.ScbDrawerSection.prototype,"label",2),a.ScbDrawerSection=Zn([g("scb-drawer-section")],a.ScbDrawerSection);const Xp=Object.freeze(Object.defineProperty({__proto__:null,get ScbDrawerSection(){return a.ScbDrawerSection}},Symbol.toStringTag,{value:"Module"}));var Zp=Object.defineProperty,Jp=Object.getOwnPropertyDescriptor,Ee=(o,e,t,i)=>{for(var r=i>1?void 0:i?Jp(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Zp(e,t,r),r};a.ScbDrawer=class extends y{constructor(){super(...arguments),this.label="",this.subLabel="",this.floating=!1,this.left=!0,this.right=!1,this.open=!1,this.overlay=!1,this.lockScroll=!1,this.closeOnOverlay=!0,this.modal=!1,this.__lastTriggerEl=null,this._onGlobalSelect=e=>{const t=e;this.querySelectorAll("scb-drawer-item").forEach(r=>r.selected=!1),this.contains(t.detail.item)&&(t.detail.item.selected=!0)},this.__onDocumentClick=e=>{const t=this.__getActionFromEvent(e);if(t){t==="open"&&this.__setOpen(!0),t==="close"&&this.__setOpen(!1),t==="toggle"&&this.__setOpen(!this.open),e.stopPropagation();return}this.floating&&this.open&&!this.overlay&&(e.composedPath().includes(this)||this.__setOpen(!1))},this.__onDocumentKeydown=e=>{if(this.open){if(e.key==="Escape"){this.__setOpen(!1);return}if(this.overlay&&e.key==="Tab"){const t=this.__getFocusable();if(t.length===0)return;const i=t[0],r=t[t.length-1],s=this.renderRoot,l=s.activeElement||document.activeElement;e.shiftKey?(l===i||!s.contains(l))&&(e.preventDefault(),r.focus()):(l===r||!s.contains(l))&&(e.preventDefault(),i.focus())}}}}static async __ensureParts(){a.ScbDrawer.__partsReady||(a.ScbDrawer.__partsLoading||(a.ScbDrawer.__partsLoading=Promise.all([Promise.resolve().then(()=>Kp),Promise.resolve().then(()=>Xp),Promise.resolve().then(()=>tu)]).then(()=>{a.ScbDrawer.__partsReady=!0})),await a.ScbDrawer.__partsLoading)}static __ensureOverlayStyles(){if(typeof document>"u"||document.getElementById("scb-drawer-overlay-styles"))return;const e=document.createElement("style");e.id="scb-drawer-overlay-styles",e.textContent=`
5224
+ `,Zn([n({type:String})],a.ScbDrawerSection.prototype,"label",2),a.ScbDrawerSection=Zn([g("scb-drawer-section")],a.ScbDrawerSection);const Xp=Object.freeze(Object.defineProperty({__proto__:null,get ScbDrawerSection(){return a.ScbDrawerSection}},Symbol.toStringTag,{value:"Module"}));var Zp=Object.defineProperty,Jp=Object.getOwnPropertyDescriptor,Te=(o,e,t,i)=>{for(var r=i>1?void 0:i?Jp(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Zp(e,t,r),r};a.ScbDrawer=class extends y{constructor(){super(...arguments),this.label="",this.subLabel="",this.floating=!1,this.left=!0,this.right=!1,this.open=!1,this.overlay=!1,this.lockScroll=!1,this.closeOnOverlay=!0,this.modal=!1,this.__lastTriggerEl=null,this._onGlobalSelect=e=>{const t=e;this.querySelectorAll("scb-drawer-item").forEach(r=>r.selected=!1),this.contains(t.detail.item)&&(t.detail.item.selected=!0)},this.__onDocumentClick=e=>{const t=this.__getActionFromEvent(e);if(t){t==="open"&&this.__setOpen(!0),t==="close"&&this.__setOpen(!1),t==="toggle"&&this.__setOpen(!this.open),e.stopPropagation();return}this.floating&&this.open&&!this.overlay&&(e.composedPath().includes(this)||this.__setOpen(!1))},this.__onDocumentKeydown=e=>{if(this.open){if(e.key==="Escape"){this.__setOpen(!1);return}if(this.overlay&&e.key==="Tab"){const t=this.__getFocusable();if(t.length===0)return;const i=t[0],r=t[t.length-1],s=this.renderRoot,l=s.activeElement||document.activeElement;e.shiftKey?(l===i||!s.contains(l))&&(e.preventDefault(),r.focus()):(l===r||!s.contains(l))&&(e.preventDefault(),i.focus())}}}}static async __ensureParts(){a.ScbDrawer.__partsReady||(a.ScbDrawer.__partsLoading||(a.ScbDrawer.__partsLoading=Promise.all([Promise.resolve().then(()=>Kp),Promise.resolve().then(()=>Xp),Promise.resolve().then(()=>tu)]).then(()=>{a.ScbDrawer.__partsReady=!0})),await a.ScbDrawer.__partsLoading)}static __ensureOverlayStyles(){if(typeof document>"u"||document.getElementById("scb-drawer-overlay-styles"))return;const e=document.createElement("style");e.id="scb-drawer-overlay-styles",e.textContent=`
5133
5225
  .scb-drawer-global-overlay {
5134
5226
  position: fixed;
5135
5227
  inset: 0;
@@ -5282,7 +5374,7 @@ ${this.value}</textarea
5282
5374
  content-visibility: auto;
5283
5375
  contain-intrinsic-size: 0 600px;
5284
5376
  }
5285
- `,Ee([n({type:String})],a.ScbDrawer.prototype,"label",2),Ee([n({type:String,attribute:"sub-label"})],a.ScbDrawer.prototype,"subLabel",2),Ee([n({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"floating",2),Ee([n({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"left",2),Ee([n({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"right",2),Ee([n({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"open",2),Ee([n({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"overlay",2),Ee([n({type:Boolean,reflect:!0,attribute:"lock-scroll"})],a.ScbDrawer.prototype,"lockScroll",2),Ee([n({type:Boolean,reflect:!0,attribute:"close-on-overlay"})],a.ScbDrawer.prototype,"closeOnOverlay",2),Ee([n({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"modal",2),a.ScbDrawer=Ee([g("scb-drawer")],a.ScbDrawer);var Qp=Object.defineProperty,eu=Object.getOwnPropertyDescriptor,Jn=(o,e,t,i)=>{for(var r=i>1?void 0:i?eu(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Qp(e,t,r),r};a.ScbSubDrawer=class extends y{constructor(){super(...arguments),this.label="",this._onGlobalSelect=e=>{const t=e;this.querySelectorAll("scb-drawer-item").forEach(r=>r.selected=!1),this.contains(t.detail.item)&&(t.detail.item.selected=!0)}}connectedCallback(){super.connectedCallback(),window.addEventListener("scb-drawer-select",this._onGlobalSelect)}disconnectedCallback(){window.removeEventListener("scb-drawer-select",this._onGlobalSelect),super.disconnectedCallback()}render(){return c`
5377
+ `,Te([n({type:String})],a.ScbDrawer.prototype,"label",2),Te([n({type:String,attribute:"sub-label"})],a.ScbDrawer.prototype,"subLabel",2),Te([n({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"floating",2),Te([n({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"left",2),Te([n({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"right",2),Te([n({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"open",2),Te([n({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"overlay",2),Te([n({type:Boolean,reflect:!0,attribute:"lock-scroll"})],a.ScbDrawer.prototype,"lockScroll",2),Te([n({type:Boolean,reflect:!0,attribute:"close-on-overlay"})],a.ScbDrawer.prototype,"closeOnOverlay",2),Te([n({type:Boolean,reflect:!0})],a.ScbDrawer.prototype,"modal",2),a.ScbDrawer=Te([g("scb-drawer")],a.ScbDrawer);var Qp=Object.defineProperty,eu=Object.getOwnPropertyDescriptor,Jn=(o,e,t,i)=>{for(var r=i>1?void 0:i?eu(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Qp(e,t,r),r};a.ScbSubDrawer=class extends y{constructor(){super(...arguments),this.label="",this._onGlobalSelect=e=>{const t=e;this.querySelectorAll("scb-drawer-item").forEach(r=>r.selected=!1),this.contains(t.detail.item)&&(t.detail.item.selected=!0)}}connectedCallback(){super.connectedCallback(),window.addEventListener("scb-drawer-select",this._onGlobalSelect)}disconnectedCallback(){window.removeEventListener("scb-drawer-select",this._onGlobalSelect),super.disconnectedCallback()}render(){return c`
5286
5378
  <nav aria-label="${this.label}">
5287
5379
  <slot></slot>
5288
5380
  </nav>
@@ -5352,7 +5444,7 @@ ${this.value}</textarea
5352
5444
  </div>
5353
5445
  </div>
5354
5446
  </div>
5355
- `}async firstUpdated(){el(this,ro,Ua).call(this),a.ScbFactCard.__iconLoaded||(await Promise.resolve().then(()=>Pe),a.ScbFactCard.__iconLoaded=!0)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}},ro=new WeakSet,Ua=function(){const o=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop),t=this.mapSpacingToken(this.spacingBottom),i=e??o,r=t??o;i?this.style.setProperty("--scb-fact-card-spacing-block-start",i):this.style.removeProperty("--scb-fact-card-spacing-block-start"),r?this.style.setProperty("--scb-fact-card-spacing-block-end",r):this.style.removeProperty("--scb-fact-card-spacing-block-end")},a.ScbFactCard.__iconLoaded=!1,a.ScbFactCard.__instances=new Map,a.ScbFactCard.__docListenerAttached=!1,a.ScbFactCard.styles=m`
5447
+ `}async firstUpdated(){el(this,ro,Ua).call(this),a.ScbFactCard.__iconLoaded||(await Promise.resolve().then(()=>Oe),a.ScbFactCard.__iconLoaded=!0)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}},ro=new WeakSet,Ua=function(){const o=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop),t=this.mapSpacingToken(this.spacingBottom),i=e??o,r=t??o;i?this.style.setProperty("--scb-fact-card-spacing-block-start",i):this.style.removeProperty("--scb-fact-card-spacing-block-start"),r?this.style.setProperty("--scb-fact-card-spacing-block-end",r):this.style.removeProperty("--scb-fact-card-spacing-block-end")},a.ScbFactCard.__iconLoaded=!1,a.ScbFactCard.__instances=new Map,a.ScbFactCard.__docListenerAttached=!1,a.ScbFactCard.styles=m`
5356
5448
  :host {
5357
5449
  --scb-fact-card-icon-overhang: 40px;
5358
5450
  display: block;
@@ -5488,7 +5580,7 @@ ${this.value}</textarea
5488
5580
  }
5489
5581
  `,J([n({type:String})],a.ScbFactCard.prototype,"variant",2),J([n({type:String,attribute:"title"})],a.ScbFactCard.prototype,"title",2),J([n({type:String,attribute:"subtitle"})],a.ScbFactCard.prototype,"subtitle",2),J([n({type:String,attribute:"supporting-text"})],a.ScbFactCard.prototype,"supportingText",2),J([n({type:String})],a.ScbFactCard.prototype,"icon",2),J([n({type:Boolean,attribute:"show-close-button"})],a.ScbFactCard.prototype,"showCloseButton",2),J([n({type:Boolean,reflect:!0})],a.ScbFactCard.prototype,"open",2),J([n({type:String,reflect:!0})],a.ScbFactCard.prototype,"sizing",2),J([n({type:String,reflect:!0})],a.ScbFactCard.prototype,"width",2),J([n({type:String,reflect:!0,attribute:"max-width"})],a.ScbFactCard.prototype,"maxWidth",2),J([n({type:String,reflect:!0})],a.ScbFactCard.prototype,"height",2),J([n({type:String,reflect:!0,attribute:"max-height"})],a.ScbFactCard.prototype,"maxHeight",2),J([n({type:String,reflect:!0})],a.ScbFactCard.prototype,"spacing",2),J([n({type:String,reflect:!0,attribute:"spacing-top"})],a.ScbFactCard.prototype,"spacingTop",2),J([n({type:String,reflect:!0,attribute:"spacing-bottom"})],a.ScbFactCard.prototype,"spacingBottom",2),a.ScbFactCard=J([g("scb-fact-card")],a.ScbFactCard);var lu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,tl=(o,e,t,i)=>{for(var r=i>1?void 0:i?cu(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&lu(e,t,r),r};a.ScbFooterSection=class extends y{constructor(){super(...arguments),this.title=""}render(){return c`<slot></slot>`}},a.ScbFooterSection.styles=m`
5490
5582
  :host { display: none; }
5491
- `,tl([n({type:String,reflect:!0})],a.ScbFooterSection.prototype,"title",2),a.ScbFooterSection=tl([g("scb-footer-section")],a.ScbFooterSection);var du=Object.defineProperty,hu=Object.getOwnPropertyDescriptor,il=o=>{throw TypeError(o)},fe=(o,e,t,i)=>{for(var r=i>1?void 0:i?hu(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&du(e,t,r),r},pu=(o,e,t)=>e.has(o)||il("Cannot "+t),uu=(o,e,t)=>e.has(o)?il("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Le=(o,e,t)=>(pu(o,e,"access private method"),t),ge,Wa,Ye;a.ScbGridItem=class extends y{constructor(){super(...arguments),uu(this,ge),this.fit=!1}firstUpdated(){Le(this,ge,Wa).call(this)}updated(){Le(this,ge,Wa).call(this)}render(){return c`<slot></slot>`}},ge=new WeakSet,Wa=function(){Le(this,ge,Ye).call(this,"--col-span",this.hasAttribute("col-span")?String(this.colSpan):null),Le(this,ge,Ye).call(this,"--col-span-compact",this.hasAttribute("col-span-compact")?String(this.colSpanCompact):null),Le(this,ge,Ye).call(this,"--col-span-medium",this.hasAttribute("col-span-medium")?String(this.colSpanMedium):null),Le(this,ge,Ye).call(this,"--col-span-expanded",this.hasAttribute("col-span-expanded")?String(this.colSpanExpanded):null),Le(this,ge,Ye).call(this,"--row-rule",this.hasAttribute("row-span")?`span ${this.rowSpan}`:null),Le(this,ge,Ye).call(this,"--row-rule-compact",this.hasAttribute("row-span-compact")?`span ${this.rowSpanCompact}`:null),Le(this,ge,Ye).call(this,"--row-rule-medium",this.hasAttribute("row-span-medium")?`span ${this.rowSpanMedium}`:null),Le(this,ge,Ye).call(this,"--row-rule-expanded",this.hasAttribute("row-span-expanded")?`span ${this.rowSpanExpanded}`:null),this.align?(this.style.setProperty("--scb-grid-item-align",this.align),this.style.setProperty("align-self",this.align)):(this.style.removeProperty("--scb-grid-item-align"),this.style.removeProperty("align-self")),this.justify?(this.style.setProperty("--scb-grid-item-justify",this.justify),this.style.setProperty("justify-self",this.justify)):(this.style.removeProperty("--scb-grid-item-justify"),this.style.removeProperty("justify-self"))},Ye=function(o,e){e===null||e===""?this.style.removeProperty(o):this.style.setProperty(o,e)},a.ScbGridItem.styles=m`
5583
+ `,tl([n({type:String,reflect:!0})],a.ScbFooterSection.prototype,"title",2),a.ScbFooterSection=tl([g("scb-footer-section")],a.ScbFooterSection);var du=Object.defineProperty,hu=Object.getOwnPropertyDescriptor,il=o=>{throw TypeError(o)},fe=(o,e,t,i)=>{for(var r=i>1?void 0:i?hu(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&du(e,t,r),r},pu=(o,e,t)=>e.has(o)||il("Cannot "+t),uu=(o,e,t)=>e.has(o)?il("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),De=(o,e,t)=>(pu(o,e,"access private method"),t),ge,Wa,Ye;a.ScbGridItem=class extends y{constructor(){super(...arguments),uu(this,ge),this.fit=!1}firstUpdated(){De(this,ge,Wa).call(this)}updated(){De(this,ge,Wa).call(this)}render(){return c`<slot></slot>`}},ge=new WeakSet,Wa=function(){De(this,ge,Ye).call(this,"--col-span",this.hasAttribute("col-span")?String(this.colSpan):null),De(this,ge,Ye).call(this,"--col-span-compact",this.hasAttribute("col-span-compact")?String(this.colSpanCompact):null),De(this,ge,Ye).call(this,"--col-span-medium",this.hasAttribute("col-span-medium")?String(this.colSpanMedium):null),De(this,ge,Ye).call(this,"--col-span-expanded",this.hasAttribute("col-span-expanded")?String(this.colSpanExpanded):null),De(this,ge,Ye).call(this,"--row-rule",this.hasAttribute("row-span")?`span ${this.rowSpan}`:null),De(this,ge,Ye).call(this,"--row-rule-compact",this.hasAttribute("row-span-compact")?`span ${this.rowSpanCompact}`:null),De(this,ge,Ye).call(this,"--row-rule-medium",this.hasAttribute("row-span-medium")?`span ${this.rowSpanMedium}`:null),De(this,ge,Ye).call(this,"--row-rule-expanded",this.hasAttribute("row-span-expanded")?`span ${this.rowSpanExpanded}`:null),this.align?(this.style.setProperty("--scb-grid-item-align",this.align),this.style.setProperty("align-self",this.align)):(this.style.removeProperty("--scb-grid-item-align"),this.style.removeProperty("align-self")),this.justify?(this.style.setProperty("--scb-grid-item-justify",this.justify),this.style.setProperty("justify-self",this.justify)):(this.style.removeProperty("--scb-grid-item-justify"),this.style.removeProperty("justify-self"))},Ye=function(o,e){e===null||e===""?this.style.removeProperty(o):this.style.setProperty(o,e)},a.ScbGridItem.styles=m`
5492
5584
  :host {
5493
5585
  box-sizing: border-box;
5494
5586
  display: block;
@@ -6330,7 +6422,7 @@ ${this.value}</textarea
6330
6422
  :host([data-hide-logo-text]) .logo-text {
6331
6423
  display: none;
6332
6424
  }
6333
- `,a.ScbHeader._nextFrame=()=>new Promise(o=>requestAnimationFrame(()=>o())),P([n({type:String,attribute:"max-width"})],a.ScbHeader.prototype,"maxWidth",2),P([n({type:String,attribute:"logo-text"})],a.ScbHeader.prototype,"logoText",2),P([n({type:String,attribute:"logo-href"})],a.ScbHeader.prototype,"logoHref",2),P([n({type:Boolean,reflect:!0})],a.ScbHeader.prototype,"banner",2),P([n({type:String,attribute:"banner-label"})],a.ScbHeader.prototype,"bannerLabel",2),P([n({attribute:"tabs",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"tabs",2),P([n({type:Number,attribute:"active-tab"})],a.ScbHeader.prototype,"activeTab",2),P([n({attribute:"utility-items",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"utilityItems",2),P([n({type:String,attribute:"search-placeholder"})],a.ScbHeader.prototype,"searchPlaceholder",2),P([n({type:String,attribute:"drawer-label"})],a.ScbHeader.prototype,"drawerLabel",2),P([n({type:String,attribute:"drawer-sub-label"})],a.ScbHeader.prototype,"drawerSubLabel",2),P([n({type:String,attribute:"drawer-section-label"})],a.ScbHeader.prototype,"drawerSectionLabel",2),P([n({type:String,attribute:"drawer-search-placeholder"})],a.ScbHeader.prototype,"drawerSearchPlaceholder",2),P([n({attribute:"menu-data",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"menuData",2),P([n({attribute:"show-drawer",reflect:!0,converter:so})],a.ScbHeader.prototype,"showDrawer",2),P([n({attribute:"show-search",reflect:!0,converter:so})],a.ScbHeader.prototype,"showSearch",2),P([n({attribute:"include-utility-in-drawer",reflect:!0,converter:so})],a.ScbHeader.prototype,"includeUtilityInDrawer",2),P([n({attribute:"drawer-overlay",reflect:!0,converter:so})],a.ScbHeader.prototype,"drawerOverlay",2),P([n({type:String,attribute:"search-max"})],a.ScbHeader.prototype,"searchMax",2),P([n({type:String,attribute:"search-min"})],a.ScbHeader.prototype,"searchMin",2),P([n({type:String,attribute:"search-height"})],a.ScbHeader.prototype,"searchHeight",2),P([n({type:String,attribute:"search-text",reflect:!0})],a.ScbHeader.prototype,"searchText",2),P([w()],a.ScbHeader.prototype,"_drawerId",2),P([w()],a.ScbHeader.prototype,"_drawerExpanded",2),P([w()],a.ScbHeader.prototype,"_searchId",2),P([w()],a.ScbHeader.prototype,"_slotTabs",2),P([w()],a.ScbHeader.prototype,"_slotUtils",2),P([w()],a.ScbHeader.prototype,"_slotMenu",2),P([w()],a.ScbHeader.prototype,"_collapsed",2),P([w()],a.ScbHeader.prototype,"_hideLogoText",2),a.ScbHeader=P([g("scb-header")],a.ScbHeader);var zu=Object.defineProperty,Iu=Object.getOwnPropertyDescriptor,ul=o=>{throw TypeError(o)},De=(o,e,t,i)=>{for(var r=i>1?void 0:i?Iu(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&zu(e,t,r),r},Pu=(o,e,t)=>e.has(o)||ul("Cannot "+t),Ou=(o,e,t)=>e.has(o)?ul("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),vl=(o,e,t)=>(Pu(o,e,"access private method"),t),no,es;a.ScbHorizontalScroller=class extends y{constructor(){super(...arguments),Ou(this,no),this.variant="standard",this.width="100%",this.showScrollbar=!0,this.rightScrollButtonLabel="Scrolla höger",this.leftScrollButtonLabel="Scrolla vänster",this.spacing="",this.spacingTop="",this.spacingBottom="",this.contentFlex=!1,this.updateScrollButtons=()=>{var i;this.requestUpdate();const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-horizontal-scroller");if(!e)return;e.scrollLeft>0?this.setAttribute("data-scroll-left",""):this.removeAttribute("data-scroll-left");const t=e;t.scrollLeft+t.clientWidth<t.scrollWidth-1?this.setAttribute("data-scroll-right",""):this.removeAttribute("data-scroll-right")},this.lastScrollLeft=0,this.isScrolling=!1,this.scrollEndTimeout=null,this.handleScroll=()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-horizontal-scroller");e&&(this.updateScrollButtons(),this.dispatchCustomEvent("scb-scroll",{scrollLeft:e.scrollLeft}),this.isScrolling||(this.isScrolling=!0,this.dispatchCustomEvent("scb-scroll-start",{scrollLeft:e.scrollLeft})),clearTimeout(this.scrollEndTimeout),this.scrollEndTimeout=setTimeout(()=>{this.isScrolling=!1,this.dispatchCustomEvent("scb-scroll-end",{scrollLeft:e.scrollLeft})},120),e.scrollLeft>this.lastScrollLeft?this.dispatchCustomEvent("scb-scroll-right",{scrollLeft:e.scrollLeft}):e.scrollLeft<this.lastScrollLeft&&this.dispatchCustomEvent("scb-scroll-left",{scrollLeft:e.scrollLeft}),this.lastScrollLeft=e.scrollLeft)}}doScrollBy(e){var i;const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-horizontal-scroller");t&&t.scrollBy({left:e,behavior:"smooth"})}get canScrollLeft(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-horizontal-scroller");return e?e.scrollLeft>0:!1}get canScrollRight(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-horizontal-scroller");if(!e)return!1;const t=e;return t.scrollLeft+t.clientWidth<t.scrollWidth-1}connectedCallback(){super.connectedCallback(),this.addEventListener("scroll",this.updateScrollButtons,!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",this.updateScrollButtons,!0)}dispatchCustomEvent(e,t={}){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}firstUpdated(){var l,h,p,v;const e=(l=this.shadowRoot)==null?void 0:l.querySelector(".scb-horizontal-scroller"),t=(h=this.shadowRoot)==null?void 0:h.querySelector(".scroll-shadow-left"),i=(p=this.shadowRoot)==null?void 0:p.querySelector(".scroll-shadow-right"),r=(v=this.shadowRoot)==null?void 0:v.querySelector("slot");e&&(e.addEventListener("scroll",this.handleScroll),e.addEventListener("wheel",function(f){f.deltaY!==0&&(f.preventDefault(),e.scrollLeft+=f.deltaY)},{passive:!1}));const s=()=>{if(r&&t&&i){const f=r.getBoundingClientRect();t.style.height=`${f.height}px`,i.style.height=`${f.height}px`}};s(),r&&new ResizeObserver(s).observe(r),this.updateComplete.then(()=>{this.updateScrollButtons()}),vl(this,no,es).call(this)}updated(e){var h,p,v,f;const t=(h=this.shadowRoot)==null?void 0:h.querySelector(".scroll-shadow-left"),i=(p=this.shadowRoot)==null?void 0:p.querySelector(".scroll-shadow-right"),r=(v=this.shadowRoot)==null?void 0:v.querySelector("slot"),s=(f=this.shadowRoot)==null?void 0:f.querySelector(".scb-horizontal-scroller");if(s){s.addEventListener("scroll",this.handleScroll),s.addEventListener("wheel",function(_){_.deltaY!==0&&(_.preventDefault(),s.scrollLeft+=_.deltaY)},{passive:!1}),s.scrollLeft>0?this.setAttribute("data-scroll-left",""):this.removeAttribute("data-scroll-left");const b=s;b.scrollLeft+b.clientWidth<b.scrollWidth-1?this.setAttribute("data-scroll-right",""):this.removeAttribute("data-scroll-right")}e.has("width")&&this.style.setProperty("--scb-horizontal-scroller-width",this.width);const l=()=>{if(r&&t&&i){const b=r.getBoundingClientRect();t.style.height=`${b.height}px`,i.style.height=`${b.height}px`}};l(),r&&new ResizeObserver(l).observe(r),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&vl(this,no,es).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}render(){const e=this.variant,t=!!(this.canScrollLeft||this.canScrollRight);switch(e){case"inline":return c`
6425
+ `,a.ScbHeader._nextFrame=()=>new Promise(o=>requestAnimationFrame(()=>o())),P([n({type:String,attribute:"max-width"})],a.ScbHeader.prototype,"maxWidth",2),P([n({type:String,attribute:"logo-text"})],a.ScbHeader.prototype,"logoText",2),P([n({type:String,attribute:"logo-href"})],a.ScbHeader.prototype,"logoHref",2),P([n({type:Boolean,reflect:!0})],a.ScbHeader.prototype,"banner",2),P([n({type:String,attribute:"banner-label"})],a.ScbHeader.prototype,"bannerLabel",2),P([n({attribute:"tabs",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"tabs",2),P([n({type:Number,attribute:"active-tab"})],a.ScbHeader.prototype,"activeTab",2),P([n({attribute:"utility-items",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"utilityItems",2),P([n({type:String,attribute:"search-placeholder"})],a.ScbHeader.prototype,"searchPlaceholder",2),P([n({type:String,attribute:"drawer-label"})],a.ScbHeader.prototype,"drawerLabel",2),P([n({type:String,attribute:"drawer-sub-label"})],a.ScbHeader.prototype,"drawerSubLabel",2),P([n({type:String,attribute:"drawer-section-label"})],a.ScbHeader.prototype,"drawerSectionLabel",2),P([n({type:String,attribute:"drawer-search-placeholder"})],a.ScbHeader.prototype,"drawerSearchPlaceholder",2),P([n({attribute:"menu-data",converter:a.ScbHeader._JSON_ARRAY})],a.ScbHeader.prototype,"menuData",2),P([n({attribute:"show-drawer",reflect:!0,converter:so})],a.ScbHeader.prototype,"showDrawer",2),P([n({attribute:"show-search",reflect:!0,converter:so})],a.ScbHeader.prototype,"showSearch",2),P([n({attribute:"include-utility-in-drawer",reflect:!0,converter:so})],a.ScbHeader.prototype,"includeUtilityInDrawer",2),P([n({attribute:"drawer-overlay",reflect:!0,converter:so})],a.ScbHeader.prototype,"drawerOverlay",2),P([n({type:String,attribute:"search-max"})],a.ScbHeader.prototype,"searchMax",2),P([n({type:String,attribute:"search-min"})],a.ScbHeader.prototype,"searchMin",2),P([n({type:String,attribute:"search-height"})],a.ScbHeader.prototype,"searchHeight",2),P([n({type:String,attribute:"search-text",reflect:!0})],a.ScbHeader.prototype,"searchText",2),P([w()],a.ScbHeader.prototype,"_drawerId",2),P([w()],a.ScbHeader.prototype,"_drawerExpanded",2),P([w()],a.ScbHeader.prototype,"_searchId",2),P([w()],a.ScbHeader.prototype,"_slotTabs",2),P([w()],a.ScbHeader.prototype,"_slotUtils",2),P([w()],a.ScbHeader.prototype,"_slotMenu",2),P([w()],a.ScbHeader.prototype,"_collapsed",2),P([w()],a.ScbHeader.prototype,"_hideLogoText",2),a.ScbHeader=P([g("scb-header")],a.ScbHeader);var zu=Object.defineProperty,Iu=Object.getOwnPropertyDescriptor,ul=o=>{throw TypeError(o)},Be=(o,e,t,i)=>{for(var r=i>1?void 0:i?Iu(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&zu(e,t,r),r},Pu=(o,e,t)=>e.has(o)||ul("Cannot "+t),Ou=(o,e,t)=>e.has(o)?ul("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),vl=(o,e,t)=>(Pu(o,e,"access private method"),t),no,es;a.ScbHorizontalScroller=class extends y{constructor(){super(...arguments),Ou(this,no),this.variant="standard",this.width="100%",this.showScrollbar=!0,this.rightScrollButtonLabel="Scrolla höger",this.leftScrollButtonLabel="Scrolla vänster",this.spacing="",this.spacingTop="",this.spacingBottom="",this.contentFlex=!1,this.updateScrollButtons=()=>{var i;this.requestUpdate();const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-horizontal-scroller");if(!e)return;e.scrollLeft>0?this.setAttribute("data-scroll-left",""):this.removeAttribute("data-scroll-left");const t=e;t.scrollLeft+t.clientWidth<t.scrollWidth-1?this.setAttribute("data-scroll-right",""):this.removeAttribute("data-scroll-right")},this.lastScrollLeft=0,this.isScrolling=!1,this.scrollEndTimeout=null,this.handleScroll=()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-horizontal-scroller");e&&(this.updateScrollButtons(),this.dispatchCustomEvent("scb-scroll",{scrollLeft:e.scrollLeft}),this.isScrolling||(this.isScrolling=!0,this.dispatchCustomEvent("scb-scroll-start",{scrollLeft:e.scrollLeft})),clearTimeout(this.scrollEndTimeout),this.scrollEndTimeout=setTimeout(()=>{this.isScrolling=!1,this.dispatchCustomEvent("scb-scroll-end",{scrollLeft:e.scrollLeft})},120),e.scrollLeft>this.lastScrollLeft?this.dispatchCustomEvent("scb-scroll-right",{scrollLeft:e.scrollLeft}):e.scrollLeft<this.lastScrollLeft&&this.dispatchCustomEvent("scb-scroll-left",{scrollLeft:e.scrollLeft}),this.lastScrollLeft=e.scrollLeft)}}doScrollBy(e){var i;const t=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-horizontal-scroller");t&&t.scrollBy({left:e,behavior:"smooth"})}get canScrollLeft(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".scb-horizontal-scroller");return e?e.scrollLeft>0:!1}get canScrollRight(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".scb-horizontal-scroller");if(!e)return!1;const t=e;return t.scrollLeft+t.clientWidth<t.scrollWidth-1}connectedCallback(){super.connectedCallback(),this.addEventListener("scroll",this.updateScrollButtons,!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",this.updateScrollButtons,!0)}dispatchCustomEvent(e,t={}){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}firstUpdated(){var l,h,p,v;const e=(l=this.shadowRoot)==null?void 0:l.querySelector(".scb-horizontal-scroller"),t=(h=this.shadowRoot)==null?void 0:h.querySelector(".scroll-shadow-left"),i=(p=this.shadowRoot)==null?void 0:p.querySelector(".scroll-shadow-right"),r=(v=this.shadowRoot)==null?void 0:v.querySelector("slot");e&&(e.addEventListener("scroll",this.handleScroll),e.addEventListener("wheel",function(f){f.deltaY!==0&&(f.preventDefault(),e.scrollLeft+=f.deltaY)},{passive:!1}));const s=()=>{if(r&&t&&i){const f=r.getBoundingClientRect();t.style.height=`${f.height}px`,i.style.height=`${f.height}px`}};s(),r&&new ResizeObserver(s).observe(r),this.updateComplete.then(()=>{this.updateScrollButtons()}),vl(this,no,es).call(this)}updated(e){var h,p,v,f;const t=(h=this.shadowRoot)==null?void 0:h.querySelector(".scroll-shadow-left"),i=(p=this.shadowRoot)==null?void 0:p.querySelector(".scroll-shadow-right"),r=(v=this.shadowRoot)==null?void 0:v.querySelector("slot"),s=(f=this.shadowRoot)==null?void 0:f.querySelector(".scb-horizontal-scroller");if(s){s.addEventListener("scroll",this.handleScroll),s.addEventListener("wheel",function(_){_.deltaY!==0&&(_.preventDefault(),s.scrollLeft+=_.deltaY)},{passive:!1}),s.scrollLeft>0?this.setAttribute("data-scroll-left",""):this.removeAttribute("data-scroll-left");const b=s;b.scrollLeft+b.clientWidth<b.scrollWidth-1?this.setAttribute("data-scroll-right",""):this.removeAttribute("data-scroll-right")}e.has("width")&&this.style.setProperty("--scb-horizontal-scroller-width",this.width);const l=()=>{if(r&&t&&i){const b=r.getBoundingClientRect();t.style.height=`${b.height}px`,i.style.height=`${b.height}px`}};l(),r&&new ResizeObserver(l).observe(r),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&vl(this,no,es).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}render(){const e=this.variant,t=!!(this.canScrollLeft||this.canScrollRight);switch(e){case"inline":return c`
6334
6426
  <div class="scb-horizontal-scroller ${t?"canScroll":""}" tabindex="0">
6335
6427
  ${this.variant!="inline"?c`<div class="scroll-shadow-left"></div>`:""}
6336
6428
  <slot></slot>
@@ -6502,7 +6594,7 @@ ${this.value}</textarea
6502
6594
  :host([variant='inline'][show-scrollbar]) {
6503
6595
  gap: var(--spacing-5);
6504
6596
  }
6505
- `,De([n({type:String,reflect:!0})],a.ScbHorizontalScroller.prototype,"variant",2),De([n({type:String,reflect:!0})],a.ScbHorizontalScroller.prototype,"width",2),De([n({type:Boolean,reflect:!0,attribute:"show-scrollbar"})],a.ScbHorizontalScroller.prototype,"showScrollbar",2),De([n({type:String,reflect:!0,attribute:"right-scroll-button-label"})],a.ScbHorizontalScroller.prototype,"rightScrollButtonLabel",2),De([n({type:String,reflect:!0,attribute:"left-scroll-button-label"})],a.ScbHorizontalScroller.prototype,"leftScrollButtonLabel",2),De([n({type:String,reflect:!0})],a.ScbHorizontalScroller.prototype,"spacing",2),De([n({type:String,reflect:!0,attribute:"spacing-top"})],a.ScbHorizontalScroller.prototype,"spacingTop",2),De([n({type:String,reflect:!0,attribute:"spacing-bottom"})],a.ScbHorizontalScroller.prototype,"spacingBottom",2),De([n({type:Boolean,reflect:!0,attribute:"content-flex"})],a.ScbHorizontalScroller.prototype,"contentFlex",2),a.ScbHorizontalScroller=De([g("scb-horizontal-scroller")],a.ScbHorizontalScroller);var Lu=Object.defineProperty,Du=Object.getOwnPropertyDescriptor,bl=o=>{throw TypeError(o)},Q=(o,e,t,i)=>{for(var r=i>1?void 0:i?Du(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Lu(e,t,r),r},Bu=(o,e,t)=>e.has(o)||bl("Cannot "+t),Ru=(o,e,t)=>e.has(o)?bl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),ml=(o,e,t)=>(Bu(o,e,"access private method"),t),lo,ts;a.ScbKeyFigureCard=class extends y{constructor(){super(...arguments),Ru(this,lo),this.keyfigure=0,this.subtitle="",this.supportingText="",this.cardHref="",this.icon="",this.size="standard",this.unit="",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.sizing="stretch",this.spacing="",this.spacingTop="",this.spacingBottom="",this.__onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&this.cardHref&&(e.preventDefault(),window.location.href=this.cardHref)},this.__handleHrefNavigation=e=>{this.cardHref&&(e.target.closest("a")||(window.location.href=this.cardHref))}}formatNumber(e){if(typeof e=="number")return e.toLocaleString("sv-SE").replace(/\u00A0/g," ");const t=Number(e);return Number.isNaN(t)?String(e):t.toLocaleString("sv-SE").replace(/\u00A0/g," ")}async firstUpdated(){a.ScbKeyFigureCard.__iconLoaded||(await Promise.resolve().then(()=>Pe),a.ScbKeyFigureCard.__iconLoaded=!0),a.ScbKeyFigureCard.__rippleLoaded||(await Promise.resolve().then(()=>or),a.ScbKeyFigureCard.__rippleLoaded=!0),this.__applyInnerSizing(),ml(this,lo,ts).call(this)}render(){const e=!!this.cardHref,t=this.formatNumber(this.keyfigure),i=(this.unit||"").trim(),r=i?`${t} ${i}`:t;return c`
6597
+ `,Be([n({type:String,reflect:!0})],a.ScbHorizontalScroller.prototype,"variant",2),Be([n({type:String,reflect:!0})],a.ScbHorizontalScroller.prototype,"width",2),Be([n({type:Boolean,reflect:!0,attribute:"show-scrollbar"})],a.ScbHorizontalScroller.prototype,"showScrollbar",2),Be([n({type:String,reflect:!0,attribute:"right-scroll-button-label"})],a.ScbHorizontalScroller.prototype,"rightScrollButtonLabel",2),Be([n({type:String,reflect:!0,attribute:"left-scroll-button-label"})],a.ScbHorizontalScroller.prototype,"leftScrollButtonLabel",2),Be([n({type:String,reflect:!0})],a.ScbHorizontalScroller.prototype,"spacing",2),Be([n({type:String,reflect:!0,attribute:"spacing-top"})],a.ScbHorizontalScroller.prototype,"spacingTop",2),Be([n({type:String,reflect:!0,attribute:"spacing-bottom"})],a.ScbHorizontalScroller.prototype,"spacingBottom",2),Be([n({type:Boolean,reflect:!0,attribute:"content-flex"})],a.ScbHorizontalScroller.prototype,"contentFlex",2),a.ScbHorizontalScroller=Be([g("scb-horizontal-scroller")],a.ScbHorizontalScroller);var Lu=Object.defineProperty,Du=Object.getOwnPropertyDescriptor,bl=o=>{throw TypeError(o)},Q=(o,e,t,i)=>{for(var r=i>1?void 0:i?Du(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Lu(e,t,r),r},Bu=(o,e,t)=>e.has(o)||bl("Cannot "+t),Ru=(o,e,t)=>e.has(o)?bl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),ml=(o,e,t)=>(Bu(o,e,"access private method"),t),lo,ts;a.ScbKeyFigureCard=class extends y{constructor(){super(...arguments),Ru(this,lo),this.keyfigure=0,this.subtitle="",this.supportingText="",this.cardHref="",this.icon="",this.size="standard",this.unit="",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.sizing="stretch",this.spacing="",this.spacingTop="",this.spacingBottom="",this.__onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&this.cardHref&&(e.preventDefault(),window.location.href=this.cardHref)},this.__handleHrefNavigation=e=>{this.cardHref&&(e.target.closest("a")||(window.location.href=this.cardHref))}}formatNumber(e){if(typeof e=="number")return e.toLocaleString("sv-SE").replace(/\u00A0/g," ");const t=Number(e);return Number.isNaN(t)?String(e):t.toLocaleString("sv-SE").replace(/\u00A0/g," ")}async firstUpdated(){a.ScbKeyFigureCard.__iconLoaded||(await Promise.resolve().then(()=>Oe),a.ScbKeyFigureCard.__iconLoaded=!0),a.ScbKeyFigureCard.__rippleLoaded||(await Promise.resolve().then(()=>or),a.ScbKeyFigureCard.__rippleLoaded=!0),this.__applyInnerSizing(),ml(this,lo,ts).call(this)}render(){const e=!!this.cardHref,t=this.formatNumber(this.keyfigure),i=(this.unit||"").trim(),r=i?`${t} ${i}`:t;return c`
6506
6598
  <div
6507
6599
  class="scb-keyfigure-card ${e?"clickable":""} ${this.size}"
6508
6600
  role=${e?"link":"group"}
@@ -7731,7 +7823,7 @@ ${this.value}</textarea
7731
7823
  md-icon.radio-checked{
7732
7824
  color: var(--md-sys-color-primary);
7733
7825
  }
7734
- `,Lt([n({type:String})],a.ScbSelectOption.prototype,"value",2),Lt([n({type:Boolean,reflect:!0})],a.ScbSelectOption.prototype,"disabled",2),Lt([n({type:Boolean})],a.ScbSelectOption.prototype,"showCheckbox",2),Lt([n({type:Boolean})],a.ScbSelectOption.prototype,"checked",2),Lt([n({type:Boolean})],a.ScbSelectOption.prototype,"showRadio",2),Lt([n({type:String})],a.ScbSelectOption.prototype,"label",2),a.ScbSelectOption=Lt([g("scb-select-option")],a.ScbSelectOption);var lv=Object.defineProperty,cv=Object.getOwnPropertyDescriptor,Te=(o,e,t,i)=>{for(var r=i>1?void 0:i?cv(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&lv(e,t,r),r};a.ScbSelect=class extends y{constructor(){super(),this._internals=null,this.focusedIndex=-1,this.variant="single-select",this.value="",this.values=[],this.disabled=!1,this.open=!1,this.label="",this.name="",this.placeholder="",this.supportingText="",this.withRadiobuttons=!1,this._onDocumentClick=e=>{if(!this.open)return;e.composedPath().includes(this)||(this.open=!1,this.removeAttribute("open"))},this._onSlotClick=e=>{var l;const t=(l=this.shadowRoot)==null?void 0:l.querySelector("slot");if(!t)return;const i=t.assignedElements({flatten:!0}).filter(h=>h.tagName.toLowerCase()==="scb-select-option"),r=e.composedPath(),s=i.find(h=>r.includes(h));s&&(this._selectOption(s),e.stopPropagation())},this._onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this._toggleOpen())},this._onOptionKeyDown=e=>{var t;if(e.key==="Enter"||e.key===" "){e.preventDefault();const i=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");if(!i)return;const r=i.assignedElements({flatten:!0}).filter(h=>h.tagName.toLowerCase()==="scb-select-option"),s=e.composedPath(),l=r.find(h=>s.includes(h));l&&this._selectOption(l)}},"attachInternals"in this&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),document.addEventListener("mousedown",this._onDocumentClick)}disconnectedCallback(){document.removeEventListener("mousedown",this._onDocumentClick),super.disconnectedCallback()}_toggleOpen(){this.disabled||(this.open=!this.open,this.open?(this.focusedIndex=0,this.requestUpdate()):this.focusedIndex=-1)}_selectOption(e){e.disabled||(this.variant==="multi-select"?(this.values.indexOf(e.value)>-1?this.values=this.values.filter(i=>i!==e.value):this.values=[...this.values,e.value],this.value=this.values.join(","),this.dispatchEvent(new CustomEvent("change",{detail:{values:this.values},bubbles:!0,composed:!0}))):this.variant==="single-select"&&this.withRadiobuttons?(this.value=e.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))):(this.value=e.value,this.open=!1,this.removeAttribute("open"),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))),this._updateOptionsChecked(),this.requestUpdate())}_getSelectedLabel(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return"";const t=e.assignedElements({flatten:!0}).filter(r=>r.tagName.toLowerCase()==="scb-select-option");if(this.variant==="multi-select"){const r=t.filter(s=>this.values.includes(s.value));return r&&r.length>0?r.map(s=>s.label).join(", "):""}else{const r=t.find(s=>s.value===this.value);return r?r.label:""}}firstUpdated(){this._updateOptionsChecked(),this._internals&&this._internals.setFormValue(this.value)}updated(){this._updateOptionsChecked(),this._internals&&this._internals.setFormValue(this.value)}_updateOptionsChecked(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;e.assignedElements({flatten:!0}).filter(r=>r.tagName.toLowerCase()==="scb-select-option").forEach(r=>{this.variant==="multi-select"?(r.showCheckbox=!0,r.checked=this.values.includes(r.value),r.showRadio=!1):(r.showCheckbox=!1,r.checked=this.value===r.value,this.withRadiobuttons&&(r.showRadio=!0))})}render(){return c`
7826
+ `,Lt([n({type:String})],a.ScbSelectOption.prototype,"value",2),Lt([n({type:Boolean,reflect:!0})],a.ScbSelectOption.prototype,"disabled",2),Lt([n({type:Boolean})],a.ScbSelectOption.prototype,"showCheckbox",2),Lt([n({type:Boolean})],a.ScbSelectOption.prototype,"checked",2),Lt([n({type:Boolean})],a.ScbSelectOption.prototype,"showRadio",2),Lt([n({type:String})],a.ScbSelectOption.prototype,"label",2),a.ScbSelectOption=Lt([g("scb-select-option")],a.ScbSelectOption);var lv=Object.defineProperty,cv=Object.getOwnPropertyDescriptor,Ae=(o,e,t,i)=>{for(var r=i>1?void 0:i?cv(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&lv(e,t,r),r};a.ScbSelect=class extends y{constructor(){super(),this._internals=null,this.focusedIndex=-1,this.variant="single-select",this.value="",this.values=[],this.disabled=!1,this.open=!1,this.label="",this.name="",this.placeholder="",this.supportingText="",this.withRadiobuttons=!1,this._onDocumentClick=e=>{if(!this.open)return;e.composedPath().includes(this)||(this.open=!1,this.removeAttribute("open"))},this._onSlotClick=e=>{var l;const t=(l=this.shadowRoot)==null?void 0:l.querySelector("slot");if(!t)return;const i=t.assignedElements({flatten:!0}).filter(h=>h.tagName.toLowerCase()==="scb-select-option"),r=e.composedPath(),s=i.find(h=>r.includes(h));s&&(this._selectOption(s),e.stopPropagation())},this._onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this._toggleOpen())},this._onOptionKeyDown=e=>{var t;if(e.key==="Enter"||e.key===" "){e.preventDefault();const i=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");if(!i)return;const r=i.assignedElements({flatten:!0}).filter(h=>h.tagName.toLowerCase()==="scb-select-option"),s=e.composedPath(),l=r.find(h=>s.includes(h));l&&this._selectOption(l)}},"attachInternals"in this&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),document.addEventListener("mousedown",this._onDocumentClick)}disconnectedCallback(){document.removeEventListener("mousedown",this._onDocumentClick),super.disconnectedCallback()}_toggleOpen(){this.disabled||(this.open=!this.open,this.open?(this.focusedIndex=0,this.requestUpdate()):this.focusedIndex=-1)}_selectOption(e){e.disabled||(this.variant==="multi-select"?(this.values.indexOf(e.value)>-1?this.values=this.values.filter(i=>i!==e.value):this.values=[...this.values,e.value],this.value=this.values.join(","),this.dispatchEvent(new CustomEvent("change",{detail:{values:this.values},bubbles:!0,composed:!0}))):this.variant==="single-select"&&this.withRadiobuttons?(this.value=e.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))):(this.value=e.value,this.open=!1,this.removeAttribute("open"),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))),this._updateOptionsChecked(),this.requestUpdate())}_getSelectedLabel(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return"";const t=e.assignedElements({flatten:!0}).filter(r=>r.tagName.toLowerCase()==="scb-select-option");if(this.variant==="multi-select"){const r=t.filter(s=>this.values.includes(s.value));return r&&r.length>0?r.map(s=>s.label).join(", "):""}else{const r=t.find(s=>s.value===this.value);return r?r.label:""}}firstUpdated(){this._updateOptionsChecked(),this._internals&&this._internals.setFormValue(this.value)}updated(){this._updateOptionsChecked(),this._internals&&this._internals.setFormValue(this.value)}_updateOptionsChecked(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;e.assignedElements({flatten:!0}).filter(r=>r.tagName.toLowerCase()==="scb-select-option").forEach(r=>{this.variant==="multi-select"?(r.showCheckbox=!0,r.checked=this.values.includes(r.value),r.showRadio=!1):(r.showCheckbox=!1,r.checked=this.value===r.value,this.withRadiobuttons&&(r.showRadio=!0))})}render(){return c`
7735
7827
  ${this.label||this.supportingText?c`
7736
7828
  <label class="select-label" id="scb-select-label-${this.name}">
7737
7829
  ${this.label?c`
@@ -7892,7 +7984,7 @@ ${this.value}</textarea
7892
7984
  padding: var(--spacing-6) 52px var(--spacing-6) var(--spacing-5);
7893
7985
  }
7894
7986
 
7895
- `,Te([n({type:String})],a.ScbSelect.prototype,"variant",2),Te([n({type:String})],a.ScbSelect.prototype,"value",2),Te([n({type:Array})],a.ScbSelect.prototype,"values",2),Te([n({type:Boolean})],a.ScbSelect.prototype,"disabled",2),Te([n({type:Boolean,reflect:!0})],a.ScbSelect.prototype,"open",2),Te([n({type:String})],a.ScbSelect.prototype,"label",2),Te([n({type:String})],a.ScbSelect.prototype,"name",2),Te([n({type:String})],a.ScbSelect.prototype,"placeholder",2),Te([n({type:String,attribute:"supporting-text"})],a.ScbSelect.prototype,"supportingText",2),Te([n({type:Boolean,attribute:"with-radiobuttons"})],a.ScbSelect.prototype,"withRadiobuttons",2),a.ScbSelect=Te([g("scb-select")],a.ScbSelect);var dv=Object.defineProperty,hv=Object.getOwnPropertyDescriptor,Ni=(o,e,t,i)=>{for(var r=i>1?void 0:i?hv(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&dv(e,t,r),r};a.ScbSkeleton=class extends y{constructor(){super(...arguments),this.variant="rectangular",this.width="100%",this.height="100%",this.borderSize="small"}render(){return this.style.setProperty("--scb-skeleton-width",this.width),this.style.setProperty("--scb-skeleton-height",this.height),this.variant==="rounded"&&this.style.setProperty("--scb-skeleton-border-size",this.borderSize==="small"?"8px":this.borderSize==="medium"?"16px":this.borderSize==="large"?"24px":"8px"),c`
7987
+ `,Ae([n({type:String})],a.ScbSelect.prototype,"variant",2),Ae([n({type:String})],a.ScbSelect.prototype,"value",2),Ae([n({type:Array})],a.ScbSelect.prototype,"values",2),Ae([n({type:Boolean})],a.ScbSelect.prototype,"disabled",2),Ae([n({type:Boolean,reflect:!0})],a.ScbSelect.prototype,"open",2),Ae([n({type:String})],a.ScbSelect.prototype,"label",2),Ae([n({type:String})],a.ScbSelect.prototype,"name",2),Ae([n({type:String})],a.ScbSelect.prototype,"placeholder",2),Ae([n({type:String,attribute:"supporting-text"})],a.ScbSelect.prototype,"supportingText",2),Ae([n({type:Boolean,attribute:"with-radiobuttons"})],a.ScbSelect.prototype,"withRadiobuttons",2),a.ScbSelect=Ae([g("scb-select")],a.ScbSelect);var dv=Object.defineProperty,hv=Object.getOwnPropertyDescriptor,Ni=(o,e,t,i)=>{for(var r=i>1?void 0:i?hv(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&dv(e,t,r),r};a.ScbSkeleton=class extends y{constructor(){super(...arguments),this.variant="rectangular",this.width="100%",this.height="100%",this.borderSize="small"}render(){return this.style.setProperty("--scb-skeleton-width",this.width),this.style.setProperty("--scb-skeleton-height",this.height),this.variant==="rounded"&&this.style.setProperty("--scb-skeleton-border-size",this.borderSize==="small"?"8px":this.borderSize==="medium"?"16px":this.borderSize==="large"?"24px":"8px"),c`
7896
7988
  <div
7897
7989
  class="skeleton${this.variant==="circular"?" circle":""} ${this.variant==="rounded"?" rounded":""}"
7898
7990
  ><slot></slot></div>
@@ -8084,7 +8176,7 @@ ${this.value}</textarea
8084
8176
  background: var(--md-sys-color-error-container);
8085
8177
  color: var(--md-sys-color-on-error-container);
8086
8178
  }
8087
- `,Dt([n({type:String})],a.ScbStatusPill.prototype,"status",2),Dt([n({type:String})],a.ScbStatusPill.prototype,"label",2),Dt([n({type:Boolean,attribute:"show-icon"})],a.ScbStatusPill.prototype,"showIcon",2),Dt([n({type:String})],a.ScbStatusPill.prototype,"spacing",2),Dt([n({type:String,attribute:"spacing-top"})],a.ScbStatusPill.prototype,"spacingTop",2),Dt([n({type:String,attribute:"spacing-bottom"})],a.ScbStatusPill.prototype,"spacingBottom",2),a.ScbStatusPill=Dt([g("scb-status-pill")],a.ScbStatusPill);var mv=Object.defineProperty,fv=Object.getOwnPropertyDescriptor,Ae=(o,e,t,i)=>{for(var r=i>1?void 0:i?fv(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&mv(e,t,r),r};a.ScbStep=class extends y{constructor(){super(...arguments),this.label="",this.subLabel="",this.symbolVariant="number",this.number=0,this.active=!1,this.completed=!1,this.changeOnCompleted=!1,this.islast=!1,this.variant="horizontal",this.icon=""}updated(){!this.subLabel||this.subLabel.trim()===""?this.setAttribute("no-content",""):this.removeAttribute("no-content")}handleKeyDown(e){e.key==="Enter"||e.key===" "?(e.preventDefault(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0}))):(e.key==="ArrowRight"||e.key==="ArrowLeft")&&(this.dispatchEvent(new CustomEvent("scb-stepper-keynav",{detail:{key:e.key},bubbles:!0,composed:!0})),e.preventDefault())}render(){const e=this.active?"step":void 0,t=this.label?`${this.label}${this.subLabel?": "+this.subLabel:""}`:void 0;switch(this.symbolVariant){case"icon":return c`
8179
+ `,Dt([n({type:String})],a.ScbStatusPill.prototype,"status",2),Dt([n({type:String})],a.ScbStatusPill.prototype,"label",2),Dt([n({type:Boolean,attribute:"show-icon"})],a.ScbStatusPill.prototype,"showIcon",2),Dt([n({type:String})],a.ScbStatusPill.prototype,"spacing",2),Dt([n({type:String,attribute:"spacing-top"})],a.ScbStatusPill.prototype,"spacingTop",2),Dt([n({type:String,attribute:"spacing-bottom"})],a.ScbStatusPill.prototype,"spacingBottom",2),a.ScbStatusPill=Dt([g("scb-status-pill")],a.ScbStatusPill);var mv=Object.defineProperty,fv=Object.getOwnPropertyDescriptor,ze=(o,e,t,i)=>{for(var r=i>1?void 0:i?fv(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&mv(e,t,r),r};a.ScbStep=class extends y{constructor(){super(...arguments),this.label="",this.subLabel="",this.symbolVariant="number",this.number=0,this.active=!1,this.completed=!1,this.changeOnCompleted=!1,this.islast=!1,this.variant="horizontal",this.icon=""}updated(){!this.subLabel||this.subLabel.trim()===""?this.setAttribute("no-content",""):this.removeAttribute("no-content")}handleKeyDown(e){e.key==="Enter"||e.key===" "?(e.preventDefault(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0}))):(e.key==="ArrowRight"||e.key==="ArrowLeft")&&(this.dispatchEvent(new CustomEvent("scb-stepper-keynav",{detail:{key:e.key},bubbles:!0,composed:!0})),e.preventDefault())}render(){const e=this.active?"step":void 0,t=this.label?`${this.label}${this.subLabel?": "+this.subLabel:""}`:void 0;switch(this.symbolVariant){case"icon":return c`
8088
8180
  <div
8089
8181
  class="scb-step-content"
8090
8182
  tabindex="0"
@@ -8248,7 +8340,7 @@ ${this.value}</textarea
8248
8340
  }
8249
8341
  }
8250
8342
 
8251
- `,Ae([n({type:String,reflect:!0})],a.ScbStep.prototype,"label",2),Ae([n({type:String,reflect:!0,attribute:"sub-label"})],a.ScbStep.prototype,"subLabel",2),Ae([n({type:String,reflect:!0,attribute:"symbol-variant"})],a.ScbStep.prototype,"symbolVariant",2),Ae([n({type:Number,reflect:!0})],a.ScbStep.prototype,"number",2),Ae([n({type:Boolean,reflect:!0})],a.ScbStep.prototype,"active",2),Ae([n({type:Boolean,reflect:!0})],a.ScbStep.prototype,"completed",2),Ae([n({type:Boolean,reflect:!0,attribute:"change-on-completed"})],a.ScbStep.prototype,"changeOnCompleted",2),Ae([n({type:Boolean,reflect:!0})],a.ScbStep.prototype,"islast",2),Ae([n({type:String,reflect:!0})],a.ScbStep.prototype,"variant",2),Ae([n({type:String})],a.ScbStep.prototype,"icon",2),a.ScbStep=Ae([g("scb-step")],a.ScbStep);var gv=Object.defineProperty,yv=Object.getOwnPropertyDescriptor,_l=o=>{throw TypeError(o)},Be=(o,e,t,i)=>{for(var r=i>1?void 0:i?yv(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&gv(e,t,r),r},_v=(o,e,t)=>e.has(o)||_l("Cannot "+t),xv=(o,e,t)=>e.has(o)?_l("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Vi=(o,e,t)=>(_v(o,e,"access private method"),t),Bt,os,po;a.ScbStepper=class extends y{constructor(){super(...arguments),xv(this,Bt),this.type="",this.label="",this.changeOnCompleted=!1,this.variant="horizontal",this.symbolVariant="number",this.spacing="",this.spacingTop="",this.spacingBottom="",this.activeIndex=0,this._onKeyNav=e=>{const t=this._getSteps(),i=this.activeIndex;let r=i;e.detail.key==="ArrowRight"?i<t.length-1?r=i+1:r=0:e.detail.key==="ArrowLeft"&&(i>0?r=i-1:r=t.length-1),r!==i&&(this._onStepClick(r),setTimeout(()=>{var l;const s=(l=t[r].shadowRoot)==null?void 0:l.querySelector(".scb-step-content");s&&"focus"in s&&typeof s.focus=="function"&&s.focus()},0))},this._onStepContainerClick=e=>{const t=this._getSteps(),i=e.composedPath(),r=t.findIndex(s=>i.includes(s));r!==-1&&this._onStepClick(r)}}_onStepClick(e){const t=this.activeIndex;this.activeIndex=e,this._updateSteps(),this.dispatchEvent(new CustomEvent("scb-step-change",{detail:{index:this.activeIndex,step:this._getSteps()[this.activeIndex]},bubbles:!0,composed:!0})),e>t?this.dispatchEvent(new CustomEvent("scb-step-next",{detail:{from:t,to:e,step:this._getSteps()[e]},bubbles:!0,composed:!0})):e<t&&this.dispatchEvent(new CustomEvent("scb-step-prev",{detail:{from:t,to:e,step:this._getSteps()[e]},bubbles:!0,composed:!0}))}nextStep(){const e=this._getSteps();this.activeIndex<e.length-1&&this._onStepClick(this.activeIndex+1)}prevStep(){this.activeIndex>0&&this._onStepClick(this.activeIndex-1)}getActiveIndex(){return this.activeIndex}_updateSteps(){const e=this._getSteps();e.forEach((t,i)=>{t.active=i===this.activeIndex,t.completed=i<this.activeIndex,t.islast=!1,t.changeOnCompleted=this.changeOnCompleted,t.number=i+1,t.variant=this.variant,t.symbolVariant=this.symbolVariant}),e.length>0&&(e[e.length-1].islast=!0)}_getSteps(){return Array.from(this.querySelectorAll("scb-step"))}firstUpdated(e){this._updateSteps(),Vi(this,Bt,os).call(this)}updated(e){this._updateSteps(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Vi(this,Bt,os).call(this)}render(){return c`
8343
+ `,ze([n({type:String,reflect:!0})],a.ScbStep.prototype,"label",2),ze([n({type:String,reflect:!0,attribute:"sub-label"})],a.ScbStep.prototype,"subLabel",2),ze([n({type:String,reflect:!0,attribute:"symbol-variant"})],a.ScbStep.prototype,"symbolVariant",2),ze([n({type:Number,reflect:!0})],a.ScbStep.prototype,"number",2),ze([n({type:Boolean,reflect:!0})],a.ScbStep.prototype,"active",2),ze([n({type:Boolean,reflect:!0})],a.ScbStep.prototype,"completed",2),ze([n({type:Boolean,reflect:!0,attribute:"change-on-completed"})],a.ScbStep.prototype,"changeOnCompleted",2),ze([n({type:Boolean,reflect:!0})],a.ScbStep.prototype,"islast",2),ze([n({type:String,reflect:!0})],a.ScbStep.prototype,"variant",2),ze([n({type:String})],a.ScbStep.prototype,"icon",2),a.ScbStep=ze([g("scb-step")],a.ScbStep);var gv=Object.defineProperty,yv=Object.getOwnPropertyDescriptor,_l=o=>{throw TypeError(o)},Re=(o,e,t,i)=>{for(var r=i>1?void 0:i?yv(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&gv(e,t,r),r},_v=(o,e,t)=>e.has(o)||_l("Cannot "+t),xv=(o,e,t)=>e.has(o)?_l("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Vi=(o,e,t)=>(_v(o,e,"access private method"),t),Bt,os,po;a.ScbStepper=class extends y{constructor(){super(...arguments),xv(this,Bt),this.type="",this.label="",this.changeOnCompleted=!1,this.variant="horizontal",this.symbolVariant="number",this.spacing="",this.spacingTop="",this.spacingBottom="",this.activeIndex=0,this._onKeyNav=e=>{const t=this._getSteps(),i=this.activeIndex;let r=i;e.detail.key==="ArrowRight"?i<t.length-1?r=i+1:r=0:e.detail.key==="ArrowLeft"&&(i>0?r=i-1:r=t.length-1),r!==i&&(this._onStepClick(r),setTimeout(()=>{var l;const s=(l=t[r].shadowRoot)==null?void 0:l.querySelector(".scb-step-content");s&&"focus"in s&&typeof s.focus=="function"&&s.focus()},0))},this._onStepContainerClick=e=>{const t=this._getSteps(),i=e.composedPath(),r=t.findIndex(s=>i.includes(s));r!==-1&&this._onStepClick(r)}}_onStepClick(e){const t=this.activeIndex;this.activeIndex=e,this._updateSteps(),this.dispatchEvent(new CustomEvent("scb-step-change",{detail:{index:this.activeIndex,step:this._getSteps()[this.activeIndex]},bubbles:!0,composed:!0})),e>t?this.dispatchEvent(new CustomEvent("scb-step-next",{detail:{from:t,to:e,step:this._getSteps()[e]},bubbles:!0,composed:!0})):e<t&&this.dispatchEvent(new CustomEvent("scb-step-prev",{detail:{from:t,to:e,step:this._getSteps()[e]},bubbles:!0,composed:!0}))}nextStep(){const e=this._getSteps();this.activeIndex<e.length-1&&this._onStepClick(this.activeIndex+1)}prevStep(){this.activeIndex>0&&this._onStepClick(this.activeIndex-1)}getActiveIndex(){return this.activeIndex}_updateSteps(){const e=this._getSteps();e.forEach((t,i)=>{t.active=i===this.activeIndex,t.completed=i<this.activeIndex,t.islast=!1,t.changeOnCompleted=this.changeOnCompleted,t.number=i+1,t.variant=this.variant,t.symbolVariant=this.symbolVariant}),e.length>0&&(e[e.length-1].islast=!0)}_getSteps(){return Array.from(this.querySelectorAll("scb-step"))}firstUpdated(e){this._updateSteps(),Vi(this,Bt,os).call(this)}updated(e){this._updateSteps(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Vi(this,Bt,os).call(this)}render(){return c`
8252
8344
  <div
8253
8345
  class="steps"
8254
8346
  role="list"
@@ -8333,7 +8425,7 @@ ${this.value}</textarea
8333
8425
  ::slotted(scb-step[symbol-variant='marker']:not(:first-child))::before {
8334
8426
  top: 20px;
8335
8427
  }
8336
- `,Be([n({type:String,reflect:!0})],a.ScbStepper.prototype,"type",2),Be([n({type:String,reflect:!0})],a.ScbStepper.prototype,"label",2),Be([n({type:Boolean,reflect:!0,attribute:"change-on-completed"})],a.ScbStepper.prototype,"changeOnCompleted",2),Be([n({type:String})],a.ScbStepper.prototype,"variant",2),Be([n({type:String,reflect:!0,attribute:"symbol-variant"})],a.ScbStepper.prototype,"symbolVariant",2),Be([n({type:String,reflect:!0})],a.ScbStepper.prototype,"spacing",2),Be([n({type:String,attribute:"spacing-top",reflect:!0})],a.ScbStepper.prototype,"spacingTop",2),Be([n({type:String,attribute:"spacing-bottom",reflect:!0})],a.ScbStepper.prototype,"spacingBottom",2),Be([w()],a.ScbStepper.prototype,"activeIndex",2),a.ScbStepper=Be([g("scb-stepper")],a.ScbStepper);var wv=Object.defineProperty,Sv=Object.getOwnPropertyDescriptor,uo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Sv(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&wv(e,t,r),r};a.ScbPrimaryTab=class extends xi{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)}}updateIconSlot(){const e=this.querySelector('md-icon[slot="icon"]');if(!this._icon){e==null||e.remove();return}if(e)e.textContent=this._icon;else{const t=document.createElement("md-icon");t.setAttribute("slot","icon"),t.textContent=this._icon,this.appendChild(t)}}},a.ScbPrimaryTab.styles=[...xi.styles,m`
8428
+ `,Re([n({type:String,reflect:!0})],a.ScbStepper.prototype,"type",2),Re([n({type:String,reflect:!0})],a.ScbStepper.prototype,"label",2),Re([n({type:Boolean,reflect:!0,attribute:"change-on-completed"})],a.ScbStepper.prototype,"changeOnCompleted",2),Re([n({type:String})],a.ScbStepper.prototype,"variant",2),Re([n({type:String,reflect:!0,attribute:"symbol-variant"})],a.ScbStepper.prototype,"symbolVariant",2),Re([n({type:String,reflect:!0})],a.ScbStepper.prototype,"spacing",2),Re([n({type:String,attribute:"spacing-top",reflect:!0})],a.ScbStepper.prototype,"spacingTop",2),Re([n({type:String,attribute:"spacing-bottom",reflect:!0})],a.ScbStepper.prototype,"spacingBottom",2),Re([w()],a.ScbStepper.prototype,"activeIndex",2),a.ScbStepper=Re([g("scb-stepper")],a.ScbStepper);var wv=Object.defineProperty,Sv=Object.getOwnPropertyDescriptor,uo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Sv(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&wv(e,t,r),r};a.ScbPrimaryTab=class extends xi{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)}}updateIconSlot(){const e=this.querySelector('md-icon[slot="icon"]');if(!this._icon){e==null||e.remove();return}if(e)e.textContent=this._icon;else{const t=document.createElement("md-icon");t.setAttribute("slot","icon"),t.textContent=this._icon,this.appendChild(t)}}},a.ScbPrimaryTab.styles=[...xi.styles,m`
8337
8429
  /* Icon-only: dölj textslot */
8338
8430
  :host([icon-only]) slot:not([name='icon']) {
8339
8431
  display: none;
@@ -8601,7 +8693,7 @@ ${this.value}</textarea
8601
8693
  .scb-toc-list {
8602
8694
  display: block;
8603
8695
  }
8604
- `],Wi([n({type:Boolean,reflect:!0})],a.ScbToc.prototype,"detached",2),Wi([n({type:String,reflect:!0})],a.ScbToc.prototype,"spacing",2),Wi([n({type:String,attribute:"spacing-top",reflect:!0})],a.ScbToc.prototype,"spacingTop",2),Wi([n({type:String,attribute:"spacing-bottom",reflect:!0})],a.ScbToc.prototype,"spacingBottom",2),a.ScbToc=Wi([g("scb-toc")],a.ScbToc);var Bv=Object.defineProperty,Rv=Object.getOwnPropertyDescriptor,Re=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rv(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Bv(e,t,r),r};let Mv=0;a.ScbTooltip=class extends y{constructor(){super(...arguments),this.variant="plain",this.arrow=null,this.supportingtext="",this.label="",this.trigger="hover",this.position="top",this.open=!1,this.delay=.25,this.offset=0,this._hoverActive=!1,this._clickActive=!1,this._hideTimeout=null,this._triggerEl=null,this._originalPosition="top",this._tooltipId=`scb-tooltip-${++Mv}`,this._onTriggerMouseEnter=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerMouseLeave=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTriggerFocus=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerBlur=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTooltipMouseEnter=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!0,this.open=!0)},this._onTooltipMouseLeave=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!1,this._clickActive||(this.open=!1))},this._onTriggerClick=()=>{this._clickActive=!this._clickActive,this._clickActive?this.open=!0:this._hoverActive||(this.open=!1)}}firstUpdated(){if(this._originalPosition=this.position,this._updateDelayCss(),this._updateTriggerElement(),this._updateTooltipHoverListeners(),this.open){const e=this._getTooltipElement();e&&this._showTooltip(e)}}updated(e){if(e.has("trigger")&&(this._updateTriggerElement(),this._updateTooltipHoverListeners()),e.has("delay")&&this._updateDelayCss(),e.has("open")){const t=this._getTooltipElement();if(!t)return;this.open?this._showTooltip(t):this._hideTooltip(t)}}disconnectedCallback(){super.disconnectedCallback(),this._detachTriggerListeners();const e=this._getTooltipElement();e&&(e.removeEventListener("mouseenter",this._onTooltipMouseEnter),e.removeEventListener("mouseleave",this._onTooltipMouseLeave)),this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null)}_getTooltipElement(){return this.renderRoot.querySelector(".scb-tooltip")}_updateDelayCss(){const e=Number.isFinite(this.delay)?this.delay:.25;this.style.setProperty("--delay",`${e}s`)}_findTriggerElement(){const e=this.querySelector("[scb-tooltip-anchor]:not([slot])");return e||(Array.from(this.children).find(i=>i.nodeType===Node.ELEMENT_NODE)??null)}_updateTriggerElement(){const e=this._triggerEl;e&&(this._detachTriggerListeners(),e.removeAttribute("aria-describedby"));const t=this._findTriggerElement();this._triggerEl=t,t&&(t.setAttribute("aria-describedby",this._tooltipId),(this.trigger==="click"||this.trigger==="hover-click")&&t.addEventListener("click",this._onTriggerClick),(this.trigger==="hover"||this.trigger==="hover-click")&&(t.addEventListener("mouseenter",this._onTriggerMouseEnter),t.addEventListener("mouseleave",this._onTriggerMouseLeave),t.addEventListener("focus",this._onTriggerFocus),t.addEventListener("blur",this._onTriggerBlur)))}_updateTooltipHoverListeners(){const e=this._getTooltipElement();e&&(e.removeEventListener("mouseenter",this._onTooltipMouseEnter),e.removeEventListener("mouseleave",this._onTooltipMouseLeave),(this.trigger==="hover"||this.trigger==="hover-click")&&(e.addEventListener("mouseenter",this._onTooltipMouseEnter),e.addEventListener("mouseleave",this._onTooltipMouseLeave)))}_detachTriggerListeners(){const e=this._triggerEl;e&&(e.removeEventListener("click",this._onTriggerClick),e.removeEventListener("mouseenter",this._onTriggerMouseEnter),e.removeEventListener("mouseleave",this._onTriggerMouseLeave),e.removeEventListener("focus",this._onTriggerFocus),e.removeEventListener("blur",this._onTriggerBlur))}_showTooltip(e){this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null);const t=this._triggerEl;this._resetPosition(),e.classList.remove("hidden"),e.setAttribute("aria-hidden","false"),requestAnimationFrame(()=>{t&&this._positionTooltip(e,t),e.setAttribute("open","")})}_hideTooltip(e){e.removeAttribute("open"),e.setAttribute("aria-hidden","true"),this._scheduleHidden(e)}_scheduleHidden(e){const t=(Number.isFinite(this.delay)?this.delay:.25)*1e3;if(t<=0){e.classList.add("hidden");return}this._hideTimeout=window.setTimeout(()=>{e.classList.add("hidden"),this._hideTimeout=null},t)}_resetPosition(){this.position=this._originalPosition}_positionTooltip(e,t){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.getBoundingClientRect(),p=(this.offset??0)+8,v=8,f=v,b=window.innerHeight-v,_=v,x=window.innerWidth-v,S=V=>V>=f&&V+r.height<=b,C=V=>V>=_&&V+r.width<=x,T=(V,ue,Ie,Xi)=>{let oi=0;V<Ie&&(oi+=Ie-V);const go=V+ue;return go>Xi&&(oi+=go-Xi),oi},A=V=>{let ue=0,Ie=0;switch(V){case"top":ue=i.top-s.top-r.height-p,Ie=i.left-s.left+(i.width-r.width)/2;break;case"bottom":ue=i.bottom-s.top+p,Ie=i.left-s.left+(i.width-r.width)/2;break;case"left":Ie=i.left-s.left-r.width-p,ue=i.top-s.top+(i.height-r.height)/2;break;case"right":Ie=i.right-s.left+p,ue=i.top-s.top+(i.height-r.height)/2;break}const Xi=ue+s.top,oi=Ie+s.left,go=T(Xi,r.height,f,b),qv=T(oi,r.width,_,x);return{pos:V,top:ue,left:Ie,fitsV:S(Xi),fitsH:C(oi),totalOverflow:go+qv}},z=this.position==="top"||this.position==="bottom",ee=this.position,q=this._getOppositePosition(ee),xe=[ee,q,z?"left":"top",z?"right":"bottom"].map(A);let pe=xe.find(V=>V.fitsV&&V.fitsH)??xe.reduce((V,ue)=>ue.totalOverflow<V.totalOverflow?ue:V);const Ht=(V,ue,Ie)=>Math.min(Math.max(V,ue),Ie),Me=f-s.top,vt=b-r.height-s.top,fo=_-s.left,Gi=x-r.width-s.left,Yi=Ht(pe.top,Me,vt),ze=Ht(pe.left,fo,Gi);e.style.top=`${Yi}px`,e.style.left=`${ze}px`,this.position!==pe.pos&&(this.position=pe.pos)}_getOppositePosition(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}_onDefaultSlotChange(){this._updateTriggerElement()}render(){const e=this.arrow?c`<svg
8696
+ `],Wi([n({type:Boolean,reflect:!0})],a.ScbToc.prototype,"detached",2),Wi([n({type:String,reflect:!0})],a.ScbToc.prototype,"spacing",2),Wi([n({type:String,attribute:"spacing-top",reflect:!0})],a.ScbToc.prototype,"spacingTop",2),Wi([n({type:String,attribute:"spacing-bottom",reflect:!0})],a.ScbToc.prototype,"spacingBottom",2),a.ScbToc=Wi([g("scb-toc")],a.ScbToc);var Bv=Object.defineProperty,Rv=Object.getOwnPropertyDescriptor,Me=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rv(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Bv(e,t,r),r};let Mv=0;a.ScbTooltip=class extends y{constructor(){super(...arguments),this.variant="plain",this.arrow=null,this.supportingtext="",this.label="",this.trigger="hover",this.position="top",this.open=!1,this.delay=.25,this.offset=0,this._hoverActive=!1,this._clickActive=!1,this._hideTimeout=null,this._triggerEl=null,this._originalPosition="top",this._tooltipId=`scb-tooltip-${++Mv}`,this._onTriggerMouseEnter=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerMouseLeave=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTriggerFocus=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerBlur=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTooltipMouseEnter=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!0,this.open=!0)},this._onTooltipMouseLeave=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!1,this._clickActive||(this.open=!1))},this._onTriggerClick=()=>{this._clickActive=!this._clickActive,this._clickActive?this.open=!0:this._hoverActive||(this.open=!1)}}firstUpdated(){if(this._originalPosition=this.position,this._updateDelayCss(),this._updateTriggerElement(),this._updateTooltipHoverListeners(),this.open){const e=this._getTooltipElement();e&&this._showTooltip(e)}}updated(e){if(e.has("trigger")&&(this._updateTriggerElement(),this._updateTooltipHoverListeners()),e.has("delay")&&this._updateDelayCss(),e.has("open")){const t=this._getTooltipElement();if(!t)return;this.open?this._showTooltip(t):this._hideTooltip(t)}}disconnectedCallback(){super.disconnectedCallback(),this._detachTriggerListeners();const e=this._getTooltipElement();e&&(e.removeEventListener("mouseenter",this._onTooltipMouseEnter),e.removeEventListener("mouseleave",this._onTooltipMouseLeave)),this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null)}_getTooltipElement(){return this.renderRoot.querySelector(".scb-tooltip")}_updateDelayCss(){const e=Number.isFinite(this.delay)?this.delay:.25;this.style.setProperty("--delay",`${e}s`)}_findTriggerElement(){const e=this.querySelector("[scb-tooltip-anchor]:not([slot])");return e||(Array.from(this.children).find(i=>i.nodeType===Node.ELEMENT_NODE)??null)}_updateTriggerElement(){const e=this._triggerEl;e&&(this._detachTriggerListeners(),e.removeAttribute("aria-describedby"));const t=this._findTriggerElement();this._triggerEl=t,t&&(t.setAttribute("aria-describedby",this._tooltipId),(this.trigger==="click"||this.trigger==="hover-click")&&t.addEventListener("click",this._onTriggerClick),(this.trigger==="hover"||this.trigger==="hover-click")&&(t.addEventListener("mouseenter",this._onTriggerMouseEnter),t.addEventListener("mouseleave",this._onTriggerMouseLeave),t.addEventListener("focus",this._onTriggerFocus),t.addEventListener("blur",this._onTriggerBlur)))}_updateTooltipHoverListeners(){const e=this._getTooltipElement();e&&(e.removeEventListener("mouseenter",this._onTooltipMouseEnter),e.removeEventListener("mouseleave",this._onTooltipMouseLeave),(this.trigger==="hover"||this.trigger==="hover-click")&&(e.addEventListener("mouseenter",this._onTooltipMouseEnter),e.addEventListener("mouseleave",this._onTooltipMouseLeave)))}_detachTriggerListeners(){const e=this._triggerEl;e&&(e.removeEventListener("click",this._onTriggerClick),e.removeEventListener("mouseenter",this._onTriggerMouseEnter),e.removeEventListener("mouseleave",this._onTriggerMouseLeave),e.removeEventListener("focus",this._onTriggerFocus),e.removeEventListener("blur",this._onTriggerBlur))}_showTooltip(e){this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null);const t=this._triggerEl;this._resetPosition(),e.classList.remove("hidden"),e.setAttribute("aria-hidden","false"),requestAnimationFrame(()=>{t&&this._positionTooltip(e,t),e.setAttribute("open","")})}_hideTooltip(e){e.removeAttribute("open"),e.setAttribute("aria-hidden","true"),this._scheduleHidden(e)}_scheduleHidden(e){const t=(Number.isFinite(this.delay)?this.delay:.25)*1e3;if(t<=0){e.classList.add("hidden");return}this._hideTimeout=window.setTimeout(()=>{e.classList.add("hidden"),this._hideTimeout=null},t)}_resetPosition(){this.position=this._originalPosition}_positionTooltip(e,t){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.getBoundingClientRect(),p=(this.offset??0)+8,v=8,f=v,b=window.innerHeight-v,_=v,x=window.innerWidth-v,S=V=>V>=f&&V+r.height<=b,C=V=>V>=_&&V+r.width<=x,T=(V,ue,Pe,Xi)=>{let oi=0;V<Pe&&(oi+=Pe-V);const go=V+ue;return go>Xi&&(oi+=go-Xi),oi},A=V=>{let ue=0,Pe=0;switch(V){case"top":ue=i.top-s.top-r.height-p,Pe=i.left-s.left+(i.width-r.width)/2;break;case"bottom":ue=i.bottom-s.top+p,Pe=i.left-s.left+(i.width-r.width)/2;break;case"left":Pe=i.left-s.left-r.width-p,ue=i.top-s.top+(i.height-r.height)/2;break;case"right":Pe=i.right-s.left+p,ue=i.top-s.top+(i.height-r.height)/2;break}const Xi=ue+s.top,oi=Pe+s.left,go=T(Xi,r.height,f,b),qv=T(oi,r.width,_,x);return{pos:V,top:ue,left:Pe,fitsV:S(Xi),fitsH:C(oi),totalOverflow:go+qv}},z=this.position==="top"||this.position==="bottom",ee=this.position,q=this._getOppositePosition(ee),xe=[ee,q,z?"left":"top",z?"right":"bottom"].map(A);let pe=xe.find(V=>V.fitsV&&V.fitsH)??xe.reduce((V,ue)=>ue.totalOverflow<V.totalOverflow?ue:V);const Ht=(V,ue,Pe)=>Math.min(Math.max(V,ue),Pe),Fe=f-s.top,vt=b-r.height-s.top,fo=_-s.left,Gi=x-r.width-s.left,Yi=Ht(pe.top,Fe,vt),Ie=Ht(pe.left,fo,Gi);e.style.top=`${Yi}px`,e.style.left=`${Ie}px`,this.position!==pe.pos&&(this.position=pe.pos)}_getOppositePosition(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}_onDefaultSlotChange(){this._updateTriggerElement()}render(){const e=this.arrow?c`<svg
8605
8697
  class="scb-tooltip-arrow"
8606
8698
  xmlns="http://www.w3.org/2000/svg"
8607
8699
  width="13"
@@ -8792,7 +8884,7 @@ ${this.value}</textarea
8792
8884
  gap: var(--spacing-3);
8793
8885
  align-self: stretch;
8794
8886
  }
8795
- `,Re([n({type:String,reflect:!0})],a.ScbTooltip.prototype,"variant",2),Re([n({type:Boolean,reflect:!0})],a.ScbTooltip.prototype,"arrow",2),Re([n({type:String,attribute:"supporting-text"})],a.ScbTooltip.prototype,"supportingtext",2),Re([n({type:String})],a.ScbTooltip.prototype,"label",2),Re([n({type:String,reflect:!0})],a.ScbTooltip.prototype,"trigger",2),Re([n({type:String,reflect:!0})],a.ScbTooltip.prototype,"position",2),Re([n({type:Boolean,reflect:!0})],a.ScbTooltip.prototype,"open",2),Re([n({type:Number,reflect:!0})],a.ScbTooltip.prototype,"delay",2),Re([n({type:Number,reflect:!0})],a.ScbTooltip.prototype,"offset",2),a.ScbTooltip=Re([g("scb-tooltip")],a.ScbTooltip);var Fv=Object.defineProperty,Hv=Object.getOwnPropertyDescriptor,Sl=o=>{throw TypeError(o)},se=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hv(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Fv(e,t,r),r},Nv=(o,e,t)=>e.has(o)||Sl("Cannot "+t),Vv=(o,e,t)=>e.has(o)?Sl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Ki=(o,e,t)=>(Nv(o,e,"access private method"),t),Ft,ls,mo;return a.ScbViz=class extends y{constructor(){super(...arguments),Vv(this,Ft),this.variant="Standard",this.selectedChip="Diagram",this.title="",this.subtitle="",this.description="",this.comment="",this.source="",this.footnote="",this.lang="sv",this.imageHref="",this.spacing="",this.spacingTop="",this.spacingBottom=""}get descriptionLabel(){return this.lang==="en"?"Description of the chart":"Beskrivning av diagrammet"}get moreAboutStatsLabel(){return this.lang==="en"?"More about the statistics":"Mer om statistiken"}get commentLabel(){return this.lang==="en"?"Comments":"Kommentar"}get sourceLabel(){return this.lang==="en"?"Source":"Källa"}get footnoteLabel(){return this.lang==="en"?"Footnotes":"Fotnot"}firstUpdated(e){var i;const t=(i=this.shadowRoot)==null?void 0:i.querySelector('slot[name="table"]');t&&(t.addEventListener("slotchange",()=>this._styleSlottedTable()),this._styleSlottedTable()),Ki(this,Ft,ls).call(this)}updated(e){super.updated(e),this._styleSlottedTable(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Ki(this,Ft,ls).call(this)}_styleSlottedTable(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector('slot[name="table"]');if(!e)return;e.assignedElements({flatten:!0}).forEach(r=>{if(r.tagName==="TABLE"){const s=r;s.style.borderCollapse="collapse",s.style.width="100%",r.querySelectorAll("tbody tr:nth-child(odd)").forEach(l=>{l.style.background="var(--md-sys-color-surface-container)"}),r.querySelectorAll("th").forEach(l=>{const h=l;h.style.border="1px solid var(--md-sys-color-on-surface)",h.style.padding="8px"}),r.querySelectorAll("td").forEach(l=>{const h=l;h.style.border="1px solid var(--md-sys-color-on-surface)",h.style.padding="8px"}),r.querySelectorAll("tr").forEach(l=>{const h=Array.from(l.children).filter(p=>p.tagName==="TD"||p.tagName==="TH");h.length>0&&(h[0].style.borderLeft="none",h[h.length-1].style.borderRight="none")})}})}render(){switch(this.variant){case"Table":return c`
8887
+ `,Me([n({type:String,reflect:!0})],a.ScbTooltip.prototype,"variant",2),Me([n({type:Boolean,reflect:!0})],a.ScbTooltip.prototype,"arrow",2),Me([n({type:String,attribute:"supporting-text"})],a.ScbTooltip.prototype,"supportingtext",2),Me([n({type:String})],a.ScbTooltip.prototype,"label",2),Me([n({type:String,reflect:!0})],a.ScbTooltip.prototype,"trigger",2),Me([n({type:String,reflect:!0})],a.ScbTooltip.prototype,"position",2),Me([n({type:Boolean,reflect:!0})],a.ScbTooltip.prototype,"open",2),Me([n({type:Number,reflect:!0})],a.ScbTooltip.prototype,"delay",2),Me([n({type:Number,reflect:!0})],a.ScbTooltip.prototype,"offset",2),a.ScbTooltip=Me([g("scb-tooltip")],a.ScbTooltip);var Fv=Object.defineProperty,Hv=Object.getOwnPropertyDescriptor,Sl=o=>{throw TypeError(o)},se=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hv(e,t):e,s=o.length-1,l;s>=0;s--)(l=o[s])&&(r=(i?l(e,t,r):l(r))||r);return i&&r&&Fv(e,t,r),r},Nv=(o,e,t)=>e.has(o)||Sl("Cannot "+t),Vv=(o,e,t)=>e.has(o)?Sl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Ki=(o,e,t)=>(Nv(o,e,"access private method"),t),Ft,ls,mo;return a.ScbViz=class extends y{constructor(){super(...arguments),Vv(this,Ft),this.variant="Standard",this.selectedChip="Diagram",this.title="",this.subtitle="",this.description="",this.comment="",this.source="",this.footnote="",this.lang="sv",this.imageHref="",this.spacing="",this.spacingTop="",this.spacingBottom=""}get descriptionLabel(){return this.lang==="en"?"Description of the chart":"Beskrivning av diagrammet"}get moreAboutStatsLabel(){return this.lang==="en"?"More about the statistics":"Mer om statistiken"}get commentLabel(){return this.lang==="en"?"Comments":"Kommentar"}get sourceLabel(){return this.lang==="en"?"Source":"Källa"}get footnoteLabel(){return this.lang==="en"?"Footnotes":"Fotnot"}firstUpdated(e){var i;const t=(i=this.shadowRoot)==null?void 0:i.querySelector('slot[name="table"]');t&&(t.addEventListener("slotchange",()=>this._styleSlottedTable()),this._styleSlottedTable()),Ki(this,Ft,ls).call(this)}updated(e){super.updated(e),this._styleSlottedTable(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom"))&&Ki(this,Ft,ls).call(this)}_styleSlottedTable(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector('slot[name="table"]');if(!e)return;e.assignedElements({flatten:!0}).forEach(r=>{if(r.tagName==="TABLE"){const s=r;s.style.borderCollapse="collapse",s.style.width="100%",r.querySelectorAll("tbody tr:nth-child(odd)").forEach(l=>{l.style.background="var(--md-sys-color-surface-container)"}),r.querySelectorAll("th").forEach(l=>{const h=l;h.style.border="1px solid var(--md-sys-color-on-surface)",h.style.padding="8px"}),r.querySelectorAll("td").forEach(l=>{const h=l;h.style.border="1px solid var(--md-sys-color-on-surface)",h.style.padding="8px"}),r.querySelectorAll("tr").forEach(l=>{const h=Array.from(l.children).filter(p=>p.tagName==="TD"||p.tagName==="TH");h.length>0&&(h[0].style.borderLeft="none",h[h.length-1].style.borderRight="none")})}})}render(){switch(this.variant){case"Table":return c`
8796
8888
  <div part="container">
8797
8889
  <div class="header">
8798
8890
  ${this.title?c` <div class="label">${this.title}</div> `:""}