scb-wc 0.1.78 → 0.1.80

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 (180) hide show
  1. package/README.md +41 -22
  2. package/all.js +0 -2
  3. package/index.js +88 -90
  4. package/mvc/components/all.js +0 -2
  5. package/mvc/components/scb-accordion/scb-accordion-item.js +3 -173
  6. package/mvc/components/scb-accordion/scb-accordion.js +4 -33
  7. package/mvc/components/scb-app-bar/scb-app-bar.js +2 -110
  8. package/mvc/components/scb-avatar/scb-avatar.js +2 -94
  9. package/mvc/components/scb-badge/scb-badge.js +2 -72
  10. package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +2 -12
  11. package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +4 -91
  12. package/mvc/components/scb-button/scb-button.js +47 -309
  13. package/mvc/components/scb-calendar/scb-calendar-event.js +2 -6
  14. package/mvc/components/scb-calendar/scb-calendar.js +6 -120
  15. package/mvc/components/scb-calendar-card/scb-calendar-card.js +21 -350
  16. package/mvc/components/scb-card/scb-card.js +54 -819
  17. package/mvc/components/scb-checkbox/scb-checkbox-group.js +3 -31
  18. package/mvc/components/scb-checkbox/scb-checkbox.js +5 -127
  19. package/mvc/components/scb-chip/scb-chip.js +2 -76
  20. package/mvc/components/scb-collapse/scb-collapse.js +2 -44
  21. package/mvc/components/scb-cookies-consent/scb-cookies-consent.js +7 -73
  22. package/mvc/components/scb-dialog/scb-dialog.js +2 -213
  23. package/mvc/components/scb-divider/scb-divider.js +1 -69
  24. package/mvc/components/scb-drawer/scb-drawer.js +6 -102
  25. package/mvc/components/scb-drop-zone/scb-drop-zone.js +2 -410
  26. package/mvc/components/scb-dropdown/scb-dropdown.js +17 -222
  27. package/mvc/components/scb-fab/scb-fab.js +7 -95
  28. package/mvc/components/scb-fact-card/scb-fact-card-content.js +2 -69
  29. package/mvc/components/scb-fact-card/scb-fact-card.js +2 -214
  30. package/mvc/components/scb-footer/scb-footer-section.js +1 -3
  31. package/mvc/components/scb-footer/scb-footer.js +3 -172
  32. package/mvc/components/scb-gallery-grid/scb-gallery-grid.js +2 -112
  33. package/mvc/components/scb-grid/scb-grid-item.js +1 -32
  34. package/mvc/components/scb-grid/scb-grid.js +1 -99
  35. package/mvc/components/scb-grid/scb-stack.js +1 -33
  36. package/mvc/components/scb-header/scb-header-menu-item.js +1 -5
  37. package/mvc/components/scb-header/scb-header-tab.js +1 -5
  38. package/mvc/components/scb-header/scb-header.js +75 -888
  39. package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +43 -168
  40. package/mvc/components/scb-icon-button/scb-icon-button.js +59 -171
  41. package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +17 -218
  42. package/mvc/components/scb-link/scb-link.js +4 -55
  43. package/mvc/components/scb-list/scb-list-item.js +23 -126
  44. package/mvc/components/scb-list/scb-list.js +5 -26
  45. package/mvc/components/scb-menu/scb-menu-item.js +16 -190
  46. package/mvc/components/scb-menu/scb-menu-section.js +4 -36
  47. package/mvc/components/scb-menu/scb-menu.js +5 -69
  48. package/mvc/components/scb-menu/scb-sub-menu.js +2 -7
  49. package/mvc/components/scb-nav/scb-nav-item.js +1 -28
  50. package/mvc/components/scb-nav/scb-nav.js +5 -98
  51. package/mvc/components/scb-notification-card/scb-notification-card.js +7 -364
  52. package/mvc/components/scb-options-menu/scb-options-menu-item.js +3 -50
  53. package/mvc/components/scb-options-menu/scb-options-menu.js +2 -82
  54. package/mvc/components/scb-options-menu/scb-options-sub-menu.js +2 -31
  55. package/mvc/components/scb-overlay/scb-overlay.js +3 -43
  56. package/mvc/components/scb-pagination/scb-pagination.js +19 -221
  57. package/mvc/components/scb-progress-indicator/scb-progress-indicator.js +2 -67
  58. package/mvc/components/scb-progress-stepper/scb-progress-step.js +4 -121
  59. package/mvc/components/scb-progress-stepper/scb-progress-stepper.js +2 -56
  60. package/mvc/components/scb-radio-button/scb-radio-button.js +5 -116
  61. package/mvc/components/scb-radio-button/scb-radio-group.js +2 -32
  62. package/mvc/components/scb-scrollspy/scb-scrollspy.js +2 -61
  63. package/mvc/components/scb-search/scb-search.js +5 -249
  64. package/mvc/components/scb-segmented-button/scb-segmented-button.js +1 -32
  65. package/mvc/components/scb-segmented-button/scb-segmented-item.js +2 -70
  66. package/mvc/components/scb-select/scb-select-option.js +2 -54
  67. package/mvc/components/scb-select/scb-select.js +4 -244
  68. package/mvc/components/scb-skeleton/scb-skeleton.js +2 -35
  69. package/mvc/components/scb-slider/scb-slider.js +5 -9
  70. package/mvc/components/scb-snackbar/scb-snackbar.js +9 -84
  71. package/mvc/components/scb-status-pill/scb-status-pill.js +2 -43
  72. package/mvc/components/scb-stepper/scb-step.js +8 -186
  73. package/mvc/components/scb-stepper/scb-stepper.js +2 -130
  74. package/mvc/components/scb-switch/scb-switch.js +4 -49
  75. package/mvc/components/scb-table/scb-table.js +2 -48
  76. package/mvc/components/scb-table-advanced/scb-table-advanced.js +2 -53
  77. package/mvc/components/scb-tabs/scb-primary-tab.js +2 -7
  78. package/mvc/components/scb-tabs/scb-secondary-tab.js +2 -7
  79. package/mvc/components/scb-tabs/scb-tabs.js +4 -31
  80. package/mvc/components/scb-textfield/scb-textfield.js +142 -388
  81. package/mvc/components/scb-toc/scb-toc-item.js +3 -251
  82. package/mvc/components/scb-toc/scb-toc.js +2 -16
  83. package/mvc/components/scb-tooltip/scb-tooltip.js +8 -155
  84. package/mvc/components/scb-viz/scb-viz.js +4 -619
  85. package/mvc/scb-wc-core.css +1 -1
  86. package/mvc/scb-wc-selfhost.css +1 -1
  87. package/mvc/scb-wc.css +1 -1
  88. package/mvc/vendor/assist-chip.js +3 -3
  89. package/mvc/vendor/chip-set.js +1 -1
  90. package/mvc/vendor/chip.js +2 -2
  91. package/mvc/vendor/elevation.js +2 -2
  92. package/mvc/vendor/filter-chip.js +1 -1
  93. package/mvc/vendor/focusable.js +1 -1
  94. package/mvc/vendor/form-associated.js +1 -1
  95. package/mvc/vendor/icon.js +2 -2
  96. package/mvc/vendor/lazy-focus-ring.js +2 -0
  97. package/mvc/vendor/lazy-ripple.js +2 -0
  98. package/mvc/vendor/md-focus-ring.js +2 -2
  99. package/mvc/vendor/ripple.js +2 -2
  100. package/mvc/vendor/scb-card-variants.internal.js +284 -0
  101. package/mvc/vendor/scb-chevron.js +10 -0
  102. package/mvc/vendor/scb-header-drawer.internal.js +71 -0
  103. package/mvc/vendor/shared-styles.js +1 -1
  104. package/mvc/vendor/tab-styles.js +3 -3
  105. package/mvc/vendor/validator.js +1 -1
  106. package/mvc/vendor/vendor.js +3 -4
  107. package/package.json +2 -2
  108. package/scb-accordion/scb-accordion-item.js +33 -32
  109. package/scb-app-bar/scb-app-bar.js +1 -1
  110. package/scb-button/scb-button.js +287 -259
  111. package/scb-calendar/scb-calendar.js +49 -49
  112. package/scb-calendar-card/scb-calendar-card.js +105 -59
  113. package/scb-card/scb-card-variants.internal.js +230 -0
  114. package/scb-card/scb-card.js +387 -528
  115. package/scb-checkbox/scb-checkbox.js +0 -1
  116. package/scb-chevron/scb-chevron.js +0 -1
  117. package/scb-components/scb-button/scb-button.d.ts +14 -2
  118. package/scb-components/scb-calendar/scb-calendar.d.ts +1 -0
  119. package/scb-components/scb-calendar-card/scb-calendar-card.d.ts +16 -4
  120. package/scb-components/scb-card/scb-card-variants.internal.d.ts +15 -0
  121. package/scb-components/scb-card/scb-card.d.ts +26 -9
  122. package/scb-components/scb-cookies-consent/scb-cookies-consent.d.ts +3 -0
  123. package/scb-components/scb-header/scb-header-drawer.internal.d.ts +31 -0
  124. package/scb-components/scb-header/scb-header.d.ts +1 -2
  125. package/scb-components/scb-horizontal-scroller/scb-horizontal-scroller.d.ts +6 -1
  126. package/scb-components/scb-icon-button/scb-icon-button.d.ts +28 -29
  127. package/scb-components/scb-keyfigure-card/scb-keyfigure-card.d.ts +13 -4
  128. package/scb-components/scb-list/scb-list-item.d.ts +20 -2
  129. package/scb-components/scb-list/scb-list.d.ts +1 -2
  130. package/scb-components/scb-nav/scb-nav.d.ts +2 -0
  131. package/scb-components/scb-segmented-button/scb-segmented-item.d.ts +1 -0
  132. package/scb-components/scb-select/scb-select-option.d.ts +2 -0
  133. package/scb-components/scb-toc/scb-toc-item.d.ts +1 -0
  134. package/scb-components/scb-tooltip/scb-tooltip.d.ts +2 -0
  135. package/scb-cookies-consent/scb-cookies-consent.js +43 -31
  136. package/scb-datepicker/scb-datepicker.js +27 -25
  137. package/scb-dialog/scb-dialog.js +1 -1
  138. package/scb-dropdown/scb-dropdown.js +29 -28
  139. package/scb-header/scb-header-drawer.internal.js +78 -0
  140. package/scb-header/scb-header.js +41 -89
  141. package/scb-horizontal-scroller/scb-horizontal-scroller.js +181 -88
  142. package/scb-icon-button/scb-icon-button.js +293 -205
  143. package/scb-keyfigure-card/scb-keyfigure-card.js +96 -43
  144. package/scb-list/scb-list-item.js +117 -52
  145. package/scb-list/scb-list.js +9 -9
  146. package/scb-nav/scb-nav.js +26 -23
  147. package/scb-notification-card/scb-notification-card.js +0 -2
  148. package/scb-options-menu/scb-options-menu-item.js +20 -20
  149. package/scb-pagination/scb-pagination.js +0 -1
  150. package/scb-progress-stepper/scb-progress-step.js +19 -17
  151. package/scb-radio-button/scb-radio-button.js +0 -1
  152. package/scb-search/scb-search.js +29 -28
  153. package/scb-segmented-button/scb-segmented-item.js +22 -19
  154. package/scb-select/scb-select-option.js +20 -14
  155. package/scb-select/scb-select.js +26 -26
  156. package/scb-stepper/scb-step.js +34 -31
  157. package/scb-textfield/scb-textfield.js +39 -39
  158. package/scb-toc/scb-toc-item.js +26 -26
  159. package/scb-tooltip/scb-tooltip.js +5 -4
  160. package/scb-viz/scb-viz.js +1 -1
  161. package/scb-wc-core.css +1 -1
  162. package/scb-wc-public-entry/index.d.ts +97 -0
  163. package/scb-wc-selfhost.css +1 -1
  164. package/scb-wc.bundle.js +1873 -1476
  165. package/scb-wc.css +1 -1
  166. package/scb-wc.d.ts +194 -198
  167. package/mvc/components/scb-chevron/scb-chevron.js +0 -41
  168. package/mvc/components/scb-datepicker/scb-datepicker.js +0 -296
  169. package/mvc/vendor/element-internals.js +0 -1
  170. package/mvc/vendor/filled-icon-button.js +0 -2
  171. package/mvc/vendor/filled-tonal-icon-button.js +0 -2
  172. package/mvc/vendor/form-label-activation.js +0 -1
  173. package/mvc/vendor/form-submitter.js +0 -1
  174. package/mvc/vendor/icon-button.js +0 -2
  175. package/mvc/vendor/list.js +0 -8
  176. package/mvc/vendor/outlined-icon-button.js +0 -2
  177. package/mvc/vendor/shared-styles2.js +0 -30
  178. package/scb-components/index.d.ts +0 -99
  179. package/scb-components/scb-chevron/scb-chevron.d.ts +0 -11
  180. package/scb-components/scb-datepicker/scb-datepicker.d.ts +0 -39
@@ -0,0 +1,284 @@
1
+ import{g as a,v as s}from"./vendor.js";import"./vendor-lit.js";(function(){try{var e=typeof globalThis<"u"?globalThis:window;if(!e.__scb_ce_guard_installed__){e.__scb_ce_guard_installed__=!0;var n=customElements.define.bind(customElements);customElements.define=function(t,c,l){try{customElements.get(t)||n(t,c,l)}catch(d){var r=String(d||"");if(r.indexOf("already been used")===-1&&r.indexOf("NotSupportedError")===-1)throw d}}}}catch{}})();var f=`
2
+ .scb-card.no-hover,
3
+ .scb-card.no-hover:hover,
4
+ .scb-card.no-hover:active {
5
+ box-shadow: none !important;
6
+ cursor: default !important;
7
+ }
8
+
9
+ .scb-card.no-hover md-ripple {
10
+ display: none !important;
11
+ }
12
+
13
+ :host([type='social']) .scb-card {
14
+ overflow: visible;
15
+ }
16
+
17
+ .social-metrics a.comments,
18
+ .social-metrics a.author {
19
+ color: var(--md-sys-color-primary, #1F44FF);
20
+ text-decoration: none;
21
+ border-radius: 4px;
22
+ cursor: pointer;
23
+ outline: none;
24
+ }
25
+
26
+ .social-metrics a.comments:hover,
27
+ .social-metrics a.comments:focus,
28
+ .social-metrics a.author:hover,
29
+ .social-metrics a.author:focus {
30
+ color: var(--md-sys-color-primary, #1F44FF);
31
+ text-decoration: var(--scb-link-decoration, underline);
32
+ text-underline-offset: var(--scb-link-underline-offset, .22em);
33
+ text-decoration-thickness: var(--scb-link-underline-thickness, 1px);
34
+ }
35
+
36
+ .container-content {
37
+ display: flex;
38
+ flex-direction: column;
39
+ gap: var(--scb-card-container-gap, var(--scb-card-size-container-gap));
40
+ padding-block-start: var(--scb-card-container-padding-block-start, var(--scb-card-content-padding-block-start, var(--scb-card-size-content-padding-block)));
41
+ padding-block-end: var(--scb-card-container-padding-block-end, var(--scb-card-content-padding-block-end, var(--scb-card-size-content-padding-block)));
42
+ padding-inline-start: var(--scb-card-container-padding-inline-start, var(--scb-card-content-padding-inline-start, var(--scb-card-size-content-padding-inline)));
43
+ padding-inline-end: var(--scb-card-container-padding-inline-end, var(--scb-card-content-padding-inline-end, var(--scb-card-size-content-padding-inline)));
44
+ min-inline-size: 0;
45
+ }
46
+
47
+ .container-content.has-header {
48
+ gap: var(--scb-card-container-gap-with-header, var(--scb-card-size-container-gap-with-header));
49
+ }
50
+
51
+ .container-content > .chip-slot {
52
+ margin-block-end: 0;
53
+ }
54
+
55
+ .social-metrics {
56
+ display: flex;
57
+ margin-top: var(--spacing-4, 12px);
58
+ gap: var(--scb-card-size-social-gap);
59
+ flex-wrap: wrap;
60
+ align-items: center;
61
+ }
62
+
63
+ .social-metrics .card-icon {
64
+ width: var(--scb-card-size-social-icon);
65
+ height: var(--scb-card-size-social-icon);
66
+ font-size: var(--scb-card-size-social-icon-font-size, var(--scb-card-size-social-icon));
67
+ vertical-align: middle;
68
+ }
69
+
70
+ .social-text{
71
+ font-size: var(--scb-card-size-social-text);
72
+ }
73
+
74
+ .comments,
75
+ .likes {
76
+ display: flex;
77
+ align-items: center;
78
+ gap: var(--spacing-2, 4px);
79
+ }
80
+
81
+ .social-action {
82
+ display: inline-flex;
83
+ align-items: center;
84
+ gap: var(--spacing-1, 2px);
85
+ }
86
+
87
+ .scb-card .content.list {
88
+ margin-top: 0;
89
+ }
90
+
91
+ .scb-card .content.list.has-top-content {
92
+ margin-top: var(--scb-card-size-list-offset);
93
+ }
94
+
95
+ .scb-card .content.actions ::slotted(*) {
96
+ margin-top: var(--scb-card-size-actions-offset);
97
+ display: flex;
98
+ flex-wrap: wrap;
99
+ gap: var(--spacing-3, 8px);
100
+ }
101
+
102
+ .scb-card .content.links {
103
+ margin-top: var(--scb-card-size-links-offset);
104
+ font-size: var(--scb-card-size-link-font-size);
105
+ line-height: var(--scb-card-size-link-line-height);
106
+ letter-spacing: var(--scb-card-size-link-letter-spacing);
107
+ }
108
+
109
+ .scb-card .content.links ::slotted(a),
110
+ .scb-card .content.links ::slotted(scb-link) {
111
+ display: block;
112
+ margin-block-start: var(--scb-card-size-links-item-offset);
113
+ }
114
+
115
+ .scb-card .content.links ::slotted(a) {
116
+ font-size: var(--scb-card-size-link-font-size);
117
+ line-height: var(--scb-card-size-link-line-height);
118
+ letter-spacing: var(--scb-card-size-link-letter-spacing);
119
+ }
120
+
121
+ .scb-card .content.links ::slotted(scb-link) {
122
+ --scb-link-font-size: var(--scb-card-size-link-font-size);
123
+ --scb-link-line-height: var(--scb-card-size-link-line-height);
124
+ --scb-link-letter-spacing: var(--scb-card-size-link-letter-spacing);
125
+ }
126
+
127
+ .scb-card:not(.filled):not(.filled-alternative) .content.list ::slotted(scb-list) {
128
+ --scb-list-bg: var(--md-sys-color-surface, #FFFFFF);
129
+ }
130
+
131
+ .scb-card.filled .content.list ::slotted(scb-list) {
132
+ --scb-list-bg: var(--md-sys-color-surface-dim, #F9F8EF);
133
+ }
134
+
135
+ .scb-card.filled-alternative .content.list ::slotted(scb-list) {
136
+ --scb-list-bg: var(--md-sys-color-surface-container, #EEF3FF);
137
+ }
138
+ `;function T(e){if(!(e instanceof ShadowRoot)||e.querySelector("style[data-scb-card-variants]"))return;const n=document.createElement("style");n.dataset.scbCardVariants="",n.textContent=f,e.appendChild(n)}function m(e){return String(e??"").replace(/ /g," ").replace(/-/g,"‑")}function h(e){const n=document.createElement("textarea");return n.innerHTML=e,n.value}function k(e){let n=String(e??"");for(let t=0;t<5;t+=1){const c=h(n);if(c===n)break;n=c}return n.replace(/<\s*(br|\/p|\/div|\/li|\/h[1-6]|\/tr)\b[^>]*>/gi," ").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim()}function o(e,n){const t=e.renderRoot?.querySelector(".scb-card");t&&(n?t.classList.add("no-hover"):t.classList.remove("no-hover"))}function p(e,n,t){e.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0,detail:t})),e.dispatchEvent(new CustomEvent(n.replace("-",""),{bubbles:!0,composed:!0,detail:t}))}function g(e,n,t){e.dispatchEvent(new CustomEvent(`social-${n}`,{bubbles:!0,composed:!0,detail:{action:n,originalEvent:t}}))}function y(e,n,t){switch(n){case"list":return s`
139
+ <div class="full-content">
140
+ ${t.hasListTopContent?t.topContentTpl(!1):a}
141
+ <div class="content list ${t.hasListTopContent?"has-top-content":""}">
142
+ <slot name="list"></slot><slot></slot>
143
+ </div>
144
+ ${t.footerTpl()}
145
+ </div>
146
+ `;case"social":return $(e,t);case"link":return s`
147
+ <div class="full-content">
148
+ ${t.topContentTpl(!1)}
149
+ <div class="content links">
150
+ <slot name="links"></slot><slot></slot>
151
+ </div>
152
+ ${t.footerTpl()}
153
+ </div>
154
+ `;case"action":return s`
155
+ <div class="full-content">
156
+ ${t.topContentTpl(!1)}
157
+ <div class="content actions">
158
+ <slot name="actions"></slot><slot></slot>
159
+ </div>
160
+ ${t.footerTpl()}
161
+ </div>
162
+ `;case"container":return s`
163
+ <div class="container-content ${t.hasHeading||t.hasSubtitle?"has-header":""}">
164
+ ${t.contentChipTpl()}
165
+ ${t.hasHeading||t.hasSubtitle?s`
166
+ <div class="top-content">
167
+ ${t.headerTpl(!1)}
168
+ ${t.subtitleTpl()}
169
+ </div>
170
+ `:a}
171
+ <slot></slot>
172
+ ${t.footerTpl()}
173
+ </div>
174
+ `;default:return s`
175
+ <div class="full-content">
176
+ ${t.topContentTpl(!!t.effectiveHref)}
177
+ ${t.footerTpl()}
178
+ </div>
179
+ `}}function $(e,n){const t=e.commentsHref,c=k(e.supportingText),l=i=>{i.stopPropagation()},r=e.commentsText?`${e.commentsText}: `:"",d=e.likesText?`${e.likesText}: `:"",b=i=>u=>{u.stopPropagation(),g(e,i,u)},v=e.likesDisabled?a:s`
180
+ <span
181
+ class="likes"
182
+ @mouseenter=${()=>o(e,!0)}
183
+ @mouseleave=${()=>o(e,!1)}
184
+ >
185
+ ${e.likesInteractive?s`
186
+ <scb-icon-button
187
+ id="like-button"
188
+ variant="standard"
189
+ icon="thumb_up"
190
+ ?icon-filled=${e.hasLiked}
191
+ aria-label="${e.likesText||"Gilla"}"
192
+ @click=${i=>{i.stopPropagation(),e.hasLiked=!e.hasLiked,p(e,"like-click",{hasLiked:e.hasLiked,likes:e.likes??0})}}
193
+ @keydown=${i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),i.stopPropagation(),e.hasLiked=!e.hasLiked,p(e,"like-click",{hasLiked:e.hasLiked,likes:e.likes??0}))}}
194
+ @hover=${i=>{i.preventDefault(),i.stopPropagation(),p(e,"like-hover",{hasLiked:e.hasLiked,likes:e.likes??0})}}
195
+ ></scb-icon-button>
196
+ `:s`<span class="card-icon" aria-hidden="true">thumb_up</span>`}
197
+ <span class="social-text">${d}${e.likes??0}</span>
198
+ </span>
199
+ `;return s`
200
+ <div class="full-content">
201
+ ${n.topContentTpl(!!n.effectiveHref,!0,!0,c)}
202
+ <div class="content">
203
+ <div class="social-metrics">
204
+ ${e.author?s`
205
+ <a
206
+ class="author social-text"
207
+ href="${e.authorHref||"#"}"
208
+ tabindex="0"
209
+ @click=${l}
210
+ @mouseenter=${()=>o(e,!0)}
211
+ @mouseleave=${()=>o(e,!1)}
212
+ >${e.authorText}</a
213
+ >
214
+ `:a}
215
+ ${e.commentsDisabled?a:s`
216
+ <span
217
+ class="comments"
218
+ @mouseenter=${()=>o(e,!0)}
219
+ @mouseleave=${()=>o(e,!1)}
220
+ >
221
+ ${t!==""?s`
222
+ <scb-icon-button
223
+ href="${t}"
224
+ tabindex="0"
225
+ @click=${l}
226
+ variant="standard"
227
+ icon="comment"
228
+ aria-label="Gå till kommentarer"
229
+ ></scb-icon-button>
230
+ `:s`
231
+ <span class="card-icon" aria-hidden="true">comment</span>
232
+ `}
233
+ <span class="social-text">${r}${e.comments??0}</span>
234
+ </span>
235
+ `}
236
+ ${e.likesHoverContent?s`
237
+ <scb-tooltip
238
+ variant="rich"
239
+ for="like-button"
240
+ supporting-text=${m(e.likesHoverContent)}
241
+ trigger="hover"
242
+ position="right"
243
+ >
244
+ ${v}
245
+ </scb-tooltip>
246
+ `:v}
247
+ ${e.replyEnabled?s`
248
+ <span class="social-action">
249
+ <scb-icon-button
250
+ variant="standard"
251
+ icon="reply"
252
+ aria-label="Svara"
253
+ @click=${b("reply")}
254
+ ></scb-icon-button>
255
+ <span class="social-text">Svara</span>
256
+ </span>
257
+ `:a}
258
+ ${e.editEnabled?s`
259
+ <span class="social-action">
260
+ <scb-icon-button
261
+ variant="standard"
262
+ icon="edit"
263
+ aria-label="Redigera"
264
+ @click=${b("edit")}
265
+ ></scb-icon-button>
266
+ <span class="social-text">Redigera</span>
267
+ </span>
268
+ `:a}
269
+ ${e.deleteEnabled?s`
270
+ <span class="social-action">
271
+ <scb-icon-button
272
+ variant="standard"
273
+ icon="delete"
274
+ aria-label="Ta bort"
275
+ @click=${b("delete")}
276
+ ></scb-icon-button>
277
+ <span class="social-text">Ta bort</span>
278
+ </span>
279
+ `:a}
280
+ </div>
281
+ </div>
282
+ ${n.footerTpl()}
283
+ </div>
284
+ `}export{T as ensureScbCardVariantStyles,y as renderScbCardVariant};
@@ -0,0 +1,10 @@
1
+ import{h,m as v,p as d,v as p,y as f}from"./vendor.js";import"./vendor-lit.js";import{t as c}from"./decorate.js";(function(){try{var e=typeof globalThis<"u"?globalThis:window;if(!e.__scb_ce_guard_installed__){e.__scb_ce_guard_installed__=!0;var r=customElements.define.bind(customElements);customElements.define=function(o,a,l){try{customElements.get(o)||r(o,a,l)}catch(i){var s=String(i||"");if(s.indexOf("already been used")===-1&&s.indexOf("NotSupportedError")===-1)throw i}}}}catch{}})();var n,t=(n=class extends h{constructor(...r){super(...r),this.open=!1}render(){return p`
2
+ <svg
3
+ class="chevron-icon"
4
+ viewBox="0 0 24 24"
5
+ aria-hidden="true"
6
+ focusable="false"
7
+ >
8
+ <polyline class="chevron-shape" points="7 10 12 15 17 10"></polyline>
9
+ </svg>
10
+ `}},n.styles=f`:host{display:block;width:var(--scb-chevron-size, 24px);height:var(--scb-chevron-size, 24px);color:inherit}.chevron-icon{display:block;width:var(--scb-chevron-size, 24px);height:var(--scb-chevron-size, 24px);overflow:visible;transform-origin:50% 50%;transition:transform 100ms linear}:host([open]) .chevron-icon{transform:rotate(180deg)}.chevron-icon .chevron-shape{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:2;shape-rendering:geometricPrecision;vector-effect:non-scaling-stroke}`,n);c([d({type:Boolean,reflect:!0})],t.prototype,"open",void 0);t=c([v("scb-chevron")],t);
@@ -0,0 +1,71 @@
1
+ import{g as s,v as r}from"./vendor.js";import"./vendor-lit.js";(function(){try{var e=typeof globalThis<"u"?globalThis:window;if(!e.__scb_ce_guard_installed__){e.__scb_ce_guard_installed__=!0;var a=customElements.define.bind(customElements);customElements.define=function(l,c,n){try{customElements.get(l)||a(l,c,n)}catch(u){var t=String(u||"");if(t.indexOf("already been used")===-1&&t.indexOf("NotSupportedError")===-1)throw u}}}}catch{}})();var m=e=>!e||e.length===0?r``:r`${e.map(b)}`,b=e=>{const a=Array.isArray(e.children)&&e.children.length>0,l=(e.href??"").trim(),c=(e.icon??"").trim(),n=a?r`
2
+ <scb-sub-menu label=${e.label}>
3
+ ${e.children.map(b)}
4
+ </scb-sub-menu>
5
+ `:s;return c&&l?r`
6
+ <scb-menu-item label=${e.label} ?selected=${!1} leading-icon=${c} item-href=${l}>
7
+ ${n}
8
+ </scb-menu-item>
9
+ `:c?r`
10
+ <scb-menu-item label=${e.label} ?selected=${!1} leading-icon=${c}>
11
+ ${n}
12
+ </scb-menu-item>
13
+ `:l?r`
14
+ <scb-menu-item label=${e.label} ?selected=${!1} item-href=${l}>
15
+ ${n}
16
+ </scb-menu-item>
17
+ `:r`<scb-menu-item label=${e.label} ?selected=${!1}>${n}</scb-menu-item>`},$=e=>r`
18
+ <scb-drawer
19
+ id=${e.drawerId}
20
+ floating
21
+ right
22
+ ?overlay=${e.drawerOverlay}
23
+ ?lock-scroll=${e.drawerOverlay}
24
+ ?modal=${e.drawerOverlay}
25
+ style="--scb-drawer-padding: 0px;"
26
+ @scb-drawer-opened=${e.onDrawerOpened}
27
+ @scb-drawer-closed=${e.onDrawerClosed}
28
+ @scb-menu-select=${e.onMenuSelect}
29
+ >
30
+ ${e.hasDrawerCloseSlot?r`
31
+ <div class="drawer-close">
32
+ <slot
33
+ name="drawer-close"
34
+ @slotchange=${e.onDrawerSlotChange}
35
+ ></slot>
36
+ </div>
37
+ `:s}
38
+
39
+ <slot name="drawer-menu" @slotchange=${e.onDrawerSlotChange}></slot>
40
+
41
+ ${e.hasDrawerMenuSlot?s:r`
42
+ <scb-menu
43
+ .label=${e.menuLabel??""}
44
+ .subLabel=${e.menuSubLabel??""}
45
+ >
46
+ <scb-search
47
+ .size=${e.size}
48
+ .supportingText=${e.menuSearchPlaceholder??""}
49
+ ></scb-search>
50
+
51
+ ${e.menuSectionLabel?r`
52
+ <scb-menu-section
53
+ .label=${e.menuSectionLabel}
54
+ ></scb-menu-section>
55
+ `:s}
56
+
57
+ ${m(e.menu)}
58
+
59
+ ${e.includeUtilityInMenu&&(e.utils?.length??0)>0?r`
60
+ <scb-menu-section label=''></scb-menu-section>
61
+ ${e.utils.map(a=>r`
62
+ <scb-menu-item
63
+ label=${a.label}
64
+ item-href=${a.href}
65
+ ></scb-menu-item>
66
+ `)}
67
+ `:s}
68
+ </scb-menu>
69
+ `}
70
+ </scb-drawer>
71
+ `;export{$ as renderHeaderDrawer};
@@ -1,3 +1,3 @@
1
- import{b as t}from"./vendor.js";import"./vendor-lit.js";(function(){try{var a=typeof globalThis<"u"?globalThis:window;if(!a.__scb_ce_guard_installed__){a.__scb_ce_guard_installed__=!0;var i=customElements.define.bind(customElements);customElements.define=function(e,n,l){try{customElements.get(e)||i(e,n,l)}catch(r){var o=String(r||"");if(o.indexOf("already been used")===-1&&o.indexOf("NotSupportedError")===-1)throw r}}}}catch{}})();var c=t`.elevated{--md-elevation-level: var(--_elevated-container-elevation);--md-elevation-shadow-color: var(--_elevated-container-shadow-color)}.elevated::before{background:var(--_elevated-container-color)}.elevated:hover{--md-elevation-level: var(--_elevated-hover-container-elevation)}.elevated:focus-within{--md-elevation-level: var(--_elevated-focus-container-elevation)}.elevated:active{--md-elevation-level: var(--_elevated-pressed-container-elevation)}.elevated.disabled{--md-elevation-level: var(--_elevated-disabled-container-elevation)}.elevated.disabled::before{background:var(--_elevated-disabled-container-color);opacity:var(--_elevated-disabled-container-opacity)}@media(forced-colors: active){.elevated md-elevation{border:1px solid CanvasText}.elevated.disabled md-elevation{border-color:GrayText}}
1
+ import{y as t}from"./vendor.js";import"./vendor-lit.js";(function(){try{var a=typeof globalThis<"u"?globalThis:window;if(!a.__scb_ce_guard_installed__){a.__scb_ce_guard_installed__=!0;var i=customElements.define.bind(customElements);customElements.define=function(e,n,l){try{customElements.get(e)||i(e,n,l)}catch(r){var o=String(r||"");if(o.indexOf("already been used")===-1&&o.indexOf("NotSupportedError")===-1)throw r}}}}catch{}})();var c=t`.elevated{--md-elevation-level: var(--_elevated-container-elevation);--md-elevation-shadow-color: var(--_elevated-container-shadow-color)}.elevated::before{background:var(--_elevated-container-color)}.elevated:hover{--md-elevation-level: var(--_elevated-hover-container-elevation)}.elevated:focus-within{--md-elevation-level: var(--_elevated-focus-container-elevation)}.elevated:active{--md-elevation-level: var(--_elevated-pressed-container-elevation)}.elevated.disabled{--md-elevation-level: var(--_elevated-disabled-container-elevation)}.elevated.disabled::before{background:var(--_elevated-disabled-container-color);opacity:var(--_elevated-disabled-container-opacity)}@media(forced-colors: active){.elevated md-elevation{border:1px solid CanvasText}.elevated.disabled md-elevation{border-color:GrayText}}
2
2
  `,v=t`:host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);display:inline-flex;height:var(--_container-height);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}:host([disabled]){pointer-events:none}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}.container{border-radius:inherit;box-sizing:border-box;display:flex;height:100%;position:relative;width:100%}.container::before{border-radius:inherit;content:"";inset:0;pointer-events:none;position:absolute}.container:not(.disabled){cursor:pointer}.container.disabled{pointer-events:none}.cell{display:flex}.action{align-items:baseline;appearance:none;background:none;border:none;border-radius:inherit;display:flex;outline:none;padding:0;position:relative;text-decoration:none}.primary.action{padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space)}.has-icon .primary.action{padding-inline-start:var(--_with-leading-icon-leading-space)}.touch{height:48px;inset:50% 0 0;position:absolute;transform:translateY(-50%);width:100%}:host([touch-target=none]) .touch{display:none}.outline{border:var(--_outline-width) solid var(--_outline-color);border-radius:inherit;inset:0;pointer-events:none;position:absolute}:where(:focus) .outline{border-color:var(--_focus-outline-color)}:where(.disabled) .outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}md-ripple{border-radius:inherit}.label,.icon,.touch{z-index:1}.label{align-items:center;color:var(--_label-text-color);display:flex;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);height:100%;text-overflow:ellipsis;user-select:none;white-space:nowrap}:where(:hover) .label{color:var(--_hover-label-text-color)}:where(:focus) .label{color:var(--_focus-label-text-color)}:where(:active) .label{color:var(--_pressed-label-text-color)}:where(.disabled) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}.icon{align-self:center;display:flex;fill:currentColor;position:relative}.icon ::slotted(:first-child){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size)}.leading.icon{color:var(--_leading-icon-color)}.leading.icon ::slotted(*),.leading.icon svg{margin-inline-end:var(--_icon-label-space)}:where(:hover) .leading.icon{color:var(--_hover-leading-icon-color)}:where(:focus) .leading.icon{color:var(--_focus-leading-icon-color)}:where(:active) .leading.icon{color:var(--_pressed-leading-icon-color)}:where(.disabled) .leading.icon{color:var(--_disabled-leading-icon-color);opacity:var(--_disabled-leading-icon-opacity)}@media(forced-colors: active){:where(.disabled) :is(.label,.outline,.leading.icon){color:GrayText;opacity:1}}a,button{text-transform:inherit}a,button:not(:disabled){cursor:inherit}
3
3
  `;export{c as n,v as t};
@@ -1,4 +1,4 @@
1
- import{_ as m,b as y,c as _,d as g,h as s,l as i,m as b,p as x,u as w,v as p,y as f}from"./vendor.js";import"./vendor-lit.js";import"./md-focus-ring.js";import{n as I}from"./ripple.js";import"./elevation.js";import{t as C}from"./focusable.js";(function(){try{var t=typeof globalThis<"u"?globalThis:window;if(!t.__scb_ce_guard_installed__){t.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(o,c,l){try{customElements.get(o)||e(o,c,l)}catch(n){var d=String(n||"");if(d.indexOf("already been used")===-1&&d.indexOf("NotSupportedError")===-1)throw n}}}}catch{}})();var u,r=Symbol("indicator"),E=Symbol("animateIndicator"),T=C(m),a=class extends T{get selected(){return this.active}set selected(t){this.active=t}constructor(){super(),this.isTab=!0,this.active=!1,this.hasIcon=!1,this.iconOnly=!1,this.fullWidthIndicator=!1,this.internals=this.attachInternals(),this.internals.role="tab",this.addEventListener("keydown",this.handleKeydown.bind(this))}render(){const t=f`<div class="indicator"></div>`;return f`<div
1
+ import{c as m,d as y,f as _,g as p,h as g,l as b,o as x,p as n,s as i,v as f,y as w}from"./vendor.js";import"./vendor-lit.js";import{n as I}from"./ripple.js";import"./md-focus-ring.js";import{t as C}from"./focusable.js";import"./elevation.js";(function(){try{var t=typeof globalThis<"u"?globalThis:window;if(!t.__scb_ce_guard_installed__){t.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(o,c,l){try{customElements.get(o)||e(o,c,l)}catch(s){var d=String(s||"");if(d.indexOf("already been used")===-1&&d.indexOf("NotSupportedError")===-1)throw s}}}}catch{}})();var u,r=Symbol("indicator"),E=Symbol("animateIndicator"),T=C(g),a=class extends T{get selected(){return this.active}set selected(t){this.active=t}constructor(){super(),this.isTab=!0,this.active=!1,this.hasIcon=!1,this.iconOnly=!1,this.fullWidthIndicator=!1,this.internals=this.attachInternals(),this.internals.role="tab",this.addEventListener("keydown",this.handleKeydown.bind(this))}render(){const t=f`<div class="indicator"></div>`;return f`<div
2
2
  class="button"
3
3
  role="presentation"
4
4
  @click=${this.handleContentClick}>
@@ -6,12 +6,12 @@ import{_ as m,b as y,c as _,d as g,h as s,l as i,m as b,p as x,u as w,v as p,y a
6
6
  <md-elevation part="elevation"></md-elevation>
7
7
  <md-ripple .control=${this}></md-ripple>
8
8
  <div
9
- class="content ${_(this.getContentClasses())}"
9
+ class="content ${x(this.getContentClasses())}"
10
10
  role="presentation">
11
11
  <slot name="icon" @slotchange=${this.handleIconSlotChange}></slot>
12
12
  <slot @slotchange=${this.handleSlotChange}></slot>
13
13
  ${this.fullWidthIndicator?p:t}
14
14
  </div>
15
15
  ${this.fullWidthIndicator?t:p}
16
- </div>`}getContentClasses(){return{"has-icon":this.hasIcon,"has-label":!this.iconOnly}}updated(){this.internals.ariaSelected=String(this.active)}async handleKeydown(t){await 0,!t.defaultPrevented&&(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.click())}handleContentClick(t){t.stopPropagation(),this.click()}[(u=r,E)](t){if(!this[r])return;this[r].getAnimations().forEach(o=>{o.cancel()});const e=this.getKeyframes(t);e!==null&&this[r].animate(e,{duration:250,easing:I.EMPHASIZED})}getKeyframes(t){const e=N();if(!this.active)return e?[{opacity:1},{transform:"none"}]:null;const o={},c=t[r]?.getBoundingClientRect()??{},l=c.left,d=c.width,n=this[r].getBoundingClientRect(),h=n.left,v=d/n.width;return!e&&l!==void 0&&h!==void 0&&!isNaN(v)?o.transform=`translateX(${(l-h).toFixed(4)}px) scaleX(${v.toFixed(4)})`:o.opacity=0,[o,{transform:"none"}]}handleSlotChange(){this.iconOnly=!1;for(const t of this.assignedDefaultNodes){const e=t.nodeType===Node.TEXT_NODE&&!!t.wholeText.match(/\S/);if(t.nodeType===Node.ELEMENT_NODE||e)return}this.iconOnly=!0}handleIconSlotChange(){this.hasIcon=this.assignedIcons.length>0}};i([s({type:Boolean,reflect:!0,attribute:"md-tab"})],a.prototype,"isTab",void 0);i([s({type:Boolean,reflect:!0})],a.prototype,"active",void 0);i([s({type:Boolean})],a.prototype,"selected",null);i([s({type:Boolean,attribute:"has-icon"})],a.prototype,"hasIcon",void 0);i([s({type:Boolean,attribute:"icon-only"})],a.prototype,"iconOnly",void 0);i([x(".indicator")],a.prototype,u,void 0);i([b()],a.prototype,"fullWidthIndicator",void 0);i([w({flatten:!0})],a.prototype,"assignedDefaultNodes",void 0);i([g({slot:"icon",flatten:!0})],a.prototype,"assignedIcons",void 0);function N(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}var D=y`:host{display:inline-flex;align-items:center;justify-content:center;outline:none;padding:0 16px;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:middle;user-select:none;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);color:var(--_label-text-color);z-index:0;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity);--md-elevation-level: var(--_container-elevation)}md-focus-ring{--md-focus-ring-shape: 8px}:host([active]) md-focus-ring{margin-bottom:calc(var(--_active-indicator-height) + 1px)}.button::before{background:var(--_container-color);content:"";inset:0;position:absolute;z-index:-1}.button::before,md-ripple,md-elevation{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start)}.content{position:relative;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;height:var(--_container-height);gap:8px}.indicator{position:absolute;box-sizing:border-box;z-index:-1;transform-origin:bottom left;background:var(--_active-indicator-color);border-radius:var(--_active-indicator-shape);height:var(--_active-indicator-height);inset:auto 0 0 0;opacity:0}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;color:var(--_icon-color);font-size:var(--_icon-size);width:var(--_icon-size);height:var(--_icon-size)}:host(:hover){color:var(--_hover-label-text-color);cursor:pointer}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus){color:var(--_focus-label-text-color)}:host(:focus) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active){color:var(--_pressed-label-text-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host([active]) .indicator{opacity:1}:host([active]){color:var(--_active-label-text-color);--md-ripple-hover-color: var(--_active-hover-state-layer-color);--md-ripple-hover-opacity: var(--_active-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_active-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_active-pressed-state-layer-opacity)}:host([active]) ::slotted([slot=icon]){color:var(--_active-icon-color)}:host([active]:hover){color:var(--_active-hover-label-text-color)}:host([active]:hover) ::slotted([slot=icon]){color:var(--_active-hover-icon-color)}:host([active]:focus){color:var(--_active-focus-label-text-color)}:host([active]:focus) ::slotted([slot=icon]){color:var(--_active-focus-icon-color)}:host([active]:active){color:var(--_active-pressed-label-text-color)}:host([active]:active) ::slotted([slot=icon]){color:var(--_active-pressed-icon-color)}:host,::slotted(*){white-space:nowrap}@media(forced-colors: active){.indicator{background:CanvasText}}
16
+ </div>`}getContentClasses(){return{"has-icon":this.hasIcon,"has-label":!this.iconOnly}}updated(){this.internals.ariaSelected=String(this.active)}async handleKeydown(t){await 0,!t.defaultPrevented&&(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.click())}handleContentClick(t){t.stopPropagation(),this.click()}[(u=r,E)](t){if(!this[r])return;this[r].getAnimations().forEach(o=>{o.cancel()});const e=this.getKeyframes(t);e!==null&&this[r].animate(e,{duration:250,easing:I.EMPHASIZED})}getKeyframes(t){const e=N();if(!this.active)return e?[{opacity:1},{transform:"none"}]:null;const o={},c=t[r]?.getBoundingClientRect()??{},l=c.left,d=c.width,s=this[r].getBoundingClientRect(),h=s.left,v=d/s.width;return!e&&l!==void 0&&h!==void 0&&!isNaN(v)?o.transform=`translateX(${(l-h).toFixed(4)}px) scaleX(${v.toFixed(4)})`:o.opacity=0,[o,{transform:"none"}]}handleSlotChange(){this.iconOnly=!1;for(const t of this.assignedDefaultNodes){const e=t.nodeType===Node.TEXT_NODE&&!!t.wholeText.match(/\S/);if(t.nodeType===Node.ELEMENT_NODE||e)return}this.iconOnly=!0}handleIconSlotChange(){this.hasIcon=this.assignedIcons.length>0}};i([n({type:Boolean,reflect:!0,attribute:"md-tab"})],a.prototype,"isTab",void 0);i([n({type:Boolean,reflect:!0})],a.prototype,"active",void 0);i([n({type:Boolean})],a.prototype,"selected",null);i([n({type:Boolean,attribute:"has-icon"})],a.prototype,"hasIcon",void 0);i([n({type:Boolean,attribute:"icon-only"})],a.prototype,"iconOnly",void 0);i([y(".indicator")],a.prototype,u,void 0);i([_()],a.prototype,"fullWidthIndicator",void 0);i([m({flatten:!0})],a.prototype,"assignedDefaultNodes",void 0);i([b({slot:"icon",flatten:!0})],a.prototype,"assignedIcons",void 0);function N(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}var D=w`:host{display:inline-flex;align-items:center;justify-content:center;outline:none;padding:0 16px;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:middle;user-select:none;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);color:var(--_label-text-color);z-index:0;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity);--md-elevation-level: var(--_container-elevation)}md-focus-ring{--md-focus-ring-shape: 8px}:host([active]) md-focus-ring{margin-bottom:calc(var(--_active-indicator-height) + 1px)}.button::before{background:var(--_container-color);content:"";inset:0;position:absolute;z-index:-1}.button::before,md-ripple,md-elevation{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start)}.content{position:relative;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;height:var(--_container-height);gap:8px}.indicator{position:absolute;box-sizing:border-box;z-index:-1;transform-origin:bottom left;background:var(--_active-indicator-color);border-radius:var(--_active-indicator-shape);height:var(--_active-indicator-height);inset:auto 0 0 0;opacity:0}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;color:var(--_icon-color);font-size:var(--_icon-size);width:var(--_icon-size);height:var(--_icon-size)}:host(:hover){color:var(--_hover-label-text-color);cursor:pointer}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus){color:var(--_focus-label-text-color)}:host(:focus) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active){color:var(--_pressed-label-text-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host([active]) .indicator{opacity:1}:host([active]){color:var(--_active-label-text-color);--md-ripple-hover-color: var(--_active-hover-state-layer-color);--md-ripple-hover-opacity: var(--_active-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_active-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_active-pressed-state-layer-opacity)}:host([active]) ::slotted([slot=icon]){color:var(--_active-icon-color)}:host([active]:hover){color:var(--_active-hover-label-text-color)}:host([active]:hover) ::slotted([slot=icon]){color:var(--_active-hover-icon-color)}:host([active]:focus){color:var(--_active-focus-label-text-color)}:host([active]:focus) ::slotted([slot=icon]){color:var(--_active-focus-icon-color)}:host([active]:active){color:var(--_active-pressed-label-text-color)}:host([active]:active) ::slotted([slot=icon]){color:var(--_active-pressed-icon-color)}:host,::slotted(*){white-space:nowrap}@media(forced-colors: active){.indicator{background:CanvasText}}
17
17
  `;export{E as n,a as r,D as t};
@@ -1 +1 @@
1
- import"./vendor-lit.js";import{t as n}from"./element-internals.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(r,h,e){try{customElements.get(r)||t(r,h,e)}catch(o){var s=String(o||"");if(s.indexOf("already been used")===-1&&s.indexOf("NotSupportedError")===-1)throw o}}}}catch{}})();var c=Symbol("createValidator"),u=Symbol("getValidityAnchor"),d=Symbol("privateValidator"),a=Symbol("privateSyncValidity"),l=Symbol("privateCustomValidationMessage");function m(i){var t;class r extends i{constructor(){super(...arguments),this[t]=""}get validity(){return this[a](),this[n].validity}get validationMessage(){return this[a](),this[n].validationMessage}get willValidate(){return this[a](),this[n].willValidate}checkValidity(){return this[a](),this[n].checkValidity()}reportValidity(){return this[a](),this[n].reportValidity()}setCustomValidity(e){this[l]=e,this[a]()}requestUpdate(e,s,o){super.requestUpdate(e,s,o),this[a]()}firstUpdated(e){super.firstUpdated(e),this[a]()}[(t=l,a)](){this[d]||(this[d]=this[c]());const{validity:e,validationMessage:s}=this[d].getValidity(),o=!!this[l],y=this[l]||s;this[n].setValidity({...e,customError:o},y,this[u]()??void 0)}[c](){throw new Error("Implement [createValidator]")}[u](){throw new Error("Implement [getValidityAnchor]")}}return r}var g=class{constructor(i){this.getCurrentState=i,this.currentValidity={validity:{},validationMessage:""}}getValidity(){const i=this.getCurrentState();if(!(!this.prevState||!this.equals(this.prevState,i)))return this.currentValidity;const{validity:t,validationMessage:r}=this.computeValidity(i);return this.prevState=this.copy(i),this.currentValidity={validationMessage:r,validity:{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing}},this.currentValidity}};export{m as i,c as n,u as r,g as t};
1
+ import"./vendor-lit.js";import{i as n}from"./form-associated.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(r,h,e){try{customElements.get(r)||t(r,h,e)}catch(o){var s=String(o||"");if(s.indexOf("already been used")===-1&&s.indexOf("NotSupportedError")===-1)throw o}}}}catch{}})();var c=Symbol("createValidator"),u=Symbol("getValidityAnchor"),d=Symbol("privateValidator"),a=Symbol("privateSyncValidity"),l=Symbol("privateCustomValidationMessage");function m(i){var t;class r extends i{constructor(){super(...arguments),this[t]=""}get validity(){return this[a](),this[n].validity}get validationMessage(){return this[a](),this[n].validationMessage}get willValidate(){return this[a](),this[n].willValidate}checkValidity(){return this[a](),this[n].checkValidity()}reportValidity(){return this[a](),this[n].reportValidity()}setCustomValidity(e){this[l]=e,this[a]()}requestUpdate(e,s,o){super.requestUpdate(e,s,o),this[a]()}firstUpdated(e){super.firstUpdated(e),this[a]()}[(t=l,a)](){this[d]||(this[d]=this[c]());const{validity:e,validationMessage:s}=this[d].getValidity(),o=!!this[l],y=this[l]||s;this[n].setValidity({...e,customError:o},y,this[u]()??void 0)}[c](){throw new Error("Implement [createValidator]")}[u](){throw new Error("Implement [getValidityAnchor]")}}return r}var g=class{constructor(i){this.getCurrentState=i,this.currentValidity={validity:{},validationMessage:""}}getValidity(){const i=this.getCurrentState();if(!(!this.prevState||!this.equals(this.prevState,i)))return this.currentValidity;const{validity:t,validationMessage:r}=this.computeValidity(i);return this.prevState=this.copy(i),this.currentValidity={validationMessage:r,validity:{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing}},this.currentValidity}};export{m as i,c as n,u as r,g as t};
@@ -1,4 +1,3 @@
1
- (function(){try{var t=typeof globalThis<"u"?globalThis:window;if(!t.__scb_ce_guard_installed__){t.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(s,i,r){try{customElements.get(s)||e(s,i,r)}catch(o){var n=String(o||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw o}}}}catch{}})();var O=globalThis,B=O.ShadowRoot&&(O.ShadyCSS===void 0||O.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,z=Symbol(),G=new WeakMap,ht=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==z)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(B&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=G.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&G.set(e,t))}return t}toString(){return this.cssText}},vt=t=>new ht(typeof t=="string"?t:t+"",void 0,z),Zt=(t,...e)=>new ht(t.length===1?t[0]:e.reduce(((s,i,r)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[r+1]),t[0]),t,z),mt=(t,e)=>{if(B)t.adoptedStyleSheets=e.map((s=>s instanceof CSSStyleSheet?s:s.styleSheet));else for(const s of e){const i=document.createElement("style"),r=O.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=s.cssText,t.appendChild(i)}},Y=B?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let s="";for(const i of e.cssRules)s+=i.cssText;return vt(s)})(t):t,Q,{is:yt,defineProperty:gt,getOwnPropertyDescriptor:At,getOwnPropertyNames:Et,getOwnPropertySymbols:bt,getPrototypeOf:St}=Object,A=globalThis,X=A.trustedTypes,wt=X?X.emptyScript:"",Ct=A.reactiveElementPolyfillSupport,S=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?wt:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=t!==null;break;case Number:s=t===null?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch{s=null}}return s}},V=(t,e)=>!yt(t,e),tt={attribute:!0,type:String,converter:x,reflect:!1,useDefault:!1,hasChanged:V};(Q=Symbol).metadata??(Q.metadata=Symbol("metadata")),A.litPropertyMetadata??(A.litPropertyMetadata=new WeakMap);var g=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=tt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&gt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:r}=At(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:i,set(n){const o=i?.call(this);r?.call(this,n),this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??tt}static _$Ei(){if(this.hasOwnProperty(S("elementProperties")))return;const t=St(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(S("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(S("properties"))){const e=this.properties,s=[...Et(e),...bt(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(Y(i))}else t!==void 0&&e.push(Y(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return mt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const r=(s.converter?.toAttribute!==void 0?s.converter:x).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const r=s.getPropertyOptions(i),n=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:x;this._$Em=i;const o=n.fromAttribute(e,r.type);this[i]=o??this._$Ej?.get(i)??o,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){const i=this.constructor,r=this[t];if(s??(s=i.getPropertyOptions(t)),!((s.hasChanged??V)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:r},n){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??e??this[t]),r!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,r]of this._$Ep)this[i]=r;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[i,r]of s){const{wrapped:n}=r,o=this[i];n!==!0||this._$AL.has(i)||o===void 0||this.C(i,void 0,r,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((e=>this._$ET(e,this[e])))),this._$EM()}updated(t){}firstUpdated(t){}};g.elementStyles=[],g.shadowRootOptions={mode:"open"},g[S("elementProperties")]=new Map,g[S("finalized")]=new Map,Ct?.({ReactiveElement:g}),(A.reactiveElementVersions??(A.reactiveElementVersions=[])).push("2.1.1");var R=globalThis,M=R.trustedTypes,et=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,lt="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,ct="?"+_,Pt=`<${ct}>`,y=document,w=()=>y.createComment(""),C=t=>t===null||typeof t!="object"&&typeof t!="function",q=Array.isArray,Tt=t=>q(t)||typeof t?.[Symbol.iterator]=="function",k=`[
2
- \f\r]`,b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,st=/-->/g,it=/>/g,v=RegExp(`>|${k}(?:([^\\s"'>=/]+)(${k}*=${k}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),rt=/'/g,nt=/"/g,dt=/^(?:script|style|textarea|title)$/i,W=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),Ot=W(1),Ut=W(2),xt=W(3),$=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),ot=new WeakMap,m=y.createTreeWalker(y,129);function ut(t,e){if(!q(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return et!==void 0?et.createHTML(e):e}var Rt=(t,e)=>{const s=t.length-1,i=[];let r,n=e===2?"<svg>":e===3?"<math>":"",o=b;for(let a=0;a<s;a++){const h=t[a];let u,d,l=-1,p=0;for(;p<h.length&&(o.lastIndex=p,d=o.exec(h),d!==null);)p=o.lastIndex,o===b?d[1]==="!--"?o=st:d[1]!==void 0?o=it:d[2]!==void 0?(dt.test(d[2])&&(r=RegExp("</"+d[2],"g")),o=v):d[3]!==void 0&&(o=v):o===v?d[0]===">"?(o=r??b,l=-1):d[1]===void 0?l=-2:(l=o.lastIndex-d[2].length,u=d[1],o=d[3]===void 0?v:d[3]==='"'?nt:rt):o===nt||o===rt?o=v:o===st||o===it?o=b:(o=v,r=void 0);const f=o===v&&t[a+1].startsWith("/>")?" ":"";n+=o===b?h+Pt:l>=0?(i.push(u),h.slice(0,l)+lt+h.slice(l)+_+f):h+_+(l===-2?a:f)}return[ut(t,n+(t[s]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},D=class pt{constructor({strings:e,_$litType$:s},i){let r;this.parts=[];let n=0,o=0;const a=e.length-1,h=this.parts,[u,d]=Rt(e,s);if(this.el=pt.createElement(u,i),m.currentNode=this.el.content,s===2||s===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(r=m.nextNode())!==null&&h.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const l of r.getAttributeNames())if(l.endsWith(lt)){const p=d[o++],f=r.getAttribute(l).split(_),T=/([.?@])?(.*)/.exec(p);h.push({type:1,index:n,name:T[2],strings:f,ctor:T[1]==="."?Nt:T[1]==="?"?Ht:T[1]==="@"?jt:j}),r.removeAttribute(l)}else l.startsWith(_)&&(h.push({type:6,index:n}),r.removeAttribute(l));if(dt.test(r.tagName)){const l=r.textContent.split(_),p=l.length-1;if(p>0){r.textContent=M?M.emptyScript:"";for(let f=0;f<p;f++)r.append(l[f],w()),m.nextNode(),h.push({type:2,index:++n});r.append(l[p],w())}}}else if(r.nodeType===8)if(r.data===ct)h.push({type:2,index:n});else{let l=-1;for(;(l=r.data.indexOf(_,l+1))!==-1;)h.push({type:7,index:n}),l+=_.length-1}n++}}static createElement(e,s){const i=y.createElement("template");return i.innerHTML=e,i}};function E(t,e,s=t,i){if(e===$)return e;let r=i!==void 0?s._$Co?.[i]:s._$Cl;const n=C(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(t),r._$AT(t,s,i)),i!==void 0?(s._$Co??(s._$Co=[]))[i]=r:s._$Cl=r),r!==void 0&&(e=E(t,r._$AS(t,e.values),r,i)),e}var Mt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??y).importNode(e,!0);m.currentNode=i;let r=m.nextNode(),n=0,o=0,a=s[0];for(;a!==void 0;){if(n===a.index){let h;a.type===2?h=new Z(r,r.nextSibling,this,t):a.type===1?h=new a.ctor(r,a.name,a.strings,this,t):a.type===6&&(h=new Lt(r,this,t)),this._$AV.push(h),a=s[++o]}n!==a?.index&&(r=m.nextNode(),n++)}return m.currentNode=y,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},Z=class $t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,s,i,r){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=e,this._$AB=s,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&e?.nodeType===11&&(e=s.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,s=this){e=E(this,e,s),C(e)?e===c||e==null||e===""?(this._$AH!==c&&this._$AR(),this._$AH=c):e!==this._$AH&&e!==$&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Tt(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==c&&C(this._$AH)?this._$AA.nextSibling.data=e:this.T(y.createTextNode(e)),this._$AH=e}$(e){const{values:s,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=D.createElement(ut(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(s);else{const n=new Mt(r,this),o=n.u(this.options);n.p(s),this.T(o),this._$AH=n}}_$AC(e){let s=ot.get(e.strings);return s===void 0&&ot.set(e.strings,s=new D(e)),s}k(e){q(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,r=0;for(const n of e)r===s.length?s.push(i=new $t(this.O(w()),this.O(w()),this,this.options)):i=s[r],i._$AI(n),r++;r<s.length&&(this._$AR(i&&i._$AB.nextSibling,r),s.length=r)}_$AR(e=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},j=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,r){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=c}_$AI(t,e=this,s,i){const r=this.strings;let n=!1;if(r===void 0)t=E(this,t,e,0),n=!C(t)||t!==this._$AH&&t!==$,n&&(this._$AH=t);else{const o=t;let a,h;for(t=r[0],a=0;a<r.length-1;a++)h=E(this,o[s+a],e,a),h===$&&(h=this._$AH[a]),n||(n=!C(h)||h!==this._$AH[a]),h===c?t=c:t!==c&&(t+=(h??"")+r[a+1]),this._$AH[a]=h}n&&!i&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Nt=class extends j{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},Ht=class extends j{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},jt=class extends j{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){if((t=E(this,t,e,0)??c)===$)return;const s=this._$AH,i=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==c&&(s===c||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Lt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){E(this,t)}};var kt=R.litHtmlPolyfillSupport;kt?.(D,Z),(R.litHtmlVersions??(R.litHtmlVersions=[])).push("3.3.1");var Dt=(t,e,s)=>{const i=s?.renderBefore??e;let r=i._$litPart$;if(r===void 0){const n=s?.renderBefore??null;i._$litPart$=r=new Z(e.insertBefore(w(),n),n,void 0,s??{})}return r._$AI(t),r},N=globalThis,U=class extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Dt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return $}};U._$litElement$=!0,U.finalized=!0,N.litElementHydrateSupport?.({LitElement:U});var It=N.litElementPolyfillSupport;It?.({LitElement:U});(N.litElementVersions??(N.litElementVersions=[])).push("4.2.1");var Ft=t=>(e,s)=>{s!==void 0?s.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},Bt={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:V},zt=(t=Bt,e,s)=>{const{kind:i,metadata:r}=s;let n=globalThis.litPropertyMetadata.get(r);if(n===void 0&&globalThis.litPropertyMetadata.set(r,n=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),n.set(s.name,t),i==="accessor"){const{name:o}=s;return{set(a){const h=e.get.call(this);e.set.call(this,a),this.requestUpdate(o,h,t)},init(a){return a!==void 0&&this.C(o,void 0,t,a),a}}}if(i==="setter"){const{name:o}=s;return function(a){const h=this[o];e.call(this,a),this.requestUpdate(o,h,t)}}throw Error("Unsupported decorator location: "+i)};function Vt(t){return(e,s)=>typeof s=="object"?zt(t,e,s):((i,r,n)=>{const o=r.hasOwnProperty(n);return r.constructor.createProperty(n,i),o?Object.getOwnPropertyDescriptor(r,n):void 0})(t,e,s)}function Jt(t){return Vt({...t,state:!0,attribute:!1})}var P=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,s),s);function Kt(t,e){return(s,i,r)=>{const n=o=>o.renderRoot?.querySelector(t)??null;if(e){const{get:o,set:a}=typeof i=="object"?s:r??(()=>{const h=Symbol();return{get(){return this[h]},set(u){this[h]=u}}})();return P(s,i,{get(){let h=o.call(this);return h===void 0&&(h=n(this),(h!==null||this.hasUpdated)&&a.call(this,h)),h}})}return P(s,i,{get(){return n(this)}})}}function Gt(t){return(e,s)=>P(e,s,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Yt(t){return(e,s)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return P(e,s,{get(){const o=this.renderRoot?.querySelector(n)?.assignedElements(t)??[];return r===void 0?o:o.filter((a=>a.matches(r)))}})}}function Qt(t){return(e,s)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return P(e,s,{get(){return this.renderRoot?.querySelector(r)?.assignedNodes(t)??[]}})}}function Xt(t,e,s,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,s):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n}var F={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},L=t=>(...e)=>({_$litDirective$:t,values:e}),J=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}},te=L(class extends J{constructor(t){if(super(t),t.type!==F.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((i=>i!==""))));for(const i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}const s=t.element.classList;for(const i of this.st)i in e||(s.remove(i),this.st.delete(i));for(const i in e){const r=!!e[i];r===this.st.has(i)||this.nt?.has(i)||(r?(s.add(i),this.st.add(i)):(s.remove(i),this.st.delete(i)))}return $}}),ee=t=>t??c,H=class extends J{constructor(t){if(super(t),this.it=c,t.type!==F.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===c||t==null)return this._t=void 0,this.it=t;if(t===$)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};H.directiveName="unsafeHTML",H.resultType=1;var se=L(H),ft="important",qt=" !"+ft,ie=L(class extends J{constructor(t){if(super(t),t.type!==F.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,s)=>{const i=t[s];return i==null?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:s}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)e[i]??(this.ft.delete(i),i.includes("-")?s.removeProperty(i):s[i]=null);for(const i in e){const r=e[i];if(r!=null){this.ft.add(i);const n=typeof r=="string"&&r.endsWith(qt);i.includes("-")||n?s.setProperty(i,n?r.slice(0,-11):r,n?ft:""):s[i]=r}}return $}});function re(t,e,s){return t?e(t):s?.(t)}var I=class extends H{};I.directiveName="unsafeSVG",I.resultType=2;var ne=L(I),_t=Symbol.for(""),Wt=t=>{if(t?.r===_t)return t?._$litStatic$};var oe=(t,...e)=>({_$litStatic$:e.reduce(((s,i,r)=>s+(n=>{if(n._$litStatic$!==void 0)return n._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${n}. Use 'unsafeStatic' to pass non-literal values, but
4
- take care to ensure page security.`)})(i)+t[r+1]),t[0]),r:_t}),at=new Map,K=t=>(e,...s)=>{const i=s.length;let r,n;const o=[],a=[];let h,u=0,d=!1;for(;u<i;){for(h=e[u];u<i&&(n=s[u],(r=Wt(n))!==void 0);)h+=r+e[++u],d=!0;u!==i&&a.push(n),o.push(h),u++}if(u===i&&o.push(e[i]),d){const l=o.join("$$lit$$");(e=at.get(l))===void 0&&(o.raw=o,at.set(l,e=o)),s=a}return t(e,...s)},ae=K(Ot),he=K(Ut),le=K(xt);export{U as _,ie as a,Zt as b,te as c,Yt as d,Gt as f,Ft as g,Vt as h,re as i,Xt as l,Jt as m,ae as n,se as o,Kt as p,ne as r,ee as s,oe as t,Qt as u,c as v,Ot as y};
1
+ (function(){try{var t=typeof globalThis<"u"?globalThis:window;if(!t.__scb_ce_guard_installed__){t.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(s,i,r){try{customElements.get(s)||e(s,i,r)}catch(o){var n=String(o||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw o}}}}catch{}})();var O=globalThis,B=O.ShadowRoot&&(O.ShadyCSS===void 0||O.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,z=Symbol(),K=new WeakMap,ot=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==z)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(B&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=K.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&K.set(e,t))}return t}toString(){return this.cssText}},$t=t=>new ot(typeof t=="string"?t:t+"",void 0,z),It=(t,...e)=>new ot(t.length===1?t[0]:e.reduce(((s,i,r)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[r+1]),t[0]),t,z),ft=(t,e)=>{if(B)t.adoptedStyleSheets=e.map((s=>s instanceof CSSStyleSheet?s:s.styleSheet));else for(const s of e){const i=document.createElement("style"),r=O.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=s.cssText,t.appendChild(i)}},G=B?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let s="";for(const i of e.cssRules)s+=i.cssText;return $t(s)})(t):t,Y,{is:_t,defineProperty:mt,getOwnPropertyDescriptor:vt,getOwnPropertyNames:yt,getOwnPropertySymbols:gt,getPrototypeOf:At}=Object,A=globalThis,Q=A.trustedTypes,Et=Q?Q.emptyScript:"",bt=A.reactiveElementPolyfillSupport,S=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?Et:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=t!==null;break;case Number:s=t===null?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch{s=null}}return s}},q=(t,e)=>!_t(t,e),X={attribute:!0,type:String,converter:x,reflect:!1,useDefault:!1,hasChanged:q};(Y=Symbol).metadata??(Y.metadata=Symbol("metadata")),A.litPropertyMetadata??(A.litPropertyMetadata=new WeakMap);var g=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=X){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&mt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:r}=vt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:i,set(n){const o=i?.call(this);r?.call(this,n),this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??X}static _$Ei(){if(this.hasOwnProperty(S("elementProperties")))return;const t=At(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(S("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(S("properties"))){const e=this.properties,s=[...yt(e),...gt(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(G(i))}else t!==void 0&&e.push(G(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ft(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const r=(s.converter?.toAttribute!==void 0?s.converter:x).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const r=s.getPropertyOptions(i),n=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:x;this._$Em=i;const o=n.fromAttribute(e,r.type);this[i]=o??this._$Ej?.get(i)??o,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){const i=this.constructor,r=this[t];if(s??(s=i.getPropertyOptions(t)),!((s.hasChanged??q)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:r},n){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??e??this[t]),r!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,r]of this._$Ep)this[i]=r;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[i,r]of s){const{wrapped:n}=r,o=this[i];n!==!0||this._$AL.has(i)||o===void 0||this.C(i,void 0,r,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((e=>this._$ET(e,this[e])))),this._$EM()}updated(t){}firstUpdated(t){}};g.elementStyles=[],g.shadowRootOptions={mode:"open"},g[S("elementProperties")]=new Map,g[S("finalized")]=new Map,bt?.({ReactiveElement:g}),(A.reactiveElementVersions??(A.reactiveElementVersions=[])).push("2.1.1");var R=globalThis,M=R.trustedTypes,tt=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,ht="$lit$",f=`lit$${Math.random().toFixed(9).slice(2)}$`,at="?"+f,St=`<${at}>`,v=document,w=()=>v.createComment(""),C=t=>t===null||typeof t!="object"&&typeof t!="function",V=Array.isArray,wt=t=>V(t)||typeof t?.[Symbol.iterator]=="function",D=`[
2
+ \f\r]`,b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,et=/-->/g,st=/>/g,_=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,rt=/"/g,lt=/^(?:script|style|textarea|title)$/i,W=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),kt=W(1),Bt=W(2),zt=W(3),p=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),nt=new WeakMap,m=v.createTreeWalker(v,129);function ct(t,e){if(!V(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return tt!==void 0?tt.createHTML(e):e}var Ct=(t,e)=>{const s=t.length-1,i=[];let r,n=e===2?"<svg>":e===3?"<math>":"",o=b;for(let h=0;h<s;h++){const a=t[h];let y,d,l=-1,u=0;for(;u<a.length&&(o.lastIndex=u,d=o.exec(a),d!==null);)u=o.lastIndex,o===b?d[1]==="!--"?o=et:d[1]!==void 0?o=st:d[2]!==void 0?(lt.test(d[2])&&(r=RegExp("</"+d[2],"g")),o=_):d[3]!==void 0&&(o=_):o===_?d[0]===">"?(o=r??b,l=-1):d[1]===void 0?l=-2:(l=o.lastIndex-d[2].length,y=d[1],o=d[3]===void 0?_:d[3]==='"'?rt:it):o===rt||o===it?o=_:o===et||o===st?o=b:(o=_,r=void 0);const $=o===_&&t[h+1].startsWith("/>")?" ":"";n+=o===b?a+St:l>=0?(i.push(y),a.slice(0,l)+ht+a.slice(l)+f+$):a+f+(l===-2?h:$)}return[ct(t,n+(t[s]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},I=class dt{constructor({strings:e,_$litType$:s},i){let r;this.parts=[];let n=0,o=0;const h=e.length-1,a=this.parts,[y,d]=Ct(e,s);if(this.el=dt.createElement(y,i),m.currentNode=this.el.content,s===2||s===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(r=m.nextNode())!==null&&a.length<h;){if(r.nodeType===1){if(r.hasAttributes())for(const l of r.getAttributeNames())if(l.endsWith(ht)){const u=d[o++],$=r.getAttribute(l).split(f),T=/([.?@])?(.*)/.exec(u);a.push({type:1,index:n,name:T[2],strings:$,ctor:T[1]==="."?Tt:T[1]==="?"?Ot:T[1]==="@"?Ut:j}),r.removeAttribute(l)}else l.startsWith(f)&&(a.push({type:6,index:n}),r.removeAttribute(l));if(lt.test(r.tagName)){const l=r.textContent.split(f),u=l.length-1;if(u>0){r.textContent=M?M.emptyScript:"";for(let $=0;$<u;$++)r.append(l[$],w()),m.nextNode(),a.push({type:2,index:++n});r.append(l[u],w())}}}else if(r.nodeType===8)if(r.data===at)a.push({type:2,index:n});else{let l=-1;for(;(l=r.data.indexOf(f,l+1))!==-1;)a.push({type:7,index:n}),l+=f.length-1}n++}}static createElement(e,s){const i=v.createElement("template");return i.innerHTML=e,i}};function E(t,e,s=t,i){if(e===p)return e;let r=i!==void 0?s._$Co?.[i]:s._$Cl;const n=C(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(t),r._$AT(t,s,i)),i!==void 0?(s._$Co??(s._$Co=[]))[i]=r:s._$Cl=r),r!==void 0&&(e=E(t,r._$AS(t,e.values),r,i)),e}var Pt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??v).importNode(e,!0);m.currentNode=i;let r=m.nextNode(),n=0,o=0,h=s[0];for(;h!==void 0;){if(n===h.index){let a;h.type===2?a=new Z(r,r.nextSibling,this,t):h.type===1?a=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&(a=new xt(r,this,t)),this._$AV.push(a),h=s[++o]}n!==h?.index&&(r=m.nextNode(),n++)}return m.currentNode=v,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},Z=class ut{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,s,i,r){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=e,this._$AB=s,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&e?.nodeType===11&&(e=s.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,s=this){e=E(this,e,s),C(e)?e===c||e==null||e===""?(this._$AH!==c&&this._$AR(),this._$AH=c):e!==this._$AH&&e!==p&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wt(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==c&&C(this._$AH)?this._$AA.nextSibling.data=e:this.T(v.createTextNode(e)),this._$AH=e}$(e){const{values:s,_$litType$:i}=e,r=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=I.createElement(ct(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(s);else{const n=new Pt(r,this),o=n.u(this.options);n.p(s),this.T(o),this._$AH=n}}_$AC(e){let s=nt.get(e.strings);return s===void 0&&nt.set(e.strings,s=new I(e)),s}k(e){V(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,r=0;for(const n of e)r===s.length?s.push(i=new ut(this.O(w()),this.O(w()),this,this.options)):i=s[r],i._$AI(n),r++;r<s.length&&(this._$AR(i&&i._$AB.nextSibling,r),s.length=r)}_$AR(e=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},j=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,r){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=c}_$AI(t,e=this,s,i){const r=this.strings;let n=!1;if(r===void 0)t=E(this,t,e,0),n=!C(t)||t!==this._$AH&&t!==p,n&&(this._$AH=t);else{const o=t;let h,a;for(t=r[0],h=0;h<r.length-1;h++)a=E(this,o[s+h],e,h),a===p&&(a=this._$AH[h]),n||(n=!C(a)||a!==this._$AH[h]),a===c?t=c:t!==c&&(t+=(a??"")+r[h+1]),this._$AH[h]=a}n&&!i&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Tt=class extends j{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},Ot=class extends j{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},Ut=class extends j{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){if((t=E(this,t,e,0)??c)===p)return;const s=this._$AH,i=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==c&&(s===c||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},xt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){E(this,t)}};var Rt=R.litHtmlPolyfillSupport;Rt?.(I,Z),(R.litHtmlVersions??(R.litHtmlVersions=[])).push("3.3.1");var Mt=(t,e,s)=>{const i=s?.renderBefore??e;let r=i._$litPart$;if(r===void 0){const n=s?.renderBefore??null;i._$litPart$=r=new Z(e.insertBefore(w(),n),n,void 0,s??{})}return r._$AI(t),r},N=globalThis,U=class extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Mt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return p}};U._$litElement$=!0,U.finalized=!0,N.litElementHydrateSupport?.({LitElement:U});var Nt=N.litElementPolyfillSupport;Nt?.({LitElement:U});(N.litElementVersions??(N.litElementVersions=[])).push("4.2.1");var qt=t=>(e,s)=>{s!==void 0?s.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},Ht={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:q},jt=(t=Ht,e,s)=>{const{kind:i,metadata:r}=s;let n=globalThis.litPropertyMetadata.get(r);if(n===void 0&&globalThis.litPropertyMetadata.set(r,n=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),n.set(s.name,t),i==="accessor"){const{name:o}=s;return{set(h){const a=e.get.call(this);e.set.call(this,h),this.requestUpdate(o,a,t)},init(h){return h!==void 0&&this.C(o,void 0,t,h),h}}}if(i==="setter"){const{name:o}=s;return function(h){const a=this[o];e.call(this,h),this.requestUpdate(o,a,t)}}throw Error("Unsupported decorator location: "+i)};function Lt(t){return(e,s)=>typeof s=="object"?jt(t,e,s):((i,r,n)=>{const o=r.hasOwnProperty(n);return r.constructor.createProperty(n,i),o?Object.getOwnPropertyDescriptor(r,n):void 0})(t,e,s)}function Vt(t){return Lt({...t,state:!0,attribute:!1})}var P=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,s),s);function Wt(t,e){return(s,i,r)=>{const n=o=>o.renderRoot?.querySelector(t)??null;if(e){const{get:o,set:h}=typeof i=="object"?s:r??(()=>{const a=Symbol();return{get(){return this[a]},set(y){this[a]=y}}})();return P(s,i,{get(){let a=o.call(this);return a===void 0&&(a=n(this),(a!==null||this.hasUpdated)&&h.call(this,a)),a}})}return P(s,i,{get(){return n(this)}})}}function Zt(t){return(e,s)=>P(e,s,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Ft(t){return(e,s)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return P(e,s,{get(){const o=this.renderRoot?.querySelector(n)?.assignedElements(t)??[];return r===void 0?o:o.filter((h=>h.matches(r)))}})}}function Jt(t){return(e,s)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return P(e,s,{get(){return this.renderRoot?.querySelector(r)?.assignedNodes(t)??[]}})}}function Kt(t,e,s,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,s):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,s,i);else for(var h=t.length-1;h>=0;h--)(o=t[h])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n}var F={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},L=t=>(...e)=>({_$litDirective$:t,values:e}),J=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}},Gt=L(class extends J{constructor(t){if(super(t),t.type!==F.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((i=>i!==""))));for(const i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}const s=t.element.classList;for(const i of this.st)i in e||(s.remove(i),this.st.delete(i));for(const i in e){const r=!!e[i];r===this.st.has(i)||this.nt?.has(i)||(r?(s.add(i),this.st.add(i)):(s.remove(i),this.st.delete(i)))}return p}}),Yt=t=>t??c,pt="important",Dt=" !"+pt,Qt=L(class extends J{constructor(t){if(super(t),t.type!==F.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,s)=>{const i=t[s];return i==null?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:s}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)e[i]??(this.ft.delete(i),i.includes("-")?s.removeProperty(i):s[i]=null);for(const i in e){const r=e[i];if(r!=null){this.ft.add(i);const n=typeof r=="string"&&r.endsWith(Dt);i.includes("-")||n?s.setProperty(i,n?r.slice(0,-11):r,n?pt:""):s[i]=r}}return p}});function Xt(t,e,s){return t?e(t):s?.(t)}var H=class extends J{constructor(t){if(super(t),this.it=c,t.type!==F.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===c||t==null)return this._t=void 0,this.it=t;if(t===p)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};H.directiveName="unsafeHTML",H.resultType=1;var te=L(H),k=class extends H{};k.directiveName="unsafeSVG",k.resultType=2;var ee=L(k);export{Bt as _,Yt as a,Jt as c,Wt as d,Vt as f,c as g,U as h,Qt as i,Ft as l,qt as m,te as n,Gt as o,Lt as p,Xt as r,Kt as s,ee as t,Zt as u,kt as v,It as y};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scb-wc",
3
- "version": "0.1.78",
3
+ "version": "0.1.80",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -460,5 +460,5 @@
460
460
  },
461
461
  "./mvc/*": "./mvc/*"
462
462
  },
463
- "buildHash": "F086CA2665651E256C046BB33A18698C9DD9A440DDAFCD908BBB95AE85900050"
463
+ "buildHash": "3595F5127EFCFFC5B4E45738DD787A5F45572352B4ED9E3435321D8386FFF634"
464
464
  }