@govtechsg/sgds-web-component 3.19.0-rc.0 → 3.19.0-rc.3

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 (238) hide show
  1. package/base/card.js +1 -1
  2. package/base/option.js +1 -1
  3. package/components/Accordion/accordion-item.js +1 -1
  4. package/components/Accordion/index.umd.min.js +1 -1
  5. package/components/Alert/index.umd.min.js +8 -8
  6. package/components/Alert/index.umd.min.js.map +1 -1
  7. package/components/Badge/index.umd.min.js +9 -9
  8. package/components/Badge/index.umd.min.js.map +1 -1
  9. package/components/Breadcrumb/index.umd.min.js +2 -2
  10. package/components/Card/index.umd.min.js +1 -1
  11. package/components/Checkbox/checkbox-group.js +1 -1
  12. package/components/Checkbox/checkbox.js +1 -1
  13. package/components/Checkbox/index.umd.min.js +2238 -32
  14. package/components/Checkbox/index.umd.min.js.map +1 -1
  15. package/components/Checkbox/sgds-checkbox-group.d.ts +5 -0
  16. package/components/Checkbox/sgds-checkbox-group.js +6 -6
  17. package/components/Checkbox/sgds-checkbox-group.js.map +1 -1
  18. package/components/Checkbox/sgds-checkbox.d.ts +5 -0
  19. package/components/Checkbox/sgds-checkbox.js +6 -6
  20. package/components/Checkbox/sgds-checkbox.js.map +1 -1
  21. package/components/CloseButton/close-button.js +1 -1
  22. package/components/CloseButton/index.umd.min.js +6 -6
  23. package/components/CloseButton/index.umd.min.js.map +1 -1
  24. package/components/CloseButton/sgds-close-button.js +1 -1
  25. package/components/CloseButton/sgds-close-button.js.map +1 -1
  26. package/components/ComboBox/index.umd.min.js +7 -12
  27. package/components/ComboBox/index.umd.min.js.map +1 -1
  28. package/components/Datepicker/datepicker-calendar2.js +1 -1
  29. package/components/Datepicker/index.umd.min.js +2 -2
  30. package/components/Datepicker/index.umd.min.js.map +1 -1
  31. package/components/Drawer/index.umd.min.js +8 -8
  32. package/components/Drawer/index.umd.min.js.map +1 -1
  33. package/components/Dropdown/dropdown-item.js +1 -1
  34. package/components/Dropdown/index.umd.min.js +1 -1
  35. package/components/FileUpload/index.umd.min.js +8 -8
  36. package/components/FileUpload/index.umd.min.js.map +1 -1
  37. package/components/Footer/index.umd.min.js +1 -1
  38. package/components/IconCard/index.umd.min.js +1 -1
  39. package/components/ImageCard/index.umd.min.js +1 -1
  40. package/components/Input/index.umd.min.js +1 -1
  41. package/components/Input/index.umd.min.js.map +1 -1
  42. package/components/Link/index.umd.min.js +1 -1
  43. package/components/Link/link.js +1 -1
  44. package/components/Mainnav/index.umd.min.js +3 -3
  45. package/components/Mainnav/mainnav-dropdown.js +1 -1
  46. package/components/Mainnav/mainnav-item.js +1 -1
  47. package/components/Modal/index.umd.min.js +9 -9
  48. package/components/Modal/index.umd.min.js.map +1 -1
  49. package/components/OverflowMenu/index.umd.min.js +1 -1
  50. package/components/Pagination/index.umd.min.js +1 -1
  51. package/components/Pagination/pagination.js +1 -1
  52. package/components/QuantityToggle/index.umd.min.js +2 -2
  53. package/components/QuantityToggle/index.umd.min.js.map +1 -1
  54. package/components/Radio/index.umd.min.js +2 -2
  55. package/components/Radio/index.umd.min.js.map +1 -1
  56. package/components/Radio/radio-group.js +1 -1
  57. package/components/Select/index.umd.min.js +2 -2
  58. package/components/Select/index.umd.min.js.map +1 -1
  59. package/components/Sidenav/index.umd.min.js +2 -2
  60. package/components/Sidenav/sidenav-item.js +1 -1
  61. package/components/Sidenav/sidenav-link.js +1 -1
  62. package/components/Stepper/index.umd.min.js +26 -26
  63. package/components/Stepper/index.umd.min.js.map +1 -1
  64. package/components/Stepper/sgds-stepper.d.ts +10 -0
  65. package/components/Stepper/sgds-stepper.js +46 -24
  66. package/components/Stepper/sgds-stepper.js.map +1 -1
  67. package/components/Stepper/step.js +1 -1
  68. package/components/Subnav/index.umd.min.js +1 -1
  69. package/components/Subnav/subnav-item.js +1 -1
  70. package/components/Switch/index.umd.min.js +1 -1
  71. package/components/Switch/switch.js +1 -1
  72. package/components/SystemBanner/index.umd.min.js +2 -2
  73. package/components/SystemBanner/index.umd.min.js.map +1 -1
  74. package/components/Tab/index.umd.min.js +1 -1
  75. package/components/Tab/tab.js +1 -1
  76. package/components/Table/index.umd.min.js +1 -1
  77. package/components/Table/index.umd.min.js.map +1 -1
  78. package/components/Table/table.js +1 -1
  79. package/components/Textarea/index.umd.min.js +10 -10
  80. package/components/Textarea/index.umd.min.js.map +1 -1
  81. package/components/Textarea/textarea.js +1 -1
  82. package/components/ThumbnailCard/index.umd.min.js +1 -1
  83. package/components/Toast/index.umd.min.js +5 -5
  84. package/components/Toast/index.umd.min.js.map +1 -1
  85. package/components/index.umd.min.js +97 -107
  86. package/components/index.umd.min.js.map +1 -1
  87. package/css/fouc.css +1 -1
  88. package/custom-elements.json +636 -629
  89. package/index.umd.min.js +43 -53
  90. package/index.umd.min.js.map +1 -1
  91. package/package.json +1 -1
  92. package/react/accordion/index.d.ts +3 -1
  93. package/react/accordion-item/index.d.ts +3 -1
  94. package/react/alert/index.d.ts +3 -1
  95. package/react/alert-link/index.d.ts +3 -1
  96. package/react/badge/index.d.ts +3 -1
  97. package/react/base/card.cjs.js +1 -1
  98. package/react/base/card.js +1 -1
  99. package/react/base/option.cjs.js +1 -1
  100. package/react/base/option.js +1 -1
  101. package/react/breadcrumb/index.d.ts +3 -1
  102. package/react/breadcrumb-item/index.d.ts +3 -1
  103. package/react/button/index.d.ts +3 -1
  104. package/react/card/index.d.ts +3 -1
  105. package/react/checkbox/index.d.ts +3 -1
  106. package/react/checkbox-group/index.d.ts +3 -1
  107. package/react/close-button/index.d.ts +3 -1
  108. package/react/combo-box/index.d.ts +3 -1
  109. package/react/combo-box-option/index.d.ts +3 -1
  110. package/react/components/Accordion/accordion-item.cjs.js +1 -1
  111. package/react/components/Accordion/accordion-item.js +1 -1
  112. package/react/components/Checkbox/checkbox-group.cjs.js +1 -1
  113. package/react/components/Checkbox/checkbox-group.js +1 -1
  114. package/react/components/Checkbox/checkbox.cjs.js +1 -1
  115. package/react/components/Checkbox/checkbox.js +1 -1
  116. package/react/components/Checkbox/sgds-checkbox-group.cjs.js +6 -6
  117. package/react/components/Checkbox/sgds-checkbox-group.cjs.js.map +1 -1
  118. package/react/components/Checkbox/sgds-checkbox-group.js +6 -6
  119. package/react/components/Checkbox/sgds-checkbox-group.js.map +1 -1
  120. package/react/components/Checkbox/sgds-checkbox.cjs.js +6 -6
  121. package/react/components/Checkbox/sgds-checkbox.cjs.js.map +1 -1
  122. package/react/components/Checkbox/sgds-checkbox.js +6 -6
  123. package/react/components/Checkbox/sgds-checkbox.js.map +1 -1
  124. package/react/components/CloseButton/close-button.cjs.js +1 -1
  125. package/react/components/CloseButton/close-button.js +1 -1
  126. package/react/components/CloseButton/sgds-close-button.cjs.js +1 -1
  127. package/react/components/CloseButton/sgds-close-button.cjs.js.map +1 -1
  128. package/react/components/CloseButton/sgds-close-button.js +1 -1
  129. package/react/components/CloseButton/sgds-close-button.js.map +1 -1
  130. package/react/components/Datepicker/datepicker-calendar.cjs2.js +1 -1
  131. package/react/components/Datepicker/datepicker-calendar2.js +1 -1
  132. package/react/components/Dropdown/dropdown-item.cjs.js +1 -1
  133. package/react/components/Dropdown/dropdown-item.js +1 -1
  134. package/react/components/Link/link.cjs.js +1 -1
  135. package/react/components/Link/link.js +1 -1
  136. package/react/components/Mainnav/mainnav-dropdown.cjs.js +1 -1
  137. package/react/components/Mainnav/mainnav-dropdown.js +1 -1
  138. package/react/components/Mainnav/mainnav-item.cjs.js +1 -1
  139. package/react/components/Mainnav/mainnav-item.js +1 -1
  140. package/react/components/Pagination/pagination.cjs.js +1 -1
  141. package/react/components/Pagination/pagination.js +1 -1
  142. package/react/components/Radio/radio-group.cjs.js +1 -1
  143. package/react/components/Radio/radio-group.js +1 -1
  144. package/react/components/Sidenav/sidenav-item.cjs.js +1 -1
  145. package/react/components/Sidenav/sidenav-item.js +1 -1
  146. package/react/components/Sidenav/sidenav-link.cjs.js +1 -1
  147. package/react/components/Sidenav/sidenav-link.js +1 -1
  148. package/react/components/Stepper/sgds-stepper.cjs.js +45 -23
  149. package/react/components/Stepper/sgds-stepper.cjs.js.map +1 -1
  150. package/react/components/Stepper/sgds-stepper.js +46 -24
  151. package/react/components/Stepper/sgds-stepper.js.map +1 -1
  152. package/react/components/Stepper/step.cjs.js +1 -1
  153. package/react/components/Stepper/step.js +1 -1
  154. package/react/components/Subnav/subnav-item.cjs.js +1 -1
  155. package/react/components/Subnav/subnav-item.js +1 -1
  156. package/react/components/Switch/switch.cjs.js +1 -1
  157. package/react/components/Switch/switch.js +1 -1
  158. package/react/components/Tab/tab.cjs.js +1 -1
  159. package/react/components/Tab/tab.js +1 -1
  160. package/react/components/Table/table.cjs.js +1 -1
  161. package/react/components/Table/table.js +1 -1
  162. package/react/components/Textarea/textarea.cjs.js +1 -1
  163. package/react/components/Textarea/textarea.js +1 -1
  164. package/react/datepicker/index.d.ts +3 -1
  165. package/react/description-list/index.d.ts +3 -1
  166. package/react/description-list-group/index.d.ts +3 -1
  167. package/react/divider/index.d.ts +3 -1
  168. package/react/drawer/index.d.ts +3 -1
  169. package/react/dropdown/index.d.ts +3 -1
  170. package/react/dropdown-item/index.d.ts +3 -1
  171. package/react/file-upload/index.d.ts +3 -1
  172. package/react/footer/index.d.ts +3 -1
  173. package/react/footer-item/index.d.ts +3 -1
  174. package/react/icon/index.d.ts +3 -1
  175. package/react/icon-button/index.d.ts +3 -1
  176. package/react/icon-card/index.d.ts +3 -1
  177. package/react/icon-list/index.d.ts +3 -1
  178. package/react/image-card/index.d.ts +3 -1
  179. package/react/index.cjs.js +4 -4
  180. package/react/index.d.ts +1 -1
  181. package/react/index.js +1 -1
  182. package/react/input/index.d.ts +3 -1
  183. package/react/link/index.d.ts +3 -1
  184. package/react/mainnav/index.d.ts +3 -1
  185. package/react/mainnav-dropdown/index.d.ts +3 -1
  186. package/react/mainnav-item/index.d.ts +3 -1
  187. package/react/masthead/index.d.ts +3 -1
  188. package/react/modal/index.d.ts +3 -1
  189. package/react/overflow-menu/index.d.ts +3 -1
  190. package/react/pagination/index.d.ts +3 -1
  191. package/react/progress-bar/index.d.ts +3 -1
  192. package/react/quantity-toggle/index.d.ts +3 -1
  193. package/react/radio/index.d.ts +3 -1
  194. package/react/radio-group/index.d.ts +3 -1
  195. package/react/select/index.d.ts +3 -1
  196. package/react/select-option/index.d.ts +3 -1
  197. package/react/sidebar/index.d.ts +3 -1
  198. package/react/sidebar-group/index.d.ts +3 -1
  199. package/react/sidebar-item/index.d.ts +3 -1
  200. package/react/sidebar-section/index.d.ts +3 -1
  201. package/react/sidenav/index.d.ts +3 -1
  202. package/react/sidenav-item/index.d.ts +3 -1
  203. package/react/sidenav-link/index.d.ts +3 -1
  204. package/react/skeleton/index.d.ts +3 -1
  205. package/react/spinner/index.d.ts +3 -1
  206. package/react/step/index.d.ts +3 -1
  207. package/react/stepper/index.d.ts +3 -1
  208. package/react/styles/form-check.cjs.js +1 -1
  209. package/react/styles/form-check.js +1 -1
  210. package/react/styles/form-hint.cjs.js +1 -1
  211. package/react/styles/form-hint.js +1 -1
  212. package/react/styles/form-label.cjs.js +1 -1
  213. package/react/styles/form-label.js +1 -1
  214. package/react/styles/form-text-control.cjs.js +1 -1
  215. package/react/styles/form-text-control.js +1 -1
  216. package/react/subnav/index.d.ts +3 -1
  217. package/react/subnav-item/index.d.ts +3 -1
  218. package/react/switch/index.d.ts +3 -1
  219. package/react/system-banner/index.d.ts +3 -1
  220. package/react/system-banner-item/index.d.ts +3 -1
  221. package/react/tab/index.d.ts +3 -1
  222. package/react/tab-group/index.d.ts +3 -1
  223. package/react/tab-panel/index.d.ts +3 -1
  224. package/react/table/index.d.ts +3 -1
  225. package/react/table-cell/index.d.ts +3 -1
  226. package/react/table-head/index.d.ts +3 -1
  227. package/react/table-of-contents/index.d.ts +3 -1
  228. package/react/table-row/index.d.ts +3 -1
  229. package/react/textarea/index.d.ts +3 -1
  230. package/react/thumbnail-card/index.d.ts +3 -1
  231. package/react/toast/index.d.ts +3 -1
  232. package/react/toast-container/index.d.ts +3 -1
  233. package/react/tooltip/index.d.ts +3 -1
  234. package/styles/form-check.js +1 -1
  235. package/styles/form-hint.js +1 -1
  236. package/styles/form-label.js +1 -1
  237. package/styles/form-text-control.js +1 -1
  238. package/types/react.d.ts +101 -101
@@ -1,6 +1,6 @@
1
1
  import { css } from 'lit';
2
2
 
3
- var css_248z = css`:host([disabled]){cursor:not-allowed}.dropdown-item{align-items:center;background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-color-default);cursor:pointer;display:flex;gap:var(--sgds-gap-sm);padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-align:inherit}.dropdown-item:hover{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus,.dropdown-item:focus-visible{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.dropdown-item.active{background-color:var(--sgds-bg-translucent-subtle);color:var(--sgds-primary-color-default);text-decoration:none}.dropdown-item.disabled,.dropdown-item:disabled{opacity:var(--sgds-opacity-50);pointer-events:none}::slotted(*){color:inherit!important;display:flex;gap:var(--sgds-gap-sm);text-decoration:none!important}::slotted(a),::slotted(sgds-checkbox){flex:1;margin:calc(var(--sgds-padding-sm)*-1) calc(var(--sgds-padding-lg)*-1);padding:var(--sgds-padding-sm) var(--sgds-padding-lg)}.dropdown-item.mainnav-dropdown-link{padding:var(--sgds-padding-none)}.dropdown-item.mainnav-dropdown-link ::slotted(*){box-sizing:border-box;margin:auto;max-width:var(--sgds-mainnav-max-width,1440px);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x)}@media screen and (min-width:1024px){.dropdown-item.mainnav-dropdown-link ::slotted(*){padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}}`;
3
+ var css_248z = css`:host([disabled]){cursor:not-allowed}.dropdown-item{align-items:center;background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-color-default);cursor:pointer;display:flex;gap:var(--sgds-gap-sm);padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-align:inherit}.dropdown-item:hover{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus,.dropdown-item:focus-visible{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.dropdown-item.active{background-color:var(--sgds-bg-translucent-subtle);color:var(--sgds-primary-color-default);text-decoration:none}.dropdown-item.disabled,.dropdown-item:disabled{opacity:var(--sgds-opacity-40);pointer-events:none}::slotted(*){color:inherit!important;display:flex;gap:var(--sgds-gap-sm);text-decoration:none!important}::slotted(a),::slotted(sgds-checkbox){flex:1;margin:calc(var(--sgds-padding-sm)*-1) calc(var(--sgds-padding-lg)*-1);padding:var(--sgds-padding-sm) var(--sgds-padding-lg)}.dropdown-item.mainnav-dropdown-link{padding:var(--sgds-padding-none)}.dropdown-item.mainnav-dropdown-link ::slotted(*){box-sizing:border-box;margin:auto;max-width:var(--sgds-mainnav-max-width,1440px);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x)}@media screen and (min-width:1024px){.dropdown-item.mainnav-dropdown-link ::slotted(*){padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}}`;
4
4
 
5
5
  export { css_248z as default };
6
6
  //# sourceMappingURL=dropdown-item.js.map
@@ -2294,7 +2294,7 @@ class extends Ee{constructor(e){if(super(e),e.type!==Le||"class"!==e.name||e.str
2294
2294
  clip-rule="evenodd"
2295
2295
  />
2296
2296
  </svg>
2297
- `};var zl=n`:host{color:inherit;display:inline-flex;vertical-align:bottom}:host(.icon-left){margin-right:.25rem}:host(.icon-right){margin-left:.25rem}:host([size=xs]) svg{height:var(--sgds-icon-size-xs);width:var(--sgds-icon-size-xs)}:host([size=sm]) svg{height:var(--sgds-icon-size-sm);width:var(--sgds-icon-size-sm)}:host([size=md]) svg{height:var(--sgds-icon-size-md);width:var(--sgds-icon-size-md)}:host([size=xl]) svg{height:var(--sgds-icon-size-xl);width:var(--sgds-icon-size-xl)}:host([size="2-xl"]) svg{height:var(--sgds-icon-size-2-xl);width:var(--sgds-icon-size-2-xl)}:host([size="3-xl"]) svg{height:var(--sgds-icon-size-3-xl);width:var(--sgds-icon-size-3-xl)}svg{display:inline-block;height:var(--sgds-icon-size-lg);width:var(--sgds-icon-size-lg)}`;class Ul extends fl{constructor(){super(...arguments),this.size="lg"}_getIconByName(e){if(!e)return;const t=Il[e];if(t)return t;console.warn(`Icon not found: ${e}`)}render(){const e=this._getIconByName(this.name);return e||le}}Ul.styles=[...fl.styles,zl],e([Ve({type:String,reflect:!0})],Ul.prototype,"name",void 0),e([Ve({type:String,reflect:!0})],Ul.prototype,"size",void 0);var Wl=n`:host([disabled]){cursor:not-allowed}.dropdown-item{align-items:center;background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-color-default);cursor:pointer;display:flex;gap:var(--sgds-gap-sm);padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-align:inherit}.dropdown-item:hover{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus,.dropdown-item:focus-visible{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.dropdown-item.active{background-color:var(--sgds-bg-translucent-subtle);color:var(--sgds-primary-color-default);text-decoration:none}.dropdown-item.disabled,.dropdown-item:disabled{opacity:var(--sgds-opacity-50);pointer-events:none}::slotted(*){color:inherit!important;display:flex;gap:var(--sgds-gap-sm);text-decoration:none!important}::slotted(a),::slotted(sgds-checkbox){flex:1;margin:calc(var(--sgds-padding-sm)*-1) calc(var(--sgds-padding-lg)*-1);padding:var(--sgds-padding-sm) var(--sgds-padding-lg)}.dropdown-item.mainnav-dropdown-link{padding:var(--sgds-padding-none)}.dropdown-item.mainnav-dropdown-link ::slotted(*){box-sizing:border-box;margin:auto;max-width:var(--sgds-mainnav-max-width,1440px);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x)}@media screen and (min-width:1024px){.dropdown-item.mainnav-dropdown-link ::slotted(*){padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}}`;class Fl extends fl{constructor(){super(...arguments),this.active=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e=>{"Enter"===e.key&&this.anchor[0].click()}),this.setAttribute("role","menuitem"),this.setAttribute("aria-disabled",`${this.disabled}`)}render(){return Q`
2297
+ `};var zl=n`:host{color:inherit;display:inline-flex;vertical-align:bottom}:host(.icon-left){margin-right:.25rem}:host(.icon-right){margin-left:.25rem}:host([size=xs]) svg{height:var(--sgds-icon-size-xs);width:var(--sgds-icon-size-xs)}:host([size=sm]) svg{height:var(--sgds-icon-size-sm);width:var(--sgds-icon-size-sm)}:host([size=md]) svg{height:var(--sgds-icon-size-md);width:var(--sgds-icon-size-md)}:host([size=xl]) svg{height:var(--sgds-icon-size-xl);width:var(--sgds-icon-size-xl)}:host([size="2-xl"]) svg{height:var(--sgds-icon-size-2-xl);width:var(--sgds-icon-size-2-xl)}:host([size="3-xl"]) svg{height:var(--sgds-icon-size-3-xl);width:var(--sgds-icon-size-3-xl)}svg{display:inline-block;height:var(--sgds-icon-size-lg);width:var(--sgds-icon-size-lg)}`;class Ul extends fl{constructor(){super(...arguments),this.size="lg"}_getIconByName(e){if(!e)return;const t=Il[e];if(t)return t;console.warn(`Icon not found: ${e}`)}render(){const e=this._getIconByName(this.name);return e||le}}Ul.styles=[...fl.styles,zl],e([Ve({type:String,reflect:!0})],Ul.prototype,"name",void 0),e([Ve({type:String,reflect:!0})],Ul.prototype,"size",void 0);var Wl=n`:host([disabled]){cursor:not-allowed}.dropdown-item{align-items:center;background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-color-default);cursor:pointer;display:flex;gap:var(--sgds-gap-sm);padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-align:inherit}.dropdown-item:hover{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus,.dropdown-item:focus-visible{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.dropdown-item.active{background-color:var(--sgds-bg-translucent-subtle);color:var(--sgds-primary-color-default);text-decoration:none}.dropdown-item.disabled,.dropdown-item:disabled{opacity:var(--sgds-opacity-40);pointer-events:none}::slotted(*){color:inherit!important;display:flex;gap:var(--sgds-gap-sm);text-decoration:none!important}::slotted(a),::slotted(sgds-checkbox){flex:1;margin:calc(var(--sgds-padding-sm)*-1) calc(var(--sgds-padding-lg)*-1);padding:var(--sgds-padding-sm) var(--sgds-padding-lg)}.dropdown-item.mainnav-dropdown-link{padding:var(--sgds-padding-none)}.dropdown-item.mainnav-dropdown-link ::slotted(*){box-sizing:border-box;margin:auto;max-width:var(--sgds-mainnav-max-width,1440px);padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x)}@media screen and (min-width:1024px){.dropdown-item.mainnav-dropdown-link ::slotted(*){padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}}`;class Fl extends fl{constructor(){super(...arguments),this.active=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e=>{"Enter"===e.key&&this.anchor[0].click()}),this.setAttribute("role","menuitem"),this.setAttribute("aria-disabled",`${this.disabled}`)}render(){return Q`
2298
2298
  <div
2299
2299
  class="dropdown-item ${_l({disabled:this.disabled,active:this.active})}"
2300
2300
  tabindex=${this.disabled?"-1":"0"}
@@ -10,7 +10,7 @@ const t=globalThis,l=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
10
10
  * Copyright 2017 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const y=globalThis,V=e=>{y.emitLitDebugLogEvents&&y.dispatchEvent(new CustomEvent("lit-debug",{detail:e}))};let H,$=0;y.litIssuedWarnings??=new Set,H=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",y.litIssuedWarnings.has(t)||y.litIssuedWarnings.has(e)||(console.warn(t),y.litIssuedWarnings.add(t))},queueMicrotask(()=>{H("dev-mode","Lit is in dev mode. Not recommended for production!")});const S=y.ShadyDOM?.inUse&&!0===y.ShadyDOM?.noPatch?y.ShadyDOM.wrap:e=>e,B=y.trustedTypes,k=B?B.createPolicy("lit-html",{createHTML:e=>e}):void 0,L=e=>e,A=(e,t,l)=>L,E=e=>{if(oe!==A)throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");oe=e},P=()=>{oe=A},z=(e,t,l)=>oe(e,t,l),T="$lit$",I=`lit$${Math.random().toFixed(9).slice(2)}$`,N="?"+I,R=`<${N}>`,U=document,O=()=>U.createComment(""),D=e=>null===e||"object"!=typeof e&&"function"!=typeof e,F=Array.isArray,W="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,J=/>/g,G=new RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,X=/"/g,Y=/^(?:script|style|textarea|title)$/i,Q=(ee=1,(e,...t)=>(e.some(e=>void 0===e)&&console.warn("Some template strings are undefined.\nThis is probably caused by illegal octal escape sequences."),t.some(e=>e?._$litStatic$)&&H("","Static values 'literal' or 'unsafeStatic' cannot be used as values to non-static templates.\nPlease use the static 'html' tag function. See https://lit.dev/docs/templates/expressions/#static-expressions"),{_$litType$:ee,strings:e,values:t}));var ee;const te=Symbol.for("lit-noChange"),le=Symbol.for("lit-nothing"),ie=new WeakMap,ae=U.createTreeWalker(U,129);let oe=A;function re(e,t){if(!F(e)||!e.hasOwnProperty("raw")){let e="invalid template strings array";throw e="\n Internal Error: expected template strings to be an array\n with a 'raw' field. Faking a template strings array by\n calling html or svg like an ordinary function is effectively\n the same as calling unsafeHtml and can lead to major security\n issues, e.g. opening your code up to XSS attacks.\n If you're using the html or svg tagged template functions normally\n and still seeing this error, please file a bug at\n https://github.com/lit/lit/issues/new?template=bug_report.md\n and include information about your build tooling, if any.\n ".trim().replace(/\n */g,"\n"),new Error(e)}return void 0!==k?k.createHTML(t):t}class se{constructor({strings:e,_$litType$:t},l){let i;this.parts=[];let a=0,o=0;const r=e.length-1,s=this.parts,[n,c]=((e,t)=>{const l=e.length-1,i=[];let a,o=2===t?"<svg>":3===t?"<math>":"",r=q;for(let t=0;t<l;t++){const l=e[t];let s,n,c=-1,h=0;for(;h<l.length&&(r.lastIndex=h,n=r.exec(l),null!==n);)if(h=r.lastIndex,r===q){if("!--"===n[1])r=j;else if(void 0!==n[1])r=J;else if(void 0!==n[2])Y.test(n[2])&&(a=new RegExp(`</${n[2]}`,"g")),r=G;else if(void 0!==n[3])throw new Error("Bindings in tag names are not supported. Please use static templates instead. See https://lit.dev/docs/templates/expressions/#static-expressions")}else r===G?">"===n[0]?(r=a??q,c=-1):void 0===n[1]?c=-2:(c=r.lastIndex-n[2].length,s=n[1],r=void 0===n[3]?G:'"'===n[3]?X:K):r===X||r===K?r=G:r===j||r===J?r=q:(r=G,a=void 0);console.assert(-1===c||r===G||r===K||r===X,"unexpected parse state B");const d=r===G&&e[t+1].startsWith("/>")?" ":"";o+=r===q?l+R:c>=0?(i.push(s),l.slice(0,c)+T+l.slice(c)+I+d):l+I+(-2===c?t:d)}return[re(e,o+(e[l]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]})(e,t);if(this.el=se.createElement(n,l),ae.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=ae.nextNode())&&s.length<r;){if(1===i.nodeType){{const e=i.localName;if(/^(?:textarea|template)$/i.test(e)&&i.innerHTML.includes(I)){const t=`Expressions are not supported inside \`${e}\` elements. See https://lit.dev/msg/expression-in-${e} for more information.`;if("template"===e)throw new Error(t);H("",t)}}if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(T)){const t=c[o++],l=i.getAttribute(e).split(I),r=/([.?@])?(.*)/.exec(t);s.push({type:1,index:a,name:r[2],strings:l,ctor:"."===r[1]?ve:"?"===r[1]?ge:"@"===r[1]?pe:de}),i.removeAttribute(e)}else e.startsWith(I)&&(s.push({type:6,index:a}),i.removeAttribute(e));if(Y.test(i.tagName)){const e=i.textContent.split(I),t=e.length-1;if(t>0){i.textContent=B?B.emptyScript:"";for(let l=0;l<t;l++)i.append(e[l],O()),ae.nextNode(),s.push({type:2,index:++a});i.append(e[t],O())}}}else if(8===i.nodeType){if(i.data===N)s.push({type:2,index:a});else{let e=-1;for(;-1!==(e=i.data.indexOf(I,e+1));)s.push({type:7,index:a}),e+=I.length-1}}a++}if(c.length!==o)throw new Error('Detected duplicate attribute bindings. This occurs if your template has duplicate attributes on an element tag. For example "<input ?disabled=${true} ?disabled=${false}>" contains a duplicate "disabled" attribute. The error was detected in the following template: \n`'+e.join("${...}")+"`");V&&V({kind:"template prep",template:this,clonableTemplate:this.el,parts:this.parts,strings:e})}static createElement(e,t){const l=U.createElement("template");return l.innerHTML=e,l}}function ne(e,t,l=e,i){if(t===te)return t;let a=void 0!==i?l.__directives?.[i]:l.__directive;const o=D(t)?void 0:t._$litDirective$;return a?.constructor!==o&&(a?._$notifyDirectiveConnectionChanged?.(!1),void 0===o?a=void 0:(a=new o(e),a._$initialize(e,l,i)),void 0!==i?(l.__directives??=[])[i]=a:l.__directive=a),void 0!==a&&(t=ne(e,a._$resolve(e,t.values),a,i)),t}class ce{constructor(e,t){this._$parts=[],this._$disconnectableChildren=void 0,this._$template=e,this._$parent=t}get parentNode(){return this._$parent.parentNode}get _$isConnected(){return this._$parent._$isConnected}_clone(e){const{el:{content:t},parts:l}=this._$template,i=(e?.creationScope??U).importNode(t,!0);ae.currentNode=i;let a=ae.nextNode(),o=0,r=0,s=l[0];for(;void 0!==s;){if(o===s.index){let t;2===s.type?t=new he(a,a.nextSibling,this,e):1===s.type?t=new s.ctor(a,s.name,s.strings,this,e):6===s.type&&(t=new ue(a,this,e)),this._$parts.push(t),s=l[++r]}o!==s?.index&&(a=ae.nextNode(),o++)}return ae.currentNode=U,i}_update(e){let t=0;for(const l of this._$parts)void 0!==l&&(V&&V({kind:"set part",part:l,value:e[t],valueIndex:t,values:e,templateInstance:this}),void 0!==l.strings?(l._$setValue(e,l,t),t+=l.strings.length-2):l._$setValue(e[t])),t++}}class he{get _$isConnected(){return this._$parent?._$isConnected??this.__isConnected}constructor(e,t,l,i){this.type=2,this._$committedValue=le,this._$disconnectableChildren=void 0,this._$startNode=e,this._$endNode=t,this._$parent=l,this.options=i,this.__isConnected=i?.isConnected??!0,this._textSanitizer=void 0}get parentNode(){let e=S(this._$startNode).parentNode;const t=this._$parent;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$startNode}get endNode(){return this._$endNode}_$setValue(e,t=this){if(null===this.parentNode)throw new Error("This `ChildPart` has no `parentNode` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's `innerHTML` or `textContent` can do this.");if(e=ne(this,e,t),D(e))e===le||null==e||""===e?(this._$committedValue!==le&&(V&&V({kind:"commit nothing to child",start:this._$startNode,end:this._$endNode,parent:this._$parent,options:this.options}),this._$clear()),this._$committedValue=le):e!==this._$committedValue&&e!==te&&this._commitText(e);else if(void 0!==e._$litType$)this._commitTemplateResult(e);else if(void 0!==e.nodeType){if(this.options?.host===e)return this._commitText("[probable mistake: rendered a template's host in itself (commonly caused by writing ${this} in a template]"),void console.warn("Attempted to render the template host",e,"inside itself. This is almost always a mistake, and in dev mode ","we render some warning text. In production however, we'll ","render it, which will usually result in an error, and sometimes ","in the element disappearing from the DOM.");this._commitNode(e)}else(e=>F(e)||"function"==typeof e?.[Symbol.iterator])(e)?this._commitIterable(e):this._commitText(e)}_insert(e){return S(S(this._$startNode).parentNode).insertBefore(e,this._$endNode)}_commitNode(e){if(this._$committedValue!==e){if(this._$clear(),oe!==A){const e=this._$startNode.parentNode?.nodeName;if("STYLE"===e||"SCRIPT"===e){let t="Forbidden";throw t="STYLE"===e?"Lit does not support binding inside style nodes. This is a security risk, as style injection attacks can exfiltrate data and spoof UIs. Consider instead using css`...` literals to compose styles, and do dynamic styling with css custom properties, ::parts, <slot>s, and by mutating the DOM rather than stylesheets.":"Lit does not support binding inside script nodes. This is a security risk, as it could allow arbitrary code execution.",new Error(t)}}V&&V({kind:"commit node",start:this._$startNode,parent:this._$parent,value:e,options:this.options}),this._$committedValue=this._insert(e)}}_commitText(e){if(this._$committedValue!==le&&D(this._$committedValue)){const t=S(this._$startNode).nextSibling;void 0===this._textSanitizer&&(this._textSanitizer=z(t,"data","property")),e=this._textSanitizer(e),V&&V({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}else{const t=U.createTextNode("");this._commitNode(t),void 0===this._textSanitizer&&(this._textSanitizer=z(t,"data","property")),e=this._textSanitizer(e),V&&V({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}this._$committedValue=e}_commitTemplateResult(e){const{values:t,_$litType$:l}=e,i="number"==typeof l?this._$getTemplate(e):(void 0===l.el&&(l.el=se.createElement(re(l.h,l.h[0]),this.options)),l);if(this._$committedValue?._$template===i)V&&V({kind:"template updating",template:i,instance:this._$committedValue,parts:this._$committedValue._$parts,options:this.options,values:t}),this._$committedValue._update(t);else{const e=new ce(i,this),l=e._clone(this.options);V&&V({kind:"template instantiated",template:i,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),e._update(t),V&&V({kind:"template instantiated and updated",template:i,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),this._commitNode(l),this._$committedValue=e}}_$getTemplate(e){let t=ie.get(e.strings);return void 0===t&&ie.set(e.strings,t=new se(e)),t}_commitIterable(e){F(this._$committedValue)||(this._$committedValue=[],this._$clear());const t=this._$committedValue;let l,i=0;for(const a of e)i===t.length?t.push(l=new he(this._insert(O()),this._insert(O()),this,this.options)):l=t[i],l._$setValue(a),i++;i<t.length&&(this._$clear(l&&S(l._$endNode).nextSibling,i),t.length=i)}_$clear(e=S(this._$startNode).nextSibling,t){for(this._$notifyConnectionChanged?.(!1,!0,t);e!==this._$endNode;){const t=S(e).nextSibling;S(e).remove(),e=t}}setConnected(e){if(void 0!==this._$parent)throw new Error("part.setConnected() may only be called on a RootPart returned from render().");this.__isConnected=e,this._$notifyConnectionChanged?.(e)}}class de{get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}constructor(e,t,l,i,a){this.type=1,this._$committedValue=le,this._$disconnectableChildren=void 0,this.element=e,this.name=t,this._$parent=i,this.options=a,l.length>2||""!==l[0]||""!==l[1]?(this._$committedValue=new Array(l.length-1).fill(new String),this.strings=l):this._$committedValue=le,this._sanitizer=void 0}_$setValue(e,t=this,l,i){const a=this.strings;let o=!1;if(void 0===a)e=ne(this,e,t,0),o=!D(e)||e!==this._$committedValue&&e!==te,o&&(this._$committedValue=e);else{const i=e;let r,s;for(e=a[0],r=0;r<a.length-1;r++)s=ne(this,i[l+r],t,r),s===te&&(s=this._$committedValue[r]),o||=!D(s)||s!==this._$committedValue[r],s===le?e=le:e!==le&&(e+=(s??"")+a[r+1]),this._$committedValue[r]=s}o&&!i&&this._commitValue(e)}_commitValue(e){e===le?S(this.element).removeAttribute(this.name):(void 0===this._sanitizer&&(this._sanitizer=oe(this.element,this.name,"attribute")),e=this._sanitizer(e??""),V&&V({kind:"commit attribute",element:this.element,name:this.name,value:e,options:this.options}),S(this.element).setAttribute(this.name,e??""))}}class ve extends de{constructor(){super(...arguments),this.type=3}_commitValue(e){void 0===this._sanitizer&&(this._sanitizer=oe(this.element,this.name,"property")),e=this._sanitizer(e),V&&V({kind:"commit property",element:this.element,name:this.name,value:e,options:this.options}),this.element[this.name]=e===le?void 0:e}}class ge extends de{constructor(){super(...arguments),this.type=4}_commitValue(e){V&&V({kind:"commit boolean attribute",element:this.element,name:this.name,value:!(!e||e===le),options:this.options}),S(this.element).toggleAttribute(this.name,!!e&&e!==le)}}class pe extends de{constructor(e,t,l,i,a){if(super(e,t,l,i,a),this.type=5,void 0!==this.strings)throw new Error(`A \`<${e.localName}>\` has a \`@${t}=...\` listener with invalid content. Event listeners in templates must have exactly one expression and no surrounding text.`)}_$setValue(e,t=this){if((e=ne(this,e,t,0)??le)===te)return;const l=this._$committedValue,i=e===le&&l!==le||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,a=e!==le&&(l===le||i);V&&V({kind:"commit event listener",element:this.element,name:this.name,value:e,options:this.options,removeListener:i,addListener:a,oldListener:l}),i&&this.element.removeEventListener(this.name,this,l),a&&this.element.addEventListener(this.name,this,e),this._$committedValue=e}handleEvent(e){"function"==typeof this._$committedValue?this._$committedValue.call(this.options?.host??this.element,e):this._$committedValue.handleEvent(e)}}class ue{constructor(e,t,l){this.element=e,this.type=6,this._$disconnectableChildren=void 0,this._$parent=t,this.options=l}get _$isConnected(){return this._$parent._$isConnected}_$setValue(e){V&&V({kind:"commit to element binding",element:this.element,value:e,options:this.options}),ne(this,e)}}const we=y.litHtmlPolyfillSupportDevMode;we?.(se,he),(y.litHtmlVersions??=[]).push("3.3.2"),y.litHtmlVersions.length>1&&queueMicrotask(()=>{H("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")});const fe=(e,t,l)=>{if(null==t)throw new TypeError(`The container to render into may not be ${t}`);const i=$++,a=l?.renderBefore??t;let o=a._$litPart$;if(V&&V({kind:"begin render",id:i,value:e,container:t,options:l,part:o}),void 0===o){const e=l?.renderBefore??null;a._$litPart$=o=new he(t.insertBefore(O(),e),e,void 0,l??{})}return o._$setValue(e),V&&V({kind:"end render",id:i,value:e,container:t,options:l,part:o}),o};fe.setSanitizer=E,fe.createSanitizer=z,fe._testOnlyClearSanitizerFactoryDoNotCallOrElse=P;
13
+ const y=globalThis,V=e=>{y.emitLitDebugLogEvents&&y.dispatchEvent(new CustomEvent("lit-debug",{detail:e}))};let H,$=0;y.litIssuedWarnings??=new Set,H=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",y.litIssuedWarnings.has(t)||y.litIssuedWarnings.has(e)||(console.warn(t),y.litIssuedWarnings.add(t))},queueMicrotask(()=>{H("dev-mode","Lit is in dev mode. Not recommended for production!")});const S=y.ShadyDOM?.inUse&&!0===y.ShadyDOM?.noPatch?y.ShadyDOM.wrap:e=>e,B=y.trustedTypes,k=B?B.createPolicy("lit-html",{createHTML:e=>e}):void 0,L=e=>e,A=(e,t,l)=>L,E=e=>{if(oe!==A)throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");oe=e},P=()=>{oe=A},T=(e,t,l)=>oe(e,t,l),z="$lit$",I=`lit$${Math.random().toFixed(9).slice(2)}$`,N="?"+I,R=`<${N}>`,U=document,O=()=>U.createComment(""),D=e=>null===e||"object"!=typeof e&&"function"!=typeof e,F=Array.isArray,W="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,J=/>/g,G=new RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,X=/"/g,Y=/^(?:script|style|textarea|title)$/i,Q=(ee=1,(e,...t)=>(e.some(e=>void 0===e)&&console.warn("Some template strings are undefined.\nThis is probably caused by illegal octal escape sequences."),t.some(e=>e?._$litStatic$)&&H("","Static values 'literal' or 'unsafeStatic' cannot be used as values to non-static templates.\nPlease use the static 'html' tag function. See https://lit.dev/docs/templates/expressions/#static-expressions"),{_$litType$:ee,strings:e,values:t}));var ee;const te=Symbol.for("lit-noChange"),le=Symbol.for("lit-nothing"),ie=new WeakMap,ae=U.createTreeWalker(U,129);let oe=A;function re(e,t){if(!F(e)||!e.hasOwnProperty("raw")){let e="invalid template strings array";throw e="\n Internal Error: expected template strings to be an array\n with a 'raw' field. Faking a template strings array by\n calling html or svg like an ordinary function is effectively\n the same as calling unsafeHtml and can lead to major security\n issues, e.g. opening your code up to XSS attacks.\n If you're using the html or svg tagged template functions normally\n and still seeing this error, please file a bug at\n https://github.com/lit/lit/issues/new?template=bug_report.md\n and include information about your build tooling, if any.\n ".trim().replace(/\n */g,"\n"),new Error(e)}return void 0!==k?k.createHTML(t):t}class se{constructor({strings:e,_$litType$:t},l){let i;this.parts=[];let a=0,o=0;const r=e.length-1,s=this.parts,[n,c]=((e,t)=>{const l=e.length-1,i=[];let a,o=2===t?"<svg>":3===t?"<math>":"",r=q;for(let t=0;t<l;t++){const l=e[t];let s,n,c=-1,h=0;for(;h<l.length&&(r.lastIndex=h,n=r.exec(l),null!==n);)if(h=r.lastIndex,r===q){if("!--"===n[1])r=j;else if(void 0!==n[1])r=J;else if(void 0!==n[2])Y.test(n[2])&&(a=new RegExp(`</${n[2]}`,"g")),r=G;else if(void 0!==n[3])throw new Error("Bindings in tag names are not supported. Please use static templates instead. See https://lit.dev/docs/templates/expressions/#static-expressions")}else r===G?">"===n[0]?(r=a??q,c=-1):void 0===n[1]?c=-2:(c=r.lastIndex-n[2].length,s=n[1],r=void 0===n[3]?G:'"'===n[3]?X:K):r===X||r===K?r=G:r===j||r===J?r=q:(r=G,a=void 0);console.assert(-1===c||r===G||r===K||r===X,"unexpected parse state B");const d=r===G&&e[t+1].startsWith("/>")?" ":"";o+=r===q?l+R:c>=0?(i.push(s),l.slice(0,c)+z+l.slice(c)+I+d):l+I+(-2===c?t:d)}return[re(e,o+(e[l]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]})(e,t);if(this.el=se.createElement(n,l),ae.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=ae.nextNode())&&s.length<r;){if(1===i.nodeType){{const e=i.localName;if(/^(?:textarea|template)$/i.test(e)&&i.innerHTML.includes(I)){const t=`Expressions are not supported inside \`${e}\` elements. See https://lit.dev/msg/expression-in-${e} for more information.`;if("template"===e)throw new Error(t);H("",t)}}if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(z)){const t=c[o++],l=i.getAttribute(e).split(I),r=/([.?@])?(.*)/.exec(t);s.push({type:1,index:a,name:r[2],strings:l,ctor:"."===r[1]?ve:"?"===r[1]?ge:"@"===r[1]?pe:de}),i.removeAttribute(e)}else e.startsWith(I)&&(s.push({type:6,index:a}),i.removeAttribute(e));if(Y.test(i.tagName)){const e=i.textContent.split(I),t=e.length-1;if(t>0){i.textContent=B?B.emptyScript:"";for(let l=0;l<t;l++)i.append(e[l],O()),ae.nextNode(),s.push({type:2,index:++a});i.append(e[t],O())}}}else if(8===i.nodeType){if(i.data===N)s.push({type:2,index:a});else{let e=-1;for(;-1!==(e=i.data.indexOf(I,e+1));)s.push({type:7,index:a}),e+=I.length-1}}a++}if(c.length!==o)throw new Error('Detected duplicate attribute bindings. This occurs if your template has duplicate attributes on an element tag. For example "<input ?disabled=${true} ?disabled=${false}>" contains a duplicate "disabled" attribute. The error was detected in the following template: \n`'+e.join("${...}")+"`");V&&V({kind:"template prep",template:this,clonableTemplate:this.el,parts:this.parts,strings:e})}static createElement(e,t){const l=U.createElement("template");return l.innerHTML=e,l}}function ne(e,t,l=e,i){if(t===te)return t;let a=void 0!==i?l.__directives?.[i]:l.__directive;const o=D(t)?void 0:t._$litDirective$;return a?.constructor!==o&&(a?._$notifyDirectiveConnectionChanged?.(!1),void 0===o?a=void 0:(a=new o(e),a._$initialize(e,l,i)),void 0!==i?(l.__directives??=[])[i]=a:l.__directive=a),void 0!==a&&(t=ne(e,a._$resolve(e,t.values),a,i)),t}class ce{constructor(e,t){this._$parts=[],this._$disconnectableChildren=void 0,this._$template=e,this._$parent=t}get parentNode(){return this._$parent.parentNode}get _$isConnected(){return this._$parent._$isConnected}_clone(e){const{el:{content:t},parts:l}=this._$template,i=(e?.creationScope??U).importNode(t,!0);ae.currentNode=i;let a=ae.nextNode(),o=0,r=0,s=l[0];for(;void 0!==s;){if(o===s.index){let t;2===s.type?t=new he(a,a.nextSibling,this,e):1===s.type?t=new s.ctor(a,s.name,s.strings,this,e):6===s.type&&(t=new ue(a,this,e)),this._$parts.push(t),s=l[++r]}o!==s?.index&&(a=ae.nextNode(),o++)}return ae.currentNode=U,i}_update(e){let t=0;for(const l of this._$parts)void 0!==l&&(V&&V({kind:"set part",part:l,value:e[t],valueIndex:t,values:e,templateInstance:this}),void 0!==l.strings?(l._$setValue(e,l,t),t+=l.strings.length-2):l._$setValue(e[t])),t++}}class he{get _$isConnected(){return this._$parent?._$isConnected??this.__isConnected}constructor(e,t,l,i){this.type=2,this._$committedValue=le,this._$disconnectableChildren=void 0,this._$startNode=e,this._$endNode=t,this._$parent=l,this.options=i,this.__isConnected=i?.isConnected??!0,this._textSanitizer=void 0}get parentNode(){let e=S(this._$startNode).parentNode;const t=this._$parent;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$startNode}get endNode(){return this._$endNode}_$setValue(e,t=this){if(null===this.parentNode)throw new Error("This `ChildPart` has no `parentNode` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's `innerHTML` or `textContent` can do this.");if(e=ne(this,e,t),D(e))e===le||null==e||""===e?(this._$committedValue!==le&&(V&&V({kind:"commit nothing to child",start:this._$startNode,end:this._$endNode,parent:this._$parent,options:this.options}),this._$clear()),this._$committedValue=le):e!==this._$committedValue&&e!==te&&this._commitText(e);else if(void 0!==e._$litType$)this._commitTemplateResult(e);else if(void 0!==e.nodeType){if(this.options?.host===e)return this._commitText("[probable mistake: rendered a template's host in itself (commonly caused by writing ${this} in a template]"),void console.warn("Attempted to render the template host",e,"inside itself. This is almost always a mistake, and in dev mode ","we render some warning text. In production however, we'll ","render it, which will usually result in an error, and sometimes ","in the element disappearing from the DOM.");this._commitNode(e)}else(e=>F(e)||"function"==typeof e?.[Symbol.iterator])(e)?this._commitIterable(e):this._commitText(e)}_insert(e){return S(S(this._$startNode).parentNode).insertBefore(e,this._$endNode)}_commitNode(e){if(this._$committedValue!==e){if(this._$clear(),oe!==A){const e=this._$startNode.parentNode?.nodeName;if("STYLE"===e||"SCRIPT"===e){let t="Forbidden";throw t="STYLE"===e?"Lit does not support binding inside style nodes. This is a security risk, as style injection attacks can exfiltrate data and spoof UIs. Consider instead using css`...` literals to compose styles, and do dynamic styling with css custom properties, ::parts, <slot>s, and by mutating the DOM rather than stylesheets.":"Lit does not support binding inside script nodes. This is a security risk, as it could allow arbitrary code execution.",new Error(t)}}V&&V({kind:"commit node",start:this._$startNode,parent:this._$parent,value:e,options:this.options}),this._$committedValue=this._insert(e)}}_commitText(e){if(this._$committedValue!==le&&D(this._$committedValue)){const t=S(this._$startNode).nextSibling;void 0===this._textSanitizer&&(this._textSanitizer=T(t,"data","property")),e=this._textSanitizer(e),V&&V({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}else{const t=U.createTextNode("");this._commitNode(t),void 0===this._textSanitizer&&(this._textSanitizer=T(t,"data","property")),e=this._textSanitizer(e),V&&V({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}this._$committedValue=e}_commitTemplateResult(e){const{values:t,_$litType$:l}=e,i="number"==typeof l?this._$getTemplate(e):(void 0===l.el&&(l.el=se.createElement(re(l.h,l.h[0]),this.options)),l);if(this._$committedValue?._$template===i)V&&V({kind:"template updating",template:i,instance:this._$committedValue,parts:this._$committedValue._$parts,options:this.options,values:t}),this._$committedValue._update(t);else{const e=new ce(i,this),l=e._clone(this.options);V&&V({kind:"template instantiated",template:i,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),e._update(t),V&&V({kind:"template instantiated and updated",template:i,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),this._commitNode(l),this._$committedValue=e}}_$getTemplate(e){let t=ie.get(e.strings);return void 0===t&&ie.set(e.strings,t=new se(e)),t}_commitIterable(e){F(this._$committedValue)||(this._$committedValue=[],this._$clear());const t=this._$committedValue;let l,i=0;for(const a of e)i===t.length?t.push(l=new he(this._insert(O()),this._insert(O()),this,this.options)):l=t[i],l._$setValue(a),i++;i<t.length&&(this._$clear(l&&S(l._$endNode).nextSibling,i),t.length=i)}_$clear(e=S(this._$startNode).nextSibling,t){for(this._$notifyConnectionChanged?.(!1,!0,t);e!==this._$endNode;){const t=S(e).nextSibling;S(e).remove(),e=t}}setConnected(e){if(void 0!==this._$parent)throw new Error("part.setConnected() may only be called on a RootPart returned from render().");this.__isConnected=e,this._$notifyConnectionChanged?.(e)}}class de{get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}constructor(e,t,l,i,a){this.type=1,this._$committedValue=le,this._$disconnectableChildren=void 0,this.element=e,this.name=t,this._$parent=i,this.options=a,l.length>2||""!==l[0]||""!==l[1]?(this._$committedValue=new Array(l.length-1).fill(new String),this.strings=l):this._$committedValue=le,this._sanitizer=void 0}_$setValue(e,t=this,l,i){const a=this.strings;let o=!1;if(void 0===a)e=ne(this,e,t,0),o=!D(e)||e!==this._$committedValue&&e!==te,o&&(this._$committedValue=e);else{const i=e;let r,s;for(e=a[0],r=0;r<a.length-1;r++)s=ne(this,i[l+r],t,r),s===te&&(s=this._$committedValue[r]),o||=!D(s)||s!==this._$committedValue[r],s===le?e=le:e!==le&&(e+=(s??"")+a[r+1]),this._$committedValue[r]=s}o&&!i&&this._commitValue(e)}_commitValue(e){e===le?S(this.element).removeAttribute(this.name):(void 0===this._sanitizer&&(this._sanitizer=oe(this.element,this.name,"attribute")),e=this._sanitizer(e??""),V&&V({kind:"commit attribute",element:this.element,name:this.name,value:e,options:this.options}),S(this.element).setAttribute(this.name,e??""))}}class ve extends de{constructor(){super(...arguments),this.type=3}_commitValue(e){void 0===this._sanitizer&&(this._sanitizer=oe(this.element,this.name,"property")),e=this._sanitizer(e),V&&V({kind:"commit property",element:this.element,name:this.name,value:e,options:this.options}),this.element[this.name]=e===le?void 0:e}}class ge extends de{constructor(){super(...arguments),this.type=4}_commitValue(e){V&&V({kind:"commit boolean attribute",element:this.element,name:this.name,value:!(!e||e===le),options:this.options}),S(this.element).toggleAttribute(this.name,!!e&&e!==le)}}class pe extends de{constructor(e,t,l,i,a){if(super(e,t,l,i,a),this.type=5,void 0!==this.strings)throw new Error(`A \`<${e.localName}>\` has a \`@${t}=...\` listener with invalid content. Event listeners in templates must have exactly one expression and no surrounding text.`)}_$setValue(e,t=this){if((e=ne(this,e,t,0)??le)===te)return;const l=this._$committedValue,i=e===le&&l!==le||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,a=e!==le&&(l===le||i);V&&V({kind:"commit event listener",element:this.element,name:this.name,value:e,options:this.options,removeListener:i,addListener:a,oldListener:l}),i&&this.element.removeEventListener(this.name,this,l),a&&this.element.addEventListener(this.name,this,e),this._$committedValue=e}handleEvent(e){"function"==typeof this._$committedValue?this._$committedValue.call(this.options?.host??this.element,e):this._$committedValue.handleEvent(e)}}class ue{constructor(e,t,l){this.element=e,this.type=6,this._$disconnectableChildren=void 0,this._$parent=t,this.options=l}get _$isConnected(){return this._$parent._$isConnected}_$setValue(e){V&&V({kind:"commit to element binding",element:this.element,value:e,options:this.options}),ne(this,e)}}const we=y.litHtmlPolyfillSupportDevMode;we?.(se,he),(y.litHtmlVersions??=[]).push("3.3.2"),y.litHtmlVersions.length>1&&queueMicrotask(()=>{H("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")});const fe=(e,t,l)=>{if(null==t)throw new TypeError(`The container to render into may not be ${t}`);const i=$++,a=l?.renderBefore??t;let o=a._$litPart$;if(V&&V({kind:"begin render",id:i,value:e,container:t,options:l,part:o}),void 0===o){const e=l?.renderBefore??null;a._$litPart$=o=new he(t.insertBefore(O(),e),e,void 0,l??{})}return o._$setValue(e),V&&V({kind:"end render",id:i,value:e,container:t,options:l,part:o}),o};fe.setSanitizer=E,fe.createSanitizer=T,fe._testOnlyClearSanitizerFactoryDoNotCallOrElse=P;
14
14
  /**
15
15
  * @license
16
16
  * Copyright 2017 Google LLC
@@ -59,14 +59,14 @@ function Se(e){return(t,l)=>He(t,l,{async get(){return await this.updateComplete
59
59
  * @license
60
60
  * Copyright 2017 Google LLC
61
61
  * SPDX-License-Identifier: BSD-3-Clause
62
- */const Ee=(e,t)=>{const l=e._$disconnectableChildren;if(void 0===l)return!1;for(const e of l)e._$notifyDirectiveConnectionChanged?.(t,!1),Ee(e,t);return!0},Pe=e=>{let t,l;do{if(void 0===(t=e._$parent))break;l=t._$disconnectableChildren,l.delete(e),e=t}while(0===l?.size)},ze=e=>{for(let t;t=e._$parent;e=t){let l=t._$disconnectableChildren;if(void 0===l)t._$disconnectableChildren=l=new Set;else if(l.has(e))break;l.add(e),Ne(t)}};function Te(e){void 0!==this._$disconnectableChildren?(Pe(this),this._$parent=e,ze(this)):this._$parent=e}function Ie(e,t=!1,l=0){const i=this._$committedValue,a=this._$disconnectableChildren;if(void 0!==a&&0!==a.size)if(t)if(Array.isArray(i))for(let e=l;e<i.length;e++)Ee(i[e],!1),Pe(i[e]);else null!=i&&(Ee(i,!1),Pe(i));else Ee(this,e)}const Ne=e=>{e.type==ke&&(e._$notifyConnectionChanged??=Ie,e._$reparentDisconnectables??=Te)};class Re extends Ae{constructor(){super(...arguments),this._$disconnectableChildren=void 0}_$initialize(e,t,l){super._$initialize(e,t,l),ze(this),this.isConnected=e._$isConnected}_$notifyDirectiveConnectionChanged(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Ee(this,e),Pe(this))}setValue(e){if(void 0===this.__part.strings)this.__part._$setValue(e,this);else{if(void 0===this.__attributeIndex)throw new Error("Expected this.__attributeIndex to be a number");const t=[...this.__part._$committedValue];t[this.__attributeIndex]=e,this.__part._$setValue(t,this,0)}}disconnected(){}reconnected(){}}
62
+ */const Ee=(e,t)=>{const l=e._$disconnectableChildren;if(void 0===l)return!1;for(const e of l)e._$notifyDirectiveConnectionChanged?.(t,!1),Ee(e,t);return!0},Pe=e=>{let t,l;do{if(void 0===(t=e._$parent))break;l=t._$disconnectableChildren,l.delete(e),e=t}while(0===l?.size)},Te=e=>{for(let t;t=e._$parent;e=t){let l=t._$disconnectableChildren;if(void 0===l)t._$disconnectableChildren=l=new Set;else if(l.has(e))break;l.add(e),Ne(t)}};function ze(e){void 0!==this._$disconnectableChildren?(Pe(this),this._$parent=e,Te(this)):this._$parent=e}function Ie(e,t=!1,l=0){const i=this._$committedValue,a=this._$disconnectableChildren;if(void 0!==a&&0!==a.size)if(t)if(Array.isArray(i))for(let e=l;e<i.length;e++)Ee(i[e],!1),Pe(i[e]);else null!=i&&(Ee(i,!1),Pe(i));else Ee(this,e)}const Ne=e=>{e.type==ke&&(e._$notifyConnectionChanged??=Ie,e._$reparentDisconnectables??=ze)};class Re extends Ae{constructor(){super(...arguments),this._$disconnectableChildren=void 0}_$initialize(e,t,l){super._$initialize(e,t,l),Te(this),this.isConnected=e._$isConnected}_$notifyDirectiveConnectionChanged(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Ee(this,e),Pe(this))}setValue(e){if(void 0===this.__part.strings)this.__part._$setValue(e,this);else{if(void 0===this.__attributeIndex)throw new Error("Expected this.__attributeIndex to be a number");const t=[...this.__part._$committedValue];t[this.__attributeIndex]=e,this.__part._$setValue(t,this,0)}}disconnected(){}reconnected(){}}
63
63
  /**
64
64
  * @license
65
65
  * Copyright 2020 Google LLC
66
66
  * SPDX-License-Identifier: BSD-3-Clause
67
- */class Ue{}const Oe=new WeakMap;const De=Le(class extends Re{render(e){return le}update(e,[t]){const l=t!==this._ref;return l&&void 0!==this._ref&&this._updateRefValue(void 0),(l||this._lastElementForRef!==this._element)&&(this._ref=t,this._context=e.options?.host,this._updateRefValue(this._element=e.element)),le}_updateRefValue(e){if(this.isConnected||(e=void 0),"function"==typeof this._ref){const t=this._context??globalThis;let l=Oe.get(t);void 0===l&&(l=new WeakMap,Oe.set(t,l)),void 0!==l.get(this._ref)&&this._ref.call(this._context,void 0),l.set(this._ref,e),void 0!==e&&this._ref.call(this._context,e)}else this._ref.value=e}get _lastElementForRef(){return"function"==typeof this._ref?Oe.get(this._context??globalThis)?.get(this._ref):this._ref?.value}disconnected(){this._lastElementForRef===this._element&&this._updateRefValue(void 0)}reconnected(){this._updateRefValue(this._element)}});var Fe=r`:host{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;color:var(--sgds-body-color-default,#1a1a1a);display:block;font-family:var(--sgds-font-family-brand,"Inter",system-ui,sans-serif);font-size:var(--sgds-font-size-body-md,1rem);font-weight:var(--sgds-font-weight-regular,400);line-height:var(--sgds-line-height-xs,24px);margin:0;*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:disabled{cursor:not-allowed}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}::slotted(a[target=_blank]):after,a[target=_blank]:after{background-color:currentColor;content:"/";display:inline-block;height:1em;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;vertical-align:top;width:1em}::slotted(svg){vertical-align:middle}}`;class We extends xe{emit(e,t){const l=new CustomEvent(e,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(l),l}static define(e,t=this,l={}){if(customElements.get(e));else try{customElements.define(e,t,l)}catch(i){customElements.define(e,class extends t{},l)}}constructor(){super(),this.ssr=Boolean(this.shadowRoot),Object.entries(this.constructor.dependencies).forEach(([e,t])=>{this.constructor.define(e,t)})}firstUpdated(e){var t;super.firstUpdated(e),this.ssr&&(null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("slot").forEach(e=>{e.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}))}}We.styles=[Fe],We.dependencies={},e([Ve({type:Boolean,reflect:!0})],We.prototype,"ssr",void 0);var qe=r`:host{--sgds-close-btn-border-radius:var(--sgds-border-radius-sm);display:inline-flex}:host([size=sm]) .btn-close{height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}:host([tone=fixed-light]) .btn-close{color:var(--sgds-color-fixed-light)}:host([tone=fixed-dark]) .btn-close{color:var(--sgds-color-fixed-dark)}.btn-close{align-items:center;background-color:var(--sgds-bg-transparent);border:0;border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-close-btn-border-radius);cursor:pointer;display:flex;height:var(--sgds-dimension-32);justify-content:center;padding:0;position:relative;width:var(--sgds-dimension-32)}.btn-close:focus,.btn-close:focus-visible,.btn-close:hover{background-color:var(--sgds-bg-translucent)}:host([tone=fixed-light]) .btn-close:focus,:host([tone=fixed-light]) .btn-close:focus-visible,:host([tone=fixed-light]) .btn-close:hover{background-color:var(--sgds-bg-translucent-fixed-light)}:host([tone=fixed-dark]) .btn-close:focus,:host([tone=fixed-dark]) .btn-close:focus-visible,:host([tone=fixed-dark]) .btn-close:hover{background-color:var(--sgds-bg-translucent-fixed-dark)}.btn-close:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.btn-close-sm{height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}.btn-close.btn-close-sm{height:var(--sgds-icon-size-sm);width:var(--sgds-icon-size-sm)}`;function je(e){return!!function(e){return!!customElements.get(e)}(e)||(console.error(`Custom element of name : ${e} is not registered. Remember to import the component file for custom element registration`),!1)}class Je extends We{constructor(){super(...arguments),this.size="md",this.tone="default",this._clickHandler=()=>{}}_handleClick(){this.removeEventListener("click",this._clickHandler),this.addEventListener("click",this._clickHandler)}firstUpdated(e){super.firstUpdated(e),je("sgds-icon")}render(){return Q`
67
+ */class Ue{}const Oe=new WeakMap;const De=Le(class extends Re{render(e){return le}update(e,[t]){const l=t!==this._ref;return l&&void 0!==this._ref&&this._updateRefValue(void 0),(l||this._lastElementForRef!==this._element)&&(this._ref=t,this._context=e.options?.host,this._updateRefValue(this._element=e.element)),le}_updateRefValue(e){if(this.isConnected||(e=void 0),"function"==typeof this._ref){const t=this._context??globalThis;let l=Oe.get(t);void 0===l&&(l=new WeakMap,Oe.set(t,l)),void 0!==l.get(this._ref)&&this._ref.call(this._context,void 0),l.set(this._ref,e),void 0!==e&&this._ref.call(this._context,e)}else this._ref.value=e}get _lastElementForRef(){return"function"==typeof this._ref?Oe.get(this._context??globalThis)?.get(this._ref):this._ref?.value}disconnected(){this._lastElementForRef===this._element&&this._updateRefValue(void 0)}reconnected(){this._updateRefValue(this._element)}});var Fe=r`:host{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;color:var(--sgds-body-color-default,#1a1a1a);display:block;font-family:var(--sgds-font-family-brand,"Inter",system-ui,sans-serif);font-size:var(--sgds-font-size-body-md,1rem);font-weight:var(--sgds-font-weight-regular,400);line-height:var(--sgds-line-height-xs,24px);margin:0;*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:disabled{cursor:not-allowed}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}::slotted(a[target=_blank]):after,a[target=_blank]:after{background-color:currentColor;content:"/";display:inline-block;height:1em;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;vertical-align:top;width:1em}::slotted(svg){vertical-align:middle}}`;class We extends xe{emit(e,t){const l=new CustomEvent(e,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(l),l}static define(e,t=this,l={}){if(customElements.get(e));else try{customElements.define(e,t,l)}catch(i){customElements.define(e,class extends t{},l)}}constructor(){super(),this.ssr=Boolean(this.shadowRoot),Object.entries(this.constructor.dependencies).forEach(([e,t])=>{this.constructor.define(e,t)})}firstUpdated(e){var t;super.firstUpdated(e),this.ssr&&(null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("slot").forEach(e=>{e.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}))}}We.styles=[Fe],We.dependencies={},e([Ve({type:Boolean,reflect:!0})],We.prototype,"ssr",void 0);var qe=r`:host{--sgds-close-btn-border-radius:var(--sgds-border-radius-sm);display:inline-flex}:host([size=sm]) .btn-close{height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}:host([tone=fixed-light]) .btn-close{color:var(--sgds-color-fixed-light)}:host([tone=fixed-dark]) .btn-close{color:var(--sgds-color-fixed-dark)}.btn-close{align-items:center;background-color:var(--sgds-bg-transparent);border:0;border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-close-btn-border-radius);cursor:pointer;display:flex;height:var(--sgds-dimension-32);justify-content:center;padding:0;position:relative;width:var(--sgds-dimension-32)}.btn-close:focus,.btn-close:focus-visible,.btn-close:hover{background-color:var(--sgds-bg-translucent)}:host([tone=fixed-light]) .btn-close:focus,:host([tone=fixed-light]) .btn-close:focus-visible,:host([tone=fixed-light]) .btn-close:hover{background-color:var(--sgds-bg-translucent-fixed-light)}:host([tone=fixed-dark]) .btn-close:focus,:host([tone=fixed-dark]) .btn-close:focus-visible,:host([tone=fixed-dark]) .btn-close:hover{background-color:var(--sgds-bg-translucent-fixed-dark)}.btn-close:focus-visible{outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}`;function je(e){return!!function(e){return!!customElements.get(e)}(e)||(console.error(`Custom element of name : ${e} is not registered. Remember to import the component file for custom element registration`),!1)}class Je extends We{constructor(){super(...arguments),this.size="md",this.tone="default",this._clickHandler=()=>{}}_handleClick(){this.removeEventListener("click",this._clickHandler),this.addEventListener("click",this._clickHandler)}firstUpdated(e){super.firstUpdated(e),je("sgds-icon")}render(){return Q`
68
68
  <button class="btn-close" aria-label="Close button" @click=${this._handleClick}>
69
- <sgds-icon name="cross" size=${this.size}></sgds-icon>
69
+ <sgds-icon name="cross" size="sm"></sgds-icon>
70
70
  </button>
71
71
  `}}Je.styles=[...We.styles,qe],e([Ve({type:String,reflect:!0})],Je.prototype,"size",void 0),e([Ve({type:String,reflect:!0})],Je.prototype,"tone",void 0);const Ge=Le(
72
72
  /**
@@ -105,7 +105,7 @@ class extends Ae{constructor(e){if(super(e),e.type!==Be||"class"!==e.name||e.str
105
105
  <slot name="rightIcon"></slot>`}
106
106
 
107
107
  </${t}>
108
- `}}dt.styles=[...rt.styles,ct,ht],e([Ve({type:String,reflect:!0})],dt.prototype,"type",void 0),e([Ve({type:String,reflect:!0})],dt.prototype,"form",void 0),e([Ve({type:String,reflect:!0,attribute:"formaction"})],dt.prototype,"formAction",void 0),e([Ve({type:String,reflect:!0,attribute:"formmethod"})],dt.prototype,"formMethod",void 0),e([Ve({attribute:"formnovalidate",type:Boolean,reflect:!0})],dt.prototype,"formNoValidate",void 0),e([Ve({type:String,reflect:!0,attribute:"formtarget"})],dt.prototype,"formTarget",void 0),e([Ve({type:Boolean,reflect:!0})],dt.prototype,"fullWidth",void 0),e([Ve({type:Boolean})],dt.prototype,"hasLeftIconSlot",void 0),e([Ve({type:Boolean})],dt.prototype,"hasRightIconSlot",void 0);var vt=r`.file-upload{display:flex;flex-direction:column;gap:var(--sgds-form-gap-2-xl)}.file-upload-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.file-upload-list{display:flex;flex-direction:column;gap:var(--sgds-form-gap-xl);list-style-type:none}.file-upload-list-item{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-muted);border-radius:var(--sgds-form-border-radius-md);display:flex;gap:var(--sgds-form-gap-lg);padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x)}.file-upload-list-item span:not(:first-of-type){cursor:pointer}ul{margin:0;padding:0}input{display:none}sgds-button{align-self:flex-start}label,sgds-button{cursor:pointer}sgds-close-button{margin-left:auto}sgds-icon.valid{color:var(--sgds-form-success-color-default)}sgds-icon.invalid{color:var(--sgds-color-muted)}`,gt=r`.invalid-feedback-container{display:flex;gap:var(--sgds-form-gap-sm)}.invalid-feedback,.invalid-feedback-container{color:var(--sgds-form-danger-color-default);line-height:var(--sgds-line-height-20)}.invalid-feedback{font-size:var(--sgds-font-size-14);font-weight:var(--sgds-font-weight-regular)}.valid-icon{color:var(--sgds-form-success-color-default)}`,pt=r`.form-text{color:var(--sgds-form-color-subtle);font-size:var(--sgds-font-size-14);line-height:var(--sgds-line-height-20)}.form-text.disabled{opacity:var(--sgds-opacity-50)}`,ut=r`.form-label{color:var(--sgds-form-color-default);margin-bottom:0}.form-label.disabled{opacity:var(--sgds-opacity-50)}.form-check-label{color:var(--sgds-form-color-default)}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:not-allowed}`,wt=r`.form-control::placeholder{color:var(--sgds-form-color-subtle);font-family:var(--sgds-font-family-brand);font-weight:var(--sgds-font-weight-light);line-height:var(--sgds-line-height-24)}`;function ft(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}class mt extends We{constructor(){super(...arguments),this.label="",this.hintText="",this.disabled=!1,this.invalid=!1,this._controlId=ft("input"),this._labelId=ft("label")}setInvalid(e){this.invalid=e,e?this.emit("sgds-invalid"):this.emit("sgds-valid")}}mt.styles=[...We.styles,gt,pt,ut,wt],e([Ve({reflect:!0})],mt.prototype,"label",void 0),e([Ve({reflect:!0})],mt.prototype,"hintText",void 0),e([Ve({reflect:!0})],mt.prototype,"name",void 0),e([Ve({type:Boolean,reflect:!0})],mt.prototype,"disabled",void 0),e([Ve({type:Boolean,reflect:!0})],mt.prototype,"invalid",void 0);class Zt{constructor(e,t){(this.host=e).addController(this),this._internals=e._internals||this.host.attachInternals(),this.options=Object.assign({setInvalid:(e,t)=>{e.invalid=t},value:e=>e.value,input:e=>e.input},t)}hostConnected(){this.host.addEventListener("invalid",e=>this.handleInvalid(e))}hostDisconnected(){this.host.removeEventListener("invalid",e=>this.handleInvalid(e))}handleInvalid(e){e.preventDefault(),this.options.setInvalid(this.host,!0)}handleInput(e){const t=e.target;this.options.setInvalid(this.host,!1),this.validateInput(t)}handleChange(e){const t=e.target;this.validateInput(t),this.options.setInvalid(this.host,!this.checkValidity())}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}updateInvalidState(){this.options.setInvalid(this.host,!this.checkValidity())}resetValidity(){return this._internals.setValidity({})}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}setValidity(e,t,l){return this._internals.setValidity(e,t,l)}setFormValue(){const e=this.options.value(this.host);this._internals.setFormValue(e)}validateInput(e){if(this.options.input(this.host).disabled)return this._internals.setValidity({});const t=e.validity;if(t.valid)this._internals.setValidity({});else for(const l in t)t[l]&&(this.validationError=l.toString(),this._internals.setValidity({[this.validationError]:!0},e.validationMessage,e))}}const xt=t=>{class l extends t{constructor(...e){super(...e),this._isTouched=!1,this._internals=this.attachInternals()}connectedCallback(){var e;super.connectedCallback(),this._mixinShouldSkipSgdsValidation()||null!==(e=this.inputValidationController)&&void 0!==e||(this.inputValidationController=new Zt(this))}async firstUpdated(e){super.firstUpdated(e),this.input=this.shadowRoot.querySelector("input")||await this.sgdsInput||this.shadowRoot.querySelector("textarea")||await this.sgdsDatepickerInput,this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this._mixinValidate(this.input)}formResetCallback(){this._mixinResetFormControl?this._mixinResetFormControl():(this.value=this.defaultValue,this._mixinResetValidity(this.input)),this._mixinSetFormValue()}_mixinHandleChange(e){this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.handleChange(e)}_mixinHandleInputChange(e){this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.handleInput(e)}_mixinResetValidity(e){this._mixinShouldSkipSgdsValidation()||(this.inputValidationController.resetValidity(),this.inputValidationController.updateInvalidState(),this.inputValidationController.validateInput(e),this._isTouched&&(this._isTouched=!1))}_mixinValidate(e){this._mixinShouldSkipSgdsValidation()||this.inputValidationController.validateInput(e)}_mixinSetFormValue(){const e=this.value;this._internals.setFormValue(e)}_mixinCheckValidity(){return!!this._mixinShouldSkipSgdsValidation()||this.inputValidationController.checkValidity()}_mixinReportValidity(){return!!this._mixinShouldSkipSgdsValidation()||this.inputValidationController.reportValidity()}_mixinGetValidity(){return this._internals.validity}_mixinGetValidationMessage(){return this._internals.validationMessage}_mixinSetValidity(e,t,l){if(!this._mixinShouldSkipSgdsValidation())return this.inputValidationController.setValidity(e,t,l)}_mixinShouldSkipSgdsValidation(){const e=this.closest("form");return(null==e?void 0:e.noValidate)||this.noValidate}}return l.formAssociated=!0,e([Se("sgds-input")],l.prototype,"sgdsInput",void 0),e([Se("sgds-datepicker-input")],l.prototype,"sgdsDatepickerInput",void 0),l};var Ct=Q`
108
+ `}}dt.styles=[...rt.styles,ct,ht],e([Ve({type:String,reflect:!0})],dt.prototype,"type",void 0),e([Ve({type:String,reflect:!0})],dt.prototype,"form",void 0),e([Ve({type:String,reflect:!0,attribute:"formaction"})],dt.prototype,"formAction",void 0),e([Ve({type:String,reflect:!0,attribute:"formmethod"})],dt.prototype,"formMethod",void 0),e([Ve({attribute:"formnovalidate",type:Boolean,reflect:!0})],dt.prototype,"formNoValidate",void 0),e([Ve({type:String,reflect:!0,attribute:"formtarget"})],dt.prototype,"formTarget",void 0),e([Ve({type:Boolean,reflect:!0})],dt.prototype,"fullWidth",void 0),e([Ve({type:Boolean})],dt.prototype,"hasLeftIconSlot",void 0),e([Ve({type:Boolean})],dt.prototype,"hasRightIconSlot",void 0);var vt=r`.file-upload{display:flex;flex-direction:column;gap:var(--sgds-form-gap-2-xl)}.file-upload-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.file-upload-list{display:flex;flex-direction:column;gap:var(--sgds-form-gap-xl);list-style-type:none}.file-upload-list-item{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-muted);border-radius:var(--sgds-form-border-radius-md);display:flex;gap:var(--sgds-form-gap-lg);padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x)}.file-upload-list-item span:not(:first-of-type){cursor:pointer}ul{margin:0;padding:0}input{display:none}sgds-button{align-self:flex-start}label,sgds-button{cursor:pointer}sgds-close-button{margin-left:auto}sgds-icon.valid{color:var(--sgds-form-success-color-default)}sgds-icon.invalid{color:var(--sgds-color-muted)}`,gt=r`.invalid-feedback-container{display:flex;gap:var(--sgds-form-gap-sm)}.invalid-feedback,.invalid-feedback-container{color:var(--sgds-form-danger-color-default);line-height:var(--sgds-line-height-20)}.invalid-feedback{font-size:var(--sgds-font-size-14);font-weight:var(--sgds-font-weight-regular)}.valid-icon{color:var(--sgds-form-success-color-default)}`,pt=r`.form-text{color:var(--sgds-form-color-subtle);font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs)}.form-text.disabled{opacity:var(--sgds-opacity-40)}`,ut=r`.form-label{color:var(--sgds-form-color-default);margin-bottom:0}.form-label.disabled{opacity:var(--sgds-opacity-40)}.form-check-label{color:var(--sgds-form-color-default)}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:not-allowed}`,wt=r`.form-control::placeholder{color:var(--sgds-form-color-subtle);font-family:var(--sgds-font-family-brand);font-weight:var(--sgds-font-weight-light);line-height:var(--sgds-line-height-24)}`;function ft(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}class mt extends We{constructor(){super(...arguments),this.label="",this.hintText="",this.disabled=!1,this.invalid=!1,this._controlId=ft("input"),this._labelId=ft("label")}setInvalid(e){this.invalid=e,e?this.emit("sgds-invalid"):this.emit("sgds-valid")}}mt.styles=[...We.styles,gt,pt,ut,wt],e([Ve({reflect:!0})],mt.prototype,"label",void 0),e([Ve({reflect:!0})],mt.prototype,"hintText",void 0),e([Ve({reflect:!0})],mt.prototype,"name",void 0),e([Ve({type:Boolean,reflect:!0})],mt.prototype,"disabled",void 0),e([Ve({type:Boolean,reflect:!0})],mt.prototype,"invalid",void 0);class Zt{constructor(e,t){(this.host=e).addController(this),this._internals=e._internals||this.host.attachInternals(),this.options=Object.assign({setInvalid:(e,t)=>{e.invalid=t},value:e=>e.value,input:e=>e.input},t)}hostConnected(){this.host.addEventListener("invalid",e=>this.handleInvalid(e))}hostDisconnected(){this.host.removeEventListener("invalid",e=>this.handleInvalid(e))}handleInvalid(e){e.preventDefault(),this.options.setInvalid(this.host,!0)}handleInput(e){const t=e.target;this.options.setInvalid(this.host,!1),this.validateInput(t)}handleChange(e){const t=e.target;this.validateInput(t),this.options.setInvalid(this.host,!this.checkValidity())}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}updateInvalidState(){this.options.setInvalid(this.host,!this.checkValidity())}resetValidity(){return this._internals.setValidity({})}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}setValidity(e,t,l){return this._internals.setValidity(e,t,l)}setFormValue(){const e=this.options.value(this.host);this._internals.setFormValue(e)}validateInput(e){if(this.options.input(this.host).disabled)return this._internals.setValidity({});const t=e.validity;if(t.valid)this._internals.setValidity({});else for(const l in t)t[l]&&(this.validationError=l.toString(),this._internals.setValidity({[this.validationError]:!0},e.validationMessage,e))}}const xt=t=>{class l extends t{constructor(...e){super(...e),this._isTouched=!1,this._internals=this.attachInternals()}connectedCallback(){var e;super.connectedCallback(),this._mixinShouldSkipSgdsValidation()||null!==(e=this.inputValidationController)&&void 0!==e||(this.inputValidationController=new Zt(this))}async firstUpdated(e){super.firstUpdated(e),this.input=this.shadowRoot.querySelector("input")||await this.sgdsInput||this.shadowRoot.querySelector("textarea")||await this.sgdsDatepickerInput,this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this._mixinValidate(this.input)}formResetCallback(){this._mixinResetFormControl?this._mixinResetFormControl():(this.value=this.defaultValue,this._mixinResetValidity(this.input)),this._mixinSetFormValue()}_mixinHandleChange(e){this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.handleChange(e)}_mixinHandleInputChange(e){this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.handleInput(e)}_mixinResetValidity(e){this._mixinShouldSkipSgdsValidation()||(this.inputValidationController.resetValidity(),this.inputValidationController.updateInvalidState(),this.inputValidationController.validateInput(e),this._isTouched&&(this._isTouched=!1))}_mixinValidate(e){this._mixinShouldSkipSgdsValidation()||this.inputValidationController.validateInput(e)}_mixinSetFormValue(){const e=this.value;this._internals.setFormValue(e)}_mixinCheckValidity(){return!!this._mixinShouldSkipSgdsValidation()||this.inputValidationController.checkValidity()}_mixinReportValidity(){return!!this._mixinShouldSkipSgdsValidation()||this.inputValidationController.reportValidity()}_mixinGetValidity(){return this._internals.validity}_mixinGetValidationMessage(){return this._internals.validationMessage}_mixinSetValidity(e,t,l){if(!this._mixinShouldSkipSgdsValidation())return this.inputValidationController.setValidity(e,t,l)}_mixinShouldSkipSgdsValidation(){const e=this.closest("form");return(null==e?void 0:e.noValidate)||this.noValidate}}return l.formAssociated=!0,e([Se("sgds-input")],l.prototype,"sgdsInput",void 0),e([Se("sgds-datepicker-input")],l.prototype,"sgdsDatepickerInput",void 0),l};var Ct=Q`
109
109
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
110
110
  <path
111
111
  fill="currentColor"
@@ -250,7 +250,7 @@ class extends Ae{constructor(e){if(super(e),e.type!==Be||"class"!==e.name||e.str
250
250
  clip-rule="evenodd"
251
251
  />
252
252
  </svg>
253
- `;const zt={announcement:Ct,archive:bt,"arrow-bar-down":Mt,"arrow-bar-left":_t,"arrow-bar-right":yt,"arrow-bar-up":Vt,"arrow-circle-down":Ht,"arrow-circle-left":$t,"arrow-circle-right":St,"arrow-circle-up":Bt,"arrow-clockwise":kt,"arrow-down":Lt,"arrow-left":At,"arrow-repeat":Et,"arrow-right":Pt,"arrow-square-down":Q`
253
+ `;const Tt={announcement:Ct,archive:bt,"arrow-bar-down":Mt,"arrow-bar-left":_t,"arrow-bar-right":yt,"arrow-bar-up":Vt,"arrow-circle-down":Ht,"arrow-circle-left":$t,"arrow-circle-right":St,"arrow-circle-up":Bt,"arrow-clockwise":kt,"arrow-down":Lt,"arrow-left":At,"arrow-repeat":Et,"arrow-right":Pt,"arrow-square-down":Q`
254
254
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
255
255
  <path
256
256
  fill="currentColor"
@@ -2321,7 +2321,7 @@ class extends Ae{constructor(e){if(super(e),e.type!==Be||"class"!==e.name||e.str
2321
2321
  clip-rule="evenodd"
2322
2322
  />
2323
2323
  </svg>
2324
- `};var Tt,It,Nt,Rt=r`:host{color:inherit;display:inline-flex;vertical-align:bottom}:host(.icon-left){margin-right:.25rem}:host(.icon-right){margin-left:.25rem}:host([size=xs]) svg{height:var(--sgds-icon-size-xs);width:var(--sgds-icon-size-xs)}:host([size=sm]) svg{height:var(--sgds-icon-size-sm);width:var(--sgds-icon-size-sm)}:host([size=md]) svg{height:var(--sgds-icon-size-md);width:var(--sgds-icon-size-md)}:host([size=xl]) svg{height:var(--sgds-icon-size-xl);width:var(--sgds-icon-size-xl)}:host([size="2-xl"]) svg{height:var(--sgds-icon-size-2-xl);width:var(--sgds-icon-size-2-xl)}:host([size="3-xl"]) svg{height:var(--sgds-icon-size-3-xl);width:var(--sgds-icon-size-3-xl)}svg{display:inline-block;height:var(--sgds-icon-size-lg);width:var(--sgds-icon-size-lg)}`;class Ut extends We{constructor(){super(...arguments),this.size="lg"}_getIconByName(e){if(!e)return;const t=zt[e];if(t)return t;console.warn(`Icon not found: ${e}`)}render(){const e=this._getIconByName(this.name);return e||le}}Ut.styles=[...We.styles,Rt],e([Ve({type:String,reflect:!0})],Ut.prototype,"name",void 0),e([Ve({type:String,reflect:!0})],Ut.prototype,"size",void 0);class Ot extends(xt(mt)){constructor(){super(...arguments),this.multiple=!1,this.accept="",this.hasFeedback=!1,this.required=!1,this.selectedFiles=[],this.inputRef=new Ue}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}get files(){return this.selectedFiles}_setFileList(e){this.emit("sgds-files-selected",{detail:e})}_handleClick(e){if(e.preventDefault(),!this.disabled){this.inputRef.value.click()}}_handleChange(e){const t=e.target.files;t.length>0&&(this.selectedFiles=Array.from(t)),this._setFileList(t),this.requestUpdate(),super._mixinHandleChange(e)}_removeFileHandler(e){const t=this.inputRef.value,l=t.files,i=new DataTransfer;for(let t=0;t<l.length;t++)e!==t&&i.items.add(l[t]);t.files=i.files,this._setFileList(i.files),this.selectedFiles=Array.from(i.files),this.requestUpdate(),this._mixinValidate(this.input)}_clearAllFiles(){const e=this.inputRef.value,t=new DataTransfer;e.files=t.files,this._setFileList(t.files),this.selectedFiles=Array.from(t.files)}_mixinResetFormControl(){this._clearAllFiles(),this._mixinResetValidity(this.input)}_handleDisabledChange(){this.setInvalid(!1)}_renderLabel(){const e=Q`
2324
+ `};var zt,It,Nt,Rt=r`:host{color:inherit;display:inline-flex;vertical-align:bottom}:host(.icon-left){margin-right:.25rem}:host(.icon-right){margin-left:.25rem}:host([size=xs]) svg{height:var(--sgds-icon-size-xs);width:var(--sgds-icon-size-xs)}:host([size=sm]) svg{height:var(--sgds-icon-size-sm);width:var(--sgds-icon-size-sm)}:host([size=md]) svg{height:var(--sgds-icon-size-md);width:var(--sgds-icon-size-md)}:host([size=xl]) svg{height:var(--sgds-icon-size-xl);width:var(--sgds-icon-size-xl)}:host([size="2-xl"]) svg{height:var(--sgds-icon-size-2-xl);width:var(--sgds-icon-size-2-xl)}:host([size="3-xl"]) svg{height:var(--sgds-icon-size-3-xl);width:var(--sgds-icon-size-3-xl)}svg{display:inline-block;height:var(--sgds-icon-size-lg);width:var(--sgds-icon-size-lg)}`;class Ut extends We{constructor(){super(...arguments),this.size="lg"}_getIconByName(e){if(!e)return;const t=Tt[e];if(t)return t;console.warn(`Icon not found: ${e}`)}render(){const e=this._getIconByName(this.name);return e||le}}Ut.styles=[...We.styles,Rt],e([Ve({type:String,reflect:!0})],Ut.prototype,"name",void 0),e([Ve({type:String,reflect:!0})],Ut.prototype,"size",void 0);class Ot extends(xt(mt)){constructor(){super(...arguments),this.multiple=!1,this.accept="",this.hasFeedback=!1,this.required=!1,this.selectedFiles=[],this.inputRef=new Ue}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}get files(){return this.selectedFiles}_setFileList(e){this.emit("sgds-files-selected",{detail:e})}_handleClick(e){if(e.preventDefault(),!this.disabled){this.inputRef.value.click()}}_handleChange(e){const t=e.target.files;t.length>0&&(this.selectedFiles=Array.from(t)),this._setFileList(t),this.requestUpdate(),super._mixinHandleChange(e)}_removeFileHandler(e){const t=this.inputRef.value,l=t.files,i=new DataTransfer;for(let t=0;t<l.length;t++)e!==t&&i.items.add(l[t]);t.files=i.files,this._setFileList(i.files),this.selectedFiles=Array.from(i.files),this.requestUpdate(),this._mixinValidate(this.input)}_clearAllFiles(){const e=this.inputRef.value,t=new DataTransfer;e.files=t.files,this._setFileList(t.files),this.selectedFiles=Array.from(t.files)}_mixinResetFormControl(){this._clearAllFiles(),this._mixinResetValidity(this.input)}_handleDisabledChange(){this.setInvalid(!1)}_renderLabel(){const e=Q`
2325
2325
  <label for=${this._controlId} id=${this._labelId} class="form-label"> ${this.label} </label>
2326
2326
  `;return this.label&&e}_renderHintText(){const e=Q` <div id="${this._controlId}Help" class="form-text">${this.hintText}</div> `;return this.hintText&&e}_renderFeedback(){return Q`
2327
2327
  <div class="invalid-feedback-container">
@@ -2363,5 +2363,5 @@ class extends Ae{constructor(e){if(super(e),e.type!==Be||"class"!==e.name||e.str
2363
2363
  ${t}
2364
2364
  </ul>
2365
2365
  </div>
2366
- `}}Ot.styles=[...mt.styles,vt],Ot.dependencies={"sgds-button":dt,"sgds-close-button":Je,"sgds-icon":Ut},e([Ve({type:Boolean,reflect:!0})],Ot.prototype,"multiple",void 0),e([Ve({type:String,reflect:!0})],Ot.prototype,"accept",void 0),e([Ve({type:Boolean,reflect:!0})],Ot.prototype,"hasFeedback",void 0),e([Ve({type:String,reflect:!0})],Ot.prototype,"invalidFeedback",void 0),e([Ve({type:Boolean,reflect:!0})],Ot.prototype,"required",void 0),e([Ve({...Tt,state:!0,attribute:!1})],Ot.prototype,"selectedFiles",void 0),e([function(e,t){const l=Object.assign({waitUntilFirstUpdate:!1},t);return(t,i)=>{const{update:a}=t;if(e in t){const o=e;t.update=function(e){if(e.has(o)){const t=e.get(o),a=this[o];t!==a&&(l.waitUntilFirstUpdate&&!this.hasUpdated||this[i](t,a))}a.call(this,e)}}}}("disabled",{waitUntilFirstUpdate:!0})],Ot.prototype,"_handleDisabledChange",null),It="sgds-file-upload",Nt=Ot,customElements.get(It)||customElements.define(It,Nt)});
2366
+ `}}Ot.styles=[...mt.styles,vt],Ot.dependencies={"sgds-button":dt,"sgds-close-button":Je,"sgds-icon":Ut},e([Ve({type:Boolean,reflect:!0})],Ot.prototype,"multiple",void 0),e([Ve({type:String,reflect:!0})],Ot.prototype,"accept",void 0),e([Ve({type:Boolean,reflect:!0})],Ot.prototype,"hasFeedback",void 0),e([Ve({type:String,reflect:!0})],Ot.prototype,"invalidFeedback",void 0),e([Ve({type:Boolean,reflect:!0})],Ot.prototype,"required",void 0),e([Ve({...zt,state:!0,attribute:!1})],Ot.prototype,"selectedFiles",void 0),e([function(e,t){const l=Object.assign({waitUntilFirstUpdate:!1},t);return(t,i)=>{const{update:a}=t;if(e in t){const o=e;t.update=function(e){if(e.has(o)){const t=e.get(o),a=this[o];t!==a&&(l.waitUntilFirstUpdate&&!this.hasUpdated||this[i](t,a))}a.call(this,e)}}}}("disabled",{waitUntilFirstUpdate:!0})],Ot.prototype,"_handleDisabledChange",null),It="sgds-file-upload",Nt=Ot,customElements.get(It)||customElements.define(It,Nt)});
2367
2367
  //# sourceMappingURL=index.umd.min.js.map