@solid-design-system/components 5.13.9 → 5.13.11

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 (674) hide show
  1. package/cdn/chunks/{chunk.LHYT7HFQ.js → chunk.22K26MFW.js} +1 -1
  2. package/cdn/chunks/{chunk.K5HOAQJY.js → chunk.27FNJ2PN.js} +1 -1
  3. package/cdn/chunks/{chunk.UQHI5B2R.js → chunk.2ASRYO75.js} +1 -1
  4. package/cdn/chunks/{chunk.LH5TWCSQ.js → chunk.2C7EBMG5.js} +1 -1
  5. package/cdn/chunks/{chunk.SZNIL4KZ.js → chunk.2GL7J2OA.js} +1 -1
  6. package/cdn/chunks/chunk.2MWGJ42J.js +1 -0
  7. package/cdn/chunks/{chunk.K6CGISQW.js → chunk.2NU6E5HZ.js} +1 -1
  8. package/cdn/chunks/{chunk.YRRYK5NI.js → chunk.3FMPWWYL.js} +1 -1
  9. package/cdn/chunks/{chunk.MVLJOBJ3.js → chunk.42542XOU.js} +1 -1
  10. package/cdn/chunks/{chunk.FWIDWQST.js → chunk.4JCFZ7AN.js} +1 -1
  11. package/cdn/chunks/{chunk.RHSPP6ZZ.js → chunk.4UDZGPPR.js} +1 -1
  12. package/cdn/chunks/chunk.4WS6ISBF.js +25 -0
  13. package/cdn/chunks/{chunk.U24DDUI7.js → chunk.54UYR3N2.js} +1 -1
  14. package/cdn/chunks/{chunk.HQD5PMJ6.js → chunk.5RA4GJWJ.js} +1 -1
  15. package/cdn/chunks/{chunk.P7RMWM44.js → chunk.5SK5BWKE.js} +1 -1
  16. package/cdn/chunks/{chunk.FRD44MJU.js → chunk.6EVGQLHB.js} +1 -1
  17. package/cdn/chunks/{chunk.ZA6VOBKL.js → chunk.7OFXZTBU.js} +1 -1
  18. package/cdn/chunks/{chunk.MBID57NT.js → chunk.APITCTY7.js} +1 -1
  19. package/cdn/chunks/{chunk.J5O47B25.js → chunk.B54NSO5Y.js} +1 -1
  20. package/cdn/chunks/chunk.DB2LBRW5.js +1 -0
  21. package/cdn/chunks/{chunk.GHC63SXL.js → chunk.DEXOQON7.js} +1 -1
  22. package/cdn/chunks/{chunk.6Z73BB5V.js → chunk.DNPUPU5N.js} +1 -1
  23. package/cdn/chunks/{chunk.PHEBYNEA.js → chunk.DS6OKK7E.js} +1 -1
  24. package/cdn/chunks/{chunk.PBB3HNYR.js → chunk.DVQVZCFM.js} +1 -1
  25. package/cdn/chunks/{chunk.LHEXO22N.js → chunk.EF5R3XXB.js} +1 -1
  26. package/cdn/chunks/{chunk.N43BOWAM.js → chunk.EQQG2IOL.js} +1 -1
  27. package/cdn/chunks/{chunk.76ARSQLO.js → chunk.FADTWOWY.js} +1 -1
  28. package/cdn/chunks/{chunk.GGNESNM4.js → chunk.FEL7NDH5.js} +1 -1
  29. package/cdn/chunks/{chunk.XG62EPWD.js → chunk.GMVRGCVC.js} +1 -1
  30. package/cdn/chunks/{chunk.ZBXT5WFZ.js → chunk.H2TFK3FW.js} +1 -1
  31. package/cdn/chunks/{chunk.T64D3FLT.js → chunk.HJR66OM3.js} +1 -1
  32. package/cdn/chunks/{chunk.INLCQRRA.js → chunk.I4JFBFUL.js} +1 -1
  33. package/cdn/chunks/{chunk.VPPELN6X.js → chunk.IVTNENFE.js} +1 -1
  34. package/cdn/chunks/{chunk.HLA3SRP7.js → chunk.JM4O4R5N.js} +4 -4
  35. package/cdn/chunks/{chunk.Q5MHHB4U.js → chunk.JR3LNORU.js} +1 -1
  36. package/cdn/chunks/{chunk.ANXPK3TU.js → chunk.LDWID3GG.js} +1 -1
  37. package/cdn/chunks/{chunk.B5WOG3GU.js → chunk.M275INNC.js} +2 -2
  38. package/cdn/chunks/{chunk.G4GHS2AG.js → chunk.MEWKZ5ES.js} +1 -1
  39. package/cdn/chunks/{chunk.DCBKAP5D.js → chunk.MFUKMPVQ.js} +1 -1
  40. package/cdn/chunks/{chunk.TSX2YUC7.js → chunk.NLHZZEN6.js} +1 -1
  41. package/cdn/chunks/{chunk.6U6DCUJY.js → chunk.O7HTYQZJ.js} +1 -1
  42. package/cdn/chunks/{chunk.K4BO42UJ.js → chunk.OUQRVDFU.js} +1 -1
  43. package/cdn/chunks/{chunk.5V7VV5QB.js → chunk.PIM4IVY7.js} +1 -1
  44. package/cdn/chunks/{chunk.SUYDKR6I.js → chunk.QPJOKELG.js} +1 -1
  45. package/cdn/chunks/{chunk.YMSIMSMY.js → chunk.SHP5JHWU.js} +1 -1
  46. package/cdn/chunks/{chunk.GOF4ZVCF.js → chunk.SSCDGZIU.js} +1 -1
  47. package/cdn/chunks/{chunk.N5CQJHZQ.js → chunk.T7TDYFIZ.js} +1 -1
  48. package/cdn/chunks/{chunk.TUFRTO4T.js → chunk.UGEF2FQR.js} +1 -1
  49. package/cdn/chunks/{chunk.PYFKECFP.js → chunk.UK5N2DTE.js} +1 -1
  50. package/cdn/chunks/{chunk.OYYGJJPP.js → chunk.UYJTT34Z.js} +1 -1
  51. package/cdn/chunks/{chunk.Z4CNPMCB.js → chunk.V35C2AM2.js} +1 -1
  52. package/cdn/chunks/{chunk.IRWI7GRR.js → chunk.VHYOMSJH.js} +1 -1
  53. package/cdn/chunks/{chunk.T27666UD.js → chunk.VX2WA6JC.js} +1 -1
  54. package/cdn/chunks/{chunk.2IRWQCRF.js → chunk.W2TNOVM3.js} +1 -1
  55. package/cdn/chunks/{chunk.DOIZO725.js → chunk.WAVXNSMT.js} +1 -1
  56. package/cdn/chunks/{chunk.KMRAQBKA.js → chunk.XT7KIHF3.js} +1 -1
  57. package/cdn/chunks/{chunk.SRKXQ6FG.js → chunk.XVP3JFUF.js} +1 -1
  58. package/cdn/chunks/{chunk.4G5K45OD.js → chunk.Y4C5Q22M.js} +1 -1
  59. package/cdn/chunks/{chunk.ZKEBLFG4.js → chunk.YJVLZLXE.js} +1 -1
  60. package/cdn/chunks/{chunk.VIW3UATS.js → chunk.YPIA2ACB.js} +1 -1
  61. package/cdn/chunks/{chunk.4YGHSZYG.js → chunk.YQ27KD5M.js} +1 -1
  62. package/cdn/chunks/{chunk.H254FIFJ.js → chunk.ZQC5PYLE.js} +1 -1
  63. package/cdn/components/accordion/accordion.js +1 -1
  64. package/cdn/components/accordion-group/accordion-group.js +1 -1
  65. package/cdn/components/animation/animation.js +1 -1
  66. package/cdn/components/audio/audio.d.ts +4 -1
  67. package/cdn/components/audio/audio.js +1 -1
  68. package/cdn/components/badge/badge.js +1 -1
  69. package/cdn/components/brandshape/brandshape.js +1 -1
  70. package/cdn/components/breadcrumb/breadcrumb.js +1 -1
  71. package/cdn/components/breadcrumb-item/breadcrumb-item.js +1 -1
  72. package/cdn/components/button/button.js +1 -1
  73. package/cdn/components/button-group/button-group.js +1 -1
  74. package/cdn/components/carousel/carousel.js +1 -1
  75. package/cdn/components/carousel-item/carousel-item.js +1 -1
  76. package/cdn/components/checkbox/checkbox.js +1 -1
  77. package/cdn/components/checkbox-group/checkbox-group.js +1 -1
  78. package/cdn/components/combobox/combobox.js +1 -1
  79. package/cdn/components/dialog/dialog.js +1 -1
  80. package/cdn/components/divider/divider.js +1 -1
  81. package/cdn/components/drawer/drawer.js +1 -1
  82. package/cdn/components/dropdown/dropdown.js +1 -1
  83. package/cdn/components/expandable/expandable.js +1 -1
  84. package/cdn/components/flipcard/flipcard.js +1 -1
  85. package/cdn/components/header/header.js +1 -1
  86. package/cdn/components/icon/icon.js +1 -1
  87. package/cdn/components/icon/library.internal.js +1 -1
  88. package/cdn/components/icon/library.js +1 -1
  89. package/cdn/components/include/include.js +1 -1
  90. package/cdn/components/input/input.js +1 -1
  91. package/cdn/components/link/link.js +1 -1
  92. package/cdn/components/loader/loader.js +1 -1
  93. package/cdn/components/map-marker/map-marker.js +1 -1
  94. package/cdn/components/menu/menu.js +1 -1
  95. package/cdn/components/menu-item/menu-item.js +1 -1
  96. package/cdn/components/navigation-item/navigation-item.js +1 -1
  97. package/cdn/components/notification/notification.js +1 -1
  98. package/cdn/components/optgroup/optgroup.js +1 -1
  99. package/cdn/components/option/option.js +1 -1
  100. package/cdn/components/popup/popup.js +1 -1
  101. package/cdn/components/quickfact/quickfact.js +1 -1
  102. package/cdn/components/radio/radio.js +1 -1
  103. package/cdn/components/radio-button/radio-button.js +1 -1
  104. package/cdn/components/radio-group/radio-group.js +1 -1
  105. package/cdn/components/range/range.js +1 -1
  106. package/cdn/components/range-tick/range-tick.js +1 -1
  107. package/cdn/components/scrollable/scrollable.js +1 -1
  108. package/cdn/components/select/select.d.ts +1 -1
  109. package/cdn/components/select/select.js +1 -1
  110. package/cdn/components/spinner/spinner.js +1 -1
  111. package/cdn/components/step/step.js +1 -1
  112. package/cdn/components/step-group/step-group.js +1 -1
  113. package/cdn/components/switch/switch.js +1 -1
  114. package/cdn/components/tab/tab.js +1 -1
  115. package/cdn/components/tab-group/tab-group.js +1 -1
  116. package/cdn/components/tab-panel/tab-panel.js +1 -1
  117. package/cdn/components/tag/tag.js +1 -1
  118. package/cdn/components/teaser/teaser.js +1 -1
  119. package/cdn/components/teaser-media/teaser-media.js +1 -1
  120. package/cdn/components/textarea/textarea.js +1 -1
  121. package/cdn/components/tooltip/tooltip.js +1 -1
  122. package/cdn/components/video/video.js +1 -1
  123. package/cdn/custom-elements.json +9 -2
  124. package/cdn/solid-components.bundle.js +10 -10
  125. package/cdn/solid-components.iife.js +13 -13
  126. package/cdn/solid-components.js +1 -1
  127. package/cdn/translations/de.js +1 -1
  128. package/cdn/translations/en.js +1 -1
  129. package/cdn/utilities/autocomplete-config.js +1 -1
  130. package/cdn/utilities/icon-library.js +1 -1
  131. package/cdn/utilities/localize.d.ts +1 -0
  132. package/cdn/utilities/localize.js +1 -1
  133. package/cdn/web-types.json +2 -1
  134. package/cdn-versioned/chunks/{chunk.LHYT7HFQ.js → chunk.22K26MFW.js} +1 -1
  135. package/cdn-versioned/chunks/{chunk.K5HOAQJY.js → chunk.27FNJ2PN.js} +1 -1
  136. package/cdn-versioned/chunks/chunk.2ASRYO75.js +1 -0
  137. package/cdn-versioned/chunks/{chunk.LH5TWCSQ.js → chunk.2C7EBMG5.js} +1 -1
  138. package/cdn-versioned/chunks/{chunk.SZNIL4KZ.js → chunk.2GL7J2OA.js} +1 -1
  139. package/cdn-versioned/chunks/chunk.2MWGJ42J.js +1 -0
  140. package/cdn-versioned/chunks/{chunk.K6CGISQW.js → chunk.2NU6E5HZ.js} +1 -1
  141. package/cdn-versioned/chunks/chunk.3FMPWWYL.js +1 -0
  142. package/cdn-versioned/chunks/{chunk.MVLJOBJ3.js → chunk.42542XOU.js} +1 -1
  143. package/cdn-versioned/chunks/{chunk.FWIDWQST.js → chunk.4JCFZ7AN.js} +1 -1
  144. package/cdn-versioned/chunks/chunk.4UDZGPPR.js +1 -0
  145. package/cdn-versioned/chunks/chunk.4WS6ISBF.js +25 -0
  146. package/cdn-versioned/chunks/chunk.54UYR3N2.js +1 -0
  147. package/cdn-versioned/chunks/chunk.5RA4GJWJ.js +11 -0
  148. package/cdn-versioned/chunks/chunk.5SK5BWKE.js +1 -0
  149. package/cdn-versioned/chunks/{chunk.FRD44MJU.js → chunk.6EVGQLHB.js} +1 -1
  150. package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
  151. package/cdn-versioned/chunks/chunk.7OFXZTBU.js +1 -0
  152. package/cdn-versioned/chunks/{chunk.MBID57NT.js → chunk.APITCTY7.js} +2 -2
  153. package/cdn-versioned/chunks/chunk.B54NSO5Y.js +1 -0
  154. package/cdn-versioned/chunks/chunk.BBD6RMZH.js +1 -1
  155. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  156. package/cdn-versioned/chunks/chunk.DB2LBRW5.js +1 -0
  157. package/cdn-versioned/chunks/{chunk.GHC63SXL.js → chunk.DEXOQON7.js} +1 -1
  158. package/cdn-versioned/chunks/{chunk.6Z73BB5V.js → chunk.DNPUPU5N.js} +1 -1
  159. package/cdn-versioned/chunks/{chunk.PHEBYNEA.js → chunk.DS6OKK7E.js} +1 -1
  160. package/cdn-versioned/chunks/{chunk.PBB3HNYR.js → chunk.DVQVZCFM.js} +1 -1
  161. package/cdn-versioned/chunks/chunk.EF5R3XXB.js +1 -0
  162. package/cdn-versioned/chunks/{chunk.N43BOWAM.js → chunk.EQQG2IOL.js} +1 -1
  163. package/cdn-versioned/chunks/{chunk.76ARSQLO.js → chunk.FADTWOWY.js} +2 -2
  164. package/cdn-versioned/chunks/chunk.FEL7NDH5.js +1 -0
  165. package/cdn-versioned/chunks/{chunk.XG62EPWD.js → chunk.GMVRGCVC.js} +1 -1
  166. package/cdn-versioned/chunks/{chunk.ZBXT5WFZ.js → chunk.H2TFK3FW.js} +1 -1
  167. package/cdn-versioned/chunks/{chunk.T64D3FLT.js → chunk.HJR66OM3.js} +1 -1
  168. package/cdn-versioned/chunks/{chunk.INLCQRRA.js → chunk.I4JFBFUL.js} +1 -1
  169. package/cdn-versioned/chunks/chunk.IVTNENFE.js +1 -0
  170. package/cdn-versioned/chunks/chunk.JM4O4R5N.js +11 -0
  171. package/cdn-versioned/chunks/chunk.JR3LNORU.js +1 -0
  172. package/cdn-versioned/chunks/{chunk.ANXPK3TU.js → chunk.LDWID3GG.js} +1 -1
  173. package/cdn-versioned/chunks/{chunk.B5WOG3GU.js → chunk.M275INNC.js} +2 -2
  174. package/cdn-versioned/chunks/{chunk.G4GHS2AG.js → chunk.MEWKZ5ES.js} +1 -1
  175. package/cdn-versioned/chunks/{chunk.DCBKAP5D.js → chunk.MFUKMPVQ.js} +1 -1
  176. package/cdn-versioned/chunks/{chunk.TSX2YUC7.js → chunk.NLHZZEN6.js} +1 -1
  177. package/cdn-versioned/chunks/{chunk.6U6DCUJY.js → chunk.O7HTYQZJ.js} +1 -1
  178. package/cdn-versioned/chunks/{chunk.K4BO42UJ.js → chunk.OUQRVDFU.js} +2 -2
  179. package/cdn-versioned/chunks/{chunk.5V7VV5QB.js → chunk.PIM4IVY7.js} +1 -1
  180. package/cdn-versioned/chunks/{chunk.SUYDKR6I.js → chunk.QPJOKELG.js} +1 -1
  181. package/cdn-versioned/chunks/chunk.SHP5JHWU.js +1 -0
  182. package/cdn-versioned/chunks/chunk.SSCDGZIU.js +11 -0
  183. package/cdn-versioned/chunks/chunk.T7TDYFIZ.js +1 -0
  184. package/cdn-versioned/chunks/chunk.UGEF2FQR.js +1 -0
  185. package/cdn-versioned/chunks/chunk.UK5N2DTE.js +1 -0
  186. package/cdn-versioned/chunks/{chunk.OYYGJJPP.js → chunk.UYJTT34Z.js} +1 -1
  187. package/cdn-versioned/chunks/{chunk.Z4CNPMCB.js → chunk.V35C2AM2.js} +1 -1
  188. package/cdn-versioned/chunks/{chunk.IRWI7GRR.js → chunk.VHYOMSJH.js} +1 -1
  189. package/cdn-versioned/chunks/chunk.VX2WA6JC.js +1 -0
  190. package/cdn-versioned/chunks/{chunk.2IRWQCRF.js → chunk.W2TNOVM3.js} +2 -2
  191. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  192. package/cdn-versioned/chunks/{chunk.DOIZO725.js → chunk.WAVXNSMT.js} +1 -1
  193. package/cdn-versioned/chunks/{chunk.KMRAQBKA.js → chunk.XT7KIHF3.js} +1 -1
  194. package/cdn-versioned/chunks/chunk.XVP3JFUF.js +1 -0
  195. package/cdn-versioned/chunks/{chunk.4G5K45OD.js → chunk.Y4C5Q22M.js} +1 -1
  196. package/cdn-versioned/chunks/{chunk.ZKEBLFG4.js → chunk.YJVLZLXE.js} +1 -1
  197. package/cdn-versioned/chunks/{chunk.VIW3UATS.js → chunk.YPIA2ACB.js} +1 -1
  198. package/cdn-versioned/chunks/chunk.YQ27KD5M.js +1 -0
  199. package/cdn-versioned/chunks/{chunk.H254FIFJ.js → chunk.ZQC5PYLE.js} +1 -1
  200. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  201. package/cdn-versioned/components/accordion/accordion.js +1 -1
  202. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  203. package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
  204. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  205. package/cdn-versioned/components/animation/animation.js +1 -1
  206. package/cdn-versioned/components/audio/audio.d.ts +5 -2
  207. package/cdn-versioned/components/audio/audio.js +1 -1
  208. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  209. package/cdn-versioned/components/badge/badge.js +1 -1
  210. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  211. package/cdn-versioned/components/brandshape/brandshape.js +1 -1
  212. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  213. package/cdn-versioned/components/breadcrumb/breadcrumb.js +1 -1
  214. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  215. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.js +1 -1
  216. package/cdn-versioned/components/button/button.d.ts +1 -1
  217. package/cdn-versioned/components/button/button.js +1 -1
  218. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  219. package/cdn-versioned/components/button-group/button-group.js +1 -1
  220. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  221. package/cdn-versioned/components/carousel/carousel.js +1 -1
  222. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  223. package/cdn-versioned/components/carousel-item/carousel-item.js +1 -1
  224. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  225. package/cdn-versioned/components/checkbox/checkbox.js +1 -1
  226. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  227. package/cdn-versioned/components/checkbox-group/checkbox-group.js +1 -1
  228. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  229. package/cdn-versioned/components/combobox/combobox.js +1 -1
  230. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  231. package/cdn-versioned/components/dialog/dialog.js +1 -1
  232. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  233. package/cdn-versioned/components/divider/divider.js +1 -1
  234. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  235. package/cdn-versioned/components/drawer/drawer.js +1 -1
  236. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  237. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  238. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  239. package/cdn-versioned/components/expandable/expandable.js +1 -1
  240. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  241. package/cdn-versioned/components/flipcard/flipcard.js +1 -1
  242. package/cdn-versioned/components/header/header.d.ts +1 -1
  243. package/cdn-versioned/components/header/header.js +1 -1
  244. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  245. package/cdn-versioned/components/icon/icon.js +1 -1
  246. package/cdn-versioned/components/icon/library.internal.js +1 -1
  247. package/cdn-versioned/components/icon/library.js +1 -1
  248. package/cdn-versioned/components/include/include.d.ts +1 -1
  249. package/cdn-versioned/components/include/include.js +1 -1
  250. package/cdn-versioned/components/input/input.d.ts +1 -1
  251. package/cdn-versioned/components/input/input.js +1 -1
  252. package/cdn-versioned/components/link/link.d.ts +1 -1
  253. package/cdn-versioned/components/link/link.js +1 -1
  254. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  255. package/cdn-versioned/components/loader/loader.js +1 -1
  256. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  257. package/cdn-versioned/components/map-marker/map-marker.js +1 -1
  258. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  259. package/cdn-versioned/components/menu/menu.js +1 -1
  260. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  261. package/cdn-versioned/components/menu-item/menu-item.js +1 -1
  262. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  263. package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
  264. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  265. package/cdn-versioned/components/notification/notification.js +1 -1
  266. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  267. package/cdn-versioned/components/optgroup/optgroup.js +1 -1
  268. package/cdn-versioned/components/option/option.d.ts +1 -1
  269. package/cdn-versioned/components/option/option.js +1 -1
  270. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  271. package/cdn-versioned/components/popup/popup.js +1 -1
  272. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  273. package/cdn-versioned/components/quickfact/quickfact.js +1 -1
  274. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  275. package/cdn-versioned/components/radio/radio.js +1 -1
  276. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  277. package/cdn-versioned/components/radio-button/radio-button.js +1 -1
  278. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  279. package/cdn-versioned/components/radio-group/radio-group.js +1 -1
  280. package/cdn-versioned/components/range/range.d.ts +1 -1
  281. package/cdn-versioned/components/range/range.js +1 -1
  282. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  283. package/cdn-versioned/components/range-tick/range-tick.js +1 -1
  284. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  285. package/cdn-versioned/components/scrollable/scrollable.js +1 -1
  286. package/cdn-versioned/components/select/select.d.ts +2 -2
  287. package/cdn-versioned/components/select/select.js +1 -1
  288. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  289. package/cdn-versioned/components/spinner/spinner.js +1 -1
  290. package/cdn-versioned/components/step/step.d.ts +1 -1
  291. package/cdn-versioned/components/step/step.js +1 -1
  292. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  293. package/cdn-versioned/components/step-group/step-group.js +1 -1
  294. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  295. package/cdn-versioned/components/switch/switch.js +1 -1
  296. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  297. package/cdn-versioned/components/tab/tab.js +1 -1
  298. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  299. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  300. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  301. package/cdn-versioned/components/tab-panel/tab-panel.js +1 -1
  302. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  303. package/cdn-versioned/components/tag/tag.js +1 -1
  304. package/cdn-versioned/components/teaser/teaser.js +1 -1
  305. package/cdn-versioned/components/teaser-media/teaser-media.js +1 -1
  306. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  307. package/cdn-versioned/components/textarea/textarea.js +1 -1
  308. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  309. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  310. package/cdn-versioned/components/video/video.d.ts +1 -1
  311. package/cdn-versioned/components/video/video.js +1 -1
  312. package/cdn-versioned/custom-elements.json +246 -239
  313. package/cdn-versioned/internal/form.js +3 -3
  314. package/cdn-versioned/solid-components.bundle.js +15 -15
  315. package/cdn-versioned/solid-components.css +2 -2
  316. package/cdn-versioned/solid-components.iife.js +16 -16
  317. package/cdn-versioned/solid-components.js +1 -1
  318. package/cdn-versioned/translations/de.js +1 -1
  319. package/cdn-versioned/translations/en.js +1 -1
  320. package/cdn-versioned/utilities/autocomplete-config.js +1 -1
  321. package/cdn-versioned/utilities/icon-library.js +1 -1
  322. package/cdn-versioned/utilities/localize.d.ts +1 -0
  323. package/cdn-versioned/utilities/localize.js +1 -1
  324. package/cdn-versioned/vscode.html-custom-data.json +91 -91
  325. package/cdn-versioned/web-types.json +155 -154
  326. package/dist/chunks/{chunk.6DQNB3SA.js → chunk.3ABKOHAW.js} +1 -1
  327. package/dist/chunks/{chunk.VE7RWFMR.js → chunk.3ARIWNKQ.js} +1 -1
  328. package/dist/chunks/{chunk.LH6QPA5C.js → chunk.3T7MEK7F.js} +1 -1
  329. package/dist/chunks/{chunk.LG4F5X4T.js → chunk.43MFVINX.js} +2 -2
  330. package/dist/chunks/{chunk.7EDAY5SR.js → chunk.4W52UQUR.js} +1 -1
  331. package/dist/chunks/{chunk.XHPPN7XW.js → chunk.57HIVEJA.js} +2 -2
  332. package/dist/chunks/{chunk.IIYSG3NP.js → chunk.6JH5RYK5.js} +1 -1
  333. package/dist/chunks/{chunk.QUGFVQCM.js → chunk.7HM3D5ZB.js} +1 -1
  334. package/dist/chunks/{chunk.5IFTI3YX.js → chunk.7LZ5ZQ7G.js} +1 -1
  335. package/dist/chunks/{chunk.FFBPU23K.js → chunk.AII7ENVH.js} +1 -1
  336. package/dist/chunks/{chunk.OWWOKHLM.js → chunk.AOZYVZSI.js} +1 -1
  337. package/dist/chunks/{chunk.X5J22XAO.js → chunk.BDKNOJYX.js} +1 -1
  338. package/dist/chunks/{chunk.2LGZXRL4.js → chunk.BN2JSIUV.js} +1 -1
  339. package/dist/chunks/{chunk.WNXSYKQB.js → chunk.BYBDNBDE.js} +1 -1
  340. package/dist/chunks/{chunk.WI2LQTA7.js → chunk.CEVD4PPV.js} +1 -1
  341. package/dist/chunks/{chunk.MUJYVT7H.js → chunk.CQUTC7N3.js} +1 -1
  342. package/dist/chunks/{chunk.ELZAOG6X.js → chunk.DUQJ25W4.js} +1 -1
  343. package/dist/chunks/{chunk.JEZL6XOP.js → chunk.E5QDRLG5.js} +1 -1
  344. package/dist/chunks/{chunk.UERVAUNW.js → chunk.ECTNQOHT.js} +1 -1
  345. package/dist/chunks/{chunk.ED45IL4A.js → chunk.EMEGC6Q7.js} +18 -12
  346. package/dist/chunks/{chunk.JW3IIMMD.js → chunk.ENHM6QPI.js} +1 -1
  347. package/dist/chunks/{chunk.DHGVK7PH.js → chunk.ETFAVTWL.js} +1 -1
  348. package/dist/chunks/{chunk.EV2J2MEU.js → chunk.G5HAUM5L.js} +1 -1
  349. package/dist/chunks/{chunk.7ZBLKJT5.js → chunk.G6CZTG7Q.js} +1 -1
  350. package/dist/chunks/{chunk.77NSPIFM.js → chunk.G6IBNC3A.js} +1 -1
  351. package/dist/chunks/{chunk.7VTXJNYA.js → chunk.GJM2UBD5.js} +1 -1
  352. package/dist/chunks/{chunk.OSOEO2ZC.js → chunk.GXUXYUOG.js} +1 -1
  353. package/dist/chunks/{chunk.ZEI4OKHM.js → chunk.GZ3JKXQ2.js} +1 -1
  354. package/dist/chunks/{chunk.NTFOK2AA.js → chunk.H2H7UKLB.js} +1 -1
  355. package/dist/chunks/{chunk.VSDARV47.js → chunk.H6E4C5UY.js} +1 -1
  356. package/dist/chunks/{chunk.P3RYNUKZ.js → chunk.HIAKAB7R.js} +1 -0
  357. package/dist/chunks/{chunk.2LUZ5ADD.js → chunk.HKATDXCW.js} +1 -1
  358. package/dist/chunks/{chunk.YXCPZAFU.js → chunk.IL7UPX5U.js} +1 -0
  359. package/dist/chunks/{chunk.2SWC2CD2.js → chunk.IORKEN4C.js} +8 -6
  360. package/dist/chunks/{chunk.YCDY43E5.js → chunk.JF4YKLM4.js} +1 -1
  361. package/dist/chunks/{chunk.3V55NXJN.js → chunk.JGFET2UA.js} +1 -1
  362. package/dist/chunks/{chunk.IJFMUKNI.js → chunk.KLFBH24N.js} +1 -1
  363. package/dist/chunks/{chunk.UGN3I35T.js → chunk.KP2X7UDC.js} +1 -1
  364. package/dist/chunks/{chunk.HGH5QNIU.js → chunk.KUG4JFNY.js} +1 -1
  365. package/dist/chunks/{chunk.ZYF25H5G.js → chunk.M4ZYKLLS.js} +2 -2
  366. package/dist/chunks/{chunk.V34O6IDJ.js → chunk.MSMR7NPP.js} +1 -1
  367. package/dist/chunks/{chunk.W77IAZZL.js → chunk.OIC3RK54.js} +1 -1
  368. package/dist/chunks/{chunk.BWILTNTK.js → chunk.OZ6OXBJC.js} +2 -2
  369. package/dist/chunks/{chunk.QVXVVXID.js → chunk.PJ5SMSQP.js} +1 -1
  370. package/dist/chunks/{chunk.KMZJOXPV.js → chunk.QBUQZLK4.js} +1 -1
  371. package/dist/chunks/{chunk.QI2AW6AQ.js → chunk.QGTSHDWW.js} +1 -1
  372. package/dist/chunks/{chunk.5WIXR2JN.js → chunk.QQUOW5WM.js} +1 -1
  373. package/dist/chunks/{chunk.JT54G5CA.js → chunk.RBS2XRPG.js} +1 -1
  374. package/dist/chunks/{chunk.S7SZ7PIX.js → chunk.SLM2NJ64.js} +1 -1
  375. package/dist/chunks/{chunk.K3X5P6CZ.js → chunk.SORC72SZ.js} +1 -1
  376. package/dist/chunks/{chunk.YGOB765P.js → chunk.TGYBKEY2.js} +24 -21
  377. package/dist/chunks/{chunk.NGFE3KFR.js → chunk.TYT467JR.js} +1 -1
  378. package/dist/chunks/{chunk.4WRDUSNG.js → chunk.ULN3BADF.js} +1 -1
  379. package/dist/chunks/{chunk.X6XICQDG.js → chunk.UPQH3D5U.js} +2 -2
  380. package/dist/chunks/chunk.VRFFOJAC.js +82 -0
  381. package/dist/chunks/{chunk.3KHJBMC3.js → chunk.VVBDKQHI.js} +1 -1
  382. package/dist/chunks/{chunk.LJ3YEQTI.js → chunk.W257EQK6.js} +1 -1
  383. package/dist/chunks/{chunk.3M4X7AEY.js → chunk.X3POGM3M.js} +1 -1
  384. package/dist/chunks/{chunk.AAM4EQUJ.js → chunk.Z67EE23U.js} +1 -1
  385. package/dist/chunks/{chunk.HS7LHZQD.js → chunk.ZQ5Z7U7A.js} +1 -1
  386. package/dist/chunks/{chunk.7RNERN6N.js → chunk.ZS7PGX4E.js} +1 -1
  387. package/dist/components/accordion/accordion.js +7 -7
  388. package/dist/components/accordion-group/accordion-group.js +8 -8
  389. package/dist/components/animation/animation.js +2 -2
  390. package/dist/components/audio/audio.d.ts +4 -1
  391. package/dist/components/audio/audio.js +10 -10
  392. package/dist/components/badge/badge.js +2 -2
  393. package/dist/components/brandshape/brandshape.js +2 -2
  394. package/dist/components/breadcrumb/breadcrumb.js +4 -4
  395. package/dist/components/breadcrumb-item/breadcrumb-item.js +4 -4
  396. package/dist/components/button/button.js +5 -5
  397. package/dist/components/button-group/button-group.js +2 -2
  398. package/dist/components/carousel/carousel.js +8 -8
  399. package/dist/components/carousel-item/carousel-item.js +2 -2
  400. package/dist/components/checkbox/checkbox.js +5 -5
  401. package/dist/components/checkbox-group/checkbox-group.js +5 -5
  402. package/dist/components/combobox/combobox.js +9 -9
  403. package/dist/components/dialog/dialog.js +9 -9
  404. package/dist/components/divider/divider.js +2 -2
  405. package/dist/components/drawer/drawer.js +9 -9
  406. package/dist/components/dropdown/dropdown.js +5 -5
  407. package/dist/components/expandable/expandable.js +7 -7
  408. package/dist/components/flipcard/flipcard.js +9 -9
  409. package/dist/components/header/header.js +2 -2
  410. package/dist/components/icon/icon.js +4 -4
  411. package/dist/components/icon/library.internal.js +1 -1
  412. package/dist/components/icon/library.js +2 -2
  413. package/dist/components/include/include.js +2 -2
  414. package/dist/components/input/input.js +7 -7
  415. package/dist/components/link/link.js +2 -2
  416. package/dist/components/loader/loader.js +4 -4
  417. package/dist/components/map-marker/map-marker.js +2 -2
  418. package/dist/components/menu/menu.js +4 -4
  419. package/dist/components/menu-item/menu-item.js +2 -2
  420. package/dist/components/navigation-item/navigation-item.js +8 -8
  421. package/dist/components/notification/notification.js +9 -9
  422. package/dist/components/optgroup/optgroup.js +5 -5
  423. package/dist/components/option/option.js +5 -5
  424. package/dist/components/popup/popup.js +2 -2
  425. package/dist/components/quickfact/quickfact.js +8 -8
  426. package/dist/components/radio/radio.js +2 -2
  427. package/dist/components/radio-button/radio-button.js +2 -2
  428. package/dist/components/radio-group/radio-group.js +4 -4
  429. package/dist/components/range/range.js +4 -4
  430. package/dist/components/range-tick/range-tick.js +4 -4
  431. package/dist/components/scrollable/scrollable.js +7 -7
  432. package/dist/components/select/select.d.ts +1 -1
  433. package/dist/components/select/select.js +9 -9
  434. package/dist/components/spinner/spinner.js +4 -4
  435. package/dist/components/step/step.js +5 -5
  436. package/dist/components/step-group/step-group.js +2 -2
  437. package/dist/components/switch/switch.js +2 -2
  438. package/dist/components/tab/tab.js +4 -4
  439. package/dist/components/tab-group/tab-group.js +7 -7
  440. package/dist/components/tab-panel/tab-panel.js +2 -2
  441. package/dist/components/tag/tag.js +7 -7
  442. package/dist/components/teaser/teaser.js +2 -2
  443. package/dist/components/teaser-media/teaser-media.js +2 -2
  444. package/dist/components/textarea/textarea.js +5 -5
  445. package/dist/components/tooltip/tooltip.js +8 -8
  446. package/dist/components/video/video.js +7 -7
  447. package/dist/custom-elements.json +9 -2
  448. package/dist/solid-components.js +61 -61
  449. package/dist/translations/de.js +1 -1
  450. package/dist/translations/en.js +1 -1
  451. package/dist/utilities/autocomplete-config.js +2 -2
  452. package/dist/utilities/icon-library.js +2 -2
  453. package/dist/utilities/localize.d.ts +1 -0
  454. package/dist/utilities/localize.js +2 -2
  455. package/dist/web-types.json +2 -1
  456. package/dist-versioned/chunks/{chunk.6DQNB3SA.js → chunk.3ABKOHAW.js} +13 -13
  457. package/dist-versioned/chunks/{chunk.VE7RWFMR.js → chunk.3ARIWNKQ.js} +3 -3
  458. package/dist-versioned/chunks/{chunk.LH6QPA5C.js → chunk.3T7MEK7F.js} +4 -4
  459. package/dist-versioned/chunks/{chunk.LG4F5X4T.js → chunk.43MFVINX.js} +4 -4
  460. package/dist-versioned/chunks/{chunk.7EDAY5SR.js → chunk.4W52UQUR.js} +6 -6
  461. package/dist-versioned/chunks/{chunk.XHPPN7XW.js → chunk.57HIVEJA.js} +14 -14
  462. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  463. package/dist-versioned/chunks/{chunk.IIYSG3NP.js → chunk.6JH5RYK5.js} +1 -1
  464. package/dist-versioned/chunks/{chunk.QUGFVQCM.js → chunk.7HM3D5ZB.js} +9 -9
  465. package/dist-versioned/chunks/{chunk.5IFTI3YX.js → chunk.7LZ5ZQ7G.js} +12 -12
  466. package/dist-versioned/chunks/{chunk.FFBPU23K.js → chunk.AII7ENVH.js} +6 -6
  467. package/dist-versioned/chunks/{chunk.OWWOKHLM.js → chunk.AOZYVZSI.js} +4 -4
  468. package/dist-versioned/chunks/{chunk.X5J22XAO.js → chunk.BDKNOJYX.js} +4 -4
  469. package/dist-versioned/chunks/{chunk.2LGZXRL4.js → chunk.BN2JSIUV.js} +2 -2
  470. package/dist-versioned/chunks/{chunk.WNXSYKQB.js → chunk.BYBDNBDE.js} +25 -25
  471. package/dist-versioned/chunks/{chunk.WI2LQTA7.js → chunk.CEVD4PPV.js} +3 -3
  472. package/dist-versioned/chunks/{chunk.MUJYVT7H.js → chunk.CQUTC7N3.js} +4 -4
  473. package/dist-versioned/chunks/{chunk.ELZAOG6X.js → chunk.DUQJ25W4.js} +3 -3
  474. package/dist-versioned/chunks/{chunk.JEZL6XOP.js → chunk.E5QDRLG5.js} +3 -3
  475. package/dist-versioned/chunks/{chunk.UERVAUNW.js → chunk.ECTNQOHT.js} +2 -2
  476. package/dist-versioned/chunks/{chunk.ED45IL4A.js → chunk.EMEGC6Q7.js} +44 -38
  477. package/dist-versioned/chunks/{chunk.JW3IIMMD.js → chunk.ENHM6QPI.js} +3 -3
  478. package/dist-versioned/chunks/{chunk.DHGVK7PH.js → chunk.ETFAVTWL.js} +2 -2
  479. package/dist-versioned/chunks/{chunk.EV2J2MEU.js → chunk.G5HAUM5L.js} +2 -2
  480. package/dist-versioned/chunks/{chunk.7ZBLKJT5.js → chunk.G6CZTG7Q.js} +2 -2
  481. package/dist-versioned/chunks/{chunk.77NSPIFM.js → chunk.G6IBNC3A.js} +4 -4
  482. package/dist-versioned/chunks/{chunk.7VTXJNYA.js → chunk.GJM2UBD5.js} +2 -2
  483. package/dist-versioned/chunks/{chunk.OSOEO2ZC.js → chunk.GXUXYUOG.js} +6 -6
  484. package/dist-versioned/chunks/{chunk.ZEI4OKHM.js → chunk.GZ3JKXQ2.js} +3 -3
  485. package/dist-versioned/chunks/{chunk.NTFOK2AA.js → chunk.H2H7UKLB.js} +2 -2
  486. package/dist-versioned/chunks/{chunk.VSDARV47.js → chunk.H6E4C5UY.js} +3 -3
  487. package/dist-versioned/chunks/{chunk.P3RYNUKZ.js → chunk.HIAKAB7R.js} +1 -0
  488. package/dist-versioned/chunks/{chunk.2LUZ5ADD.js → chunk.HKATDXCW.js} +2 -2
  489. package/dist-versioned/chunks/{chunk.YXCPZAFU.js → chunk.IL7UPX5U.js} +1 -0
  490. package/dist-versioned/chunks/{chunk.2SWC2CD2.js → chunk.IORKEN4C.js} +11 -9
  491. package/dist-versioned/chunks/{chunk.YCDY43E5.js → chunk.JF4YKLM4.js} +2 -2
  492. package/dist-versioned/chunks/{chunk.3V55NXJN.js → chunk.JGFET2UA.js} +5 -5
  493. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  494. package/dist-versioned/chunks/{chunk.IJFMUKNI.js → chunk.KLFBH24N.js} +5 -5
  495. package/dist-versioned/chunks/{chunk.UGN3I35T.js → chunk.KP2X7UDC.js} +4 -4
  496. package/dist-versioned/chunks/{chunk.HGH5QNIU.js → chunk.KUG4JFNY.js} +5 -5
  497. package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
  498. package/dist-versioned/chunks/{chunk.ZYF25H5G.js → chunk.M4ZYKLLS.js} +2 -2
  499. package/dist-versioned/chunks/{chunk.V34O6IDJ.js → chunk.MSMR7NPP.js} +3 -3
  500. package/dist-versioned/chunks/{chunk.W77IAZZL.js → chunk.OIC3RK54.js} +3 -3
  501. package/dist-versioned/chunks/{chunk.BWILTNTK.js → chunk.OZ6OXBJC.js} +3 -3
  502. package/dist-versioned/chunks/{chunk.QVXVVXID.js → chunk.PJ5SMSQP.js} +3 -3
  503. package/dist-versioned/chunks/{chunk.KMZJOXPV.js → chunk.QBUQZLK4.js} +2 -2
  504. package/dist-versioned/chunks/{chunk.QI2AW6AQ.js → chunk.QGTSHDWW.js} +2 -2
  505. package/dist-versioned/chunks/{chunk.5WIXR2JN.js → chunk.QQUOW5WM.js} +7 -7
  506. package/dist-versioned/chunks/{chunk.JT54G5CA.js → chunk.RBS2XRPG.js} +6 -6
  507. package/dist-versioned/chunks/{chunk.S7SZ7PIX.js → chunk.SLM2NJ64.js} +3 -3
  508. package/dist-versioned/chunks/{chunk.K3X5P6CZ.js → chunk.SORC72SZ.js} +3 -3
  509. package/dist-versioned/chunks/{chunk.YGOB765P.js → chunk.TGYBKEY2.js} +26 -23
  510. package/dist-versioned/chunks/{chunk.NGFE3KFR.js → chunk.TYT467JR.js} +2 -2
  511. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  512. package/dist-versioned/chunks/{chunk.4WRDUSNG.js → chunk.ULN3BADF.js} +3 -3
  513. package/dist-versioned/chunks/{chunk.X6XICQDG.js → chunk.UPQH3D5U.js} +8 -8
  514. package/dist-versioned/chunks/chunk.VRFFOJAC.js +82 -0
  515. package/dist-versioned/chunks/{chunk.3KHJBMC3.js → chunk.VVBDKQHI.js} +15 -15
  516. package/dist-versioned/chunks/{chunk.LJ3YEQTI.js → chunk.W257EQK6.js} +4 -4
  517. package/dist-versioned/chunks/{chunk.3M4X7AEY.js → chunk.X3POGM3M.js} +3 -3
  518. package/dist-versioned/chunks/{chunk.AAM4EQUJ.js → chunk.Z67EE23U.js} +3 -3
  519. package/dist-versioned/chunks/{chunk.HS7LHZQD.js → chunk.ZQ5Z7U7A.js} +2 -2
  520. package/dist-versioned/chunks/{chunk.7RNERN6N.js → chunk.ZS7PGX4E.js} +2 -2
  521. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  522. package/dist-versioned/components/accordion/accordion.js +7 -7
  523. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  524. package/dist-versioned/components/accordion-group/accordion-group.js +8 -8
  525. package/dist-versioned/components/animation/animation.d.ts +1 -1
  526. package/dist-versioned/components/animation/animation.js +2 -2
  527. package/dist-versioned/components/audio/audio.d.ts +5 -2
  528. package/dist-versioned/components/audio/audio.js +10 -10
  529. package/dist-versioned/components/badge/badge.d.ts +1 -1
  530. package/dist-versioned/components/badge/badge.js +2 -2
  531. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  532. package/dist-versioned/components/brandshape/brandshape.js +2 -2
  533. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  534. package/dist-versioned/components/breadcrumb/breadcrumb.js +4 -4
  535. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  536. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.js +4 -4
  537. package/dist-versioned/components/button/button.d.ts +1 -1
  538. package/dist-versioned/components/button/button.js +5 -5
  539. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  540. package/dist-versioned/components/button-group/button-group.js +2 -2
  541. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  542. package/dist-versioned/components/carousel/carousel.js +8 -8
  543. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  544. package/dist-versioned/components/carousel-item/carousel-item.js +2 -2
  545. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  546. package/dist-versioned/components/checkbox/checkbox.js +5 -5
  547. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  548. package/dist-versioned/components/checkbox-group/checkbox-group.js +5 -5
  549. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  550. package/dist-versioned/components/combobox/combobox.js +9 -9
  551. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  552. package/dist-versioned/components/dialog/dialog.js +9 -9
  553. package/dist-versioned/components/divider/divider.d.ts +1 -1
  554. package/dist-versioned/components/divider/divider.js +2 -2
  555. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  556. package/dist-versioned/components/drawer/drawer.js +9 -9
  557. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  558. package/dist-versioned/components/dropdown/dropdown.js +5 -5
  559. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  560. package/dist-versioned/components/expandable/expandable.js +7 -7
  561. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  562. package/dist-versioned/components/flipcard/flipcard.js +9 -9
  563. package/dist-versioned/components/header/header.d.ts +1 -1
  564. package/dist-versioned/components/header/header.js +2 -2
  565. package/dist-versioned/components/icon/icon.d.ts +1 -1
  566. package/dist-versioned/components/icon/icon.js +4 -4
  567. package/dist-versioned/components/icon/library.internal.js +1 -1
  568. package/dist-versioned/components/icon/library.js +2 -2
  569. package/dist-versioned/components/include/include.d.ts +1 -1
  570. package/dist-versioned/components/include/include.js +2 -2
  571. package/dist-versioned/components/input/input.d.ts +1 -1
  572. package/dist-versioned/components/input/input.js +7 -7
  573. package/dist-versioned/components/link/link.d.ts +1 -1
  574. package/dist-versioned/components/link/link.js +2 -2
  575. package/dist-versioned/components/loader/loader.d.ts +1 -1
  576. package/dist-versioned/components/loader/loader.js +4 -4
  577. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  578. package/dist-versioned/components/map-marker/map-marker.js +2 -2
  579. package/dist-versioned/components/menu/menu.d.ts +1 -1
  580. package/dist-versioned/components/menu/menu.js +4 -4
  581. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  582. package/dist-versioned/components/menu-item/menu-item.js +2 -2
  583. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  584. package/dist-versioned/components/navigation-item/navigation-item.js +8 -8
  585. package/dist-versioned/components/notification/notification.d.ts +1 -1
  586. package/dist-versioned/components/notification/notification.js +9 -9
  587. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  588. package/dist-versioned/components/optgroup/optgroup.js +5 -5
  589. package/dist-versioned/components/option/option.d.ts +1 -1
  590. package/dist-versioned/components/option/option.js +5 -5
  591. package/dist-versioned/components/popup/popup.d.ts +1 -1
  592. package/dist-versioned/components/popup/popup.js +2 -2
  593. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  594. package/dist-versioned/components/quickfact/quickfact.js +8 -8
  595. package/dist-versioned/components/radio/radio.d.ts +1 -1
  596. package/dist-versioned/components/radio/radio.js +2 -2
  597. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  598. package/dist-versioned/components/radio-button/radio-button.js +2 -2
  599. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  600. package/dist-versioned/components/radio-group/radio-group.js +4 -4
  601. package/dist-versioned/components/range/range.d.ts +1 -1
  602. package/dist-versioned/components/range/range.js +4 -4
  603. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  604. package/dist-versioned/components/range-tick/range-tick.js +4 -4
  605. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  606. package/dist-versioned/components/scrollable/scrollable.js +7 -7
  607. package/dist-versioned/components/select/select.d.ts +2 -2
  608. package/dist-versioned/components/select/select.js +9 -9
  609. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  610. package/dist-versioned/components/spinner/spinner.js +4 -4
  611. package/dist-versioned/components/step/step.d.ts +1 -1
  612. package/dist-versioned/components/step/step.js +5 -5
  613. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  614. package/dist-versioned/components/step-group/step-group.js +2 -2
  615. package/dist-versioned/components/switch/switch.d.ts +1 -1
  616. package/dist-versioned/components/switch/switch.js +2 -2
  617. package/dist-versioned/components/tab/tab.d.ts +1 -1
  618. package/dist-versioned/components/tab/tab.js +4 -4
  619. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  620. package/dist-versioned/components/tab-group/tab-group.js +7 -7
  621. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  622. package/dist-versioned/components/tab-panel/tab-panel.js +2 -2
  623. package/dist-versioned/components/tag/tag.d.ts +1 -1
  624. package/dist-versioned/components/tag/tag.js +7 -7
  625. package/dist-versioned/components/teaser/teaser.js +2 -2
  626. package/dist-versioned/components/teaser-media/teaser-media.js +2 -2
  627. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  628. package/dist-versioned/components/textarea/textarea.js +5 -5
  629. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  630. package/dist-versioned/components/tooltip/tooltip.js +8 -8
  631. package/dist-versioned/components/video/video.d.ts +1 -1
  632. package/dist-versioned/components/video/video.js +7 -7
  633. package/dist-versioned/custom-elements.json +246 -239
  634. package/dist-versioned/internal/form.js +3 -3
  635. package/dist-versioned/solid-components.css +2 -2
  636. package/dist-versioned/solid-components.js +61 -61
  637. package/dist-versioned/translations/de.js +1 -1
  638. package/dist-versioned/translations/en.js +1 -1
  639. package/dist-versioned/utilities/autocomplete-config.js +2 -2
  640. package/dist-versioned/utilities/icon-library.js +2 -2
  641. package/dist-versioned/utilities/localize.d.ts +1 -0
  642. package/dist-versioned/utilities/localize.js +2 -2
  643. package/dist-versioned/vscode.html-custom-data.json +91 -91
  644. package/dist-versioned/web-types.json +155 -154
  645. package/package.json +2 -2
  646. package/cdn/chunks/chunk.EYOFW6DA.js +0 -25
  647. package/cdn/chunks/chunk.MTTULBJJ.js +0 -1
  648. package/cdn/chunks/chunk.PK2BOC64.js +0 -1
  649. package/cdn-versioned/chunks/chunk.4YGHSZYG.js +0 -1
  650. package/cdn-versioned/chunks/chunk.EYOFW6DA.js +0 -25
  651. package/cdn-versioned/chunks/chunk.GGNESNM4.js +0 -1
  652. package/cdn-versioned/chunks/chunk.GOF4ZVCF.js +0 -11
  653. package/cdn-versioned/chunks/chunk.HLA3SRP7.js +0 -11
  654. package/cdn-versioned/chunks/chunk.HQD5PMJ6.js +0 -11
  655. package/cdn-versioned/chunks/chunk.J5O47B25.js +0 -1
  656. package/cdn-versioned/chunks/chunk.LHEXO22N.js +0 -1
  657. package/cdn-versioned/chunks/chunk.MTTULBJJ.js +0 -1
  658. package/cdn-versioned/chunks/chunk.N5CQJHZQ.js +0 -1
  659. package/cdn-versioned/chunks/chunk.P7RMWM44.js +0 -1
  660. package/cdn-versioned/chunks/chunk.PK2BOC64.js +0 -1
  661. package/cdn-versioned/chunks/chunk.PYFKECFP.js +0 -1
  662. package/cdn-versioned/chunks/chunk.Q5MHHB4U.js +0 -1
  663. package/cdn-versioned/chunks/chunk.RHSPP6ZZ.js +0 -1
  664. package/cdn-versioned/chunks/chunk.SRKXQ6FG.js +0 -1
  665. package/cdn-versioned/chunks/chunk.T27666UD.js +0 -1
  666. package/cdn-versioned/chunks/chunk.TUFRTO4T.js +0 -1
  667. package/cdn-versioned/chunks/chunk.U24DDUI7.js +0 -1
  668. package/cdn-versioned/chunks/chunk.UQHI5B2R.js +0 -1
  669. package/cdn-versioned/chunks/chunk.VPPELN6X.js +0 -1
  670. package/cdn-versioned/chunks/chunk.YMSIMSMY.js +0 -1
  671. package/cdn-versioned/chunks/chunk.YRRYK5NI.js +0 -1
  672. package/cdn-versioned/chunks/chunk.ZA6VOBKL.js +0 -1
  673. package/dist/chunks/chunk.MOXWYOS4.js +0 -82
  674. package/dist-versioned/chunks/chunk.MOXWYOS4.js +0 -82
@@ -1,11 +0,0 @@
1
- import{a as M}from"./chunk.CDC46OKY.js";import{c as I}from"./chunk.3L472FD4.js";import{b as L}from"./chunk.6HLS5XU2.js";import{a as z}from"./chunk.CGQ2BPPZ.js";import{a as w,c as O}from"./chunk.SKUMYG4O.js";import{a as C}from"./chunk.KLRPP4NQ.js";import{a as k}from"./chunk.N2OPZHJV.js";import{a as d}from"./chunk.26V4EXHB.js";import{a as D}from"./chunk.GHC63SXL.js";import{a as b}from"./chunk.E2DRD2OX.js";import{a as $,b as r,c as u,d as c,g as E,h as x}from"./chunk.EYOFW6DA.js";import{b as T,e as p}from"./chunk.UWPDCU52.js";import{b as g,e as y}from"./chunk.6OTM3PE5.js";import{e as s}from"./chunk.TJOCV4DC.js";var i=class extends x{constructor(){super(...arguments);this.formControlController=new L(this,{assumeInteractionOn:["sd-blur","sd-5-13-9-input"]});this.hasSlotController=new z(this,"help-text","label");this.localize=new D(this);this.typeToSelectString="";this.displayLabel="";this.deletedTagLabel="";this.hasFocus=!1;this.selectedOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.defaultValue="";this.open=!1;this.size="lg";this.placement="bottom";this.label="";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.helpText="";this.currentPlacement=this.placement;this.clearable=!1;this.multiple=!1;this.useTags=!1;this.maxOptionsVisible=3;this.form="";this.name="";this.value="";this.required=!1;this.styleOnValid=!1;this.hoist=!1;this.getTag=t=>p`<sd-5-13-9-tag class="relative z-10" ?disabled="${this.disabled}" part="tag" exportparts="
2
- base:tag__base,
3
- content:tag__content,
4
- removable-indicator:tag__removable-indicator,
5
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-5-13-9-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{let e=t.target,l=e.closest(".select__clear")!==null,o=e.closest("sd-5-13-9-icon-button")!==null;if(!(l||o)){if(t.key==="Escape"&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.combobox.focus({preventScroll:!0})),t.key==="Enter"||t.key===" "&&this.typeToSelectString===""){if(t.preventDefault(),t.stopImmediatePropagation(),!this.open){this.show(),this.setCurrentOption(this.currentOption||this.getFirstOption(),t);return}this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.combobox.focus({preventScroll:!0})));return}if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){let h=this.getAllOptions(),a=h.indexOf(this.currentOption),n=Math.max(0,a);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;t.key==="ArrowDown"?(n=a+1,n>h.length-1&&(n=0)):t.key==="ArrowUp"?(n=a-1,n<0&&(n=h.length-1)):t.key==="Home"?n=0:t.key==="End"&&(n=h.length-1),this.setCurrentOption(h[n],t)}if(t.key.length===1||t.key==="Backspace"){let h=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if(t.key==="Backspace")return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout(()=>this.typeToSelectString="",1e3),t.key==="Backspace"?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(let a of h)if(a.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(a);break}}}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){this.applySizeToOptions()}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){var l,o,h;if((t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple){t.preventDefault(),t.stopPropagation();let a=(l=t.currentTarget)==null?void 0:l.parentElement,n=(o=a==null?void 0:a.previousElementSibling)==null?void 0:o.querySelector("sd-5-13-9-tag"),m=(h=a==null?void 0:a.nextElementSibling)==null?void 0:h.querySelector("sd-5-13-9-tag");this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>{m?m.focus():n?n.focus():this.focus({preventScroll:!0})})}}handleTagMaxOptionsKeyDown(t){(t.key==="Backspace"||t.key==="Enter")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>{var l;let e=(l=this.shadowRoot)==null?void 0:l.querySelectorAll("sd-5-13-9-tag");e&&e.length>0?e==null||e[(e==null?void 0:e.length)-1].focus():this.focus({preventScroll:!0})}))}handleLabelClick(){this.combobox.focus()}handleComboboxMouseDown(t){let l=t.composedPath().some(o=>o instanceof HTMLSlotElement&&o.name==="removable-indicator");this.disabled||l||this.visuallyDisabled||(t.preventDefault(),this.combobox.focus({preventScroll:!0}),this.open=!this.open,this.setCurrentOption(this.currentOption||this.getFirstOption(),t))}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearSelect()}clearSelect(){this.setSelectedOptions([]),this.combobox.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let l=t.target.closest("sd-5-13-9-option"),o=this.value;l&&!l.disabled&&(this.multiple?this.toggleOptionSelection(l):this.setSelectedOptions(l),this.updateComplete.then(()=>this.combobox.focus({preventScroll:!0})),this.value!==o&&this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.combobox.focus({preventScroll:!0})))}handleDefaultSlotChange(){let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],l=[];customElements.get("sd-5-13-9-option")?(t.forEach(o=>{this.multiple&&(o.checkbox=!0),l.push(o.value)}),this.setSelectedOptions(t.filter(o=>e.includes(o.value)))):customElements.whenDefined("sd-5-13-9-option").then(()=>this.handleDefaultSlotChange())}handleTagRemove(t,e){t.stopPropagation(),e||this.clearSelect(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.deletedTagLabel=this.localize.term("removed",e.textContent),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}))}getAllOptions(){return[...this.querySelectorAll("sd-5-13-9-option")]}getFirstOption(){return this.querySelector("sd-5-13-9-option")}setCurrentOption(t,e){this.getAllOptions().forEach(o=>{o.current=!1,o.tabIndex=-1,((e==null?void 0:e.type)==="keydown"||(e==null?void 0:e.type)==="mousedown")&&(o.isKeyboardFocus=!1)}),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus()),t&&(e==null?void 0:e.type)==="keydown"&&(t.isKeyboardFocus=!0)}setSelectedOptions(t){let e=this.getAllOptions(),l=Array.isArray(t)?t:[t];e.forEach(o=>o.selected=!1),l.length&&l.forEach(o=>o.selected=!0),Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}toggleOptionSelection(t,e){e===!0||e===!1?t.selected=e:t.selected=!t.selected,Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}selectionChanged(t){var e,l,o,h;t&&this.multiple?this.selectedOptions.find(a=>a.value===t.value)?this.selectedOptions=this.selectedOptions.filter(a=>a.value!==t.value):this.selectedOptions=[...this.selectedOptions,t]:this.selectedOptions=this.getAllOptions().filter(a=>a.selected),this.multiple?(this.value=this.selectedOptions.map(a=>a.value),this.useTags||this.value.length===0?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(l=(e=this.selectedOptions[0])==null?void 0:e.value)!=null?l:"",this.displayLabel=(h=(o=this.selectedOptions[0])==null?void 0:o.getTextLabel())!=null?h:""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let l=this.getTag(t,e);return p`<div @sd-remove="${o=>this.handleTagRemove(o,t)}">${typeof l=="string"?k(l):l}</div>`}return[p``]}):[p`<sd-5-13-9-tag class="z-10" ?disabled="${this.disabled}" part="tag" exportparts="
6
- base:tag__base,
7
- content:tag__content,
8
- removable-indicator:tag__removable-indicator,
9
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-5-13-9-tag>`]}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){let t=this.getAllOptions();customElements.get("sd-5-13-9-option")&&t.forEach(e=>{e.checkbox=this.multiple})}handleDisabledChange(){(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.multiple||this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await y(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:t,options:e}=O(this,"select.show",{dir:this.localize.dir()});await g(this.popup.popup,t,e),this.currentOption&&I(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await y(this);let{keyframes:t,options:e}=O(this,"select.hide",{dir:this.localize.dir()});await g(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach(t=>{t.size=this.size})}handleValueChange(){if(this.selectedOptions.length===(Array.isArray(this.value)?this.value.length:1))return;let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter(l=>e.includes(l.value)))}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,C(this,"sd-after-show")}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.open=!1,C(this,"sd-after-hide")}checkValidity(){var t;return(t=this.valueInput)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.combobox.focus(t)}blur(){this.combobox.blur()}render(){let t={default:this.hasSlotController.test("[default]"),label:this.hasSlotController.test("label"),clearIcon:this.hasSlotController.test("clear-icon"),expandIcon:this.hasSlotController.test("expand-icon"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,l=this.helpText?!0:!!t.helpText,o=this.clearable&&!this.disabled,h=!!t.tooltip,a=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",n=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",m={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],f={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return p`<div part="form-control" class="${d("relative text-left",n,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><span class="sr-only" aria-live="polite">${this.deletedTagLabel}</span> ${e||h?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${e&&"inline-block"}" aria-hidden="${e?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${d("relative w-full bg-white",a==="disabled"?"text-neutral-500":"text-black")}"><div part="border" class="${d("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[a],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-5-13-9-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${d("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
10
- popup:popup__content,
11
- "><div class="${d("relative w-full h-full grid grid-cols-1 rounded-default transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:bg-neutral-200")}" slot="anchor"><div class="${d("input-container flex items-center w-full h-full px-4",{sm:"py-1",md:"py-1",lg:"py-2"}[this.size])}"><input name="${this.name}" form="${this.form}" part="display-input" class="${d("top-0 left-0 appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",n,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" .disabled="${this.disabled}" placeholder="${this.placeholder||this.localize.term("selectDefaultPlaceholder")}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="-1"> ${this.multiple&&this.useTags?p`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(v=>v==null?void 0:v.getTextLabel()).join(", ")}</div><input class="${d("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",n)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${o?p`<button part="clear-button" class="${d("select__clear flex justify-center",m,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-13-9-icon class="${d("text-neutral-700 z-10",f)}" library="_internal" name="closing-round"></sd-5-13-9-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-5-13-9-icon part="invalid-icon" class="${d(m,f,"text-error")}" library="_internal" name="risk"></sd-5-13-9-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-5-13-9-icon part="valid-icon" class="${d("flex-shrink-0 text-success",m,f)}" library="_internal" name="status-check"></sd-5-13-9-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${d("inline-flex ml-2 items-center transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",f)}"><sd-5-13-9-icon name="chevron-down" part="chevron" library="_internal" color="currentColor"></sd-5-13-9-icon></slot></div><button part="combobox" class="${d("relative w-full px-4 flex flex-row items-center rounded-default focus-visible:outline-none",n,this.open&&"shadow transition-shadow duration-medium ease-in-out",{sm:"min-h-[32px]",md:"min-h-[40px]",lg:"min-h-[48px]"}[this.size])}" type="button" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-labelledby="label"></button></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${d("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow transition-shadow duration-medium ease-in-out",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-5-13-9-popup></div><div class="text-sm text-neutral-700 mt-2" part="form-control-help-text" id="help-text" aria-hidden="${l?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};i.styles=[...x.styles,T`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-5-13-9-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-5-13-9-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-5-13-9-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-5-13-9-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-5-13-9-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}`],s([E({selector:"sd-5-13-9-option"})],i.prototype,"_optionsInDefaultSlot",2),s([c("sd-5-13-9-popup")],i.prototype,"popup",2),s([c('[part="combobox"]')],i.prototype,"combobox",2),s([c('[part="display-input"]')],i.prototype,"displayInput",2),s([c(".value-input")],i.prototype,"valueInput",2),s([c('[part="listbox"]')],i.prototype,"listbox",2),s([c("#invalid-message")],i.prototype,"invalidMessage",2),s([u()],i.prototype,"displayLabel",2),s([u()],i.prototype,"deletedTagLabel",2),s([u()],i.prototype,"hasFocus",2),s([u()],i.prototype,"currentOption",2),s([u()],i.prototype,"selectedOptions",2),s([u()],i.prototype,"showValidStyle",2),s([u()],i.prototype,"showInvalidStyle",2),s([M()],i.prototype,"defaultValue",2),s([r({type:Boolean,reflect:!0})],i.prototype,"open",2),s([r({type:String,reflect:!0})],i.prototype,"size",2),s([r({type:String,reflect:!0})],i.prototype,"placement",2),s([r({type:String,reflect:!0})],i.prototype,"label",2),s([r({type:String,reflect:!0})],i.prototype,"placeholder",2),s([r({type:String,attribute:"max-options-tag-label",reflect:!0})],i.prototype,"maxOptionsTagLabel",2),s([r({type:Boolean,reflect:!0})],i.prototype,"disabled",2),s([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],i.prototype,"visuallyDisabled",2),s([r({type:String,attribute:"help-text",reflect:!0})],i.prototype,"helpText",2),s([u()],i.prototype,"currentPlacement",2),s([r({type:Boolean,reflect:!0})],i.prototype,"clearable",2),s([r({type:Boolean,reflect:!0})],i.prototype,"multiple",2),s([r({type:Boolean,reflect:!0})],i.prototype,"useTags",2),s([r({attribute:"max-options-visible",type:Number,reflect:!0})],i.prototype,"maxOptionsVisible",2),s([r({reflect:!0})],i.prototype,"form",2),s([r({reflect:!0})],i.prototype,"name",2),s([r({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],i.prototype,"value",2),s([r({type:Boolean,reflect:!0})],i.prototype,"required",2),s([r({type:Boolean,reflect:!0,attribute:"style-on-valid"})],i.prototype,"styleOnValid",2),s([r({type:Boolean,reflect:!0})],i.prototype,"hoist",2),s([r()],i.prototype,"getTag",2),s([b("useTags",{waitUntilFirstUpdate:!0})],i.prototype,"handleUseTagsChange",1),s([b(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],i.prototype,"handleDisabledChange",1),s([b("open",{waitUntilFirstUpdate:!0})],i.prototype,"handleOpenChange",1),s([b("size",{waitUntilFirstUpdate:!0})],i.prototype,"applySizeToOptions",1),s([b("value",{waitUntilFirstUpdate:!0})],i.prototype,"handleValueChange",1),i=s([$("sd-5-13-9-select")],i);w("select.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});w("select.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{i as a};
@@ -1,11 +0,0 @@
1
- import{a as k}from"./chunk.BJBQEPZV.js";import{a as T}from"./chunk.C577EOP7.js";import{a as _}from"./chunk.T64D3FLT.js";import{a as C}from"./chunk.CBQWVOOS.js";import{a as l}from"./chunk.26V4EXHB.js";import{a as M}from"./chunk.GHC63SXL.js";import{a as v}from"./chunk.E2DRD2OX.js";import{a as E,b as p,c as b,d as f,e as $,h as S}from"./chunk.EYOFW6DA.js";import{b as x,e as m}from"./chunk.UWPDCU52.js";import{d as A}from"./chunk.6OTM3PE5.js";import{e as o}from"./chunk.TJOCV4DC.js";function L(u,d,e){let i=t=>Object.is(t,-0)?0:t;return u<d?i(d):u>e?i(e):i(u)}function*I(u,d){if(u!==void 0){let e=0;for(let i of u)yield d(i,e++)}}function*B(u,d,e=1){let i=d===void 0?0:u;d!=null||(d=u);for(let t=i;e>0?t<d:d<t;t+=e)yield t}var r=class extends S{constructor(){super(...arguments);this.variant="number";this.inverted=!1;this.loop=!1;this.autoplay=!1;this.fade=!1;this.slidesPerPage=1;this.slidesPerMove=1;this.activeSlide=0;this.currentPage=1;this.pausedAutoplay=!1;this.autoplayController=new C(this,()=>this.next());this.scrollController=new T(this);this.slides=this.getElementsByTagName("sd-5-13-9-carousel-item");this.intersectionObserverEntries=new Map;this.localize=new M(this);this.userInteracted=!1;this.fadeController=new k(this);this.handleUserInteraction=()=>{this.userInteracted=!0};this.handleSlotChange=e=>{e.some(t=>[...t.addedNodes,...t.removedNodes].some(s=>_.isCarouselItem(s)&&!s.hasAttribute("data-clone")))&&this.initializeSlides(),this.requestUpdate()};this.unblockAutoplay=(e,i)=>{e.detail&&i.blur()}}connectedCallback(){super.connectedCallback(),["click","keydown"].forEach(i=>this.addEventListener(i,this.handleUserInteraction));let e=new IntersectionObserver(i=>{i.forEach(t=>{this.intersectionObserverEntries.set(t.target,t);let s=t.target;s.toggleAttribute("inert",!t.isIntersecting),s.classList.toggle("--in-view",t.isIntersecting),s.setAttribute("aria-hidden",t.isIntersecting?"false":"true")})},{root:this,threshold:.6});this.intersectionObserver=e,e.takeRecords().forEach(i=>{this.intersectionObserverEntries.set(i.target,i)})}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),["click","keydown"].forEach(e=>this.removeEventListener(e,this.handleUserInteraction)),this.fade&&this.fadeController.disable()}async firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1}),this.fade&&(await this.updateComplete,this.fadeController.enable())}getPageCount(e,i,t){return Math.ceil((e-i)/t)+1>0?Math.ceil((e-i)/t)+1:1}getCurrentPage(e,i,t,s){return Math.ceil((e-t)/s)-Math.ceil((e-t-i)/s)+1}getSlides({excludeClones:e=!0}={}){return[...this.slides].filter(i=>!e||!i.hasAttribute("data-clone"))}handleKeyDown(e){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)){let i=e.target,t=this.localize.dir()==="rtl",s=i.closest('[part~="pagination-item"]')!==null,n=e.key==="ArrowDown"||!t&&e.key==="ArrowRight"||t&&e.key==="ArrowLeft",h=e.key==="ArrowUp"||!t&&e.key==="ArrowLeft"||t&&e.key==="ArrowRight";e.preventDefault(),h&&this.previous(),n&&this.next(),e.key==="Home"&&this.goToSlide(0),e.key==="End"&&this.goToSlide(this.getSlides().length-1),s&&this.updateComplete.then(()=>{var a;let c=(a=this.shadowRoot)==null?void 0:a.querySelector('[part~="pagination-item--active"]');c&&c.focus()})}}handleScrollEnd(){if(this.fade)return;let e=this.getSlides(),t=[...this.intersectionObserverEntries.values()].find(s=>s.isIntersecting);if(this.loop&&(t!=null&&t.target.hasAttribute("data-clone"))){let s=Number(t.target.getAttribute("data-clone"));this.goToSlide(s,"auto");return}t&&(this.activeSlide=e.indexOf(t.target))}handleFocus(){this.autoplay&&this.scrollContainer.setAttribute("aria-live","polite")}handleBlur(){this.autoplay&&this.scrollContainer.setAttribute("aria-live","off")}pause(){this.pausedAutoplay=!0}resume(){this.pausedAutoplay=!1}handlePausedAutoplay(){var e,i;this.pausedAutoplay?(this.autoplayController.stop(),(e=this.autoplayControls)==null||e.setAttribute("aria-pressed","false")):this.autoplay&&(this.autoplayController.start(3e3),(i=this.autoplayControls)==null||i.setAttribute("aria-pressed","true"))}handleFadeChange(){this.fade?this.fadeController.enable():this.fadeController.disable()}initializeSlides(){let e=this.getSlides(),i=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach((t,s)=>{i.unobserve(t),t.classList.remove("--in-view"),t.classList.remove("--is-active"),t.setAttribute("aria-label",this.localize.term("slideNum",s+1,e.length)),t.hasAttribute("data-clone")&&t.remove()}),this.loop&&!this.fade){let t=this.slidesPerPage,s=e.slice(-t),n=e.slice(0,t);s.reverse().forEach((h,c)=>{let a=h.cloneNode(!0);a.setAttribute("data-clone",String(e.length-c-1)),this.prepend(a)}),n.forEach((h,c)=>{let a=h.cloneNode(!0);a.setAttribute("data-clone",String(c)),this.append(a)})}this.getSlides({excludeClones:!1}).forEach(t=>{i.observe(t)}),this.fade&&this.updateComplete.then(()=>{this.fadeController.enable()}),this.fade||this.goToSlide(this.activeSlide,"auto")}handleSlideChange(){let e=this.getSlides();e.forEach((s,n)=>{s.classList.toggle("--is-active",n===this.activeSlide)}),this.fade&&this.fadeController.updateActiveSlide(this.activeSlide);let i=this.getCurrentPage(e.length,this.activeSlide,this.slidesPerPage,this.slidesPerMove);this.currentPage!==i&&(this.currentPage=i),this.hasUpdated&&this.emit("sd-slide-change",{detail:{index:this.activeSlide,slide:e[this.activeSlide]}});let t=this.getPageCount(e.length,this.slidesPerPage,this.slidesPerMove);this.currentPage>t&&requestAnimationFrame(()=>{this.nextTillFirst()})}handleSlidesPerMoveChange(){if(this.fade)return;let e=this.getSlides({excludeClones:!1}),i=this.slidesPerMove;e.forEach((t,s)=>{Math.abs(s-i)%i===0?t.style.removeProperty("scroll-snap-align"):t.style.setProperty("scroll-snap-align","none")})}handleAutoplayChange(){this.autoplayController.stop(),this.autoplay&&!this.pausedAutoplay&&this.autoplayController.start(3e3)}previous(e="smooth"){if(this.fade){let s=this.loop?(this.activeSlide-1+this.getSlides().length)%this.getSlides().length:Math.max(0,this.activeSlide-1);this.goToSlide(s);return}let i=this.activeSlide||this.activeSlide-this.slidesPerMove,t=!1;for(;!t&&i>0;)i-=1,t=Math.abs(i-this.slidesPerMove)%this.slidesPerMove===0;this.currentPage-1===0&&this.loop?this.goToSlide(this.activeSlide-this.slidesPerPage,e):this.goToSlide(i,e)}next(e="smooth"){if(this.fade){let i=this.loop?(this.activeSlide+1)%this.getSlides().length:Math.min(this.getSlides().length-1,this.activeSlide+1);this.goToSlide(i);return}this.currentPage+1<=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove)?this.goToSlide(this.activeSlide+this.slidesPerMove,e):this.loop&&this.nextTillFirst(e)}nextTillFirst(e="smooth"){if(this.fade){this.goToSlide(0);return}for(;this.activeSlide!==0;)this.goToSlide(this.activeSlide+1,e);this.currentPage=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove)}goToSlide(e,i="smooth"){let{slidesPerPage:t,loop:s,scrollContainer:n,fade:h}=this,c=this.getSlides(),a=this.getSlides({excludeClones:!1}),g=(e+c.length)%c.length;if(this.activeSlide=g,h)return;let y=L(e+(s?t:0),0,a.length+1),O=a[y],w=n.getBoundingClientRect(),P=O.getBoundingClientRect();if(n.scrollTo({left:P.left-w.left+n.scrollLeft,top:P.top-w.top+n.scrollTop,behavior:A()?"auto":i}),this.userInteracted&&!this.loop){let z=this.activeSlide===c.length-1||this.activeSlide===this.slides.length-this.slidesPerPage,H=this.activeSlide===0;z?this.previousButton.focus({preventScroll:!0}):H&&this.nextButton.focus({preventScroll:!0})}}render(){let{scrollController:e,slidesPerMove:i}=this,t=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove),s=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove),n=this.loop||s>1,h=this.loop||s<t,c=this.localize.dir()==="ltr";return m`<div part="base" class="${l("carousel h-full w-full")}"><div id="scroll-container" part="scroll-container" class="${l("carousel__slides mb-6 max-h-full w-full items-center justify-items-center",this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.fade?"relative overflow-hidden":"grid overflow-auto overscroll-x-contain grid-flow-col auto-rows-[100%] snap-x snap-mandatory overflow-y-hidden")}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${e.scrolling?"true":"false"}" aria-label="${this.localize.term("carouselContainer",Array.from(this.slides).filter(a=>!a.hasAttribute("data-clone")).length)}" aria-live="${this.autoplay?"off":"polite"}" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><slot></slot></div><div part="controls" class="${l("w-full flex items-center justify-center relative")}"><div part="navigation" class="${l("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!n}" class="${l("!mr-6 !rounded-sm sd-interactive transition-colors duration-fast ease-in-out",!n&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${n?"false":"true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${n?a=>{this.previous(),this.unblockAutoplay(a,this.previousButton)}:null}"><slot name="previous-icon"><sd-5-13-9-icon class="${l("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${c?"chevron-down":"chevron-up"}"></sd-5-13-9-icon></slot></button> ${this.variant==="dot"?m`<div part="pagination-dot" role="tablist" class="${l("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${I(B(t),a=>{let g=a+1===s;return m`<button part="pagination-item ${g?"pagination-item--active":""}" class="${l("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",g?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${g?"true":"false"}" aria-label="${this.localize.term("goToSlide",a+1,t)}" @click="${y=>{this.goToSlide(a*i),this.unblockAutoplay(y,this.paginationItems[a])}}" @keydown="${this.handleKeyDown}"><span class="${l("h-4 w-4 block border hover:border-primary-500 rounded-full transition-colors duration-slow hover:duration-fast ease-in-out",this.inverted?"border-white hover:border-primary-500":"border-primary",g&&"bg-accent border-none",g?this.inverted?"hover:bg-accent-300":"hover:bg-accent-550":"")}"></span></button>`})}</div>`:m`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${l("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${s}</span> <span part="pagination-divider" class="${l("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${l("w-5 text-center",this.inverted?"text-white":"text-black")}">${t}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!h}" class="${l("!ml-6 !rounded-sm sd-interactive transition-colors duration-fast ease-in-out",!h&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${h?"false":"true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${h?a=>{this.next(),this.unblockAutoplay(a,this.nextButton)}:null}"><slot name="next-icon"><sd-5-13-9-icon class="${l("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${c?"chevron-up":"chevron-down"}"></sd-5-13-9-icon></slot></button></div><button class="${l("ml-6 !rounded-sm","!absolute !right-0 sd-interactive",this.inverted?"sd-interactive--inverted":"sd-interactive--reset",!this.autoplay&&"!hidden")}" part="autoplay-controls" aria-label="${this.localize.term("autoplay")}" aria-pressed="true" @click="${a=>{this.pausedAutoplay=!this.pausedAutoplay,a.detail&&this.autoplayControls.blur()}}"><slot name="autoplay-start" class="${l(this.pausedAutoplay?"":"hidden")}"><sd-5-13-9-icon class="h-6 w-6 grid place-items-center" library="_internal" name="start"></sd-5-13-9-icon></slot><slot name="autoplay-pause" class="${l(this.pausedAutoplay?"hidden":"")}"><sd-5-13-9-icon class="h-6 w-6 grid place-items-center" library="_internal" name="pause"></sd-5-13-9-icon></slot></button></div></div>`}};r.styles=[...S.styles,x`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}:host([fade]){--carousel-height:auto}:host([fade]) .carousel__slides{display:block;height:var(--carousel-height);overflow:hidden;position:relative}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-5-13-9-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`],o([f('[part~="autoplay-controls"]')],r.prototype,"autoplayControls",2),o([f('[part~="navigation-button--previous"]')],r.prototype,"previousButton",2),o([f('[part~="navigation-button--next"]')],r.prototype,"nextButton",2),o([$('[part~="pagination-item"]')],r.prototype,"paginationItems",2),o([p({type:String,reflect:!0})],r.prototype,"variant",2),o([p({type:Boolean,reflect:!0})],r.prototype,"inverted",2),o([p({type:Boolean,reflect:!0})],r.prototype,"loop",2),o([p({type:Boolean,reflect:!0})],r.prototype,"autoplay",2),o([p({type:Boolean,reflect:!0})],r.prototype,"fade",2),o([p({type:Number,attribute:"slides-per-page",reflect:!0})],r.prototype,"slidesPerPage",2),o([p({type:Number,attribute:"slides-per-move",reflect:!0})],r.prototype,"slidesPerMove",2),o([f("slot:not([name])")],r.prototype,"defaultSlot",2),o([f(".carousel__slides")],r.prototype,"scrollContainer",2),o([f(".carousel__pagination")],r.prototype,"paginationContainer",2),o([b()],r.prototype,"activeSlide",2),o([b()],r.prototype,"currentPage",2),o([b()],r.prototype,"pausedAutoplay",2),o([v("pausedAutoplay")],r.prototype,"handlePausedAutoplay",1),o([v("fade",{waitUntilFirstUpdate:!0})],r.prototype,"handleFadeChange",1),o([v("loop",{waitUntilFirstUpdate:!0}),v("slidesPerPage",{waitUntilFirstUpdate:!0})],r.prototype,"initializeSlides",1),o([v("activeSlide")],r.prototype,"handleSlideChange",1),o([v("slidesPerMove")],r.prototype,"handleSlidesPerMoveChange",1),o([v("autoplay")],r.prototype,"handleAutoplayChange",1),r=o([E("sd-5-13-9-carousel")],r);export{r as a};
2
- /*! Bundled license information:
3
-
4
- lit-html/directives/map.js:
5
- lit-html/directives/range.js:
6
- (**
7
- * @license
8
- * Copyright 2021 Google LLC
9
- * SPDX-License-Identifier: BSD-3-Clause
10
- *)
11
- */
@@ -1 +0,0 @@
1
- import{a as l}from"./chunk.YTG5BN3U.js";import{a as r}from"./chunk.26V4EXHB.js";import{a as c,b as e,c as m,d as o,h as n}from"./chunk.EYOFW6DA.js";import{b as s,e as d}from"./chunk.UWPDCU52.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends n{constructor(){super(...arguments);this.flipDirection="horizontal";this.placement="top";this.frontVariant="primary";this.backVariant="primary";this.activeSide="front"}connectedCallback(){super.connectedCallback()}flipFront(){this.activeSide="back",this.front.classList.add("clicked--front"),this.back.classList.add("clicked--back"),this.emit("sd-flip-front"),setTimeout(()=>{this.back.focus()})}flipBack(){this.activeSide="front",this.front.classList.remove("clicked--front"),this.back.classList.remove("clicked--back"),this.emit("sd-flip-back"),setTimeout(()=>{this.front.focus()})}handleFrontKeydown(a){a.code==="Enter"&&this.front===a.target&&this.flipFront()}handleBackKeydown(a){a.code==="Enter"&&this.back===a.target&&this.flipBack()}render(){return d`<div part="base" class="${r("flip-card relative h-full w-full")}"><div part="front" tabindex="0" aria-hidden="${this.activeSide==="back"}" inert="${l(this.activeSide==="back"||void 0)}" class="${r("flip-card__side flip-card__side--front overflow-hidden transition-transform duration-1000 ease-in-out","flex focus-visible:focus-outline","absolute top-0 left-0 w-full h-full justify-end text-left",this.frontVariant==="primary"&&"bg-primary",this.frontVariant==="primary-100"&&"bg-primary-100",this.placement==="top"?"flex-col":"flex-col-reverse",this.flipDirection==="vertical"&&"vertical")}"><div part="media-front" class="${r("absolute h-full w-full -z-20",(this.frontVariant==="primary"||this.frontVariant==="primary-100")&&"hidden")}"><slot name="media-front"></slot></div><div part="front-slot-container" class="${r("flex",{primary:"text-white","primary-100":"text-black","gradient-light":"text-black","gradient-dark":"text-white"}[this.frontVariant],{primary:"","primary-100":"","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/75 to-white/60":"bg-gradient-to-t from-white/75 to-white/60","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/75 to-primary-800/60":"bg-gradient-to-b from-primary-800/75 to-primary-800/60"}[this.frontVariant])}"><slot name="front"></slot></div><div part="front-secondary-gradient" class="${r("flip-card__gradient",{primary:"mb-auto","primary-100":"mb-auto","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/60 to-white/0 mb-auto":"bg-gradient-to-t from-white/60 to-white/0 mt-auto","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto":"bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"}[this.frontVariant])}"></div><sd-5-13-9-button part="front-button" size="md" variant="${{primary:"tertiary","primary-100":"tertiary","gradient-light":"primary","gradient-dark":"primary"}[this.frontVariant]}" ?inverted="${{primary:!0,"primary-100":!1,"gradient-light":!0,"gradient-dark":!0}[this.frontVariant]}" class="${r("absolute right-0 p-2 flex-shrink-0",this.placement==="top"?"bottom-0":"top-0")}" @click="${this.flipFront}" @keydown="${this.handleFrontKeydown}"><sd-5-13-9-icon library="_internal" name="reload" label="Flip to Back"></sd-5-13-9-icon></sd-5-13-9-button></div><div part="back" tabindex="0" aria-hidden="${this.activeSide==="front"}" inert="${l(this.activeSide==="front"||void 0)}" class="${r("flip-card__side flip-card__side--back overflow-hidden transition-transform duration-1000 ease-in-out","flex focus-visible:focus-outline","absolute top-0 left-0 w-full h-full justify-end text-left",this.backVariant==="primary"&&"bg-primary",this.backVariant==="primary-100"&&"bg-primary-100",this.placement==="top"?"flex-col":"flex-col-reverse",this.flipDirection==="vertical"&&"vertical")}"><div part="media-back" class="${r("absolute h-full w-full -z-20",(this.backVariant==="primary"||this.backVariant==="primary-100")&&"hidden")}"><slot name="media-back"></slot></div><div part="back-slot-container" class="${r("flex",{primary:"text-white","primary-100":"text-black","gradient-light":"text-black","gradient-dark":"text-white"}[this.backVariant],{primary:"","primary-100":"","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/75 to-white/60":"bg-gradient-to-t from-white/75 to-white/60","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/75 to-primary-800/60":"bg-gradient-to-b from-primary-800/75 to-primary-800/60"}[this.backVariant])}"><slot name="back"></slot></div><div part="back-secondary-gradient" class="${r("flip-card__gradient",{primary:"mb-auto","primary-100":"mb-auto","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/60 to-white/0 mb-auto":"bg-gradient-to-t from-white/60 to-white/0 mt-auto","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto":"bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"}[this.backVariant])}"></div><sd-5-13-9-button size="md" part="back-button" variant="${{primary:"tertiary","primary-100":"tertiary","gradient-light":"primary","gradient-dark":"primary"}[this.backVariant]}" ?inverted="${{primary:!0,"primary-100":!1,"gradient-light":!0,"gradient-dark":!0}[this.backVariant]}" class="${r("absolute right-0 p-2 flex-shrink-0",this.placement==="top"?"bottom-0":"top-0")}" @click="${this.flipBack}" @keydown="${this.handleBackKeydown}"><sd-5-13-9-icon library="_internal" name="reload" label="Flip to Front"></sd-5-13-9-icon></sd-5-13-9-button></div></div>`}};t.styles=[...n.styles,s`:host{aspect-ratio:3/4;display:block;--name:"";--height:480px;height:var(--height)}.flip-card{perspective:100rem}.flip-card__side{backface-visibility:hidden}.flip-card__side--back{transform:rotateY(180deg)}.clicked--front{transform:rotateY(-180deg)}.clicked--back{transform:rotateY(0)}.flip-card__side--back.vertical{transform:rotateX(180deg)}.clicked--front.vertical{transform:rotateX(-180deg)}.clicked--back.vertical{transform:rotateX(0)}.flip-card__gradient{flex:.4 1 0}`],i([o('[part="front"]')],t.prototype,"front",2),i([o('[part="back"]')],t.prototype,"back",2),i([e({reflect:!0,attribute:"flip-direction"})],t.prototype,"flipDirection",2),i([e({reflect:!0})],t.prototype,"placement",2),i([e({type:String,reflect:!0,attribute:"front-variant"})],t.prototype,"frontVariant",2),i([e({type:String,reflect:!0,attribute:"back-variant"})],t.prototype,"backVariant",2),i([m()],t.prototype,"activeSide",2),t=i([c("sd-5-13-9-flipcard")],t);export{t as a};
@@ -1 +0,0 @@
1
- import{a as p}from"./chunk.BBD6RMZH.js";import{a as d,b as u}from"./chunk.CGQ2BPPZ.js";import{a as l}from"./chunk.26V4EXHB.js";import{a as r}from"./chunk.E2DRD2OX.js";import{a as h,b as a,d as o,h as n}from"./chunk.EYOFW6DA.js";import{b as c,e as i}from"./chunk.UWPDCU52.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends n{constructor(){super(...arguments);this.type="normal";this.checked=!1;this.disabled=!1;this.value="";this.chevron=!1;this.hasSlotController=new d(this,"submenu");this.submenuController=new p(this,this.hasSlotController);this.handleHostClick=s=>{this.disabled&&(s.preventDefault(),s.stopImmediatePropagation())};this.handleMouseOver=s=>{this.focus(),s.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleHostClick),this.addEventListener("mouseover",this.handleMouseOver)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick),this.removeEventListener("mouseover",this.handleMouseOver)}handleDefaultSlotChange(){let s=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=s;return}s!==this.cachedTextLabel&&(this.cachedTextLabel=s,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleCheckedChange(){if(this.checked&&this.type!=="checkbox"){this.checked=!1,console.error('The checked attribute can only be used on menu items with type="checkbox"',this);return}this.type==="checkbox"?this.setAttribute("aria-checked",this.checked?"true":"false"):this.removeAttribute("aria-checked")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.setAttribute("tabindex",this.disabled?"-1":"0")}handleTypeChange(){this.type==="checkbox"?(this.setAttribute("role","menuitemcheckbox"),this.setAttribute("aria-checked",this.checked?"true":"false")):(this.setAttribute("role","menuitem"),this.removeAttribute("aria-checked"))}getTextLabel(){return u(this.defaultSlot)}isSubmenu(){return this.hasSlotController.test("submenu")}render(){let s=this.submenuController.isExpanded(),b={label:this.hasSlotController.test("[default]"),iconIndent:this.hasSlotController.test("icon-indent")};return i`<div id="anchor" part="base" class="${l("relative flex items-stretch whitespace-nowrap py-3 px-4 no-wrap",this.disabled?"outline-none cursor-not-allowed text-neutral-500 hover:bg-transparent":"cursor-pointer text-primary hover:bg-neutral-200",this.isSubmenu()&&s&&"submenu-expanded")}" .disabled="${this.disabled}" ?aria-haspopup="${this.isSubmenu()}" ?aria-expanded="${!!s}">${this.type==="checkbox"?i`<span part="checked-icon" class="${l("flex items-center justify-center grow-0 shrink-0 basis-auto",this.checked?"visible":"invisible")}"><sd-5-13-9-icon name="status-check" library="sd-status-assets" aria-hidden="true"></sd-5-13-9-icon></span>`:""} ${b.iconIndent?i`<slot name="icon-indent" part="icon-indent" class="flex items-center grow-0 shrink-0 basis-auto mr-2"></slot>`:""}<slot part="label" class="inline-flex grow shrink basis-auto text-ellipsis overflow-hidden" @slotchange="${this.handleDefaultSlotChange}"></slot>${this.chevron||this.isSubmenu()?i`<span part="submenu-icon" class="flex items-center justify-center grow-0 shrink-0 basis-auto ml-3"><sd-5-13-9-icon name="chevron-right" library="_internal" aria-hidden="true" class="h-6 w-6"></sd-5-13-9-icon></span>`:""} ${this.submenuController.renderSubmenu()}</div>`}};e.styles=[...n.styles,c`:host{--submenu-offset:-6px;display:block}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}::slotted(sd-5-13-9-icon){height:var(--sd-spacing-6,1.5rem);width:var(--sd-spacing-6,1.5rem)}[part=checked-icon]{margin-right:var(--sd-spacing-3,.75rem)}.submenu-expanded:after{bottom:var(--sd-spacing-0,0);left:var(--sd-spacing-0,0);position:fixed;right:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);z-index:calc(var(z-dropdown) - 1);--tw-content:"";clip-path:polygon(var(--safe-triangle-cursor-x,0) var(--safe-triangle-cursor-y,0),var(--safe-triangle-submenu-start-x,0) var(--safe-triangle-submenu-start-y,0),var(--safe-triangle-submenu-end-x,0) var(--safe-triangle-submenu-end-y,0));content:var(--tw-content)}:host(:hover:not([aria-disabled=true],:focus-visible)) [part=base]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1));outline:2px solid transparent;outline-offset:2px}:host(:focus-visible:not([aria-disabled=true])) [part=base]{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:-2px;outline-style:solid;outline-width:2px}:host(:hover) [part=base]{outline:2px solid transparent;outline-offset:2px}sd-5-13-9-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1));margin-left:var(--submenu-offset)}::slotted(sd-5-13-9-menu){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important}`],t([o("slot:not([name])")],e.prototype,"defaultSlot",2),t([o('part="base"')],e.prototype,"menuItem",2),t([a()],e.prototype,"type",2),t([a({type:Boolean,reflect:!0})],e.prototype,"checked",2),t([a({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([a()],e.prototype,"value",2),t([a({type:Boolean,reflect:!0})],e.prototype,"chevron",2),t([r("checked")],e.prototype,"handleCheckedChange",1),t([r("disabled")],e.prototype,"handleDisabledChange",1),t([r("type")],e.prototype,"handleTypeChange",1),e=t([h("sd-5-13-9-menu-item")],e);export{e as a};
@@ -1 +0,0 @@
1
- import{a as p,b as c,c as _}from"./chunk.IVHEBGOY.js";import{a as w}from"./chunk.CDC46OKY.js";import{b as E}from"./chunk.6HLS5XU2.js";import{a as M}from"./chunk.CGQ2BPPZ.js";import{a as f}from"./chunk.YTG5BN3U.js";import{a as d}from"./chunk.26V4EXHB.js";import{a as D}from"./chunk.GHC63SXL.js";import{a as I,b as h,d as b,e as C,h as T}from"./chunk.EYOFW6DA.js";import{e as v}from"./chunk.UWPDCU52.js";import{e as n}from"./chunk.TJOCV4DC.js";var l=class extends T{constructor(){super();this.formControlController=new E(this);this.hasSlotController=new M(this,"label","help-text");this.localize=new D(this);this.name="";this.label="";this.helpText="";this.min=0;this.max=100;this.step=1;this.disabled=!1;this.visuallyDisabled=!1;this.noTrackBar=!1;this.noTooltip=!1;this.defaultValue="";this._value=[0];this._rangeValues=new Map;this._lastChangeValue=[];this._hasFocus=!1;this.tooltipFormatter=this.localize.number.bind(this.localize)}set value(e){this._value=e?e.split(" ").map(Number).sort(p):[]}get value(){return this._value.slice().sort(p).join(" ")}set valueAsArray(e){let t=this._value;this._value=Array.isArray(e)?e.slice().sort(p):e||[],c(t,this._value)&&this.requestUpdate("value",t.join(" "))}get valueAsArray(){return[...this._value].sort(p)}get rtl(){return this.localize.dir()==="rtl"}firstUpdated(){this.formControlController.updateValidity(),this._lastChangeValue=Array.from(this._value)}willUpdate(e){super.willUpdate(e),this.min>this.max&&([this.min,this.max]=[this.max,this.min]),this.step>this.max-this.min&&(this.step=this.max-this.min),this.step<=0&&(this.step=1);let t=this._value.map(i=>{if(i<=this.min)return this.min;if(i>=this.max)return this.max;let a=this.min+this.step*Math.round((i-this.min)/this.step);return a>this.max?this.max:a});c(this._value,t)&&(this._value=t)}updated(e){super.updated(e);for(let t of this.thumbs){let i=+t.dataset.rangeId;this._rangeValues.has(i)&&this.moveThumb(t,this._rangeValues.get(i))}this.updateActiveTrack()}focus(e){let t=this.thumbs.item(0);t?t.focus(e):super.focus(e)}get validity(){return this.input.validity}checkValidity(){var e;return(e=this.input)==null?void 0:e.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}updateTooltip(e){let t=+e.dataset.rangeId;if(!this._rangeValues.has(t))return;let i=this._rangeValues.get(t),a=e.parentElement;a.content=this.tooltipFormatter(i)}updateActiveTrack(){let{activeTrack:e}=this;if(!e)return;if(this.min===this.max){e.style.insetInlineStart="0%",e.style.insetInlineEnd="0%";return}if(this._value.length===1){let s=getComputedStyle(this).getPropertyValue("--track-active-offset")||"0%",o=100*(this._value[0]-this.min)/(this.max-this.min);e.style.insetInlineStart=`min(${s}, ${o}%)`,e.style.insetInlineEnd=`min(calc(100% - ${s}), calc(100% - ${o}%))`;return}let t=this._value.slice().sort(p),i=100*(t[0]-this.min)/(this.max-this.min),a=100*(t[t.length-1]-this.min)/(this.max-this.min);e.style.insetInlineStart=`${i}%`,e.style.insetInlineEnd=`calc(100% - ${a}%)`}moveThumb(e,t){e.setAttribute("aria-valuenow",t.toString()),e.setAttribute("aria-valuetext",this.tooltipFormatter(t));let i=(t-this.min)/(this.max-this.min);e.style.insetInlineStart=`calc(${100*i}% - 8px)`,this.updateTooltip(e)}movementBoundariesForThumb(e,t){let i=this.valueAsArray,s=Array.from(this.thumbs).indexOf(e),o=i[s-1]||this.min,r=i[s+1]||this.max,u=t<o||t>r;return{finalValue:Math.max(o,Math.min(r,t)),isRestricted:u,nextValue:r,prevValue:o}}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}onClickTrack(e,t=!0){if(this.disabled||this.visuallyDisabled)return;let{clientX:i}=e,a=Array.from(this.thumbs),s=_(this.inputWrapper,i),o=this.step/(this.max-this.min),r=this.min+this.step*Math.round(s/o),u=a.reduce((g,x)=>{let V=this._rangeValues.get(+x.dataset.rangeId),F=this._rangeValues.get(+g.dataset.rangeId),$=Math.abs(V-r),k=Math.abs(F-r);return $===k?V<r?x:g:$<k?x:g}),m=+u.dataset.rangeId;if(!m)return;this._rangeValues.set(m,r),this.moveThumb(u,r);let y=this._value;this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),c(y,this._value)&&(this._lastChangeValue=Array.from(this._value),this.emit("sd-input"),this.emit("sd-change"));let A=new PointerEvent("pointerdown",e);t&&u.dispatchEvent(A)&&this.updateTooltip(u)}onClickTrackItem(e){this.onClickTrack(e,!1)}async onClickThumb(e){if(this.disabled||this.visuallyDisabled)return;let t=e.target;this.updateTooltip(t),t.dataset.pointerId&&t.releasePointerCapture(+t.dataset.pointerId),t.dataset.pointerId=e.pointerId.toString(),t.setPointerCapture(e.pointerId),t.classList.add("grabbed"),await t.parentElement.show()}onDragThumb(e){if(this.disabled||this.visuallyDisabled)return;let t=e.target,i=+t.dataset.rangeId;if(!this._rangeValues.has(i)||(t.dataset.pointerId?+t.dataset.pointerId:null)!==e.pointerId)return;let s=_(this.inputWrapper,e.clientX),o=this.step/(this.max-this.min),r=this.min+this.step*Math.round(s/o);if(this.emit("sd-move",{cancelable:!0,detail:{element:t,value:r}}).defaultPrevented)return;let m=this.movementBoundariesForThumb(t,r);m.isRestricted?(r=m.finalValue,t.style.zIndex=(3+this.thumbs.length).toFixed(0)):t.style.zIndex="3",this._rangeValues.set(i,r),this.moveThumb(t,r);let y=this._value;this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),c(y,this._value)&&this.emit("sd-input")}async onReleaseThumb(e){let t=e.target;!t.dataset.pointerId||e.pointerId!==+t.dataset.pointerId||(t.classList.remove("grabbed"),t.releasePointerCapture(e.pointerId),delete t.dataset.pointerId,c(this._lastChangeValue,this._value)&&(this._lastChangeValue=Array.from(this._value),this.emit("sd-change")),await t.parentElement.hide())}onKeyPress(e){let t=e.target,i=+t.dataset.rangeId,a=this._rangeValues.get(i);if(a===void 0)return;let s=a;switch(e.key){case"ArrowUp":case"Up":s=Math.min(a+this.step,this.max);break;case"ArrowDown":case"Down":s=Math.max(a-this.step,this.min);break;case"ArrowLeft":case"Left":s=this.rtl?Math.min(a+this.step,this.max):Math.max(a-this.step,this.min);break;case"ArrowRight":case"Right":s=this.rtl?Math.max(a-this.step,this.min):Math.min(a+this.step,this.max);break;case"PageUp":s=Math.min(a+(this.max-this.min)/5,this.max);break;case"PageDown":s=Math.max(a-(this.max-this.min)/5,this.min);break;case"Home":s=this.min;break;case"End":s=this.max;break;default:return}if(s!==a){if(this.emit("sd-move",{cancelable:!0,detail:{element:t,value:s}}).defaultPrevented)return;let r=this.movementBoundariesForThumb(t,s);r.isRestricted&&(s=r.finalValue),this.moveThumb(t,s),this._rangeValues.set(i,s),this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),this.updateTooltip(t),this._lastChangeValue=Array.from(this._value),this.emit("sd-input"),this.emit("sd-change")}e.stopPropagation(),e.preventDefault()}onBlur(e){var t;e.relatedTarget&&((t=this.shadowRoot)!=null&&t.contains(e.relatedTarget))||(this.emit("sd-blur"),this._hasFocus=!1)}onFocusThumb(e){var i;if(this.disabled||this.visuallyDisabled)return;this._hasFocus||(this._hasFocus=!0,this.emit("sd-focus"));let t=e.target;(i=t==null?void 0:t.dataset)!=null&&i.rangeId&&this.updateTooltip(t)}renderThumbs(e){let t=this._value.length>1;return this._rangeValues.clear(),this._value.map((i,a)=>{let s=a+1;this._rangeValues.set(s,i);let o=`thumb-${s}`,r="",u="";return t?(u=e?`label aria-label-hidden ${o}`:`aria-label-hidden ${o}`,a===0?r=`${this.localize.term("minimum")} (${this.tooltipFormatter(i)})`:a===this._value.length-1?r=`${this.localize.term("maximum")} (${this.tooltipFormatter(i)})`:r=this.tooltipFormatter(i)):u=e?"label aria-label-hidden":"",v`<sd-5-13-9-tooltip hoist trigger="focus" disabled="${f(this.disabled||this.visuallyDisabled||this.noTooltip?!0:void 0)}"><div id="${o}" part="thumb" role="slider" tabindex="${this.disabled||this.visuallyDisabled?-1:0}" aria-disabled="${f(this.disabled||this.visuallyDisabled?"true":void 0)}" aria-labelledby="${u}" aria-label="${r}" aria-valuemax="${this.max}" aria-valuemin="${this.min}" aria-valuenow="${i}" aria-valuetext="${this.tooltipFormatter(i)}" data-range-id="${s}" @pointerdown="${this.onClickThumb}" @pointermove="${this.onDragThumb}" @pointerup="${this.onReleaseThumb}" @pointercancel="${this.onReleaseThumb}" @pointerleave="${this.onReleaseThumb}" @keydown="${this.onKeyPress}" @focus="${this.onFocusThumb}" class="${d("rounded-full absolute top-0 size-4 hover:cursor-grab after:-inset-2",this.disabled||this.visuallyDisabled?"bg-neutral-500 outline-none":"bg-primary cursor-pointer focus-visible:focus-outline")}"></div></sd-5-13-9-tooltip>`})}render(){let e={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text")},t=!!(this.label||e.label),i=!!(this.helpText||e.helpText);return v`<div part="form-control" @focusout="${this.onBlur}" class="flex flex-col">${t?v`<div class="flex items-center gap-1"><label id="label" part="form-control-label" aria-hidden="${t?"false":"true"}" class="${d("w-full",t?"inline-block":"hidden")}" @click="${this.focus}"><slot name="label">${this.label}</slot></label></div>`:null} <label id="aria-label-hidden" class="sr-only">(${this._value.map(this.tooltipFormatter).join(" - ")})</label><div part="base" class="${d("inline-flex w-full",this.visuallyDisabled&&"focus-visible:focus-outline")}" tabindex="${f(this.visuallyDisabled?"0":void 0)}"><div part="input-wrapper" class="relative flex-1 mx-2 mb-[10px]"><input id="input" tabindex="-1" hidden @invalid="${this.handleInvalid}"><div part="track-wrapper" role="presentation" @pointerdown="${this.onClickTrack}" class="relative cursor-pointer"><div part="track-click-helper" class="absolute -inset-y-2 inset-x-0"></div><div part="track" class="bg-neutral-500 h-1 my-[6px]"></div><div part="active-track" hidden="${f(this.noTrackBar?!0:void 0)}" class="${d("absolute top-0 h-1",this.disabled||this.visuallyDisabled?"bg-neutral-500":"bg-primary")}"></div></div>${this.renderThumbs(t)}<div class="-mt-[10px]" part="scale-ticks" @pointerdown="${this.onClickTrackItem}" role="presentation"><slot name="scale-ticks"></slot></div></div></div><slot></slot><slot name="help-text" part="form-control-help-text" id="help-text" class="${d("text-sm text-neutral-700 mt-2",i?"block":"hidden")}" aria-hidden="${!i}">${this.helpText}</slot></div>`}};l.styles=T.styles,n([b("#input")],l.prototype,"input",2),n([b('[part="active-track"]')],l.prototype,"activeTrack",2),n([b('[part="input-wrapper"]')],l.prototype,"inputWrapper",2),n([C('[part="thumb"]')],l.prototype,"thumbs",2),n([h({attribute:!1})],l.prototype,"tooltipFormatter",2),n([h({type:String,reflect:!0})],l.prototype,"name",2),n([h({type:String,reflect:!0})],l.prototype,"label",2),n([h({attribute:"help-text",reflect:!0})],l.prototype,"helpText",2),n([h({type:Number,reflect:!0})],l.prototype,"min",2),n([h({type:Number,reflect:!0})],l.prototype,"max",2),n([h({type:Number,reflect:!0})],l.prototype,"step",2),n([h({type:Boolean,reflect:!0})],l.prototype,"disabled",2),n([h({attribute:"visually-disabled",type:Boolean,reflect:!0})],l.prototype,"visuallyDisabled",2),n([h({attribute:"no-track-bar",type:Boolean,reflect:!0})],l.prototype,"noTrackBar",2),n([h({attribute:"no-tooltip",type:Boolean,reflect:!0})],l.prototype,"noTooltip",2),n([w()],l.prototype,"defaultValue",2),n([h({type:String})],l.prototype,"value",1),l=n([I("sd-5-13-9-range")],l);export{l as a};
@@ -1 +0,0 @@
1
- import{a as T}from"./chunk.MHWW3RZB.js";import{c as b}from"./chunk.3L472FD4.js";import{a as u}from"./chunk.YTG5BN3U.js";import{a as c}from"./chunk.26V4EXHB.js";import{a as w}from"./chunk.GHC63SXL.js";import{a as g,b as y,c as v,d as h,h as f}from"./chunk.EYOFW6DA.js";import{b as m,e as d}from"./chunk.UWPDCU52.js";import{a as p,e as l}from"./chunk.TJOCV4DC.js";var a=class extends f{constructor(){super(...arguments);this.localize=new w(this);this.tabs=[];this.panels=[];this.hasScrollControls=!1;this.variant="default";this.canScroll={left:!1,right:!1};this.activation="auto"}connectedCallback(){let t=Promise.all([customElements.whenDefined("sd-5-13-9-tab"),customElements.whenDefined("sd-5-13-9-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollControls(),this.repositionIndicator()}),this.mutationObserver=new MutationObserver(s=>{s.some(e=>!["aria-labelledby","aria-controls"].includes(e.attributeName))&&setTimeout(()=>this.setAriaLabels()),s.some(e=>e.attributeName==="disabled")&&this.syncTabsAndPanels()}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),this.handleScroll(),this.nav.addEventListener("scroll",()=>this.handleScroll()),t.then(()=>{new IntersectionObserver((e,o)=>{var i;e[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((i=this.activeTab)!=null?i:this.tabs[0],{emitEvents:!1}),o.unobserve(e[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){var t;this.mutationObserver.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(t={includeDisabled:!0}){let s=this.shadowRoot.querySelector('slot[name="nav"]');return Array.from(s.assignedElements()).map(e=>e.tagName.toLocaleLowerCase()==="sd-5-13-9-tab"?e:e.querySelector("sd-5-13-9-tab")).filter(e=>e&&t.includeDisabled?e.tagName.toLowerCase()==="sd-5-13-9-tab":e.tagName.toLowerCase()==="sd-5-13-9-tab"&&!e.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-5-13-9-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.matches(":focus"))}handleClick(t){let e=t.target.closest("sd-5-13-9-tab");(e==null?void 0:e.closest("sd-5-13-9-tab-group"))===this&&e!==null&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(t){let e=t.target.closest("sd-5-13-9-tab");if((e==null?void 0:e.closest("sd-5-13-9-tab-group"))===this){if(["Enter"," "].includes(t.key)&&e!==null&&(this.setActiveTab(e,{scrollBehavior:"smooth"}),t.preventDefault()),["Tab"].includes(t.key)){let i=this.tabs.indexOf(this.getActiveTab()),n=this.tabs[i+1];e!==null&&n&&b(n,this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){let i=this.tabs.indexOf(this.getActiveTab()),n=this.tabs[i-1];e!==null&&n&&b(n,this.nav,"horizontal")}if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let i=this.tabs.find(r=>r.matches(":focus")),n=this.localize.dir()==="rtl";if((i==null?void 0:i.tagName.toLowerCase())==="sd-5-13-9-tab"){let r=this.tabs.indexOf(i);t.key==="Home"?r=0:t.key==="End"?r=this.tabs.length-1:t.key===(n?"ArrowRight":"ArrowLeft")||t.key==="ArrowUp"?r--:(t.key===(n?"ArrowLeft":"ArrowRight")||t.key==="ArrowDown")&&r++,r<0&&(r=this.tabs.length-1),r>this.tabs.length-1&&(r=0),this.tabs[r].focus({preventScroll:!0}),this.activation==="auto"&&this.setActiveTab(this.tabs[r],{scrollBehavior:"smooth"}),b(this.tabs[r],this.nav,"horizontal"),t.preventDefault()}}}}handleScroll(){this.canScroll={left:this.nav.scrollLeft>0,right:this.nav.scrollLeft+this.nav.clientWidth<this.nav.scrollWidth-1}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,s){if(s=p({emitEvents:!0,scrollBehavior:"auto"},s),t!==this.activeTab&&!t.disabled&&!t.visuallyDisabled){let e=this.activeTab;this.activeTab=t,this.tabs.map(o=>o.active=o===this.activeTab),this.panels.map(o=>{var i;return o.active=o.name===((i=this.activeTab)==null?void 0:i.panel)}),this.repositionIndicator(),b(this.activeTab,this.nav,"horizontal",s.scrollBehavior),s.emitEvents&&(e&&this.emit("sd-tab-hide",{detail:{name:e.panel}}),this.emit("sd-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(t=>{let s=this.panels.find(e=>e.name===t.panel);s&&t.setAttribute("aria-controls",s.getAttribute("id"))})}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.repositionIndicator(),this.panels.forEach(t=>{t.tabIndex=0}),this.updateComplete.then(()=>this.updateScrollControls()),this.tabs.length!==0&&this.tabs[0].variant==="container"&&(this.variant="container")}updateScrollControls(){this.hasScrollControls=this.nav.scrollWidth>this.nav.clientWidth}async repositionIndicator(){await this.updateComplete;let t=this.activeTab,s=this.indicator,e=this.tabsContainer;if(!t||!s||!e||t.variant==="container")return;let o=t.getBoundingClientRect(),i=e.getBoundingClientRect(),n=getComputedStyle(e).justifyContent==="center",r=i.left+i.width/2,A=o.left+o.width/2,x=t.offsetWidth,C=n?A-r:o.left-i.left;s.style.width=`${x}px`,s.style.transform=`translateX(${C}px)`}show(t){let s=this.tabs.find(e=>e.panel===t);s&&this.setActiveTab(s,{scrollBehavior:"smooth"})}render(){var s;let t=this.localize.dir()==="rtl";return d`<div part="base" class="${c("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${c(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?d`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" disabled="${u(!this.canScroll.left||void 0)}" class="${c("sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"left-auto right-0")}" @click="${this.handleScrollToStart}"><sd-5-13-9-icon library="_internal" name="${t?"chevron-up":"chevron-down"}" label="previous" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-5-13-9-icon></button>`:""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${c("flex flex-auto relative flex-row")}" role="tablist">${((s=this.activeTab)==null?void 0:s.variant)!=="container"?d`<div part="active-tab-indicator" id="indicator" class="absolute h-1 bg-accent bottom-0 transition-[transform,width] duration-medium ease-in-out z-30"></div>`:""}<div part="separation" class="border-neutral-400 absolute w-full h-0.25 bottom-0 border-b z-10"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?d`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" disabled="${u(!this.canScroll.right||void 0)}" class="${c("sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"right-auto left-0")}" @click="${this.handleScrollToEnd}"><sd-5-13-9-icon library="_internal" name="${t?"chevron-down":"chevron-up"}" label="next" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-5-13-9-icon></button>`:""}</div><slot part="body" class="${c("block auto py-8 px-6",this.variant==="container"&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};a.styles=[...f.styles,m`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}::slotted(sd-5-13-9-tab-panel){--padding:1rem 0}::slotted(sd-5-13-9-tab-panel:focus-visible){outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}`],l([h("[part=base]")],a.prototype,"tabGroup",2),l([h("[part=body]")],a.prototype,"body",2),l([h("[part=scroll-container]")],a.prototype,"nav",2),l([h("[part=active-tab-indicator]")],a.prototype,"indicator",2),l([h('[part="tabs"]')],a.prototype,"tabsContainer",2),l([v()],a.prototype,"hasScrollControls",2),l([v()],a.prototype,"variant",2),l([v()],a.prototype,"canScroll",2),l([y({type:String,reflect:!0})],a.prototype,"activation",2),l([T(20)],a.prototype,"handleScroll",1),a=l([g("sd-5-13-9-tab-group")],a);export{a};
@@ -1 +0,0 @@
1
- import{a as d}from"./chunk.URI32NHH.js";import{a as b}from"./chunk.CDC46OKY.js";import{b as m}from"./chunk.6HLS5XU2.js";import{a as p}from"./chunk.YTG5BN3U.js";import{a as l}from"./chunk.26V4EXHB.js";import{a as n}from"./chunk.E2DRD2OX.js";import{a as h,b as r,c,d as s,h as o}from"./chunk.EYOFW6DA.js";import{b as u,e as a}from"./chunk.UWPDCU52.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends o{constructor(){super(...arguments);this.formControlController=new m(this,{value:e=>e.checked?e.value||"on":void 0,defaultValue:e=>e.defaultChecked,setValue:(e,f)=>e.checked=f});this.title="";this.name="";this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(e){if(this.visuallyDisabled){e.preventDefault(),e.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){let e=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",e?"true":"false"),this.formControlController.setValidity(e)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return a`<label part="base" class="${l("sd-5-13-9-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${p(this.value)}" .indeterminate="${d(this.indeterminate)}" .checked="${d(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${l("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4","transition-colors ease-in-out duration-medium group-hover:duration-fast","peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary",{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400",invalid:"border-error group-hover:bg-neutral-200",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"><div class="${l("absolute h-3 transition-[width] right-0.25 duration-medium",this.checked?"w-0":"w-3")}"><div class="${l("w-full h-full transition-colors duration-medium ease-in-out group-hover:duration-fast",{disabledIndeterminate:"bg-neutral-500",disabledChecked:" bg-neutral-500",disabled:"",visuallyDisabled:"",invalidIndeterminate:" bg-error group-hover:bg-error-400",invalid:"group-hover:bg-neutral-200",filled:"bg-accent group-hover:bg-accent-550",default:"hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"></div></div>${this.checked?a`<sd-5-13-9-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-5-13-9-icon>`:""} ${!this.checked&&this.indeterminate?a`<sd-5-13-9-icon part="indeterminate-icon" class="text-white w-3 h-3" library="_internal" name="status-minus"></sd-5-13-9-icon>`:""} </span><span part="label" id="label" class="${l("select-none inline-block ml-2",this.disabled||this.visuallyDisabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};t.styles=[...o.styles,u`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label:after{content:" *"}`],i([s('input[type="checkbox"]')],t.prototype,"input",2),i([s("#invalid-message")],t.prototype,"invalidMessage",2),i([r({type:String,reflect:!0})],t.prototype,"title",2),i([r({type:String,reflect:!0})],t.prototype,"name",2),i([r()],t.prototype,"value",2),i([r({type:String,reflect:!0})],t.prototype,"size",2),i([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),i([r({type:Boolean,reflect:!0})],t.prototype,"checked",2),i([r({type:Boolean,reflect:!0})],t.prototype,"indeterminate",2),i([b("checked")],t.prototype,"defaultChecked",2),i([r({type:String,reflect:!0})],t.prototype,"form",2),i([r({type:Boolean,reflect:!0})],t.prototype,"required",2),i([c()],t.prototype,"showInvalidStyle",2),i([n(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),i([n(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],t.prototype,"handleStateChange",1),t=i([h("sd-5-13-9-checkbox")],t);export{t as a};
@@ -1 +0,0 @@
1
- import{a as v}from"./chunk.CGQ2BPPZ.js";import{a}from"./chunk.26V4EXHB.js";import{a as g}from"./chunk.GHC63SXL.js";import{a as f,b as d,c as l,d as h,h as p}from"./chunk.EYOFW6DA.js";import{b as m,e as s}from"./chunk.UWPDCU52.js";import{a as c}from"./chunk.WNP2V63C.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends p{constructor(){super();this.localize=new g(this);this.hasSlotController=new v(this,"transcript");this.reversedLayout=!1;this.hideTimestamps=!1;this.animated=!1;this.inverted=!1;this.speed=1;this.currentTime=this.formatTime(0);this.duration="";this.isPlaying=!1;this.isMuted=!1;this.isTranscriptOpen=!1;this.progress=0;this.updateCurrentTime=this.updateCurrentTime.bind(this),this.handleAudioEnd=this.handleAudioEnd.bind(this),this.handleAudioProgress=this.handleAudioProgress.bind(this),this.handleAudioProgressKeydown=this.handleAudioProgressKeydown.bind(this),this.handleTranscriptDrawerToggle=this.handleTranscriptDrawerToggle.bind(this)}firstUpdated(){this.audioElement&&(this.audioElement.addEventListener("timeupdate",this.updateCurrentTime),this.audioElement.addEventListener("ended",this.handleAudioEnd),this.audioElement.setAttribute("controlsList","nodownload"),document.addEventListener("sd-after-hide",this.handleTranscriptDrawerToggle),this.audioElement.playbackRate=this.speed,this.animated&&this.initAnimation())}updated(e){if(e.has("animated")){let r=e.get("animated");!r&&this.animated?this.initAnimation():r&&!this.animated&&this.clear()}}get audioElement(){let e=this.shadowRoot.querySelector("slot");return(e==null?void 0:e.assignedElements().length)>0?e.assignedElements()[0]:null}updateCurrentTime(){if(!this.audioElement)return;let e=this.audioElement.currentTime;this.currentTime=this.formatTime(e),this.progress=e,this.progressSlider&&(this.progressSlider.value=this.progress.toString())}updateAudioDuration(){if(this.audioElement){if(isNaN(this.audioElement.duration)){setTimeout(()=>{this.updateAudioDuration()},100);return}this.duration=this.formatTime(this.audioElement.duration),this.progressSlider.max=this.audioElement.duration.toString()}}playAudio(){this.audioElement&&(this.isPlaying=!0,this.audioElement.play(),this.emit("sd-playback-start"),this.animated&&this.draw())}pauseAudio(){this.audioElement&&(this.isPlaying=!1,this.audioElement.pause(),this.emit("sd-playback-pause"),this.animated&&this.stopAnimation())}handleAudioEnd(){this.emit("sd-playback-end"),this.isPlaying=!1,this.progress=0,this.progressSlider.value="0",this.currentTime=this.formatTime(0),this.animated&&this.stopAnimation()}toggleMute(){this.audioElement&&(this.isMuted=!this.isMuted,this.isMuted?(this.emit("sd-playback-mute"),this.audioElement.muted=!0):(this.emit("sd-playback-unmute"),this.audioElement.muted=!1))}toggleMuteKeydown(e){e.key==="Enter"&&(e.preventDefault(),this.toggleMute())}togglePlaybackSpeed(){this.audioElement&&(this.emit("sd-playback-speed"),this.speed=this.speed===1.5?1:this.speed+.25,this.audioElement.playbackRate=this.speed)}togglePlaybackSpeedKeydown(e){e.key==="Enter"&&(e.preventDefault(),this.togglePlaybackSpeed())}formatTime(e){let r=Math.floor(e/60),o=Math.floor(e%60);return`${r}:${o<10?"0":""}${o}`}handleAudioProgress(){if(!this.audioElement)return;let e=Number(this.progressSlider.value);this.audioElement.currentTime=e,this.progress=e,this.currentTime=this.formatTime(e)}handleAudioProgressKeydown(e){e.key==="ArrowRight"&&(this.progressSlider.value=(Number(this.progressSlider.value)+1).toString(),this.handleAudioProgress()),e.key==="ArrowLeft"&&(this.progressSlider.value=(Number(this.progressSlider.value)-1).toString(),this.handleAudioProgress())}handleTranscriptDrawerToggle(){this.isTranscriptOpen=!this.isTranscriptOpen}showTranscript(){this.emit("sd-transcript-click"),this.drawer.open=!0,this.handleTranscriptDrawerToggle()}showTranscriptKeydown(e){(e.key==="Enter"||e.key===" ")&&this.showTranscript()}rgbToHex(e){let r=e.match(/\d+/g);if(r&&r.length===3){let o=parseInt(r[0]),n=parseInt(r[1]),b=parseInt(r[2]),u=y=>y.toString(16).padStart(2,"0");return`#${u(o)}${u(n)}${u(b)}`.toUpperCase()}return null}initAnimation(){this.context=this.canvas.getContext("2d");let e=this.audioPlayerContainer.querySelector(".playback-speed"),o=window.getComputedStyle(e).color,n;this.inverted?n="#FFFFFF33":n=this.rgbToHex(o)+"33",this.waveList=[new c({canvas:this.canvas,color:n,phase:240,shift:1.5,amplitude:230,frequency:.012,damping:1}),new c({canvas:this.canvas,color:n,phase:180,shift:2.5,amplitude:250,frequency:.005,damping:1}),new c({canvas:this.canvas,color:n,phase:180,shift:-2.5,amplitude:250,frequency:.005,damping:1}),new c({canvas:this.canvas,color:n,phase:180,shift:-1,amplitude:200,frequency:.018,damping:1}),new c({canvas:this.canvas,color:n,phase:180,shift:1.5,amplitude:150,frequency:.01,damping:1})],this.animated&&this.drawStillWaves()}drawStillWaves(){this.waveList.forEach(e=>{e.redraw()})}stopAnimation(){this.isPlaying=!1}clear(){!this.context||!this.canvas||this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}async draw(){!this.isPlaying||!this.animated||(this.clear(),this.waveList.forEach(e=>{e.redraw()}),await new Promise(e=>{setTimeout(e,1e3/30)}),await this.draw())}render(){let e=this.audioElement?this.progress/this.audioElement.duration*100:0,r=s`<div class="${a("controls grid grid-cols-3 justify-items-center items-center",!this.animated&&"relative",this.animated&&!this.reversedLayout&&"absolute -top-4 left-0 w-full",this.reversedLayout?"mt-2":"mb-2")}" part="audio-controls"><button class="${a("playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-5-13-9-button ?inverted="${!!this.inverted}" part="play-button" size="lg" @click="${this.isPlaying?this.pauseAudio:this.playAudio}" aria-label="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" title="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" class="text-3xl">${this.isPlaying?s`<slot name="pause-icon"><sd-5-13-9-icon class="text-3xl" name="pause" library="_internal"></sd-5-13-9-icon></slot>`:s`<slot name="play-icon"><sd-5-13-9-icon class="text-3xl" name="start" library="_internal"></sd-5-13-9-icon></slot>`}</sd-5-13-9-button><div class="flex items-center justify-self-end">${this.hasSlotController.test("transcript")?s`<button class="${a("mr-6 w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.isTranscriptOpen?this.localize.term("transcriptIsOpen"):this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" part="transcript"><sd-5-13-9-icon class="w-6 h-6" name="transcript" library="_internal"></sd-5-13-9-icon></button>`:null} <button class="${a("w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" part="volume" aria-label="${this.isMuted?this.localize.term("unmute"):this.localize.term("mute")}" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-5-13-9-icon class="w-6 h-6" name="${this.isMuted?"mute":"volume"}" library="_internal"></sd-5-13-9-icon></button></div></div>`,o=s`<div class="${a("w-full flex justify-between",this.reversedLayout?"mb-2":"mt-2",this.animated&&this.reversedLayout&&"absolute bottom-0 left-0 mb-2",this.animated&&!this.reversedLayout&&"mt-2")}" part="timestamps"><div class="${a("current-time text-sm",this.inverted?"text-primary-400":"text-neutral-700")}">${this.currentTime}</div><div class="${a("current-time text-sm",this.inverted?"text-primary-400":"text-neutral-700")}">${this.duration}</div></div>`;return s`<div class="${a("w-full flex relative",this.reversedLayout?"flex-col-reverse":"flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated||this.animated&&this.reversedLayout?r:null}<div class="relative">${this.animated&&!this.reversedLayout?s`${r}`:null} ${this.animated?s`<canvas class="w-full h-16"></canvas>`:null} ${!this.hideTimestamps&&this.animated&&this.reversedLayout?o:null} <input class="${a("progress-slider bg-primary appearance-none w-full cursor-pointer outline-none h-1 flex items-center sd-interactive",this.inverted&&"sd-interactive--inverted")}" type="range" max="100" step="0.001" value="${this.progress}" @input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}" aria-label="${this.localize.term("seekBar")}" part="progress-slider" style="background:linear-gradient(to right,${this.inverted?"rgb(var(--sd-color-white, 255 255 255) / 1)":"rgb(var(--sd-color-primary, 0 53 142) / 1)"} ${e}%,${this.animated?"transparent":this.inverted?"rgb(var(--sd-color-primary-400, 153 171 208) / 1)":"rgb(var(--sd-color-grey-400, 195 195 195) / 1)"} ${e}%)"></div>${this.hasSlotController.test("transcript")?s`<sd-5-13-9-drawer><slot name="transcript"></slot></sd-5-13-9-drawer>`:null} ${!this.hideTimestamps&&(!this.animated||!this.reversedLayout)?o:null}</div>`}};t.styles=[...p.styles,m`.progress-slider:focus-visible{outline:2px solid transparent;outline-offset:2px}.progress-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-webkit-slider-thumb{outline-offset:2px;outline-style:solid}.progress-slider::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-moz-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-moz-range-thumb{outline-offset:2px;outline-style:solid}sd-5-13-9-button::part(base){align-items:center;border-radius:var(--sd-border-radius-full,9999px);display:flex;height:var(--sd-spacing-16,4rem);justify-content:center;width:var(--sd-spacing-16,4rem)}sd-5-13-9-button::part(motion-wrapper){border-radius:var(--sd-border-radius-full,9999px)}sd-5-13-9-button::part(label){align-items:center;display:flex;flex-grow:0}`],i([d({type:Boolean,reflect:!0,attribute:"reversed-layout"})],t.prototype,"reversedLayout",2),i([d({type:Boolean,reflect:!0,attribute:"hide-timestamps"})],t.prototype,"hideTimestamps",2),i([d({type:Boolean,reflect:!0})],t.prototype,"animated",2),i([d({type:Boolean,reflect:!0})],t.prototype,"inverted",2),i([d({type:Number,reflect:!0})],t.prototype,"speed",2),i([l()],t.prototype,"currentTime",2),i([l()],t.prototype,"duration",2),i([l()],t.prototype,"isPlaying",2),i([l()],t.prototype,"isMuted",2),i([l()],t.prototype,"isTranscriptOpen",2),i([l()],t.prototype,"progress",2),i([h('[part="progress-slider"]')],t.prototype,"progressSlider",2),i([h('[part="audio-player"]')],t.prototype,"audioPlayerContainer",2),i([h("sd-5-13-9-drawer")],t.prototype,"drawer",2),i([h("canvas")],t.prototype,"canvas",2),t=i([f("sd-5-13-9-audio")],t);export{t as a};
@@ -1 +0,0 @@
1
- import{a as u}from"./chunk.CGQ2BPPZ.js";import{a}from"./chunk.26V4EXHB.js";import{a as b}from"./chunk.GHC63SXL.js";import{a as l}from"./chunk.E2DRD2OX.js";import{a as c,b as r,d as s,h as n}from"./chunk.EYOFW6DA.js";import{b as d,e as o}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var v=0,t=class extends n{constructor(){super(...arguments);this.attrId=++v;this.componentId=`sd-5-13-9-tab-${this.attrId}`;this.hasSlotController=new u(this,"left");this.localize=new b(this);this.variant="default";this.active=!1;this.disabled=!1;this.visuallyDisabled=!1;this.panel=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){let i=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",i?"true":"false")}focus(i){this.tab.focus(i)}blur(){this.tab.blur()}render(){this.id=this.id.length>0?this.id:this.componentId;let i={left:this.hasSlotController.test("left")};return o`<div part="base" class="${a("inline-flex justify-center min-w-max items-center h-12 px-3 leading-none select-none cursor-pointer group relative","focus-visible:focus-outline outline-2 !-outline-offset-2 transition-all duration-fast ease-in-out",this.variant==="container"&&"tab-container-border bg-white rounded-[4px_4px_0_0]",this.variant==="container"&&this.active&&"tab--active-container-border bg-white",this.disabled||this.visuallyDisabled?"!cursor-not-allowed":"hover:bg-neutral-200",this.active&&"z-20")}" tabindex="${!this.active||this.disabled?"-1":"0"}"><div class="${a("flex h-full items-center justify-center whitespace-nowrap",this.disabled||this.visuallyDisabled&&"opacity-50 ")}"><slot name="left" class="${a(i.left&&"block pr-2",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary")}"></slot><slot class="${a(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary")}"></slot>${this.variant==="container"?o`<div part="active-tab-indicator" class="${a("absolute bottom-0 h-1 bg-accent w-3/4 bottom-0 group-hover:w-full")}"></div>`:""}<div part="hover-bottom-border" class="${a(!this.active&&!this.disabled&&"absolute bottom-0 left-0 w-full h-0.25 border-b border-transparent group-hover:border-b-neutral-400 transition-[border] duration-fast ease-in-out")}"></div></div></div>`}};t.styles=[...n.styles,d`:host{box-sizing:border-box;display:inline-block}:host(:hover)::part(hover-bottom-border){--tw-border-opacity:1;border-bottom-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-border-opacity,1))}.tab-container-border:after{border-color:transparent;border-width:1px;--tw-content:""}.tab--active-container-border:after,.tab-container-border:after{content:var(--tw-content);height:100%;position:absolute;width:100%}.tab--active-container-border:after{border-width:1px;--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-border-opacity,1));transition-duration:.15s;transition-duration:var(--sd-duration-medium,.3s);transition-property:border;transition-timing-function:cubic-bezier(.4,0,.2,1);--tw-content:"";border-bottom:none;border-radius:4px 4px 0 0}[part=active-tab-indicator]{--tw-scale-x:0;--tw-scale-y:0;opacity:var(--sd-opacity-0,0);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-duration:var(--sd-duration-fast,.15s);transition:width var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([active]) [part=active-tab-indicator]{--tw-scale-x:1;--tw-scale-y:1;opacity:var(--sd-opacity-100,1);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition:width var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}`],e([s("[part=base]")],t.prototype,"tab",2),e([s("[part=active-tab-indicator]")],t.prototype,"currentIndicator",2),e([r({type:String,reflect:!0})],t.prototype,"variant",2),e([r({type:Boolean,reflect:!0})],t.prototype,"active",2),e([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([r({type:String,reflect:!0})],t.prototype,"panel",2),e([l("active")],t.prototype,"handleActiveChange",1),e([l(["disabled","visually-disabled"])],t.prototype,"handleDisabledChange",1),t=e([c("sd-5-13-9-tab")],t);export{t as a};
@@ -1 +0,0 @@
1
- import{a as s}from"./chunk.YTG5BN3U.js";import{a as l}from"./chunk.26V4EXHB.js";import{a as k}from"./chunk.GHC63SXL.js";import{a as T,b as h,c as b,d as u,h as y}from"./chunk.EYOFW6DA.js";import{b as S,e as c}from"./chunk.UWPDCU52.js";import{e as o}from"./chunk.TJOCV4DC.js";var n=class extends y{constructor(){super(...arguments);this.localize=new k(this);this.orientation="horizontal";this.scrollbars=!1;this.buttons=!1;this.shadows=!1;this.inset=!1;this.step=150;this.canScroll={left:!1,right:!1,up:!1,down:!1};this.isScrollHorizontalEnabled=!1;this.isScrollVerticalEnabled=!1}connectedCallback(){super.connectedCallback(),this.updateScrollEnabledFlags(),this.resizeObserver=new ResizeObserver(()=>{this.handleContainerScroll()}),this.updateComplete.then(()=>{this.container&&this.resizeObserver.observe(this.container)})}disconnectedCallback(){super.disconnectedCallback(),this.container&&this.resizeObserver.unobserve(this.container)}updated(t){super.updated(t),(t.has("orientation")||t.has("buttons")||t.has("shadows"))&&(this.updateScrollEnabledFlags(),this.handleContainerScroll())}updateScrollEnabledFlags(){let t=this.orientation;this.isScrollHorizontalEnabled=t==="horizontal"||t==="auto",this.isScrollVerticalEnabled=t==="vertical"||t==="auto"}get scrollButtons(){return{left:this.leftButton,right:this.rightButton,up:this.upButton,down:this.downButton}}handleContainerScroll(){if(!this.container)return;let t=this.container.scrollLeft>0,i=this.container.scrollLeft+this.container.clientWidth<this.container.scrollWidth-1,e=this.container.scrollTop>0,d=this.container.scrollTop+this.container.clientHeight<this.container.scrollHeight-1,a=this.canScroll,r={left:this.isScrollHorizontalEnabled&&t,right:this.isScrollHorizontalEnabled&&i,up:this.isScrollVerticalEnabled&&e,down:this.isScrollVerticalEnabled&&d},m=a.left&&!r.left,v=a.up&&!r.up,E=a.right&&!r.right,f=a.down&&!r.down;(m||v)&&this.dispatchEvent(new CustomEvent("start")),(E||f)&&this.dispatchEvent(new CustomEvent("end")),this.canScroll=r}handleScroll(t,i){var z,x,B;let e=["left","up"].includes(t)?-this.step:this.step,d=["left","right"].includes(t)?"horizontal":"vertical",a=["left","up"].includes(t)?"start":"end",r=!["mouse","touch"].includes((z=i==null?void 0:i.pointerType)!=null?z:""),m=d==="horizontal"?"left":"top";(x=this.container)==null||x.scrollBy({behavior:"smooth",[m]:e});let v=`button-${t}`;this.dispatchEvent(new CustomEvent(v,{bubbles:!0,composed:!0}));let f=(d==="horizontal"?this.container.scrollLeft:this.container.scrollTop)+e,C=d==="horizontal"?this.container.scrollWidth-this.container.clientWidth:this.container.scrollHeight-this.container.clientHeight,$=a==="start"&&f<=0,H=a==="end"&&f>=C-1;if(!($||H)){let w=this.localize.term("scrolled");this.announcementContainer.textContent=this.announcementContainer.textContent===w?`${w}\u200B`:w;return}let g=this.scrollButtons[t],p={left:this.rightButton,right:this.leftButton,up:this.downButton,down:this.upButton}[t],L=$?`${this.localize.term("scrolled")}. ${this.localize.term("scrollToEnd")}`:`${this.localize.term("scrolled")}. ${this.localize.term("scrollToStart")}`;(B=p==null?void 0:p.querySelector("sd-5-13-9-icon"))==null||B.setAttribute("label",L),r?p==null||p.focus():g==null||g.blur()}handleButtonBlur(t,i){var r;let d=(["left","up"].includes(t)?"start":"end")==="start"?this.localize.term("scrollToStart"):this.localize.term("scrollToEnd");(r=i.target.querySelector("sd-5-13-9-icon"))==null||r.setAttribute("label",d)}render(){let t="relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg",i="scroll-shadow absolute z-10 pointer-events-none transition-opacity duration-medium ease-in-out";return c`<div part="base" class="${l("scroll-container flex overflow-hidden flex-1",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset&&"p-4",{horizontal:"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden",vertical:"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden",auto:"scroll-auto overflow-auto"}[this.orientation])}" @scroll="${this.handleContainerScroll}" tabindex="0"><div id="announcement-container" role="status" class="sr-only"></div><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?c`${this.isScrollHorizontalEnabled?c`<div part="button-left" class="${l("absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8 transition-opacity duration-medium ease-in-out",!this.canScroll.left&&"opacity-0 pointer-events-none")}"><button part="button-start" class="${l(t)}" aria-hidden="${s(!this.canScroll.left||void 0)}" tabindex="${s(this.canScroll.left?void 0:-1)}" @click="${e=>this.handleScroll("left",e)}" @blur="${e=>this.handleButtonBlur("left",e)}"><slot name="icon-start"><sd-5-13-9-icon library="_internal" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-5-13-9-icon></slot></button></div><div part="button-right" class="${l("absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8 transition-opacity duration-medium ease-in-out",!this.canScroll.right&&"opacity-0 pointer-events-none")}"><button part="button-end" class="${l(t)}" aria-hidden="${s(!this.canScroll.right||void 0)}" tabindex="${s(this.canScroll.right?void 0:-1)}" @click="${e=>this.handleScroll("right",e)}" @blur="${e=>this.handleButtonBlur("right",e)}"><slot name="icon-end"><sd-5-13-9-icon library="_internal" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-5-13-9-icon></slot></button></div>`:null} ${this.isScrollVerticalEnabled?c`<div part="button-top" class="${l("absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8 transition-opacity duration-medium ease-in-out",!this.canScroll.up&&"opacity-0 pointer-events-none")}"><button part="button-start" class="${l(t)}" aria-hidden="${s(!this.canScroll.up||void 0)}" tabindex="${s(this.canScroll.up?void 0:-1)}" @click="${e=>this.handleScroll("up",e)}" @blur="${e=>this.handleButtonBlur("up",e)}"><slot name="icon-start"><sd-5-13-9-icon library="_internal" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-5-13-9-icon></slot></button></div><div part="button-bottom" class="${l("absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8 transition-opacity duration-medium ease-in-out",!this.canScroll.down&&"opacity-0 pointer-events-none")}"><button part="button-end" class="${l(t)}" aria-hidden="${s(!this.canScroll.down||void 0)}" tabindex="${s(this.canScroll.down?void 0:-1)}" @click="${e=>this.handleScroll("down",e)}" @blur="${e=>this.handleButtonBlur("down",e)}"><slot name="icon-end"><sd-5-13-9-icon library="_internal" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-5-13-9-icon></slot></button></div>`:null}`:null} ${this.shadows?c`${this.isScrollHorizontalEnabled?c`<div part="shadow-left" class="${l("left top-0 left-0 w-[6px] h-full",i,this.canScroll.left?"opacity-100":"opacity-0")}"></div><div part="shadow-right" class="${l("right top-0 right-0 w-[6px] h-full",i,this.canScroll.right?"opacity-100":"opacity-0")}"></div>`:null} ${this.isScrollVerticalEnabled?c`<div part="shadow-top" class="${l("top top-0 left-0 w-full h-[6px]",i,this.canScroll.up?"opacity-100":"opacity-0")}"></div><div part="shadow-bottom" class="${l("bottom bottom-0 left-0 w-full h-[6px]",i,this.canScroll.down?"opacity-100":"opacity-0")}"></div>`:null}`:null}`}};n.styles=[...y.styles,S`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-5-13-9-icon--top{align-self:flex-start}.sd-5-13-9-icon--down{align-self:flex-end}`],o([u('[part="button-right"] button')],n.prototype,"rightButton",2),o([u('[part="button-left"] button')],n.prototype,"leftButton",2),o([u('[part="button-bottom"] button')],n.prototype,"downButton",2),o([u('[part="button-top"] button')],n.prototype,"upButton",2),o([u(".scroll-container")],n.prototype,"container",2),o([u("#announcement-container")],n.prototype,"announcementContainer",2),o([h({type:String,reflect:!0})],n.prototype,"orientation",2),o([h({type:Boolean,reflect:!0})],n.prototype,"scrollbars",2),o([h({type:Boolean,reflect:!0})],n.prototype,"buttons",2),o([h({type:Boolean,reflect:!0})],n.prototype,"shadows",2),o([h({type:Boolean,reflect:!0})],n.prototype,"inset",2),o([h({type:Number,reflect:!0})],n.prototype,"step",2),o([b()],n.prototype,"canScroll",2),o([b()],n.prototype,"isScrollHorizontalEnabled",2),o([b()],n.prototype,"isScrollVerticalEnabled",2),n=o([T("sd-5-13-9-scrollable")],n);export{n as a};
@@ -1 +0,0 @@
1
- import{a as k}from"./chunk.YRRYK5NI.js";import{b,c as C,d as x,e as E}from"./chunk.6HLS5XU2.js";import{a as V}from"./chunk.CGQ2BPPZ.js";import{a as u}from"./chunk.26V4EXHB.js";import{a as f}from"./chunk.E2DRD2OX.js";import{a as y,b as r,c,d as m,h as p}from"./chunk.EYOFW6DA.js";import{b as v,e as h}from"./chunk.UWPDCU52.js";import{e as o}from"./chunk.TJOCV4DC.js";var s=class extends p{constructor(){super(...arguments);this.formControlController=new b(this);this.hasSlotController=new V(this,"label","error-text");this.customValidityMessage="";this.hasButtonGroup=!1;this.defaultValue="";this.showInvalidStyle=!1;this.size="lg";this.required=!1;this.orientation="vertical";this.label="";this.helpText="";this.boldLabel=!1;this.name="option";this.value="";this.form=""}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?E:t?x:C}get validationMessage(){let t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sd-5-13-9-radio, sd-5-13-9-radio-button")]}handleRadioClick(t){let e=t.target.closest("sd-5-13-9-radio, sd-5-13-9-radio-button"),a=this.getAllRadios(),i=this.value;e.disabled||(this.value=e.value,a.forEach(n=>n.checked=n===e),this.value!==i&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){var g;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;let e=this.getAllRadios().filter(d=>!d.disabled),a=(g=e.find(d=>d.checked))!=null?g:e[0],i=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,n=this.value,l=e.indexOf(a)+i;l<0&&(l=e.length-1),l>e.length-1&&(l=0),this.getAllRadios().forEach(d=>{d.checked=!1,this.hasButtonGroup||(d.tabIndex=-1)}),this.value=e[l].value,e[l].checked=!0,this.hasButtonGroup?e[l].shadowRoot.querySelector("button").focus():(e[l].tabIndex=0,e[l].focus()),this.value!==n&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}focus(){let t=this.getAllRadios(),a=t.find(i=>i.checked)||t[0];a&&a.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}async syncRadioElements(){var e,a;let t=this.getAllRadios();if(await Promise.all(t.map(async i=>{await i.updateComplete,i.checked=i.value===this.value,i.size=this.size,i instanceof k&&(i.invalid=this.showInvalidStyle)})),this.hasButtonGroup=t.some(i=>i.tagName.toLowerCase()==="sd-5-13-9-radio-button"),!t.some(i=>i.checked))if(this.hasButtonGroup){let i=(e=t[0].shadowRoot)==null?void 0:e.querySelector("button");i&&(i.tabIndex=0)}else t[0].tabIndex=0;if(this.hasButtonGroup){let i=(a=this.shadowRoot)==null?void 0:a.querySelector("sd-5-13-9-button-group");i&&(i.disableRole=!0)}}syncRadios(){if(customElements.get("sd-5-13-9-radio")&&customElements.get("sd-5-13-9-radio-button")){this.syncRadioElements();return}customElements.get("sd-5-13-9-radio")?this.syncRadioElements():customElements.whenDefined("sd-5-13-9-radio").then(()=>this.syncRadios()),customElements.get("sd-5-13-9-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-5-13-9-radio-button").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){let t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity.valid;return this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),this.formControlController.fakeUserInteraction(),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:t,a=this.hasSlotController.test("help-text"),i=this.helpText?!0:!!a,n=this.hasSlotController.test("tooltip"),l=h`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return h`<fieldset part="form-control" class="${u("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="radiogroup" aria-describedby="invalid-message" aria-labelledby="label">${e||n?h`<div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${u("p-0 leading-normal text-black text-left",e?"inline-block":"hidden",this.boldLabel&&"font-bold")}" @click="${this.focus}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></legend>${n?h`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${u("flex",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" aria-labelledby="label" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup?h`<sd-5-13-9-button-group class="border border-primary rounded-full" part="button-group" exportparts="base:button-group__base" role="presentation">${l}</sd-5-13-9-button-group>`:l}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${u("text-sm text-neutral-700 mt-2",i?"block":"hidden")}" aria-hidden="${!i}">${this.helpText}</slot>${this.formControlController.renderInvalidMessage()}`}};s.styles=[...p.styles,v`:host{display:block}:host([orientation=vertical]) ::slotted(sd-5-13-9-radio){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-5-13-9-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-5-13-9-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-5-13-9-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-13-9-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-13-9-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label:after{content:" *"}:host:has(sd-5-13-9-button-group){display:inline-flex}`],o([m("slot:not([name])")],s.prototype,"defaultSlot",2),o([m("#validation-input")],s.prototype,"validationInput",2),o([m("#invalid-message")],s.prototype,"invalidMessage",2),o([c()],s.prototype,"hasButtonGroup",2),o([c()],s.prototype,"defaultValue",2),o([c()],s.prototype,"showInvalidStyle",2),o([r({type:String,reflect:!0})],s.prototype,"size",2),o([r({type:Boolean,reflect:!0})],s.prototype,"required",2),o([r({type:String,reflect:!0})],s.prototype,"orientation",2),o([r({type:String,reflect:!0})],s.prototype,"label",2),o([r({type:String,attribute:"help-text",reflect:!0})],s.prototype,"helpText",2),o([r({type:Boolean,reflect:!0})],s.prototype,"boldLabel",2),o([r({type:String,reflect:!0})],s.prototype,"name",2),o([r()],s.prototype,"value",2),o([r({type:String,reflect:!0})],s.prototype,"form",2),o([f("size",{waitUntilFirstUpdate:!0})],s.prototype,"handleSizeChange",1),o([f("showInvalidStyle",{waitUntilFirstUpdate:!0})],s.prototype,"handleInvalidChange",1),o([f("value")],s.prototype,"handleValueChange",1),s=o([y("sd-5-13-9-radio-group")],s);export{s as a};
@@ -1 +0,0 @@
1
- import{a as b}from"./chunk.YTG5BN3U.js";import{a as h,c as p}from"./chunk.SKUMYG4O.js";import{a as m}from"./chunk.KLRPP4NQ.js";import{a as o}from"./chunk.26V4EXHB.js";import{a as y}from"./chunk.GHC63SXL.js";import{a as v}from"./chunk.E2DRD2OX.js";import{a as f,b as a,d as n,h as c}from"./chunk.EYOFW6DA.js";import{b as g,e as u}from"./chunk.UWPDCU52.js";import{b as r,e as l,f as d}from"./chunk.6OTM3PE5.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends c{constructor(){super(...arguments);this.open=!1;this.inverted=!1;this.localize=new y(this)}updateMaxHeight(){var s;let e=(s=this.contentPreview)==null?void 0:s.scrollHeight.toString();this.style.setProperty("--max-height-pixel",`${e}px`),this.style.setProperty("--max-height",e)}onToggleClick(){this.updateMaxHeight(),this.open=!this.open}async onOpenChange(){if(this.body.classList.add("transitioning"),this.open){this.emit("sd-show"),await l(this.body);let{keyframes:e,options:s}=p(this,"expandable.show",{dir:this.localize.dir()});await r(this.body,d(e,this.body.scrollHeight),s),this.body.style.height="auto",this.updateComplete.then(()=>{this.emit("sd-after-show")})}else{this.emit("sd-hide"),await l(this.body);let{keyframes:e,options:s}=p(this,"expandable.hide",{dir:this.localize.dir()});await r(this.body,d(e,this.body.scrollHeight),s),this.body.style.height="auto",this.updateComplete.then(()=>{this.emit("sd-after-hide")})}this.details.setAttribute("open",this.open.toString()),this.body.classList.remove("transitioning")}async show(){if(!this.open)return this.onToggleClick(),m(this,"sd-after-show")}async hide(){if(this.open)return this.onToggleClick(),m(this,"sd-after-hide")}render(){return u`<div part="base" class="flex flex-col-reverse gap-4"><button part="toggle" class="${o("sd-interactive sd-interactive--reset",this.inverted&&"sd-interactive--inverted",this.inverted?"!focus-visible:focus-outline-inverted":"!focus-visible:focus-outline")}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${o("h-full justify-center w-full text-base flex items-center toggle")}"><span part="toggle-icon" class="${o("flex items-center mr-2 transition-transform duration-medium ease-in-out",this.open&&"rotate-180")}"><slot name="expand-icon" class="${o(this.open&&"hidden")}"><sd-5-13-9-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-13-9-icon></slot><slot name="collapse-icon" class="${o(!this.open&&"hidden")}"><sd-5-13-9-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-13-9-icon></slot></span><slot name="toggle-closed" class="${o(this.open&&"hidden")}">${this.localize.term("showMore")}</slot><slot name="toggle-open" class="${o(!this.open&&"hidden")}">${this.localize.term("showLess")}</slot></div></button><details part="details" ?inert="${b(!this.open)}"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details></div>`}firstUpdated(){this.cloneContentToLightDOM(),this.details.setAttribute("open",this.open.toString())}cloneContentToLightDOM(){let e=document.createElement("div");e.setAttribute("slot","clone"),Array.from(this.childNodes).forEach(x=>{let w=x.cloneNode(!0);e.appendChild(w)}),this.appendChild(e)}};t.styles=[...c.styles,g`:host{--component-expandable-max-block-size:90px;--gradient-height:24px;--gradient:var(--gradient-color-start,hsla(0,0%,100%,0)) 0%,var(--gradient-color-end,#fff) 80%,var(--gradient-color-end,#fff) 100%;display:inline-block;position:relative;width:100%}.toggle::-moz-focus-inner{border-style:none;padding:var(--sd-spacing-0,0)}details>summary::-webkit-details-marker,details[open] summary{display:none}summary{max-block-size:var(--component-expandable-max-block-size)}:host([open]) summary{max-block-size:var(--max-height-pixel,1000vh)}.content{max-block-size:var(--component-expandable-max-block-size)}:host([open]) .content,:host:has(.transitioning) .content{max-block-size:var(--max-height-pixel,1000vh)}.content:after{background:linear-gradient(180deg,var(--gradient));bottom:var(--sd-spacing-0,0);content:" ";display:block;height:var(--gradient-height);left:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);position:absolute;transition-duration:.15s;transition-duration:var(--sd-duration-medium,.3s);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%}:host([inverted]){--color-primary-rgb:0,53,142;--gradient-color-start:rgba(var(--color-primary-rgb),0);--gradient-color-end:rgba(var(--color-primary-rgb),1)}:host([inverted]) .content:after{background:var(--gradient-vertical-transparent-primary,linear-gradient(180deg,var(--gradient)))}:host(:not([open])) .content:after{opacity:var(--sd-opacity-100,1)}`],i([n(".content-preview")],t.prototype,"contentPreview",2),i([n("details")],t.prototype,"details",2),i([n('[part="content"]')],t.prototype,"body",2),i([a({type:Boolean,reflect:!0})],t.prototype,"open",2),i([a({type:Boolean,reflect:!0})],t.prototype,"inverted",2),i([v("open",{waitUntilFirstUpdate:!0})],t.prototype,"onOpenChange",1),t=i([f("sd-5-13-9-expandable")],t);h("expandable.show",{keyframes:[{height:"var(--component-expandable-max-block-size, 90px)"},{height:"auto"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});h("expandable.hide",{keyframes:[{height:"auto"},{height:"var(--component-expandable-max-block-size, 90px)"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{t as a};
@@ -1 +0,0 @@
1
- import{b as m}from"./chunk.H2TKMIFR.js";import{a as s}from"./chunk.26V4EXHB.js";import{a as b}from"./chunk.GHC63SXL.js";import{a as p}from"./chunk.E2DRD2OX.js";import{a as d,b as a,d as n,h as o}from"./chunk.EYOFW6DA.js";import{b as r}from"./chunk.UWPDCU52.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends o{constructor(){super(...arguments);this.localize=new b(this);this.disabled=!1;this.label=""}handleDisableOptions(){let{disabled:l}=this;this.defaultSlot.assignedElements().filter(i=>i.tagName.toLowerCase()==="sd-5-13-9-option").forEach(i=>{i.disabled=l})}handleDisabledChange(){this.handleDisableOptions()}render(){let{disabled:l}=this;return m`<div role="${l?"presentation":"group"}" class="${s(this.disabled?"text-neutral-500":"")}" part="base" aria-labelledby="group-label"><sd-5-13-9-divider id="divider" class="pt-2 pb-4" part="divider"></sd-5-13-9-divider><div part="label-container" class="${s(this.disabled?"text-neutral-500":"text-black")} px-4 font-bold text-left" role="presentation" id="group-label"><slot name="label"><span>${this.label}</span></slot></div><div role="listbox" part="options" aria-label="${this.localize.term("optionGroup")}"><slot @slotchange="${this.handleDisableOptions}"></slot></div></div>`}};e.styles=[...o.styles,r`:host{--display-divider:block}#divider{display:var(--display-divider)}`],t([n("slot:not([name])")],e.prototype,"defaultSlot",2),t([a({reflect:!0,type:Boolean})],e.prototype,"disabled",2),t([a({type:String,reflect:!0})],e.prototype,"label",2),t([p("disabled",{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),e=t([d("sd-5-13-9-optgroup")],e);export{e as a};
@@ -1 +0,0 @@
1
- import{a as p}from"./chunk.26V4EXHB.js";import{a as l}from"./chunk.E2DRD2OX.js";import{a as o,b as a,h as i}from"./chunk.EYOFW6DA.js";import{b as r,e as s}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var c=0,t=class extends i{constructor(){super(...arguments);this.attrId=++c;this.componentId=`sd-5-13-9-tab-panel-${this.attrId}`;this.name="";this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return s`<slot part="base" class="${p("block",this.active&&"tab-panel--active")}"></slot>`}};t.styles=[...i.styles,r`:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],e([a({type:String,reflect:!0})],t.prototype,"name",2),e([a({type:Boolean,reflect:!0})],t.prototype,"active",2),e([l("active")],t.prototype,"handleActiveChange",1),t=e([o("sd-5-13-9-tab-panel")],t);export{t as a};
@@ -1 +0,0 @@
1
- import{a as m}from"./chunk.26V4EXHB.js";import{a as l}from"./chunk.E2DRD2OX.js";import{a as h,b as r,d as f,h as n}from"./chunk.EYOFW6DA.js";import{b as o,e as c}from"./chunk.UWPDCU52.js";import{e as s}from"./chunk.TJOCV4DC.js";var e=class extends n{constructor(){super(...arguments);this.steps=[];this.size="lg";this.orientation="horizontal";this.activeStep=0;this.notInteractive=!1;this.label=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.steps=this.getAllSteps(),this.steps[this.steps.length-1].noTail=!0;let t;this.steps.forEach((i,a)=>{i.index=a+1,i.size=this.size,i.orientation=this.orientation,this.notInteractive?(i.current=!1,i.disabled=!1,i.notInteractive=!0):i.current&&(t=a)}),this.setActiveStep(t||this.activeStep)})}updateSize(){this.steps.forEach(t=>{t.size=this.size})}updateOrientation(){this.steps.forEach(t=>{t.orientation=this.orientation})}getAllSteps(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-5-13-9-step")}setActiveStep(t){t>=0&&t<this.steps.length&&!this.notInteractive&&(this.activeStep=t,this.steps.forEach((i,a)=>{a===t?i.current=!0:a>t?i.disabled=!0:i.current=!1}))}handleInteractivityChange(){this.notInteractive&&this.steps.forEach(t=>{t.current=!1,t.disabled=!1,t.notInteractive=!0})}render(){return c`<div role="${this.notInteractive?"group":"navigation"}" class="h-full" aria-label="${this.label}"><div role="list" part="base" class="${m("flex",this.orientation==="vertical"&&"flex-col h-full")}"><slot part="body"></slot></div></div>`}};e.styles=[...n.styles,o`:host{width:-moz-max-content;width:max-content}`],s([f("[part=body]")],e.prototype,"body",2),s([r({type:String,reflect:!0})],e.prototype,"size",2),s([r({type:String,reflect:!0})],e.prototype,"orientation",2),s([r({type:Number,reflect:!0,attribute:"active-step"})],e.prototype,"activeStep",2),s([r({type:Boolean,reflect:!0,attribute:"not-interactive"})],e.prototype,"notInteractive",2),s([r({type:String,reflect:!0})],e.prototype,"label",2),s([l("size",{waitUntilFirstUpdate:!0})],e.prototype,"updateSize",1),s([l("orientation",{waitUntilFirstUpdate:!0})],e.prototype,"updateOrientation",1),s([l("notInteractive")],e.prototype,"handleInteractivityChange",1),e=s([h("sd-5-13-9-step-group")],e);export{e as a};
@@ -1 +0,0 @@
1
- import{a as p}from"./chunk.CGQ2BPPZ.js";import{a}from"./chunk.26V4EXHB.js";import{a as r}from"./chunk.E2DRD2OX.js";import{a as d,b as o,h as n}from"./chunk.EYOFW6DA.js";import{b as m,e as s}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends n{constructor(){super(...arguments);this.hasSlotController=new p(this,"label","help-text");this.size="lg";this.orientation="vertical";this.label="";this.helpText=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-5-13-9-checkbox")]}async syncCheckboxElements(){let i=this.getAllCheckboxes();await Promise.all(i.map(async l=>{await l.updateComplete,l.size=this.size}))}syncCheckboxes(){customElements.get("sd-5-13-9-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-5-13-9-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let i=this.hasSlotController.test("label"),l=this.label?!0:i,b=this.hasSlotController.test("help-text"),c=this.helpText?!0:b,x=s`<slot @slotchange="${this.syncCheckboxes}"></slot>`,h=this.hasSlotController.test("tooltip");return s`<fieldset part="form-control" class="${a("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label">${l||h?s`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${a("p-0 font-bold leading-normal text-black",l?"flex":"hidden")}" aria-hidden="${l?"false":"true"}"><slot name="label">${this.label}</slot></label> ${h?s`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${a({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${x}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${a("text-sm text-neutral-700 mt-2",c?"block":"hidden")}" aria-hidden="${!c}">${this.helpText}</slot>`}};t.styles=[...n.styles,m`:host{display:block}:host([orientation=vertical]) ::slotted(sd-5-13-9-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-5-13-9-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-5-13-9-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-5-13-9-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-13-9-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-13-9-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`],e([o({type:String,reflect:!0})],t.prototype,"size",2),e([o({type:String,reflect:!0})],t.prototype,"orientation",2),e([o({type:String,reflect:!0})],t.prototype,"label",2),e([o({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),e([r("size",{waitUntilFirstUpdate:!0})],t.prototype,"handleSizeChange",1),e([r("invalid",{waitUntilFirstUpdate:!0})],t.prototype,"handleInvalid",1),t=e([d("sd-5-13-9-checkbox-group")],t);export{t as a};
@@ -1 +0,0 @@
1
- import{a as w}from"./chunk.CGQ2BPPZ.js";import{a as s}from"./chunk.YTG5BN3U.js";import{a as c,b as i}from"./chunk.H2TKMIFR.js";import{a}from"./chunk.26V4EXHB.js";import{a as b}from"./chunk.GHC63SXL.js";import{a as v,b as r,d as m,h}from"./chunk.EYOFW6DA.js";import{b as f}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends h{constructor(){super(...arguments);this.hasSlotController=new w(this,"[default]","description","children");this.localize=new b(this);this.vertical=!1;this.size="md";this.current=!1;this.disabled=!1;this.chevron=!1;this.relaxed=!1;this.divider=!1;this.indented=!1;this.open=!1;this.separated=!1}get isButton(){return!this.href&&!this.hasSlotController.test("children")}get isLink(){return!!this.href}get isAccordion(){return!this.href&&this.hasSlotController.test("children")}handleClickButton(n){this.disabled&&(n.preventDefault(),n.stopPropagation())}handleClickSummary(n){n.preventDefault(),n.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}get calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}get tag(){return this.isAccordion&&!this.isLink?c`summary`:this.separated?c`div`:this.isLink?c`a`:c`button`}render(){let n=this.tag,l=this.isLink,u=this.isButton,o=this.isAccordion,d={label:this.hasSlotController.test("[default]"),main:this.hasSlotController.test("main"),description:this.hasSlotController.test("description"),children:this.hasSlotController.test("children")},x=this.vertical?"py-3":"py-2",p=i`<${n} part="base" class="${a("cursor-pointer relative focus-visible:focus-outline",{md:"text-base",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"text-primary",this.current&&"font-bold",o?"flex flex-col":"inline-block w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&"inline-flex items-center",!this.separated&&"hover:bg-neutral-200 group transition-colors duration-fast ease-in-out min-h-[48px] px-4")}" aria-current="${s(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${s(u?this.disabled:void 0)}" href="${s(l?this.href:void 0)}" target="${s(l?this.target:void 0)}" download="${s(l?this.download:void 0)}" rel="${s(l&&this.target?"noreferrer noopener":void 0)}" role="${l?"link":"button"}" tabindex="${this.disabled||this.separated?"-1":"0"}" @click="${this.separated?void 0:o?this.handleClickSummary:u?this.handleClickButton:void 0}"><div part="current-indicator" class="${a("absolute bg-accent left-0 pointer-events-none",this.vertical?"w-1 h-[calc(100%-16px)] top-2 group-hover:h-full group-hover:top-0":"h-1 w-[calc(100%-16px)] bottom-0 left-2 group-hover:w-full group-hover:left-0",this.disabled&&"bg-neutral-500")}"></div><span part="content-area" class="${a("relative inline-flex justify-between items-center",o?"grow":"w-full",d.description&&"pt-3",d.description||this.separated?"pb-1":x,this.calculatePaddingX)}">${this.divider&&this.vertical?i`<sd-5-13-9-divider part="divider" class="${a("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-5-13-9-divider>`:""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated?i`<a class="${a("mr-4 w-full inline-flex items-center pl-4 cursor-pointer relative focus-visible:focus-outline hover:bg-neutral-200 group transition-colors duration-fast ease-in-out min-h-[48px]",!d.description&&"py-4")}" href="${s(l?this.href:void 0)}" target="${s(l?this.target:void 0)}" download="${s(l?this.download:void 0)}"><slot part="content" class="inline-flex"></slot></a>`:i`<slot part="content" class="inline-flex"></slot>`} </span>${(this.chevron||d.children)&&this.vertical?this.separated?i`<button type="button" title="${this.open?this.localize.term("collapseNavigationItem"):this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-5-13-9-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${a("m-4 h-6 w-6 transition-all",o||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-5-13-9-icon></button>`:i`<sd-5-13-9-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${a("h-6 w-6 ml-2 transition-all",o?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-5-13-9-icon>`:""} </span>${d.description&&this.vertical?i`<slot name="description" part="description" class="${a("inline-block text-sm text-left text-black pb-3",o||this.separated?"grow":"w-full",this.separated?"px-4":this.calculatePaddingX)}"></slot>`:""}</${n}>`;return o?i`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative">${p}<slot name="children"></slot></details>`:this.separated?i`<div part="details" id="navigation-item-details" class="relative flex flex-col">${p}${this.open?i`<slot name="children"></slot>`:""}</div>`:i`${p}`}};t.styles=[...h.styles,f`:host{box-sizing:border-box;display:inline-block;position:relative}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}[part=current-indicator]{--tw-scale-x:0;--tw-scale-y:0;opacity:var(--sd-opacity-0,0);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-duration:var(--sd-duration-fast,.15s);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([current]) [part=current-indicator]{--tw-scale-x:1;--tw-scale-y:1;opacity:var(--sd-opacity-100,1);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}`],e([m('a[part="base"], button[part="base"]')],t.prototype,"button",2),e([r({type:Boolean,reflect:!0})],t.prototype,"vertical",2),e([r({type:String,reflect:!0})],t.prototype,"size",2),e([r({reflect:!0})],t.prototype,"href",2),e([r({type:String,reflect:!0})],t.prototype,"target",2),e([r({reflect:!0})],t.prototype,"download",2),e([r({type:Boolean,reflect:!0})],t.prototype,"current",2),e([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([r({type:Boolean,reflect:!0})],t.prototype,"chevron",2),e([r({type:Boolean,reflect:!0})],t.prototype,"relaxed",2),e([r({type:Boolean,reflect:!0})],t.prototype,"divider",2),e([r({type:Boolean,reflect:!0})],t.prototype,"indented",2),e([r({type:Boolean,reflect:!0})],t.prototype,"open",2),e([r({type:Boolean,reflect:!0})],t.prototype,"separated",2),t=e([v("sd-5-13-9-navigation-item")],t);export{t as a};
@@ -1 +0,0 @@
1
- import{a as g,b as m,c as b,d as h,h as i}from"./chunk.EYOFW6DA.js";import{b as d,e as c}from"./chunk.UWPDCU52.js";import{e as l}from"./chunk.TJOCV4DC.js";var s=class extends i{constructor(){super(...arguments);this.disableRole=!1;this.label=""}handleFocus(e){let t=a(e.target);t==null||t.classList.add("sd-5-13-9-button-group__button--focus")}handleBlur(e){let t=a(e.target);t==null||t.classList.remove("sd-5-13-9-button-group__button--focus")}handleMouseOver(e){let t=a(e.target);t==null||t.classList.add("sd-5-13-9-button-group__button--hover")}handleMouseOut(e){let t=a(e.target);t==null||t.classList.remove("sd-5-13-9-button-group__button--hover")}handleSlotChange(){let e=[...this.defaultSlot.assignedElements({flatten:!0})];e.forEach(t=>{let n=e.indexOf(t),o=a(t);o!==null&&(o.classList.add("sd-5-13-9-button-group__button"),o.classList.toggle("sd-5-13-9-button-group__button--first",n===0),o.classList.toggle("sd-5-13-9-button-group__button--inner",n>0&&n<e.length-1),o.classList.toggle("sd-5-13-9-button-group__button--last",n===e.length-1),o.classList.toggle("sd-5-13-9-button-group__button--radio",o.tagName.toLowerCase()==="sd-5-13-9-radio-button"))})}render(){return c`<slot part="base" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};s.styles=[...i.styles,d`:host{display:inline-block}[part=base]{display:flex;flex-wrap:nowrap}`],l([h("slot")],s.prototype,"defaultSlot",2),l([b()],s.prototype,"disableRole",2),l([m({type:String,reflect:!0})],s.prototype,"label",2),s=l([g("sd-5-13-9-button-group")],s);function a(r){var e;let u="sd-5-13-9-button, sd-5-13-9-radio-button";return(e=r.closest(u))!=null?e:r.querySelector(u)}export{s as a};
@@ -1 +0,0 @@
1
- import{a as i}from"./chunk.26V4EXHB.js";import{a as l}from"./chunk.E2DRD2OX.js";import{a as o,b as s,c as r,h as a}from"./chunk.EYOFW6DA.js";import{b as n,e as h}from"./chunk.UWPDCU52.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends a{constructor(){super(...arguments);this.checked=!1;this.hasFocus=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.invalid=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.setInitialAttributes(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}removeEventListeners(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("click",this.handleClick),this.removeEventListener("focus",this.handleFocus)}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(){!this.disabled&&!this.visuallyDisabled&&(this.checked=!0)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled||this.visuallyDisabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return h`<span part="base" class="${i("sd-5-13-9-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"small-size text-sm",md:"text-base",lg:"text-base"}[this.size])}"><span part="${`${this.checked?"control--checked":"control--unchecked"}`}" class="${i("flex-initial shrink-0 relative inline-flex items-center justify-center border rounded-full bg-white h-4 w-4 duration-fast ease-in-out",this.disabled||this.visuallyDisabled?"border-neutral-500":this.invalid?"border-error hover:border-error-400 group-hover:border-error-400":this.checked?"border-accent hover:border-accent-550 group-hover:border-accent-550":"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200")}"><span part="checked" class="${i("rounded-full inline-flex text-white bg-accent h-2.5 w-2.5 transition-[transform, colors] duration-medium ease-in-out",this.checked?"scale-100":"scale-0",this.disabled?"bg-neutral-500":this.visuallyDisabled?"bg-white":this.invalid?"bg-error hover:bg-error-400 group-hover:bg-error-400":this.checked?"bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"bg-neutral-800")}"></span></span><slot part="label" class="${i("ml-2 select-none inline-block",this.disabled||this.visuallyDisabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};e.styles=[...a.styles,n`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}`],t([r()],e.prototype,"checked",2),t([r()],e.prototype,"hasFocus",2),t([s({type:String,reflect:!0})],e.prototype,"size",2),t([s({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([s({type:Boolean,reflect:!0,attribute:"visually-disabled"})],e.prototype,"visuallyDisabled",2),t([s()],e.prototype,"value",2),t([s({type:Boolean,reflect:!0})],e.prototype,"invalid",2),t([l("checked")],e.prototype,"handleCheckedChange",1),t([l(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),e=t([o("sd-5-13-9-radio")],e);export{e as a};
@@ -1 +0,0 @@
1
- import{a as h}from"./chunk.YTG5BN3U.js";import{a as f}from"./chunk.GHC63SXL.js";import{a as p}from"./chunk.E2DRD2OX.js";import{a as o,b as r,d as c,h as i}from"./chunk.EYOFW6DA.js";import{b as a,e as l}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends i{constructor(){super(...arguments);this.localize=new f(this);this.href="";this.current=!1}handleCurrentChange(){var n,s;!this.base||!this.current||(s=(n=this.base.shadowRoot)==null?void 0:n.querySelector("a"))==null||s.setAttribute("aria-current","page")}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","listitem"),super.connectedCallback()}firstUpdated(){requestAnimationFrame(()=>this.handleCurrentChange())}render(){return l`<sd-5-13-9-link part="base" href="${h(this.current?void 0:this.href)}" target="${this.target}" standalone class="text-nowrap"><slot></slot></sd-5-13-9-link>`}};t.styles=[...i.styles,a`:host{align-items:center;display:inline-flex}sd-5-13-9-link::part(base){align-items:center}sd-5-13-9-link::part(icon-left){display:inline-flex;margin-right:var(--sd-spacing-0,0)}sd-5-13-9-link sd-5-13-9-icon{margin:var(--sd-spacing-0,0)}:host([current]) sd-5-13-9-link::part(base){--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-text-opacity,1))}:host([current]) sd-5-13-9-link::part(label){text-decoration-line:none}`],e([c('[part="base"]')],t.prototype,"base",2),e([r({type:String,reflect:!0})],t.prototype,"href",2),e([r({type:String,reflect:!0})],t.prototype,"target",2),e([r({type:Boolean,reflect:!0})],t.prototype,"current",2),e([p("current")],t.prototype,"handleCurrentChange",1),t=e([o("sd-5-13-9-breadcrumb-item")],t);export{t as a};