scb-wc 0.1.148 → 0.1.149

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.
Files changed (169) hide show
  1. package/README.md +22 -41
  2. package/all.js +5 -0
  3. package/fonts/material-symbols-outlined/files/material-symbols-outlined-subset.woff2 +0 -0
  4. package/icons.json +1 -3
  5. package/index.js +95 -90
  6. package/mvc/components/all.js +5 -0
  7. package/mvc/components/scb-accordion/scb-accordion-item.js +9 -9
  8. package/mvc/components/scb-app-bar/scb-app-bar.js +6 -6
  9. package/mvc/components/scb-avatar/scb-avatar.js +2 -2
  10. package/mvc/components/scb-badge/scb-badge.js +3 -3
  11. package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +3 -3
  12. package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +12 -12
  13. package/mvc/components/scb-button/scb-button.js +3 -5
  14. package/mvc/components/scb-calendar/scb-calendar.js +8 -8
  15. package/mvc/components/scb-calendar-card/scb-calendar-card.js +9 -9
  16. package/mvc/components/scb-card/scb-card.js +39 -39
  17. package/mvc/components/scb-checkbox/scb-checkbox-group.js +5 -5
  18. package/mvc/components/scb-checkbox/scb-checkbox.js +8 -8
  19. package/mvc/{vendor → components/scb-chevron}/scb-chevron.js +1 -1
  20. package/mvc/components/scb-chip/scb-chip.js +7 -7
  21. package/mvc/components/scb-collapse/scb-collapse.js +10 -10
  22. package/mvc/components/scb-datepicker/scb-datepicker.js +132 -0
  23. package/mvc/components/scb-dialog/scb-dialog.js +2 -2
  24. package/mvc/components/scb-drop-zone/scb-drop-zone.js +2 -2
  25. package/mvc/components/scb-dropdown/scb-dropdown.js +46 -31
  26. package/mvc/components/scb-fab/scb-fab.js +6 -6
  27. package/mvc/components/scb-fact-card/scb-fact-card-content.js +3 -3
  28. package/mvc/components/scb-fact-card/scb-fact-card.js +2 -2
  29. package/mvc/components/scb-footer/scb-footer.js +8 -8
  30. package/mvc/components/scb-form-error-summary/scb-form-error-summary.js +3 -3
  31. package/mvc/components/scb-header/scb-header.js +59 -99
  32. package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +7 -7
  33. package/mvc/components/scb-icon/scb-icon.js +2 -2
  34. package/mvc/components/scb-icon-button/scb-icon-button.js +6 -6
  35. package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +4 -4
  36. package/mvc/components/scb-link/scb-link.js +4 -4
  37. package/mvc/components/scb-list/scb-list-item.js +6 -6
  38. package/mvc/components/scb-list/scb-list.js +2 -2
  39. package/mvc/components/scb-menu/scb-menu-item.js +2 -2
  40. package/mvc/components/scb-menu/scb-menu-section.js +3 -5
  41. package/mvc/components/scb-menu/scb-menu.js +4 -8
  42. package/mvc/components/scb-nav/scb-nav.js +2 -2
  43. package/mvc/components/scb-notification-card/scb-notification-card.js +12 -12
  44. package/mvc/components/scb-options-menu/scb-options-menu-item.js +2 -2
  45. package/mvc/components/scb-options-menu/scb-options-menu.js +3 -2
  46. package/mvc/components/scb-pagination/scb-pagination.js +7 -7
  47. package/mvc/components/scb-progress-stepper/scb-progress-step.js +2 -2
  48. package/mvc/components/scb-radio-button/scb-radio-button.js +7 -7
  49. package/mvc/components/scb-radio-button/scb-radio-group.js +4 -4
  50. package/mvc/components/scb-search/scb-search.js +3 -3
  51. package/mvc/components/scb-segmented-button/scb-segmented-button.js +1 -1
  52. package/mvc/components/scb-segmented-button/scb-segmented-item.js +2 -2
  53. package/mvc/components/scb-select/scb-select-option.js +2 -2
  54. package/mvc/components/scb-select/scb-select.js +14 -14
  55. package/mvc/components/scb-slider/scb-slider.js +11 -11
  56. package/mvc/components/scb-snackbar/scb-snackbar.js +7 -7
  57. package/mvc/components/scb-status-pill/scb-status-pill.js +2 -2
  58. package/mvc/components/scb-stepper/scb-step.js +2 -8
  59. package/mvc/components/scb-stepper/scb-stepper.js +2 -24
  60. package/mvc/components/scb-switch/scb-switch.js +4 -4
  61. package/mvc/components/scb-table/scb-table.js +2 -2
  62. package/mvc/components/scb-table-advanced/scb-table-advanced.js +6 -6
  63. package/mvc/components/scb-textfield/scb-textfield.js +35 -166
  64. package/mvc/components/scb-toc/scb-toc-item.js +9 -9
  65. package/mvc/components/scb-tooltip/scb-tooltip.js +5 -5
  66. package/mvc/components/scb-viz/scb-viz.js +66 -100
  67. package/mvc/components/shared/lazy-focus-ring.js +2 -0
  68. package/mvc/components/shared/lazy-ripple.js +2 -0
  69. package/mvc/components/shared/scb-icon-svg.js +11 -0
  70. package/mvc/fonts/material-symbols-outlined/files/material-symbols-outlined-subset.woff2 +0 -0
  71. package/mvc/scb-typography.css +1 -1
  72. package/mvc/scb-wc-core.css +1 -1
  73. package/mvc/scb-wc-selfhost.css +1 -1
  74. package/mvc/scb-wc.css +1 -1
  75. package/mvc/vendor/scb-card-variants.internal.js +36 -26
  76. package/package.json +2 -2
  77. package/scb-accordion/scb-accordion-item.js +26 -29
  78. package/scb-app-bar/scb-app-bar.js +11 -11
  79. package/scb-avatar/scb-avatar.js +4 -4
  80. package/scb-badge/scb-badge.js +1 -1
  81. package/scb-breadcrumb/scb-breadcrumb-item.js +20 -1
  82. package/scb-breadcrumb/scb-breadcrumb.js +24 -3
  83. package/scb-button/scb-button.js +13 -20
  84. package/scb-calendar/scb-calendar.js +5 -5
  85. package/scb-calendar-card/scb-calendar-card.js +44 -35
  86. package/scb-card/scb-card-variants.internal.js +1 -1
  87. package/scb-card/scb-card.js +219 -171
  88. package/scb-checkbox/scb-checkbox-group.js +24 -25
  89. package/scb-checkbox/scb-checkbox.js +23 -22
  90. package/scb-chevron/scb-chevron.js +1 -0
  91. package/scb-chip/scb-chip.js +56 -26
  92. package/scb-collapse/scb-collapse.js +10 -10
  93. package/scb-components/index.d.ts +104 -0
  94. package/scb-components/scb-card/scb-card.d.ts +1 -0
  95. package/scb-components/scb-chevron/scb-chevron.d.ts +11 -0
  96. package/scb-components/scb-datepicker/scb-datepicker.d.ts +45 -0
  97. package/scb-components/scb-dropdown/scb-dropdown.d.ts +1 -1
  98. package/scb-components/scb-icon-button/scb-icon-button.d.ts +1 -1
  99. package/scb-components/scb-list/scb-list-item.d.ts +1 -0
  100. package/scb-components/scb-list/scb-list.d.ts +1 -0
  101. package/scb-components/scb-segmented-button/scb-segmented-button.d.ts +4 -0
  102. package/scb-components/scb-select/scb-select.d.ts +1 -0
  103. package/scb-components/scb-textfield/scb-textfield.d.ts +1 -1
  104. package/scb-components/scb-viz/scb-viz.d.ts +3 -1
  105. package/scb-components/shared/lazy-focus-ring.d.ts +4 -0
  106. package/scb-components/shared/lazy-ripple.d.ts +9 -0
  107. package/scb-components/shared/scb-icon-svg.d.ts +3 -0
  108. package/scb-datepicker/scb-datepicker.js +1 -0
  109. package/scb-dialog/scb-dialog.js +4 -4
  110. package/scb-drop-zone/scb-drop-zone.js +23 -23
  111. package/scb-dropdown/scb-dropdown.js +44 -40
  112. package/scb-fab/scb-fab.js +12 -3
  113. package/scb-fact-card/scb-fact-card-content.js +36 -27
  114. package/scb-fact-card/scb-fact-card.js +9 -33
  115. package/scb-footer/scb-footer.js +9 -9
  116. package/scb-form-error-summary/scb-form-error-summary.js +7 -7
  117. package/scb-header/scb-header.js +90 -117
  118. package/scb-horizontal-scroller/scb-horizontal-scroller.js +4 -4
  119. package/scb-icon/scb-icon.js +1 -1
  120. package/scb-icon-button/scb-icon-button.js +8 -8
  121. package/scb-keyfigure-card/scb-keyfigure-card.js +21 -37
  122. package/scb-link/scb-link.js +1 -0
  123. package/scb-list/scb-list-item.js +30 -10
  124. package/scb-list/scb-list.js +5 -2
  125. package/scb-menu/scb-menu-item.js +2 -2
  126. package/scb-menu/scb-menu-section.js +4 -9
  127. package/scb-menu/scb-menu.js +8 -22
  128. package/scb-nav/scb-nav.js +3 -3
  129. package/scb-notification-card/scb-notification-card.js +9 -41
  130. package/scb-options-menu/scb-options-menu-item.js +4 -3
  131. package/scb-options-menu/scb-options-menu.js +32 -26
  132. package/scb-pagination/scb-pagination.js +2 -2
  133. package/scb-progress-stepper/scb-progress-step.js +3 -3
  134. package/scb-radio-button/scb-radio-button.js +33 -32
  135. package/scb-radio-button/scb-radio-group.js +24 -25
  136. package/scb-search/scb-search.js +35 -39
  137. package/scb-segmented-button/scb-segmented-button.js +14 -16
  138. package/scb-segmented-button/scb-segmented-item.js +53 -29
  139. package/scb-select/scb-select-option.js +6 -6
  140. package/scb-select/scb-select.js +93 -86
  141. package/scb-slider/scb-slider.js +18 -4
  142. package/scb-snackbar/scb-snackbar.js +9 -7
  143. package/scb-status-pill/scb-status-pill.js +4 -4
  144. package/scb-stepper/scb-step.js +19 -22
  145. package/scb-stepper/scb-stepper.js +14 -36
  146. package/scb-switch/scb-switch.js +17 -10
  147. package/scb-table/scb-table.js +14 -4
  148. package/scb-table-advanced/scb-table-advanced.js +14 -4
  149. package/scb-textfield/scb-textfield.js +58 -78
  150. package/scb-toc/scb-toc-item.js +9 -36
  151. package/scb-tooltip/scb-tooltip.js +6 -6
  152. package/scb-typography.css +1 -1
  153. package/scb-viz/scb-viz.js +87 -200
  154. package/scb-wc-core.css +1 -1
  155. package/scb-wc-selfhost.css +1 -1
  156. package/scb-wc.bundle.js +2052 -2160
  157. package/scb-wc.css +1 -1
  158. package/scb-wc.d.ts +208 -198
  159. package/shared/scb-icon-svg.js +5 -2
  160. package/starters/blazor/Components/Pages/Home.razor +1 -1
  161. package/starters/blazor-service/Components/Pages/Home.razor +1 -1
  162. package/starters/html/main.js +1 -1
  163. package/starters/html-service/main.js +1 -1
  164. package/starters/react/src/App.jsx +1 -1
  165. package/starters/react-service/src/App.jsx +1 -1
  166. package/mvc/vendor/lazy-focus-ring.js +0 -2
  167. package/mvc/vendor/lazy-ripple.js +0 -2
  168. package/mvc/vendor/scb-icon-svg.js +0 -11
  169. package/scb-wc-public-entry/index.d.ts +0 -99
@@ -1,9 +1,9 @@
1
- import{h as z,m as T,p as o,v as d,y as w}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as l}from"../../vendor/decorate.js";import{n as k,t as i}from"../../vendor/assertClassBrand.js";import"../scb-button/scb-button.js";import"../scb-icon-button/scb-icon-button.js";import"../scb-search/scb-search.js";import"../scb-avatar/scb-avatar.js";(function(){try{var a=typeof globalThis<"u"?globalThis:window;if(!a.__scb_ce_guard_installed__){a.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(s,r,c){try{customElements.get(s)||t(s,r,c)}catch(h){var b=String(h||"");if(b.indexOf("already been used")===-1&&b.indexOf("NotSupportedError")===-1)throw h}}}}catch{}})();var e,f,n=(e=new WeakSet,f=class extends z{constructor(...t){super(...t),k(this,e),this.title="",this.appBarTitle="",this.type="default",this.position="default",this.ariaLabel="",this.defaultAriaLabel="Appfält",this.searchAriaLabel="Sökfält",this.searchSupportingText="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.__titleResizeRaf=0}connectedCallback(){super.connectedCallback(),typeof ResizeObserver<"u"&&(this.__titleResizeObserver=new ResizeObserver(()=>i(e,this,m).call(this)))}disconnectedCallback(){this.__titleResizeRaf&&(cancelAnimationFrame(this.__titleResizeRaf),this.__titleResizeRaf=0),this.__titleResizeObserver?.disconnect(),this.__titleResizeObserver=void 0,super.disconnectedCallback()}handleActionsSlotChange(t){t.target.assignedElements({flatten:!0}).forEach(s=>{if(s.tagName==="SCB-BUTTON"){const r=s;(!r.hasAttribute("size")||r.getAttribute("size")==="medium")&&r.setAttribute("size","small")}}),i(e,this,m).call(this)}handleAvatarSlotChange(t){t.target.assignedElements({flatten:!0}).forEach(s=>{s.tagName==="SCB-AVATAR"&&s.setAttribute("size","small")}),i(e,this,m).call(this)}firstUpdated(){i(e,this,S).call(this),i(e,this,v).call(this)}updated(t){(t.has("title")||t.has("appBarTitle"))&&(this.dispatchEvent(new CustomEvent("title-changed",{detail:{title:p.call(i(e,this))},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("app-bar-title-changed",{detail:{appBarTitle:p.call(i(e,this))},bubbles:!0,composed:!0}))),t.has("position")&&this.dispatchEvent(new CustomEvent("position-changed",{detail:{position:this.position},bubbles:!0,composed:!0})),t.has("type")&&(this.dispatchEvent(new CustomEvent("type-changed",{detail:{type:this.type},bubbles:!0,composed:!0})),i(e,this,v).call(this)),t.has("searchSupportingText")&&this.dispatchEvent(new CustomEvent("search-supporting-text-changed",{detail:{searchSupportingText:this.searchSupportingText},bubbles:!0,composed:!0})),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&i(e,this,S).call(this)}mapSpacingToken(t){if(!t)return;const s=String(t).trim();if(s)return/^\d+$/.test(s)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(s,10)))})`:s}render(){switch(this.type){case"small-flexible":return d`
1
+ import{h as $,m as T,p as o,v as d,y as w}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as l}from"../../vendor/decorate.js";import{n as k,t as i}from"../../vendor/assertClassBrand.js";import"../scb-button/scb-button.js";import"../scb-icon-button/scb-icon-button.js";import"../scb-search/scb-search.js";import"../scb-avatar/scb-avatar.js";(function(){try{var a=typeof globalThis<"u"?globalThis:window;if(!a.__scb_ce_guard_installed__){a.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(s,r,p){try{customElements.get(s)||t(s,r,p)}catch(h){var b=String(h||"");if(b.indexOf("already been used")===-1&&b.indexOf("NotSupportedError")===-1)throw h}}}}catch{}})();var e,u,n=(e=new WeakSet,u=class extends ${constructor(...t){super(...t),k(this,e),this.title="",this.appBarTitle="",this.type="default",this.position="default",this.ariaLabel="",this.defaultAriaLabel="Appfält",this.searchAriaLabel="Sökfält",this.searchSupportingText="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.__titleResizeRaf=0}connectedCallback(){super.connectedCallback(),typeof ResizeObserver<"u"&&(this.__titleResizeObserver=new ResizeObserver(()=>i(e,this,m).call(this)))}disconnectedCallback(){this.__titleResizeRaf&&(cancelAnimationFrame(this.__titleResizeRaf),this.__titleResizeRaf=0),this.__titleResizeObserver?.disconnect(),this.__titleResizeObserver=void 0,super.disconnectedCallback()}handleActionsSlotChange(t){t.target.assignedElements({flatten:!0}).forEach(s=>{if(s.tagName==="SCB-BUTTON"){const r=s;(!r.hasAttribute("size")||r.getAttribute("size")==="medium")&&r.setAttribute("size","small")}}),i(e,this,m).call(this)}handleAvatarSlotChange(t){t.target.assignedElements({flatten:!0}).forEach(s=>{s.tagName==="SCB-AVATAR"&&s.setAttribute("size","small")}),i(e,this,m).call(this)}firstUpdated(){i(e,this,S).call(this),i(e,this,v).call(this)}updated(t){(t.has("title")||t.has("appBarTitle"))&&(this.dispatchEvent(new CustomEvent("title-changed",{detail:{title:c.call(i(e,this))},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("app-bar-title-changed",{detail:{appBarTitle:c.call(i(e,this))},bubbles:!0,composed:!0}))),t.has("position")&&this.dispatchEvent(new CustomEvent("position-changed",{detail:{position:this.position},bubbles:!0,composed:!0})),t.has("type")&&(this.dispatchEvent(new CustomEvent("type-changed",{detail:{type:this.type},bubbles:!0,composed:!0})),i(e,this,v).call(this)),t.has("searchSupportingText")&&this.dispatchEvent(new CustomEvent("search-supporting-text-changed",{detail:{searchSupportingText:this.searchSupportingText},bubbles:!0,composed:!0})),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&i(e,this,S).call(this)}mapSpacingToken(t){if(!t)return;const s=String(t).trim();if(s)return/^\d+$/.test(s)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(s,10)))})`:s}render(){switch(this.type){case"small-flexible":return d`
2
2
  <header class="small-flexible ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label=${g.call(i(e,this))}>
3
3
  <div class="leading">
4
4
  <slot name="leading" @slotchange=${this.handleActionsSlotChange}></slot>
5
5
  </div>
6
- <h1 class="headline">${p.call(i(e,this))}</h1>
6
+ <h1 class="headline">${c.call(i(e,this))}</h1>
7
7
  <div class="trailing">
8
8
  <slot name="trailing" @slotchange=${this.handleActionsSlotChange}></slot>
9
9
  <slot name="avatar" @slotchange=${this.handleAvatarSlotChange}></slot>
@@ -14,7 +14,7 @@ import{h as z,m as T,p as o,v as d,y as w}from"../../vendor/vendor.js";import"..
14
14
  <div class="leading">
15
15
  <slot name="leading" @slotchange=${this.handleActionsSlotChange}></slot>
16
16
  </div>
17
- <h1 class="headline">${p.call(i(e,this))}</h1>
17
+ <h1 class="headline">${c.call(i(e,this))}</h1>
18
18
  <div class="trailing">
19
19
  <slot name="trailing" @slotchange=${this.handleActionsSlotChange}></slot>
20
20
  <slot name="avatar" @slotchange=${this.handleAvatarSlotChange}></slot>
@@ -25,7 +25,7 @@ import{h as z,m as T,p as o,v as d,y as w}from"../../vendor/vendor.js";import"..
25
25
  <div class="leading">
26
26
  <slot name="leading" @slotchange=${this.handleActionsSlotChange}></slot>
27
27
  </div>
28
- <h1 class="headline">${p.call(i(e,this))}</h1>
28
+ <h1 class="headline">${c.call(i(e,this))}</h1>
29
29
  <div class="trailing">
30
30
  <slot name="trailing" @slotchange=${this.handleActionsSlotChange}></slot>
31
31
  <slot name="avatar" @slotchange=${this.handleAvatarSlotChange}></slot>
@@ -49,10 +49,10 @@ import{h as z,m as T,p as o,v as d,y as w}from"../../vendor/vendor.js";import"..
49
49
  <div class="leading">
50
50
  <slot name="leading" @slotchange=${this.handleActionsSlotChange}></slot>
51
51
  </div>
52
- <h1 class="headline">${p.call(i(e,this))}</h1>
52
+ <h1 class="headline">${c.call(i(e,this))}</h1>
53
53
  <div class="trailing">
54
54
  <slot name="trailing" @slotchange=${this.handleActionsSlotChange}></slot>
55
55
  <slot name="avatar" @slotchange=${this.handleAvatarSlotChange}></slot>
56
56
  </div>
57
57
  </header>
58
- `}}},f.styles=[w`:host{display:block;font-family:var(--brand-font, Inter, Arial, sans-serif);position:relative;container-type:inline-size;container-name:app-bar-container;--app-search-height:64px;margin-block-start:var(--scb-app-bar-spacing-block-start, 0);margin-block-end:var(--scb-app-bar-spacing-block-end, 0);margin-inline-start:var(--scb-app-bar-spacing-inline-start, 0);margin-inline-end:var(--scb-app-bar-spacing-inline-end, 0)}header{background:var(--md-sys-color-surface-container);color:var(--md-sys-color-on-surface);display:flex;align-items:center;padding:0 var(--spacing-5);position:relative;z-index:10;transition:height .3s;min-height:var(--app-search-height)}header.search{height:var(--app-search-height)}header.medium-flexible{min-height:96px}header.large-flexible{min-height:128px}header.position-top{position:fixed;top:0;left:0;right:0;z-index:100}header.position-bottom{position:fixed;bottom:0;left:0;right:0;z-index:100}header.default .trailing{margin-inline-start:auto}header.default .headline{position:absolute;inset-inline-start:50%;inset-block-start:50%;transform:translate(-50%,-50%);max-width:var(--scb-app-bar-title-max-width, 100%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.headline{flex:1 1 auto;text-align:center;font-family:var(--md-sys-typescale-title-large-font, var(--brand-font, Inter, Arial, sans-serif));font-size:var(--md-sys-typescale-title-large-size);line-height:var(--md-sys-typescale-title-large-line-height, calc(var(--md-sys-typescale-title-large-size) * 1.3));font-weight:600;margin:0}header.small-flexible .headline{text-align:left;margin-left:var(--spacing-5)}header.medium-flexible .headline{font-family:var(--md-sys-typescale-headline-small-font, var(--brand-font, Inter, Arial, sans-serif));font-size:var(--md-sys-typescale-headline-small-size);line-height:var(--md-sys-typescale-headline-small-line-height, 30px);font-weight:700;letter-spacing:var(--md-sys-typescale-headline-small-tracking);text-align:left;margin:0 0 0 var(--spacing-3)}header.large-flexible .headline{font-family:var(--md-sys-typescale-headline-medium-font, var(--brand-font, Inter, Arial, sans-serif));font-size:var(--md-sys-typescale-headline-medium-size);font-weight:700;line-height:var(--md-sys-typescale-headline-medium-line-height);letter-spacing:var(--md-sys-typescale-headline-medium-tracking);text-align:left;margin:0 0 0 var(--spacing-3)}.search-container{flex:1 1 auto;display:flex;align-items:center;justify-content:center;padding:0 var(--spacing-3)}.leading,.trailing{display:flex;align-items:center;gap:var(--spacing-2)}`],f);function m(){this.type==="default"&&(this.__titleResizeRaf||(this.__titleResizeRaf=requestAnimationFrame(()=>{this.__titleResizeRaf=0,i(e,this,E).call(this)})))}function v(){this.__titleResizeObserver?.disconnect();const a=this.shadowRoot?.querySelector("header");if(a&&a.style.removeProperty("--scb-app-bar-title-max-width"),this.type!=="default"||!this.__titleResizeObserver)return;const t=this.shadowRoot?.querySelector("header.default");if(!t)return;const s=t.querySelector(".leading"),r=t.querySelector(".trailing");!s||!r||(this.__titleResizeObserver.observe(t),this.__titleResizeObserver.observe(s),this.__titleResizeObserver.observe(r),i(e,this,m).call(this))}function u(a){if(!a)return 0;const t=parseFloat(a);return Number.isFinite(t)?t:0}function y(a){const t=getComputedStyle(a);return i(e,this,u).call(this,t.columnGap||t.gap)}function E(){const a=this.shadowRoot?.querySelector("header.default");if(!a)return;const t=a.querySelector(".leading"),s=a.querySelector(".trailing");if(!t||!s)return;const r=a.getBoundingClientRect(),c=t.getBoundingClientRect(),b=s.getBoundingClientRect(),h=getComputedStyle(a),_=i(e,this,u).call(this,h.paddingInlineStart||h.paddingLeft),x=i(e,this,u).call(this,h.paddingInlineEnd||h.paddingRight),A=Math.max(0,r.width-_-x),R=Math.max(c.width,b.width),C=Math.max(i(e,this,y).call(this,t),i(e,this,y).call(this,s)),$=Math.max(0,A-R*2-C*2);a.style.setProperty("--scb-app-bar-title-max-width",`${$}px`)}function S(){const a=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??a,s=this.mapSpacingToken(this.spacingBottom)??a,r=this.mapSpacingToken(this.spacingLeft),c=this.mapSpacingToken(this.spacingRight);t?this.style.setProperty("--scb-app-bar-spacing-block-start",t):this.style.removeProperty("--scb-app-bar-spacing-block-start"),s?this.style.setProperty("--scb-app-bar-spacing-block-end",s):this.style.removeProperty("--scb-app-bar-spacing-block-end"),r?this.style.setProperty("--scb-app-bar-spacing-inline-start",r):this.style.removeProperty("--scb-app-bar-spacing-inline-start"),c?this.style.setProperty("--scb-app-bar-spacing-inline-end",c):this.style.removeProperty("--scb-app-bar-spacing-inline-end")}function p(){return this.appBarTitle||this.title}function g(){const a=this.ariaLabel.trim();return a||(this.type==="search"?this.searchAriaLabel:this.defaultAriaLabel)}l([o({type:String,reflect:!0})],n.prototype,"title",void 0);l([o({type:String,attribute:"app-bar-title",reflect:!0})],n.prototype,"appBarTitle",void 0);l([o({type:String,reflect:!0})],n.prototype,"type",void 0);l([o({type:String,reflect:!0})],n.prototype,"position",void 0);l([o({type:String,attribute:"aria-label",reflect:!0})],n.prototype,"ariaLabel",void 0);l([o({type:String,attribute:"default-aria-label"})],n.prototype,"defaultAriaLabel",void 0);l([o({type:String,attribute:"search-aria-label"})],n.prototype,"searchAriaLabel",void 0);l([o({type:String,attribute:"search-supporting-text",reflect:!0})],n.prototype,"searchSupportingText",void 0);l([o({type:String,reflect:!0})],n.prototype,"spacing",void 0);l([o({type:String,attribute:"spacing-top",reflect:!0})],n.prototype,"spacingTop",void 0);l([o({type:String,attribute:"spacing-bottom",reflect:!0})],n.prototype,"spacingBottom",void 0);l([o({type:String,attribute:"spacing-left",reflect:!0})],n.prototype,"spacingLeft",void 0);l([o({type:String,attribute:"spacing-right",reflect:!0})],n.prototype,"spacingRight",void 0);n=l([T("scb-app-bar")],n);
58
+ `}}},u.styles=[w`:host{display:block;font-family:var(--brand-font, Inter, Arial, sans-serif);position:relative;container-type:inline-size;container-name:app-bar-container;--app-search-height:64px;margin-block-start:var(--scb-app-bar-spacing-block-start, 0);margin-block-end:var(--scb-app-bar-spacing-block-end, 0);margin-inline-start:var(--scb-app-bar-spacing-inline-start, 0);margin-inline-end:var(--scb-app-bar-spacing-inline-end, 0)}header{background:var(--md-sys-color-surface-container);color:var(--md-sys-color-on-surface);display:flex;align-items:center;padding:0 var(--spacing-5);position:relative;z-index:10;transition:height .3s;min-height:var(--app-search-height)}header.search{height:var(--app-search-height)}header.medium-flexible{min-height:96px}header.large-flexible{min-height:128px}header.position-top{position:fixed;top:0;left:0;right:0;z-index:100}header.position-bottom{position:fixed;bottom:0;left:0;right:0;z-index:100}header.default .trailing{margin-inline-start:auto}header.default .headline{position:absolute;inset-inline-start:50%;inset-block-start:50%;transform:translate(-50%,-50%);max-width:var(--scb-app-bar-title-max-width, 100%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.headline{flex:1 1 auto;text-align:center;font-family:var(--scb-typography-title-large-font, var(--md-sys-typescale-title-large-font, var(--brand-font, Inter, Arial, sans-serif)));font-size:var(--scb-typography-title-large-size, var(--md-sys-typescale-title-large-size));line-height:var(--scb-typography-title-large-line-height, var(--md-sys-typescale-title-large-line-height, calc(var(--md-sys-typescale-title-large-size) * 1.3)));font-weight:600;margin:0}header.small-flexible .headline{text-align:left;margin-left:var(--spacing-5)}header.medium-flexible .headline{font-family:var(--scb-typography-headline-small-font, var(--md-sys-typescale-headline-small-font, var(--brand-font, Inter, Arial, sans-serif)));font-size:var(--scb-typography-headline-small-size, var(--md-sys-typescale-headline-small-size));line-height:var(--scb-typography-headline-small-line-height, var(--md-sys-typescale-headline-small-line-height, 30px));font-weight:700;letter-spacing:var(--scb-typography-headline-small-tracking, var(--md-sys-typescale-headline-small-tracking));text-align:left;margin:0 0 0 var(--spacing-3)}header.large-flexible .headline{font-family:var(--scb-typography-headline-medium-font, var(--md-sys-typescale-headline-medium-font, var(--brand-font, Inter, Arial, sans-serif)));font-size:var(--scb-typography-headline-medium-size, var(--md-sys-typescale-headline-medium-size));font-weight:700;line-height:var(--scb-typography-headline-medium-line-height, var(--md-sys-typescale-headline-medium-line-height));letter-spacing:var(--scb-typography-headline-medium-tracking, var(--md-sys-typescale-headline-medium-tracking));text-align:left;margin:0 0 0 var(--spacing-3)}.search-container{flex:1 1 auto;display:flex;align-items:center;justify-content:center;padding:0 var(--spacing-3)}.leading,.trailing{display:flex;align-items:center;gap:var(--spacing-2)}`],u);function m(){this.type==="default"&&(this.__titleResizeRaf||(this.__titleResizeRaf=requestAnimationFrame(()=>{this.__titleResizeRaf=0,i(e,this,E).call(this)})))}function v(){this.__titleResizeObserver?.disconnect();const a=this.shadowRoot?.querySelector("header");if(a&&a.style.removeProperty("--scb-app-bar-title-max-width"),this.type!=="default"||!this.__titleResizeObserver)return;const t=this.shadowRoot?.querySelector("header.default");if(!t)return;const s=t.querySelector(".leading"),r=t.querySelector(".trailing");!s||!r||(this.__titleResizeObserver.observe(t),this.__titleResizeObserver.observe(s),this.__titleResizeObserver.observe(r),i(e,this,m).call(this))}function f(a){if(!a)return 0;const t=parseFloat(a);return Number.isFinite(t)?t:0}function y(a){const t=getComputedStyle(a);return i(e,this,f).call(this,t.columnGap||t.gap)}function E(){const a=this.shadowRoot?.querySelector("header.default");if(!a)return;const t=a.querySelector(".leading"),s=a.querySelector(".trailing");if(!t||!s)return;const r=a.getBoundingClientRect(),p=t.getBoundingClientRect(),b=s.getBoundingClientRect(),h=getComputedStyle(a),_=i(e,this,f).call(this,h.paddingInlineStart||h.paddingLeft),x=i(e,this,f).call(this,h.paddingInlineEnd||h.paddingRight),A=Math.max(0,r.width-_-x),R=Math.max(p.width,b.width),z=Math.max(i(e,this,y).call(this,t),i(e,this,y).call(this,s)),C=Math.max(0,A-R*2-z*2);a.style.setProperty("--scb-app-bar-title-max-width",`${C}px`)}function S(){const a=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??a,s=this.mapSpacingToken(this.spacingBottom)??a,r=this.mapSpacingToken(this.spacingLeft),p=this.mapSpacingToken(this.spacingRight);t?this.style.setProperty("--scb-app-bar-spacing-block-start",t):this.style.removeProperty("--scb-app-bar-spacing-block-start"),s?this.style.setProperty("--scb-app-bar-spacing-block-end",s):this.style.removeProperty("--scb-app-bar-spacing-block-end"),r?this.style.setProperty("--scb-app-bar-spacing-inline-start",r):this.style.removeProperty("--scb-app-bar-spacing-inline-start"),p?this.style.setProperty("--scb-app-bar-spacing-inline-end",p):this.style.removeProperty("--scb-app-bar-spacing-inline-end")}function c(){return this.appBarTitle||this.title}function g(){const a=this.ariaLabel.trim();return a||(this.type==="search"?this.searchAriaLabel:this.defaultAriaLabel)}l([o({type:String,reflect:!0})],n.prototype,"title",void 0);l([o({type:String,attribute:"app-bar-title",reflect:!0})],n.prototype,"appBarTitle",void 0);l([o({type:String,reflect:!0})],n.prototype,"type",void 0);l([o({type:String,reflect:!0})],n.prototype,"position",void 0);l([o({type:String,attribute:"aria-label",reflect:!0})],n.prototype,"ariaLabel",void 0);l([o({type:String,attribute:"default-aria-label"})],n.prototype,"defaultAriaLabel",void 0);l([o({type:String,attribute:"search-aria-label"})],n.prototype,"searchAriaLabel",void 0);l([o({type:String,attribute:"search-supporting-text",reflect:!0})],n.prototype,"searchSupportingText",void 0);l([o({type:String,reflect:!0})],n.prototype,"spacing",void 0);l([o({type:String,attribute:"spacing-top",reflect:!0})],n.prototype,"spacingTop",void 0);l([o({type:String,attribute:"spacing-bottom",reflect:!0})],n.prototype,"spacingBottom",void 0);l([o({type:String,attribute:"spacing-left",reflect:!0})],n.prototype,"spacingLeft",void 0);l([o({type:String,attribute:"spacing-right",reflect:!0})],n.prototype,"spacingRight",void 0);n=l([T("scb-app-bar")],n);
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../vendor/icon.js","../../vendor/rolldown-runtime.js","../../vendor/vendor.js","../../vendor/vendor-lit.js"])))=>i.map(i=>d[i]);
2
- import{f as _,g as l,h as b,m as f,p as s,v as n,y}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as m}from"../../vendor/preload-helper.js";import{t as a}from"../../vendor/decorate.js";import{n as z,t as v}from"../../vendor/assertClassBrand.js";(function(){try{var r=typeof globalThis<"u"?globalThis:window;if(!r.__scb_ce_guard_installed__){r.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(i,o,c){try{customElements.get(i)||t(i,o,c)}catch(g){var d=String(g||"");if(d.indexOf("already been used")===-1&&d.indexOf("NotSupportedError")===-1)throw g}}}}catch{}})();var p,h,e=(p=new WeakSet,h=class extends b{constructor(...t){super(...t),z(this,p),this.src="",this.alt="",this.label="",this.size="medium",this.shape="circular",this.iconName="",this.variant="image",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,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=i=>{const o=i.currentTarget;this._hasIconSlot=(o.assignedNodes({flatten:!0})||[]).length>0}}async firstUpdated(){this.variant==="icon"&&await m(()=>import("../../vendor/icon.js").then(t=>t.t),__vite__mapDeps([0,1,2,3]),import.meta.url),v(p,this,u).call(this)}updated(t){super.updated(t),t.has("variant")&&this.variant==="icon"&&m(()=>import("../../vendor/icon.js").then(i=>i.t),__vite__mapDeps([0,1,2,3]),import.meta.url),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&v(p,this,u).call(this)}_initials(){const t=(this.label||this.alt||"").trim();if(!t)return"?";const i=t.split(/\s+/).filter(Boolean);return i.length===1?i[0].slice(0,1).toUpperCase():(i[0].slice(0,1)+i[i.length-1].slice(0,1)).toUpperCase()}_ariaLabel(){const t=(this.label||this.alt||"").trim();return t||null}mapSpacingToken(t){if(!t)return;const i=String(t).trim();if(i)return/^\d+$/.test(i)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(i,10)))})`:i}render(){const t=this._ariaLabel(),i=this.variant==="image"&&!!this.src&&!this._imgError,o=n`${l}
2
+ import{f as _,g as l,h as b,m as y,p as s,v as n,y as f}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as m}from"../../vendor/preload-helper.js";import{t as a}from"../../vendor/decorate.js";import{n as z,t as v}from"../../vendor/assertClassBrand.js";(function(){try{var r=typeof globalThis<"u"?globalThis:window;if(!r.__scb_ce_guard_installed__){r.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(i,o,c){try{customElements.get(i)||t(i,o,c)}catch(g){var d=String(g||"");if(d.indexOf("already been used")===-1&&d.indexOf("NotSupportedError")===-1)throw g}}}}catch{}})();var p,h,e=(p=new WeakSet,h=class extends b{constructor(...t){super(...t),z(this,p),this.src="",this.alt="",this.label="",this.size="medium",this.shape="circular",this.iconName="",this.variant="image",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,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=i=>{const o=i.currentTarget;this._hasIconSlot=(o.assignedNodes({flatten:!0})||[]).length>0}}async firstUpdated(){this.variant==="icon"&&await m(()=>import("../../vendor/icon.js").then(t=>t.t),__vite__mapDeps([0,1,2,3]),import.meta.url),v(p,this,u).call(this)}updated(t){super.updated(t),t.has("variant")&&this.variant==="icon"&&m(()=>import("../../vendor/icon.js").then(i=>i.t),__vite__mapDeps([0,1,2,3]),import.meta.url),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&v(p,this,u).call(this)}_initials(){const t=(this.label||this.alt||"").trim();if(!t)return"?";const i=t.split(/\s+/).filter(Boolean);return i.length===1?i[0].slice(0,1).toUpperCase():(i[0].slice(0,1)+i[i.length-1].slice(0,1)).toUpperCase()}_ariaLabel(){const t=(this.label||this.alt||"").trim();return t||null}mapSpacingToken(t){if(!t)return;const i=String(t).trim();if(i)return/^\d+$/.test(i)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(i,10)))})`:i}render(){const t=this._ariaLabel(),i=this.variant==="image"&&!!this.src&&!this._imgError,o=n`${l}
3
3
  <slot name="icon" @slotchange=${this._onIconSlotChange}></slot>
4
4
  ${this._hasIconSlot?l:this.iconName?n`<md-icon aria-hidden="true">${this.iconName}</md-icon>`:n`<div class="fallback" part="fallback">${this._initials()}</div>`}
5
5
  `,c=i?n`<img
@@ -16,4 +16,4 @@ import{f as _,g as l,h as b,m as f,p as s,v as n,y}from"../../vendor/vendor.js";
16
16
  <div class="container" part="container" role="img" aria-label=${t??l}>
17
17
  ${this.variant==="icon"?o:c}
18
18
  </div>
19
- `}},h.styles=y`:host{display:inline-block;vertical-align:middle;margin-block-start:var(--scb-avatar-spacing-block-start, 0);margin-block-end:var(--scb-avatar-spacing-block-end, 0);margin-inline-start:var(--scb-avatar-spacing-inline-start, 0);margin-inline-end:var(--scb-avatar-spacing-inline-end, 0);--_size:40px;--_font-size:16px;--_bg:var(--md-sys-color-primary-fixed-dim, var(--md-sys-color-primary-container));--_fg:var(--md-sys-color-on-primary-fixed, var(--md-sys-color-on-primary-container));--_radius:var(--radius-full, 1000px);--_border:0 solid transparent;font-family:var(--brand-font, Inter, system-ui, sans-serif);color-scheme:light dark}:host([size="small"]){--_size:32px;--_font-size:var(--md-sys-typescale-label-medium-size, 14px)}:host([size="medium"]){--_size:40px;--_font-size:var(--md-sys-typescale-label-large-size, 16px)}:host([size="large"]){--_size:56px;--_font-size:var(--md-sys-typescale-title-large-size, 20px)}:host([size="extra-large"]),:host([size="xlarge"]){--_size:80px;--_font-size:var(--md-sys-typescale-headline-medium-size, 28px)}:host([shape="circular"]){--_radius:var(--radius-full, 1000px)}:host([shape="rounded"]){--_radius:var(--radius-s, 8px)}:host([shape="square"]){--_radius:0}.container{inline-size:var(--_size);block-size:var(--_size);border-radius:var(--_radius);position:relative;overflow:hidden;user-select:none;line-height:1;border:var(--_border);display:grid;place-items:center}:host([variant="image"]) .container{background:0 0}:host([variant="image"]) img.photo{width:100%;height:100%;object-fit:cover;display:block}:host([size="small"]){--_icon-size:var(--icon-size-small, 20px)}:host([size="medium"]){--_icon-size:var(--icon-size-medium, 24px)}:host([size="large"]){--_icon-size:var(--icon-size-large, 30px)}:host([size="extra-large"]),:host([size="xlarge"]){--_icon-size:var(--icon-size-extra-extra-large, 48px)}:host([variant="icon"]) .container{background:var(--_bg);color:var(--_fg)}img.icon{width:var(--_icon-size);height:var(--_icon-size);object-fit:contain;display:block}.fallback{display:grid;place-items:center;width:100%;height:100%;font-size:var(--_font-size);font-weight:var(--weight-semibold, 600);letter-spacing:.01em;text-transform:uppercase;color:var(--_fg);background:var(--_bg)}:host([variant="image"]) .fallback{color:var(--md-sys-color-on-primary-container);background:var(--md-sys-color-primary-container)}::slotted([slot=icon]){width:var(--_icon-size);height:var(--_icon-size);line-height:1}:host(:focus-visible) .container{outline:var(--md-focus-ring-width, 2px) solid var(--md-focus-ring-color, var(--p-40));outline-offset:2px;border-radius:var(--_radius)}`,h);function u(){const r=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??r,i=this.mapSpacingToken(this.spacingBottom)??r,o=this.mapSpacingToken(this.spacingLeft)??r,c=this.mapSpacingToken(this.spacingRight)??r;t?this.style.setProperty("--scb-avatar-spacing-block-start",t):this.style.removeProperty("--scb-avatar-spacing-block-start"),i?this.style.setProperty("--scb-avatar-spacing-block-end",i):this.style.removeProperty("--scb-avatar-spacing-block-end"),o?this.style.setProperty("--scb-avatar-spacing-inline-start",o):this.style.removeProperty("--scb-avatar-spacing-inline-start"),c?this.style.setProperty("--scb-avatar-spacing-inline-end",c):this.style.removeProperty("--scb-avatar-spacing-inline-end")}a([s({type:String})],e.prototype,"src",void 0);a([s({type:String})],e.prototype,"alt",void 0);a([s({type:String})],e.prototype,"label",void 0);a([s({type:String,reflect:!0})],e.prototype,"size",void 0);a([s({type:String,reflect:!0})],e.prototype,"shape",void 0);a([s({type:String,attribute:"icon-name",reflect:!0})],e.prototype,"iconName",void 0);a([s({type:String,reflect:!0})],e.prototype,"variant",void 0);a([s({type:String,reflect:!0})],e.prototype,"spacing",void 0);a([s({type:String,attribute:"spacing-top",reflect:!0})],e.prototype,"spacingTop",void 0);a([s({type:String,attribute:"spacing-bottom",reflect:!0})],e.prototype,"spacingBottom",void 0);a([s({type:String,attribute:"spacing-left",reflect:!0})],e.prototype,"spacingLeft",void 0);a([s({type:String,attribute:"spacing-right",reflect:!0})],e.prototype,"spacingRight",void 0);a([_()],e.prototype,"_imgError",void 0);a([_()],e.prototype,"_hasIconSlot",void 0);e=a([f("scb-avatar")],e);export{e as ScbAvatar};
19
+ `}},h.styles=f`:host{display:inline-block;vertical-align:middle;margin-block-start:var(--scb-avatar-spacing-block-start, 0);margin-block-end:var(--scb-avatar-spacing-block-end, 0);margin-inline-start:var(--scb-avatar-spacing-inline-start, 0);margin-inline-end:var(--scb-avatar-spacing-inline-end, 0);--_size:40px;--_font-size:16px;--_bg:var(--md-sys-color-primary-fixed-dim, var(--md-sys-color-primary-container));--_fg:var(--md-sys-color-on-primary-fixed, var(--md-sys-color-on-primary-container));--_radius:var(--radius-full, 1000px);--_border:0 solid transparent;font-family:var(--brand-font, Inter, system-ui, sans-serif);color-scheme:light dark}:host([size="small"]){--_size:32px;--_font-size:var(--scb-typography-label-medium-size, var(--md-sys-typescale-label-medium-size, 14px))}:host([size="medium"]){--_size:40px;--_font-size:var(--scb-typography-label-large-size, var(--md-sys-typescale-label-large-size, 16px))}:host([size="large"]){--_size:56px;--_font-size:var(--scb-typography-title-large-size, var(--md-sys-typescale-title-large-size, 20px))}:host([size="extra-large"]),:host([size="xlarge"]){--_size:80px;--_font-size:var(--scb-typography-headline-medium-size, var(--md-sys-typescale-headline-medium-size, 28px))}:host([shape="circular"]){--_radius:var(--radius-full, 1000px)}:host([shape="rounded"]){--_radius:var(--radius-s, 8px)}:host([shape="square"]){--_radius:0}.container{inline-size:var(--_size);block-size:var(--_size);border-radius:var(--_radius);position:relative;overflow:hidden;user-select:none;line-height:1;border:var(--_border);display:grid;place-items:center}:host([variant="image"]) .container{background:0 0}:host([variant="image"]) img.photo{width:100%;height:100%;object-fit:cover;display:block}:host([size="small"]){--_icon-size:var(--icon-size-small, 20px)}:host([size="medium"]){--_icon-size:var(--icon-size-medium, 24px)}:host([size="large"]){--_icon-size:var(--icon-size-large, 30px)}:host([size="extra-large"]),:host([size="xlarge"]){--_icon-size:var(--icon-size-extra-extra-large, 48px)}:host([variant="icon"]) .container{background:var(--_bg);color:var(--_fg)}img.icon{width:var(--_icon-size);height:var(--_icon-size);object-fit:contain;display:block}.fallback{display:grid;place-items:center;width:100%;height:100%;font-size:var(--_font-size);font-weight:var(--weight-semibold, 600);letter-spacing:.01em;text-transform:uppercase;color:var(--_fg);background:var(--_bg)}:host([variant="image"]) .fallback{color:var(--md-sys-color-on-primary-container);background:var(--md-sys-color-primary-container)}::slotted([slot=icon]){width:var(--_icon-size);height:var(--_icon-size);line-height:1}:host(:focus-visible) .container{outline:var(--md-focus-ring-width, 2px) solid var(--md-focus-ring-color, var(--p-40));outline-offset:2px;border-radius:var(--_radius)}`,h);function u(){const r=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??r,i=this.mapSpacingToken(this.spacingBottom)??r,o=this.mapSpacingToken(this.spacingLeft)??r,c=this.mapSpacingToken(this.spacingRight)??r;t?this.style.setProperty("--scb-avatar-spacing-block-start",t):this.style.removeProperty("--scb-avatar-spacing-block-start"),i?this.style.setProperty("--scb-avatar-spacing-block-end",i):this.style.removeProperty("--scb-avatar-spacing-block-end"),o?this.style.setProperty("--scb-avatar-spacing-inline-start",o):this.style.removeProperty("--scb-avatar-spacing-inline-start"),c?this.style.setProperty("--scb-avatar-spacing-inline-end",c):this.style.removeProperty("--scb-avatar-spacing-inline-end")}a([s({type:String})],e.prototype,"src",void 0);a([s({type:String})],e.prototype,"alt",void 0);a([s({type:String})],e.prototype,"label",void 0);a([s({type:String,reflect:!0})],e.prototype,"size",void 0);a([s({type:String,reflect:!0})],e.prototype,"shape",void 0);a([s({type:String,attribute:"icon-name",reflect:!0})],e.prototype,"iconName",void 0);a([s({type:String,reflect:!0})],e.prototype,"variant",void 0);a([s({type:String,reflect:!0})],e.prototype,"spacing",void 0);a([s({type:String,attribute:"spacing-top",reflect:!0})],e.prototype,"spacingTop",void 0);a([s({type:String,attribute:"spacing-bottom",reflect:!0})],e.prototype,"spacingBottom",void 0);a([s({type:String,attribute:"spacing-left",reflect:!0})],e.prototype,"spacingLeft",void 0);a([s({type:String,attribute:"spacing-right",reflect:!0})],e.prototype,"spacingRight",void 0);a([_()],e.prototype,"_imgError",void 0);a([_()],e.prototype,"_hasIconSlot",void 0);e=a([y("scb-avatar")],e);export{e as ScbAvatar};
@@ -1,10 +1,10 @@
1
- import{g as p,h as v,m as f,p as o,v as y,y as m}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as s}from"../../vendor/decorate.js";(function(){try{var l=typeof globalThis<"u"?globalThis:window;if(!l.__scb_ce_guard_installed__){l.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(i,r,a){try{customElements.get(i)||t(i,r,a)}catch(d){var n=String(d||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw d}}}}catch{}})();var b,e=(b=class extends v{constructor(...t){super(...t),this._slotClickHandler=i=>{const r=this.shadowRoot?.querySelector("slot"),a=i.target;a&&a!==r&&a.dispatchEvent(new CustomEvent("hide-badge",{bubbles:!0,composed:!0}))},this.autoHide=!1,this.sizing="fit-content",this.position="relative",this.positionTop=0,this.positionRight=void 0,this.positionSide="right",this.positionLeft=void 0,this.value="",this.label="",this.hidden=!1,this.variant="dot",this._badgeVisible=!0,this._onHideBadge=()=>{this._badgeVisible=!1,this.requestUpdate()}}firstUpdated(){const t=this.shadowRoot?.querySelector("slot");this.autoHide&&t&&t.addEventListener("click",this._slotClickHandler)}updated(){const t=this.shadowRoot?.querySelector("slot");t&&(this.autoHide?t.addEventListener("click",this._slotClickHandler):t.removeEventListener("click",this._slotClickHandler))}connectedCallback(){super.connectedCallback(),this.addEventListener("hide-badge",this._onHideBadge)}disconnectedCallback(){this.removeEventListener("hide-badge",this._onHideBadge),super.disconnectedCallback()}mapSpacingToken(t){if(t==null)return;if(typeof t=="number"&&!Number.isNaN(t))return`${t}px`;const i=String(t).trim();if(i)return/^\d+$/.test(i)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(i,10)))})`:i}render(){const t=this.mapSpacingToken(this.positionRight)??"var(--spacing-4)",i=this.mapSpacingToken(this.positionLeft)??"var(--spacing-4)",r=this.mapSpacingToken(this.positionTop)??"0px";this.style.setProperty("--scb-badge-absolute-top",r),this.style.setProperty("--scb-badge-absolute-right",t),this.style.setProperty("--scb-badge-absolute-left",i);let a=this.value;!isNaN(Number(this.value))&&this.value.length>4&&(a=this.value.slice(0,4)+"+");const n=this.variant==="value"&&!this.value?"badge-value-empty":"",d=this._badgeVisible?"":"badge--hide",g=this.label.trim(),u=this.variant==="value"&&a.trim(),h=g||(u?`Märke: ${a}`:""),c=!h||this.hidden||!this._badgeVisible;return y`
1
+ import{g as p,h as v,m as f,p as a,v as y,y as m}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as s}from"../../vendor/decorate.js";(function(){try{var l=typeof globalThis<"u"?globalThis:window;if(!l.__scb_ce_guard_installed__){l.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(i,r,o){try{customElements.get(i)||t(i,r,o)}catch(d){var n=String(d||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw d}}}}catch{}})();var b,e=(b=class extends v{constructor(...t){super(...t),this._slotClickHandler=i=>{const r=this.shadowRoot?.querySelector("slot"),o=i.target;o&&o!==r&&o.dispatchEvent(new CustomEvent("hide-badge",{bubbles:!0,composed:!0}))},this.autoHide=!1,this.sizing="fit-content",this.position="relative",this.positionTop=0,this.positionRight=void 0,this.positionSide="right",this.positionLeft=void 0,this.value="",this.label="",this.hidden=!1,this.variant="dot",this._badgeVisible=!0,this._onHideBadge=()=>{this._badgeVisible=!1,this.requestUpdate()}}firstUpdated(){const t=this.shadowRoot?.querySelector("slot");this.autoHide&&t&&t.addEventListener("click",this._slotClickHandler)}updated(){const t=this.shadowRoot?.querySelector("slot");t&&(this.autoHide?t.addEventListener("click",this._slotClickHandler):t.removeEventListener("click",this._slotClickHandler))}connectedCallback(){super.connectedCallback(),this.addEventListener("hide-badge",this._onHideBadge)}disconnectedCallback(){this.removeEventListener("hide-badge",this._onHideBadge),super.disconnectedCallback()}mapSpacingToken(t){if(t==null)return;if(typeof t=="number"&&!Number.isNaN(t))return`${t}px`;const i=String(t).trim();if(i)return/^\d+$/.test(i)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(i,10)))})`:i}render(){const t=this.mapSpacingToken(this.positionRight)??"var(--spacing-4)",i=this.mapSpacingToken(this.positionLeft)??"var(--spacing-4)",r=this.mapSpacingToken(this.positionTop)??"0px";this.style.setProperty("--scb-badge-absolute-top",r),this.style.setProperty("--scb-badge-absolute-right",t),this.style.setProperty("--scb-badge-absolute-left",i);let o=this.value;!isNaN(Number(this.value))&&this.value.length>4&&(o=this.value.slice(0,4)+"+");const n=this.variant==="value"&&!this.value?"badge-value-empty":"",d=this._badgeVisible?"":"badge--hide",g=this.label.trim(),u=this.variant==="value"&&o.trim(),h=g||(u?`Märke: ${o}`:""),c=!h||this.hidden||!this._badgeVisible;return y`
2
2
  <div class="badge-content">
3
3
  <slot></slot>
4
4
  <div
5
5
  class="badge ${n} ${d}"
6
6
  role=${c?p:"status"}
7
7
  aria-label=${c?p:h}
8
- aria-hidden=${c?"true":p}>${this.variant==="dot"?"":a}</div>
8
+ aria-hidden=${c?"true":p}>${this.variant==="dot"?"":o}</div>
9
9
  </div>
10
- `}},b.styles=m`:host{display:block;position:relative;overflow:visible;width:fit-content;--scb-badge-font-size:var(--scale-01);--scb-badge-line-height:100%;--scb-badge-relative-gap:0px;--scb-badge-background-color:var(--md-sys-color-error);--scb-badge-color:var(--md-sys-color-on-error);--scb-badge-width:8px;--scb-badge-height:8px}:host([sizing="fit-parent"]){width:100%}:host([variant="value"]) .badge{width:fit-content;padding:6px}:host([variant="value"]) .badge.badge-value-empty{width:var(--scb-badge-width);padding:var(--spacing-2)}:host([hidden]) .badge{display:none}.badge{transition:transform .25s cubic-bezier(.4,2,.6,1),opacity .18s linear;will-change:transform,opacity}.badge--hide{opacity:0;transform:scale(1.3);pointer-events:none}.badge{background-color:var(--scb-badge-background-color);color:var(--scb-badge-color);font-size:var(--scb-badge-font-size);font-weight:var(--weight-semibold);line-height:var(--scb-badge-line-height);letter-spacing:var(--md-sys-typescale-label-medium-tracking);border-radius:var(--md-sys-shape-corner-full);display:flex;align-items:center;justify-content:center;width:var(--scb-badge-width);height:var(--scb-badge-height);position:absolute;top:var(--scb-badge-absolute-top);left:calc(100% - var(--scb-badge-absolute-right));white-space:nowrap}:host([position-side="left"]) .badge{left:var(--scb-badge-absolute-left)}:host([position="relative"]) .badge{position:relative;top:unset;left:unset}:host([position="relative"]) .badge-content{display:flex;align-items:center;justify-content:center;gap:var(--scb-badge-relative-gap)}`,b);s([o({type:Boolean,reflect:!0,attribute:"auto-hide"})],e.prototype,"autoHide",void 0);s([o({type:String,reflect:!0})],e.prototype,"sizing",void 0);s([o({type:String,reflect:!0})],e.prototype,"position",void 0);s([o({type:String,attribute:"position-top"})],e.prototype,"positionTop",void 0);s([o({type:String,attribute:"position-right"})],e.prototype,"positionRight",void 0);s([o({type:String,reflect:!0,attribute:"position-side"})],e.prototype,"positionSide",void 0);s([o({type:String,attribute:"position-left"})],e.prototype,"positionLeft",void 0);s([o({type:String,reflect:!0})],e.prototype,"value",void 0);s([o({type:String,reflect:!0})],e.prototype,"label",void 0);s([o({type:Boolean,reflect:!0})],e.prototype,"hidden",void 0);s([o({type:String,reflect:!0})],e.prototype,"variant",void 0);e=s([f("scb-badge")],e);
10
+ `}},b.styles=m`:host{display:block;position:relative;overflow:visible;width:fit-content;--scb-badge-font-size:var(--scale-01);--scb-badge-line-height:100%;--scb-badge-relative-gap:0px;--scb-badge-background-color:var(--md-sys-color-error);--scb-badge-color:var(--md-sys-color-on-error);--scb-badge-width:8px;--scb-badge-height:8px}:host([sizing="fit-parent"]){width:100%}:host([variant="value"]) .badge{width:fit-content;padding:6px}:host([variant="value"]) .badge.badge-value-empty{width:var(--scb-badge-width);padding:var(--spacing-2)}:host([hidden]) .badge{display:none}.badge{transition:transform .25s cubic-bezier(.4,2,.6,1),opacity .18s linear;will-change:transform,opacity}.badge--hide{opacity:0;transform:scale(1.3);pointer-events:none}.badge{background-color:var(--scb-badge-background-color);color:var(--scb-badge-color);font-size:var(--scb-badge-font-size);font-weight:var(--weight-semibold);line-height:var(--scb-badge-line-height);letter-spacing:var(--scb-typography-label-medium-tracking, var(--md-sys-typescale-label-medium-tracking));border-radius:var(--md-sys-shape-corner-full);display:flex;align-items:center;justify-content:center;width:var(--scb-badge-width);height:var(--scb-badge-height);position:absolute;top:var(--scb-badge-absolute-top);left:calc(100% - var(--scb-badge-absolute-right));white-space:nowrap}:host([position-side="left"]) .badge{left:var(--scb-badge-absolute-left)}:host([position="relative"]) .badge{position:relative;top:unset;left:unset}:host([position="relative"]) .badge-content{display:flex;align-items:center;justify-content:center;gap:var(--scb-badge-relative-gap)}`,b);s([a({type:Boolean,reflect:!0,attribute:"auto-hide"})],e.prototype,"autoHide",void 0);s([a({type:String,reflect:!0})],e.prototype,"sizing",void 0);s([a({type:String,reflect:!0})],e.prototype,"position",void 0);s([a({type:String,attribute:"position-top"})],e.prototype,"positionTop",void 0);s([a({type:String,attribute:"position-right"})],e.prototype,"positionRight",void 0);s([a({type:String,reflect:!0,attribute:"position-side"})],e.prototype,"positionSide",void 0);s([a({type:String,attribute:"position-left"})],e.prototype,"positionLeft",void 0);s([a({type:String,reflect:!0})],e.prototype,"value",void 0);s([a({type:String,reflect:!0})],e.prototype,"label",void 0);s([a({type:Boolean,reflect:!0})],e.prototype,"hidden",void 0);s([a({type:String,reflect:!0})],e.prototype,"variant",void 0);e=s([f("scb-badge")],e);
@@ -1,4 +1,4 @@
1
- import{h,m as d,p as a,v as n,y as b}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as r}from"../../vendor/decorate.js";import"../scb-link/scb-link.js";(function(){try{var i=typeof globalThis<"u"?globalThis:window;if(!i.__scb_ce_guard_installed__){i.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(s,u,l){try{customElements.get(s)||t(s,u,l)}catch(c){var o=String(c||"");if(o.indexOf("already been used")===-1&&o.indexOf("NotSupportedError")===-1)throw c}}}}catch{}})();var e=class extends h{constructor(...t){super(...t),this.label="",this.isCurrent=!1,this.href=""}connectedCallback(){if(super.connectedCallback(),this.hasAttribute("current")&&!this.hasAttribute("is-current")&&(this.isCurrent=!0),!this.href){const t=this.getAttribute("href");t&&(this.href=t)}}static get styles(){return b`.breadcrumb-separator{margin:var(--spacing-0) var(--spacing-3);color:var(--md-sys-color-on-surface)}.breadcrumb-current{color:var(--md-sys-color-on-surface);font-family:var(--brand-font, var(--brand, "Inter"), sans-serif)}.breadcrumb-current ::slotted(*){display:inline!important;margin:0!important;color:inherit!important;font:inherit!important;letter-spacing:inherit!important;line-height:inherit!important}`}getLabelContent(){return this.label||n`<slot></slot>`}updated(t){t.has("isCurrent")&&(this.dispatchEvent(new CustomEvent("current-changed",{detail:{isCurrent:this.isCurrent},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("currentchanged",{detail:{isCurrent:this.isCurrent,value:this.isCurrent},bubbles:!0,composed:!0})))}render(){const t=this.getLabelContent();return!0===this.isCurrent?n`<span class="breadcrumb-current">${t}</span>`:n`
2
- <scb-link href="${this.href||this.getAttribute("href")||""}">${t}</scb-link>
1
+ import{h as d,m as h,p as n,v as a,y as l}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as r}from"../../vendor/decorate.js";import"../scb-link/scb-link.js";(function(){try{var i=typeof globalThis<"u"?globalThis:window;if(!i.__scb_ce_guard_installed__){i.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(s,o,u){try{customElements.get(s)||e(s,o,u)}catch(b){var c=String(b||"");if(c.indexOf("already been used")===-1&&c.indexOf("NotSupportedError")===-1)throw b}}}}catch{}})();var t=class extends d{constructor(...e){super(...e),this.label="",this.isCurrent=!1,this.href=""}connectedCallback(){if(super.connectedCallback(),this.hasAttribute("current")&&!this.hasAttribute("is-current")&&(this.isCurrent=!0),!this.href){const e=this.getAttribute("href");e&&(this.href=e)}}static get styles(){return l`:host{--scb-breadcrumb-font-size:var(--scb-typography-body-medium-size, var(--md-sys-typescale-body-medium-size, 16px));--scb-breadcrumb-line-height:var(--scb-typography-body-medium-line-height, var(--md-sys-typescale-body-medium-line-height, 24px));--scb-breadcrumb-letter-spacing:var(--scb-typography-body-medium-tracking, var(--md-sys-typescale-body-medium-tracking, 0));--scb-breadcrumb-font-weight:var(--scb-typography-body-medium-weight, var(--md-sys-typescale-body-medium-weight, var(--weight-regular, 400)));--scb-link-font-size:var(--scb-breadcrumb-font-size);--scb-link-line-height:var(--scb-breadcrumb-line-height);--scb-link-letter-spacing:var(--scb-breadcrumb-letter-spacing);--scb-link-font-weight:var(--scb-breadcrumb-font-weight);font-family:var(--brand-font, var(--brand, "Inter"), sans-serif);font-size:var(--scb-breadcrumb-font-size);line-height:var(--scb-breadcrumb-line-height);letter-spacing:var(--scb-breadcrumb-letter-spacing);font-weight:var(--scb-breadcrumb-font-weight)}.breadcrumb-separator{margin:var(--spacing-0) var(--spacing-3)}.breadcrumb-current,.breadcrumb-separator{color:var(--md-sys-color-on-surface);font:inherit;letter-spacing:inherit}.breadcrumb-current ::slotted(*){display:inline!important;margin:0!important;color:inherit!important;font:inherit!important;letter-spacing:inherit!important;line-height:inherit!important}`}getLabelContent(){return this.label||a`<slot></slot>`}updated(e){e.has("isCurrent")&&(this.dispatchEvent(new CustomEvent("current-changed",{detail:{isCurrent:this.isCurrent},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("currentchanged",{detail:{isCurrent:this.isCurrent,value:this.isCurrent},bubbles:!0,composed:!0})))}render(){const e=this.getLabelContent();return!0===this.isCurrent?a`<span class="breadcrumb-current">${e}</span>`:a`
2
+ <scb-link href="${this.href||this.getAttribute("href")||""}">${e}</scb-link>
3
3
  <span class="breadcrumb-separator">/</span>
4
- `}};r([a({type:String})],e.prototype,"label",void 0);r([a({type:Boolean,attribute:"is-current",reflect:!0})],e.prototype,"isCurrent",void 0);r([a({type:String,attribute:"item-href"})],e.prototype,"href",void 0);e=r([d("scb-breadcrumb-item")],e);
4
+ `}};r([n({type:String})],t.prototype,"label",void 0);r([n({type:Boolean,attribute:"is-current",reflect:!0})],t.prototype,"isCurrent",void 0);r([n({type:String,attribute:"item-href"})],t.prototype,"href",void 0);t=r([h("scb-breadcrumb-item")],t);
@@ -1,14 +1,14 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../vendor/md-focus-ring.js","../../vendor/rolldown-runtime.js","../../vendor/vendor.js","../../vendor/attachable-controller.js","../../vendor/vendor-lit.js"])))=>i.map(i=>d[i]);
2
- import{h as w,m as k,p,v as d,y as _}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as x}from"../../vendor/preload-helper.js";import{t as o}from"../../vendor/decorate.js";import{n as A,t as g}from"../../vendor/assertClassBrand.js";import"../scb-link/scb-link.js";import"./scb-breadcrumb-item.js";(function(){try{var c=typeof globalThis<"u"?globalThis:window;if(!c.__scb_ce_guard_installed__){c.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(t,s,b){try{customElements.get(t)||e(t,s,b)}catch(r){var l=String(r||"");if(l.indexOf("already been used")===-1&&l.indexOf("NotSupportedError")===-1)throw r}}}}catch{}})();var m,y,S=()=>{customElements.get("md-focus-ring")||(y??(y=x(()=>import("../../vendor/md-focus-ring.js").then(c=>c.t).then(()=>{}),__vite__mapDeps([0,1,2,3,4]),import.meta.url)))},n=(m=new WeakSet,class extends w{constructor(...e){super(...e),A(this,m),this.showAll=!1,this.currentIndex=void 0,this.showAllLabel="Visa alla",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0}static get styles(){return _`@keyframes fadeInBreadcrumb{to{opacity:1;transform:translateY(0)}}:host{display:block;box-sizing:border-box;min-block-size:var(--scb-breadcrumb-min-block-size,
2
+ import{h as w,m as k,p as b,v as m,y as _}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as x}from"../../vendor/preload-helper.js";import{t as o}from"../../vendor/decorate.js";import{n as A,t as f}from"../../vendor/assertClassBrand.js";import"../scb-link/scb-link.js";import"./scb-breadcrumb-item.js";(function(){try{var c=typeof globalThis<"u"?globalThis:window;if(!c.__scb_ce_guard_installed__){c.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(t,s,p){try{customElements.get(t)||e(t,s,p)}catch(r){var l=String(r||"");if(l.indexOf("already been used")===-1&&l.indexOf("NotSupportedError")===-1)throw r}}}}catch{}})();var u,y,S=()=>{customElements.get("md-focus-ring")||(y??(y=x(()=>import("../../vendor/md-focus-ring.js").then(c=>c.t).then(()=>{}),__vite__mapDeps([0,1,2,3,4]),import.meta.url)))},n=(u=new WeakSet,class extends w{constructor(...e){super(...e),A(this,u),this.showAll=!1,this.currentIndex=void 0,this.showAllLabel="Visa alla",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0}static get styles(){return _`@keyframes fadeInBreadcrumb{to{opacity:1;transform:translateY(0)}}:host{display:block;box-sizing:border-box;--scb-breadcrumb-font-size:var(--scb-typography-body-medium-size, var(--md-sys-typescale-body-medium-size, 16px));--scb-breadcrumb-line-height:var(--scb-typography-body-medium-line-height, var(--md-sys-typescale-body-medium-line-height, 24px));--scb-breadcrumb-letter-spacing:var(--scb-typography-body-medium-tracking, var(--md-sys-typescale-body-medium-tracking, 0));--scb-breadcrumb-font-weight:var(--scb-typography-body-medium-weight, var(--md-sys-typescale-body-medium-weight, var(--weight-regular, 400)));--scb-breadcrumb-icon-size:var(--icon-size-medium, 24px);--scb-link-font-size:var(--scb-breadcrumb-font-size);--scb-link-line-height:var(--scb-breadcrumb-line-height);--scb-link-letter-spacing:var(--scb-breadcrumb-letter-spacing);--scb-link-font-weight:var(--scb-breadcrumb-font-weight);min-block-size:var(--scb-breadcrumb-min-block-size,
3
3
  calc(
4
- var(--md-sys-typescale-body-medium-line-height, 24px) +
4
+ var(--scb-breadcrumb-line-height) +
5
5
  var(--spacing-3, 8px)
6
6
  )
7
- );margin-block-start:var(--scb-breadcrumb-spacing-block-start, 0);margin-block-end:var(--scb-breadcrumb-spacing-block-end, 0);margin-inline-start:var(--scb-breadcrumb-spacing-inline-start, 0);margin-inline-end:var(--scb-breadcrumb-spacing-inline-end, 0)}.scb-breadcrumb{display:flex;align-items:center;flex-wrap:wrap}.breadcrumb-item{display:inline-flex;align-items:center}.breadcrumb-separator{margin:var(--spacing-0) var(--spacing-3);color:var(--md-sys-color-on-surface)}.breadcrumb-current{color:var(--md-sys-color-on-surface);font-family:var(--brand-font, var(--brand, "Inter"), sans-serif)}.ellipsis{cursor:pointer;display:inline-flex;color:var(--md-sys-color-primary);position:relative}.ellipsis:focus{outline:0}md-focus-ring{position:absolute;inset:0;pointer-events:none;display:none;border-radius:var(--scb-card-focus-ring-radius,
7
+ );margin-block-start:var(--scb-breadcrumb-spacing-block-start, 0);margin-block-end:var(--scb-breadcrumb-spacing-block-end, 0);margin-inline-start:var(--scb-breadcrumb-spacing-inline-start, 0);margin-inline-end:var(--scb-breadcrumb-spacing-inline-end, 0)}.scb-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;font-family:var(--brand-font, var(--brand, "Inter"), sans-serif);font-size:var(--scb-breadcrumb-font-size);line-height:var(--scb-breadcrumb-line-height);letter-spacing:var(--scb-breadcrumb-letter-spacing);font-weight:var(--scb-breadcrumb-font-weight)}.breadcrumb-item{display:inline-flex;align-items:center;font:inherit;letter-spacing:inherit}.breadcrumb-separator{margin:var(--spacing-0) var(--spacing-3)}.breadcrumb-current,.breadcrumb-separator,.ellipsis{color:var(--md-sys-color-on-surface);font:inherit;letter-spacing:inherit}.ellipsis{cursor:pointer;display:inline-flex;color:var(--md-sys-color-primary);position:relative}.ellipsis:focus{outline:0}md-focus-ring{position:absolute;inset:0;pointer-events:none;display:none;border-radius:var(--scb-card-focus-ring-radius,
8
8
  var(--md-sys-shape-corner-large)
9
- )}.ellipsis:focus md-focus-ring{display:block}.breadcrumb-animate{opacity:0;transform:translateY(10px);animation:fadeInBreadcrumb .4s cubic-bezier(.4,0,.2,1) forwards}.breadcrumb-icon{display:inline-block;inline-size:1em;overflow:hidden;font-family:"Material Symbols Outlined";font-size:var(--icon-size-medium, 24px);line-height:1;text-align:center;white-space:nowrap;text-transform:none;word-wrap:normal;direction:ltr;font-feature-settings:"liga"1;font-variation-settings:"FILL"0,"wght"400,"GRAD"0,"opsz"24;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}`}connectedCallback(){super.connectedCallback(),this._observer=new MutationObserver(()=>{this.requestUpdate()}),this._observer.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["label","item-href","href","is-current","current"]})}disconnectedCallback(){super.disconnectedCallback(),this._observer?.disconnect()}firstUpdated(){g(m,this,v).call(this)}updated(e){e.has("showAll")&&(this.dispatchEvent(new CustomEvent("show-all-changed",{detail:{showAll:this.showAll},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("showallchanged",{detail:{showAll:this.showAll,value:this.showAll},bubbles:!0,composed:!0}))),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom")||e.has("spacingLeft")||e.has("spacingRight"))&&g(m,this,v).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}_onEllipsisClick(){this.showAll?this.showAll=!1:(this.showAll=!0,this.updateComplete.then(()=>{const e=this.shadowRoot?.querySelectorAll(".scb-breadcrumb.expanded .breadcrumb-item");e&&(e.forEach((t,s)=>{t.classList.add("breadcrumb-animate"),t.style.animationDelay=`${s*60}ms`}),setTimeout(()=>{e.forEach(t=>{t.classList.remove("breadcrumb-animate"),t.style.animationDelay=""})},600))}))}getItemLabel(e){const t=e.label;if(typeof t=="string"&&t.trim())return t;const s=e.getAttribute("label");return s?.trim()?s:e.textContent?.trim()??""}getItemHref(e){const t=e;return typeof t.itemHref=="string"?t.itemHref:typeof t.href=="string"?t.href:e.getAttribute("item-href")??e.getAttribute("href")??""}render(){const e=Array.from(this.children).filter(r=>r.tagName.toLowerCase()==="scb-breadcrumb-item"),t=Math.max(0,e.length-1);let s=t;if(e.length>0){const r=typeof this.currentIndex=="number"&&!Number.isNaN(this.currentIndex)?Math.trunc(this.currentIndex):void 0;if(typeof r=="number"&&r>=0&&r<e.length)s=r;else for(let i=e.length-1;i>=0;i--){const a=e[i];if(typeof a.isCurrent=="boolean"?a.isCurrent:e[i].hasAttribute("is-current")||e[i].hasAttribute("current")){s=i;break}}e.forEach((i,a)=>{i.toggleAttribute("is-current",a===s)})}const b=e.length>6&&!this.showAll&&s===t,l=[];if(b){const r=e.slice(0,3),i=e.slice(-3);r.forEach((a,u)=>{l.push({type:"item",item:a,isCurrent:u===s})}),l.push({type:"ellipsis"}),i.forEach((a,u)=>{const h=e.length-3+u;l.push({type:"item",item:a,isCurrent:h===s})})}else e.forEach((r,i)=>{l.push({type:"item",item:r,isCurrent:i===s})});return d`
10
- <div class="scb-breadcrumb ${b?"collapsed":"expanded"}">
11
- ${l.map((r,i)=>{const a=i===0?d``:d`<span class="breadcrumb-separator">/</span>`;if(r.type==="ellipsis")return d`
9
+ )}.ellipsis:focus md-focus-ring{display:block}.breadcrumb-animate{opacity:0;transform:translateY(10px);animation:fadeInBreadcrumb .4s cubic-bezier(.4,0,.2,1) forwards}.breadcrumb-icon{display:inline-block;inline-size:1em;overflow:hidden;font-family:"Material Symbols Outlined";font-size:var(--scb-breadcrumb-icon-size);line-height:1;text-align:center;white-space:nowrap;text-transform:none;word-wrap:normal;direction:ltr;font-feature-settings:"liga"1;font-variation-settings:"FILL"0,"wght"400,"GRAD"0,"opsz"24;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}`}connectedCallback(){super.connectedCallback(),this._observer=new MutationObserver(()=>{this.requestUpdate()}),this._observer.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["label","item-href","href","is-current","current"]})}disconnectedCallback(){super.disconnectedCallback(),this._observer?.disconnect()}firstUpdated(){f(u,this,v).call(this)}updated(e){e.has("showAll")&&(this.dispatchEvent(new CustomEvent("show-all-changed",{detail:{showAll:this.showAll},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("showallchanged",{detail:{showAll:this.showAll,value:this.showAll},bubbles:!0,composed:!0}))),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom")||e.has("spacingLeft")||e.has("spacingRight"))&&f(u,this,v).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}_onEllipsisClick(){this.showAll?this.showAll=!1:(this.showAll=!0,this.updateComplete.then(()=>{const e=this.shadowRoot?.querySelectorAll(".scb-breadcrumb.expanded .breadcrumb-item");e&&(e.forEach((t,s)=>{t.classList.add("breadcrumb-animate"),t.style.animationDelay=`${s*60}ms`}),setTimeout(()=>{e.forEach(t=>{t.classList.remove("breadcrumb-animate"),t.style.animationDelay=""})},600))}))}getItemLabel(e){const t=e.label;if(typeof t=="string"&&t.trim())return t;const s=e.getAttribute("label");return s?.trim()?s:e.textContent?.trim()??""}getItemHref(e){const t=e;return typeof t.itemHref=="string"?t.itemHref:typeof t.href=="string"?t.href:e.getAttribute("item-href")??e.getAttribute("href")??""}render(){const e=Array.from(this.children).filter(r=>r.tagName.toLowerCase()==="scb-breadcrumb-item"),t=Math.max(0,e.length-1);let s=t;if(e.length>0){const r=typeof this.currentIndex=="number"&&!Number.isNaN(this.currentIndex)?Math.trunc(this.currentIndex):void 0;if(typeof r=="number"&&r>=0&&r<e.length)s=r;else for(let i=e.length-1;i>=0;i--){const a=e[i];if(typeof a.isCurrent=="boolean"?a.isCurrent:e[i].hasAttribute("is-current")||e[i].hasAttribute("current")){s=i;break}}e.forEach((i,a)=>{i.toggleAttribute("is-current",a===s)})}const p=e.length>6&&!this.showAll&&s===t,l=[];if(p){const r=e.slice(0,3),i=e.slice(-3);r.forEach((a,d)=>{l.push({type:"item",item:a,isCurrent:d===s})}),l.push({type:"ellipsis"}),i.forEach((a,d)=>{const h=e.length-3+d;l.push({type:"item",item:a,isCurrent:h===s})})}else e.forEach((r,i)=>{l.push({type:"item",item:r,isCurrent:i===s})});return m`
10
+ <div class="scb-breadcrumb ${p?"collapsed":"expanded"}">
11
+ ${l.map((r,i)=>{const a=i===0?m``:m`<span class="breadcrumb-separator">/</span>`;if(r.type==="ellipsis")return m`
12
12
  ${a}
13
13
  <span
14
14
  class="breadcrumb-item ellipsis"
@@ -17,19 +17,19 @@ import{h as w,m as k,p,v as d,y as _}from"../../vendor/vendor.js";import"../../v
17
17
  tabindex="0"
18
18
  @focusin=${S}
19
19
  @click=${this._onEllipsisClick}
20
- @keydown=${f=>{(f.key==="Enter"||f.key===" ")&&this._onEllipsisClick()}}
20
+ @keydown=${g=>{(g.key==="Enter"||g.key===" ")&&this._onEllipsisClick()}}
21
21
  >
22
22
  <md-focus-ring aria-hidden="true"></md-focus-ring>
23
23
  <span class="breadcrumb-icon" aria-hidden="true">more_horiz</span>
24
24
  </span>
25
- `;const u=this.getItemLabel(r.item),h=this.getItemHref(r.item);return r.isCurrent?d`
25
+ `;const d=this.getItemLabel(r.item),h=this.getItemHref(r.item);return r.isCurrent?m`
26
26
  ${a}
27
- <span class="breadcrumb-item breadcrumb-current">${u}</span>
28
- `:d`
27
+ <span class="breadcrumb-item breadcrumb-current">${d}</span>
28
+ `:m`
29
29
  ${a}
30
30
  <span class="breadcrumb-item">
31
- <scb-link href="${h}">${u}</scb-link>
31
+ <scb-link href="${h}">${d}</scb-link>
32
32
  </span>
33
33
  `})}
34
34
  </div>
35
- `}});function v(){const c=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??c,t=this.mapSpacingToken(this.spacingBottom)??c,s=this.mapSpacingToken(this.spacingLeft),b=this.mapSpacingToken(this.spacingRight);e?this.style.setProperty("--scb-breadcrumb-spacing-block-start",e):this.style.removeProperty("--scb-breadcrumb-spacing-block-start"),t?this.style.setProperty("--scb-breadcrumb-spacing-block-end",t):this.style.removeProperty("--scb-breadcrumb-spacing-block-end"),s?this.style.setProperty("--scb-breadcrumb-spacing-inline-start",s):this.style.removeProperty("--scb-breadcrumb-spacing-inline-start"),b?this.style.setProperty("--scb-breadcrumb-spacing-inline-end",b):this.style.removeProperty("--scb-breadcrumb-spacing-inline-end")}o([p({type:Boolean,attribute:"show-all",reflect:!0})],n.prototype,"showAll",void 0);o([p({type:Number,attribute:"current-index",reflect:!0})],n.prototype,"currentIndex",void 0);o([p({type:String,attribute:"show-all-label"})],n.prototype,"showAllLabel",void 0);o([p({type:String,reflect:!0})],n.prototype,"spacing",void 0);o([p({type:String,attribute:"spacing-top",reflect:!0})],n.prototype,"spacingTop",void 0);o([p({type:String,attribute:"spacing-bottom",reflect:!0})],n.prototype,"spacingBottom",void 0);o([p({type:String,attribute:"spacing-left",reflect:!0})],n.prototype,"spacingLeft",void 0);o([p({type:String,attribute:"spacing-right",reflect:!0})],n.prototype,"spacingRight",void 0);n=o([k("scb-breadcrumb")],n);
35
+ `}});function v(){const c=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??c,t=this.mapSpacingToken(this.spacingBottom)??c,s=this.mapSpacingToken(this.spacingLeft),p=this.mapSpacingToken(this.spacingRight);e?this.style.setProperty("--scb-breadcrumb-spacing-block-start",e):this.style.removeProperty("--scb-breadcrumb-spacing-block-start"),t?this.style.setProperty("--scb-breadcrumb-spacing-block-end",t):this.style.removeProperty("--scb-breadcrumb-spacing-block-end"),s?this.style.setProperty("--scb-breadcrumb-spacing-inline-start",s):this.style.removeProperty("--scb-breadcrumb-spacing-inline-start"),p?this.style.setProperty("--scb-breadcrumb-spacing-inline-end",p):this.style.removeProperty("--scb-breadcrumb-spacing-inline-end")}o([b({type:Boolean,attribute:"show-all",reflect:!0})],n.prototype,"showAll",void 0);o([b({type:Number,attribute:"current-index",reflect:!0})],n.prototype,"currentIndex",void 0);o([b({type:String,attribute:"show-all-label"})],n.prototype,"showAllLabel",void 0);o([b({type:String,reflect:!0})],n.prototype,"spacing",void 0);o([b({type:String,attribute:"spacing-top",reflect:!0})],n.prototype,"spacingTop",void 0);o([b({type:String,attribute:"spacing-bottom",reflect:!0})],n.prototype,"spacingBottom",void 0);o([b({type:String,attribute:"spacing-left",reflect:!0})],n.prototype,"spacingLeft",void 0);o([b({type:String,attribute:"spacing-right",reflect:!0})],n.prototype,"spacingRight",void 0);n=o([k("scb-breadcrumb")],n);
@@ -1,7 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../vendor/lazy-focus-ring.js","../../vendor/rolldown-runtime.js","../../vendor/preload-helper.js","../../vendor/lazy-ripple.js"])))=>i.map(i=>d[i]);
2
- import{g as s,h as z,m as N,p as o,v as c,y as w}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as x}from"../../vendor/preload-helper.js";import{t as a}from"../../vendor/decorate.js";import{n as P,t as k}from"../../vendor/assertClassBrand.js";(function(){try{var p=typeof globalThis<"u"?globalThis:window;if(!p.__scb_ce_guard_installed__){p.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,i,r){try{customElements.get(e)||t(e,i,r)}catch(b){var l=String(b||"");if(l.indexOf("already been used")===-1&&l.indexOf("NotSupportedError")===-1)throw b}}}}catch{}})();var h,f,m;function $(){return f??(f=x(()=>import("../../vendor/lazy-focus-ring.js").then(p=>p.i),__vite__mapDeps([0,1,2]),import.meta.url)),f}function R(){return m??(m=x(()=>import("../../vendor/lazy-ripple.js"),__vite__mapDeps([3,2]),import.meta.url)),m}var n=(h=new WeakSet,class extends z{constructor(...t){super(...t),P(this,h),this.variant="filled",this.size="medium",this.type="button",this.label="Button",this.trailingIcon=!1,this.icon="",this.iconFilled=!1,this.disabled=!1,this.fullWidth=!1,this.href="",this.target="",this.rel="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.__hasDefaultSlotContent=!1,this.__nativeFocusRingReady=!1,this.__nativeRippleReady=!1,this.__nativeRipplePendingClick=!1,this.__ensureNativeFocusRing=()=>{this.__nativeFocusRingReady||$().then(({ensureFocusRingReady:e})=>(e(),customElements.whenDefined("md-focus-ring"))).then(()=>{this.__nativeFocusRingReady=!0,this.toggleAttribute("data-native-focus-ring-ready",!0),this.requestUpdate(),this.updateComplete.then(()=>this.__syncNativeFocusRingControl())})},this.__onNativeFocusIn=e=>{const i=e.composedPath()[0];i instanceof HTMLElement&&i.matches(":focus-visible")&&this.__ensureNativeFocusRing()},this.__ensureNativeRipple=e=>{this.__nativeRippleReady||this.disabled||(e&&(this.__nativeRipplePendingPointerEvent=e),R().then(({ensureRippleReady:i})=>i()).then(()=>{this.disabled||(this.__nativeRippleReady=!0,this.requestUpdate(),this.updateComplete.then(()=>{this.__syncNativeFocusRingControl(),this.__replayNativeRippleState()}))}))},this.__onNativePointerWarmup=e=>{this.__ensureNativeRipple(e)},this.__onNativeClick=e=>{if(this.disabled){e.preventDefault(),e.stopPropagation();return}(!this.__nativeRippleReady||this.__nativeRipplePendingPointerEvent)&&(this.__nativeRipplePendingClick=!0,this.__ensureNativeRipple())}}__getNativeControl(){return this.renderRoot.querySelector(".native-button")}__handleDefaultSlotChange(t){const e=t.target.assignedNodes({flatten:!0}).some(i=>i.nodeType===Node.TEXT_NODE?!!i.textContent?.trim():i.nodeType===Node.ELEMENT_NODE);this.__hasDefaultSlotContent!==e&&(this.__hasDefaultSlotContent=e,this.requestUpdate()),this.updateComplete.then(()=>this.__syncAriaToInner())}__syncAriaToInner(){const t=this.__getNativeControl();t&&this.__syncAriaToControl(t)}__syncAriaToControl(t){const e=(this.getAttribute("aria-label")||"").trim(),i=this.label.trim()===""&&!this.__hasDefaultSlotContent?(this.icon||"").trim():"",r=e||i;r?t.setAttribute("aria-label",r):t.removeAttribute("aria-label");const l=this.getAttribute("aria-controls");l!==null?t.setAttribute("aria-controls",l):t.removeAttribute("aria-controls");const b=this.getAttribute("aria-haspopup");b!==null?t.setAttribute("aria-haspopup",b):t.removeAttribute("aria-haspopup");const _=this.getAttribute("aria-expanded");_!==null?t.setAttribute("aria-expanded",_):t.removeAttribute("aria-expanded"),this.__ariaObserver?.disconnect(),this.__ariaObserver=new MutationObserver(S=>{const d=this.__getNativeControl();if(d)for(const v of S){if(v.type!=="attributes"||!v.attributeName)continue;const u=v.attributeName,g=this.getAttribute(u);if(u==="aria-label"){const y=(g||(this.label.trim()===""&&!this.__hasDefaultSlotContent?(this.icon||"").trim():"")).trim();y?d.setAttribute("aria-label",y):d.removeAttribute("aria-label")}else(u==="aria-controls"||u==="aria-expanded"||u==="aria-haspopup")&&(g===null?d.removeAttribute(u):d.setAttribute(u,g))}}),this.__ariaObserver.observe(this,{attributes:!0,attributeFilter:["aria-label","aria-controls","aria-expanded","aria-haspopup"]})}connectedCallback(){super.connectedCallback()}focus(t){const e=this.__getNativeControl();if(e){e.focus(t);return}this.updateComplete.then(()=>this.__getNativeControl()?.focus(t))}blur(){this.__getNativeControl()?.blur()}firstUpdated(){(this.type==="submit"||this.type==="reset")&&this.addEventListener("click",()=>{if(!this.disabled){const t=this.closest("form");t&&(this.type==="submit"&&t.requestSubmit(),this.type==="reset"&&t.reset())}}),k(h,this,C).call(this)}updated(t){(t.has("variant")||t.has("label")||t.has("icon")||t.has("href"))&&this.updateComplete.then(()=>this.__syncAriaToInner()),(this.__nativeFocusRingReady||this.__nativeRippleReady)&&this.updateComplete.then(()=>this.__syncNativeFocusRingControl()),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&k(h,this,C).call(this)}disconnectedCallback(){this.__ariaObserver?.disconnect(),super.disconnectedCallback()}__syncNativeFocusRingControl(){const t=this.renderRoot.querySelector("md-focus-ring"),e=this.__getNativeControl();t&&e&&(t.control=e,t.visible=e.matches(":focus-visible"));const i=this.renderRoot.querySelector("md-ripple");i&&e&&(i.control=e)}async __replayNativeRippleState(){const t=this.renderRoot.querySelector("md-ripple"),e=this.__getNativeControl(),i=this.__nativeRipplePendingPointerEvent,r=this.__nativeRipplePendingClick;this.__nativeRipplePendingPointerEvent=void 0,this.__nativeRipplePendingClick=!1;const{syncRippleToControl:l}=await R();await l(t,e,i,r)}mapSpacingToken(t){if(!t)return;const e=String(t).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e}static get styles(){return w`:host{display:inline-flex;block-size:var(--scb-button-block-size, auto);margin-block-start:var(--scb-button-spacing-block-start, 0);margin-block-end:var(--scb-button-spacing-block-end, 0);margin-inline-start:var(--scb-button-spacing-inline-start, 0);margin-inline-end:var(--scb-button-spacing-inline-end, 0);--scb-button-font-variation-settings:'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;--scb-button-padding-block:calc(var(--spacing-5) - var(--spacing-1));--scb-button-label-text-line-height:var(--md-sys-typescale-label-small-line-height);--scb-button-container-height:calc(
3
- var(--scb-button-label-text-line-height) + var(--scb-button-padding-block) + var(--scb-button-padding-block)
4
- );--scb-button-padding-inline:var(--spacing-5);--scb-button-icon-edge-space:var(--spacing-5);--scb-button-icon-gap:var(--spacing-3);--scb-button-icon-size:var(--icon-size-small, 20px)}:host([size='extra-small']),:host([size='small']){--scb-button-padding-inline:var(--spacing-4);--scb-button-icon-edge-space:var(--spacing-4);--scb-button-icon-gap:var(--spacing-2);--scb-button-icon-size:var(--icon-size-small, 20px)}:host([size='extra-small']){--scb-button-padding-block:calc(var(--spacing-3) - var(--spacing-1))}:host([size='small']){--scb-button-padding-block:calc(var(--spacing-4) - var(--spacing-1))}:host([size='large']){--scb-button-padding-block:var(--spacing-5);--scb-button-label-text-line-height:var(--md-sys-typescale-label-medium-line-height);--scb-button-padding-inline:var(--spacing-7);--scb-button-icon-edge-space:var(--spacing-7);--scb-button-icon-gap:var(--spacing-3);--scb-button-icon-size:var(--icon-size-medium, 24px)}:host([icon-filled]){--scb-button-font-variation-settings:'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24}.native-button,.native-button-wrap{position:relative;display:inline-flex}.native-button-wrap{border-radius:var(--md-sys-shape-corner-full, 999px)}.native-button{z-index:0;box-sizing:border-box;align-items:center;justify-content:center;gap:var(--scb-button-icon-gap);min-block-size:var(--scb-button-block-size, var(--scb-button-container-height));block-size:var(--scb-button-block-size, var(--scb-button-container-height));min-inline-size:64px;inline-size:auto;padding-block:var(--scb-button-padding-block);padding-inline:var(--scb-button-padding-inline);overflow:hidden;border:0;border-radius:inherit;background:0 0;color:var(--md-sys-color-primary);font-family:var(--md-sys-typescale-label-small-font);font-size:var(--md-sys-typescale-label-small-size);font-weight:var(--md-sys-typescale-label-small-weight);line-height:var(--md-sys-typescale-label-small-line-height);letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;appearance:none;-webkit-appearance:none;touch-action:manipulation}::slotted(*){display:inline!important;margin:0!important;color:inherit!important;font:inherit!important;letter-spacing:inherit!important;line-height:inherit!important}.native-button::before{content:"";position:absolute;inset:0;z-index:-1;background:currentColor;opacity:0;pointer-events:none;transition:opacity var(--motion-duration-short, 150ms) var(--motion-easing-standard, ease)}.native-button:hover::before{opacity:var(--md-sys-state-hover-state-layer-opacity, 0.08)}.native-button:active::before{opacity:var(--md-sys-state-pressed-state-layer-opacity, 0.12)}.native-button:focus{outline:0}:host(:not([data-native-focus-ring-ready])) .native-button:focus-visible{outline:var(--stroke-border-m, 2px) solid var(--md-sys-color-primary);outline-offset:var(--spacing-1, 2px)}.native-button:disabled,.native-button[aria-disabled=true]{color:rgb(15 8 101/38%);cursor:default;opacity:1;pointer-events:none}:host(:not([variant])) .native-button,:host([variant='filled']) .native-button{border-color:transparent;background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary)}:host([variant='outlined']) .native-button{background:0 0;color:var(--md-sys-color-primary);box-shadow:inset 0 0 0 var(--stroke-border, 1px) var(--md-sys-color-outline)}:host([variant='outlined']) .native-button:disabled,:host([variant='outlined']) .native-button[aria-disabled=true]{color:rgb(15 8 101/38%);box-shadow:inset 0 0 0 var(--stroke-border, 1px) rgb(15 8 101/12%)}:host([variant='filled-tonal']) .native-button{border-color:transparent;background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container)}:host(:not([variant])) .native-button:disabled,:host(:not([variant])) .native-button[aria-disabled=true],:host([variant='filled']) .native-button:disabled,:host([variant='filled']) .native-button[aria-disabled=true],:host([variant='filled-tonal']) .native-button:disabled,:host([variant='filled-tonal']) .native-button[aria-disabled=true]{background:rgb(15 8 101/12%);color:rgb(15 8 101/38%)}:host([variant='text']) .native-button{min-inline-size:0;background:0 0;color:var(--md-sys-color-primary)}:host([variant='text']) .native-button:disabled,:host([variant='text']) .native-button[aria-disabled=true]{color:rgb(15 8 101/38%)}:host([size='large']) .native-button{font-family:var(--md-sys-typescale-label-medium-font);font-size:var(--md-sys-typescale-label-medium-size);font-weight:var(--md-sys-typescale-label-medium-weight);line-height:var(--md-sys-typescale-label-medium-line-height);letter-spacing:normal}.native-icon{flex:0 0 auto;display:inline-block;inline-size:var(--scb-button-icon-size);block-size:var(--scb-button-icon-size);overflow:hidden;font-family:"Material Symbols Outlined";font-size:var(--scb-button-icon-size);line-height:1;text-align:center;white-space:nowrap;text-transform:none;word-wrap:normal;direction:ltr;font-feature-settings:"liga"1;font-variation-settings:var(--scb-button-font-variation-settings);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.native-icon.scb-svg-icon{fill:currentColor;font:inherit}.native-button-wrap md-ripple{position:absolute;inset:0;border-radius:inherit;pointer-events:none}.native-button-wrap md-focus-ring{pointer-events:none}:host([full-width]){display:flex;inline-size:100%}:host([full-width]) .native-button,:host([full-width]) .native-button-wrap{inline-size:100%;flex:1 1 auto}`}render(){const t=!!this.icon?.trim(),e=t?c`<span class="native-icon" part="icon" aria-hidden="true">${this.icon}</span>`:s,i=this.label.trim()===""&&!this.__hasDefaultSlotContent?this.icon:void 0,r=c`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../shared/lazy-focus-ring.js","../../vendor/preload-helper.js","../shared/lazy-ripple.js"])))=>i.map(i=>d[i]);
2
+ import{g as s,h as z,m as N,p as o,v as c,y as w}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as C}from"../../vendor/preload-helper.js";import{t as a}from"../../vendor/decorate.js";import{n as P,t as R}from"../../vendor/assertClassBrand.js";(function(){try{var u=typeof globalThis<"u"?globalThis:window;if(!u.__scb_ce_guard_installed__){u.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,i,r){try{customElements.get(e)||t(e,i,r)}catch(b){var l=String(b||"");if(l.indexOf("already been used")===-1&&l.indexOf("NotSupportedError")===-1)throw b}}}}catch{}})();var h,m,f;function $(){return m??(m=C(()=>import("../shared/lazy-focus-ring.js"),__vite__mapDeps([0,1]),import.meta.url)),m}function k(){return f??(f=C(()=>import("../shared/lazy-ripple.js"),__vite__mapDeps([2,1]),import.meta.url)),f}var n=(h=new WeakSet,class extends z{constructor(...t){super(...t),P(this,h),this.variant="filled",this.size="medium",this.type="button",this.label="Button",this.trailingIcon=!1,this.icon="",this.iconFilled=!1,this.disabled=!1,this.fullWidth=!1,this.href="",this.target="",this.rel="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.__hasDefaultSlotContent=!1,this.__nativeFocusRingReady=!1,this.__nativeRippleReady=!1,this.__nativeRipplePendingClick=!1,this.__ensureNativeFocusRing=()=>{this.__nativeFocusRingReady||$().then(({ensureFocusRingReady:e})=>(e(),customElements.whenDefined("md-focus-ring"))).then(()=>{this.__nativeFocusRingReady=!0,this.toggleAttribute("data-native-focus-ring-ready",!0),this.requestUpdate(),this.updateComplete.then(()=>this.__syncNativeFocusRingControl())})},this.__onNativeFocusIn=e=>{const i=e.composedPath()[0];i instanceof HTMLElement&&i.matches(":focus-visible")&&this.__ensureNativeFocusRing()},this.__ensureNativeRipple=e=>{this.__nativeRippleReady||this.disabled||(e&&(this.__nativeRipplePendingPointerEvent=e),k().then(({ensureRippleReady:i})=>i()).then(()=>{this.disabled||(this.__nativeRippleReady=!0,this.requestUpdate(),this.updateComplete.then(()=>{this.__syncNativeFocusRingControl(),this.__replayNativeRippleState()}))}))},this.__onNativePointerWarmup=e=>{this.__ensureNativeRipple(e)},this.__onNativeClick=e=>{if(this.disabled){e.preventDefault(),e.stopPropagation();return}(!this.__nativeRippleReady||this.__nativeRipplePendingPointerEvent)&&(this.__nativeRipplePendingClick=!0,this.__ensureNativeRipple())}}__getNativeControl(){return this.renderRoot.querySelector(".native-button")}__handleDefaultSlotChange(t){const e=t.target.assignedNodes({flatten:!0}).some(i=>i.nodeType===Node.TEXT_NODE?!!i.textContent?.trim():i.nodeType===Node.ELEMENT_NODE);this.__hasDefaultSlotContent!==e&&(this.__hasDefaultSlotContent=e,this.requestUpdate()),this.updateComplete.then(()=>this.__syncAriaToInner())}__syncAriaToInner(){const t=this.__getNativeControl();t&&this.__syncAriaToControl(t)}__syncAriaToControl(t){const e=(this.getAttribute("aria-label")||"").trim(),i=this.label.trim()===""&&!this.__hasDefaultSlotContent?(this.icon||"").trim():"",r=e||i;r?t.setAttribute("aria-label",r):t.removeAttribute("aria-label");const l=this.getAttribute("aria-controls");l!==null?t.setAttribute("aria-controls",l):t.removeAttribute("aria-controls");const b=this.getAttribute("aria-haspopup");b!==null?t.setAttribute("aria-haspopup",b):t.removeAttribute("aria-haspopup");const _=this.getAttribute("aria-expanded");_!==null?t.setAttribute("aria-expanded",_):t.removeAttribute("aria-expanded"),this.__ariaObserver?.disconnect(),this.__ariaObserver=new MutationObserver(S=>{const d=this.__getNativeControl();if(d)for(const v of S){if(v.type!=="attributes"||!v.attributeName)continue;const p=v.attributeName,g=this.getAttribute(p);if(p==="aria-label"){const y=(g||(this.label.trim()===""&&!this.__hasDefaultSlotContent?(this.icon||"").trim():"")).trim();y?d.setAttribute("aria-label",y):d.removeAttribute("aria-label")}else(p==="aria-controls"||p==="aria-expanded"||p==="aria-haspopup")&&(g===null?d.removeAttribute(p):d.setAttribute(p,g))}}),this.__ariaObserver.observe(this,{attributes:!0,attributeFilter:["aria-label","aria-controls","aria-expanded","aria-haspopup"]})}connectedCallback(){super.connectedCallback()}focus(t){const e=this.__getNativeControl();if(e){e.focus(t);return}this.updateComplete.then(()=>this.__getNativeControl()?.focus(t))}blur(){this.__getNativeControl()?.blur()}firstUpdated(){(this.type==="submit"||this.type==="reset")&&this.addEventListener("click",()=>{if(!this.disabled){const t=this.closest("form");t&&(this.type==="submit"&&t.requestSubmit(),this.type==="reset"&&t.reset())}}),R(h,this,x).call(this)}updated(t){(t.has("variant")||t.has("label")||t.has("icon")||t.has("href"))&&this.updateComplete.then(()=>this.__syncAriaToInner()),(this.__nativeFocusRingReady||this.__nativeRippleReady)&&this.updateComplete.then(()=>this.__syncNativeFocusRingControl()),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&R(h,this,x).call(this)}disconnectedCallback(){this.__ariaObserver?.disconnect(),super.disconnectedCallback()}__syncNativeFocusRingControl(){const t=this.renderRoot.querySelector("md-focus-ring"),e=this.__getNativeControl();t&&e&&(t.control=e,t.visible=e.matches(":focus-visible"));const i=this.renderRoot.querySelector("md-ripple");i&&e&&(i.control=e)}async __replayNativeRippleState(){const t=this.renderRoot.querySelector("md-ripple"),e=this.__getNativeControl(),i=this.__nativeRipplePendingPointerEvent,r=this.__nativeRipplePendingClick;this.__nativeRipplePendingPointerEvent=void 0,this.__nativeRipplePendingClick=!1;const{syncRippleToControl:l}=await k();await l(t,e,i,r)}mapSpacingToken(t){if(!t)return;const e=String(t).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e}static get styles(){return w`:host{display:inline-flex;block-size:var(--scb-button-block-size, auto);margin-block-start:var(--scb-button-spacing-block-start, 0);margin-block-end:var(--scb-button-spacing-block-end, 0);margin-inline-start:var(--scb-button-spacing-inline-start, 0);margin-inline-end:var(--scb-button-spacing-inline-end, 0);--scb-button-font-variation-settings:'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;--scb-button-padding-block:var(--spacing-3);--scb-button-label-text-line-height:var(--scb-typography-label-medium-line-height, var(--md-sys-typescale-label-medium-line-height));--scb-button-container-height:var(--scb-control-size-medium, var(--scale-10, 40px));--scb-button-padding-inline:var(--spacing-5);--scb-button-icon-edge-space:var(--spacing-5);--scb-button-icon-gap:var(--spacing-3);--scb-button-icon-size:var(--icon-size-small, 20px)}:host([size='extra-small']),:host([size='small']){--scb-button-padding-block:var(--spacing-2);--scb-button-padding-inline:var(--spacing-4);--scb-button-icon-edge-space:var(--spacing-4);--scb-button-icon-gap:var(--spacing-2);--scb-button-icon-size:var(--icon-size-small, 20px)}:host([size='extra-small']){--scb-button-container-height:var(--scb-control-size-extra-small, var(--scale-08, 32px))}:host([size='small']){--scb-button-container-height:var(--scb-control-size-small, var(--scale-08, 32px))}:host([size='large']){--scb-button-container-height:var(--scb-control-size-large, var(--scale-12, 56px));--scb-button-padding-block:var(--spacing-5);--scb-button-label-text-line-height:var(--scb-typography-label-medium-line-height, var(--md-sys-typescale-label-medium-line-height));--scb-button-padding-inline:var(--spacing-7);--scb-button-icon-edge-space:var(--spacing-7);--scb-button-icon-gap:var(--spacing-3);--scb-button-icon-size:var(--icon-size-medium, 24px)}:host([icon-filled]){--scb-button-font-variation-settings:'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24}.native-button,.native-button-wrap{position:relative;display:inline-flex}.native-button-wrap{border-radius:var(--md-sys-shape-corner-full, 999px)}.native-button{z-index:0;box-sizing:border-box;align-items:center;justify-content:center;gap:var(--scb-button-icon-gap);min-block-size:var(--scb-button-block-size, var(--scb-button-container-height));block-size:var(--scb-button-block-size, var(--scb-button-container-height));min-inline-size:64px;inline-size:auto;padding-block:var(--scb-button-padding-block);padding-inline:var(--scb-button-padding-inline);overflow:hidden;border:0;border-radius:inherit;background:0 0;color:var(--md-sys-color-primary);font-family:var(--scb-typography-label-medium-font, var(--md-sys-typescale-label-medium-font));font-size:var(--scb-typography-label-medium-size, var(--md-sys-typescale-label-medium-size));font-weight:var(--scb-typography-label-medium-weight, var(--md-sys-typescale-label-medium-weight));line-height:var(--scb-button-label-text-line-height, var(--scb-typography-label-medium-line-height, var(--md-sys-typescale-label-medium-line-height)));letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;appearance:none;-webkit-appearance:none;touch-action:manipulation}::slotted(*){display:inline!important;margin:0!important;color:inherit!important;font:inherit!important;letter-spacing:inherit!important;line-height:inherit!important}.native-button::before{content:"";position:absolute;inset:0;z-index:-1;background:currentColor;opacity:0;pointer-events:none;transition:opacity var(--motion-duration-short, 150ms) var(--motion-easing-standard, ease)}.native-button:hover::before{opacity:var(--md-sys-state-hover-state-layer-opacity, 0.08)}.native-button:active::before{opacity:var(--md-sys-state-pressed-state-layer-opacity, 0.12)}.native-button:focus{outline:0}:host(:not([data-native-focus-ring-ready])) .native-button:focus-visible{outline:var(--stroke-border-m, 2px) solid var(--md-sys-color-primary);outline-offset:var(--spacing-1, 2px)}.native-button:disabled,.native-button[aria-disabled=true]{color:rgb(15 8 101/38%);cursor:default;opacity:1;pointer-events:none}:host(:not([variant])) .native-button,:host([variant='filled']) .native-button{border-color:transparent;background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary)}:host([variant='outlined']) .native-button{background:0 0;color:var(--md-sys-color-primary);box-shadow:inset 0 0 0 var(--stroke-border, 1px) var(--md-sys-color-outline)}:host([variant='outlined']) .native-button:disabled,:host([variant='outlined']) .native-button[aria-disabled=true]{color:rgb(15 8 101/38%);box-shadow:inset 0 0 0 var(--stroke-border, 1px) rgb(15 8 101/12%)}:host([variant='filled-tonal']) .native-button{border-color:transparent;background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container)}:host(:not([variant])) .native-button:disabled,:host(:not([variant])) .native-button[aria-disabled=true],:host([variant='filled']) .native-button:disabled,:host([variant='filled']) .native-button[aria-disabled=true],:host([variant='filled-tonal']) .native-button:disabled,:host([variant='filled-tonal']) .native-button[aria-disabled=true]{background:rgb(15 8 101/12%);color:rgb(15 8 101/38%)}:host([variant='text']) .native-button{min-inline-size:0;background:0 0;color:var(--md-sys-color-primary)}:host([variant='text']) .native-button:disabled,:host([variant='text']) .native-button[aria-disabled=true]{color:rgb(15 8 101/38%)}.native-icon{flex:0 0 auto;display:inline-block;inline-size:var(--scb-button-icon-size);block-size:var(--scb-button-icon-size);overflow:hidden;font-family:"Material Symbols Outlined";font-size:var(--scb-button-icon-size);line-height:1;text-align:center;white-space:nowrap;text-transform:none;word-wrap:normal;direction:ltr;font-feature-settings:"liga"1;font-variation-settings:var(--scb-button-font-variation-settings);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.native-icon.scb-svg-icon{fill:currentColor;font:inherit}.native-button-wrap md-ripple{position:absolute;inset:0;border-radius:inherit;pointer-events:none}.native-button-wrap md-focus-ring{pointer-events:none}:host([full-width]){display:flex;inline-size:100%}:host([full-width]) .native-button,:host([full-width]) .native-button-wrap{inline-size:100%;flex:1 1 auto}`}render(){const t=!!this.icon?.trim(),e=t?c`<span class="native-icon" part="icon" aria-hidden="true">${this.icon}</span>`:s,i=this.label.trim()===""&&!this.__hasDefaultSlotContent?this.icon:void 0,r=c`
5
3
  <slot
6
4
  @slotchange=${this.__handleDefaultSlotChange}
7
5
  style=${this.__hasDefaultSlotContent?s:"display: none"}
@@ -48,4 +46,4 @@ import{g as s,h as z,m as N,p as o,v as c,y as w}from"../../vendor/vendor.js";im
48
46
  ${this.__nativeRippleReady?c`<md-ripple aria-hidden="true"></md-ripple>`:s}
49
47
  ${this.__nativeFocusRingReady?c`<md-focus-ring aria-hidden="true"></md-focus-ring>`:s}
50
48
  </span>
51
- `}});function C(){const p=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??p,e=this.mapSpacingToken(this.spacingBottom)??p,i=this.mapSpacingToken(this.spacingLeft),r=this.mapSpacingToken(this.spacingRight);t?this.style.setProperty("--scb-button-spacing-block-start",t):this.style.removeProperty("--scb-button-spacing-block-start"),e?this.style.setProperty("--scb-button-spacing-block-end",e):this.style.removeProperty("--scb-button-spacing-block-end"),i?this.style.setProperty("--scb-button-spacing-inline-start",i):this.style.removeProperty("--scb-button-spacing-inline-start"),r?this.style.setProperty("--scb-button-spacing-inline-end",r):this.style.removeProperty("--scb-button-spacing-inline-end")}a([o({type:String,reflect:!0})],n.prototype,"variant",void 0);a([o({type:String,reflect:!0})],n.prototype,"size",void 0);a([o({type:String,reflect:!0})],n.prototype,"type",void 0);a([o({type:String})],n.prototype,"label",void 0);a([o({type:Boolean,attribute:"trailing-icon"})],n.prototype,"trailingIcon",void 0);a([o({type:String})],n.prototype,"icon",void 0);a([o({type:Boolean,attribute:"icon-filled",reflect:!0})],n.prototype,"iconFilled",void 0);a([o({type:Boolean,reflect:!0})],n.prototype,"disabled",void 0);a([o({type:Boolean,attribute:"full-width",reflect:!0})],n.prototype,"fullWidth",void 0);a([o({type:String})],n.prototype,"href",void 0);a([o({type:String})],n.prototype,"target",void 0);a([o({type:String})],n.prototype,"rel",void 0);a([o({type:String,reflect:!0})],n.prototype,"spacing",void 0);a([o({type:String,attribute:"spacing-top",reflect:!0})],n.prototype,"spacingTop",void 0);a([o({type:String,attribute:"spacing-bottom",reflect:!0})],n.prototype,"spacingBottom",void 0);a([o({type:String,attribute:"spacing-left",reflect:!0})],n.prototype,"spacingLeft",void 0);a([o({type:String,attribute:"spacing-right",reflect:!0})],n.prototype,"spacingRight",void 0);n=a([N("scb-button")],n);export{n as ScbButton};
49
+ `}});function x(){const u=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??u,e=this.mapSpacingToken(this.spacingBottom)??u,i=this.mapSpacingToken(this.spacingLeft),r=this.mapSpacingToken(this.spacingRight);t?this.style.setProperty("--scb-button-spacing-block-start",t):this.style.removeProperty("--scb-button-spacing-block-start"),e?this.style.setProperty("--scb-button-spacing-block-end",e):this.style.removeProperty("--scb-button-spacing-block-end"),i?this.style.setProperty("--scb-button-spacing-inline-start",i):this.style.removeProperty("--scb-button-spacing-inline-start"),r?this.style.setProperty("--scb-button-spacing-inline-end",r):this.style.removeProperty("--scb-button-spacing-inline-end")}a([o({type:String,reflect:!0})],n.prototype,"variant",void 0);a([o({type:String,reflect:!0})],n.prototype,"size",void 0);a([o({type:String,reflect:!0})],n.prototype,"type",void 0);a([o({type:String})],n.prototype,"label",void 0);a([o({type:Boolean,attribute:"trailing-icon"})],n.prototype,"trailingIcon",void 0);a([o({type:String})],n.prototype,"icon",void 0);a([o({type:Boolean,attribute:"icon-filled",reflect:!0})],n.prototype,"iconFilled",void 0);a([o({type:Boolean,reflect:!0})],n.prototype,"disabled",void 0);a([o({type:Boolean,attribute:"full-width",reflect:!0})],n.prototype,"fullWidth",void 0);a([o({type:String})],n.prototype,"href",void 0);a([o({type:String})],n.prototype,"target",void 0);a([o({type:String})],n.prototype,"rel",void 0);a([o({type:String,reflect:!0})],n.prototype,"spacing",void 0);a([o({type:String,attribute:"spacing-top",reflect:!0})],n.prototype,"spacingTop",void 0);a([o({type:String,attribute:"spacing-bottom",reflect:!0})],n.prototype,"spacingBottom",void 0);a([o({type:String,attribute:"spacing-left",reflect:!0})],n.prototype,"spacingLeft",void 0);a([o({type:String,attribute:"spacing-right",reflect:!0})],n.prototype,"spacingRight",void 0);n=a([N("scb-button")],n);export{n as ScbButton};
@@ -1,4 +1,4 @@
1
- import{g as J,h as W,m as B,p as _,v as E,y as P}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as U}from"../../vendor/lazy-focus-ring.js";import{t as v}from"../../vendor/decorate.js";import{n as G,t as H}from"../../vendor/assertClassBrand.js";import"../scb-icon-button/scb-icon-button.js";import"./scb-calendar-event.js";import"../scb-dialog/scb-dialog.js";import"../scb-list/scb-list.js";(function(){try{var $=typeof globalThis<"u"?globalThis:window;if(!$.__scb_ce_guard_installed__){$.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,s,n){try{customElements.get(e)||t(e,s,n)}catch(a){var i=String(a||"");if(i.indexOf("already been used")===-1&&i.indexOf("NotSupportedError")===-1)throw a}}}}catch{}})();var L,O,q={fromAttribute($){if($===null)return!1;const t=$.trim().toLowerCase();return t!=="false"&&t!=="0"&&t!=="no"}},f=(L=new WeakSet,O=class extends W{constructor(...t){super(...t),G(this,L),this._lastActiveDay=null,this.lang="sv",this.disableWeekend=!1,this.publicHolidays=!0,this.displayYear=new Date().getFullYear(),this.displayMonth=new Date().getMonth()+1,this.selectedDate="",this.eventsJson=void 0,this._eventsFromJson=null,this._eventsJsonLast=void 0,this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this._mutationObserver=null,this._syncingDisplay=!1,this._onCalendarKeyDown=e=>{const s=Array.from(this.shadowRoot?.querySelectorAll(".calendar-day.has-event")??[]),n=this.shadowRoot?.activeElement,i=n&&s.includes(n)?n:document.activeElement,a=s.indexOf(i);if(a===-1)return;let d=a;const o=this.disableWeekend?5:7;switch(e.key){case"ArrowRight":d=a+1<s.length?a+1:a;break;case"ArrowLeft":d=a-1>=0?a-1:a;break;case"ArrowDown":d=a+o<s.length?a+o:a;break;case"ArrowUp":d=a-o>=0?a-o:a;break;case"Home":d=0;break;case"End":d=s.length-1;break;default:return}d!==a&&(e.preventDefault(),s[d].focus())},this._onEventChanged=()=>{this.requestUpdate()},this._today=new Date,this._current=new Date,this._popupEvent=null,this._handleDialogClose=()=>{this._popupEvent=null,this.requestUpdate(),this._restoreDayFocus()},this._restoreDayFocus=()=>{this._lastActiveDay&&setTimeout(()=>{this._lastActiveDay?.focus(),this._lastActiveDay=null},0)},this._easterDateCalculated={}}get value(){return this.selectedDate}set value(t){const e=(t??"")+"";e!==this.selectedDate&&(this.selectedDate=e)}static get observedAttributes(){return[...super.observedAttributes??[],"value"]}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),t==="value"&&(this.value=s??"")}connectedCallback(){super.connectedCallback(),this._removeLazyFocusRingListeners=U(this,this.renderRoot),H(L,this,K).call(this);const t=Number(this.displayYear),e=Number(this.displayMonth);!Number.isNaN(t)&&!Number.isNaN(e)&&e>=1&&e<=12&&(this._current=new Date(t,e-1,1)),this._syncDisplayFromCurrent(!1),this.addEventListener("change",this._onEventChanged),this._mutationObserver=new MutationObserver(()=>{this.requestUpdate()}),this._mutationObserver.observe(this,{childList:!0}),this.addEventListener("keydown",this._onCalendarKeyDown)}disconnectedCallback(){this.removeEventListener("change",this._onEventChanged),this._removeLazyFocusRingListeners?.(),this._removeLazyFocusRingListeners=void 0,super.disconnectedCallback(),this._mutationObserver&&(this._mutationObserver.disconnect(),this._mutationObserver=null),this.removeEventListener("keydown",this._onCalendarKeyDown)}mapSpacingToken(t){if(!t)return;const e=String(t).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e}updated(t){if(super.updated?.(t),t.has("eventsJson")&&(this._eventsJsonLast=void 0,this._eventsFromJson=null),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&H(L,this,K).call(this),!this._syncingDisplay&&(t.has("displayYear")||t.has("displayMonth"))){const e=Number(this.displayYear),s=Number(this.displayMonth);if(!Number.isNaN(e)&&!Number.isNaN(s)&&s>=1&&s<=12){const n=this._current.getFullYear(),i=this._current.getMonth()+1;(n!==e||i!==s)&&(this._current=new Date(e,s-1,1),this._dispatchMonthChange(e,s),this.requestUpdate())}}}_ensureEventsFromJson(){const t=(this.eventsJson??"").trim();if(!t){this._eventsFromJson=null,this._eventsJsonLast=t;return}if(!(this._eventsJsonLast===t&&this._eventsFromJson!==null)){this._eventsJsonLast=t;try{const e=JSON.parse(t);Array.isArray(e)?this._eventsFromJson=e:this._eventsFromJson=[]}catch{this._eventsFromJson=[]}}}_getEventInputs(){return Array.isArray(this.events)?this.events:(this._ensureEventsFromJson(),this._eventsFromJson!==null?this._eventsFromJson:null)}_normalizeEventInput(t){const e=t.title??"",s=t.description??"",n=t.href??"",i=t.startDate??t["start-date"]??t.start??t.date??"",a=t.endDate??t["end-date"]??t.end??"";return{title:e+"",description:s?s+"":void 0,href:n?n+"":void 0,start:i?i+"":void 0,end:a?a+"":void 0}}_toLocalEventDate(t,e){const s=(t??"").trim();if(!s)return null;if(!s.includes("T")){const i=s.split("-").map(c=>Number(c));if(i.length!==3||i.some(c=>Number.isNaN(c)))return null;const[a,d,o]=i;return e?new Date(a,d-1,o,23,59,59,999):new Date(a,d-1,o,0,0,0,0)}const n=new Date(s);return Number.isNaN(n.getTime())?null:n}_toDateKey(t){return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`}_buildEventMapFromInputs(t){const e=new Map;for(const s of t){const n=this._normalizeEventInput(s),i=n.start||"",a=n.end||"";if(!(!i||!n.title))if(i&&a){const d=this._toLocalEventDate(i,!1),o=this._toLocalEventDate(a,!0);if(!d||!o)continue;if(o<d){const c=i.split("T")[0],u=e.get(c)||[];u.push({title:n.title,description:n.description,href:n.href,start:i,end:a}),e.set(c,u);continue}for(let c=new Date(d);c<=o;c.setDate(c.getDate()+1)){const u=this._toDateKey(c),k=e.get(u)||[];k.push({title:n.title,description:n.description,href:n.href,start:i,end:a}),e.set(u,k)}}else{const d=i.split("T")[0],o=e.get(d)||[];o.push({title:n.title,description:n.description,href:n.href,start:i}),e.set(d,o)}}return e}_buildEventMapFromChildren(){const t=Array.from(this.querySelectorAll("scb-calendar-event")),e=new Map;for(const s of t){const n=s,i=(n.startDate??n.date??"")+""||s.getAttribute("start-date")||s.getAttribute("date")||"",a=(n.endDate??"")+""||s.getAttribute("end-date")||"";if(i&&a){const d=this._toLocalEventDate(i,!1),o=this._toLocalEventDate(a,!0);if(!d||!o)continue;if(o<d){const c=i.split("T")[0],u=e.get(c)||[];u.push({title:s.title??"",description:s.description,href:n.href||s.getAttribute("href")||void 0,start:i,end:a}),e.set(c,u);continue}for(let c=new Date(d);c<=o;c.setDate(c.getDate()+1)){const u=this._toDateKey(c),k=e.get(u)||[];k.push({title:s.title??"",description:s.description,href:n.href||s.getAttribute("href")||void 0,start:i,end:a}),e.set(u,k)}}else if(i&&s.title){const d=i.split("T")[0],o=e.get(d)||[];o.push({title:s.title,description:s.description,href:n.href||s.getAttribute("href")||void 0,start:i}),e.set(d,o)}}return e}_syncDisplayFromCurrent(t=!0){const e=this._current.getFullYear(),s=this._current.getMonth()+1;this._syncingDisplay=!0;try{this.displayYear=e,this.displayMonth=s}finally{this._syncingDisplay=!1}t&&this._dispatchMonthChange(e,s)}_dispatchMonthChange(t,e){const s={displayYear:t,displayMonth:e};this.dispatchEvent(new CustomEvent("scb-calendar-month-change",{bubbles:!0,composed:!0,detail:s})),this.dispatchEvent(new CustomEvent("scbcalendarmonthchange",{bubbles:!0,composed:!0,detail:s}))}_dispatchSelect(t){const e={selectedDate:t};this.dispatchEvent(new CustomEvent("scb-calendar-select",{bubbles:!0,composed:!0,detail:e})),this.dispatchEvent(new CustomEvent("scbcalendarselect",{bubbles:!0,composed:!0,detail:e}))}_formatDayLabel(t){return new Intl.DateTimeFormat(this.lang==="en"?"en-GB":"sv-SE",{day:"numeric",month:"long",year:"numeric"}).format(t)}_formatDayAriaLabel(t,e,s){const n=s.map(a=>`${a.prefix||""}${a.title}`.trim()).filter(Boolean),i=[this._formatDayLabel(t)];return e&&i.push(e),n.length===1?i.push(this.lang==="en"?`1 event: ${n[0]}`:`1 händelse: ${n[0]}`):n.length>1&&i.push(this.lang==="en"?`${n.length} events: ${n.join(", ")}`:`${n.length} händelser: ${n.join(", ")}`),i.join(". ")}_daysInMonth(t,e){return new Date(t,e+1,0).getDate()}_firstDayOfWeek(t,e){const s=new Date(t,e,1).getDay();return s===0?6:s-1}_prevMonth(){this._current=new Date(this._current.getFullYear(),this._current.getMonth()-1,1),this.selectedDate="",this._popupEvent=null,this._syncDisplayFromCurrent(),this.requestUpdate()}_nextMonth(){this._current=new Date(this._current.getFullYear(),this._current.getMonth()+1,1),this.selectedDate="",this._popupEvent=null,this._syncDisplayFromCurrent(),this.requestUpdate()}_showEventPopup(t){this._popupEvent=t,this.selectedDate=t.date,this._dispatchSelect(t.date),this._lastActiveDay=this.shadowRoot?.activeElement||document.activeElement,this.requestUpdate(),this.updateComplete.then(()=>{const e=this.shadowRoot?.querySelector("scb-dialog");e&&(document.activeElement&&(e.__lastTriggerEl=document.activeElement),requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.open=!0})}),e.addEventListener("close",this._handleDialogClose,{once:!0}))})}_addDays(t,e){const s=new Date(t.valueOf());return s.setDate(s.getDate()+e),s}_easterDay(t){if(typeof this._easterDateCalculated["Ar"+t]<"u")return new Date(this._easterDateCalculated["Ar"+t]);let e=t;e<100&&(e=e+1900),e<1950&&(e=e+100);const s=e%19,n=e%4,i=e%7,a=(19*s+24)%30,d=(2*n+4*i+6*a+5)%7;let o=22+a+d,c=0;o==57&&(o-=7),o==56&&a==28&&d==6&&s>10&&(o-=7),o>31?(o-=31,c=4):c=3;const u=new Date(e,c-1,o);return this._easterDateCalculated["Ar"+t]=u,new Date(this._easterDateCalculated["Ar"+t])}_swedishHolidayName(t){const e=t.getMonth();if(e===1||e===6||e===7||e===8)return null;const s=t.getMonth()+1,n=t.getDate(),i=t.getFullYear(),a=this._easterDay(i),d=this.lang==="en",o=[["Nyårsdagen","New Year's Day",s===1&&n===1],["Trettondedag jul","Epiphany",s===1&&n===6],["Långfredag","Good Friday",+t==+this._addDays(a,-2)],["Påskdagen","Easter Sunday",+t==+a],["Annandag påsk","Easter Monday",+t==+this._addDays(a,1)],["Kristi himmelsfärdsdag","Ascension Day",+t==+this._addDays(a,39)],["Pingstdagen","Pentecost",+t==+this._addDays(a,50)&&i<2005],["Första maj","May Day",s===5&&n===1],["Nationaldagen","National Day",s===6&&n===6&&i>=2005],["Midsommarafton","Midsummer's Eve",s===6&&n>=19&&n<=25&&t.getDay()===5],["Midsommardagen","Midsummer's Day",s===6&&n>=20&&n<=26&&t.getDay()===6],["Julafton","Christmas Eve",s===12&&n===24],["Juldagen","Christmas Day",s===12&&n===25],["Annandag jul","Boxing Day",s===12&&n===26],["Alla helgons dag","All Saints' Day",s===10&&n>=31&&t.getDay()===6||s===11&&n<=6&&t.getDay()===6]];for(const c of o){const[u,k,F]=c;if(F)return d?k:u}return null}render(){const t=this._current.getFullYear(),e=this._current.getMonth(),s=this._daysInMonth(t,e),n=this._firstDayOfWeek(t,e),i=this._today,a=this.lang==="en",d=a?["January","February","March","April","May","June","July","August","September","October","November","December"]:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"];let o=a?["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]:["Mån","Tis","Ons","Tor","Fre","Lör","Sön"];this.disableWeekend&&(o=o.slice(0,5));const c=this._getEventInputs(),u=c?this._buildEventMapFromInputs(c):this._buildEventMapFromChildren(),k=[];let F=1;for(let r=0;r<6;r++){const h=[],b=this.disableWeekend?[0,1,2,3,4]:[0,1,2,3,4,5,6];let p=F;for(let D=0;D<b.length;D++){const w=b[D];if(r===0&&w<n){if(!this.disableWeekend||w<5){const T=e===0?11:e-1,x=e===0?t-1:t,g=this._daysInMonth(x,T)-(n-w-1),N=new Date(x,T,g);h.push(E`
1
+ import{g as J,h as W,m as B,p as _,v as E,y as P}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{addLazyFocusRingListeners as U}from"../shared/lazy-focus-ring.js";import{t as v}from"../../vendor/decorate.js";import{n as G,t as z}from"../../vendor/assertClassBrand.js";import"../scb-icon-button/scb-icon-button.js";import"./scb-calendar-event.js";import"../scb-dialog/scb-dialog.js";import"../scb-list/scb-list.js";(function(){try{var $=typeof globalThis<"u"?globalThis:window;if(!$.__scb_ce_guard_installed__){$.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,s,a){try{customElements.get(e)||t(e,s,a)}catch(n){var i=String(n||"");if(i.indexOf("already been used")===-1&&i.indexOf("NotSupportedError")===-1)throw n}}}}catch{}})();var L,O,K={fromAttribute($){if($===null)return!1;const t=$.trim().toLowerCase();return t!=="false"&&t!=="0"&&t!=="no"}},f=(L=new WeakSet,O=class extends W{constructor(...t){super(...t),G(this,L),this._lastActiveDay=null,this.lang="sv",this.disableWeekend=!1,this.publicHolidays=!0,this.displayYear=new Date().getFullYear(),this.displayMonth=new Date().getMonth()+1,this.selectedDate="",this.eventsJson=void 0,this._eventsFromJson=null,this._eventsJsonLast=void 0,this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this._mutationObserver=null,this._syncingDisplay=!1,this._onCalendarKeyDown=e=>{const s=Array.from(this.shadowRoot?.querySelectorAll(".calendar-day.has-event")??[]),a=this.shadowRoot?.activeElement,i=a&&s.includes(a)?a:document.activeElement,n=s.indexOf(i);if(n===-1)return;let d=n;const o=this.disableWeekend?5:7;switch(e.key){case"ArrowRight":d=n+1<s.length?n+1:n;break;case"ArrowLeft":d=n-1>=0?n-1:n;break;case"ArrowDown":d=n+o<s.length?n+o:n;break;case"ArrowUp":d=n-o>=0?n-o:n;break;case"Home":d=0;break;case"End":d=s.length-1;break;default:return}d!==n&&(e.preventDefault(),s[d].focus())},this._onEventChanged=()=>{this.requestUpdate()},this._today=new Date,this._current=new Date,this._popupEvent=null,this._handleDialogClose=()=>{this._popupEvent=null,this.requestUpdate(),this._restoreDayFocus()},this._restoreDayFocus=()=>{this._lastActiveDay&&setTimeout(()=>{this._lastActiveDay?.focus(),this._lastActiveDay=null},0)},this._easterDateCalculated={}}get value(){return this.selectedDate}set value(t){const e=(t??"")+"";e!==this.selectedDate&&(this.selectedDate=e)}static get observedAttributes(){return[...super.observedAttributes??[],"value"]}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),t==="value"&&(this.value=s??"")}connectedCallback(){super.connectedCallback(),this._removeLazyFocusRingListeners=U(this,this.renderRoot),z(L,this,H).call(this);const t=Number(this.displayYear),e=Number(this.displayMonth);!Number.isNaN(t)&&!Number.isNaN(e)&&e>=1&&e<=12&&(this._current=new Date(t,e-1,1)),this._syncDisplayFromCurrent(!1),this.addEventListener("change",this._onEventChanged),this._mutationObserver=new MutationObserver(()=>{this.requestUpdate()}),this._mutationObserver.observe(this,{childList:!0}),this.addEventListener("keydown",this._onCalendarKeyDown)}disconnectedCallback(){this.removeEventListener("change",this._onEventChanged),this._removeLazyFocusRingListeners?.(),this._removeLazyFocusRingListeners=void 0,super.disconnectedCallback(),this._mutationObserver&&(this._mutationObserver.disconnect(),this._mutationObserver=null),this.removeEventListener("keydown",this._onCalendarKeyDown)}mapSpacingToken(t){if(!t)return;const e=String(t).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e}updated(t){if(super.updated?.(t),t.has("eventsJson")&&(this._eventsJsonLast=void 0,this._eventsFromJson=null),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&z(L,this,H).call(this),!this._syncingDisplay&&(t.has("displayYear")||t.has("displayMonth"))){const e=Number(this.displayYear),s=Number(this.displayMonth);if(!Number.isNaN(e)&&!Number.isNaN(s)&&s>=1&&s<=12){const a=this._current.getFullYear(),i=this._current.getMonth()+1;(a!==e||i!==s)&&(this._current=new Date(e,s-1,1),this._dispatchMonthChange(e,s),this.requestUpdate())}}}_ensureEventsFromJson(){const t=(this.eventsJson??"").trim();if(!t){this._eventsFromJson=null,this._eventsJsonLast=t;return}if(!(this._eventsJsonLast===t&&this._eventsFromJson!==null)){this._eventsJsonLast=t;try{const e=JSON.parse(t);Array.isArray(e)?this._eventsFromJson=e:this._eventsFromJson=[]}catch{this._eventsFromJson=[]}}}_getEventInputs(){return Array.isArray(this.events)?this.events:(this._ensureEventsFromJson(),this._eventsFromJson!==null?this._eventsFromJson:null)}_normalizeEventInput(t){const e=t.title??"",s=t.description??"",a=t.href??"",i=t.startDate??t["start-date"]??t.start??t.date??"",n=t.endDate??t["end-date"]??t.end??"";return{title:e+"",description:s?s+"":void 0,href:a?a+"":void 0,start:i?i+"":void 0,end:n?n+"":void 0}}_toLocalEventDate(t,e){const s=(t??"").trim();if(!s)return null;if(!s.includes("T")){const i=s.split("-").map(c=>Number(c));if(i.length!==3||i.some(c=>Number.isNaN(c)))return null;const[n,d,o]=i;return e?new Date(n,d-1,o,23,59,59,999):new Date(n,d-1,o,0,0,0,0)}const a=new Date(s);return Number.isNaN(a.getTime())?null:a}_toDateKey(t){return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`}_buildEventMapFromInputs(t){const e=new Map;for(const s of t){const a=this._normalizeEventInput(s),i=a.start||"",n=a.end||"";if(!(!i||!a.title))if(i&&n){const d=this._toLocalEventDate(i,!1),o=this._toLocalEventDate(n,!0);if(!d||!o)continue;if(o<d){const c=i.split("T")[0],u=e.get(c)||[];u.push({title:a.title,description:a.description,href:a.href,start:i,end:n}),e.set(c,u);continue}for(let c=new Date(d);c<=o;c.setDate(c.getDate()+1)){const u=this._toDateKey(c),k=e.get(u)||[];k.push({title:a.title,description:a.description,href:a.href,start:i,end:n}),e.set(u,k)}}else{const d=i.split("T")[0],o=e.get(d)||[];o.push({title:a.title,description:a.description,href:a.href,start:i}),e.set(d,o)}}return e}_buildEventMapFromChildren(){const t=Array.from(this.querySelectorAll("scb-calendar-event")),e=new Map;for(const s of t){const a=s,i=(a.startDate??a.date??"")+""||s.getAttribute("start-date")||s.getAttribute("date")||"",n=(a.endDate??"")+""||s.getAttribute("end-date")||"";if(i&&n){const d=this._toLocalEventDate(i,!1),o=this._toLocalEventDate(n,!0);if(!d||!o)continue;if(o<d){const c=i.split("T")[0],u=e.get(c)||[];u.push({title:s.title??"",description:s.description,href:a.href||s.getAttribute("href")||void 0,start:i,end:n}),e.set(c,u);continue}for(let c=new Date(d);c<=o;c.setDate(c.getDate()+1)){const u=this._toDateKey(c),k=e.get(u)||[];k.push({title:s.title??"",description:s.description,href:a.href||s.getAttribute("href")||void 0,start:i,end:n}),e.set(u,k)}}else if(i&&s.title){const d=i.split("T")[0],o=e.get(d)||[];o.push({title:s.title,description:s.description,href:a.href||s.getAttribute("href")||void 0,start:i}),e.set(d,o)}}return e}_syncDisplayFromCurrent(t=!0){const e=this._current.getFullYear(),s=this._current.getMonth()+1;this._syncingDisplay=!0;try{this.displayYear=e,this.displayMonth=s}finally{this._syncingDisplay=!1}t&&this._dispatchMonthChange(e,s)}_dispatchMonthChange(t,e){const s={displayYear:t,displayMonth:e};this.dispatchEvent(new CustomEvent("scb-calendar-month-change",{bubbles:!0,composed:!0,detail:s})),this.dispatchEvent(new CustomEvent("scbcalendarmonthchange",{bubbles:!0,composed:!0,detail:s}))}_dispatchSelect(t){const e={selectedDate:t};this.dispatchEvent(new CustomEvent("scb-calendar-select",{bubbles:!0,composed:!0,detail:e})),this.dispatchEvent(new CustomEvent("scbcalendarselect",{bubbles:!0,composed:!0,detail:e}))}_formatDayLabel(t){return new Intl.DateTimeFormat(this.lang==="en"?"en-GB":"sv-SE",{day:"numeric",month:"long",year:"numeric"}).format(t)}_formatDayAriaLabel(t,e,s){const a=s.map(n=>`${n.prefix||""}${n.title}`.trim()).filter(Boolean),i=[this._formatDayLabel(t)];return e&&i.push(e),a.length===1?i.push(this.lang==="en"?`1 event: ${a[0]}`:`1 händelse: ${a[0]}`):a.length>1&&i.push(this.lang==="en"?`${a.length} events: ${a.join(", ")}`:`${a.length} händelser: ${a.join(", ")}`),i.join(". ")}_daysInMonth(t,e){return new Date(t,e+1,0).getDate()}_firstDayOfWeek(t,e){const s=new Date(t,e,1).getDay();return s===0?6:s-1}_prevMonth(){this._current=new Date(this._current.getFullYear(),this._current.getMonth()-1,1),this.selectedDate="",this._popupEvent=null,this._syncDisplayFromCurrent(),this.requestUpdate()}_nextMonth(){this._current=new Date(this._current.getFullYear(),this._current.getMonth()+1,1),this.selectedDate="",this._popupEvent=null,this._syncDisplayFromCurrent(),this.requestUpdate()}_showEventPopup(t){this._popupEvent=t,this.selectedDate=t.date,this._dispatchSelect(t.date),this._lastActiveDay=this.shadowRoot?.activeElement||document.activeElement,this.requestUpdate(),this.updateComplete.then(()=>{const e=this.shadowRoot?.querySelector("scb-dialog");e&&(document.activeElement&&(e.__lastTriggerEl=document.activeElement),requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.open=!0})}),e.addEventListener("close",this._handleDialogClose,{once:!0}))})}_addDays(t,e){const s=new Date(t.valueOf());return s.setDate(s.getDate()+e),s}_easterDay(t){if(typeof this._easterDateCalculated["Ar"+t]<"u")return new Date(this._easterDateCalculated["Ar"+t]);let e=t;e<100&&(e=e+1900),e<1950&&(e=e+100);const s=e%19,a=e%4,i=e%7,n=(19*s+24)%30,d=(2*a+4*i+6*n+5)%7;let o=22+n+d,c=0;o==57&&(o-=7),o==56&&n==28&&d==6&&s>10&&(o-=7),o>31?(o-=31,c=4):c=3;const u=new Date(e,c-1,o);return this._easterDateCalculated["Ar"+t]=u,new Date(this._easterDateCalculated["Ar"+t])}_swedishHolidayName(t){const e=t.getMonth();if(e===1||e===6||e===7||e===8)return null;const s=t.getMonth()+1,a=t.getDate(),i=t.getFullYear(),n=this._easterDay(i),d=this.lang==="en",o=[["Nyårsdagen","New Year's Day",s===1&&a===1],["Trettondedag jul","Epiphany",s===1&&a===6],["Långfredag","Good Friday",+t==+this._addDays(n,-2)],["Påskdagen","Easter Sunday",+t==+n],["Annandag påsk","Easter Monday",+t==+this._addDays(n,1)],["Kristi himmelsfärdsdag","Ascension Day",+t==+this._addDays(n,39)],["Pingstdagen","Pentecost",+t==+this._addDays(n,50)&&i<2005],["Första maj","May Day",s===5&&a===1],["Nationaldagen","National Day",s===6&&a===6&&i>=2005],["Midsommarafton","Midsummer's Eve",s===6&&a>=19&&a<=25&&t.getDay()===5],["Midsommardagen","Midsummer's Day",s===6&&a>=20&&a<=26&&t.getDay()===6],["Julafton","Christmas Eve",s===12&&a===24],["Juldagen","Christmas Day",s===12&&a===25],["Annandag jul","Boxing Day",s===12&&a===26],["Alla helgons dag","All Saints' Day",s===10&&a>=31&&t.getDay()===6||s===11&&a<=6&&t.getDay()===6]];for(const c of o){const[u,k,F]=c;if(F)return d?k:u}return null}render(){const t=this._current.getFullYear(),e=this._current.getMonth(),s=this._daysInMonth(t,e),a=this._firstDayOfWeek(t,e),i=this._today,n=this.lang==="en",d=n?["January","February","March","April","May","June","July","August","September","October","November","December"]:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"];let o=n?["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]:["Mån","Tis","Ons","Tor","Fre","Lör","Sön"];this.disableWeekend&&(o=o.slice(0,5));const c=this._getEventInputs(),u=c?this._buildEventMapFromInputs(c):this._buildEventMapFromChildren(),k=[];let F=1;for(let r=0;r<6;r++){const h=[],b=this.disableWeekend?[0,1,2,3,4]:[0,1,2,3,4,5,6];let p=F;for(let D=0;D<b.length;D++){const w=b[D];if(r===0&&w<a){if(!this.disableWeekend||w<5){const T=e===0?11:e-1,x=e===0?t-1:t,g=this._daysInMonth(x,T)-(a-w-1),N=new Date(x,T,g);h.push(E`
2
2
  <div
3
3
  class="calendar-day calendar-day--other"
4
4
  role="gridcell"
@@ -6,7 +6,7 @@ import{g as J,h as W,m as B,p as _,v as E,y as P}from"../../vendor/vendor.js";im
6
6
  aria-label=${this._formatDayLabel(N)}>
7
7
  <span class="calendar-day-number">${g}</span>
8
8
  </div>
9
- `)}}else if(p>s)h.push(E`<div role="gridcell" aria-disabled="true"></div>`);else{let T=new Date(t,e,p);if(this.disableWeekend)for(;T.getDay()===0||T.getDay()===6;)p++,T=new Date(t,e,p);if(p>s){h.push(E`<div role="gridcell" aria-disabled="true"></div>`);continue}const x=i.getFullYear()===t&&i.getMonth()===e&&i.getDate()===p,g=`${t}-${String(e+1).padStart(2,"0")}-${String(p).padStart(2,"0")}`,N=new Date(t,e,p);let I=!1,S=null;this.publicHolidays&&(S=this._swedishHolidayName(N),I=!!S);let y=u.get(g)||[];y=[...y].sort((l,m)=>{const A=l.start&&g===l.start.split("T")[0]?l.start:l.end&&g===l.end.split("T")[0]?l.end:"",M=m.start&&g===m.start.split("T")[0]?m.start:m.end&&m.end.split("T")[0]?m.end:"",C=A&&A.includes("T"),R=M&&M.includes("T");return C&&R?A.localeCompare(M):C?-1:R?1:l.title.localeCompare(m.title)});const Y=[...y].map(l=>{let m="",A="";if(l.start&&l.end){const M=l.start.split("T")[0],C=l.end.split("T")[0];g===M&&g===C&&l.start.includes("T")&&l.end.includes("T")?m=l.start.split("T")[1].substring(0,5)+"–"+l.end.split("T")[1].substring(0,5):g===M&&l.start.includes("T")?m=l.start.split("T")[1].substring(0,5):g===C&&l.end.includes("T")&&M!==C?(m=l.end.split("T")[1].substring(0,5),A=a?"cont. ":"fort. "):g===C&&l.end.includes("T")?m=l.end.split("T")[1].substring(0,5):g!==M&&(m="",A=a?"cont. ":"fort. ")}else l.start&&l.start.includes("T")&&(m=l.start.split("T")[1].substring(0,5));return{...l,time:m,prefix:A}}),j=this.selectedDate===g,z=this._formatDayAriaLabel(T,S,Y);h.push(E`
9
+ `)}}else if(p>s)h.push(E`<div role="gridcell" aria-disabled="true"></div>`);else{let T=new Date(t,e,p);if(this.disableWeekend)for(;T.getDay()===0||T.getDay()===6;)p++,T=new Date(t,e,p);if(p>s){h.push(E`<div role="gridcell" aria-disabled="true"></div>`);continue}const x=i.getFullYear()===t&&i.getMonth()===e&&i.getDate()===p,g=`${t}-${String(e+1).padStart(2,"0")}-${String(p).padStart(2,"0")}`,N=new Date(t,e,p);let I=!1,S=null;this.publicHolidays&&(S=this._swedishHolidayName(N),I=!!S);let y=u.get(g)||[];y=[...y].sort((l,m)=>{const A=l.start&&g===l.start.split("T")[0]?l.start:l.end&&g===l.end.split("T")[0]?l.end:"",M=m.start&&g===m.start.split("T")[0]?m.start:m.end&&m.end.split("T")[0]?m.end:"",C=A&&A.includes("T"),R=M&&M.includes("T");return C&&R?A.localeCompare(M):C?-1:R?1:l.title.localeCompare(m.title)});const Y=[...y].map(l=>{let m="",A="";if(l.start&&l.end){const M=l.start.split("T")[0],C=l.end.split("T")[0];g===M&&g===C&&l.start.includes("T")&&l.end.includes("T")?m=l.start.split("T")[1].substring(0,5)+"–"+l.end.split("T")[1].substring(0,5):g===M&&l.start.includes("T")?m=l.start.split("T")[1].substring(0,5):g===C&&l.end.includes("T")&&M!==C?(m=l.end.split("T")[1].substring(0,5),A=n?"cont. ":"fort. "):g===C&&l.end.includes("T")?m=l.end.split("T")[1].substring(0,5):g!==M&&(m="",A=n?"cont. ":"fort. ")}else l.start&&l.start.includes("T")&&(m=l.start.split("T")[1].substring(0,5));return{...l,time:m,prefix:A}}),j=this.selectedDate===g,q=this._formatDayAriaLabel(T,S,Y);h.push(E`
10
10
  <div
11
11
  class="calendar-day${x?" today":""}${y.length?" has-event":""}${I?" calendar-day--holiday":""}"
12
12
  tabindex=${y.length?"0":void 0}
@@ -14,7 +14,7 @@ import{g as J,h as W,m as B,p as _,v as E,y as P}from"../../vendor/vendor.js";im
14
14
  @keydown=${y.length?(l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),this._showEventPopup({date:g,events:y}))}):null}
15
15
  title=${S||(y.length===1?y[0].title:y.length>1?y.map(l=>l.title).join(", "):"")}
16
16
  role="gridcell"
17
- aria-label=${z}
17
+ aria-label=${q}
18
18
  aria-current=${x?"date":J}
19
19
  aria-selected=${j?"true":"false"}
20
20
  aria-haspopup=${y.length?"dialog":J}
@@ -28,9 +28,9 @@ import{g as J,h as W,m as B,p as _,v as E,y as P}from"../../vendor/vendor.js";im
28
28
  </div>
29
29
  `),p++}}if(F=p,k.push(E`<div class="calendar-grid" role="row">${h}</div>`),F>s)break}return E`
30
30
  <div class="calendar-header">
31
- <scb-icon-button @click=${this._prevMonth} icon="chevron_left" aria-label="${a?"Previous month":"Föregående månad"}"></scb-icon-button>
31
+ <scb-icon-button @click=${this._prevMonth} icon="chevron_left" aria-label="${n?"Previous month":"Föregående månad"}"></scb-icon-button>
32
32
  <span>${d[e]} ${t}</span>
33
- <scb-icon-button @click=${this._nextMonth} icon="chevron_right" aria-label="${a?"Next month":"Nästa månad"}"></scb-icon-button>
33
+ <scb-icon-button @click=${this._nextMonth} icon="chevron_right" aria-label="${n?"Next month":"Nästa månad"}"></scb-icon-button>
34
34
  </div>
35
35
  <div class="calendar-grid calendar-grid-days" role="row">
36
36
  ${o.map(r=>E`<div role="columnheader">${r}</div>`)}
@@ -39,9 +39,9 @@ import{g as J,h as W,m as B,p as _,v as E,y as P}from"../../vendor/vendor.js";im
39
39
  ${k}
40
40
  </div>
41
41
  ${this._popupEvent&&Array.isArray(this._popupEvent.events)?E`
42
- <scb-dialog variant="floating" open label="${a?"Events":"Händelser"} ${this._popupEvent.date}">
42
+ <scb-dialog variant="floating" open label="${n?"Events":"Händelser"} ${this._popupEvent.date}">
43
43
  <scb-list>
44
- ${[...this._popupEvent.events].sort((r,h)=>{const b=r.start&&r.start.includes("T")?r.start:r.end&&r.end.includes("T")?r.end:"",p=h.start&&h.start.includes("T")?h.start:h.end&&h.end.includes("T")?h.end:"",D=b&&b.includes("T"),w=p&&p.includes("T");return D&&w?b.localeCompare(p):D?-1:w?1:r.title.localeCompare(h.title)}).map(r=>{const h=this._popupEvent?.date??"";let b="",p="",D="";if(r.start&&r.end){const w=r.start.split("T")[0],T=r.end.split("T")[0];w===T&&r.start.includes("T")&&r.end.includes("T")?b=r.start.split("T")[1].substring(0,5)+" – "+r.end.split("T")[1].substring(0,5):h===w&&r.start.includes("T")&&(b="Start: "+r.start.split("T")[1].substring(0,5)+(a?" (Extended event) ":" (Flerdagsevenemang) ")),h===T&&r.end.includes("T")&&w!==T&&(D=(a?"End: ":"Slut: ")+r.end.split("T")[1].substring(0,5)),h!==w&&(p=a?"cont. ":"fort. ")}else r.start&&r.start.includes("T")&&(b=r.start.split("T")[1].substring(0,5));return r.href?E`
44
+ ${[...this._popupEvent.events].sort((r,h)=>{const b=r.start&&r.start.includes("T")?r.start:r.end&&r.end.includes("T")?r.end:"",p=h.start&&h.start.includes("T")?h.start:h.end&&h.end.includes("T")?h.end:"",D=b&&b.includes("T"),w=p&&p.includes("T");return D&&w?b.localeCompare(p):D?-1:w?1:r.title.localeCompare(h.title)}).map(r=>{const h=this._popupEvent?.date??"";let b="",p="",D="";if(r.start&&r.end){const w=r.start.split("T")[0],T=r.end.split("T")[0];w===T&&r.start.includes("T")&&r.end.includes("T")?b=r.start.split("T")[1].substring(0,5)+" – "+r.end.split("T")[1].substring(0,5):h===w&&r.start.includes("T")&&(b="Start: "+r.start.split("T")[1].substring(0,5)+(n?" (Extended event) ":" (Flerdagsevenemang) ")),h===T&&r.end.includes("T")&&w!==T&&(D=(n?"End: ":"Slut: ")+r.end.split("T")[1].substring(0,5)),h!==w&&(p=n?"cont. ":"fort. ")}else r.start&&r.start.includes("T")&&(b=r.start.split("T")[1].substring(0,5));return r.href?E`
45
45
  <scb-list-item
46
46
  type="link"
47
47
  item-href="${r.href}"
@@ -59,4 +59,4 @@ import{g as J,h as W,m as B,p as _,v as E,y as P}from"../../vendor/vendor.js";im
59
59
  </scb-list>
60
60
  </scb-dialog>
61
61
  `:""}
62
- `}},O.styles=P`:host{display:block;margin-block-start:var(--scb-calendar-spacing-block-start, 0);margin-block-end:var(--scb-calendar-spacing-block-end, 0);margin-inline-start:var(--scb-calendar-spacing-inline-start, 0);margin-inline-end:var(--scb-calendar-spacing-inline-end, 0);border:1px solid var(--md-sys-color-outline-variant);padding:var(--spacing-5);border-radius:var(--md-sys-shape-corner-large);background:var(--md-sys-color-surface);font-family:var(--brand-font)}.calendar-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--spacing-5);border-bottom:1px solid #e0e0e0;padding-bottom:var(--spacing-3)}.calendar-grid{display:grid;gap:var(--spacing-2);margin-bottom:var(--spacing-2);grid-template-columns:repeat(7,1fr)}:host([disable-weekend]) .calendar-grid{grid-template-columns:repeat(5,1fr)}.calendar-grid-days{font-weight:600;margin-bottom:var(--spacing-5)}.calendar-weeks{display:grid;grid-auto-rows:1fr}.calendar-titles-wrapper{display:grid;gap:var(--spacing-2)}.calendar-day{border-radius:6px;min-height:50px;display:flex;padding:var(--spacing-3);box-sizing:border-box;overflow:hidden;gap:var(--spacing-3);border:1px solid var(--md-sys-color-outline-variant, #e0e0e0);flex-direction:column}.calendar-day--holiday{background:var(--md-sys-color-error-container)}.calendar-day.has-event:focus{outline:0}md-focus-ring{border-radius:6px}.calendar-day--other{color:light-dark(var(--n-40),var(--n-70))}.calendar-day--other .calendar-day-event-title{color:inherit}.calendar-day--other .calendar-day-number{font-weight:var(--weight-regular)}.calendar-day-number{font-size:var(--md-sys-typescale-label-small-size);line-height:var(--md-sys-typescale-label-small-line-height);font-weight:var(--md-sys-typescale-label-small-weight);letter-spacing:var(--md-sys-typescale-label-small-tracking);display:flex;gap:8px}.calendar-day-event-title,.calendar-day-holiday-name{font-size:12px;color:var(--md-sys-color-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%}.calendar-day-holiday-name{color:var(--md-sys-color-on-error-container);font-weight:var(--md-sys-typescale-body-medium-weight)}.calendar-day.today{background:var(--md-sys-color-secondary-container)}.calendar-day.has-event{cursor:pointer;position:relative;border:1px solid var(--md-sys-color-primary)}.event-popup-list{display:flex;flex-direction:column;gap:var(--spacing-4)}`,O);function K(){const $=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??$,e=this.mapSpacingToken(this.spacingBottom)??$,s=this.mapSpacingToken(this.spacingLeft),n=this.mapSpacingToken(this.spacingRight);t?this.style.setProperty("--scb-calendar-spacing-block-start",t):this.style.removeProperty("--scb-calendar-spacing-block-start"),e?this.style.setProperty("--scb-calendar-spacing-block-end",e):this.style.removeProperty("--scb-calendar-spacing-block-end"),s?this.style.setProperty("--scb-calendar-spacing-inline-start",s):this.style.removeProperty("--scb-calendar-spacing-inline-start"),n?this.style.setProperty("--scb-calendar-spacing-inline-end",n):this.style.removeProperty("--scb-calendar-spacing-inline-end")}v([_({type:String})],f.prototype,"lang",void 0);v([_({type:Boolean,attribute:"disable-weekend",reflect:!0,converter:q})],f.prototype,"disableWeekend",void 0);v([_({type:Boolean,attribute:"public-holidays",converter:q})],f.prototype,"publicHolidays",void 0);v([_({type:Number,attribute:"display-year",reflect:!0})],f.prototype,"displayYear",void 0);v([_({type:Number,attribute:"display-month",reflect:!0})],f.prototype,"displayMonth",void 0);v([_({type:String,attribute:"selected-date",reflect:!0})],f.prototype,"selectedDate",void 0);v([_({attribute:!1})],f.prototype,"events",void 0);v([_({type:String,attribute:"events-json"})],f.prototype,"eventsJson",void 0);v([_({type:String,reflect:!0})],f.prototype,"spacing",void 0);v([_({type:String,attribute:"spacing-top",reflect:!0})],f.prototype,"spacingTop",void 0);v([_({type:String,attribute:"spacing-bottom",reflect:!0})],f.prototype,"spacingBottom",void 0);v([_({type:String,attribute:"spacing-left",reflect:!0})],f.prototype,"spacingLeft",void 0);v([_({type:String,attribute:"spacing-right",reflect:!0})],f.prototype,"spacingRight",void 0);f=v([B("scb-calendar")],f);
62
+ `}},O.styles=P`:host{display:block;margin-block-start:var(--scb-calendar-spacing-block-start, 0);margin-block-end:var(--scb-calendar-spacing-block-end, 0);margin-inline-start:var(--scb-calendar-spacing-inline-start, 0);margin-inline-end:var(--scb-calendar-spacing-inline-end, 0);border:1px solid var(--md-sys-color-outline-variant);padding:var(--spacing-5);border-radius:var(--md-sys-shape-corner-large);background:var(--md-sys-color-surface);font-family:var(--brand-font)}.calendar-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--spacing-5);border-bottom:1px solid #e0e0e0;padding-bottom:var(--spacing-3)}.calendar-grid{display:grid;gap:var(--spacing-2);margin-bottom:var(--spacing-2);grid-template-columns:repeat(7,1fr)}:host([disable-weekend]) .calendar-grid{grid-template-columns:repeat(5,1fr)}.calendar-grid-days{font-weight:600;margin-bottom:var(--spacing-5)}.calendar-weeks{display:grid;grid-auto-rows:1fr}.calendar-titles-wrapper{display:grid;gap:var(--spacing-2)}.calendar-day{border-radius:6px;min-height:50px;display:flex;padding:var(--spacing-3);box-sizing:border-box;overflow:hidden;gap:var(--spacing-3);border:1px solid var(--md-sys-color-outline-variant, #e0e0e0);flex-direction:column}.calendar-day--holiday{background:var(--md-sys-color-error-container)}.calendar-day.has-event:focus{outline:0}md-focus-ring{border-radius:6px}.calendar-day--other{color:light-dark(var(--n-40),var(--n-70))}.calendar-day--other .calendar-day-event-title{color:inherit}.calendar-day--other .calendar-day-number{font-weight:var(--weight-regular)}.calendar-day-number{font-size:var(--scb-typography-label-small-size, var(--md-sys-typescale-label-small-size));line-height:var(--scb-typography-label-small-line-height, var(--md-sys-typescale-label-small-line-height));font-weight:var(--scb-typography-label-small-weight, var(--md-sys-typescale-label-small-weight));letter-spacing:var(--scb-typography-label-small-tracking, var(--md-sys-typescale-label-small-tracking));display:flex;gap:8px}.calendar-day-event-title,.calendar-day-holiday-name{font-size:12px;color:var(--md-sys-color-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%}.calendar-day-holiday-name{color:var(--md-sys-color-on-error-container);font-weight:var(--scb-typography-body-medium-weight, var(--md-sys-typescale-body-medium-weight))}.calendar-day.today{background:var(--md-sys-color-secondary-container)}.calendar-day.has-event{cursor:pointer;position:relative;border:1px solid var(--md-sys-color-primary)}.event-popup-list{display:flex;flex-direction:column;gap:var(--spacing-4)}`,O);function H(){const $=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??$,e=this.mapSpacingToken(this.spacingBottom)??$,s=this.mapSpacingToken(this.spacingLeft),a=this.mapSpacingToken(this.spacingRight);t?this.style.setProperty("--scb-calendar-spacing-block-start",t):this.style.removeProperty("--scb-calendar-spacing-block-start"),e?this.style.setProperty("--scb-calendar-spacing-block-end",e):this.style.removeProperty("--scb-calendar-spacing-block-end"),s?this.style.setProperty("--scb-calendar-spacing-inline-start",s):this.style.removeProperty("--scb-calendar-spacing-inline-start"),a?this.style.setProperty("--scb-calendar-spacing-inline-end",a):this.style.removeProperty("--scb-calendar-spacing-inline-end")}v([_({type:String})],f.prototype,"lang",void 0);v([_({type:Boolean,attribute:"disable-weekend",reflect:!0,converter:K})],f.prototype,"disableWeekend",void 0);v([_({type:Boolean,attribute:"public-holidays",converter:K})],f.prototype,"publicHolidays",void 0);v([_({type:Number,attribute:"display-year",reflect:!0})],f.prototype,"displayYear",void 0);v([_({type:Number,attribute:"display-month",reflect:!0})],f.prototype,"displayMonth",void 0);v([_({type:String,attribute:"selected-date",reflect:!0})],f.prototype,"selectedDate",void 0);v([_({attribute:!1})],f.prototype,"events",void 0);v([_({type:String,attribute:"events-json"})],f.prototype,"eventsJson",void 0);v([_({type:String,reflect:!0})],f.prototype,"spacing",void 0);v([_({type:String,attribute:"spacing-top",reflect:!0})],f.prototype,"spacingTop",void 0);v([_({type:String,attribute:"spacing-bottom",reflect:!0})],f.prototype,"spacingBottom",void 0);v([_({type:String,attribute:"spacing-left",reflect:!0})],f.prototype,"spacingLeft",void 0);v([_({type:String,attribute:"spacing-right",reflect:!0})],f.prototype,"spacingRight",void 0);f=v([B("scb-calendar")],f);