@solid-design-system/components 6.3.0 → 6.4.1

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 (281) hide show
  1. package/cdn/chunks/chunk.XQWDDXL2.js +2 -0
  2. package/cdn/components/combobox/combobox.js +1 -1
  3. package/cdn/components/select/select.js +1 -1
  4. package/cdn/components/tag/tag.js +1 -1
  5. package/cdn/custom-elements.json +1 -1
  6. package/cdn/solid-components.bundle.js +1 -1
  7. package/cdn/solid-components.iife.js +1 -1
  8. package/cdn/solid-components.js +1 -1
  9. package/cdn/web-types.json +1 -1
  10. package/cdn-versioned/chunks/chunk.2DPSCPM4.js +2 -2
  11. package/cdn-versioned/chunks/chunk.2HJLVWCE.js +2 -2
  12. package/cdn-versioned/chunks/chunk.2KV3QDYA.js +2 -2
  13. package/cdn-versioned/chunks/chunk.3ETEQAPR.js +2 -2
  14. package/cdn-versioned/chunks/chunk.47H4SDKN.js +2 -2
  15. package/cdn-versioned/chunks/chunk.4LGCXG7D.js +2 -2
  16. package/cdn-versioned/chunks/chunk.4P5PT6MV.js +2 -2
  17. package/cdn-versioned/chunks/chunk.5M2K2EXR.js +2 -2
  18. package/cdn-versioned/chunks/chunk.5OE2GCRH.js +2 -2
  19. package/cdn-versioned/chunks/chunk.6GU6NFBF.js +1 -1
  20. package/cdn-versioned/chunks/chunk.745GDIND.js +2 -2
  21. package/cdn-versioned/chunks/chunk.ALCKOGA7.js +1 -1
  22. package/cdn-versioned/chunks/chunk.BZ3VHECJ.js +3 -3
  23. package/cdn-versioned/chunks/chunk.C44GZOLG.js +9 -9
  24. package/cdn-versioned/chunks/chunk.C4QT4K6T.js +2 -2
  25. package/cdn-versioned/chunks/chunk.CDP46OS4.js +1 -1
  26. package/cdn-versioned/chunks/chunk.CJ34NUTS.js +1 -1
  27. package/cdn-versioned/chunks/chunk.CMY3VPYA.js +2 -2
  28. package/cdn-versioned/chunks/chunk.D5FVDNYV.js +2 -2
  29. package/cdn-versioned/chunks/chunk.DC6UQXYF.js +2 -2
  30. package/cdn-versioned/chunks/chunk.DEEJ4ON7.js +2 -2
  31. package/cdn-versioned/chunks/chunk.DXGVZ3KG.js +1 -1
  32. package/cdn-versioned/chunks/chunk.E64WXH47.js +1 -1
  33. package/cdn-versioned/chunks/chunk.EASLRW3B.js +2 -2
  34. package/cdn-versioned/chunks/chunk.G42N3VHE.js +2 -2
  35. package/cdn-versioned/chunks/chunk.GP2QVZP5.js +1 -1
  36. package/cdn-versioned/chunks/chunk.H77CNSMK.js +2 -2
  37. package/cdn-versioned/chunks/chunk.HHASCDC2.js +5 -5
  38. package/cdn-versioned/chunks/chunk.I234MSSB.js +2 -2
  39. package/cdn-versioned/chunks/chunk.I3TTTGLW.js +1 -1
  40. package/cdn-versioned/chunks/chunk.IAEOXYGB.js +1 -1
  41. package/cdn-versioned/chunks/chunk.JRSX44R6.js +2 -2
  42. package/cdn-versioned/chunks/chunk.KKKGNXIR.js +2 -2
  43. package/cdn-versioned/chunks/chunk.KM5W4EDY.js +2 -2
  44. package/cdn-versioned/chunks/chunk.L6PAHLSN.js +2 -2
  45. package/cdn-versioned/chunks/chunk.MWO5B7BA.js +2 -2
  46. package/cdn-versioned/chunks/chunk.OAVVKKBJ.js +2 -2
  47. package/cdn-versioned/chunks/chunk.OG2BQH6T.js +2 -2
  48. package/cdn-versioned/chunks/chunk.PDHMAKVQ.js +2 -2
  49. package/cdn-versioned/chunks/chunk.PPIS2HQ5.js +1 -1
  50. package/cdn-versioned/chunks/chunk.PRGLNPUF.js +1 -1
  51. package/cdn-versioned/chunks/chunk.PT6G5HKE.js +1 -1
  52. package/cdn-versioned/chunks/chunk.Q6GEIXGA.js +2 -2
  53. package/cdn-versioned/chunks/chunk.QMKNC76J.js +2 -2
  54. package/cdn-versioned/chunks/chunk.QUGI3FMS.js +2 -2
  55. package/cdn-versioned/chunks/chunk.RBVWPWFK.js +2 -2
  56. package/cdn-versioned/chunks/chunk.S4II2NTI.js +2 -2
  57. package/cdn-versioned/chunks/chunk.S7VIPIYX.js +2 -2
  58. package/cdn-versioned/chunks/chunk.TWNEU4H4.js +3 -3
  59. package/cdn-versioned/chunks/chunk.TWTQHJPN.js +2 -2
  60. package/cdn-versioned/chunks/chunk.U44PXBV2.js +2 -2
  61. package/cdn-versioned/chunks/chunk.U5N7L5RI.js +2 -2
  62. package/cdn-versioned/chunks/chunk.UVRZTPOZ.js +2 -2
  63. package/cdn-versioned/chunks/chunk.VAUP57XZ.js +2 -2
  64. package/cdn-versioned/chunks/chunk.VMUNNUNV.js +1 -1
  65. package/cdn-versioned/chunks/chunk.VTDQOKJM.js +2 -2
  66. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  67. package/cdn-versioned/chunks/chunk.WOZKICWV.js +5 -5
  68. package/cdn-versioned/chunks/chunk.XAPH6XNH.js +2 -2
  69. package/cdn-versioned/chunks/chunk.XQWDDXL2.js +2 -0
  70. package/cdn-versioned/chunks/chunk.XTRMRKZ6.js +2 -2
  71. package/cdn-versioned/chunks/chunk.Z6TAAGCD.js +2 -2
  72. package/cdn-versioned/chunks/chunk.ZTELVJ34.js +1 -1
  73. package/cdn-versioned/chunks/chunk.ZVHLKL7F.js +2 -2
  74. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  75. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  76. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  77. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  78. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  79. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  80. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  81. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  82. package/cdn-versioned/components/button/button.d.ts +1 -1
  83. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  84. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  85. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  86. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  87. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  88. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  89. package/cdn-versioned/components/combobox/combobox.js +1 -1
  90. package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
  91. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  92. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  93. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  94. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  95. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  96. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  97. package/cdn-versioned/components/header/header.d.ts +1 -1
  98. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  99. package/cdn-versioned/components/include/include.d.ts +1 -1
  100. package/cdn-versioned/components/input/input.d.ts +1 -1
  101. package/cdn-versioned/components/link/link.d.ts +1 -1
  102. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  103. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  104. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  105. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  106. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  107. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  108. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  109. package/cdn-versioned/components/option/option.d.ts +1 -1
  110. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  111. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  112. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  113. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  114. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  115. package/cdn-versioned/components/range/range.d.ts +1 -1
  116. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  117. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  118. package/cdn-versioned/components/select/select.d.ts +1 -1
  119. package/cdn-versioned/components/select/select.js +1 -1
  120. package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
  121. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  122. package/cdn-versioned/components/step/step.d.ts +1 -1
  123. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  124. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  125. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  126. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  127. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  128. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  129. package/cdn-versioned/components/tag/tag.js +1 -1
  130. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  131. package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  132. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  133. package/cdn-versioned/components/video/video.d.ts +1 -1
  134. package/cdn-versioned/custom-elements.json +244 -244
  135. package/cdn-versioned/internal/form.js +3 -3
  136. package/cdn-versioned/solid-components.bundle.js +80 -80
  137. package/cdn-versioned/solid-components.css +2 -2
  138. package/cdn-versioned/solid-components.iife.js +80 -80
  139. package/cdn-versioned/solid-components.js +1 -1
  140. package/cdn-versioned/vscode.html-custom-data.json +94 -94
  141. package/cdn-versioned/web-types.json +157 -157
  142. package/dist/chunks/{chunk.NW7LJJS2.js → chunk.L2RS3IA6.js} +7 -6
  143. package/dist/components/combobox/combobox.js +1 -1
  144. package/dist/components/select/select.js +1 -1
  145. package/dist/components/tag/tag.js +1 -1
  146. package/dist/custom-elements.json +1 -1
  147. package/dist/solid-components.js +1 -1
  148. package/dist/web-types.json +1 -1
  149. package/dist-versioned/chunks/chunk.22PWID5B.js +2 -2
  150. package/dist-versioned/chunks/chunk.2EWH2DC2.js +1 -1
  151. package/dist-versioned/chunks/chunk.2HTII44Q.js +4 -4
  152. package/dist-versioned/chunks/chunk.2VPWVTT6.js +4 -4
  153. package/dist-versioned/chunks/chunk.3EJL5IKL.js +1 -1
  154. package/dist-versioned/chunks/chunk.3PTRIEGP.js +2 -2
  155. package/dist-versioned/chunks/chunk.4UT3FCHQ.js +2 -2
  156. package/dist-versioned/chunks/chunk.5XWO3USG.js +3 -3
  157. package/dist-versioned/chunks/chunk.75WDCMIC.js +24 -24
  158. package/dist-versioned/chunks/chunk.ASEJW6QN.js +5 -5
  159. package/dist-versioned/chunks/chunk.AUSBWPVD.js +7 -7
  160. package/dist-versioned/chunks/chunk.AZPOFDJP.js +4 -4
  161. package/dist-versioned/chunks/chunk.BBLAIT57.js +2 -2
  162. package/dist-versioned/chunks/chunk.BSP6J6R2.js +2 -2
  163. package/dist-versioned/chunks/chunk.BTNS6ZNO.js +4 -4
  164. package/dist-versioned/chunks/chunk.C3WIBDGG.js +3 -3
  165. package/dist-versioned/chunks/chunk.D4UC3BVQ.js +12 -12
  166. package/dist-versioned/chunks/chunk.D7CJJHHA.js +1 -1
  167. package/dist-versioned/chunks/chunk.DCHRUIDY.js +1 -1
  168. package/dist-versioned/chunks/chunk.DCOB6WLB.js +3 -3
  169. package/dist-versioned/chunks/chunk.DFHY67LW.js +5 -5
  170. package/dist-versioned/chunks/chunk.DTTVI7KT.js +11 -11
  171. package/dist-versioned/chunks/chunk.DXDDB6AB.js +1 -1
  172. package/dist-versioned/chunks/chunk.FKFGVTXH.js +3 -3
  173. package/dist-versioned/chunks/chunk.FSUOT4WC.js +12 -12
  174. package/dist-versioned/chunks/chunk.IJIPMNT2.js +3 -3
  175. package/dist-versioned/chunks/chunk.IYXPHPNO.js +1 -1
  176. package/dist-versioned/chunks/chunk.JGRI4R23.js +1 -1
  177. package/dist-versioned/chunks/chunk.K66JHYHC.js +2 -2
  178. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  179. package/dist-versioned/chunks/{chunk.NW7LJJS2.js → chunk.L2RS3IA6.js} +13 -12
  180. package/dist-versioned/chunks/chunk.L3OEOSPQ.js +1 -1
  181. package/dist-versioned/chunks/chunk.L6ZE3RXX.js +14 -14
  182. package/dist-versioned/chunks/chunk.LBDV5GNR.js +4 -4
  183. package/dist-versioned/chunks/chunk.LZVVDTSP.js +26 -26
  184. package/dist-versioned/chunks/chunk.M2D3WWF3.js +8 -8
  185. package/dist-versioned/chunks/chunk.MH7JHBWP.js +2 -2
  186. package/dist-versioned/chunks/chunk.MLRNCOWA.js +3 -3
  187. package/dist-versioned/chunks/chunk.NEUULRS7.js +5 -5
  188. package/dist-versioned/chunks/chunk.OJXVBFUH.js +5 -5
  189. package/dist-versioned/chunks/chunk.P5FGSFP3.js +1 -1
  190. package/dist-versioned/chunks/chunk.PBXAIJQ4.js +5 -5
  191. package/dist-versioned/chunks/chunk.Q7ZMX7IB.js +3 -3
  192. package/dist-versioned/chunks/chunk.QM4E25CD.js +5 -5
  193. package/dist-versioned/chunks/chunk.R56JDQAF.js +2 -2
  194. package/dist-versioned/chunks/chunk.RFDAZXJG.js +3 -3
  195. package/dist-versioned/chunks/chunk.SCWR4Q4K.js +10 -10
  196. package/dist-versioned/chunks/chunk.SQYISG5I.js +4 -4
  197. package/dist-versioned/chunks/chunk.SVYFJMYF.js +3 -3
  198. package/dist-versioned/chunks/chunk.T46LX45D.js +6 -6
  199. package/dist-versioned/chunks/chunk.TNJNUASM.js +1 -1
  200. package/dist-versioned/chunks/chunk.TUMONDN4.js +4 -4
  201. package/dist-versioned/chunks/chunk.TVWV4PUH.js +2 -2
  202. package/dist-versioned/chunks/chunk.U2BN2DBY.js +4 -4
  203. package/dist-versioned/chunks/chunk.UDPSGKZL.js +4 -4
  204. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  205. package/dist-versioned/chunks/chunk.UPCVQSXM.js +3 -3
  206. package/dist-versioned/chunks/chunk.UWQPJU3Q.js +3 -3
  207. package/dist-versioned/chunks/chunk.XALPLS2Y.js +6 -6
  208. package/dist-versioned/chunks/chunk.XV2UO6TF.js +2 -2
  209. package/dist-versioned/chunks/chunk.YATRFNET.js +28 -28
  210. package/dist-versioned/chunks/chunk.YFRD2UEO.js +8 -8
  211. package/dist-versioned/chunks/chunk.YNBR5ZDU.js +4 -4
  212. package/dist-versioned/chunks/chunk.ZMEUQIVY.js +9 -9
  213. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  214. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  215. package/dist-versioned/components/animation/animation.d.ts +1 -1
  216. package/dist-versioned/components/audio/audio.d.ts +1 -1
  217. package/dist-versioned/components/badge/badge.d.ts +1 -1
  218. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  219. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  220. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  221. package/dist-versioned/components/button/button.d.ts +1 -1
  222. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  223. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  224. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  225. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  226. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  227. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  228. package/dist-versioned/components/combobox/combobox.js +1 -1
  229. package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
  230. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  231. package/dist-versioned/components/divider/divider.d.ts +1 -1
  232. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  233. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  234. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  235. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  236. package/dist-versioned/components/header/header.d.ts +1 -1
  237. package/dist-versioned/components/icon/icon.d.ts +1 -1
  238. package/dist-versioned/components/include/include.d.ts +1 -1
  239. package/dist-versioned/components/input/input.d.ts +1 -1
  240. package/dist-versioned/components/link/link.d.ts +1 -1
  241. package/dist-versioned/components/loader/loader.d.ts +1 -1
  242. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  243. package/dist-versioned/components/menu/menu.d.ts +1 -1
  244. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  245. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  246. package/dist-versioned/components/notification/notification.d.ts +1 -1
  247. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  248. package/dist-versioned/components/option/option.d.ts +1 -1
  249. package/dist-versioned/components/popup/popup.d.ts +1 -1
  250. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  251. package/dist-versioned/components/radio/radio.d.ts +1 -1
  252. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  253. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  254. package/dist-versioned/components/range/range.d.ts +1 -1
  255. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  256. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  257. package/dist-versioned/components/select/select.d.ts +1 -1
  258. package/dist-versioned/components/select/select.js +1 -1
  259. package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
  260. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  261. package/dist-versioned/components/step/step.d.ts +1 -1
  262. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  263. package/dist-versioned/components/switch/switch.d.ts +1 -1
  264. package/dist-versioned/components/tab/tab.d.ts +1 -1
  265. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  266. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  267. package/dist-versioned/components/tag/tag.d.ts +1 -1
  268. package/dist-versioned/components/tag/tag.js +1 -1
  269. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  270. package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  271. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  272. package/dist-versioned/components/video/video.d.ts +1 -1
  273. package/dist-versioned/custom-elements.json +244 -244
  274. package/dist-versioned/internal/form.js +3 -3
  275. package/dist-versioned/solid-components.css +2 -2
  276. package/dist-versioned/solid-components.js +1 -1
  277. package/dist-versioned/vscode.html-custom-data.json +94 -94
  278. package/dist-versioned/web-types.json +157 -157
  279. package/package.json +1 -1
  280. package/cdn/chunks/chunk.HYUIC2O6.js +0 -2
  281. package/cdn-versioned/chunks/chunk.HYUIC2O6.js +0 -2
@@ -1,2 +1,2 @@
1
- import{a as f}from"./chunk.CGQ2BPPZ.js";import{a as y}from"./chunk.IQPMMUES.js";import{a as r}from"./chunk.YFQFOIEM.js";import{a as g,b as d,c as o,d as u,h as p}from"./chunk.ALCKOGA7.js";import{b as v,e as a}from"./chunk.763RLJEK.js";import{a as h}from"./chunk.WNP2V63C.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends p{constructor(){super();this.localize=new y(this);this.hasSlotController=new f(this,"transcript");this.reversedLayout=!1;this.hideTimestamps=!1;this.animated=!1;this.inverted=!1;this.speed=1;this.currentTime=this.formatTime(0);this.duration="";this.isPlaying=!1;this.isMuted=!1;this.isTranscriptOpen=!1;this.progress=0;this.updateCurrentTime=this.updateCurrentTime.bind(this),this.handleAudioEnd=this.handleAudioEnd.bind(this),this.handleAudioProgress=this.handleAudioProgress.bind(this),this.handleAudioProgressKeydown=this.handleAudioProgressKeydown.bind(this),this.handleTranscriptDrawerToggle=this.handleTranscriptDrawerToggle.bind(this)}firstUpdated(){this.audioElement&&(this.audioElement.addEventListener("timeupdate",this.updateCurrentTime),this.audioElement.addEventListener("ended",this.handleAudioEnd),this.audioElement.setAttribute("controlsList","nodownload"),document.addEventListener("sd-after-hide",this.handleTranscriptDrawerToggle),this.audioElement.playbackRate=this.speed,this.progressSlider.tooltipFormatter=e=>this.localize.term("seconds",Number(e).toFixed(0)),this.animated&&this.initAnimation())}updated(e){if(e.has("animated")){let s=e.get("animated");!s&&this.animated?this.initAnimation():s&&!this.animated&&this.clear()}}get audioElement(){let e=this.shadowRoot.querySelector("slot");return(e==null?void 0:e.assignedElements().length)>0?e.assignedElements()[0]:null}updateCurrentTime(){if(!this.audioElement)return;let e=this.audioElement.currentTime;this.currentTime=this.formatTime(e),this.progress=e,this.progressSlider&&(this.progressSlider.value=this.progress.toString())}updateAudioDuration(){if(this.audioElement){if(isNaN(this.audioElement.duration)){setTimeout(()=>{this.updateAudioDuration()},100);return}this.duration=this.formatTime(this.audioElement.duration),this.progressSlider.max=this.audioElement.duration}}playAudio(){this.audioElement&&(this.isPlaying=!0,this.audioElement.play(),this.emit("sd-playback-start"),this.animated&&this.draw())}pauseAudio(){this.audioElement&&(this.isPlaying=!1,this.audioElement.pause(),this.emit("sd-playback-pause"),this.animated&&this.stopAnimation())}handleAudioEnd(){this.emit("sd-playback-end"),this.isPlaying=!1,this.progress=0,this.progressSlider.value="0",this.currentTime=this.formatTime(0),this.animated&&this.stopAnimation()}toggleMute(){this.audioElement&&(this.isMuted=!this.isMuted,this.isMuted?(this.emit("sd-playback-mute"),this.audioElement.muted=!0):(this.emit("sd-playback-unmute"),this.audioElement.muted=!1))}toggleMuteKeydown(e){e.key==="Enter"&&(e.preventDefault(),this.toggleMute())}togglePlaybackSpeed(){this.audioElement&&(this.emit("sd-playback-speed"),this.speed=this.speed===1.5?1:this.speed+.25,this.audioElement.playbackRate=this.speed)}togglePlaybackSpeedKeydown(e){e.key==="Enter"&&(e.preventDefault(),this.togglePlaybackSpeed())}formatTime(e){let s=Math.floor(e/60).toString().padStart(2,"0"),c=Math.floor(e%60).toString().padStart(2,"0");return`${s}:${c}`}handleAudioProgress(){if(!this.audioElement)return;let e=Number(this.progressSlider.value);this.audioElement.currentTime=e,this.progress=e,this.currentTime=this.formatTime(e)}handleAudioProgressKeydown(e){e.key==="ArrowRight"&&(this.progressSlider.value=(Number(this.progressSlider.value)+1).toString(),this.handleAudioProgress()),e.key==="ArrowLeft"&&(this.progressSlider.value=(Number(this.progressSlider.value)-1).toString(),this.handleAudioProgress())}handleTranscriptDrawerToggle(){this.isTranscriptOpen=!this.isTranscriptOpen}handleThumbGrab(){var e;(e=this.audioElement)==null||e.pause()}handleThumbRelease(){var e;this.isPlaying&&((e=this.audioElement)==null||e.play())}showTranscript(){this.emit("sd-transcript-click"),this.drawer.open=!0,this.handleTranscriptDrawerToggle()}showTranscriptKeydown(e){(e.key==="Enter"||e.key===" ")&&this.showTranscript()}rgbToHex(e){let s=e.match(/\d+/g);if((s==null?void 0:s.length)===3){let c=parseInt(s[0]),m=parseInt(s[1]),n=parseInt(s[2]),l=b=>b.toString(16).padStart(2,"0");return`#${l(c)}${l(m)}${l(n)}`.toUpperCase()}return null}onThemeChange(){this.clear(),setTimeout(this.initAnimation.bind(this),this.token("--sd-duration-fast",150))}initAnimation(){var l;let e=(l=this.canvas)==null?void 0:l.getContext("2d");if(!e)return;this.context=e;let s=this.audioPlayerContainer.querySelector(".playback-speed"),m=window.getComputedStyle(s).color,n=this.inverted?"#FFFFFF33":this.rgbToHex(m)+"33";this.waveList=[new h({canvas:this.canvas,color:n,phase:240,shift:1.5,amplitude:230,frequency:.012,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:2.5,amplitude:250,frequency:.005,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:-2.5,amplitude:250,frequency:.005,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:-1,amplitude:200,frequency:.018,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:1.5,amplitude:150,frequency:.01,damping:1})],this.animated&&this.drawStillWaves()}drawStillWaves(){this.waveList.forEach(e=>{e.redraw()})}stopAnimation(){this.isPlaying=!1}clear(){!this.context||!this.canvas||this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}async draw(){!this.isPlaying||!this.animated||(this.clear(),this.waveList.forEach(e=>{e.redraw()}),await new Promise(e=>{setTimeout(e,1e3/30)}),await this.draw())}render(){let e=a`<div class="${r("controls grid grid-cols-3 justify-items-center items-center",this.reversedLayout?"mt-2":"mb-2",!this.animated&&"relative",this.animated&&!this.reversedLayout&&"absolute -top-4 left-0 w-full")}" part="audio-controls"><button class="${r("playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-6-3-0-button ?inverted="${!!this.inverted}" part="play-button" size="lg" @click="${this.isPlaying?this.pauseAudio:this.playAudio}" aria-label="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" title="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" class="mb-4">${this.isPlaying?a`<slot name="pause-icon"><sd-6-3-0-icon class="text-xl" name="pause" library="_internal"></sd-6-3-0-icon></slot>`:a`<slot name="play-icon"><sd-6-3-0-icon class="text-xl" name="start" library="_internal"></sd-6-3-0-icon></slot>`}</sd-6-3-0-button><div class="flex items-center gap-6 justify-self-end">${this.hasSlotController.test("transcript")?a`<button class="${r("w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.isTranscriptOpen?this.localize.term("transcriptIsOpen"):this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" part="transcript"><sd-6-3-0-icon class="w-6 h-6" name="transcript" library="_internal"></sd-6-3-0-icon></button>`:null} <button class="${r("w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" part="volume" aria-label="${this.isMuted?this.localize.term("unmute"):this.localize.term("mute")}" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-6-3-0-icon class="w-6 h-6" name="${this.isMuted?"mute":"volume"}" library="_internal"></sd-6-3-0-icon></button></div></div>`,s=a`<div class="${r("w-full flex justify-between",this.reversedLayout?"mb-0.5":"mt-0.5",this.animated&&this.reversedLayout&&"absolute bottom-0 left-0 !mb-4")}" part="timestamps"><div class="${r("current-time text-sm",this.inverted?"text-primary-400":"sd-6-3-0-audio__timestamp-color-text")}">${this.currentTime}</div><div class="${r("current-time text-sm",this.inverted?"text-primary-400":"sd-6-3-0-audio__timestamp-color-text")}">${this.duration}</div></div>`;return a`<div class="${r("w-full flex relative",this.reversedLayout?"flex-col-reverse":"flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated||this.animated&&this.reversedLayout?e:null}<div class="relative">${this.animated&&!this.reversedLayout?a`${e}`:null} ${this.animated?a`<canvas class="w-full h-16 -mb-2"></canvas>`:null} ${!this.hideTimestamps&&this.animated&&this.reversedLayout?s:null}<sd-6-3-0-range part="progress-slider" tooltip="hidden" min="0" max="100" step="0.001" label="${this.localize.term("seekBar")}" @mousedown="${this.handleThumbGrab}" @touchstart="${this.handleThumbGrab}" @mouseup="${this.handleThumbRelease}" @touchend="${this.handleThumbRelease}" @sd-6-3-0-input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}"></sd-6-3-0-range></div>${this.hasSlotController.test("transcript")?a`<sd-6-3-0-drawer><slot name="transcript"></slot></sd-6-3-0-drawer>`:null} ${!this.hideTimestamps&&(!this.animated||!this.reversedLayout)?s:null}</div><sd-6-3-0-theme-listener></sd-6-3-0-theme-listener>`}};t.styles=[...p.styles,v`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- sd-6-3-0-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-spacing-12);align-items:center;justify-content:center;border-radius:var(--sd-radius-full)}sd-6-3-0-button::part(motion-wrapper){border-radius:var(--sd-radius-full)}sd-6-3-0-button::part(label){display:flex;flex-grow:0;align-items:center}sd-6-3-0-range::part(form-control-label){display:none}:host([inverted]) sd-6-3-0-range::part(thumb){outline-color:var(--color-white,#fff);background-color:rgba(var(--sd-color-border-white,rgba(var(--sd-color-white))))}:host([animated]) sd-6-3-0-range::part(track){background-color:transparent}:host([inverted]:not([animated])) sd-6-3-0-range::part(track){background-color:rgba(var(--sd-color-border-primary-400,rgba(var(--sd-color-primary-400))))}:host([inverted]:not([animated])) sd-6-3-0-range::part(active-track){background-color:rgba(var(--sd-color-border-white,rgba(var(--sd-color-white))))}`],i([d({type:Boolean,reflect:!0,attribute:"reversed-layout"})],t.prototype,"reversedLayout",2),i([d({type:Boolean,reflect:!0,attribute:"hide-timestamps"})],t.prototype,"hideTimestamps",2),i([d({type:Boolean,reflect:!0})],t.prototype,"animated",2),i([d({type:Boolean,reflect:!0})],t.prototype,"inverted",2),i([d({type:Number,reflect:!0})],t.prototype,"speed",2),i([o()],t.prototype,"currentTime",2),i([o()],t.prototype,"duration",2),i([o()],t.prototype,"isPlaying",2),i([o()],t.prototype,"isMuted",2),i([o()],t.prototype,"isTranscriptOpen",2),i([o()],t.prototype,"progress",2),i([u('[part="progress-slider"]')],t.prototype,"progressSlider",2),i([u('[part="audio-player"]')],t.prototype,"audioPlayerContainer",2),i([u("sd-6-3-0-drawer")],t.prototype,"drawer",2),i([u("canvas")],t.prototype,"canvas",2),t=i([g("sd-6-3-0-audio")],t);export{t as a};
1
+ import{a as f}from"./chunk.CGQ2BPPZ.js";import{a as y}from"./chunk.IQPMMUES.js";import{a as r}from"./chunk.YFQFOIEM.js";import{a as g,b as d,c as o,d as u,h as p}from"./chunk.ALCKOGA7.js";import{b as v,e as a}from"./chunk.763RLJEK.js";import{a as h}from"./chunk.WNP2V63C.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends p{constructor(){super();this.localize=new y(this);this.hasSlotController=new f(this,"transcript");this.reversedLayout=!1;this.hideTimestamps=!1;this.animated=!1;this.inverted=!1;this.speed=1;this.currentTime=this.formatTime(0);this.duration="";this.isPlaying=!1;this.isMuted=!1;this.isTranscriptOpen=!1;this.progress=0;this.updateCurrentTime=this.updateCurrentTime.bind(this),this.handleAudioEnd=this.handleAudioEnd.bind(this),this.handleAudioProgress=this.handleAudioProgress.bind(this),this.handleAudioProgressKeydown=this.handleAudioProgressKeydown.bind(this),this.handleTranscriptDrawerToggle=this.handleTranscriptDrawerToggle.bind(this)}firstUpdated(){this.audioElement&&(this.audioElement.addEventListener("timeupdate",this.updateCurrentTime),this.audioElement.addEventListener("ended",this.handleAudioEnd),this.audioElement.setAttribute("controlsList","nodownload"),document.addEventListener("sd-after-hide",this.handleTranscriptDrawerToggle),this.audioElement.playbackRate=this.speed,this.progressSlider.tooltipFormatter=e=>this.localize.term("seconds",Number(e).toFixed(0)),this.animated&&this.initAnimation())}updated(e){if(e.has("animated")){let s=e.get("animated");!s&&this.animated?this.initAnimation():s&&!this.animated&&this.clear()}}get audioElement(){let e=this.shadowRoot.querySelector("slot");return(e==null?void 0:e.assignedElements().length)>0?e.assignedElements()[0]:null}updateCurrentTime(){if(!this.audioElement)return;let e=this.audioElement.currentTime;this.currentTime=this.formatTime(e),this.progress=e,this.progressSlider&&(this.progressSlider.value=this.progress.toString())}updateAudioDuration(){if(this.audioElement){if(isNaN(this.audioElement.duration)){setTimeout(()=>{this.updateAudioDuration()},100);return}this.duration=this.formatTime(this.audioElement.duration),this.progressSlider.max=this.audioElement.duration}}playAudio(){this.audioElement&&(this.isPlaying=!0,this.audioElement.play(),this.emit("sd-playback-start"),this.animated&&this.draw())}pauseAudio(){this.audioElement&&(this.isPlaying=!1,this.audioElement.pause(),this.emit("sd-playback-pause"),this.animated&&this.stopAnimation())}handleAudioEnd(){this.emit("sd-playback-end"),this.isPlaying=!1,this.progress=0,this.progressSlider.value="0",this.currentTime=this.formatTime(0),this.animated&&this.stopAnimation()}toggleMute(){this.audioElement&&(this.isMuted=!this.isMuted,this.isMuted?(this.emit("sd-playback-mute"),this.audioElement.muted=!0):(this.emit("sd-playback-unmute"),this.audioElement.muted=!1))}toggleMuteKeydown(e){e.key==="Enter"&&(e.preventDefault(),this.toggleMute())}togglePlaybackSpeed(){this.audioElement&&(this.emit("sd-playback-speed"),this.speed=this.speed===1.5?1:this.speed+.25,this.audioElement.playbackRate=this.speed)}togglePlaybackSpeedKeydown(e){e.key==="Enter"&&(e.preventDefault(),this.togglePlaybackSpeed())}formatTime(e){let s=Math.floor(e/60).toString().padStart(2,"0"),c=Math.floor(e%60).toString().padStart(2,"0");return`${s}:${c}`}handleAudioProgress(){if(!this.audioElement)return;let e=Number(this.progressSlider.value);this.audioElement.currentTime=e,this.progress=e,this.currentTime=this.formatTime(e)}handleAudioProgressKeydown(e){e.key==="ArrowRight"&&(this.progressSlider.value=(Number(this.progressSlider.value)+1).toString(),this.handleAudioProgress()),e.key==="ArrowLeft"&&(this.progressSlider.value=(Number(this.progressSlider.value)-1).toString(),this.handleAudioProgress())}handleTranscriptDrawerToggle(){this.isTranscriptOpen=!this.isTranscriptOpen}handleThumbGrab(){var e;(e=this.audioElement)==null||e.pause()}handleThumbRelease(){var e;this.isPlaying&&((e=this.audioElement)==null||e.play())}showTranscript(){this.emit("sd-transcript-click"),this.drawer.open=!0,this.handleTranscriptDrawerToggle()}showTranscriptKeydown(e){(e.key==="Enter"||e.key===" ")&&this.showTranscript()}rgbToHex(e){let s=e.match(/\d+/g);if((s==null?void 0:s.length)===3){let c=parseInt(s[0]),m=parseInt(s[1]),n=parseInt(s[2]),l=b=>b.toString(16).padStart(2,"0");return`#${l(c)}${l(m)}${l(n)}`.toUpperCase()}return null}onThemeChange(){this.clear(),setTimeout(this.initAnimation.bind(this),this.token("--sd-duration-fast",150))}initAnimation(){var l;let e=(l=this.canvas)==null?void 0:l.getContext("2d");if(!e)return;this.context=e;let s=this.audioPlayerContainer.querySelector(".playback-speed"),m=window.getComputedStyle(s).color,n=this.inverted?"#FFFFFF33":this.rgbToHex(m)+"33";this.waveList=[new h({canvas:this.canvas,color:n,phase:240,shift:1.5,amplitude:230,frequency:.012,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:2.5,amplitude:250,frequency:.005,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:-2.5,amplitude:250,frequency:.005,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:-1,amplitude:200,frequency:.018,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:1.5,amplitude:150,frequency:.01,damping:1})],this.animated&&this.drawStillWaves()}drawStillWaves(){this.waveList.forEach(e=>{e.redraw()})}stopAnimation(){this.isPlaying=!1}clear(){!this.context||!this.canvas||this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}async draw(){!this.isPlaying||!this.animated||(this.clear(),this.waveList.forEach(e=>{e.redraw()}),await new Promise(e=>{setTimeout(e,1e3/30)}),await this.draw())}render(){let e=a`<div class="${r("controls grid grid-cols-3 justify-items-center items-center",this.reversedLayout?"mt-2":"mb-2",!this.animated&&"relative",this.animated&&!this.reversedLayout&&"absolute -top-4 left-0 w-full")}" part="audio-controls"><button class="${r("playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-6-4-1-button ?inverted="${!!this.inverted}" part="play-button" size="lg" @click="${this.isPlaying?this.pauseAudio:this.playAudio}" aria-label="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" title="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" class="mb-4">${this.isPlaying?a`<slot name="pause-icon"><sd-6-4-1-icon class="text-xl" name="pause" library="_internal"></sd-6-4-1-icon></slot>`:a`<slot name="play-icon"><sd-6-4-1-icon class="text-xl" name="start" library="_internal"></sd-6-4-1-icon></slot>`}</sd-6-4-1-button><div class="flex items-center gap-6 justify-self-end">${this.hasSlotController.test("transcript")?a`<button class="${r("w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.isTranscriptOpen?this.localize.term("transcriptIsOpen"):this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" part="transcript"><sd-6-4-1-icon class="w-6 h-6" name="transcript" library="_internal"></sd-6-4-1-icon></button>`:null} <button class="${r("w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" part="volume" aria-label="${this.isMuted?this.localize.term("unmute"):this.localize.term("mute")}" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-6-4-1-icon class="w-6 h-6" name="${this.isMuted?"mute":"volume"}" library="_internal"></sd-6-4-1-icon></button></div></div>`,s=a`<div class="${r("w-full flex justify-between",this.reversedLayout?"mb-0.5":"mt-0.5",this.animated&&this.reversedLayout&&"absolute bottom-0 left-0 !mb-4")}" part="timestamps"><div class="${r("current-time text-sm",this.inverted?"text-primary-400":"sd-6-4-1-audio__timestamp-color-text")}">${this.currentTime}</div><div class="${r("current-time text-sm",this.inverted?"text-primary-400":"sd-6-4-1-audio__timestamp-color-text")}">${this.duration}</div></div>`;return a`<div class="${r("w-full flex relative",this.reversedLayout?"flex-col-reverse":"flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated||this.animated&&this.reversedLayout?e:null}<div class="relative">${this.animated&&!this.reversedLayout?a`${e}`:null} ${this.animated?a`<canvas class="w-full h-16 -mb-2"></canvas>`:null} ${!this.hideTimestamps&&this.animated&&this.reversedLayout?s:null}<sd-6-4-1-range part="progress-slider" tooltip="hidden" min="0" max="100" step="0.001" label="${this.localize.term("seekBar")}" @mousedown="${this.handleThumbGrab}" @touchstart="${this.handleThumbGrab}" @mouseup="${this.handleThumbRelease}" @touchend="${this.handleThumbRelease}" @sd-6-4-1-input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}"></sd-6-4-1-range></div>${this.hasSlotController.test("transcript")?a`<sd-6-4-1-drawer><slot name="transcript"></slot></sd-6-4-1-drawer>`:null} ${!this.hideTimestamps&&(!this.animated||!this.reversedLayout)?s:null}</div><sd-6-4-1-theme-listener></sd-6-4-1-theme-listener>`}};t.styles=[...p.styles,v`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ sd-6-4-1-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-spacing-12);align-items:center;justify-content:center;border-radius:var(--sd-radius-full)}sd-6-4-1-button::part(motion-wrapper){border-radius:var(--sd-radius-full)}sd-6-4-1-button::part(label){display:flex;flex-grow:0;align-items:center}sd-6-4-1-range::part(form-control-label){display:none}:host([inverted]) sd-6-4-1-range::part(thumb){outline-color:var(--color-white,#fff);background-color:rgba(var(--sd-color-border-white,rgba(var(--sd-color-white))))}:host([animated]) sd-6-4-1-range::part(track){background-color:transparent}:host([inverted]:not([animated])) sd-6-4-1-range::part(track){background-color:rgba(var(--sd-color-border-primary-400,rgba(var(--sd-color-primary-400))))}:host([inverted]:not([animated])) sd-6-4-1-range::part(active-track){background-color:rgba(var(--sd-color-border-white,rgba(var(--sd-color-white))))}`],i([d({type:Boolean,reflect:!0,attribute:"reversed-layout"})],t.prototype,"reversedLayout",2),i([d({type:Boolean,reflect:!0,attribute:"hide-timestamps"})],t.prototype,"hideTimestamps",2),i([d({type:Boolean,reflect:!0})],t.prototype,"animated",2),i([d({type:Boolean,reflect:!0})],t.prototype,"inverted",2),i([d({type:Number,reflect:!0})],t.prototype,"speed",2),i([o()],t.prototype,"currentTime",2),i([o()],t.prototype,"duration",2),i([o()],t.prototype,"isPlaying",2),i([o()],t.prototype,"isMuted",2),i([o()],t.prototype,"isTranscriptOpen",2),i([o()],t.prototype,"progress",2),i([u('[part="progress-slider"]')],t.prototype,"progressSlider",2),i([u('[part="audio-player"]')],t.prototype,"audioPlayerContainer",2),i([u("sd-6-4-1-drawer")],t.prototype,"drawer",2),i([u("canvas")],t.prototype,"canvas",2),t=i([g("sd-6-4-1-audio")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as v}from"./chunk.IQPMMUES.js";import{a as g}from"./chunk.YFQFOIEM.js";import{a as b,b as f,c,d as o,h}from"./chunk.ALCKOGA7.js";import{b as m,e as u}from"./chunk.763RLJEK.js";import{e as s}from"./chunk.6EV4YU6C.js";var e=class extends h{constructor(){super(...arguments);this.localize=new v(this);this.label="";this.itemPositionsCached=!1;this.isTruncated=!1}get items(){return this.querySelectorAll("sd-6-3-0-breadcrumb-item")}cacheItemPositions(){this.items.forEach(t=>{let{width:r}=t.getBoundingClientRect();t.dataset.size=`${r}`}),this.itemPositionsCached=!0}handleTruncation(){var a;if(document.documentElement.clientWidth<=1024)return;let{width:t}=this.base.getBoundingClientRect(),{width:r}=this.truncated.getBoundingClientRect();this.itemPositionsCached||this.cacheItemPositions(),this.dropdown.innerHTML="",this.isTruncated=!1;let n=0;for(let[p,i]of Array.from(this.items).reverse().entries()){let l=parseFloat(`${(a=i.dataset.size)!=null?a:i.getBoundingClientRect().width}`);if(i.hidden=!1,this.isTruncated){let d=i.cloneNode(!0);this.dropdown.prepend(d),i.hidden=!0;continue}if(p===0||p===1){n+=l;continue}if(this.isTruncated=n+l+r>t,this.isTruncated){let d=i.cloneNode(!0);this.dropdown.prepend(d),i.hidden=!0}else n+=l}}handleMobileChevron(){var r,n,a;let t=document.createElement("sd-6-3-0-icon");t.setAttribute("slot","icon-left"),t.setAttribute("library","_internal"),t.setAttribute("name","chevron-left"),t.setAttribute("class","text-base me-1 lg:hidden"),(a=(n=(r=Array.from(this.items).at(-2))==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("sd-6-3-0-link"))==null||a.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-6-3-0-dropdown part="truncated" class="${g(!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-6-3-0-dropdown><ol part="list" class="flex items-center"><slot @slotchange="${this.handleSlotChange}"></slot></ol></nav>`}};e.styles=[...h.styles,m`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{position:relative;display:block}::slotted(sd-6-3-0-breadcrumb-item:not(:last-of-type))::after,sd-6-3-0-dropdown::after{margin-inline:var(--sd-spacing-2);display:none;height:var(--sd-spacing-1);width:var(--sd-spacing-1);border-radius:var(--sd-radius-full);background-color:rgba(var(--sd-breadcrumb__separator-color,rgba(var(--sd-color-neutral-400))));--tw-content:'';content:var(--tw-content)}@media (width >= 64rem){::slotted(sd-6-3-0-breadcrumb-item:not(:last-of-type))::after,sd-6-3-0-dropdown::after{display:inline-block}}::slotted(sd-6-3-0-breadcrumb-item:nth-last-child(2)){display:flex}@media (width >= 64rem){::slotted(sd-6-3-0-breadcrumb-item:nth-last-child(2))::after{background-color:rgba(var(--sd-color-background-accent))}}::slotted(sd-6-3-0-breadcrumb-item),sd-6-3-0-dropdown{display:none;align-items:center;font-size:var(--sd-text-sm);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25 / .875)))}@media (width >= 64rem){::slotted(sd-6-3-0-breadcrumb-item),sd-6-3-0-dropdown{display:flex}}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],s([o('[part="base"]')],e.prototype,"base",2),s([o('[part="truncated"]')],e.prototype,"truncated",2),s([o('[part="truncated-dropdown"]')],e.prototype,"dropdown",2),s([o("slot")],e.prototype,"defaultSlot",2),s([f({type:String,reflect:!0})],e.prototype,"label",2),s([c()],e.prototype,"itemPositionsCached",2),s([c()],e.prototype,"isTruncated",2),e=s([b("sd-6-3-0-breadcrumb")],e);export{e as a};
1
+ import{a as v}from"./chunk.IQPMMUES.js";import{a as g}from"./chunk.YFQFOIEM.js";import{a as b,b as f,c,d as o,h}from"./chunk.ALCKOGA7.js";import{b as m,e as u}from"./chunk.763RLJEK.js";import{e as s}from"./chunk.6EV4YU6C.js";var e=class extends h{constructor(){super(...arguments);this.localize=new v(this);this.label="";this.itemPositionsCached=!1;this.isTruncated=!1}get items(){return this.querySelectorAll("sd-6-4-1-breadcrumb-item")}cacheItemPositions(){this.items.forEach(t=>{let{width:r}=t.getBoundingClientRect();t.dataset.size=`${r}`}),this.itemPositionsCached=!0}handleTruncation(){var a;if(document.documentElement.clientWidth<=1024)return;let{width:t}=this.base.getBoundingClientRect(),{width:r}=this.truncated.getBoundingClientRect();this.itemPositionsCached||this.cacheItemPositions(),this.dropdown.innerHTML="",this.isTruncated=!1;let n=0;for(let[p,i]of Array.from(this.items).reverse().entries()){let l=parseFloat(`${(a=i.dataset.size)!=null?a:i.getBoundingClientRect().width}`);if(i.hidden=!1,this.isTruncated){let d=i.cloneNode(!0);this.dropdown.prepend(d),i.hidden=!0;continue}if(p===0||p===1){n+=l;continue}if(this.isTruncated=n+l+r>t,this.isTruncated){let d=i.cloneNode(!0);this.dropdown.prepend(d),i.hidden=!0}else n+=l}}handleMobileChevron(){var r,n,a;let t=document.createElement("sd-6-4-1-icon");t.setAttribute("slot","icon-left"),t.setAttribute("library","_internal"),t.setAttribute("name","chevron-left"),t.setAttribute("class","text-base me-1 lg:hidden"),(a=(n=(r=Array.from(this.items).at(-2))==null?void 0:r.shadowRoot)==null?void 0:n.querySelector("sd-6-4-1-link"))==null||a.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-6-4-1-dropdown part="truncated" class="${g(!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-6-4-1-dropdown><ol part="list" class="flex items-center"><slot @slotchange="${this.handleSlotChange}"></slot></ol></nav>`}};e.styles=[...h.styles,m`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{position:relative;display:block}::slotted(sd-6-4-1-breadcrumb-item:not(:last-of-type))::after,sd-6-4-1-dropdown::after{margin-inline:var(--sd-spacing-2);display:none;height:var(--sd-spacing-1);width:var(--sd-spacing-1);border-radius:var(--sd-radius-full);background-color:rgba(var(--sd-breadcrumb__separator-color,rgba(var(--sd-color-neutral-400))));--tw-content:'';content:var(--tw-content)}@media (width >= 64rem){::slotted(sd-6-4-1-breadcrumb-item:not(:last-of-type))::after,sd-6-4-1-dropdown::after{display:inline-block}}::slotted(sd-6-4-1-breadcrumb-item:nth-last-child(2)){display:flex}@media (width >= 64rem){::slotted(sd-6-4-1-breadcrumb-item:nth-last-child(2))::after{background-color:rgba(var(--sd-color-background-accent))}}::slotted(sd-6-4-1-breadcrumb-item),sd-6-4-1-dropdown{display:none;align-items:center;font-size:var(--sd-text-sm);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25 / .875)))}@media (width >= 64rem){::slotted(sd-6-4-1-breadcrumb-item),sd-6-4-1-dropdown{display:flex}}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],s([o('[part="base"]')],e.prototype,"base",2),s([o('[part="truncated"]')],e.prototype,"truncated",2),s([o('[part="truncated-dropdown"]')],e.prototype,"dropdown",2),s([o("slot")],e.prototype,"defaultSlot",2),s([f({type:String,reflect:!0})],e.prototype,"label",2),s([c()],e.prototype,"itemPositionsCached",2),s([c()],e.prototype,"isTruncated",2),e=s([b("sd-6-4-1-breadcrumb")],e);export{e as a};
@@ -1,2 +1,2 @@
1
- import{a as m,b as g,c as b,d as h,h as u}from"./chunk.ALCKOGA7.js";import{b as d,e as c}from"./chunk.763RLJEK.js";import{e as l}from"./chunk.6EV4YU6C.js";var s=class extends u{constructor(){super(...arguments);this.disableRole=!1;this.label=""}handleFocus(e){let t=a(e.target);t==null||t.classList.add("sd-6-3-0-button-group__button--focus")}handleBlur(e){let t=a(e.target);t==null||t.classList.remove("sd-6-3-0-button-group__button--focus")}handleMouseOver(e){let t=a(e.target);t==null||t.classList.add("sd-6-3-0-button-group__button--hover")}handleMouseOut(e){let t=a(e.target);t==null||t.classList.remove("sd-6-3-0-button-group__button--hover")}handleSlotChange(){let e=[...this.defaultSlot.assignedElements({flatten:!0})];e.forEach(t=>{let n=e.indexOf(t),o=a(t);o!==null&&(o.classList.add("sd-6-3-0-button-group__button"),o.classList.toggle("sd-6-3-0-button-group__button--first",n===0),o.classList.toggle("sd-6-3-0-button-group__button--inner",n>0&&n<e.length-1),o.classList.toggle("sd-6-3-0-button-group__button--last",n===e.length-1),o.classList.toggle("sd-6-3-0-button-group__button--radio",o.tagName.toLowerCase()==="sd-6-3-0-radio-button"))})}render(){return c`<slot part="base" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};s.styles=[...u.styles,d`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{display:inline-block}[part=base]{display:flex;flex-wrap:nowrap}`],l([h("slot")],s.prototype,"defaultSlot",2),l([b()],s.prototype,"disableRole",2),l([g({type:String,reflect:!0})],s.prototype,"label",2),s=l([m("sd-6-3-0-button-group")],s);function a(r){var e;let i="sd-6-3-0-button, sd-6-3-0-radio-button";return(e=r.closest(i))!=null?e:r.querySelector(i)}export{s as a};
1
+ import{a as m,b as g,c as b,d as h,h as u}from"./chunk.ALCKOGA7.js";import{b as d,e as c}from"./chunk.763RLJEK.js";import{e as l}from"./chunk.6EV4YU6C.js";var s=class extends u{constructor(){super(...arguments);this.disableRole=!1;this.label=""}handleFocus(e){let t=a(e.target);t==null||t.classList.add("sd-6-4-1-button-group__button--focus")}handleBlur(e){let t=a(e.target);t==null||t.classList.remove("sd-6-4-1-button-group__button--focus")}handleMouseOver(e){let t=a(e.target);t==null||t.classList.add("sd-6-4-1-button-group__button--hover")}handleMouseOut(e){let t=a(e.target);t==null||t.classList.remove("sd-6-4-1-button-group__button--hover")}handleSlotChange(){let e=[...this.defaultSlot.assignedElements({flatten:!0})];e.forEach(t=>{let n=e.indexOf(t),o=a(t);o!==null&&(o.classList.add("sd-6-4-1-button-group__button"),o.classList.toggle("sd-6-4-1-button-group__button--first",n===0),o.classList.toggle("sd-6-4-1-button-group__button--inner",n>0&&n<e.length-1),o.classList.toggle("sd-6-4-1-button-group__button--last",n===e.length-1),o.classList.toggle("sd-6-4-1-button-group__button--radio",o.tagName.toLowerCase()==="sd-6-4-1-radio-button"))})}render(){return c`<slot part="base" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};s.styles=[...u.styles,d`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:inline-block}[part=base]{display:flex;flex-wrap:nowrap}`],l([h("slot")],s.prototype,"defaultSlot",2),l([b()],s.prototype,"disableRole",2),l([g({type:String,reflect:!0})],s.prototype,"label",2),s=l([m("sd-6-4-1-button-group")],s);function a(r){var e;let i="sd-6-4-1-button, sd-6-4-1-radio-button";return(e=r.closest(i))!=null?e:r.querySelector(i)}export{s as a};
@@ -1,2 +1,2 @@
1
1
  import{a as n}from"./chunk.YFQFOIEM.js";import{a as i,b as a,h as r}from"./chunk.ALCKOGA7.js";import{b as l,e as s}from"./chunk.763RLJEK.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends r{constructor(){super(...arguments);this.variant="rectangular"}render(){return s`<div part="base" aria-hidden="true" class="${n("bg-neutral-200 w-full h-full animate-pulse",{rectangular:"rounded-sm",circular:"rounded-full inline-block"}[this.variant])}"><slot></slot></div>`}};t.styles=[...r.styles,l`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{display:block}::slotted(*){visibility:hidden}`],e([a({type:String,reflect:!0})],t.prototype,"variant",2),t=e([i("sd-6-3-0-skeleton")],t);export{t as a};
2
+ :host{display:block}::slotted(*){visibility:hidden}`],e([a({type:String,reflect:!0})],t.prototype,"variant",2),t=e([i("sd-6-4-1-skeleton")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as C}from"./chunk.2AQOPKKH.js";import{a as M}from"./chunk.G7HKVXLR.js";import{a as y,b as v}from"./chunk.3L472FD4.js";import{a as f}from"./chunk.PV6UYBMY.js";import{a as k}from"./chunk.CGQ2BPPZ.js";import{a,c as s}from"./chunk.B2NUKX6G.js";import{a as m}from"./chunk.KLRPP4NQ.js";import{a as x}from"./chunk.IQPMMUES.js";import{a as p}from"./chunk.YFQFOIEM.js";import{a as b}from"./chunk.NYKJXI3Q.js";import{a as w,b as h,d as c,h as u}from"./chunk.ALCKOGA7.js";import{b as g,e as l}from"./chunk.763RLJEK.js";import{b as n,e as d}from"./chunk.W4QBFD6E.js";import{e as o}from"./chunk.6EV4YU6C.js";var t=class extends u{constructor(){super(...arguments);this.hasSlotController=new k(this,"footer");this.localize=new x(this);this.open=!1;this.headline="";this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new C(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),y(this))}disconnectedCallback(){super.disconnectedCallback(),v(this)}get prefersReducedMotion(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}requestClose(e){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:e}}).defaultPrevented){let i=s(this,"dialog.denyClose",{dir:this.localize.dir()});n(this.panel,i.keyframes,i.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(e){this.open&&e.key==="Escape"&&(e.stopPropagation(),this.requestClose("keyboard"))}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=M(),this.modal.activate(),y(this);let e=this.querySelector("[autofocus]");e&&e.removeAttribute("autofocus"),await Promise.all([d(this.dialog),d(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(e?e.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),e&&e.setAttribute("autofocus","")});let r=this.prefersReducedMotion?s(this,"dialog.showReducedMotion",{dir:this.localize.dir()}):s(this,"dialog.show",{dir:this.localize.dir()}),i=s(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([n(this.panel,r.keyframes,r.options),n(this.overlay,i.keyframes,i.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([d(this.dialog),d(this.overlay)]);let e=this.prefersReducedMotion?s(this,"dialog.hideReducedMotion",{dir:this.localize.dir()}):s(this,"dialog.hide",{dir:this.localize.dir()}),r=s(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([n(this.overlay,r.keyframes,r.options).then(()=>{this.overlay.hidden=!0}),n(this.panel,e.keyframes,e.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,v(this);let i=this.originalTrigger;typeof(i==null?void 0:i.focus)=="function"&&i.isConnected&&setTimeout(()=>{try{i.focus({preventScroll:!0})}catch(L){i.focus()}this.originalTrigger=null}),this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,m(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,m(this,"sd-after-hide")}render(){return l`<div part="base" class="${p("flex items-center justify-center fixed inset-0 z-dialog",this.hasSlotController.test("footer")&&"dialog--has-footer")}"><div part="overlay" class="fixed inset-0 overlay-color-background opacity-90" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${p("panel-color-border border flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted overflow-y-auto",this.open&&"flex opacity-100")}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-label="${f(this.headline?this.headline:void 0)}" aria-labelledby="${f(this.headline?void 0:"title")}" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length>0?l`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>`:l`<slot name="headline"></slot>`}</h2>${this.noCloseButton?"":l`<sd-6-3-0-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${p("absolute top-2 right-2")}" name="x-lg" @click="${()=>this.requestClose("close-button")}" type="button"><sd-6-3-0-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-6-3-0-icon></sd-6-3-0-button>`}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`}};t.styles=[...u.styles,g`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{--width:662px}[part=panel]{width:var(--width);max-height:80vh}[part=body]{-webkit-overflow-scrolling:touch}@media (max-width:414px){:host{--width:335px}[part=body]{min-height:50px}[part=footer]{width:100%}}`],o([c('[part="base"]')],t.prototype,"dialog",2),o([c('[part="panel"]')],t.prototype,"panel",2),o([c('[part="overlay"]')],t.prototype,"overlay",2),o([h({type:Boolean,reflect:!0})],t.prototype,"open",2),o([h({type:String,reflect:!0})],t.prototype,"headline",2),o([h({attribute:"no-close-button",type:Boolean,reflect:!0})],t.prototype,"noCloseButton",2),o([b("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),t=o([w("sd-6-3-0-dialog")],t);a("dialog.show",{keyframes:[{opacity:0,transform:"translate(-50%, 100%)"},{opacity:1,transform:"translate(0, 0)"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});a("dialog.showReducedMotion",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});a("dialog.hide",{keyframes:[{opacity:1,transform:"translate(0, 0)"},{opacity:0,transform:"translate(50%, -100%)"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});a("dialog.hideReducedMotion",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});a("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});a("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});a("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});export{t as a};
1
+ import{a as C}from"./chunk.2AQOPKKH.js";import{a as M}from"./chunk.G7HKVXLR.js";import{a as y,b as v}from"./chunk.3L472FD4.js";import{a as f}from"./chunk.PV6UYBMY.js";import{a as k}from"./chunk.CGQ2BPPZ.js";import{a,c as s}from"./chunk.B2NUKX6G.js";import{a as m}from"./chunk.KLRPP4NQ.js";import{a as x}from"./chunk.IQPMMUES.js";import{a as p}from"./chunk.YFQFOIEM.js";import{a as b}from"./chunk.NYKJXI3Q.js";import{a as w,b as h,d as c,h as u}from"./chunk.ALCKOGA7.js";import{b as g,e as l}from"./chunk.763RLJEK.js";import{b as n,e as d}from"./chunk.W4QBFD6E.js";import{e as o}from"./chunk.6EV4YU6C.js";var t=class extends u{constructor(){super(...arguments);this.hasSlotController=new k(this,"footer");this.localize=new x(this);this.open=!1;this.headline="";this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new C(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),y(this))}disconnectedCallback(){super.disconnectedCallback(),v(this)}get prefersReducedMotion(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}requestClose(e){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:e}}).defaultPrevented){let i=s(this,"dialog.denyClose",{dir:this.localize.dir()});n(this.panel,i.keyframes,i.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(e){this.open&&e.key==="Escape"&&(e.stopPropagation(),this.requestClose("keyboard"))}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=M(),this.modal.activate(),y(this);let e=this.querySelector("[autofocus]");e&&e.removeAttribute("autofocus"),await Promise.all([d(this.dialog),d(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(e?e.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),e&&e.setAttribute("autofocus","")});let r=this.prefersReducedMotion?s(this,"dialog.showReducedMotion",{dir:this.localize.dir()}):s(this,"dialog.show",{dir:this.localize.dir()}),i=s(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([n(this.panel,r.keyframes,r.options),n(this.overlay,i.keyframes,i.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([d(this.dialog),d(this.overlay)]);let e=this.prefersReducedMotion?s(this,"dialog.hideReducedMotion",{dir:this.localize.dir()}):s(this,"dialog.hide",{dir:this.localize.dir()}),r=s(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([n(this.overlay,r.keyframes,r.options).then(()=>{this.overlay.hidden=!0}),n(this.panel,e.keyframes,e.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,v(this);let i=this.originalTrigger;typeof(i==null?void 0:i.focus)=="function"&&i.isConnected&&setTimeout(()=>{try{i.focus({preventScroll:!0})}catch(L){i.focus()}this.originalTrigger=null}),this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,m(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,m(this,"sd-after-hide")}render(){return l`<div part="base" class="${p("flex items-center justify-center fixed inset-0 z-dialog",this.hasSlotController.test("footer")&&"dialog--has-footer")}"><div part="overlay" class="fixed inset-0 overlay-color-background opacity-90" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${p("panel-color-border border flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted overflow-y-auto",this.open&&"flex opacity-100")}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-label="${f(this.headline?this.headline:void 0)}" aria-labelledby="${f(this.headline?void 0:"title")}" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length>0?l`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>`:l`<slot name="headline"></slot>`}</h2>${this.noCloseButton?"":l`<sd-6-4-1-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${p("absolute top-2 right-2")}" name="x-lg" @click="${()=>this.requestClose("close-button")}" type="button"><sd-6-4-1-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-6-4-1-icon></sd-6-4-1-button>`}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`}};t.styles=[...u.styles,g`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{--width:662px}[part=panel]{width:var(--width);max-height:80vh}[part=body]{-webkit-overflow-scrolling:touch}@media (max-width:414px){:host{--width:335px}[part=body]{min-height:50px}[part=footer]{width:100%}}`],o([c('[part="base"]')],t.prototype,"dialog",2),o([c('[part="panel"]')],t.prototype,"panel",2),o([c('[part="overlay"]')],t.prototype,"overlay",2),o([h({type:Boolean,reflect:!0})],t.prototype,"open",2),o([h({type:String,reflect:!0})],t.prototype,"headline",2),o([h({attribute:"no-close-button",type:Boolean,reflect:!0})],t.prototype,"noCloseButton",2),o([b("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),t=o([w("sd-6-4-1-dialog")],t);a("dialog.show",{keyframes:[{opacity:0,transform:"translate(-50%, 100%)"},{opacity:1,transform:"translate(0, 0)"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});a("dialog.showReducedMotion",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});a("dialog.hide",{keyframes:[{opacity:1,transform:"translate(0, 0)"},{opacity:0,transform:"translate(50%, -100%)"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});a("dialog.hideReducedMotion",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});a("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});a("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});a("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});export{t as a};