@solid-design-system/components 5.13.14 → 5.13.15

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 (601) hide show
  1. package/cdn/chunks/{chunk.4WS6ISBF.js → chunk.2A5OJMTM.js} +1 -1
  2. package/cdn/chunks/{chunk.27FNJ2PN.js → chunk.2JCEHOM7.js} +1 -1
  3. package/cdn/chunks/{chunk.DS6OKK7E.js → chunk.33KRM4P7.js} +1 -1
  4. package/cdn/chunks/{chunk.VTSX5LEC.js → chunk.3QN6NR3A.js} +1 -1
  5. package/cdn/chunks/{chunk.LACWK5U2.js → chunk.3SW2M5HK.js} +1 -1
  6. package/cdn/chunks/{chunk.LUCBOYPL.js → chunk.5JVELGCN.js} +1 -1
  7. package/cdn/chunks/{chunk.KS6HFLK2.js → chunk.66GMDNBP.js} +1 -1
  8. package/cdn/chunks/{chunk.2ASRYO75.js → chunk.6AWBZM7S.js} +1 -1
  9. package/cdn/chunks/{chunk.SHP5JHWU.js → chunk.6I2KBVPW.js} +1 -1
  10. package/cdn/chunks/{chunk.2C7EBMG5.js → chunk.74646IV2.js} +1 -1
  11. package/cdn/chunks/{chunk.WAVXNSMT.js → chunk.75WVAPNG.js} +1 -1
  12. package/cdn/chunks/{chunk.VX2WA6JC.js → chunk.AA5LJ7W6.js} +1 -1
  13. package/cdn/chunks/{chunk.B54NSO5Y.js → chunk.AUZT2PGH.js} +1 -1
  14. package/cdn/chunks/{chunk.FEL7NDH5.js → chunk.B3F6O46H.js} +1 -1
  15. package/cdn/chunks/{chunk.ZQC5PYLE.js → chunk.BD6A3UXV.js} +1 -1
  16. package/cdn/chunks/{chunk.I4JFBFUL.js → chunk.BDXT7B2B.js} +1 -1
  17. package/cdn/chunks/{chunk.UGEF2FQR.js → chunk.DEUBNH5Y.js} +1 -1
  18. package/cdn/chunks/{chunk.PIM4IVY7.js → chunk.E7ZW64GE.js} +1 -1
  19. package/cdn/chunks/{chunk.QIOBA6U4.js → chunk.FMGSABMZ.js} +1 -1
  20. package/cdn/chunks/{chunk.5PITQTCS.js → chunk.FOZESWCE.js} +1 -1
  21. package/cdn/chunks/{chunk.HX7XPGG3.js → chunk.GB5NMXSI.js} +1 -1
  22. package/cdn/chunks/{chunk.VHYOMSJH.js → chunk.GSAG6BPH.js} +1 -1
  23. package/cdn/chunks/{chunk.7OFXZTBU.js → chunk.IERDPDGP.js} +1 -1
  24. package/cdn/chunks/{chunk.FADTWOWY.js → chunk.IIHKERHX.js} +1 -1
  25. package/cdn/chunks/{chunk.2MWGJ42J.js → chunk.KY6R5UVV.js} +1 -1
  26. package/cdn/chunks/{chunk.O7HTYQZJ.js → chunk.KYJSYHPJ.js} +1 -1
  27. package/cdn/chunks/chunk.LKSTUQOS.js +1 -0
  28. package/cdn/chunks/{chunk.2NU6E5HZ.js → chunk.MLL5WWRM.js} +1 -1
  29. package/cdn/chunks/{chunk.KUYKWOIR.js → chunk.MSRTLMWC.js} +1 -1
  30. package/cdn/chunks/{chunk.4JCFZ7AN.js → chunk.MTMPNMST.js} +1 -1
  31. package/cdn/chunks/{chunk.UYJTT34Z.js → chunk.N26HOMLB.js} +1 -1
  32. package/cdn/chunks/{chunk.UK5N2DTE.js → chunk.NCS4IZ2C.js} +1 -1
  33. package/cdn/chunks/{chunk.6EVGQLHB.js → chunk.NJVWOB4V.js} +1 -1
  34. package/cdn/chunks/{chunk.YQ27KD5M.js → chunk.NP6ME4NF.js} +1 -1
  35. package/cdn/chunks/{chunk.HOAV46TC.js → chunk.PDZQOG2A.js} +1 -1
  36. package/cdn/chunks/{chunk.DVQVZCFM.js → chunk.PGLK7JSU.js} +1 -1
  37. package/cdn/chunks/{chunk.5RA4GJWJ.js → chunk.PKSD5JK6.js} +1 -1
  38. package/cdn/chunks/{chunk.EF5R3XXB.js → chunk.PSAJHIEA.js} +1 -1
  39. package/cdn/chunks/{chunk.Y4C5Q22M.js → chunk.Q2GNMFNL.js} +1 -1
  40. package/cdn/chunks/{chunk.42542XOU.js → chunk.QBQ4E5NB.js} +1 -1
  41. package/cdn/chunks/{chunk.T7TDYFIZ.js → chunk.QBRCQRLS.js} +1 -1
  42. package/cdn/chunks/{chunk.DNPUPU5N.js → chunk.RHWOCL75.js} +1 -1
  43. package/cdn/chunks/{chunk.XVP3JFUF.js → chunk.S2A36D6C.js} +1 -1
  44. package/cdn/chunks/{chunk.G7DX536M.js → chunk.SLYWLLIY.js} +1 -1
  45. package/cdn/chunks/{chunk.V35C2AM2.js → chunk.TFBJYUNO.js} +1 -1
  46. package/cdn/chunks/{chunk.NLHZZEN6.js → chunk.TP2EBILT.js} +1 -1
  47. package/cdn/chunks/{chunk.JR3LNORU.js → chunk.TS7HVJ22.js} +1 -1
  48. package/cdn/chunks/{chunk.HJR66OM3.js → chunk.TUUCROYG.js} +1 -1
  49. package/cdn/chunks/{chunk.54UYR3N2.js → chunk.UKCCU2GA.js} +1 -1
  50. package/cdn/chunks/{chunk.GMVRGCVC.js → chunk.ULTWXZVY.js} +1 -1
  51. package/cdn/chunks/{chunk.MEWKZ5ES.js → chunk.UW7RZPW7.js} +1 -1
  52. package/cdn/chunks/{chunk.YJVLZLXE.js → chunk.VALQ5H7R.js} +1 -1
  53. package/cdn/chunks/{chunk.3FMPWWYL.js → chunk.VD22AOXR.js} +1 -1
  54. package/cdn/chunks/{chunk.APITCTY7.js → chunk.WTTEOAMT.js} +1 -1
  55. package/cdn/chunks/{chunk.XT7KIHF3.js → chunk.XLUBT6LA.js} +1 -1
  56. package/cdn/chunks/{chunk.YPIA2ACB.js → chunk.Y6WM3JWD.js} +1 -1
  57. package/cdn/chunks/{chunk.22K26MFW.js → chunk.ZOTMIAEI.js} +1 -1
  58. package/cdn/components/accordion/accordion.js +1 -1
  59. package/cdn/components/accordion-group/accordion-group.js +1 -1
  60. package/cdn/components/animation/animation.js +1 -1
  61. package/cdn/components/audio/audio.js +1 -1
  62. package/cdn/components/badge/badge.js +1 -1
  63. package/cdn/components/brandshape/brandshape.js +1 -1
  64. package/cdn/components/breadcrumb/breadcrumb.js +1 -1
  65. package/cdn/components/breadcrumb-item/breadcrumb-item.js +1 -1
  66. package/cdn/components/button/button.js +1 -1
  67. package/cdn/components/button-group/button-group.js +1 -1
  68. package/cdn/components/carousel/carousel.js +1 -1
  69. package/cdn/components/carousel-item/carousel-item.js +1 -1
  70. package/cdn/components/checkbox/checkbox.js +1 -1
  71. package/cdn/components/checkbox-group/checkbox-group.js +1 -1
  72. package/cdn/components/combobox/combobox.js +1 -1
  73. package/cdn/components/dialog/dialog.js +1 -1
  74. package/cdn/components/divider/divider.js +1 -1
  75. package/cdn/components/drawer/drawer.js +1 -1
  76. package/cdn/components/dropdown/dropdown.js +1 -1
  77. package/cdn/components/expandable/expandable.js +1 -1
  78. package/cdn/components/flipcard/flipcard.js +1 -1
  79. package/cdn/components/header/header.js +1 -1
  80. package/cdn/components/icon/icon.js +1 -1
  81. package/cdn/components/include/include.js +1 -1
  82. package/cdn/components/input/input.js +1 -1
  83. package/cdn/components/link/link.js +1 -1
  84. package/cdn/components/loader/loader.js +1 -1
  85. package/cdn/components/map-marker/map-marker.js +1 -1
  86. package/cdn/components/menu/menu.js +1 -1
  87. package/cdn/components/menu-item/menu-item.js +1 -1
  88. package/cdn/components/navigation-item/navigation-item.d.ts +2 -0
  89. package/cdn/components/navigation-item/navigation-item.js +1 -1
  90. package/cdn/components/notification/notification.js +1 -1
  91. package/cdn/components/optgroup/optgroup.js +1 -1
  92. package/cdn/components/option/option.js +1 -1
  93. package/cdn/components/popup/popup.js +1 -1
  94. package/cdn/components/quickfact/quickfact.js +1 -1
  95. package/cdn/components/radio/radio.js +1 -1
  96. package/cdn/components/radio-button/radio-button.js +1 -1
  97. package/cdn/components/radio-group/radio-group.js +1 -1
  98. package/cdn/components/range/range.js +1 -1
  99. package/cdn/components/range-tick/range-tick.js +1 -1
  100. package/cdn/components/scrollable/scrollable.js +1 -1
  101. package/cdn/components/select/select.js +1 -1
  102. package/cdn/components/spinner/spinner.js +1 -1
  103. package/cdn/components/step/step.js +1 -1
  104. package/cdn/components/step-group/step-group.js +1 -1
  105. package/cdn/components/switch/switch.js +1 -1
  106. package/cdn/components/tab/tab.js +1 -1
  107. package/cdn/components/tab-group/tab-group.js +1 -1
  108. package/cdn/components/tab-panel/tab-panel.js +1 -1
  109. package/cdn/components/tag/tag.js +1 -1
  110. package/cdn/components/teaser/teaser.js +1 -1
  111. package/cdn/components/teaser-media/teaser-media.js +1 -1
  112. package/cdn/components/textarea/textarea.js +1 -1
  113. package/cdn/components/tooltip/tooltip.js +1 -1
  114. package/cdn/components/video/video.js +1 -1
  115. package/cdn/custom-elements.json +1 -1
  116. package/cdn/solid-components.bundle.js +3 -3
  117. package/cdn/solid-components.iife.js +3 -3
  118. package/cdn/solid-components.js +1 -1
  119. package/cdn/utilities/autocomplete-config.js +1 -1
  120. package/cdn/vscode.html-custom-data.json +52 -52
  121. package/cdn/web-types.json +117 -117
  122. package/cdn-versioned/chunks/{chunk.4WS6ISBF.js → chunk.2A5OJMTM.js} +1 -1
  123. package/cdn-versioned/chunks/{chunk.27FNJ2PN.js → chunk.2JCEHOM7.js} +1 -1
  124. package/cdn-versioned/chunks/{chunk.DS6OKK7E.js → chunk.33KRM4P7.js} +1 -1
  125. package/cdn-versioned/chunks/{chunk.VTSX5LEC.js → chunk.3QN6NR3A.js} +1 -1
  126. package/cdn-versioned/chunks/{chunk.LACWK5U2.js → chunk.3SW2M5HK.js} +1 -1
  127. package/cdn-versioned/chunks/{chunk.LUCBOYPL.js → chunk.5JVELGCN.js} +4 -4
  128. package/cdn-versioned/chunks/{chunk.KS6HFLK2.js → chunk.66GMDNBP.js} +1 -1
  129. package/cdn-versioned/chunks/{chunk.2ASRYO75.js → chunk.6AWBZM7S.js} +1 -1
  130. package/cdn-versioned/chunks/{chunk.SHP5JHWU.js → chunk.6I2KBVPW.js} +1 -1
  131. package/cdn-versioned/chunks/{chunk.2C7EBMG5.js → chunk.74646IV2.js} +1 -1
  132. package/cdn-versioned/chunks/{chunk.WAVXNSMT.js → chunk.75WVAPNG.js} +1 -1
  133. package/cdn-versioned/chunks/{chunk.VX2WA6JC.js → chunk.AA5LJ7W6.js} +1 -1
  134. package/cdn-versioned/chunks/{chunk.B54NSO5Y.js → chunk.AUZT2PGH.js} +1 -1
  135. package/cdn-versioned/chunks/{chunk.FEL7NDH5.js → chunk.B3F6O46H.js} +1 -1
  136. package/cdn-versioned/chunks/chunk.BBD6RMZH.js +1 -1
  137. package/cdn-versioned/chunks/{chunk.ZQC5PYLE.js → chunk.BD6A3UXV.js} +1 -1
  138. package/cdn-versioned/chunks/{chunk.I4JFBFUL.js → chunk.BDXT7B2B.js} +1 -1
  139. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  140. package/cdn-versioned/chunks/{chunk.UGEF2FQR.js → chunk.DEUBNH5Y.js} +1 -1
  141. package/cdn-versioned/chunks/{chunk.PIM4IVY7.js → chunk.E7ZW64GE.js} +1 -1
  142. package/cdn-versioned/chunks/{chunk.QIOBA6U4.js → chunk.FMGSABMZ.js} +1 -1
  143. package/cdn-versioned/chunks/{chunk.5PITQTCS.js → chunk.FOZESWCE.js} +2 -2
  144. package/cdn-versioned/chunks/{chunk.HX7XPGG3.js → chunk.GB5NMXSI.js} +1 -1
  145. package/cdn-versioned/chunks/{chunk.VHYOMSJH.js → chunk.GSAG6BPH.js} +1 -1
  146. package/cdn-versioned/chunks/chunk.I3WLVUO6.js +1 -1
  147. package/cdn-versioned/chunks/{chunk.7OFXZTBU.js → chunk.IERDPDGP.js} +1 -1
  148. package/cdn-versioned/chunks/{chunk.FADTWOWY.js → chunk.IIHKERHX.js} +2 -2
  149. package/cdn-versioned/chunks/{chunk.2MWGJ42J.js → chunk.KY6R5UVV.js} +1 -1
  150. package/cdn-versioned/chunks/{chunk.O7HTYQZJ.js → chunk.KYJSYHPJ.js} +1 -1
  151. package/cdn-versioned/chunks/chunk.LKSTUQOS.js +1 -0
  152. package/cdn-versioned/chunks/{chunk.2NU6E5HZ.js → chunk.MLL5WWRM.js} +1 -1
  153. package/cdn-versioned/chunks/{chunk.KUYKWOIR.js → chunk.MSRTLMWC.js} +4 -4
  154. package/cdn-versioned/chunks/{chunk.4JCFZ7AN.js → chunk.MTMPNMST.js} +1 -1
  155. package/cdn-versioned/chunks/{chunk.UYJTT34Z.js → chunk.N26HOMLB.js} +1 -1
  156. package/cdn-versioned/chunks/{chunk.UK5N2DTE.js → chunk.NCS4IZ2C.js} +1 -1
  157. package/cdn-versioned/chunks/{chunk.6EVGQLHB.js → chunk.NJVWOB4V.js} +1 -1
  158. package/cdn-versioned/chunks/{chunk.YQ27KD5M.js → chunk.NP6ME4NF.js} +1 -1
  159. package/cdn-versioned/chunks/{chunk.HOAV46TC.js → chunk.PDZQOG2A.js} +2 -2
  160. package/cdn-versioned/chunks/{chunk.DVQVZCFM.js → chunk.PGLK7JSU.js} +1 -1
  161. package/cdn-versioned/chunks/{chunk.5RA4GJWJ.js → chunk.PKSD5JK6.js} +1 -1
  162. package/cdn-versioned/chunks/{chunk.EF5R3XXB.js → chunk.PSAJHIEA.js} +1 -1
  163. package/cdn-versioned/chunks/{chunk.Y4C5Q22M.js → chunk.Q2GNMFNL.js} +1 -1
  164. package/cdn-versioned/chunks/{chunk.42542XOU.js → chunk.QBQ4E5NB.js} +1 -1
  165. package/cdn-versioned/chunks/{chunk.T7TDYFIZ.js → chunk.QBRCQRLS.js} +1 -1
  166. package/cdn-versioned/chunks/{chunk.DNPUPU5N.js → chunk.RHWOCL75.js} +1 -1
  167. package/cdn-versioned/chunks/{chunk.XVP3JFUF.js → chunk.S2A36D6C.js} +1 -1
  168. package/cdn-versioned/chunks/{chunk.G7DX536M.js → chunk.SLYWLLIY.js} +1 -1
  169. package/cdn-versioned/chunks/{chunk.V35C2AM2.js → chunk.TFBJYUNO.js} +1 -1
  170. package/cdn-versioned/chunks/{chunk.NLHZZEN6.js → chunk.TP2EBILT.js} +1 -1
  171. package/cdn-versioned/chunks/{chunk.JR3LNORU.js → chunk.TS7HVJ22.js} +1 -1
  172. package/cdn-versioned/chunks/{chunk.HJR66OM3.js → chunk.TUUCROYG.js} +1 -1
  173. package/cdn-versioned/chunks/{chunk.54UYR3N2.js → chunk.UKCCU2GA.js} +1 -1
  174. package/cdn-versioned/chunks/{chunk.GMVRGCVC.js → chunk.ULTWXZVY.js} +1 -1
  175. package/cdn-versioned/chunks/{chunk.MEWKZ5ES.js → chunk.UW7RZPW7.js} +1 -1
  176. package/cdn-versioned/chunks/{chunk.YJVLZLXE.js → chunk.VALQ5H7R.js} +1 -1
  177. package/cdn-versioned/chunks/{chunk.3FMPWWYL.js → chunk.VD22AOXR.js} +1 -1
  178. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  179. package/cdn-versioned/chunks/{chunk.APITCTY7.js → chunk.WTTEOAMT.js} +2 -2
  180. package/cdn-versioned/chunks/{chunk.XT7KIHF3.js → chunk.XLUBT6LA.js} +1 -1
  181. package/cdn-versioned/chunks/{chunk.YPIA2ACB.js → chunk.Y6WM3JWD.js} +1 -1
  182. package/cdn-versioned/chunks/{chunk.22K26MFW.js → chunk.ZOTMIAEI.js} +1 -1
  183. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  184. package/cdn-versioned/components/accordion/accordion.js +1 -1
  185. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  186. package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
  187. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  188. package/cdn-versioned/components/animation/animation.js +1 -1
  189. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  190. package/cdn-versioned/components/audio/audio.js +1 -1
  191. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  192. package/cdn-versioned/components/badge/badge.js +1 -1
  193. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  194. package/cdn-versioned/components/brandshape/brandshape.js +1 -1
  195. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  196. package/cdn-versioned/components/breadcrumb/breadcrumb.js +1 -1
  197. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  198. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.js +1 -1
  199. package/cdn-versioned/components/button/button.d.ts +1 -1
  200. package/cdn-versioned/components/button/button.js +1 -1
  201. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  202. package/cdn-versioned/components/button-group/button-group.js +1 -1
  203. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  204. package/cdn-versioned/components/carousel/carousel.js +1 -1
  205. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  206. package/cdn-versioned/components/carousel-item/carousel-item.js +1 -1
  207. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  208. package/cdn-versioned/components/checkbox/checkbox.js +1 -1
  209. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  210. package/cdn-versioned/components/checkbox-group/checkbox-group.js +1 -1
  211. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  212. package/cdn-versioned/components/combobox/combobox.js +1 -1
  213. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  214. package/cdn-versioned/components/dialog/dialog.js +1 -1
  215. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  216. package/cdn-versioned/components/divider/divider.js +1 -1
  217. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  218. package/cdn-versioned/components/drawer/drawer.js +1 -1
  219. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  220. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  221. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  222. package/cdn-versioned/components/expandable/expandable.js +1 -1
  223. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  224. package/cdn-versioned/components/flipcard/flipcard.js +1 -1
  225. package/cdn-versioned/components/header/header.d.ts +1 -1
  226. package/cdn-versioned/components/header/header.js +1 -1
  227. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  228. package/cdn-versioned/components/icon/icon.js +1 -1
  229. package/cdn-versioned/components/include/include.d.ts +1 -1
  230. package/cdn-versioned/components/include/include.js +1 -1
  231. package/cdn-versioned/components/input/input.d.ts +1 -1
  232. package/cdn-versioned/components/input/input.js +1 -1
  233. package/cdn-versioned/components/link/link.d.ts +1 -1
  234. package/cdn-versioned/components/link/link.js +1 -1
  235. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  236. package/cdn-versioned/components/loader/loader.js +1 -1
  237. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  238. package/cdn-versioned/components/map-marker/map-marker.js +1 -1
  239. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  240. package/cdn-versioned/components/menu/menu.js +1 -1
  241. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  242. package/cdn-versioned/components/menu-item/menu-item.js +1 -1
  243. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +3 -1
  244. package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
  245. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  246. package/cdn-versioned/components/notification/notification.js +1 -1
  247. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  248. package/cdn-versioned/components/optgroup/optgroup.js +1 -1
  249. package/cdn-versioned/components/option/option.d.ts +1 -1
  250. package/cdn-versioned/components/option/option.js +1 -1
  251. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  252. package/cdn-versioned/components/popup/popup.js +1 -1
  253. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  254. package/cdn-versioned/components/quickfact/quickfact.js +1 -1
  255. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  256. package/cdn-versioned/components/radio/radio.js +1 -1
  257. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  258. package/cdn-versioned/components/radio-button/radio-button.js +1 -1
  259. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  260. package/cdn-versioned/components/radio-group/radio-group.js +1 -1
  261. package/cdn-versioned/components/range/range.d.ts +1 -1
  262. package/cdn-versioned/components/range/range.js +1 -1
  263. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  264. package/cdn-versioned/components/range-tick/range-tick.js +1 -1
  265. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  266. package/cdn-versioned/components/scrollable/scrollable.js +1 -1
  267. package/cdn-versioned/components/select/select.d.ts +1 -1
  268. package/cdn-versioned/components/select/select.js +1 -1
  269. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  270. package/cdn-versioned/components/spinner/spinner.js +1 -1
  271. package/cdn-versioned/components/step/step.d.ts +1 -1
  272. package/cdn-versioned/components/step/step.js +1 -1
  273. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  274. package/cdn-versioned/components/step-group/step-group.js +1 -1
  275. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  276. package/cdn-versioned/components/switch/switch.js +1 -1
  277. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  278. package/cdn-versioned/components/tab/tab.js +1 -1
  279. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  280. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  281. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  282. package/cdn-versioned/components/tab-panel/tab-panel.js +1 -1
  283. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  284. package/cdn-versioned/components/tag/tag.js +1 -1
  285. package/cdn-versioned/components/teaser/teaser.js +1 -1
  286. package/cdn-versioned/components/teaser-media/teaser-media.js +1 -1
  287. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  288. package/cdn-versioned/components/textarea/textarea.js +1 -1
  289. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  290. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  291. package/cdn-versioned/components/video/video.d.ts +1 -1
  292. package/cdn-versioned/components/video/video.js +1 -1
  293. package/cdn-versioned/custom-elements.json +238 -238
  294. package/cdn-versioned/internal/form.js +3 -3
  295. package/cdn-versioned/solid-components.bundle.js +13 -13
  296. package/cdn-versioned/solid-components.css +2 -2
  297. package/cdn-versioned/solid-components.iife.js +14 -14
  298. package/cdn-versioned/solid-components.js +1 -1
  299. package/cdn-versioned/utilities/autocomplete-config.js +1 -1
  300. package/cdn-versioned/vscode.html-custom-data.json +142 -142
  301. package/cdn-versioned/web-types.json +269 -269
  302. package/dist/chunks/{chunk.7LZ5ZQ7G.js → chunk.22TF2EIE.js} +1 -1
  303. package/dist/chunks/{chunk.TYT467JR.js → chunk.27LYUN6Y.js} +1 -1
  304. package/dist/chunks/{chunk.GXUXYUOG.js → chunk.2E5VDWX4.js} +1 -1
  305. package/dist/chunks/{chunk.QQUOW5WM.js → chunk.2NGWIHT5.js} +1 -1
  306. package/dist/chunks/{chunk.W257EQK6.js → chunk.32GKKX5D.js} +1 -1
  307. package/dist/chunks/{chunk.QMFXX4AZ.js → chunk.3HQ7FVJK.js} +1 -1
  308. package/dist/chunks/{chunk.KLFBH24N.js → chunk.43K5SVK7.js} +1 -1
  309. package/dist/chunks/{chunk.QBUQZLK4.js → chunk.4EF3UGCC.js} +1 -1
  310. package/dist/chunks/{chunk.2ZUQDPS4.js → chunk.4VAT3JGP.js} +1 -1
  311. package/dist/chunks/{chunk.AII7ENVH.js → chunk.4XRIWBCR.js} +23 -2
  312. package/dist/chunks/{chunk.KTJM67BK.js → chunk.57VJBUKO.js} +1 -1
  313. package/dist/chunks/{chunk.WWVC6AXD.js → chunk.5IT7K6WX.js} +1 -1
  314. package/dist/chunks/{chunk.H2H7UKLB.js → chunk.6OFEZDAX.js} +1 -1
  315. package/dist/chunks/{chunk.43MFVINX.js → chunk.7V5CTLDN.js} +2 -2
  316. package/dist/chunks/{chunk.Z67EE23U.js → chunk.APSWM435.js} +1 -1
  317. package/dist/chunks/{chunk.G5HAUM5L.js → chunk.C34AQMYN.js} +4 -4
  318. package/dist/chunks/{chunk.KUG4JFNY.js → chunk.CNAPQPLW.js} +1 -1
  319. package/dist/chunks/{chunk.VVBDKQHI.js → chunk.DM545Z72.js} +1 -1
  320. package/dist/chunks/{chunk.OZ6OXBJC.js → chunk.E34B4T4D.js} +1 -1
  321. package/dist/chunks/{chunk.7HM3D5ZB.js → chunk.E37HGL2B.js} +1 -1
  322. package/dist/chunks/{chunk.RRLHYTHG.js → chunk.EGXUQDEC.js} +1 -1
  323. package/dist/chunks/{chunk.SORC72SZ.js → chunk.FJ6CIGEZ.js} +1 -1
  324. package/dist/chunks/{chunk.ZS7PGX4E.js → chunk.G4W5RMR2.js} +1 -1
  325. package/dist/chunks/{chunk.QGTSHDWW.js → chunk.GCDHV6F5.js} +1 -1
  326. package/dist/chunks/{chunk.CQUTC7N3.js → chunk.GWEGFIDM.js} +1 -1
  327. package/dist/chunks/{chunk.ENHM6QPI.js → chunk.GYVQXFCK.js} +1 -1
  328. package/dist/chunks/{chunk.G6CZTG7Q.js → chunk.HEYYWYTD.js} +1 -1
  329. package/dist/chunks/{chunk.ULN3BADF.js → chunk.HGN5B2BC.js} +1 -1
  330. package/dist/chunks/{chunk.TGYBKEY2.js → chunk.IOTONILE.js} +4 -4
  331. package/dist/chunks/{chunk.OIC3RK54.js → chunk.IRHIOSQX.js} +1 -1
  332. package/dist/chunks/{chunk.E5QDRLG5.js → chunk.JHK2DZYG.js} +1 -1
  333. package/dist/chunks/{chunk.MSMR7NPP.js → chunk.K4AMWTZ4.js} +1 -1
  334. package/dist/chunks/{chunk.PJ5SMSQP.js → chunk.KHWQZ42A.js} +1 -1
  335. package/dist/chunks/{chunk.VRFFOJAC.js → chunk.KMI7LMK3.js} +1 -1
  336. package/dist/chunks/{chunk.3ARIWNKQ.js → chunk.KS5ISFOK.js} +1 -1
  337. package/dist/chunks/{chunk.BDKNOJYX.js → chunk.L2WFENRS.js} +1 -1
  338. package/dist/chunks/{chunk.CEVD4PPV.js → chunk.L4ZRLPWI.js} +1 -1
  339. package/dist/chunks/{chunk.RBS2XRPG.js → chunk.L5PQR4HE.js} +1 -1
  340. package/dist/chunks/{chunk.HACIKBYQ.js → chunk.L7A2WBK5.js} +1 -1
  341. package/dist/chunks/{chunk.ZQ5Z7U7A.js → chunk.MAIJAEKT.js} +1 -1
  342. package/dist/chunks/{chunk.JF4YKLM4.js → chunk.MQCEWOME.js} +1 -1
  343. package/dist/chunks/{chunk.3ABKOHAW.js → chunk.N25TJU4N.js} +1 -1
  344. package/dist/chunks/{chunk.GZ3JKXQ2.js → chunk.N5AWKOH4.js} +1 -1
  345. package/dist/chunks/{chunk.HKATDXCW.js → chunk.O37WOXIM.js} +1 -1
  346. package/dist/chunks/{chunk.H6E4C5UY.js → chunk.O7ZM3RIK.js} +1 -1
  347. package/dist/chunks/{chunk.SLM2NJ64.js → chunk.OBFORTKA.js} +1 -1
  348. package/dist/chunks/{chunk.X3POGM3M.js → chunk.ODS4MUKK.js} +1 -1
  349. package/dist/chunks/{chunk.AYA2CQYC.js → chunk.OEOP6F5U.js} +1 -1
  350. package/dist/chunks/{chunk.ETFAVTWL.js → chunk.RWIE3FDX.js} +1 -1
  351. package/dist/chunks/{chunk.UPQH3D5U.js → chunk.TR5SJ2LZ.js} +2 -2
  352. package/dist/chunks/{chunk.3T7MEK7F.js → chunk.VCVWQNJY.js} +1 -1
  353. package/dist/chunks/{chunk.TYGDQCVE.js → chunk.VPYEBEXI.js} +2 -2
  354. package/dist/chunks/{chunk.GJM2UBD5.js → chunk.VVUWBUCI.js} +1 -1
  355. package/dist/chunks/{chunk.4W52UQUR.js → chunk.VW6BT5OS.js} +1 -1
  356. package/dist/chunks/{chunk.XTNJGYI7.js → chunk.W3P3QH7K.js} +1 -1
  357. package/dist/chunks/{chunk.RFXTKJS4.js → chunk.WCHGPDEZ.js} +1 -1
  358. package/dist/chunks/{chunk.BN2JSIUV.js → chunk.YWWS36UB.js} +1 -1
  359. package/dist/components/accordion/accordion.js +3 -3
  360. package/dist/components/accordion-group/accordion-group.js +4 -4
  361. package/dist/components/animation/animation.js +3 -3
  362. package/dist/components/audio/audio.js +7 -7
  363. package/dist/components/badge/badge.js +2 -2
  364. package/dist/components/brandshape/brandshape.js +2 -2
  365. package/dist/components/breadcrumb/breadcrumb.js +2 -2
  366. package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
  367. package/dist/components/button/button.js +3 -3
  368. package/dist/components/button-group/button-group.js +2 -2
  369. package/dist/components/carousel/carousel.js +4 -4
  370. package/dist/components/carousel-item/carousel-item.js +2 -2
  371. package/dist/components/checkbox/checkbox.js +3 -3
  372. package/dist/components/checkbox-group/checkbox-group.js +3 -3
  373. package/dist/components/combobox/combobox.js +5 -5
  374. package/dist/components/dialog/dialog.js +5 -5
  375. package/dist/components/divider/divider.js +2 -2
  376. package/dist/components/drawer/drawer.js +5 -5
  377. package/dist/components/dropdown/dropdown.js +3 -3
  378. package/dist/components/expandable/expandable.js +3 -3
  379. package/dist/components/flipcard/flipcard.js +5 -5
  380. package/dist/components/header/header.js +2 -2
  381. package/dist/components/icon/icon.js +2 -2
  382. package/dist/components/include/include.js +2 -2
  383. package/dist/components/input/input.js +3 -3
  384. package/dist/components/link/link.js +2 -2
  385. package/dist/components/loader/loader.js +2 -2
  386. package/dist/components/map-marker/map-marker.js +2 -2
  387. package/dist/components/menu/menu.js +2 -2
  388. package/dist/components/menu-item/menu-item.js +2 -2
  389. package/dist/components/navigation-item/navigation-item.d.ts +2 -0
  390. package/dist/components/navigation-item/navigation-item.js +4 -4
  391. package/dist/components/notification/notification.js +5 -5
  392. package/dist/components/optgroup/optgroup.js +3 -3
  393. package/dist/components/option/option.js +3 -3
  394. package/dist/components/popup/popup.js +2 -2
  395. package/dist/components/quickfact/quickfact.js +4 -4
  396. package/dist/components/radio/radio.js +2 -2
  397. package/dist/components/radio-button/radio-button.js +2 -2
  398. package/dist/components/radio-group/radio-group.js +4 -4
  399. package/dist/components/range/range.js +2 -2
  400. package/dist/components/range-tick/range-tick.js +2 -2
  401. package/dist/components/scrollable/scrollable.js +3 -3
  402. package/dist/components/select/select.js +5 -5
  403. package/dist/components/spinner/spinner.js +2 -2
  404. package/dist/components/step/step.js +3 -3
  405. package/dist/components/step-group/step-group.js +2 -2
  406. package/dist/components/switch/switch.js +2 -2
  407. package/dist/components/tab/tab.js +2 -2
  408. package/dist/components/tab-group/tab-group.js +3 -3
  409. package/dist/components/tab-panel/tab-panel.js +2 -2
  410. package/dist/components/tag/tag.js +3 -3
  411. package/dist/components/teaser/teaser.js +2 -2
  412. package/dist/components/teaser-media/teaser-media.js +2 -2
  413. package/dist/components/textarea/textarea.js +3 -3
  414. package/dist/components/tooltip/tooltip.js +4 -4
  415. package/dist/components/video/video.js +3 -3
  416. package/dist/custom-elements.json +1 -1
  417. package/dist/solid-components.js +61 -61
  418. package/dist/utilities/autocomplete-config.js +2 -2
  419. package/dist/vscode.html-custom-data.json +52 -52
  420. package/dist/web-types.json +117 -117
  421. package/dist-versioned/chunks/{chunk.7LZ5ZQ7G.js → chunk.22TF2EIE.js} +12 -12
  422. package/dist-versioned/chunks/{chunk.TYT467JR.js → chunk.27LYUN6Y.js} +2 -2
  423. package/dist-versioned/chunks/{chunk.GXUXYUOG.js → chunk.2E5VDWX4.js} +6 -6
  424. package/dist-versioned/chunks/{chunk.QQUOW5WM.js → chunk.2NGWIHT5.js} +7 -7
  425. package/dist-versioned/chunks/{chunk.W257EQK6.js → chunk.32GKKX5D.js} +4 -4
  426. package/dist-versioned/chunks/{chunk.QMFXX4AZ.js → chunk.3HQ7FVJK.js} +4 -4
  427. package/dist-versioned/chunks/{chunk.KLFBH24N.js → chunk.43K5SVK7.js} +5 -5
  428. package/dist-versioned/chunks/{chunk.QBUQZLK4.js → chunk.4EF3UGCC.js} +2 -2
  429. package/dist-versioned/chunks/{chunk.2ZUQDPS4.js → chunk.4VAT3JGP.js} +5 -5
  430. package/dist-versioned/chunks/{chunk.AII7ENVH.js → chunk.4XRIWBCR.js} +28 -7
  431. package/dist-versioned/chunks/{chunk.KTJM67BK.js → chunk.57VJBUKO.js} +4 -4
  432. package/dist-versioned/chunks/{chunk.WWVC6AXD.js → chunk.5IT7K6WX.js} +27 -27
  433. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  434. package/dist-versioned/chunks/{chunk.H2H7UKLB.js → chunk.6OFEZDAX.js} +2 -2
  435. package/dist-versioned/chunks/{chunk.43MFVINX.js → chunk.7V5CTLDN.js} +4 -4
  436. package/dist-versioned/chunks/{chunk.Z67EE23U.js → chunk.APSWM435.js} +3 -3
  437. package/dist-versioned/chunks/{chunk.G5HAUM5L.js → chunk.C34AQMYN.js} +5 -5
  438. package/dist-versioned/chunks/{chunk.KUG4JFNY.js → chunk.CNAPQPLW.js} +5 -5
  439. package/dist-versioned/chunks/{chunk.VVBDKQHI.js → chunk.DM545Z72.js} +15 -15
  440. package/dist-versioned/chunks/{chunk.OZ6OXBJC.js → chunk.E34B4T4D.js} +2 -2
  441. package/dist-versioned/chunks/{chunk.7HM3D5ZB.js → chunk.E37HGL2B.js} +9 -9
  442. package/dist-versioned/chunks/{chunk.RRLHYTHG.js → chunk.EGXUQDEC.js} +4 -4
  443. package/dist-versioned/chunks/{chunk.SORC72SZ.js → chunk.FJ6CIGEZ.js} +3 -3
  444. package/dist-versioned/chunks/{chunk.ZS7PGX4E.js → chunk.G4W5RMR2.js} +2 -2
  445. package/dist-versioned/chunks/{chunk.QGTSHDWW.js → chunk.GCDHV6F5.js} +2 -2
  446. package/dist-versioned/chunks/{chunk.CQUTC7N3.js → chunk.GWEGFIDM.js} +4 -4
  447. package/dist-versioned/chunks/{chunk.ENHM6QPI.js → chunk.GYVQXFCK.js} +3 -3
  448. package/dist-versioned/chunks/{chunk.G6CZTG7Q.js → chunk.HEYYWYTD.js} +2 -2
  449. package/dist-versioned/chunks/{chunk.ULN3BADF.js → chunk.HGN5B2BC.js} +3 -3
  450. package/dist-versioned/chunks/{chunk.TGYBKEY2.js → chunk.IOTONILE.js} +9 -9
  451. package/dist-versioned/chunks/{chunk.OIC3RK54.js → chunk.IRHIOSQX.js} +3 -3
  452. package/dist-versioned/chunks/{chunk.E5QDRLG5.js → chunk.JHK2DZYG.js} +3 -3
  453. package/dist-versioned/chunks/{chunk.MSMR7NPP.js → chunk.K4AMWTZ4.js} +3 -3
  454. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  455. package/dist-versioned/chunks/{chunk.PJ5SMSQP.js → chunk.KHWQZ42A.js} +3 -3
  456. package/dist-versioned/chunks/{chunk.VRFFOJAC.js → chunk.KMI7LMK3.js} +1 -1
  457. package/dist-versioned/chunks/{chunk.3ARIWNKQ.js → chunk.KS5ISFOK.js} +3 -3
  458. package/dist-versioned/chunks/{chunk.BDKNOJYX.js → chunk.L2WFENRS.js} +4 -4
  459. package/dist-versioned/chunks/{chunk.CEVD4PPV.js → chunk.L4ZRLPWI.js} +3 -3
  460. package/dist-versioned/chunks/{chunk.RBS2XRPG.js → chunk.L5PQR4HE.js} +6 -6
  461. package/dist-versioned/chunks/{chunk.HACIKBYQ.js → chunk.L7A2WBK5.js} +4 -4
  462. package/dist-versioned/chunks/{chunk.ZQ5Z7U7A.js → chunk.MAIJAEKT.js} +2 -2
  463. package/dist-versioned/chunks/{chunk.JF4YKLM4.js → chunk.MQCEWOME.js} +2 -2
  464. package/dist-versioned/chunks/{chunk.3ABKOHAW.js → chunk.N25TJU4N.js} +13 -13
  465. package/dist-versioned/chunks/{chunk.GZ3JKXQ2.js → chunk.N5AWKOH4.js} +3 -3
  466. package/dist-versioned/chunks/{chunk.HKATDXCW.js → chunk.O37WOXIM.js} +2 -2
  467. package/dist-versioned/chunks/{chunk.H6E4C5UY.js → chunk.O7ZM3RIK.js} +3 -3
  468. package/dist-versioned/chunks/{chunk.SLM2NJ64.js → chunk.OBFORTKA.js} +3 -3
  469. package/dist-versioned/chunks/{chunk.X3POGM3M.js → chunk.ODS4MUKK.js} +3 -3
  470. package/dist-versioned/chunks/{chunk.AYA2CQYC.js → chunk.OEOP6F5U.js} +25 -25
  471. package/dist-versioned/chunks/{chunk.ETFAVTWL.js → chunk.RWIE3FDX.js} +2 -2
  472. package/dist-versioned/chunks/{chunk.UPQH3D5U.js → chunk.TR5SJ2LZ.js} +8 -8
  473. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  474. package/dist-versioned/chunks/{chunk.3T7MEK7F.js → chunk.VCVWQNJY.js} +4 -4
  475. package/dist-versioned/chunks/{chunk.TYGDQCVE.js → chunk.VPYEBEXI.js} +14 -14
  476. package/dist-versioned/chunks/{chunk.GJM2UBD5.js → chunk.VVUWBUCI.js} +2 -2
  477. package/dist-versioned/chunks/{chunk.4W52UQUR.js → chunk.VW6BT5OS.js} +6 -6
  478. package/dist-versioned/chunks/{chunk.XTNJGYI7.js → chunk.W3P3QH7K.js} +3 -3
  479. package/dist-versioned/chunks/{chunk.RFXTKJS4.js → chunk.WCHGPDEZ.js} +2 -2
  480. package/dist-versioned/chunks/chunk.XCQC3F3H.js +3 -3
  481. package/dist-versioned/chunks/{chunk.BN2JSIUV.js → chunk.YWWS36UB.js} +2 -2
  482. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  483. package/dist-versioned/components/accordion/accordion.js +3 -3
  484. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  485. package/dist-versioned/components/accordion-group/accordion-group.js +4 -4
  486. package/dist-versioned/components/animation/animation.d.ts +1 -1
  487. package/dist-versioned/components/animation/animation.js +3 -3
  488. package/dist-versioned/components/audio/audio.d.ts +1 -1
  489. package/dist-versioned/components/audio/audio.js +7 -7
  490. package/dist-versioned/components/badge/badge.d.ts +1 -1
  491. package/dist-versioned/components/badge/badge.js +2 -2
  492. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  493. package/dist-versioned/components/brandshape/brandshape.js +2 -2
  494. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  495. package/dist-versioned/components/breadcrumb/breadcrumb.js +2 -2
  496. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  497. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.js +2 -2
  498. package/dist-versioned/components/button/button.d.ts +1 -1
  499. package/dist-versioned/components/button/button.js +3 -3
  500. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  501. package/dist-versioned/components/button-group/button-group.js +2 -2
  502. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  503. package/dist-versioned/components/carousel/carousel.js +4 -4
  504. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  505. package/dist-versioned/components/carousel-item/carousel-item.js +2 -2
  506. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  507. package/dist-versioned/components/checkbox/checkbox.js +3 -3
  508. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  509. package/dist-versioned/components/checkbox-group/checkbox-group.js +3 -3
  510. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  511. package/dist-versioned/components/combobox/combobox.js +5 -5
  512. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  513. package/dist-versioned/components/dialog/dialog.js +5 -5
  514. package/dist-versioned/components/divider/divider.d.ts +1 -1
  515. package/dist-versioned/components/divider/divider.js +2 -2
  516. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  517. package/dist-versioned/components/drawer/drawer.js +5 -5
  518. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  519. package/dist-versioned/components/dropdown/dropdown.js +3 -3
  520. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  521. package/dist-versioned/components/expandable/expandable.js +3 -3
  522. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  523. package/dist-versioned/components/flipcard/flipcard.js +5 -5
  524. package/dist-versioned/components/header/header.d.ts +1 -1
  525. package/dist-versioned/components/header/header.js +2 -2
  526. package/dist-versioned/components/icon/icon.d.ts +1 -1
  527. package/dist-versioned/components/icon/icon.js +2 -2
  528. package/dist-versioned/components/include/include.d.ts +1 -1
  529. package/dist-versioned/components/include/include.js +2 -2
  530. package/dist-versioned/components/input/input.d.ts +1 -1
  531. package/dist-versioned/components/input/input.js +3 -3
  532. package/dist-versioned/components/link/link.d.ts +1 -1
  533. package/dist-versioned/components/link/link.js +2 -2
  534. package/dist-versioned/components/loader/loader.d.ts +1 -1
  535. package/dist-versioned/components/loader/loader.js +2 -2
  536. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  537. package/dist-versioned/components/map-marker/map-marker.js +2 -2
  538. package/dist-versioned/components/menu/menu.d.ts +1 -1
  539. package/dist-versioned/components/menu/menu.js +2 -2
  540. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  541. package/dist-versioned/components/menu-item/menu-item.js +2 -2
  542. package/dist-versioned/components/navigation-item/navigation-item.d.ts +3 -1
  543. package/dist-versioned/components/navigation-item/navigation-item.js +4 -4
  544. package/dist-versioned/components/notification/notification.d.ts +1 -1
  545. package/dist-versioned/components/notification/notification.js +5 -5
  546. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  547. package/dist-versioned/components/optgroup/optgroup.js +3 -3
  548. package/dist-versioned/components/option/option.d.ts +1 -1
  549. package/dist-versioned/components/option/option.js +3 -3
  550. package/dist-versioned/components/popup/popup.d.ts +1 -1
  551. package/dist-versioned/components/popup/popup.js +2 -2
  552. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  553. package/dist-versioned/components/quickfact/quickfact.js +4 -4
  554. package/dist-versioned/components/radio/radio.d.ts +1 -1
  555. package/dist-versioned/components/radio/radio.js +2 -2
  556. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  557. package/dist-versioned/components/radio-button/radio-button.js +2 -2
  558. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  559. package/dist-versioned/components/radio-group/radio-group.js +4 -4
  560. package/dist-versioned/components/range/range.d.ts +1 -1
  561. package/dist-versioned/components/range/range.js +2 -2
  562. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  563. package/dist-versioned/components/range-tick/range-tick.js +2 -2
  564. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  565. package/dist-versioned/components/scrollable/scrollable.js +3 -3
  566. package/dist-versioned/components/select/select.d.ts +1 -1
  567. package/dist-versioned/components/select/select.js +5 -5
  568. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  569. package/dist-versioned/components/spinner/spinner.js +2 -2
  570. package/dist-versioned/components/step/step.d.ts +1 -1
  571. package/dist-versioned/components/step/step.js +3 -3
  572. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  573. package/dist-versioned/components/step-group/step-group.js +2 -2
  574. package/dist-versioned/components/switch/switch.d.ts +1 -1
  575. package/dist-versioned/components/switch/switch.js +2 -2
  576. package/dist-versioned/components/tab/tab.d.ts +1 -1
  577. package/dist-versioned/components/tab/tab.js +2 -2
  578. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  579. package/dist-versioned/components/tab-group/tab-group.js +3 -3
  580. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  581. package/dist-versioned/components/tab-panel/tab-panel.js +2 -2
  582. package/dist-versioned/components/tag/tag.d.ts +1 -1
  583. package/dist-versioned/components/tag/tag.js +3 -3
  584. package/dist-versioned/components/teaser/teaser.js +2 -2
  585. package/dist-versioned/components/teaser-media/teaser-media.js +2 -2
  586. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  587. package/dist-versioned/components/textarea/textarea.js +3 -3
  588. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  589. package/dist-versioned/components/tooltip/tooltip.js +4 -4
  590. package/dist-versioned/components/video/video.d.ts +1 -1
  591. package/dist-versioned/components/video/video.js +3 -3
  592. package/dist-versioned/custom-elements.json +238 -238
  593. package/dist-versioned/internal/form.js +3 -3
  594. package/dist-versioned/solid-components.css +2 -2
  595. package/dist-versioned/solid-components.js +61 -61
  596. package/dist-versioned/utilities/autocomplete-config.js +2 -2
  597. package/dist-versioned/vscode.html-custom-data.json +142 -142
  598. package/dist-versioned/web-types.json +269 -269
  599. package/package.json +1 -1
  600. package/cdn/chunks/chunk.IVTNENFE.js +0 -1
  601. package/cdn-versioned/chunks/chunk.IVTNENFE.js +0 -1
@@ -1 +1 @@
1
- import{a as Dt}from"./chunk.26V4EXHB.js";import{a as kt,b as E,d as Et,h as Rt}from"./chunk.4WS6ISBF.js";import{b as Mt,e as Ot}from"./chunk.UWPDCU52.js";import{a as C,b as V,c as dt,e as b}from"./chunk.TJOCV4DC.js";var _=Math.min,T=Math.max,ct=Math.round,ft=Math.floor,F=t=>({x:t,y:t}),de={left:"right",right:"left",bottom:"top",top:"bottom"},me={start:"end",end:"start"};function pt(t,e,n){return T(t,_(e,n))}function Z(t,e){return typeof t=="function"?t(e):t}function q(t){return t.split("-")[0]}function tt(t){return t.split("-")[1]}function Ct(t){return t==="x"?"y":"x"}function gt(t){return t==="y"?"height":"width"}var pe=new Set(["top","bottom"]);function j(t){return pe.has(q(t))?"y":"x"}function wt(t){return Ct(j(t))}function $t(t,e,n){n===void 0&&(n=!1);let i=tt(t),o=wt(t),s=gt(o),r=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=lt(r)),[r,lt(r)]}function Nt(t){let e=lt(t);return[mt(t),e,mt(e)]}function mt(t){return t.replace(/start|end/g,e=>me[e])}var Bt=["left","right"],Ft=["right","left"],ge=["top","bottom"],we=["bottom","top"];function ye(t,e,n){switch(t){case"top":case"bottom":return n?e?Ft:Bt:e?Bt:Ft;case"left":case"right":return e?ge:we;default:return[]}}function Ht(t,e,n,i){let o=tt(t),s=ye(q(t),n==="start",i);return o&&(s=s.map(r=>r+"-"+o),e&&(s=s.concat(s.map(mt)))),s}function lt(t){return t.replace(/left|right|bottom|top/g,e=>de[e])}function xe(t){return C({top:0,right:0,bottom:0,left:0},t)}function Tt(t){return typeof t!="number"?xe(t):{top:t,right:t,bottom:t,left:t}}function et(t){let{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function Wt(t,e,n){let{reference:i,floating:o}=t,s=j(e),r=wt(e),a=gt(r),c=q(e),l=s==="y",f=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,m=i[a]/2-o[a]/2,u;switch(c){case"top":u={x:f,y:i.y-o.height};break;case"bottom":u={x:f,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:h};break;case"left":u={x:i.x-o.width,y:h};break;default:u={x:i.x,y:i.y}}switch(tt(e)){case"start":u[r]-=m*(n&&l?-1:1);break;case"end":u[r]+=m*(n&&l?-1:1);break}return u}var Vt=async(t,e,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=n,a=s.filter(Boolean),c=await(r.isRTL==null?void 0:r.isRTL(e)),l=await r.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:h}=Wt(l,i,c),m=i,u={},d=0;for(let p=0;p<a.length;p++){let{name:w,fn:g}=a[p],{x:y,y:v,data:A,reset:O}=await g({x:f,y:h,initialPlacement:i,placement:m,strategy:o,middlewareData:u,rects:l,platform:r,elements:{reference:t,floating:e}});f=y!=null?y:f,h=v!=null?v:h,u=V(C({},u),{[w]:C(C({},u[w]),A)}),O&&d<=50&&(d++,typeof O=="object"&&(O.placement&&(m=O.placement),O.rects&&(l=O.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:o}):O.rects),{x:f,y:h}=Wt(l,m,c)),p=-1)}return{x:f,y:h,placement:m,strategy:o,middlewareData:u}};async function yt(t,e){var n;e===void 0&&(e={});let{x:i,y:o,platform:s,rects:r,elements:a,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:u=0}=Z(e,t),d=Tt(u),w=a[m?h==="floating"?"reference":"floating":h],g=et(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:c})),y=h==="floating"?{x:i,y:o,width:r.floating.width,height:r.floating.height}:r.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),A=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},O=et(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:c}):y);return{top:(g.top-O.top+d.top)/A.y,bottom:(O.bottom-g.bottom+d.bottom)/A.y,left:(g.left-O.left+d.left)/A.x,right:(O.right-g.right+d.right)/A.x}}var _t=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:o,rects:s,platform:r,elements:a,middlewareData:c}=e,{element:l,padding:f=0}=Z(t,e)||{};if(l==null)return{};let h=Tt(f),m={x:n,y:i},u=wt(o),d=gt(u),p=await r.getDimensions(l),w=u==="y",g=w?"top":"left",y=w?"bottom":"right",v=w?"clientHeight":"clientWidth",A=s.reference[d]+s.reference[u]-m[u]-s.floating[d],O=m[u]-s.reference[u],k=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l)),R=k?k[v]:0;(!R||!await(r.isElement==null?void 0:r.isElement(k)))&&(R=a.floating[v]||s.floating[d]);let I=A/2-O/2,H=R/2-p[d]/2-1,L=_(h[g],H),U=_(h[y],H),W=L,K=R-p[d]-U,S=R/2-p[d]/2+I,D=pt(W,S,K),J=!c.arrow&&tt(o)!=null&&S!==D&&s.reference[d]/2-(S<W?L:U)-p[d]/2<0,Y=J?S<W?S-W:S-K:0;return{[u]:m[u]+Y,data:C({[u]:D,centerOffset:S-D-Y},J&&{alignmentOffset:Y}),reset:J}}});var jt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;let{placement:o,middlewareData:s,rects:r,initialPlacement:a,platform:c,elements:l}=e,S=Z(t,e),{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:p=!0}=S,w=dt(S,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((n=s.arrow)!=null&&n.alignmentOffset)return{};let g=q(o),y=j(a),v=q(a)===a,A=await(c.isRTL==null?void 0:c.isRTL(l.floating)),O=m||(v||!p?[lt(a)]:Nt(a)),k=d!=="none";!m&&k&&O.push(...Ht(a,p,d,A));let R=[a,...O],I=await yt(e,w),H=[],L=((i=s.flip)==null?void 0:i.overflows)||[];if(f&&H.push(I[g]),h){let D=$t(o,r,A);H.push(I[D[0]],I[D[1]])}if(L=[...L,{placement:o,overflows:H}],!H.every(D=>D<=0)){var U,W;let D=(((U=s.flip)==null?void 0:U.index)||0)+1,J=R[D];if(J&&(!(h==="alignment"?y!==j(J):!1)||L.every(B=>B.overflows[0]>0&&j(B.placement)===y)))return{data:{index:D,overflows:L},reset:{placement:J}};let Y=(W=L.filter(Q=>Q.overflows[0]<=0).sort((Q,B)=>Q.overflows[1]-B.overflows[1])[0])==null?void 0:W.placement;if(!Y)switch(u){case"bestFit":{var K;let Q=(K=L.filter(B=>{if(k){let G=j(B.placement);return G===y||G==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(G=>G>0).reduce((G,he)=>G+he,0)]).sort((B,G)=>B[1]-G[1])[0])==null?void 0:K[0];Q&&(Y=Q);break}case"initialPlacement":Y=a;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};var ve=new Set(["left","top"]);async function be(t,e){let{placement:n,platform:i,elements:o}=t,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),r=q(n),a=tt(n),c=j(n)==="y",l=ve.has(r)?-1:1,f=s&&c?-1:1,h=Z(e,t),{mainAxis:m,crossAxis:u,alignmentAxis:d}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof d=="number"&&(u=a==="end"?d*-1:d),c?{x:u*f,y:m*l}:{x:m*l,y:u*f}}var It=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:o,y:s,placement:r,middlewareData:a}=e,c=await be(e,t);return r===((n=a.offset)==null?void 0:n.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:V(C({},c),{placement:r})}}}},Yt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:o}=e,w=Z(t,e),{mainAxis:s=!0,crossAxis:r=!1,limiter:a={fn:g=>{let{x:y,y:v}=g;return{x:y,y:v}}}}=w,c=dt(w,["mainAxis","crossAxis","limiter"]),l={x:n,y:i},f=await yt(e,c),h=j(q(o)),m=Ct(h),u=l[m],d=l[h];if(s){let g=m==="y"?"top":"left",y=m==="y"?"bottom":"right",v=u+f[g],A=u-f[y];u=pt(v,u,A)}if(r){let g=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=d+f[g],A=d-f[y];d=pt(v,d,A)}let p=a.fn(V(C({},e),{[m]:u,[h]:d}));return V(C({},p),{data:{x:p.x-n,y:p.y-i,enabled:{[m]:s,[h]:r}}})}}};var qt=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,i;let{placement:o,rects:s,platform:r,elements:a}=e,L=Z(t,e),{apply:c=()=>{}}=L,l=dt(L,["apply"]),f=await yt(e,l),h=q(o),m=tt(o),u=j(o)==="y",{width:d,height:p}=s.floating,w,g;h==="top"||h==="bottom"?(w=h,g=m===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(g=h,w=m==="end"?"top":"bottom");let y=p-f.top-f.bottom,v=d-f.left-f.right,A=_(p-f[w],y),O=_(d-f[g],v),k=!e.middlewareData.shift,R=A,I=O;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(I=v),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(R=y),k&&!m){let U=T(f.left,0),W=T(f.right,0),K=T(f.top,0),S=T(f.bottom,0);u?I=d-2*(U!==0||W!==0?U+W:T(f.left,f.right)):R=p-2*(K!==0||S!==0?K+S:T(f.top,f.bottom))}await c(V(C({},e),{availableWidth:I,availableHeight:R}));let H=await r.getDimensions(a.floating);return d!==H.width||p!==H.height?{reset:{rects:!0}}:{}}}};function xt(){return typeof window!="undefined"}function nt(t){return Ut(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function $(t){var e;return(e=(Ut(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ut(t){return xt()?t instanceof Node||t instanceof P(t).Node:!1}function z(t){return xt()?t instanceof Element||t instanceof P(t).Element:!1}function N(t){return xt()?t instanceof HTMLElement||t instanceof P(t).HTMLElement:!1}function Xt(t){return!xt()||typeof ShadowRoot=="undefined"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}var Ae=new Set(["inline","contents"]);function st(t){let{overflow:e,overflowX:n,overflowY:i,display:o}=M(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!Ae.has(o)}var Oe=new Set(["table","td","th"]);function Kt(t){return Oe.has(nt(t))}var Ee=[":popover-open",":modal"];function ut(t){return Ee.some(e=>{try{return t.matches(e)}catch(n){return!1}})}var Re=["transform","translate","scale","rotate","perspective"],Ce=["transform","translate","scale","rotate","perspective","filter"],Te=["paint","layout","strict","content"];function vt(t){let e=bt(),n=z(t)?M(t):t;return Re.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Ce.some(i=>(n.willChange||"").includes(i))||Te.some(i=>(n.contain||"").includes(i))}function Gt(t){let e=X(t);for(;N(e)&&!it(e);){if(vt(e))return e;if(ut(e))return null;e=X(e)}return null}function bt(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var Pe=new Set(["html","body","#document"]);function it(t){return Pe.has(nt(t))}function M(t){return P(t).getComputedStyle(t)}function ht(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function X(t){if(nt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Xt(t)&&t.host||$(t);return Xt(e)?e.host:e}function Jt(t){let e=X(t);return it(e)?t.ownerDocument?t.ownerDocument.body:t.body:N(e)&&st(e)?e:Jt(e)}function rt(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);let o=Jt(t),s=o===((i=t.ownerDocument)==null?void 0:i.body),r=P(o);if(s){let a=At(r);return e.concat(r,r.visualViewport||[],st(o)?o:[],a&&n?rt(a):[])}return e.concat(o,rt(o,[],n))}function At(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function te(t){let e=M(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=N(t),s=o?t.offsetWidth:n,r=o?t.offsetHeight:i,a=ct(n)!==s||ct(i)!==r;return a&&(n=s,i=r),{width:n,height:i,$:a}}function St(t){return z(t)?t:t.contextElement}function at(t){let e=St(t);if(!N(e))return F(1);let n=e.getBoundingClientRect(),{width:i,height:o,$:s}=te(e),r=(s?ct(n.width):n.width)/i,a=(s?ct(n.height):n.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}var Se=F(0);function ee(t){let e=P(t);return!bt()||!e.visualViewport?Se:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Le(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==P(t)?!1:e}function ot(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);let o=t.getBoundingClientRect(),s=St(t),r=F(1);e&&(i?z(i)&&(r=at(i)):r=at(t));let a=Le(s,n,i)?ee(s):F(0),c=(o.left+a.x)/r.x,l=(o.top+a.y)/r.y,f=o.width/r.x,h=o.height/r.y;if(s){let m=P(s),u=i&&z(i)?P(i):i,d=m,p=At(d);for(;p&&i&&u!==d;){let w=at(p),g=p.getBoundingClientRect(),y=M(p),v=g.left+(p.clientLeft+parseFloat(y.paddingLeft))*w.x,A=g.top+(p.clientTop+parseFloat(y.paddingTop))*w.y;c*=w.x,l*=w.y,f*=w.x,h*=w.y,c+=v,l+=A,d=P(p),p=At(d)}}return et({width:f,height:h,x:c,y:l})}function Lt(t,e){let n=ht(t).scrollLeft;return e?e.left+n:ot($(t)).left+n}function ne(t,e,n){n===void 0&&(n=!1);let i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:Lt(t,i)),s=i.top+e.scrollTop;return{x:o,y:s}}function ze(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t,s=o==="fixed",r=$(i),a=e?ut(e.floating):!1;if(i===r||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=F(1),f=F(0),h=N(i);if((h||!h&&!s)&&((nt(i)!=="body"||st(r))&&(c=ht(i)),N(i))){let u=ot(i);l=at(i),f.x=u.x+i.clientLeft,f.y=u.y+i.clientTop}let m=r&&!h&&!s?ne(r,c,!0):F(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x+m.x,y:n.y*l.y-c.scrollTop*l.y+f.y+m.y}}function Me(t){return Array.from(t.getClientRects())}function ke(t){let e=$(t),n=ht(t),i=t.ownerDocument.body,o=T(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=T(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),r=-n.scrollLeft+Lt(t),a=-n.scrollTop;return M(i).direction==="rtl"&&(r+=T(e.clientWidth,i.clientWidth)-o),{width:o,height:s,x:r,y:a}}function De(t,e){let n=P(t),i=$(t),o=n.visualViewport,s=i.clientWidth,r=i.clientHeight,a=0,c=0;if(o){s=o.width,r=o.height;let l=bt();(!l||l&&e==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:s,height:r,x:a,y:c}}var Be=new Set(["absolute","fixed"]);function Fe(t,e){let n=ot(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,s=N(t)?at(t):F(1),r=t.clientWidth*s.x,a=t.clientHeight*s.y,c=o*s.x,l=i*s.y;return{width:r,height:a,x:c,y:l}}function Qt(t,e,n){let i;if(e==="viewport")i=De(t,n);else if(e==="document")i=ke($(t));else if(z(e))i=Fe(e,n);else{let o=ee(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return et(i)}function ie(t,e){let n=X(t);return n===e||!z(n)||it(n)?!1:M(n).position==="fixed"||ie(n,e)}function $e(t,e){let n=e.get(t);if(n)return n;let i=rt(t,[],!1).filter(a=>z(a)&&nt(a)!=="body"),o=null,s=M(t).position==="fixed",r=s?X(t):t;for(;z(r)&&!it(r);){let a=M(r),c=vt(r);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&Be.has(o.position)||st(r)&&!c&&ie(t,r))?i=i.filter(f=>f!==r):o=a,r=X(r)}return e.set(t,i),i}function Ne(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t,r=[...n==="clippingAncestors"?ut(e)?[]:$e(e,this._c):[].concat(n),i],a=r[0],c=r.reduce((l,f)=>{let h=Qt(e,f,o);return l.top=T(h.top,l.top),l.right=_(h.right,l.right),l.bottom=_(h.bottom,l.bottom),l.left=T(h.left,l.left),l},Qt(e,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function He(t){let{width:e,height:n}=te(t);return{width:e,height:n}}function We(t,e,n){let i=N(e),o=$(e),s=n==="fixed",r=ot(t,!0,s,e),a={scrollLeft:0,scrollTop:0},c=F(0);function l(){c.x=Lt(o)}if(i||!i&&!s)if((nt(e)!=="body"||st(o))&&(a=ht(e)),i){let u=ot(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else o&&l();s&&!i&&o&&l();let f=o&&!i&&!s?ne(o,a):F(0),h=r.left+a.scrollLeft-c.x-f.x,m=r.top+a.scrollTop-c.y-f.y;return{x:h,y:m,width:r.width,height:r.height}}function Pt(t){return M(t).position==="static"}function Zt(t,e){if(!N(t)||M(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return $(t)===n&&(n=n.ownerDocument.body),n}function oe(t,e){let n=P(t);if(ut(t))return n;if(!N(t)){let o=X(t);for(;o&&!it(o);){if(z(o)&&!Pt(o))return o;o=X(o)}return n}let i=Zt(t,e);for(;i&&Kt(i)&&Pt(i);)i=Zt(i,e);return i&&it(i)&&Pt(i)&&!vt(i)?n:i||Gt(t)||n}var Ve=async function(t){let e=this.getOffsetParent||oe,n=this.getDimensions,i=await n(t.floating);return{reference:We(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function _e(t){return M(t).direction==="rtl"}var je={convertOffsetParentRelativeRectToViewportRelativeRect:ze,getDocumentElement:$,getClippingRect:Ne,getOffsetParent:oe,getElementRects:Ve,getClientRects:Me,getDimensions:He,getScale:at,isElement:z,isRTL:_e};function re(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ie(t,e){let n=null,i,o=$(t);function s(){var a;clearTimeout(i),(a=n)==null||a.disconnect(),n=null}function r(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();let l=t.getBoundingClientRect(),{left:f,top:h,width:m,height:u}=l;if(a||e(),!m||!u)return;let d=ft(h),p=ft(o.clientWidth-(f+m)),w=ft(o.clientHeight-(h+u)),g=ft(f),v={rootMargin:-d+"px "+-p+"px "+-w+"px "+-g+"px",threshold:T(0,_(1,c))||1},A=!0;function O(k){let R=k[0].intersectionRatio;if(R!==c){if(!A)return r();R?r(!1,R):i=setTimeout(()=>{r(!1,1e-7)},1e3)}R===1&&!re(l,t.getBoundingClientRect())&&r(),A=!1}try{n=new IntersectionObserver(O,V(C({},v),{root:o.ownerDocument}))}catch(k){n=new IntersectionObserver(O,v)}n.observe(t)}return r(!0),s}function se(t,e,n,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=i,l=St(t),f=o||s?[...l?rt(l):[],...rt(e)]:[];f.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),s&&g.addEventListener("resize",n)});let h=l&&a?Ie(l,n):null,m=-1,u=null;r&&(u=new ResizeObserver(g=>{let[y]=g;y&&y.target===l&&u&&(u.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var v;(v=u)==null||v.observe(e)})),n()}),l&&!c&&u.observe(l),u.observe(e));let d,p=c?ot(t):null;c&&w();function w(){let g=ot(t);p&&!re(p,g)&&n(),p=g,d=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),h==null||h(),(g=u)==null||g.disconnect(),u=null,c&&cancelAnimationFrame(d)}}var ae=It;var le=Yt,ce=jt,zt=qt;var fe=_t;var ue=(t,e,n)=>{let i=new Map,o=C({platform:je},n),s=V(C({},o.platform),{_c:i});return Vt(t,e,V(C({},o),{platform:s}))};var x=class extends Rt{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="absolute";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start(),this.setupMutationObserver()}disconnectedCallback(){this.stop(),this.mutationObserver&&this.mutationObserver.disconnect()}async updated(n){super.updated(n),n.has("active")&&(this.active?this.start():this.stop()),n.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}setupMutationObserver(){this.mutationObserver=new MutationObserver(i=>this.handleCurrentPlacementChange(i));let n={attributes:!0};this.mutationObserver.observe(this,n)}handleCurrentPlacementChange(n){return n.forEach(i=>{if(i.attributeName==="data-current-placement"){let o=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:o})}})}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let n=this.getRootNode();this.anchorEl=n.getElementById(this.anchor)}else this.anchor instanceof HTMLElement?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=se(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(n=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>n())):n()})}reposition(){if(!this.active||!this.anchorEl)return;let n=[ae({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?n.push(zt({apply:({rects:i})=>{let o=this.sync==="width"||this.sync==="both",s=this.sync==="height"||this.sync==="both";this.popup.style.width=o?`${i.reference.width}px`:"",this.popup.style.height=s?`${i.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&n.push(ce({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&n.push(le({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?n.push(zt({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:i,availableHeight:o})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${o}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${i}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&n.push(fe({element:this.arrowEl,padding:this.arrowPadding})),ue(this.anchorEl,this.popup,{placement:this.placement,middleware:n,strategy:this.strategy}).then(({x:i,y:o,middlewareData:s,placement:r})=>{let a=getComputedStyle(this).direction==="rtl",c={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]];if(this.setAttribute("data-current-placement",r),Object.assign(this.popup.style,{left:`${i}px`,top:`${o}px`}),this.arrow){let l=s.arrow.x,f=s.arrow.y,h="",m="",u="",d="";if(this.arrowPlacement==="start"){let p=typeof l=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";h=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",m=a?p:"",d=a?"":p}else if(this.arrowPlacement==="end"){let p=typeof l=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";m=a?"":p,d=a?p:"",u=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(d=typeof l=="number"?"calc(50% - var(--arrow-size-diagonal))":"",h=typeof f=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(d=typeof l=="number"?`${l}px`:"",h=typeof f=="number"?`${f}px`:"");Object.assign(this.arrowEl.style,{top:h,right:m,bottom:u,left:d,[c]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sd-reposition")}render(){return Ot`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${Dt("isolate",this.strategy!=="fixed"?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?Ot`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};x.styles=[...Rt.styles,Mt`:host{--arrow-color:var(--sd-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size)*0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}[part=popup]{max-height:var(--auto-size-available-height,none);max-width:var(--auto-size-available-width,none)}[part=arrow]{background:var(--arrow-color);height:calc(var(--arrow-size-diagonal)*2);width:calc(var(--arrow-size-diagonal)*2)}`],b([Et('[part="popup"]')],x.prototype,"popup",2),b([Et('[part="arrow"]')],x.prototype,"arrowEl",2),b([E({reflect:!0})],x.prototype,"anchor",2),b([E({type:Boolean,reflect:!0})],x.prototype,"active",2),b([E({type:String,reflect:!0})],x.prototype,"placement",2),b([E({type:String,reflect:!0})],x.prototype,"strategy",2),b([E({type:Number,reflect:!0})],x.prototype,"distance",2),b([E({type:Number,reflect:!0})],x.prototype,"skidding",2),b([E({type:Boolean,reflect:!0})],x.prototype,"arrow",2),b([E({type:String,attribute:"arrow-placement",reflect:!0})],x.prototype,"arrowPlacement",2),b([E({attribute:"arrow-padding",type:Number,reflect:!0})],x.prototype,"arrowPadding",2),b([E({type:Boolean,reflect:!0})],x.prototype,"flip",2),b([E({attribute:"flip-fallback-placements",converter:{fromAttribute:n=>n.split(" ").map(i=>i.trim()).filter(i=>i!==""),toAttribute:n=>n.join(" ")}})],x.prototype,"flipFallbackPlacements",2),b([E({type:String,attribute:"flip-fallback-strategy"})],x.prototype,"flipFallbackStrategy",2),b([E({type:Object})],x.prototype,"flipBoundary",2),b([E({attribute:"flip-padding",type:Number})],x.prototype,"flipPadding",2),b([E({type:Boolean})],x.prototype,"shift",2),b([E({type:Object})],x.prototype,"shiftBoundary",2),b([E({attribute:"shift-padding",type:Number})],x.prototype,"shiftPadding",2),b([E({type:String,attribute:"auto-size"})],x.prototype,"autoSize",2),b([E()],x.prototype,"sync",2),b([E({type:Object})],x.prototype,"autoSizeBoundary",2),b([E({attribute:"auto-size-padding",type:Number})],x.prototype,"autoSizePadding",2),x=b([kt("sd-popup")],x);export{x as a};
1
+ import{a as Dt}from"./chunk.26V4EXHB.js";import{a as kt,b as E,d as Et,h as Rt}from"./chunk.2A5OJMTM.js";import{b as Mt,e as Ot}from"./chunk.UWPDCU52.js";import{a as C,b as V,c as dt,e as b}from"./chunk.TJOCV4DC.js";var _=Math.min,T=Math.max,ct=Math.round,ft=Math.floor,F=t=>({x:t,y:t}),de={left:"right",right:"left",bottom:"top",top:"bottom"},me={start:"end",end:"start"};function pt(t,e,n){return T(t,_(e,n))}function Z(t,e){return typeof t=="function"?t(e):t}function q(t){return t.split("-")[0]}function tt(t){return t.split("-")[1]}function Ct(t){return t==="x"?"y":"x"}function gt(t){return t==="y"?"height":"width"}var pe=new Set(["top","bottom"]);function j(t){return pe.has(q(t))?"y":"x"}function wt(t){return Ct(j(t))}function $t(t,e,n){n===void 0&&(n=!1);let i=tt(t),o=wt(t),s=gt(o),r=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=lt(r)),[r,lt(r)]}function Nt(t){let e=lt(t);return[mt(t),e,mt(e)]}function mt(t){return t.replace(/start|end/g,e=>me[e])}var Bt=["left","right"],Ft=["right","left"],ge=["top","bottom"],we=["bottom","top"];function ye(t,e,n){switch(t){case"top":case"bottom":return n?e?Ft:Bt:e?Bt:Ft;case"left":case"right":return e?ge:we;default:return[]}}function Ht(t,e,n,i){let o=tt(t),s=ye(q(t),n==="start",i);return o&&(s=s.map(r=>r+"-"+o),e&&(s=s.concat(s.map(mt)))),s}function lt(t){return t.replace(/left|right|bottom|top/g,e=>de[e])}function xe(t){return C({top:0,right:0,bottom:0,left:0},t)}function Tt(t){return typeof t!="number"?xe(t):{top:t,right:t,bottom:t,left:t}}function et(t){let{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function Wt(t,e,n){let{reference:i,floating:o}=t,s=j(e),r=wt(e),a=gt(r),c=q(e),l=s==="y",f=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,m=i[a]/2-o[a]/2,u;switch(c){case"top":u={x:f,y:i.y-o.height};break;case"bottom":u={x:f,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:h};break;case"left":u={x:i.x-o.width,y:h};break;default:u={x:i.x,y:i.y}}switch(tt(e)){case"start":u[r]-=m*(n&&l?-1:1);break;case"end":u[r]+=m*(n&&l?-1:1);break}return u}var Vt=async(t,e,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=n,a=s.filter(Boolean),c=await(r.isRTL==null?void 0:r.isRTL(e)),l=await r.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:h}=Wt(l,i,c),m=i,u={},d=0;for(let p=0;p<a.length;p++){let{name:w,fn:g}=a[p],{x:y,y:v,data:A,reset:O}=await g({x:f,y:h,initialPlacement:i,placement:m,strategy:o,middlewareData:u,rects:l,platform:r,elements:{reference:t,floating:e}});f=y!=null?y:f,h=v!=null?v:h,u=V(C({},u),{[w]:C(C({},u[w]),A)}),O&&d<=50&&(d++,typeof O=="object"&&(O.placement&&(m=O.placement),O.rects&&(l=O.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:o}):O.rects),{x:f,y:h}=Wt(l,m,c)),p=-1)}return{x:f,y:h,placement:m,strategy:o,middlewareData:u}};async function yt(t,e){var n;e===void 0&&(e={});let{x:i,y:o,platform:s,rects:r,elements:a,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:u=0}=Z(e,t),d=Tt(u),w=a[m?h==="floating"?"reference":"floating":h],g=et(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:c})),y=h==="floating"?{x:i,y:o,width:r.floating.width,height:r.floating.height}:r.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),A=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},O=et(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:c}):y);return{top:(g.top-O.top+d.top)/A.y,bottom:(O.bottom-g.bottom+d.bottom)/A.y,left:(g.left-O.left+d.left)/A.x,right:(O.right-g.right+d.right)/A.x}}var _t=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:o,rects:s,platform:r,elements:a,middlewareData:c}=e,{element:l,padding:f=0}=Z(t,e)||{};if(l==null)return{};let h=Tt(f),m={x:n,y:i},u=wt(o),d=gt(u),p=await r.getDimensions(l),w=u==="y",g=w?"top":"left",y=w?"bottom":"right",v=w?"clientHeight":"clientWidth",A=s.reference[d]+s.reference[u]-m[u]-s.floating[d],O=m[u]-s.reference[u],k=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l)),R=k?k[v]:0;(!R||!await(r.isElement==null?void 0:r.isElement(k)))&&(R=a.floating[v]||s.floating[d]);let I=A/2-O/2,H=R/2-p[d]/2-1,L=_(h[g],H),U=_(h[y],H),W=L,K=R-p[d]-U,S=R/2-p[d]/2+I,D=pt(W,S,K),J=!c.arrow&&tt(o)!=null&&S!==D&&s.reference[d]/2-(S<W?L:U)-p[d]/2<0,Y=J?S<W?S-W:S-K:0;return{[u]:m[u]+Y,data:C({[u]:D,centerOffset:S-D-Y},J&&{alignmentOffset:Y}),reset:J}}});var jt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;let{placement:o,middlewareData:s,rects:r,initialPlacement:a,platform:c,elements:l}=e,S=Z(t,e),{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:p=!0}=S,w=dt(S,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((n=s.arrow)!=null&&n.alignmentOffset)return{};let g=q(o),y=j(a),v=q(a)===a,A=await(c.isRTL==null?void 0:c.isRTL(l.floating)),O=m||(v||!p?[lt(a)]:Nt(a)),k=d!=="none";!m&&k&&O.push(...Ht(a,p,d,A));let R=[a,...O],I=await yt(e,w),H=[],L=((i=s.flip)==null?void 0:i.overflows)||[];if(f&&H.push(I[g]),h){let D=$t(o,r,A);H.push(I[D[0]],I[D[1]])}if(L=[...L,{placement:o,overflows:H}],!H.every(D=>D<=0)){var U,W;let D=(((U=s.flip)==null?void 0:U.index)||0)+1,J=R[D];if(J&&(!(h==="alignment"?y!==j(J):!1)||L.every(B=>B.overflows[0]>0&&j(B.placement)===y)))return{data:{index:D,overflows:L},reset:{placement:J}};let Y=(W=L.filter(Q=>Q.overflows[0]<=0).sort((Q,B)=>Q.overflows[1]-B.overflows[1])[0])==null?void 0:W.placement;if(!Y)switch(u){case"bestFit":{var K;let Q=(K=L.filter(B=>{if(k){let G=j(B.placement);return G===y||G==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(G=>G>0).reduce((G,he)=>G+he,0)]).sort((B,G)=>B[1]-G[1])[0])==null?void 0:K[0];Q&&(Y=Q);break}case"initialPlacement":Y=a;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};var ve=new Set(["left","top"]);async function be(t,e){let{placement:n,platform:i,elements:o}=t,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),r=q(n),a=tt(n),c=j(n)==="y",l=ve.has(r)?-1:1,f=s&&c?-1:1,h=Z(e,t),{mainAxis:m,crossAxis:u,alignmentAxis:d}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof d=="number"&&(u=a==="end"?d*-1:d),c?{x:u*f,y:m*l}:{x:m*l,y:u*f}}var It=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:o,y:s,placement:r,middlewareData:a}=e,c=await be(e,t);return r===((n=a.offset)==null?void 0:n.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:V(C({},c),{placement:r})}}}},Yt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:o}=e,w=Z(t,e),{mainAxis:s=!0,crossAxis:r=!1,limiter:a={fn:g=>{let{x:y,y:v}=g;return{x:y,y:v}}}}=w,c=dt(w,["mainAxis","crossAxis","limiter"]),l={x:n,y:i},f=await yt(e,c),h=j(q(o)),m=Ct(h),u=l[m],d=l[h];if(s){let g=m==="y"?"top":"left",y=m==="y"?"bottom":"right",v=u+f[g],A=u-f[y];u=pt(v,u,A)}if(r){let g=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=d+f[g],A=d-f[y];d=pt(v,d,A)}let p=a.fn(V(C({},e),{[m]:u,[h]:d}));return V(C({},p),{data:{x:p.x-n,y:p.y-i,enabled:{[m]:s,[h]:r}}})}}};var qt=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,i;let{placement:o,rects:s,platform:r,elements:a}=e,L=Z(t,e),{apply:c=()=>{}}=L,l=dt(L,["apply"]),f=await yt(e,l),h=q(o),m=tt(o),u=j(o)==="y",{width:d,height:p}=s.floating,w,g;h==="top"||h==="bottom"?(w=h,g=m===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(g=h,w=m==="end"?"top":"bottom");let y=p-f.top-f.bottom,v=d-f.left-f.right,A=_(p-f[w],y),O=_(d-f[g],v),k=!e.middlewareData.shift,R=A,I=O;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(I=v),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(R=y),k&&!m){let U=T(f.left,0),W=T(f.right,0),K=T(f.top,0),S=T(f.bottom,0);u?I=d-2*(U!==0||W!==0?U+W:T(f.left,f.right)):R=p-2*(K!==0||S!==0?K+S:T(f.top,f.bottom))}await c(V(C({},e),{availableWidth:I,availableHeight:R}));let H=await r.getDimensions(a.floating);return d!==H.width||p!==H.height?{reset:{rects:!0}}:{}}}};function xt(){return typeof window!="undefined"}function nt(t){return Ut(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function $(t){var e;return(e=(Ut(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ut(t){return xt()?t instanceof Node||t instanceof P(t).Node:!1}function z(t){return xt()?t instanceof Element||t instanceof P(t).Element:!1}function N(t){return xt()?t instanceof HTMLElement||t instanceof P(t).HTMLElement:!1}function Xt(t){return!xt()||typeof ShadowRoot=="undefined"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}var Ae=new Set(["inline","contents"]);function st(t){let{overflow:e,overflowX:n,overflowY:i,display:o}=M(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!Ae.has(o)}var Oe=new Set(["table","td","th"]);function Kt(t){return Oe.has(nt(t))}var Ee=[":popover-open",":modal"];function ut(t){return Ee.some(e=>{try{return t.matches(e)}catch(n){return!1}})}var Re=["transform","translate","scale","rotate","perspective"],Ce=["transform","translate","scale","rotate","perspective","filter"],Te=["paint","layout","strict","content"];function vt(t){let e=bt(),n=z(t)?M(t):t;return Re.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Ce.some(i=>(n.willChange||"").includes(i))||Te.some(i=>(n.contain||"").includes(i))}function Gt(t){let e=X(t);for(;N(e)&&!it(e);){if(vt(e))return e;if(ut(e))return null;e=X(e)}return null}function bt(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var Pe=new Set(["html","body","#document"]);function it(t){return Pe.has(nt(t))}function M(t){return P(t).getComputedStyle(t)}function ht(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function X(t){if(nt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Xt(t)&&t.host||$(t);return Xt(e)?e.host:e}function Jt(t){let e=X(t);return it(e)?t.ownerDocument?t.ownerDocument.body:t.body:N(e)&&st(e)?e:Jt(e)}function rt(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);let o=Jt(t),s=o===((i=t.ownerDocument)==null?void 0:i.body),r=P(o);if(s){let a=At(r);return e.concat(r,r.visualViewport||[],st(o)?o:[],a&&n?rt(a):[])}return e.concat(o,rt(o,[],n))}function At(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function te(t){let e=M(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=N(t),s=o?t.offsetWidth:n,r=o?t.offsetHeight:i,a=ct(n)!==s||ct(i)!==r;return a&&(n=s,i=r),{width:n,height:i,$:a}}function St(t){return z(t)?t:t.contextElement}function at(t){let e=St(t);if(!N(e))return F(1);let n=e.getBoundingClientRect(),{width:i,height:o,$:s}=te(e),r=(s?ct(n.width):n.width)/i,a=(s?ct(n.height):n.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}var Se=F(0);function ee(t){let e=P(t);return!bt()||!e.visualViewport?Se:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Le(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==P(t)?!1:e}function ot(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);let o=t.getBoundingClientRect(),s=St(t),r=F(1);e&&(i?z(i)&&(r=at(i)):r=at(t));let a=Le(s,n,i)?ee(s):F(0),c=(o.left+a.x)/r.x,l=(o.top+a.y)/r.y,f=o.width/r.x,h=o.height/r.y;if(s){let m=P(s),u=i&&z(i)?P(i):i,d=m,p=At(d);for(;p&&i&&u!==d;){let w=at(p),g=p.getBoundingClientRect(),y=M(p),v=g.left+(p.clientLeft+parseFloat(y.paddingLeft))*w.x,A=g.top+(p.clientTop+parseFloat(y.paddingTop))*w.y;c*=w.x,l*=w.y,f*=w.x,h*=w.y,c+=v,l+=A,d=P(p),p=At(d)}}return et({width:f,height:h,x:c,y:l})}function Lt(t,e){let n=ht(t).scrollLeft;return e?e.left+n:ot($(t)).left+n}function ne(t,e,n){n===void 0&&(n=!1);let i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:Lt(t,i)),s=i.top+e.scrollTop;return{x:o,y:s}}function ze(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t,s=o==="fixed",r=$(i),a=e?ut(e.floating):!1;if(i===r||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=F(1),f=F(0),h=N(i);if((h||!h&&!s)&&((nt(i)!=="body"||st(r))&&(c=ht(i)),N(i))){let u=ot(i);l=at(i),f.x=u.x+i.clientLeft,f.y=u.y+i.clientTop}let m=r&&!h&&!s?ne(r,c,!0):F(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x+m.x,y:n.y*l.y-c.scrollTop*l.y+f.y+m.y}}function Me(t){return Array.from(t.getClientRects())}function ke(t){let e=$(t),n=ht(t),i=t.ownerDocument.body,o=T(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=T(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),r=-n.scrollLeft+Lt(t),a=-n.scrollTop;return M(i).direction==="rtl"&&(r+=T(e.clientWidth,i.clientWidth)-o),{width:o,height:s,x:r,y:a}}function De(t,e){let n=P(t),i=$(t),o=n.visualViewport,s=i.clientWidth,r=i.clientHeight,a=0,c=0;if(o){s=o.width,r=o.height;let l=bt();(!l||l&&e==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:s,height:r,x:a,y:c}}var Be=new Set(["absolute","fixed"]);function Fe(t,e){let n=ot(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,s=N(t)?at(t):F(1),r=t.clientWidth*s.x,a=t.clientHeight*s.y,c=o*s.x,l=i*s.y;return{width:r,height:a,x:c,y:l}}function Qt(t,e,n){let i;if(e==="viewport")i=De(t,n);else if(e==="document")i=ke($(t));else if(z(e))i=Fe(e,n);else{let o=ee(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return et(i)}function ie(t,e){let n=X(t);return n===e||!z(n)||it(n)?!1:M(n).position==="fixed"||ie(n,e)}function $e(t,e){let n=e.get(t);if(n)return n;let i=rt(t,[],!1).filter(a=>z(a)&&nt(a)!=="body"),o=null,s=M(t).position==="fixed",r=s?X(t):t;for(;z(r)&&!it(r);){let a=M(r),c=vt(r);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&Be.has(o.position)||st(r)&&!c&&ie(t,r))?i=i.filter(f=>f!==r):o=a,r=X(r)}return e.set(t,i),i}function Ne(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t,r=[...n==="clippingAncestors"?ut(e)?[]:$e(e,this._c):[].concat(n),i],a=r[0],c=r.reduce((l,f)=>{let h=Qt(e,f,o);return l.top=T(h.top,l.top),l.right=_(h.right,l.right),l.bottom=_(h.bottom,l.bottom),l.left=T(h.left,l.left),l},Qt(e,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function He(t){let{width:e,height:n}=te(t);return{width:e,height:n}}function We(t,e,n){let i=N(e),o=$(e),s=n==="fixed",r=ot(t,!0,s,e),a={scrollLeft:0,scrollTop:0},c=F(0);function l(){c.x=Lt(o)}if(i||!i&&!s)if((nt(e)!=="body"||st(o))&&(a=ht(e)),i){let u=ot(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else o&&l();s&&!i&&o&&l();let f=o&&!i&&!s?ne(o,a):F(0),h=r.left+a.scrollLeft-c.x-f.x,m=r.top+a.scrollTop-c.y-f.y;return{x:h,y:m,width:r.width,height:r.height}}function Pt(t){return M(t).position==="static"}function Zt(t,e){if(!N(t)||M(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return $(t)===n&&(n=n.ownerDocument.body),n}function oe(t,e){let n=P(t);if(ut(t))return n;if(!N(t)){let o=X(t);for(;o&&!it(o);){if(z(o)&&!Pt(o))return o;o=X(o)}return n}let i=Zt(t,e);for(;i&&Kt(i)&&Pt(i);)i=Zt(i,e);return i&&it(i)&&Pt(i)&&!vt(i)?n:i||Gt(t)||n}var Ve=async function(t){let e=this.getOffsetParent||oe,n=this.getDimensions,i=await n(t.floating);return{reference:We(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function _e(t){return M(t).direction==="rtl"}var je={convertOffsetParentRelativeRectToViewportRelativeRect:ze,getDocumentElement:$,getClippingRect:Ne,getOffsetParent:oe,getElementRects:Ve,getClientRects:Me,getDimensions:He,getScale:at,isElement:z,isRTL:_e};function re(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ie(t,e){let n=null,i,o=$(t);function s(){var a;clearTimeout(i),(a=n)==null||a.disconnect(),n=null}function r(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();let l=t.getBoundingClientRect(),{left:f,top:h,width:m,height:u}=l;if(a||e(),!m||!u)return;let d=ft(h),p=ft(o.clientWidth-(f+m)),w=ft(o.clientHeight-(h+u)),g=ft(f),v={rootMargin:-d+"px "+-p+"px "+-w+"px "+-g+"px",threshold:T(0,_(1,c))||1},A=!0;function O(k){let R=k[0].intersectionRatio;if(R!==c){if(!A)return r();R?r(!1,R):i=setTimeout(()=>{r(!1,1e-7)},1e3)}R===1&&!re(l,t.getBoundingClientRect())&&r(),A=!1}try{n=new IntersectionObserver(O,V(C({},v),{root:o.ownerDocument}))}catch(k){n=new IntersectionObserver(O,v)}n.observe(t)}return r(!0),s}function se(t,e,n,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=i,l=St(t),f=o||s?[...l?rt(l):[],...rt(e)]:[];f.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),s&&g.addEventListener("resize",n)});let h=l&&a?Ie(l,n):null,m=-1,u=null;r&&(u=new ResizeObserver(g=>{let[y]=g;y&&y.target===l&&u&&(u.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var v;(v=u)==null||v.observe(e)})),n()}),l&&!c&&u.observe(l),u.observe(e));let d,p=c?ot(t):null;c&&w();function w(){let g=ot(t);p&&!re(p,g)&&n(),p=g,d=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),h==null||h(),(g=u)==null||g.disconnect(),u=null,c&&cancelAnimationFrame(d)}}var ae=It;var le=Yt,ce=jt,zt=qt;var fe=_t;var ue=(t,e,n)=>{let i=new Map,o=C({platform:je},n),s=V(C({},o.platform),{_c:i});return Vt(t,e,V(C({},o),{platform:s}))};var x=class extends Rt{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="absolute";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start(),this.setupMutationObserver()}disconnectedCallback(){this.stop(),this.mutationObserver&&this.mutationObserver.disconnect()}async updated(n){super.updated(n),n.has("active")&&(this.active?this.start():this.stop()),n.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}setupMutationObserver(){this.mutationObserver=new MutationObserver(i=>this.handleCurrentPlacementChange(i));let n={attributes:!0};this.mutationObserver.observe(this,n)}handleCurrentPlacementChange(n){return n.forEach(i=>{if(i.attributeName==="data-current-placement"){let o=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:o})}})}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let n=this.getRootNode();this.anchorEl=n.getElementById(this.anchor)}else this.anchor instanceof HTMLElement?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=se(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(n=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>n())):n()})}reposition(){if(!this.active||!this.anchorEl)return;let n=[ae({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?n.push(zt({apply:({rects:i})=>{let o=this.sync==="width"||this.sync==="both",s=this.sync==="height"||this.sync==="both";this.popup.style.width=o?`${i.reference.width}px`:"",this.popup.style.height=s?`${i.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&n.push(ce({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&n.push(le({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?n.push(zt({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:i,availableHeight:o})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${o}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${i}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&n.push(fe({element:this.arrowEl,padding:this.arrowPadding})),ue(this.anchorEl,this.popup,{placement:this.placement,middleware:n,strategy:this.strategy}).then(({x:i,y:o,middlewareData:s,placement:r})=>{let a=getComputedStyle(this).direction==="rtl",c={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]];if(this.setAttribute("data-current-placement",r),Object.assign(this.popup.style,{left:`${i}px`,top:`${o}px`}),this.arrow){let l=s.arrow.x,f=s.arrow.y,h="",m="",u="",d="";if(this.arrowPlacement==="start"){let p=typeof l=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";h=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",m=a?p:"",d=a?"":p}else if(this.arrowPlacement==="end"){let p=typeof l=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";m=a?"":p,d=a?p:"",u=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(d=typeof l=="number"?"calc(50% - var(--arrow-size-diagonal))":"",h=typeof f=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(d=typeof l=="number"?`${l}px`:"",h=typeof f=="number"?`${f}px`:"");Object.assign(this.arrowEl.style,{top:h,right:m,bottom:u,left:d,[c]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sd-reposition")}render(){return Ot`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${Dt("isolate",this.strategy!=="fixed"?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?Ot`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};x.styles=[...Rt.styles,Mt`:host{--arrow-color:var(--sd-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size)*0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}[part=popup]{max-height:var(--auto-size-available-height,none);max-width:var(--auto-size-available-width,none)}[part=arrow]{background:var(--arrow-color);height:calc(var(--arrow-size-diagonal)*2);width:calc(var(--arrow-size-diagonal)*2)}`],b([Et('[part="popup"]')],x.prototype,"popup",2),b([Et('[part="arrow"]')],x.prototype,"arrowEl",2),b([E({reflect:!0})],x.prototype,"anchor",2),b([E({type:Boolean,reflect:!0})],x.prototype,"active",2),b([E({type:String,reflect:!0})],x.prototype,"placement",2),b([E({type:String,reflect:!0})],x.prototype,"strategy",2),b([E({type:Number,reflect:!0})],x.prototype,"distance",2),b([E({type:Number,reflect:!0})],x.prototype,"skidding",2),b([E({type:Boolean,reflect:!0})],x.prototype,"arrow",2),b([E({type:String,attribute:"arrow-placement",reflect:!0})],x.prototype,"arrowPlacement",2),b([E({attribute:"arrow-padding",type:Number,reflect:!0})],x.prototype,"arrowPadding",2),b([E({type:Boolean,reflect:!0})],x.prototype,"flip",2),b([E({attribute:"flip-fallback-placements",converter:{fromAttribute:n=>n.split(" ").map(i=>i.trim()).filter(i=>i!==""),toAttribute:n=>n.join(" ")}})],x.prototype,"flipFallbackPlacements",2),b([E({type:String,attribute:"flip-fallback-strategy"})],x.prototype,"flipFallbackStrategy",2),b([E({type:Object})],x.prototype,"flipBoundary",2),b([E({attribute:"flip-padding",type:Number})],x.prototype,"flipPadding",2),b([E({type:Boolean})],x.prototype,"shift",2),b([E({type:Object})],x.prototype,"shiftBoundary",2),b([E({attribute:"shift-padding",type:Number})],x.prototype,"shiftPadding",2),b([E({type:String,attribute:"auto-size"})],x.prototype,"autoSize",2),b([E()],x.prototype,"sync",2),b([E({type:Object})],x.prototype,"autoSizeBoundary",2),b([E({attribute:"auto-size-padding",type:Number})],x.prototype,"autoSizePadding",2),x=b([kt("sd-popup")],x);export{x as a};
@@ -0,0 +1 @@
1
+ import{a as y}from"./chunk.CGQ2BPPZ.js";import{a as n}from"./chunk.YTG5BN3U.js";import{a as h,b as i}from"./chunk.H2TKMIFR.js";import{a as l}from"./chunk.26V4EXHB.js";import{a as b}from"./chunk.DEXOQON7.js";import{a as w,b as r,d as u,h as f}from"./chunk.2A5OJMTM.js";import{b as m}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends f{constructor(){super(...arguments);this.hasSlotController=new y(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")}get isIconOnly(){if(!this.defaultSlot)return!1;let a=this.defaultSlot.assignedNodes({flatten:!0});return a.length>0&&a.every(s=>{var d;return s.nodeType===Node.TEXT_NODE?!((d=s.textContent)!=null&&d.trim()):s.nodeType===Node.ELEMENT_NODE?s.tagName.toLowerCase()==="sd-icon":!1})}handleClickButton(a){this.disabled&&(a.preventDefault(),a.stopPropagation())}handleClickSummary(a){a.preventDefault(),a.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?h`summary`:this.separated?h`div`:this.isLink?h`a`:h`button`}render(){let a=this.tag,s=this.isLink,d=this.isButton,o=this.isAccordion,v=this.isIconOnly,c={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`<${a} part="base" class="${l("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]",!this.separated&&(v&&!this.vertical?"p-3":"px-4"),v&&!this.vertical&&"justify-center aspect-square w-12")}" aria-current="${n(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${n(d?this.disabled:void 0)}" href="${n(s?this.href:void 0)}" target="${n(s?this.target:void 0)}" download="${n(s?this.download:void 0)}" rel="${n(s&&this.target?"noreferrer noopener":void 0)}" role="${s?"link":"button"}" tabindex="${this.disabled||this.separated?"-1":"0"}" @click="${this.separated?void 0:o?this.handleClickSummary:d?this.handleClickButton:void 0}"><div part="current-indicator" class="${l("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="${l("relative inline-flex justify-between items-center",o?"grow":"w-full",c.description&&"pt-3",c.description||this.separated?"pb-1":x,this.calculatePaddingX)}">${this.divider&&this.vertical?i`<sd-divider part="divider" class="${l("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-divider>`:""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated?i`<a class="${l("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]",!c.description&&"py-4")}" href="${n(s?this.href:void 0)}" target="${n(s?this.target:void 0)}" download="${n(s?this.download:void 0)}"><slot part="content" class="inline-flex"></slot></a>`:i`<slot part="content" class="inline-flex"></slot>`} </span>${(this.chevron||c.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-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${l("m-4 h-6 w-6 transition-all",o||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon></button>`:i`<sd-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${l("h-6 w-6 ml-2 transition-all",o?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${c.description&&this.vertical?i`<slot name="description" part="description" class="${l("inline-block text-sm text-left text-black pb-3",o||this.separated?"grow":"w-full",this.separated?"px-4":this.calculatePaddingX)}"></slot>`:""}</${a}>`;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=[...f.styles,m`: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([u('a[part="base"], button[part="base"]')],t.prototype,"button",2),e([u("slot:not([name])")],t.prototype,"defaultSlot",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([w("sd-navigation-item")],t);export{t as a};
@@ -1 +1 @@
1
- import{b as y}from"./chunk.N2OPZHJV.js";import{a as u,b as f,c as a}from"./chunk.H2TFK3FW.js";import{a as v}from"./chunk.TWZDCIM2.js";import{a as h}from"./chunk.E2DRD2OX.js";import{a as p,b as s,c as d,h as c}from"./chunk.4WS6ISBF.js";import{b as g,e as b}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var n,t=class extends c{constructor(){super(...arguments);this.svg="";this.label="";this.library="default";this.color="currentColor"}connectedCallback(){super.connectedCallback(),u(this)}firstUpdated(){this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),f(this)}getUrl(){let r=a(this.library);return this.name&&r?r.resolver(this.name):this.src}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var m;let r=a(this.library),i=this.getUrl();if(n||(n=new DOMParser),i)try{let l=await v(i);if(i===this.getUrl())if(l.ok){let o=n.parseFromString(l.svg,"text/html").body.querySelector("svg");o!==null?((m=r==null?void 0:r.mutator)==null||m.call(r,o),this.svg=o.outerHTML,this.emit("sd-load")):(this.svg="",this.emit("sd-error"))}else this.svg="",this.emit("sd-error")}catch(l){this.emit("sd-error")}else this.svg.length>0&&(this.svg="")}render(){return b`${y(this.svg)}`}};t.styles=[...c.styles,g`:host{box-sizing:content-box!important;display:inline-block;height:1em;width:1em}svg{display:block;height:100%;width:100%}:host([color=primary]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1))}:host([color=white]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}`],e([d()],t.prototype,"svg",2),e([s({reflect:!0})],t.prototype,"name",2),e([s()],t.prototype,"src",2),e([s()],t.prototype,"label",2),e([s({reflect:!0})],t.prototype,"library",2),e([s({reflect:!0})],t.prototype,"color",2),e([h("label")],t.prototype,"handleLabelChange",1),e([h(["name","src","library"])],t.prototype,"setIcon",1),t=e([p("sd-icon")],t);export{t as a};
1
+ import{b as y}from"./chunk.N2OPZHJV.js";import{a as u,b as f,c as a}from"./chunk.H2TFK3FW.js";import{a as v}from"./chunk.TWZDCIM2.js";import{a as h}from"./chunk.E2DRD2OX.js";import{a as p,b as s,c as d,h as c}from"./chunk.2A5OJMTM.js";import{b as g,e as b}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var n,t=class extends c{constructor(){super(...arguments);this.svg="";this.label="";this.library="default";this.color="currentColor"}connectedCallback(){super.connectedCallback(),u(this)}firstUpdated(){this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),f(this)}getUrl(){let r=a(this.library);return this.name&&r?r.resolver(this.name):this.src}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var m;let r=a(this.library),i=this.getUrl();if(n||(n=new DOMParser),i)try{let l=await v(i);if(i===this.getUrl())if(l.ok){let o=n.parseFromString(l.svg,"text/html").body.querySelector("svg");o!==null?((m=r==null?void 0:r.mutator)==null||m.call(r,o),this.svg=o.outerHTML,this.emit("sd-load")):(this.svg="",this.emit("sd-error"))}else this.svg="",this.emit("sd-error")}catch(l){this.emit("sd-error")}else this.svg.length>0&&(this.svg="")}render(){return b`${y(this.svg)}`}};t.styles=[...c.styles,g`:host{box-sizing:content-box!important;display:inline-block;height:1em;width:1em}svg{display:block;height:100%;width:100%}:host([color=primary]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1))}:host([color=white]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}`],e([d()],t.prototype,"svg",2),e([s({reflect:!0})],t.prototype,"name",2),e([s()],t.prototype,"src",2),e([s()],t.prototype,"label",2),e([s({reflect:!0})],t.prototype,"library",2),e([s({reflect:!0})],t.prototype,"color",2),e([h("label")],t.prototype,"handleLabelChange",1),e([h(["name","src","library"])],t.prototype,"setIcon",1),t=e([p("sd-icon")],t);export{t as a};
@@ -1,4 +1,4 @@
1
- import{a as P}from"./chunk.CDC46OKY.js";import{a as H}from"./chunk.X2GM34WQ.js";import{a as L,d as R,e as K,f as w}from"./chunk.W7A3TU2Z.js";import{c as A}from"./chunk.3L472FD4.js";import{b as z}from"./chunk.I3WLVUO6.js";import{a as F}from"./chunk.CGQ2BPPZ.js";import{a as M}from"./chunk.YTG5BN3U.js";import{a as E,c as C}from"./chunk.SKUMYG4O.js";import{a as x}from"./chunk.KLRPP4NQ.js";import{a as $}from"./chunk.N2OPZHJV.js";import{a as d}from"./chunk.26V4EXHB.js";import{a as V}from"./chunk.DEXOQON7.js";import{a as g}from"./chunk.E2DRD2OX.js";import{a as k,b as r,c as u,d as c,h as T}from"./chunk.4WS6ISBF.js";import{b as D,e as p}from"./chunk.UWPDCU52.js";import{b as S,e as I}from"./chunk.6OTM3PE5.js";import{e as l}from"./chunk.TJOCV4DC.js";var s=class extends T{constructor(){super(...arguments);this.formControlController=new z(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new F(this,"help-text","label");this.localize=new V(this);this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.deletedTagLabel="";this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.type="text";this.currentPlacement=this.placement;this.getOption=H;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let i=w(t.value),a=w(t.getTextLabel()),n=w(e);return i.includes(n)||a.includes(n)};this.getTag=t=>p`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
1
+ import{a as P}from"./chunk.CDC46OKY.js";import{a as H}from"./chunk.X2GM34WQ.js";import{a as L,d as R,e as K,f as w}from"./chunk.W7A3TU2Z.js";import{c as A}from"./chunk.3L472FD4.js";import{b as z}from"./chunk.I3WLVUO6.js";import{a as F}from"./chunk.CGQ2BPPZ.js";import{a as M}from"./chunk.YTG5BN3U.js";import{a as E,c as C}from"./chunk.SKUMYG4O.js";import{a as x}from"./chunk.KLRPP4NQ.js";import{a as $}from"./chunk.N2OPZHJV.js";import{a as d}from"./chunk.26V4EXHB.js";import{a as V}from"./chunk.DEXOQON7.js";import{a as g}from"./chunk.E2DRD2OX.js";import{a as k,b as r,c as u,d as c,h as T}from"./chunk.2A5OJMTM.js";import{b as D,e as p}from"./chunk.UWPDCU52.js";import{b as S,e as I}from"./chunk.6OTM3PE5.js";import{e as l}from"./chunk.TJOCV4DC.js";var s=class extends T{constructor(){super(...arguments);this.formControlController=new z(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new F(this,"help-text","label");this.localize=new V(this);this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.deletedTagLabel="";this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.type="text";this.currentPlacement=this.placement;this.getOption=H;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let i=w(t.value),a=w(t.getTextLabel()),n=w(e);return i.includes(n)||a.includes(n)};this.getTag=t=>p`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
2
2
  base:tag__base,
3
3
  content:tag__content,
4
4
  removable-indicator:tag__removable-indicator,
@@ -1 +1 @@
1
- import{a as m}from"./chunk.26V4EXHB.js";import{a}from"./chunk.DEXOQON7.js";import{a as i,b as s,h as l}from"./chunk.4WS6ISBF.js";import{b as t,e as o}from"./chunk.UWPDCU52.js";import{e as r}from"./chunk.TJOCV4DC.js";var e=class extends l{constructor(){super(...arguments);this.color="currentColor";this.localize=new a(this)}render(){return o`<svg role="progressbar" viewBox="0 0 24 24" class="${m("animate-spin",{primary:"text-primary",white:"text-white",currentColor:""}[this.color])}" aria-label="${this.localize.term("loading")}"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" class="opacity-20" fill="currentColor"/><mask id="mask0_5273_25391" style="mask-type:alpha" maskUnits="userSpaceOnUse"><path d="M24 12C24 5.37258 18.6274 0 12 0V12H24Z" fill="currentColor"/></mask><g mask="url(#mask0_5273_25391)"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" fill="currentColor"/></g></svg>`}};e.styles=[...l.styles,t`:host{display:inline-block;height:1em;width:1em}`],r([s({type:String,reflect:!0})],e.prototype,"color",2),e=r([i("sd-spinner")],e);export{e as a};
1
+ import{a as m}from"./chunk.26V4EXHB.js";import{a}from"./chunk.DEXOQON7.js";import{a as i,b as s,h as l}from"./chunk.2A5OJMTM.js";import{b as t,e as o}from"./chunk.UWPDCU52.js";import{e as r}from"./chunk.TJOCV4DC.js";var e=class extends l{constructor(){super(...arguments);this.color="currentColor";this.localize=new a(this)}render(){return o`<svg role="progressbar" viewBox="0 0 24 24" class="${m("animate-spin",{primary:"text-primary",white:"text-white",currentColor:""}[this.color])}" aria-label="${this.localize.term("loading")}"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" class="opacity-20" fill="currentColor"/><mask id="mask0_5273_25391" style="mask-type:alpha" maskUnits="userSpaceOnUse"><path d="M24 12C24 5.37258 18.6274 0 12 0V12H24Z" fill="currentColor"/></mask><g mask="url(#mask0_5273_25391)"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" fill="currentColor"/></g></svg>`}};e.styles=[...l.styles,t`:host{display:inline-block;height:1em;width:1em}`],r([s({type:String,reflect:!0})],e.prototype,"color",2),e=r([i("sd-spinner")],e);export{e as a};
@@ -1 +1 @@
1
- import{a as n}from"./chunk.MWDEA25W.js";import{a as p}from"./chunk.E2DRD2OX.js";import{a as m,b as o,h as a}from"./chunk.4WS6ISBF.js";import{b as l,e as c}from"./chunk.UWPDCU52.js";import{e as s}from"./chunk.TJOCV4DC.js";var t=class extends a{constructor(){super(...arguments);this.mode="cors";this.allowScripts=!1}executeScript(e){let r=document.createElement("script");[...e.attributes].forEach(i=>r.setAttribute(i.name,i.value)),r.textContent=e.textContent,e.parentNode.replaceChild(r,e)}async handleSrcChange(){try{let e=this.src,r=await n(e,this.mode);if(e!==this.src)return;if(!r.ok){this.emit("sd-error",{detail:{status:r.status}});return}this.innerHTML=r.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(i=>this.executeScript(i)),this.emit("sd-load")}catch(e){this.emit("sd-error",{detail:{status:-1}})}}render(){return c`<slot></slot>`}};t.styles=[...a.styles,l`:host{display:block}`],s([o({reflect:!0})],t.prototype,"src",2),s([o({type:String,reflect:!0})],t.prototype,"mode",2),s([o({attribute:"allow-scripts",type:Boolean,reflect:!0})],t.prototype,"allowScripts",2),s([p("src")],t.prototype,"handleSrcChange",1),t=s([m("sd-include")],t);export{t as a};
1
+ import{a as n}from"./chunk.MWDEA25W.js";import{a as p}from"./chunk.E2DRD2OX.js";import{a as m,b as o,h as a}from"./chunk.2A5OJMTM.js";import{b as l,e as c}from"./chunk.UWPDCU52.js";import{e as s}from"./chunk.TJOCV4DC.js";var t=class extends a{constructor(){super(...arguments);this.mode="cors";this.allowScripts=!1}executeScript(e){let r=document.createElement("script");[...e.attributes].forEach(i=>r.setAttribute(i.name,i.value)),r.textContent=e.textContent,e.parentNode.replaceChild(r,e)}async handleSrcChange(){try{let e=this.src,r=await n(e,this.mode);if(e!==this.src)return;if(!r.ok){this.emit("sd-error",{detail:{status:r.status}});return}this.innerHTML=r.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(i=>this.executeScript(i)),this.emit("sd-load")}catch(e){this.emit("sd-error",{detail:{status:-1}})}}render(){return c`<slot></slot>`}};t.styles=[...a.styles,l`:host{display:block}`],s([o({reflect:!0})],t.prototype,"src",2),s([o({type:String,reflect:!0})],t.prototype,"mode",2),s([o({attribute:"allow-scripts",type:Boolean,reflect:!0})],t.prototype,"allowScripts",2),s([p("src")],t.prototype,"handleSrcChange",1),t=s([m("sd-include")],t);export{t as a};
@@ -1 +1 @@
1
- import{a as u}from"./chunk.CGQ2BPPZ.js";import{a}from"./chunk.26V4EXHB.js";import{a as b}from"./chunk.DEXOQON7.js";import{a as l}from"./chunk.E2DRD2OX.js";import{a as c,b as r,d as s,h as n}from"./chunk.4WS6ISBF.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-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-tab")],t);export{t as a};
1
+ import{a as u}from"./chunk.CGQ2BPPZ.js";import{a}from"./chunk.26V4EXHB.js";import{a as b}from"./chunk.DEXOQON7.js";import{a as l}from"./chunk.E2DRD2OX.js";import{a as c,b as r,d as s,h as n}from"./chunk.2A5OJMTM.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-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-tab")],t);export{t as a};
@@ -1 +1 @@
1
- import{a as l}from"./chunk.MHWW3RZB.js";import{a as s,b as n,d as o,h as a}from"./chunk.4WS6ISBF.js";import{b as r,e as d}from"./chunk.UWPDCU52.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends a{constructor(){super(...arguments);this.fixed=!1}connectedCallback(){super.connectedCallback(),this.updateCalculatedHeight=this.updateCalculatedHeight.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this),window.addEventListener("resize",this.updateCalculatedHeight)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.updateCalculatedHeight)}firstUpdated(){this.updateCalculatedHeight(),this.addResizeObserver()}updated(i){super.updated(i),i.has("fixed")&&this.updateCalculatedHeight()}addResizeObserver(){this.resizeObserver=new ResizeObserver(this.updateCalculatedHeight),this.header&&this.resizeObserver.observe(this.header)}updateCalculatedHeight(){let i=parseFloat(getComputedStyle(document.documentElement).fontSize),h=window.innerHeight/i;this.header&&this.fixed&&h>=32?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.header.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return d`<header class="w-full bg-white relative" role="banner"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}};e.styles=[...a.styles,r`:host{display:block;position:relative;z-index:var(--sd-z-index-header,600)}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)!important}:host([fixed]) header{left:var(--sd-spacing-0,0);position:fixed;top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header:after{height:var(--sd-spacing-2,.5rem);left:var(--sd-spacing-0,0);position:absolute;right:var(--sd-spacing-0,0);top:100%;--tw-content:"";background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%));content:var(--tw-content)}}[part=main]{max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px);width:var(--sd-header-inner-width)}`],t([n({reflect:!0,type:Boolean})],e.prototype,"fixed",2),t([o("header")],e.prototype,"header",2),t([l(100)],e.prototype,"updateCalculatedHeight",1),e=t([s("sd-header")],e);export{e as a};
1
+ import{a as l}from"./chunk.MHWW3RZB.js";import{a as s,b as n,d as o,h as a}from"./chunk.2A5OJMTM.js";import{b as r,e as d}from"./chunk.UWPDCU52.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends a{constructor(){super(...arguments);this.fixed=!1}connectedCallback(){super.connectedCallback(),this.updateCalculatedHeight=this.updateCalculatedHeight.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this),window.addEventListener("resize",this.updateCalculatedHeight)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.updateCalculatedHeight)}firstUpdated(){this.updateCalculatedHeight(),this.addResizeObserver()}updated(i){super.updated(i),i.has("fixed")&&this.updateCalculatedHeight()}addResizeObserver(){this.resizeObserver=new ResizeObserver(this.updateCalculatedHeight),this.header&&this.resizeObserver.observe(this.header)}updateCalculatedHeight(){let i=parseFloat(getComputedStyle(document.documentElement).fontSize),h=window.innerHeight/i;this.header&&this.fixed&&h>=32?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.header.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return d`<header class="w-full bg-white relative" role="banner"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}};e.styles=[...a.styles,r`:host{display:block;position:relative;z-index:var(--sd-z-index-header,600)}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)!important}:host([fixed]) header{left:var(--sd-spacing-0,0);position:fixed;top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header:after{height:var(--sd-spacing-2,.5rem);left:var(--sd-spacing-0,0);position:absolute;right:var(--sd-spacing-0,0);top:100%;--tw-content:"";background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%));content:var(--tw-content)}}[part=main]{max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px);width:var(--sd-header-inner-width)}`],t([n({reflect:!0,type:Boolean})],e.prototype,"fixed",2),t([o("header")],e.prototype,"header",2),t([l(100)],e.prototype,"updateCalculatedHeight",1),e=t([s("sd-header")],e);export{e as a};
@@ -1 +1 @@
1
- import{a as v}from"./chunk.26V4EXHB.js";import{a as g}from"./chunk.DEXOQON7.js";import{a as b,b as f,c,d as a,h as p}from"./chunk.4WS6ISBF.js";import{b as m,e as u}from"./chunk.UWPDCU52.js";import{e as i}from"./chunk.TJOCV4DC.js";var e=class extends p{constructor(){super(...arguments);this.localize=new g(this);this.label="";this.itemPositionsCached=!1;this.isTruncated=!1}get items(){return this.querySelectorAll("sd-breadcrumb-item")}cacheItemPositions(){this.items.forEach(t=>{let{width:n}=t.getBoundingClientRect();t.dataset.size=`${n}`}),this.itemPositionsCached=!0}handleTruncation(){var o;if(document.documentElement.clientWidth<=1024)return;let{width:t}=this.base.getBoundingClientRect(),{width:n}=this.truncated.getBoundingClientRect();this.itemPositionsCached||this.cacheItemPositions(),this.dropdown.innerHTML="",this.isTruncated=!1;let r=0;for(let[h,s]of Array.from(this.items).reverse().entries()){let l=parseFloat(`${(o=s.dataset.size)!=null?o:s.getBoundingClientRect().width}`);if(s.hidden=!1,this.isTruncated){let d=s.cloneNode(!0);this.dropdown.prepend(d),s.hidden=!0;continue}if(h===0||h===1){r+=l;continue}if(this.isTruncated=r+l+n>t,this.isTruncated){let d=s.cloneNode(!0);this.dropdown.prepend(d),s.hidden=!0}else r+=l}}handleMobileChevron(){var n,r,o;let t=document.createElement("sd-icon");t.setAttribute("slot","icon-left"),t.setAttribute("library","_internal"),t.setAttribute("name","chevron-left"),t.setAttribute("class","text-base me-1 lg:hidden"),(o=(r=(n=Array.from(this.items).at(-2))==null?void 0:n.shadowRoot)==null?void 0:r.querySelector("sd-link"))==null||o.appendChild(t)}handleSlotChange(){this.handleMobileChevron()}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>this.handleTruncation()),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}render(){return u`<nav part="base" class="flex items-center pb-1" aria-label="${this.label}"><sd-dropdown part="truncated" class="${v(!this.isTruncated&&"absolute opacity-0 pointer-events-none")}"><button slot="trigger" tabindex="${this.isTruncated?"0":"-1"}" aria-label="${this.localize.term("truncatedBreadcrumbs")}" aria-expanded="false" aria-haspopup="true" class="flex sd-interactive">[...]</button><ol part="truncated-dropdown" class="flex flex-col gap-4 px-2 py-3 min-w-40"></ol></sd-dropdown><ol part="list" class="flex items-center"><slot @slotchange="${this.handleSlotChange}"></slot></ol></nav>`}};e.styles=[...p.styles,m`:host{display:block;position:relative}::slotted(sd-breadcrumb-item:not(:last-of-type)):after,sd-dropdown:after{border-radius:var(--sd-border-radius-full,9999px);content:var(--tw-content);display:none;height:var(--sd-spacing-1,.25rem);margin-left:var(--sd-spacing-2,.5rem);margin-right:var(--sd-spacing-2,.5rem);width:var(--sd-spacing-1,.25rem);--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-bg-opacity,1))}@media (min-width:1024px){::slotted(sd-breadcrumb-item:not(:last-of-type)):after,sd-dropdown:after{content:var(--tw-content);display:inline-block}}::slotted(sd-breadcrumb-item:nth-last-child(2)){display:flex}@media (min-width:1024px){::slotted(sd-breadcrumb-item:nth-last-child(2)):after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent,45 157 0)/var(--tw-bg-opacity,1))}}::slotted(sd-breadcrumb-item),sd-dropdown{align-items:center;display:none}@media (min-width:1024px){::slotted(sd-breadcrumb-item),sd-dropdown{display:flex}}`],i([a('[part="base"]')],e.prototype,"base",2),i([a('[part="truncated"]')],e.prototype,"truncated",2),i([a('[part="truncated-dropdown"]')],e.prototype,"dropdown",2),i([a("slot")],e.prototype,"defaultSlot",2),i([f({type:String,reflect:!0})],e.prototype,"label",2),i([c()],e.prototype,"itemPositionsCached",2),i([c()],e.prototype,"isTruncated",2),e=i([b("sd-breadcrumb")],e);export{e as a};
1
+ import{a as v}from"./chunk.26V4EXHB.js";import{a as g}from"./chunk.DEXOQON7.js";import{a as b,b as f,c,d as a,h as p}from"./chunk.2A5OJMTM.js";import{b as m,e as u}from"./chunk.UWPDCU52.js";import{e as i}from"./chunk.TJOCV4DC.js";var e=class extends p{constructor(){super(...arguments);this.localize=new g(this);this.label="";this.itemPositionsCached=!1;this.isTruncated=!1}get items(){return this.querySelectorAll("sd-breadcrumb-item")}cacheItemPositions(){this.items.forEach(t=>{let{width:n}=t.getBoundingClientRect();t.dataset.size=`${n}`}),this.itemPositionsCached=!0}handleTruncation(){var o;if(document.documentElement.clientWidth<=1024)return;let{width:t}=this.base.getBoundingClientRect(),{width:n}=this.truncated.getBoundingClientRect();this.itemPositionsCached||this.cacheItemPositions(),this.dropdown.innerHTML="",this.isTruncated=!1;let r=0;for(let[h,s]of Array.from(this.items).reverse().entries()){let l=parseFloat(`${(o=s.dataset.size)!=null?o:s.getBoundingClientRect().width}`);if(s.hidden=!1,this.isTruncated){let d=s.cloneNode(!0);this.dropdown.prepend(d),s.hidden=!0;continue}if(h===0||h===1){r+=l;continue}if(this.isTruncated=r+l+n>t,this.isTruncated){let d=s.cloneNode(!0);this.dropdown.prepend(d),s.hidden=!0}else r+=l}}handleMobileChevron(){var n,r,o;let t=document.createElement("sd-icon");t.setAttribute("slot","icon-left"),t.setAttribute("library","_internal"),t.setAttribute("name","chevron-left"),t.setAttribute("class","text-base me-1 lg:hidden"),(o=(r=(n=Array.from(this.items).at(-2))==null?void 0:n.shadowRoot)==null?void 0:r.querySelector("sd-link"))==null||o.appendChild(t)}handleSlotChange(){this.handleMobileChevron()}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>this.handleTruncation()),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}render(){return u`<nav part="base" class="flex items-center pb-1" aria-label="${this.label}"><sd-dropdown part="truncated" class="${v(!this.isTruncated&&"absolute opacity-0 pointer-events-none")}"><button slot="trigger" tabindex="${this.isTruncated?"0":"-1"}" aria-label="${this.localize.term("truncatedBreadcrumbs")}" aria-expanded="false" aria-haspopup="true" class="flex sd-interactive">[...]</button><ol part="truncated-dropdown" class="flex flex-col gap-4 px-2 py-3 min-w-40"></ol></sd-dropdown><ol part="list" class="flex items-center"><slot @slotchange="${this.handleSlotChange}"></slot></ol></nav>`}};e.styles=[...p.styles,m`:host{display:block;position:relative}::slotted(sd-breadcrumb-item:not(:last-of-type)):after,sd-dropdown:after{border-radius:var(--sd-border-radius-full,9999px);content:var(--tw-content);display:none;height:var(--sd-spacing-1,.25rem);margin-left:var(--sd-spacing-2,.5rem);margin-right:var(--sd-spacing-2,.5rem);width:var(--sd-spacing-1,.25rem);--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-bg-opacity,1))}@media (min-width:1024px){::slotted(sd-breadcrumb-item:not(:last-of-type)):after,sd-dropdown:after{content:var(--tw-content);display:inline-block}}::slotted(sd-breadcrumb-item:nth-last-child(2)){display:flex}@media (min-width:1024px){::slotted(sd-breadcrumb-item:nth-last-child(2)):after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent,45 157 0)/var(--tw-bg-opacity,1))}}::slotted(sd-breadcrumb-item),sd-dropdown{align-items:center;display:none}@media (min-width:1024px){::slotted(sd-breadcrumb-item),sd-dropdown{display:flex}}`],i([a('[part="base"]')],e.prototype,"base",2),i([a('[part="truncated"]')],e.prototype,"truncated",2),i([a('[part="truncated-dropdown"]')],e.prototype,"dropdown",2),i([a("slot")],e.prototype,"defaultSlot",2),i([f({type:String,reflect:!0})],e.prototype,"label",2),i([c()],e.prototype,"itemPositionsCached",2),i([c()],e.prototype,"isTruncated",2),e=i([b("sd-breadcrumb")],e);export{e as a};
@@ -1,3 +1,3 @@
1
- import{a as f}from"./chunk.URI32NHH.js";import{a as b}from"./chunk.CDC46OKY.js";import{b as c}from"./chunk.I3WLVUO6.js";import{a as p}from"./chunk.CGQ2BPPZ.js";import{a as m}from"./chunk.YTG5BN3U.js";import{a as o}from"./chunk.26V4EXHB.js";import{a}from"./chunk.E2DRD2OX.js";import{a as h,b as l,c as u,d as s,h as n}from"./chunk.4WS6ISBF.js";import{b as d,e as i}from"./chunk.UWPDCU52.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends n{constructor(){super(...arguments);this.hasSlotController=new p(this,"tooltip");this.formControlController=new c(this,{value:r=>r.checked?r.value||"on":void 0,defaultValue:r=>r.defaultChecked,setValue:(r,v)=>r.checked=v});this.showInvalidStyle=!1;this.title="";this.name="";this.disabled=!1;this.checked=!1;this.defaultChecked=!1;this.form="";this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(r){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(r),this.invalidMessage.textContent=r.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}click(){this.input.click()}focus(r){this.input.focus(r)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(r){this.input.setCustomValidity(r),this.formControlController.updateValidity()}render(){return i`<div class="flex flex-row items-center gap-2"><label part="base" class="${o("group flex items-center text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed")}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" role="switch" title="${this.title}" name="${this.name}" value="${m(this.value)}" .checked="${f(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="invalid-message" @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"}" class="${o(`relative flex flex-initial items-center justify-center border rounded-full h-4 w-8 transition-colors ease duration-100
1
+ import{a as f}from"./chunk.URI32NHH.js";import{a as b}from"./chunk.CDC46OKY.js";import{b as c}from"./chunk.I3WLVUO6.js";import{a as p}from"./chunk.CGQ2BPPZ.js";import{a as m}from"./chunk.YTG5BN3U.js";import{a as o}from"./chunk.26V4EXHB.js";import{a}from"./chunk.E2DRD2OX.js";import{a as h,b as l,c as u,d as s,h as n}from"./chunk.2A5OJMTM.js";import{b as d,e as i}from"./chunk.UWPDCU52.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends n{constructor(){super(...arguments);this.hasSlotController=new p(this,"tooltip");this.formControlController=new c(this,{value:r=>r.checked?r.value||"on":void 0,defaultValue:r=>r.defaultChecked,setValue:(r,v)=>r.checked=v});this.showInvalidStyle=!1;this.title="";this.name="";this.disabled=!1;this.checked=!1;this.defaultChecked=!1;this.form="";this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(r){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(r),this.invalidMessage.textContent=r.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}click(){this.input.click()}focus(r){this.input.focus(r)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(r){this.input.setCustomValidity(r),this.formControlController.updateValidity()}render(){return i`<div class="flex flex-row items-center gap-2"><label part="base" class="${o("group flex items-center text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed")}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" role="switch" title="${this.title}" name="${this.name}" value="${m(this.value)}" .checked="${f(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="invalid-message" @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"}" class="${o(`relative flex flex-initial items-center justify-center border rounded-full h-4 w-8 transition-colors ease duration-100
2
2
  peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2
3
3
  peer-focus-visible:outline-primary transition-colors ease-in-out duration-medium hover:duration-fast`,this.disabled&&this.checked?"border-neutral-500 bg-neutral-500":this.disabled?"border-neutral-500":this.showInvalidStyle?this.checked?"border-error bg-error hover:bg-error-400 hover:border-error-400 group-hover:bg-error-400":"border-error bg-white hover:border-error-400 hover:bg-white group-hover:border-error-400 group-hover:bg-white":this.checked?"border-accent hover:bg-accent-550 bg-accent hover:border-accent-550 group-hover:bg-accent-550":"border-neutral-800 bg-white hover:bg-neutral-200 group-hover:bg-neutral-200")}"><span id="thumb" part="thumb" class="${o("w-2.5 h-2.5 rounded-full transition[transform,colors] ease-in-out duration-medium",this.disabled&&this.checked?"bg-white translate-x-2":this.disabled?"-translate-x-2 bg-neutral-500":this.showInvalidStyle?this.checked?"bg-white translate-x-2":"bg-error -translate-x-2 hover:bg-error-400 hover:border-error-400 group-hover:border-error-400 group-hover:bg-error-400":this.checked?"bg-white translate-x-2":"bg-neutral-800 -translate-x-2")}"></span> </span><span part="label" id="label" class="${o("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.hasSlotController.test("tooltip")?i`<slot name="tooltip"></slot>`:null}</div>${this.formControlController.renderInvalidMessage()}`}};e.styles=[...n.styles,d`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host([required]) #label:after{content:" *"}`],t([s("input")],e.prototype,"input",2),t([s("#invalid-message")],e.prototype,"invalidMessage",2),t([u()],e.prototype,"showInvalidStyle",2),t([l({type:String,reflect:!0})],e.prototype,"title",2),t([l({type:String,reflect:!0})],e.prototype,"name",2),t([l()],e.prototype,"value",2),t([l({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([l({type:Boolean,reflect:!0})],e.prototype,"checked",2),t([b("checked")],e.prototype,"defaultChecked",2),t([l({reflect:!0})],e.prototype,"form",2),t([l({type:Boolean,reflect:!0})],e.prototype,"required",2),t([a("disabled",{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),t([a(["checked"],{waitUntilFirstUpdate:!0})],e.prototype,"handleStateChange",1),e=t([h("sd-switch")],e);export{e as a};
@@ -1 +1 @@
1
- import{a as l}from"./chunk.26V4EXHB.js";import{a}from"./chunk.DEXOQON7.js";import{a as o,b as i,h as r}from"./chunk.4WS6ISBF.js";import{e as s}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends r{constructor(){super(...arguments);this.localize=new a(this);this.subtick=!1}render(){return s`<div part="base" class="${l(this.subtick?"w-0.25":"w-0.5")}"><div part="line" class="${l("bg-neutral-500",this.subtick?"h-2":"h-[10px]")}"></div><div part="label" class="flex items-center justify-center text-center text-nowrap text-sm"><slot></slot></div></div>`}};t.styles=r.styles,e([i({type:Boolean,reflect:!0})],t.prototype,"subtick",2),t=e([o("sd-range-tick")],t);export{t as a};
1
+ import{a as l}from"./chunk.26V4EXHB.js";import{a}from"./chunk.DEXOQON7.js";import{a as o,b as i,h as r}from"./chunk.2A5OJMTM.js";import{e as s}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends r{constructor(){super(...arguments);this.localize=new a(this);this.subtick=!1}render(){return s`<div part="base" class="${l(this.subtick?"w-0.25":"w-0.5")}"><div part="line" class="${l("bg-neutral-500",this.subtick?"h-2":"h-[10px]")}"></div><div part="label" class="flex items-center justify-center text-center text-nowrap text-sm"><slot></slot></div></div>`}};t.styles=r.styles,e([i({type:Boolean,reflect:!0})],t.prototype,"subtick",2),t=e([o("sd-range-tick")],t);export{t as a};
@@ -1,4 +1,4 @@
1
- import{a as k}from"./chunk.BJBQEPZV.js";import{a as T}from"./chunk.C577EOP7.js";import{a as _}from"./chunk.HJR66OM3.js";import{a as C}from"./chunk.CBQWVOOS.js";import{a as l}from"./chunk.26V4EXHB.js";import{a as M}from"./chunk.DEXOQON7.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.4WS6ISBF.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-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-icon class="${l("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${c?"chevron-down":"chevron-up"}"></sd-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-icon class="${l("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${c?"chevron-up":"chevron-down"}"></sd-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-icon class="h-6 w-6 grid place-items-center" library="_internal" name="start"></sd-icon></slot><slot name="autoplay-pause" class="${l(this.pausedAutoplay?"hidden":"")}"><sd-icon class="h-6 w-6 grid place-items-center" library="_internal" name="pause"></sd-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-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-carousel")],r);export{r as a};
1
+ import{a as k}from"./chunk.BJBQEPZV.js";import{a as T}from"./chunk.C577EOP7.js";import{a as _}from"./chunk.TUUCROYG.js";import{a as C}from"./chunk.CBQWVOOS.js";import{a as l}from"./chunk.26V4EXHB.js";import{a as M}from"./chunk.DEXOQON7.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.2A5OJMTM.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-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-icon class="${l("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${c?"chevron-down":"chevron-up"}"></sd-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-icon class="${l("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${c?"chevron-up":"chevron-down"}"></sd-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-icon class="h-6 w-6 grid place-items-center" library="_internal" name="start"></sd-icon></slot><slot name="autoplay-pause" class="${l(this.pausedAutoplay?"hidden":"")}"><sd-icon class="h-6 w-6 grid place-items-center" library="_internal" name="pause"></sd-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-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-carousel")],r);export{r as a};
2
2
  /*! Bundled license information:
3
3
 
4
4
  lit-html/directives/map.js:
@@ -1 +1 @@
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.4WS6ISBF.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-icon name="status-check" library="sd-status-assets" aria-hidden="true"></sd-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-icon name="chevron-right" library="_internal" aria-hidden="true" class="h-6 w-6"></sd-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-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-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-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-menu-item")],e);export{e as a};
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.2A5OJMTM.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-icon name="status-check" library="sd-status-assets" aria-hidden="true"></sd-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-icon name="chevron-right" library="_internal" aria-hidden="true" class="h-6 w-6"></sd-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-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-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-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-menu-item")],e);export{e as a};
@@ -1 +1 @@
1
- import{a as p}from"./chunk.CGQ2BPPZ.js";import{a as r}from"./chunk.26V4EXHB.js";import{a as h,b as a,c as d,d as m,h as s}from"./chunk.4WS6ISBF.js";import{b as l,e as n}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends s{constructor(){super(...arguments);this.variant="white";this.breakpoint=448;this.inset=!1;this.reversedLayout=!1;this.hasSlotController=new p(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),this.breakpoint===0?this._orientation="horizontal":this.breakpoint===9999?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>this.updateOrientation()),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(i){super.updated(i),i.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){let i=this.variant==="white border-neutral-400"||this.inset,o={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline")};return n`<div class="${r("flex",{white:"bg-white","white border-neutral-400":"bg-white border border-neutral-400","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],this._orientation==="vertical"&&"flex-col",this._orientation==="horizontal"&&"flex-row gap-8",this._orientation==="horizontal"&&i&&"py-8 px-10")}" part="base"><div style="${this._orientation==="horizontal"?`width: var(--distribution-content, 100%); ${i?"width: var(--distribution-content, calc(100% - 2rem));":""}`:""}" class="${r("flex flex-col text-left order-2",this._orientation==="horizontal"&&"flex flex-col",this._orientation==="vertical"&&i&&"m-4")}" part="content"><div class="flex flex-col-reverse"><div part="headline" class="${r("text-lg font-bold m-0",this.variant==="primary"?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div part="meta" class="${r("gap-2 mb-4",!o["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div></div><div part="main" class="${r(!o["teaser-has-default"]&&"hidden")}" role="group" aria-labelledby="headline"><slot></slot></div></div><div part="media" id="media" style="${this._orientation==="horizontal"?"width: var(--distribution-media, 100%);":""}" class="${r("order-1",!i&&this._orientation==="vertical"&&"mb-4",!o["teaser-has-media"]&&"hidden",this.variant==="white border-neutral-400"&&this._orientation==="vertical"&&"mx-[-1px] mt-[-1px]",this._orientation!=="vertical"&&this.reversedLayout&&"order-2")}"><slot name="media"></slot></div></div>`}};t.styles=[...s.styles,l`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:var(--sd-spacing-0,0)!important}`],e([a({type:String,reflect:!0})],t.prototype,"variant",2),e([a({reflect:!0,type:Number})],t.prototype,"breakpoint",2),e([a({type:Boolean,reflect:!0})],t.prototype,"inset",2),e([a({type:Boolean,reflect:!0,attribute:"reversed-layout"})],t.prototype,"reversedLayout",2),e([m('[part="base"]')],t.prototype,"teaser",2),e([d()],t.prototype,"_orientation",2),t=e([h("sd-teaser")],t);export{t as a};
1
+ import{a as p}from"./chunk.CGQ2BPPZ.js";import{a as r}from"./chunk.26V4EXHB.js";import{a as h,b as a,c as d,d as m,h as s}from"./chunk.2A5OJMTM.js";import{b as l,e as n}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends s{constructor(){super(...arguments);this.variant="white";this.breakpoint=448;this.inset=!1;this.reversedLayout=!1;this.hasSlotController=new p(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),this.breakpoint===0?this._orientation="horizontal":this.breakpoint===9999?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>this.updateOrientation()),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(i){super.updated(i),i.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){let i=this.variant==="white border-neutral-400"||this.inset,o={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline")};return n`<div class="${r("flex",{white:"bg-white","white border-neutral-400":"bg-white border border-neutral-400","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],this._orientation==="vertical"&&"flex-col",this._orientation==="horizontal"&&"flex-row gap-8",this._orientation==="horizontal"&&i&&"py-8 px-10")}" part="base"><div style="${this._orientation==="horizontal"?`width: var(--distribution-content, 100%); ${i?"width: var(--distribution-content, calc(100% - 2rem));":""}`:""}" class="${r("flex flex-col text-left order-2",this._orientation==="horizontal"&&"flex flex-col",this._orientation==="vertical"&&i&&"m-4")}" part="content"><div class="flex flex-col-reverse"><div part="headline" class="${r("text-lg font-bold m-0",this.variant==="primary"?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div part="meta" class="${r("gap-2 mb-4",!o["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div></div><div part="main" class="${r(!o["teaser-has-default"]&&"hidden")}" role="group" aria-labelledby="headline"><slot></slot></div></div><div part="media" id="media" style="${this._orientation==="horizontal"?"width: var(--distribution-media, 100%);":""}" class="${r("order-1",!i&&this._orientation==="vertical"&&"mb-4",!o["teaser-has-media"]&&"hidden",this.variant==="white border-neutral-400"&&this._orientation==="vertical"&&"mx-[-1px] mt-[-1px]",this._orientation!=="vertical"&&this.reversedLayout&&"order-2")}"><slot name="media"></slot></div></div>`}};t.styles=[...s.styles,l`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:var(--sd-spacing-0,0)!important}`],e([a({type:String,reflect:!0})],t.prototype,"variant",2),e([a({reflect:!0,type:Number})],t.prototype,"breakpoint",2),e([a({type:Boolean,reflect:!0})],t.prototype,"inset",2),e([a({type:Boolean,reflect:!0,attribute:"reversed-layout"})],t.prototype,"reversedLayout",2),e([m('[part="base"]')],t.prototype,"teaser",2),e([d()],t.prototype,"_orientation",2),t=e([h("sd-teaser")],t);export{t as a};
@@ -1 +1 @@
1
- import{a as h}from"./chunk.CGQ2BPPZ.js";import{a as r}from"./chunk.26V4EXHB.js";import{a as v}from"./chunk.DEXOQON7.js";import{a as c,b as o,d,h as l}from"./chunk.4WS6ISBF.js";import{b as p,e as i}from"./chunk.UWPDCU52.js";import{e as a}from"./chunk.TJOCV4DC.js";var e=class extends l{constructor(){super(...arguments);this.localize=new v(this);this.playing=!1;this.isBelowBreakpoint=!1;this.hasSlotController=new h(this,"[default]","play-icon","poster")}get poster(){let t=this.shadowRoot.querySelector("slot[name=poster]");return(t==null?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}get video(){return this.querySelector("video")}async hidePoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.opacity="0",await new Promise(t=>setTimeout(t,this.token("sd-duration-medium",300))),this.poster.style.display="none")}setVideoInert(t){var s,n;t?(s=this.video)==null||s.setAttribute("inert",""):(n=this.video)==null||n.removeAttribute("inert")}play(){var t;this.emit("sd-play"),this.playing=!0,(t=this.video)==null||t.play(),this.hidePoster(),this.setVideoInert(!1)}handleKeydown(t){t instanceof KeyboardEvent&&(t.key==="Enter"||t.key===" ")&&(this.play(),setTimeout(()=>{var s;(s=this.video)==null||s.focus()}))}handleButtonResize(){this.hostEl.clientWidth<=414&&!this.isBelowBreakpoint&&(this.isBelowBreakpoint=!0),this.hostEl.clientWidth>414&&this.isBelowBreakpoint&&(this.isBelowBreakpoint=!1)}connectedCallback(){super.connectedCallback(),this.setVideoInert(!0),this.resizeObserver=new ResizeObserver(()=>this.handleButtonResize()),this.updateComplete.then(()=>{this.resizeObserver.observe(this.hostEl)})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.hostEl)}render(){return i`<div part="base" class="cursor-pointer"><button part="play-button" aria-label="${this.localize.term("playVideo")}" tabindex="0" @click="${this.play}" @keydown="${this.handleKeydown}" class="${r(this.playing&&"pointer-events-none","group w-full h-full absolute top-0 left-0 z-30 text-primary hover:text-primary-500 sd-interactive sd-interactive--reset focus-visible:focus-outline")}"><div part="play-button-bg" class="${r(this.playing?"opacity-0":"opacity-100",this.isBelowBreakpoint?"w-[48px] h-[48px]":"w-[96px] h-[96px]","absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition outline-2 outline-offset-2 group-focus-visible:outline")}"><slot name="play-icon" part="play-icon" class="${r(this.isBelowBreakpoint?"text-[2rem]":"text-[4rem]")}"><sd-icon id="default-play-icon" library="_internal" name="start"></sd-icon></slot></div></button> ${this.hasSlotController.test("poster")?i`<div part="poster-wrapper" class="absolute left-0 top-0 w-full z-10 overflow-hidden"><slot name="poster" role="presentation"></slot></div>`:null}<slot></slot></div>`}};e.styles=[...l.styles,p`:host{display:inline-block;overflow:hidden;position:relative}.play-pause-transition,::slotted([slot=poster]){--tw-scale-x:1;--tw-scale-y: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-duration:.15s;transition-duration:var(--sd-duration-medium,.3s);transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}#default-play-icon,::slotted([slot=play-icon]){left:50%;position:absolute;top:50%;--tw-translate-x:-50%!important;--tw-translate-y:-50%!important;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))}:has([part=play-button]:hover) ::slotted([slot=poster]){--tw-scale-x:1.1!important;--tw-scale-y:1.1!important;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))!important}`],a([d("[part=base]")],e.prototype,"hostEl",2),a([o({type:Boolean,reflect:!0})],e.prototype,"playing",2),a([o({type:Boolean})],e.prototype,"isBelowBreakpoint",2),e=a([c("sd-video")],e);export{e as a};
1
+ import{a as h}from"./chunk.CGQ2BPPZ.js";import{a as r}from"./chunk.26V4EXHB.js";import{a as v}from"./chunk.DEXOQON7.js";import{a as c,b as o,d,h as l}from"./chunk.2A5OJMTM.js";import{b as p,e as i}from"./chunk.UWPDCU52.js";import{e as a}from"./chunk.TJOCV4DC.js";var e=class extends l{constructor(){super(...arguments);this.localize=new v(this);this.playing=!1;this.isBelowBreakpoint=!1;this.hasSlotController=new h(this,"[default]","play-icon","poster")}get poster(){let t=this.shadowRoot.querySelector("slot[name=poster]");return(t==null?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}get video(){return this.querySelector("video")}async hidePoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.opacity="0",await new Promise(t=>setTimeout(t,this.token("sd-duration-medium",300))),this.poster.style.display="none")}setVideoInert(t){var s,n;t?(s=this.video)==null||s.setAttribute("inert",""):(n=this.video)==null||n.removeAttribute("inert")}play(){var t;this.emit("sd-play"),this.playing=!0,(t=this.video)==null||t.play(),this.hidePoster(),this.setVideoInert(!1)}handleKeydown(t){t instanceof KeyboardEvent&&(t.key==="Enter"||t.key===" ")&&(this.play(),setTimeout(()=>{var s;(s=this.video)==null||s.focus()}))}handleButtonResize(){this.hostEl.clientWidth<=414&&!this.isBelowBreakpoint&&(this.isBelowBreakpoint=!0),this.hostEl.clientWidth>414&&this.isBelowBreakpoint&&(this.isBelowBreakpoint=!1)}connectedCallback(){super.connectedCallback(),this.setVideoInert(!0),this.resizeObserver=new ResizeObserver(()=>this.handleButtonResize()),this.updateComplete.then(()=>{this.resizeObserver.observe(this.hostEl)})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.hostEl)}render(){return i`<div part="base" class="cursor-pointer"><button part="play-button" aria-label="${this.localize.term("playVideo")}" tabindex="0" @click="${this.play}" @keydown="${this.handleKeydown}" class="${r(this.playing&&"pointer-events-none","group w-full h-full absolute top-0 left-0 z-30 text-primary hover:text-primary-500 sd-interactive sd-interactive--reset focus-visible:focus-outline")}"><div part="play-button-bg" class="${r(this.playing?"opacity-0":"opacity-100",this.isBelowBreakpoint?"w-[48px] h-[48px]":"w-[96px] h-[96px]","absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition outline-2 outline-offset-2 group-focus-visible:outline")}"><slot name="play-icon" part="play-icon" class="${r(this.isBelowBreakpoint?"text-[2rem]":"text-[4rem]")}"><sd-icon id="default-play-icon" library="_internal" name="start"></sd-icon></slot></div></button> ${this.hasSlotController.test("poster")?i`<div part="poster-wrapper" class="absolute left-0 top-0 w-full z-10 overflow-hidden"><slot name="poster" role="presentation"></slot></div>`:null}<slot></slot></div>`}};e.styles=[...l.styles,p`:host{display:inline-block;overflow:hidden;position:relative}.play-pause-transition,::slotted([slot=poster]){--tw-scale-x:1;--tw-scale-y: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-duration:.15s;transition-duration:var(--sd-duration-medium,.3s);transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}#default-play-icon,::slotted([slot=play-icon]){left:50%;position:absolute;top:50%;--tw-translate-x:-50%!important;--tw-translate-y:-50%!important;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))}:has([part=play-button]:hover) ::slotted([slot=poster]){--tw-scale-x:1.1!important;--tw-scale-y:1.1!important;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))!important}`],a([d("[part=base]")],e.prototype,"hostEl",2),a([o({type:Boolean,reflect:!0})],e.prototype,"playing",2),a([o({type:Boolean})],e.prototype,"isBelowBreakpoint",2),e=a([c("sd-video")],e);export{e as a};
@@ -1 +1 @@
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.DEXOQON7.js";import{a as g,b as y,c as v,d as h,h as f}from"./chunk.4WS6ISBF.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-tab"),customElements.whenDefined("sd-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-tab"?e:e.querySelector("sd-tab")).filter(e=>e&&t.includeDisabled?e.tagName.toLowerCase()==="sd-tab":e.tagName.toLowerCase()==="sd-tab"&&!e.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.matches(":focus"))}handleClick(t){let e=t.target.closest("sd-tab");(e==null?void 0:e.closest("sd-tab-group"))===this&&e!==null&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(t){let e=t.target.closest("sd-tab");if((e==null?void 0:e.closest("sd-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-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-icon library="_internal" name="${t?"chevron-up":"chevron-down"}" label="previous" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-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-icon library="_internal" name="${t?"chevron-down":"chevron-up"}" label="next" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-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-tab-panel){--padding:1rem 0}::slotted(sd-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-tab-group")],a);export{a};
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.DEXOQON7.js";import{a as g,b as y,c as v,d as h,h as f}from"./chunk.2A5OJMTM.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-tab"),customElements.whenDefined("sd-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-tab"?e:e.querySelector("sd-tab")).filter(e=>e&&t.includeDisabled?e.tagName.toLowerCase()==="sd-tab":e.tagName.toLowerCase()==="sd-tab"&&!e.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.matches(":focus"))}handleClick(t){let e=t.target.closest("sd-tab");(e==null?void 0:e.closest("sd-tab-group"))===this&&e!==null&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(t){let e=t.target.closest("sd-tab");if((e==null?void 0:e.closest("sd-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-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-icon library="_internal" name="${t?"chevron-up":"chevron-down"}" label="previous" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-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-icon library="_internal" name="${t?"chevron-down":"chevron-up"}" label="next" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-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-tab-panel){--padding:1rem 0}::slotted(sd-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-tab-group")],a);export{a};