@solid-design-system/components 7.0.0-next.8 → 7.0.0-next.9

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 (268) hide show
  1. package/cdn/custom-elements.json +184 -184
  2. package/cdn/solid-components.js +1 -1
  3. package/cdn/vscode.html-custom-data.json +27 -27
  4. package/cdn/web-types.json +53 -53
  5. package/cdn-versioned/chunks/chunk.2XFIFYRX.js +2 -2
  6. package/cdn-versioned/chunks/chunk.3RDG7HQT.js +2 -2
  7. package/cdn-versioned/chunks/chunk.3VTWQPQB.js +2 -2
  8. package/cdn-versioned/chunks/chunk.55B57RXL.js +2 -2
  9. package/cdn-versioned/chunks/chunk.5B33ZALC.js +1 -1
  10. package/cdn-versioned/chunks/chunk.6A2XPA27.js +2 -2
  11. package/cdn-versioned/chunks/chunk.6JKZ63QX.js +2 -2
  12. package/cdn-versioned/chunks/chunk.7O3WO7T4.js +1 -1
  13. package/cdn-versioned/chunks/chunk.7USKB2GO.js +2 -2
  14. package/cdn-versioned/chunks/chunk.ARA5JW32.js +2 -2
  15. package/cdn-versioned/chunks/chunk.B4BAFEZE.js +2 -2
  16. package/cdn-versioned/chunks/chunk.C45254AN.js +2 -2
  17. package/cdn-versioned/chunks/chunk.CQI2RS2L.js +2 -2
  18. package/cdn-versioned/chunks/chunk.CVB6PQL3.js +5 -5
  19. package/cdn-versioned/chunks/chunk.CWRWVUT3.js +2 -2
  20. package/cdn-versioned/chunks/chunk.DEC3VKXA.js +2 -2
  21. package/cdn-versioned/chunks/chunk.DFCHDZDG.js +2 -2
  22. package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
  23. package/cdn-versioned/chunks/chunk.FCBNIOWP.js +2 -2
  24. package/cdn-versioned/chunks/chunk.FPC4KJUF.js +1 -1
  25. package/cdn-versioned/chunks/chunk.GX5EMWG2.js +2 -2
  26. package/cdn-versioned/chunks/chunk.H5ODW4DI.js +2 -2
  27. package/cdn-versioned/chunks/chunk.HS3Q3NPY.js +2 -2
  28. package/cdn-versioned/chunks/chunk.J663MKB4.js +2 -2
  29. package/cdn-versioned/chunks/chunk.J7SSJXR3.js +1 -1
  30. package/cdn-versioned/chunks/chunk.JTBZGOCE.js +2 -2
  31. package/cdn-versioned/chunks/chunk.KDTVJE37.js +2 -2
  32. package/cdn-versioned/chunks/chunk.KITZT7MU.js +1 -1
  33. package/cdn-versioned/chunks/chunk.KZLMAANO.js +1 -1
  34. package/cdn-versioned/chunks/chunk.LM5SJXYL.js +2 -2
  35. package/cdn-versioned/chunks/chunk.LPOPOGGB.js +2 -2
  36. package/cdn-versioned/chunks/chunk.LYJX2BW7.js +2 -2
  37. package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
  38. package/cdn-versioned/chunks/chunk.MIROXJW4.js +2 -2
  39. package/cdn-versioned/chunks/chunk.N2PGOHWH.js +2 -2
  40. package/cdn-versioned/chunks/chunk.NISL6W7W.js +2 -2
  41. package/cdn-versioned/chunks/chunk.NOW64QHB.js +2 -2
  42. package/cdn-versioned/chunks/chunk.NSAUFZ4I.js +3 -3
  43. package/cdn-versioned/chunks/chunk.OFLEA353.js +10 -10
  44. package/cdn-versioned/chunks/chunk.OKAUTL3G.js +2 -2
  45. package/cdn-versioned/chunks/chunk.OR64TDYE.js +2 -2
  46. package/cdn-versioned/chunks/chunk.OYCIMCNH.js +2 -2
  47. package/cdn-versioned/chunks/chunk.PUC7BGPD.js +2 -2
  48. package/cdn-versioned/chunks/chunk.QXTQ4QBZ.js +5 -5
  49. package/cdn-versioned/chunks/chunk.RFVQLD5K.js +2 -2
  50. package/cdn-versioned/chunks/chunk.RGSF2XLM.js +2 -2
  51. package/cdn-versioned/chunks/chunk.RJIOLFBG.js +2 -2
  52. package/cdn-versioned/chunks/chunk.RSP57JUX.js +2 -2
  53. package/cdn-versioned/chunks/chunk.S63R2AXT.js +3 -3
  54. package/cdn-versioned/chunks/chunk.SVZV3YHZ.js +1 -1
  55. package/cdn-versioned/chunks/chunk.TS6S25HT.js +2 -2
  56. package/cdn-versioned/chunks/chunk.U2TVO27N.js +2 -2
  57. package/cdn-versioned/chunks/chunk.U3X6ZYRC.js +2 -2
  58. package/cdn-versioned/chunks/chunk.UFWE6XC3.js +2 -2
  59. package/cdn-versioned/chunks/chunk.UPV2DLDG.js +2 -2
  60. package/cdn-versioned/chunks/chunk.V3TQLJF2.js +1 -1
  61. package/cdn-versioned/chunks/chunk.VAQE66S7.js +2 -2
  62. package/cdn-versioned/chunks/chunk.VSIBCI2V.js +2 -2
  63. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  64. package/cdn-versioned/chunks/chunk.WHDOGCAD.js +1 -1
  65. package/cdn-versioned/chunks/chunk.WIAQ2X73.js +2 -2
  66. package/cdn-versioned/chunks/chunk.WWHH2NDP.js +2 -2
  67. package/cdn-versioned/chunks/chunk.WZS3PEEQ.js +2 -2
  68. package/cdn-versioned/chunks/chunk.XHWQ4DCO.js +2 -2
  69. package/cdn-versioned/chunks/chunk.YAT66EQJ.js +3 -3
  70. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  71. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  72. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  73. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  74. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  75. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  76. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  77. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  78. package/cdn-versioned/components/button/button.d.ts +1 -1
  79. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  80. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  81. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  82. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  83. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  84. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  85. package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
  86. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  87. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  88. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  89. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  90. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  91. package/cdn-versioned/components/file-selector/file-selector.d.ts +1 -1
  92. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  93. package/cdn-versioned/components/header/header.d.ts +1 -1
  94. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  95. package/cdn-versioned/components/include/include.d.ts +1 -1
  96. package/cdn-versioned/components/input/input.d.ts +1 -1
  97. package/cdn-versioned/components/link/link.d.ts +1 -1
  98. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  99. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  100. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  101. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  102. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  103. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  104. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  105. package/cdn-versioned/components/option/option.d.ts +1 -1
  106. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  107. package/cdn-versioned/components/progress-bar/progress-bar.d.ts +1 -1
  108. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  109. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  110. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  111. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  112. package/cdn-versioned/components/range/range.d.ts +1 -1
  113. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  114. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  115. package/cdn-versioned/components/select/select.d.ts +1 -1
  116. package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
  117. package/cdn-versioned/components/step/step.d.ts +1 -1
  118. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  119. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  120. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  121. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  122. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  123. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  124. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  125. package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  126. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  127. package/cdn-versioned/components/video/video.d.ts +1 -1
  128. package/cdn-versioned/custom-elements.json +447 -447
  129. package/cdn-versioned/internal/form.js +2 -2
  130. package/cdn-versioned/solid-components.bundle.js +81 -81
  131. package/cdn-versioned/solid-components.css +3 -3
  132. package/cdn-versioned/solid-components.iife.js +81 -81
  133. package/cdn-versioned/solid-components.js +1 -1
  134. package/cdn-versioned/vscode.html-custom-data.json +141 -141
  135. package/cdn-versioned/web-types.json +224 -224
  136. package/dist/custom-elements.json +1 -1
  137. package/dist/solid-components.js +7 -7
  138. package/dist/web-types.json +1 -1
  139. package/dist-versioned/chunks/chunk.266V4W27.js +11 -11
  140. package/dist-versioned/chunks/chunk.2ZO5TQLM.js +4 -4
  141. package/dist-versioned/chunks/chunk.33KST4RJ.js +1 -1
  142. package/dist-versioned/chunks/chunk.3JGMLVGL.js +3 -3
  143. package/dist-versioned/chunks/chunk.3MGF33VU.js +2 -2
  144. package/dist-versioned/chunks/chunk.3Y3V2LY4.js +5 -5
  145. package/dist-versioned/chunks/chunk.4BB4LNMY.js +8 -8
  146. package/dist-versioned/chunks/chunk.4USTQEWG.js +12 -12
  147. package/dist-versioned/chunks/chunk.52XEAMVX.js +6 -6
  148. package/dist-versioned/chunks/chunk.5R5MY3VD.js +11 -11
  149. package/dist-versioned/chunks/chunk.5VCVDFRJ.js +1 -1
  150. package/dist-versioned/chunks/chunk.6A4DHVDL.js +2 -2
  151. package/dist-versioned/chunks/chunk.6MSQDSJK.js +4 -4
  152. package/dist-versioned/chunks/chunk.6OYBQ6CO.js +4 -4
  153. package/dist-versioned/chunks/chunk.77CINHAJ.js +1 -1
  154. package/dist-versioned/chunks/chunk.7ZKBKOS5.js +10 -10
  155. package/dist-versioned/chunks/chunk.AFD4FHYM.js +10 -10
  156. package/dist-versioned/chunks/chunk.AJVSDITF.js +3 -3
  157. package/dist-versioned/chunks/chunk.BZO3OLK2.js +5 -5
  158. package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
  159. package/dist-versioned/chunks/chunk.C4RJM5BO.js +1 -1
  160. package/dist-versioned/chunks/chunk.CQTEYWVJ.js +10 -10
  161. package/dist-versioned/chunks/chunk.D5JLEZPO.js +1 -1
  162. package/dist-versioned/chunks/chunk.DJJN4MJ4.js +1 -1
  163. package/dist-versioned/chunks/chunk.DKN5SHQ2.js +5 -5
  164. package/dist-versioned/chunks/chunk.EVGV2PWW.js +2 -2
  165. package/dist-versioned/chunks/chunk.F3C76UKB.js +2 -2
  166. package/dist-versioned/chunks/chunk.FQJPWM4Z.js +25 -25
  167. package/dist-versioned/chunks/chunk.G7M7XYS3.js +6 -6
  168. package/dist-versioned/chunks/chunk.GBB73ZFE.js +3 -3
  169. package/dist-versioned/chunks/chunk.GHWO5PUG.js +14 -14
  170. package/dist-versioned/chunks/chunk.GOZXDQTL.js +5 -5
  171. package/dist-versioned/chunks/chunk.GRRHK6BP.js +2 -2
  172. package/dist-versioned/chunks/chunk.HIR2MKW6.js +2 -2
  173. package/dist-versioned/chunks/chunk.I57THEU4.js +7 -7
  174. package/dist-versioned/chunks/chunk.INSUQDO7.js +5 -5
  175. package/dist-versioned/chunks/chunk.IXJGPE6X.js +11 -11
  176. package/dist-versioned/chunks/chunk.JAPL7DQX.js +5 -5
  177. package/dist-versioned/chunks/chunk.JHSA2DI2.js +2 -2
  178. package/dist-versioned/chunks/chunk.KAWDESCC.js +6 -6
  179. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  180. package/dist-versioned/chunks/chunk.LIPCVYL3.js +3 -3
  181. package/dist-versioned/chunks/chunk.LJ5ONJGL.js +42 -42
  182. package/dist-versioned/chunks/chunk.OUFMMO37.js +6 -6
  183. package/dist-versioned/chunks/chunk.P5V6KORX.js +23 -23
  184. package/dist-versioned/chunks/chunk.PCB2BA7U.js +13 -13
  185. package/dist-versioned/chunks/chunk.PMM3MDLE.js +3 -3
  186. package/dist-versioned/chunks/chunk.QD2ZQPDB.js +2 -2
  187. package/dist-versioned/chunks/chunk.QGERTGJH.js +4 -4
  188. package/dist-versioned/chunks/chunk.QOIO3YAP.js +7 -7
  189. package/dist-versioned/chunks/chunk.RGVIOXPM.js +3 -3
  190. package/dist-versioned/chunks/chunk.SVAL7V6Q.js +2 -2
  191. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  192. package/dist-versioned/chunks/chunk.UOMFY7RY.js +1 -1
  193. package/dist-versioned/chunks/chunk.UTW3WRV2.js +5 -5
  194. package/dist-versioned/chunks/chunk.UYQP3VDT.js +2 -2
  195. package/dist-versioned/chunks/chunk.VHQQB75I.js +3 -3
  196. package/dist-versioned/chunks/chunk.WVSKCZ63.js +4 -4
  197. package/dist-versioned/chunks/chunk.WXT5HYGA.js +12 -12
  198. package/dist-versioned/chunks/chunk.WYS3OZYO.js +5 -5
  199. package/dist-versioned/chunks/chunk.WZOVHSGU.js +6 -6
  200. package/dist-versioned/chunks/chunk.Y4XJY6Y4.js +5 -5
  201. package/dist-versioned/chunks/chunk.Y6QQUPB5.js +4 -4
  202. package/dist-versioned/chunks/chunk.Z462LBEB.js +7 -7
  203. package/dist-versioned/chunks/chunk.ZCG43UX7.js +10 -10
  204. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  205. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  206. package/dist-versioned/components/animation/animation.d.ts +1 -1
  207. package/dist-versioned/components/audio/audio.d.ts +1 -1
  208. package/dist-versioned/components/badge/badge.d.ts +1 -1
  209. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  210. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  211. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  212. package/dist-versioned/components/button/button.d.ts +1 -1
  213. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  214. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  215. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  216. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  217. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  218. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  219. package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
  220. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  221. package/dist-versioned/components/divider/divider.d.ts +1 -1
  222. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  223. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  224. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  225. package/dist-versioned/components/file-selector/file-selector.d.ts +1 -1
  226. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  227. package/dist-versioned/components/header/header.d.ts +1 -1
  228. package/dist-versioned/components/icon/icon.d.ts +1 -1
  229. package/dist-versioned/components/include/include.d.ts +1 -1
  230. package/dist-versioned/components/input/input.d.ts +1 -1
  231. package/dist-versioned/components/link/link.d.ts +1 -1
  232. package/dist-versioned/components/loader/loader.d.ts +1 -1
  233. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  234. package/dist-versioned/components/menu/menu.d.ts +1 -1
  235. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  236. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  237. package/dist-versioned/components/notification/notification.d.ts +1 -1
  238. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  239. package/dist-versioned/components/option/option.d.ts +1 -1
  240. package/dist-versioned/components/popup/popup.d.ts +1 -1
  241. package/dist-versioned/components/progress-bar/progress-bar.d.ts +1 -1
  242. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  243. package/dist-versioned/components/radio/radio.d.ts +1 -1
  244. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  245. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  246. package/dist-versioned/components/range/range.d.ts +1 -1
  247. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  248. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  249. package/dist-versioned/components/select/select.d.ts +1 -1
  250. package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
  251. package/dist-versioned/components/step/step.d.ts +1 -1
  252. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  253. package/dist-versioned/components/switch/switch.d.ts +1 -1
  254. package/dist-versioned/components/tab/tab.d.ts +1 -1
  255. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  256. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  257. package/dist-versioned/components/tag/tag.d.ts +1 -1
  258. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  259. package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  260. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  261. package/dist-versioned/components/video/video.d.ts +1 -1
  262. package/dist-versioned/custom-elements.json +447 -447
  263. package/dist-versioned/internal/form.js +2 -2
  264. package/dist-versioned/solid-components.css +3 -3
  265. package/dist-versioned/solid-components.js +7 -7
  266. package/dist-versioned/vscode.html-custom-data.json +141 -141
  267. package/dist-versioned/web-types.json +224 -224
  268. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk.CGQ2BPPZ.js";import{a as b}from"./chunk.MEDJPDBB.js";import{a}from"./chunk.4ZZFYCXX.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as c,b as i,d as s,h as l}from"./chunk.5B33ZALC.js";import{b as d,e as o}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var v=0,t=class extends l{constructor(){super(...arguments);this.attrId=++v;this.componentId=`sd-7-0-0-next-8-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 r=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",r?"true":"false")}focus(r){this.tab.focus(r)}blur(){this.tab.blur()}render(){this.id=this.id.length>0?this.id:this.componentId;let r={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 choice-control-font-weight","outline-hidden 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]":"navigable-border-radius",this.variant==="container"&&this.active&&"tab--active-container-border bg-white",this.disabled||this.visuallyDisabled?"!cursor-not-allowed":"hover:sd-7-0-0-next-8-tab--hover-color-background",this.active&&"z-20 sd-7-0-0-next-8-tab--active-color-text")}" tabindex="${!this.active||this.disabled?"-1":"0"}"><div class="${a("flex h-full items-center justify-center whitespace-nowrap")}"><slot name="left" class="${a(r.left&&"block pr-2",this.disabled||this.visuallyDisabled?"sd-7-0-0-next-8-tab--disabled-color-text":this.active?"sd-7-0-0-next-8-tab--active-color-text":"sd-7-0-0-next-8-tab-color-text")}"></slot><slot class="${a(this.disabled||this.visuallyDisabled?"sd-7-0-0-next-8-tab--disabled-color-text":this.active?"sd-7-0-0-next-8-tab--active-color-text":"sd-7-0-0-next-8-tab-color-text")}"></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-[calc(100%-2px)] navigable__current-indicator-height navigable__current-indicator-border-radius")}"></div>`:""}<div part="hover-bottom-border" class="${a(!this.active&&!this.disabled&&"absolute bottom-0 left-0 w-full h-0.25 border-b sd-7-0-0-next-8-tab-color-border")}"></div></div></div>`}};t.styles=[...l.styles,d`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{box-sizing:border-box;display:inline-block}:host(:hover)::part(hover-bottom-border){border-bottom-color:rgba(var(--sd-color-border-neutral-400))}.tab-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;--tw-content:'';content:var(--tw-content)}.tab--active-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--sd-color-border-neutral-400));transition-property:border;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));--tw-content:'';content:var(--tw-content);border-bottom:none;border-radius:4px 4px 0 0}[part=active-tab-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);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:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);transition:width var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}`],e([s("[part=base]")],t.prototype,"tab",2),e([s("[part=active-tab-indicator]")],t.prototype,"currentIndicator",2),e([i({type:String,reflect:!0})],t.prototype,"variant",2),e([i({type:Boolean,reflect:!0})],t.prototype,"active",2),e([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([i({type:String,reflect:!0})],t.prototype,"panel",2),e([n("active")],t.prototype,"handleActiveChange",1),e([n(["disabled","visually-disabled"])],t.prototype,"handleDisabledChange",1),t=e([c("sd-7-0-0-next-8-tab")],t);export{t as a};
1
+ import{a as u}from"./chunk.CGQ2BPPZ.js";import{a as b}from"./chunk.MEDJPDBB.js";import{a}from"./chunk.4ZZFYCXX.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as c,b as i,d as s,h as l}from"./chunk.5B33ZALC.js";import{b as d,e as o}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var v=0,t=class extends l{constructor(){super(...arguments);this.attrId=++v;this.componentId=`sd-7-0-0-next-9-tab-${this.attrId}`;this.hasSlotController=new u(this,"left");this.localize=new b(this);this.variant="default";this.active=!1;this.disabled=!1;this.visuallyDisabled=!1;this.panel=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){let r=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",r?"true":"false")}focus(r){this.tab.focus(r)}blur(){this.tab.blur()}render(){this.id=this.id.length>0?this.id:this.componentId;let r={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 choice-control-font-weight","outline-hidden 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]":"navigable-border-radius",this.variant==="container"&&this.active&&"tab--active-container-border bg-white",this.disabled||this.visuallyDisabled?"!cursor-not-allowed":"hover:sd-7-0-0-next-9-tab--hover-color-background",this.active&&"z-20 sd-7-0-0-next-9-tab--active-color-text")}" tabindex="${!this.active||this.disabled?"-1":"0"}"><div class="${a("flex h-full items-center justify-center whitespace-nowrap")}"><slot name="left" class="${a(r.left&&"block pr-2",this.disabled||this.visuallyDisabled?"sd-7-0-0-next-9-tab--disabled-color-text":this.active?"sd-7-0-0-next-9-tab--active-color-text":"sd-7-0-0-next-9-tab-color-text")}"></slot><slot class="${a(this.disabled||this.visuallyDisabled?"sd-7-0-0-next-9-tab--disabled-color-text":this.active?"sd-7-0-0-next-9-tab--active-color-text":"sd-7-0-0-next-9-tab-color-text")}"></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-[calc(100%-2px)] navigable__current-indicator-height navigable__current-indicator-border-radius")}"></div>`:""}<div part="hover-bottom-border" class="${a(!this.active&&!this.disabled&&"absolute bottom-0 left-0 w-full h-0.25 border-b sd-7-0-0-next-9-tab-color-border")}"></div></div></div>`}};t.styles=[...l.styles,d`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{box-sizing:border-box;display:inline-block}:host(:hover)::part(hover-bottom-border){border-bottom-color:rgba(var(--sd-color-border-neutral-400))}.tab-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;--tw-content:'';content:var(--tw-content)}.tab--active-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--sd-color-border-neutral-400));transition-property:border;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));--tw-content:'';content:var(--tw-content);border-bottom:none;border-radius:4px 4px 0 0}[part=active-tab-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);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:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);transition:width var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}`],e([s("[part=base]")],t.prototype,"tab",2),e([s("[part=active-tab-indicator]")],t.prototype,"currentIndicator",2),e([i({type:String,reflect:!0})],t.prototype,"variant",2),e([i({type:Boolean,reflect:!0})],t.prototype,"active",2),e([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([i({type:String,reflect:!0})],t.prototype,"panel",2),e([n("active")],t.prototype,"handleActiveChange",1),e([n(["disabled","visually-disabled"])],t.prototype,"handleDisabledChange",1),t=e([c("sd-7-0-0-next-9-tab")],t);export{t as a};
@@ -1,5 +1,5 @@
1
- import{a as x}from"./chunk.CGQ2BPPZ.js";import{a as m,c as f}from"./chunk.B2NUKX6G.js";import{a as w}from"./chunk.KLRPP4NQ.js";import{a as k}from"./chunk.MEDJPDBB.js";import{a as l}from"./chunk.4ZZFYCXX.js";import{a as h}from"./chunk.NYKJXI3Q.js";import{a as b,b as o,d as n,h as c}from"./chunk.5B33ZALC.js";import{b as g,e as a}from"./chunk.OBAEIKIV.js";import{b as d,c as p,e as u}from"./chunk.W4QBFD6E.js";import{e as i}from"./chunk.6EV4YU6C.js";var e=class extends c{constructor(){super(...arguments);this.localize=new k(this);this.hasSlotController=new x(this,"[default]","content");this.size="lg";this.content="";this.placement="top";this.disabled=!1;this.open=!1;this.trigger="click focus";this.closeTrigger="click focus escape";this.hoist=!1;this.handleMouseInteraction=()=>{this.interactionType="mouse"};this.handleKeyboardInteraction=()=>{this.interactionType="keyboard"}}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),document.addEventListener("mousedown",this.handleMouseInteraction),document.addEventListener("keydown",this.handleKeyboardInteraction),this.handleDocumentClick=this.handleDocumentClick.bind(this),document.addEventListener("click",this.handleDocumentClick),this.updateComplete.then(()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)})}firstUpdated(){this.body.hidden=!this.open,this.formatDefaultSlot(this.defaultSlot),this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut),document.removeEventListener("mousedown",this.handleMouseInteraction),document.removeEventListener("keydown",this.handleKeyboardInteraction),document.removeEventListener("click",this.handleDocumentClick)}get hasCustomTrigger(){return this.hasSlotController.test("[default]")}formatDefaultSlot(t){if(!t)return;t.assignedNodes({flatten:!0}).forEach(r=>{var y,v;r.nodeType===Node.TEXT_NODE&&!((y=r==null?void 0:r.textContent)!=null&&y.trim())&&((v=r==null?void 0:r.parentNode)==null||v.removeChild(r))})}handleBlur(){this.hasCloseTrigger("focus")&&this.hide()}handleClick(){this.open&&this.hasCloseTrigger("click")?this.hide():this.hasTrigger("click")&&this.show()}handleFocus(){this.hasTrigger("focus")&&this.interactionType==="keyboard"&&this.show()}handleKeyDown(t){this.open&&t.key==="Escape"&&this.hasCloseTrigger("escape")&&(t.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){let t=p(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),t)}}handleMouseOut(){if(this.hasCloseTrigger("hover")){let t=p(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),t)}}handleDocumentClick(t){if(!this.open||this.interactionType==="keyboard")return;let s=t.composedPath();this.hasCloseTrigger("focus")&&!s.includes(this)&&!s.includes(this.popup)&&this.hide()}hasTrigger(t){return this.trigger.split(" ").includes(t)}hasCloseTrigger(t){return this.closeTrigger.split(" ").includes(t)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await u(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:t,options:s}=f(this,"tooltip.show",{dir:this.localize.dir()});await d(this.popup.popup,t,s),this.emit("sd-after-show")}else{this.emit("sd-hide"),await u(this.body);let{keyframes:t,options:s}=f(this,"tooltip.hide",{dir:this.localize.dir()});await d(this.popup.popup,t,s),this.popup.active=!1,this.body.hidden=!0,this.emit("sd-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,w(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,this.trigger==="click"||this.trigger==="click focus"?this.focus():this.blur(),w(this,"sd-after-hide")}render(){let t=this.placement.endsWith("-start"),s=this.placement.endsWith("-end");return a`<sd-7-0-0-next-8-popup part="base" exportparts="
1
+ import{a as x}from"./chunk.CGQ2BPPZ.js";import{a as m,c as f}from"./chunk.B2NUKX6G.js";import{a as w}from"./chunk.KLRPP4NQ.js";import{a as k}from"./chunk.MEDJPDBB.js";import{a as l}from"./chunk.4ZZFYCXX.js";import{a as h}from"./chunk.NYKJXI3Q.js";import{a as b,b as o,d as n,h as c}from"./chunk.5B33ZALC.js";import{b as g,e as a}from"./chunk.OBAEIKIV.js";import{b as d,c as p,e as u}from"./chunk.W4QBFD6E.js";import{e as i}from"./chunk.6EV4YU6C.js";var e=class extends c{constructor(){super(...arguments);this.localize=new k(this);this.hasSlotController=new x(this,"[default]","content");this.size="lg";this.content="";this.placement="top";this.disabled=!1;this.open=!1;this.trigger="click focus";this.closeTrigger="click focus escape";this.hoist=!1;this.handleMouseInteraction=()=>{this.interactionType="mouse"};this.handleKeyboardInteraction=()=>{this.interactionType="keyboard"}}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),document.addEventListener("mousedown",this.handleMouseInteraction),document.addEventListener("keydown",this.handleKeyboardInteraction),this.handleDocumentClick=this.handleDocumentClick.bind(this),document.addEventListener("click",this.handleDocumentClick),this.updateComplete.then(()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)})}firstUpdated(){this.body.hidden=!this.open,this.formatDefaultSlot(this.defaultSlot),this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut),document.removeEventListener("mousedown",this.handleMouseInteraction),document.removeEventListener("keydown",this.handleKeyboardInteraction),document.removeEventListener("click",this.handleDocumentClick)}get hasCustomTrigger(){return this.hasSlotController.test("[default]")}formatDefaultSlot(t){if(!t)return;t.assignedNodes({flatten:!0}).forEach(r=>{var y,v;r.nodeType===Node.TEXT_NODE&&!((y=r==null?void 0:r.textContent)!=null&&y.trim())&&((v=r==null?void 0:r.parentNode)==null||v.removeChild(r))})}handleBlur(){this.hasCloseTrigger("focus")&&this.hide()}handleClick(){this.open&&this.hasCloseTrigger("click")?this.hide():this.hasTrigger("click")&&this.show()}handleFocus(){this.hasTrigger("focus")&&this.interactionType==="keyboard"&&this.show()}handleKeyDown(t){this.open&&t.key==="Escape"&&this.hasCloseTrigger("escape")&&(t.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){let t=p(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),t)}}handleMouseOut(){if(this.hasCloseTrigger("hover")){let t=p(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),t)}}handleDocumentClick(t){if(!this.open||this.interactionType==="keyboard")return;let s=t.composedPath();this.hasCloseTrigger("focus")&&!s.includes(this)&&!s.includes(this.popup)&&this.hide()}hasTrigger(t){return this.trigger.split(" ").includes(t)}hasCloseTrigger(t){return this.closeTrigger.split(" ").includes(t)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await u(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:t,options:s}=f(this,"tooltip.show",{dir:this.localize.dir()});await d(this.popup.popup,t,s),this.emit("sd-after-show")}else{this.emit("sd-hide"),await u(this.body);let{keyframes:t,options:s}=f(this,"tooltip.hide",{dir:this.localize.dir()});await d(this.popup.popup,t,s),this.popup.active=!1,this.body.hidden=!0,this.emit("sd-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,w(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,this.trigger==="click"||this.trigger==="click focus"?this.focus():this.blur(),w(this,"sd-after-hide")}render(){let t=this.placement.endsWith("-start"),s=this.placement.endsWith("-end");return a`<sd-7-0-0-next-9-popup part="base" exportparts="
2
2
  popup:base__popup,
3
3
  arrow:base__arrow
4
- " class="${l(this.open&&"tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{start:2,end:-2,default:0}[t?"start":s?"end":"default"]*(this.size==="sm"?-1:1)}" strategy="${this.hoist?"fixed":"absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0">${this.hasCustomTrigger?a`<slot slot="anchor"></slot>`:a`<button slot="anchor" aria-describedby="tooltip" class="${l("flex sd-interactive rounded-full",this.size==="lg"?"text-xl":"text-base")}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="tooltip"><sd-7-0-0-next-8-icon library="_internal" name="info-circle" label="Tooltip" class="${l(this.disabled&&"sd-interactive--disabled")}"></sd-7-0-0-next-8-icon></button>`}<slot name="content" part="body" id="tooltip" class="sd-7-0-0-next-8-tooltip-color-background sd-7-0-0-next-8-tooltip-color-text py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="${this.content}" aria-live="${this.open?"polite":"off"}">${this.content}</slot></sd-7-0-0-next-8-popup>`}};e.styles=[...c.styles,g`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
5
- :host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-7-0-0-next-8-popup{--arrow-color:rgba(var(--sd-tooltip-color-background));--arrow-size:10px}sd-7-0-0-next-8-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}sd-7-0-0-next-8-popup::part(arrow){--tw-shadow:var(--sd-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}sd-7-0-0-next-8-popup[placement^=top]::part(popup){transform-origin:bottom}sd-7-0-0-next-8-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`],i([n("slot:not([name])")],e.prototype,"defaultSlot",2),i([n("#tooltip")],e.prototype,"body",2),i([n("sd-7-0-0-next-8-popup")],e.prototype,"popup",2),i([o({type:String,reflect:!0})],e.prototype,"size",2),i([o({type:String,reflect:!0})],e.prototype,"content",2),i([o({type:String,reflect:!0})],e.prototype,"placement",2),i([o({type:Boolean,reflect:!0})],e.prototype,"disabled",2),i([o({type:Boolean,reflect:!0})],e.prototype,"open",2),i([o({type:String,reflect:!0})],e.prototype,"trigger",2),i([o({type:String,attribute:"close-trigger",reflect:!0})],e.prototype,"closeTrigger",2),i([o({type:Boolean,reflect:!0})],e.prototype,"hoist",2),i([h("open",{waitUntilFirstUpdate:!0})],e.prototype,"handleOpenChange",1),i([h(["content","hoist","placement"])],e.prototype,"handleOptionsChange",1),i([h("disabled")],e.prototype,"handleDisabledChange",1),e=i([b("sd-7-0-0-next-8-tooltip")],e);m("tooltip.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});m("tooltip.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{e as a};
4
+ " class="${l(this.open&&"tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{start:2,end:-2,default:0}[t?"start":s?"end":"default"]*(this.size==="sm"?-1:1)}" strategy="${this.hoist?"fixed":"absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0">${this.hasCustomTrigger?a`<slot slot="anchor"></slot>`:a`<button slot="anchor" aria-describedby="tooltip" class="${l("flex sd-interactive rounded-full",this.size==="lg"?"text-xl":"text-base")}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="tooltip"><sd-7-0-0-next-9-icon library="_internal" name="info-circle" label="Tooltip" class="${l(this.disabled&&"sd-interactive--disabled")}"></sd-7-0-0-next-9-icon></button>`}<slot name="content" part="body" id="tooltip" class="sd-7-0-0-next-9-tooltip-color-background sd-7-0-0-next-9-tooltip-color-text py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="${this.content}" aria-live="${this.open?"polite":"off"}">${this.content}</slot></sd-7-0-0-next-9-popup>`}};e.styles=[...c.styles,g`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
5
+ :host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-7-0-0-next-9-popup{--arrow-color:rgba(var(--sd-tooltip-color-background));--arrow-size:10px}sd-7-0-0-next-9-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}sd-7-0-0-next-9-popup::part(arrow){--tw-shadow:var(--sd-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}sd-7-0-0-next-9-popup[placement^=top]::part(popup){transform-origin:bottom}sd-7-0-0-next-9-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`],i([n("slot:not([name])")],e.prototype,"defaultSlot",2),i([n("#tooltip")],e.prototype,"body",2),i([n("sd-7-0-0-next-9-popup")],e.prototype,"popup",2),i([o({type:String,reflect:!0})],e.prototype,"size",2),i([o({type:String,reflect:!0})],e.prototype,"content",2),i([o({type:String,reflect:!0})],e.prototype,"placement",2),i([o({type:Boolean,reflect:!0})],e.prototype,"disabled",2),i([o({type:Boolean,reflect:!0})],e.prototype,"open",2),i([o({type:String,reflect:!0})],e.prototype,"trigger",2),i([o({type:String,attribute:"close-trigger",reflect:!0})],e.prototype,"closeTrigger",2),i([o({type:Boolean,reflect:!0})],e.prototype,"hoist",2),i([h("open",{waitUntilFirstUpdate:!0})],e.prototype,"handleOpenChange",1),i([h(["content","hoist","placement"])],e.prototype,"handleOptionsChange",1),i([h("disabled")],e.prototype,"handleDisabledChange",1),e=i([b("sd-7-0-0-next-9-tooltip")],e);m("tooltip.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});m("tooltip.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{e as a};
@@ -1,2 +1,2 @@
1
1
  import{a as c,h as e}from"./chunk.5B33ZALC.js";import{b as l,e as o}from"./chunk.OBAEIKIV.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends e{static isCarouselItem(s){return s instanceof Element&&s.getAttribute("aria-roledescription")==="slide"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return o`<slot></slot>`}};t.styles=[...e.styles,l`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}`],t=i([c("sd-7-0-0-next-8-carousel-item")],t);export{t as a};
2
+ :host{aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}`],t=i([c("sd-7-0-0-next-9-carousel-item")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as p}from"./chunk.CGQ2BPPZ.js";import{a as i}from"./chunk.4ZZFYCXX.js";import{a as r}from"./chunk.NYKJXI3Q.js";import{a as d,b as o,h as n}from"./chunk.5B33ZALC.js";import{b as m,e as s}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends n{constructor(){super(...arguments);this.hasSlotController=new p(this,"label","help-text");this.size="lg";this.orientation="vertical";this.label="";this.helpText=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-7-0-0-next-8-checkbox")]}async syncCheckboxElements(){let a=this.getAllCheckboxes();await Promise.all(a.map(async l=>{await l.updateComplete,l.size=this.size}))}syncCheckboxes(){customElements.get("sd-7-0-0-next-8-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-7-0-0-next-8-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let a=this.hasSlotController.test("label"),l=this.label?!0:a,b=this.hasSlotController.test("help-text"),c=this.helpText?!0:b,x=s`<slot @slotchange="${this.syncCheckboxes}"></slot>`,h=this.hasSlotController.test("tooltip");return s`<fieldset part="form-control" class="${i("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label">${l||h?s`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${i("p-0 font-bold leading-normal text-black",l?"flex":"hidden")}" aria-hidden="${l?"false":"true"}"><slot name="label">${this.label}</slot></label> ${h?s`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${i({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${x}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${i("text-sm text-neutral-700 mt-2",c?"block":"hidden")}" aria-hidden="${!c}">${this.helpText}</slot>`}};t.styles=[...n.styles,m`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{display:block}:host([orientation=vertical]) ::slotted(sd-7-0-0-next-8-checkbox){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-7-0-0-next-8-checkbox:last-of-type){margin-bottom:0}:host([orientation=horizontal]) ::slotted(sd-7-0-0-next-8-checkbox){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-7-0-0-next-8-checkbox:last-of-type){margin-right:0}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-7-0-0-next-8-checkbox){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-7-0-0-next-8-checkbox:last-of-type){margin-right:0}`],e([o({type:String,reflect:!0})],t.prototype,"size",2),e([o({type:String,reflect:!0})],t.prototype,"orientation",2),e([o({type:String,reflect:!0})],t.prototype,"label",2),e([o({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),e([r("size",{waitUntilFirstUpdate:!0})],t.prototype,"handleSizeChange",1),e([r("invalid",{waitUntilFirstUpdate:!0})],t.prototype,"handleInvalid",1),t=e([d("sd-7-0-0-next-8-checkbox-group")],t);export{t as a};
1
+ import{a as p}from"./chunk.CGQ2BPPZ.js";import{a as i}from"./chunk.4ZZFYCXX.js";import{a as r}from"./chunk.NYKJXI3Q.js";import{a as d,b as o,h as n}from"./chunk.5B33ZALC.js";import{b as m,e as s}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends n{constructor(){super(...arguments);this.hasSlotController=new p(this,"label","help-text");this.size="lg";this.orientation="vertical";this.label="";this.helpText=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-7-0-0-next-9-checkbox")]}async syncCheckboxElements(){let a=this.getAllCheckboxes();await Promise.all(a.map(async l=>{await l.updateComplete,l.size=this.size}))}syncCheckboxes(){customElements.get("sd-7-0-0-next-9-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-7-0-0-next-9-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let a=this.hasSlotController.test("label"),l=this.label?!0:a,b=this.hasSlotController.test("help-text"),c=this.helpText?!0:b,x=s`<slot @slotchange="${this.syncCheckboxes}"></slot>`,h=this.hasSlotController.test("tooltip");return s`<fieldset part="form-control" class="${i("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label">${l||h?s`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${i("p-0 font-bold leading-normal text-black",l?"flex":"hidden")}" aria-hidden="${l?"false":"true"}"><slot name="label">${this.label}</slot></label> ${h?s`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${i({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${x}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${i("text-sm text-neutral-700 mt-2",c?"block":"hidden")}" aria-hidden="${!c}">${this.helpText}</slot>`}};t.styles=[...n.styles,m`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:block}:host([orientation=vertical]) ::slotted(sd-7-0-0-next-9-checkbox){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-7-0-0-next-9-checkbox:last-of-type){margin-bottom:0}:host([orientation=horizontal]) ::slotted(sd-7-0-0-next-9-checkbox){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-7-0-0-next-9-checkbox:last-of-type){margin-right:0}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-7-0-0-next-9-checkbox){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-7-0-0-next-9-checkbox:last-of-type){margin-right:0}`],e([o({type:String,reflect:!0})],t.prototype,"size",2),e([o({type:String,reflect:!0})],t.prototype,"orientation",2),e([o({type:String,reflect:!0})],t.prototype,"label",2),e([o({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),e([r("size",{waitUntilFirstUpdate:!0})],t.prototype,"handleSizeChange",1),e([r("invalid",{waitUntilFirstUpdate:!0})],t.prototype,"handleInvalid",1),t=e([d("sd-7-0-0-next-9-checkbox-group")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as b}from"./chunk.DSKB3SEU.js";import{a as h,b as u}from"./chunk.CGQ2BPPZ.js";import{a as l}from"./chunk.4ZZFYCXX.js";import{a}from"./chunk.NYKJXI3Q.js";import{a as d,b as i,d as r,h as n}from"./chunk.5B33ZALC.js";import{b as c,e as o}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.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 h(this,"submenu");this.submenuController=new b(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(),p={label:this.hasSlotController.test("[default]"),iconIndent:this.hasSlotController.test("icon-indent")};return o`<div id="anchor" part="base" class="${l("relative flex items-stretch whitespace-nowrap py-3 px-4 no-wrap !navigable-border-radius",this.disabled?"outline-none cursor-not-allowed sd-7-0-0-next-8-menu--disabled-color-text hover:bg-transparent":"cursor-pointer sd-7-0-0-next-8-menu-color-text hover:bg-neutral-200",this.isSubmenu()&&s&&"submenu-expanded")}" .disabled="${this.disabled}" ?aria-haspopup="${this.isSubmenu()}" ?aria-expanded="${!!s}">${this.type==="checkbox"?o`<span part="checked-icon" class="${l("flex items-center justify-center grow-0 shrink-0 basis-auto",this.checked?"visible":"invisible")}"><sd-7-0-0-next-8-icon name="status-check" library="sd-status-assets" aria-hidden="true"></sd-7-0-0-next-8-icon></span>`:""} ${p.iconIndent?o`<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()?o`<span part="submenu-icon" class="flex items-center justify-center grow-0 shrink-0 basis-auto ml-3"><sd-7-0-0-next-8-icon name="chevron-right" library="_internal" aria-hidden="true" class="h-6 w-6"></sd-7-0-0-next-8-icon></span>`:""} ${this.submenuController.renderSubmenu()}</div>`}};e.styles=[...n.styles,c`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{--submenu-offset:-6px;display:block}:host(:focus-visible){--tw-outline-style:none;outline-style:none}::slotted(sd-7-0-0-next-8-icon){height:var(--sd-spacing-6);width:var(--sd-spacing-6)}[part=checked-icon]{margin-right:var(--sd-spacing-3)}.submenu-expanded::after{position:fixed;top:0;right:0;bottom:0;left:0;z-index:calc(var(z-dropdown) - 1);--tw-content:'';content:var(--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))}:host(:hover:not([aria-disabled=true],:focus-visible)) [part=base]{background-color:rgba(var(--sd-color-background-neutral-200));--tw-outline-style:none;outline-style:none}:host(:focus-visible:not([aria-disabled=true])) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:var(--outline-color-primary);outline-offset:-2px}:host(.menu-item-focus) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:var(--outline-color-primary);outline-offset:-2px}:host(:hover) [part=base]{--tw-outline-style:none;outline-style:none}//TODO clean up sd-7-0-0-next-8-menu-color-icon variable replacing with sd-7-0-0-next-8-menu-item-color-icon-fill (breakingchange) :host [part=icon-indent],:host [part=checked-icon],:host [part=submenu-icon]{color:rgba(var(--sd-menu-color-icon,var(--sd-menu-item-color-icon-fill)))}//TODO clean up sd-7-0-0-next-8-menu--disabled-color-icon variable replacing with sd-7-0-0-next-8-menu-item--disabled-color-icon-fill (breakingchange) :host([aria-disabled=true]) [part=icon-indent]{color:rgba(var(--sd-menu--disabled-color-icon,var(--sd-menu-item--disabled-color-icon-fill)))}sd-7-0-0-next-8-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);background-color:rgba(var(--sd-color-background-white));margin-left:var(--submenu-offset)}::slotted(sd-7-0-0-next-8-menu){max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}.sd-7-0-0-next-8-menu-color-text{color:rgba(var(--sd-menu-color-text,var(--sd-menu-item-color-text)))}.sd-7-0-0-next-8-menu--disabled-color-text{color:rgba(var(--sd-menu--disabled-color-text,var(--sd-menu-item--disabled-color-text)))}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],t([r("slot:not([name])")],e.prototype,"defaultSlot",2),t([r('part="base"')],e.prototype,"menuItem",2),t([i()],e.prototype,"type",2),t([i({type:Boolean,reflect:!0})],e.prototype,"checked",2),t([i({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([i()],e.prototype,"value",2),t([i({type:Boolean,reflect:!0})],e.prototype,"chevron",2),t([a("checked")],e.prototype,"handleCheckedChange",1),t([a("disabled")],e.prototype,"handleDisabledChange",1),t([a("type")],e.prototype,"handleTypeChange",1),e=t([d("sd-7-0-0-next-8-menu-item")],e);export{e as a};
1
+ import{a as b}from"./chunk.DSKB3SEU.js";import{a as h,b as u}from"./chunk.CGQ2BPPZ.js";import{a as l}from"./chunk.4ZZFYCXX.js";import{a}from"./chunk.NYKJXI3Q.js";import{a as d,b as i,d as r,h as n}from"./chunk.5B33ZALC.js";import{b as c,e as o}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.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 h(this,"submenu");this.submenuController=new b(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(),p={label:this.hasSlotController.test("[default]"),iconIndent:this.hasSlotController.test("icon-indent")};return o`<div id="anchor" part="base" class="${l("relative flex items-stretch whitespace-nowrap py-3 px-4 no-wrap !navigable-border-radius",this.disabled?"outline-none cursor-not-allowed sd-7-0-0-next-9-menu--disabled-color-text hover:bg-transparent":"cursor-pointer sd-7-0-0-next-9-menu-color-text hover:bg-neutral-200",this.isSubmenu()&&s&&"submenu-expanded")}" .disabled="${this.disabled}" ?aria-haspopup="${this.isSubmenu()}" ?aria-expanded="${!!s}">${this.type==="checkbox"?o`<span part="checked-icon" class="${l("flex items-center justify-center grow-0 shrink-0 basis-auto",this.checked?"visible":"invisible")}"><sd-7-0-0-next-9-icon name="status-check" library="sd-status-assets" aria-hidden="true"></sd-7-0-0-next-9-icon></span>`:""} ${p.iconIndent?o`<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()?o`<span part="submenu-icon" class="flex items-center justify-center grow-0 shrink-0 basis-auto ml-3"><sd-7-0-0-next-9-icon name="chevron-right" library="_internal" aria-hidden="true" class="h-6 w-6"></sd-7-0-0-next-9-icon></span>`:""} ${this.submenuController.renderSubmenu()}</div>`}};e.styles=[...n.styles,c`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{--submenu-offset:-6px;display:block}:host(:focus-visible){--tw-outline-style:none;outline-style:none}::slotted(sd-7-0-0-next-9-icon){height:var(--sd-spacing-6);width:var(--sd-spacing-6)}[part=checked-icon]{margin-right:var(--sd-spacing-3)}.submenu-expanded::after{position:fixed;top:0;right:0;bottom:0;left:0;z-index:calc(var(z-dropdown) - 1);--tw-content:'';content:var(--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))}:host(:hover:not([aria-disabled=true],:focus-visible)) [part=base]{background-color:rgba(var(--sd-color-background-neutral-200));--tw-outline-style:none;outline-style:none}:host(:focus-visible:not([aria-disabled=true])) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:var(--outline-color-primary);outline-offset:-2px}:host(.menu-item-focus) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:var(--outline-color-primary);outline-offset:-2px}:host(:hover) [part=base]{--tw-outline-style:none;outline-style:none}//TODO clean up sd-7-0-0-next-9-menu-color-icon variable replacing with sd-7-0-0-next-9-menu-item-color-icon-fill (breakingchange) :host [part=icon-indent],:host [part=checked-icon],:host [part=submenu-icon]{color:rgba(var(--sd-menu-color-icon,var(--sd-menu-item-color-icon-fill)))}//TODO clean up sd-7-0-0-next-9-menu--disabled-color-icon variable replacing with sd-7-0-0-next-9-menu-item--disabled-color-icon-fill (breakingchange) :host([aria-disabled=true]) [part=icon-indent]{color:rgba(var(--sd-menu--disabled-color-icon,var(--sd-menu-item--disabled-color-icon-fill)))}sd-7-0-0-next-9-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);background-color:rgba(var(--sd-color-background-white));margin-left:var(--submenu-offset)}::slotted(sd-7-0-0-next-9-menu){max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}.sd-7-0-0-next-9-menu-color-text{color:rgba(var(--sd-menu-color-text,var(--sd-menu-item-color-text)))}.sd-7-0-0-next-9-menu--disabled-color-text{color:rgba(var(--sd-menu--disabled-color-text,var(--sd-menu-item--disabled-color-text)))}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],t([r("slot:not([name])")],e.prototype,"defaultSlot",2),t([r('part="base"')],e.prototype,"menuItem",2),t([i()],e.prototype,"type",2),t([i({type:Boolean,reflect:!0})],e.prototype,"checked",2),t([i({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([i()],e.prototype,"value",2),t([i({type:Boolean,reflect:!0})],e.prototype,"chevron",2),t([a("checked")],e.prototype,"handleCheckedChange",1),t([a("disabled")],e.prototype,"handleDisabledChange",1),t([a("type")],e.prototype,"handleTypeChange",1),e=t([d("sd-7-0-0-next-9-menu-item")],e);export{e as a};
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk.CGQ2BPPZ.js";import{a as y}from"./chunk.MEDJPDBB.js";import{a as s}from"./chunk.4ZZFYCXX.js";import{a as c,b as o,d as u,h as l}from"./chunk.5B33ZALC.js";import{b as p,e as r}from"./chunk.OBAEIKIV.js";import{e as a}from"./chunk.6EV4YU6C.js";var e=class extends l{constructor(){super(...arguments);this.localize=new y(this);this.playing=!1;this.isBelowBreakpoint=!1;this.hasSlotController=new d(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 i,n;t?(i=this.video)==null||i.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 i;(i=this.video)==null||i.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 r`<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="${s(this.playing&&"pointer-events-none","group w-full h-full absolute top-0 left-0 z-30 sd-interactive outline-hidden focus-visible:focus-outline")}"><div part="play-button-bg" class="${s(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/75 rounded-full play-pause-transition group-focus-visible:outline-2 group-focus-visible:outline-offset-2")}"><slot name="play-icon" part="play-icon" class="${s(this.isBelowBreakpoint?"text-[2rem]":"text-[4rem]")}"><sd-7-0-0-next-8-icon id="default-play-icon" library="_internal" name="start"></sd-7-0-0-next-8-icon></slot></div></button> ${this.hasSlotController.test("poster")?r`<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`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{position:relative;display:inline-block;overflow:hidden}.play-pause-transition,::slotted([slot=poster]){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);transition-property:opacity,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}#default-play-icon,::slotted([slot=play-icon]){position:absolute;top:calc(1 / 2 * 100%);left:calc(1 / 2 * 100%);--tw-translate-x:calc(calc(1 / 2 * 100%) * -1)!important;--tw-translate-y:calc(calc(1 / 2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important;transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}:has([part=play-button]:hover) ::slotted([slot=poster]){--tw-scale-x:110%!important;--tw-scale-y:110%!important;--tw-scale-z:110%!important;scale:var(--tw-scale-x) var(--tw-scale-y)!important}[part=play-button-bg]{color:rgba(var(--sd-video--play-button-color-icon-fill));background-color:rgba(var(--sd-video--play-button-color-background))}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}`],a([u("[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-7-0-0-next-8-video")],e);export{e as a};
1
+ import{a as d}from"./chunk.CGQ2BPPZ.js";import{a as y}from"./chunk.MEDJPDBB.js";import{a as s}from"./chunk.4ZZFYCXX.js";import{a as c,b as o,d as u,h as l}from"./chunk.5B33ZALC.js";import{b as p,e as r}from"./chunk.OBAEIKIV.js";import{e as a}from"./chunk.6EV4YU6C.js";var e=class extends l{constructor(){super(...arguments);this.localize=new y(this);this.playing=!1;this.isBelowBreakpoint=!1;this.hasSlotController=new d(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 i,n;t?(i=this.video)==null||i.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 i;(i=this.video)==null||i.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 r`<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="${s(this.playing&&"pointer-events-none","group w-full h-full absolute top-0 left-0 z-30 sd-interactive outline-hidden focus-visible:focus-outline")}"><div part="play-button-bg" class="${s(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/75 rounded-full play-pause-transition group-focus-visible:outline-2 group-focus-visible:outline-offset-2")}"><slot name="play-icon" part="play-icon" class="${s(this.isBelowBreakpoint?"text-[2rem]":"text-[4rem]")}"><sd-7-0-0-next-9-icon id="default-play-icon" library="_internal" name="start"></sd-7-0-0-next-9-icon></slot></div></button> ${this.hasSlotController.test("poster")?r`<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`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{position:relative;display:inline-block;overflow:hidden}.play-pause-transition,::slotted([slot=poster]){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);transition-property:opacity,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}#default-play-icon,::slotted([slot=play-icon]){position:absolute;top:calc(1 / 2 * 100%);left:calc(1 / 2 * 100%);--tw-translate-x:calc(calc(1 / 2 * 100%) * -1)!important;--tw-translate-y:calc(calc(1 / 2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important;transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}:has([part=play-button]:hover) ::slotted([slot=poster]){--tw-scale-x:110%!important;--tw-scale-y:110%!important;--tw-scale-z:110%!important;scale:var(--tw-scale-x) var(--tw-scale-y)!important}[part=play-button-bg]{color:rgba(var(--sd-video--play-button-color-icon-fill));background-color:rgba(var(--sd-video--play-button-color-background))}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}`],a([u("[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-7-0-0-next-9-video")],e);export{e as a};
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk.4ZZFYCXX.js";import{a as l}from"./chunk.NYKJXI3Q.js";import{a as o,b as i,h as a}from"./chunk.5B33ZALC.js";import{b as s,e as r}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var n=0,t=class extends a{constructor(){super(...arguments);this.attrId=++n;this.componentId=`sd-7-0-0-next-8-tab-panel-${this.attrId}`;this.name="";this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return r`<slot part="base" class="${c("block",this.active&&"tab-panel--active")}"></slot>`}};t.styles=[...a.styles,s`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],e([i({type:String,reflect:!0})],t.prototype,"name",2),e([i({type:Boolean,reflect:!0})],t.prototype,"active",2),e([l("active")],t.prototype,"handleActiveChange",1),t=e([o("sd-7-0-0-next-8-tab-panel")],t);export{t as a};
1
+ import{a as c}from"./chunk.4ZZFYCXX.js";import{a as l}from"./chunk.NYKJXI3Q.js";import{a as o,b as i,h as a}from"./chunk.5B33ZALC.js";import{b as s,e as r}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var n=0,t=class extends a{constructor(){super(...arguments);this.attrId=++n;this.componentId=`sd-7-0-0-next-9-tab-panel-${this.attrId}`;this.name="";this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return r`<slot part="base" class="${c("block",this.active&&"tab-panel--active")}"></slot>`}};t.styles=[...a.styles,s`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],e([i({type:String,reflect:!0})],t.prototype,"name",2),e([i({type:Boolean,reflect:!0})],t.prototype,"active",2),e([l("active")],t.prototype,"handleActiveChange",1),t=e([o("sd-7-0-0-next-9-tab-panel")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as v}from"./chunk.TWZDCIM2.js";import{b as y}from"./chunk.W5O4FM6B.js";import{a as p,b as u,c as a}from"./chunk.AUZKCMXB.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as b,b as s,c as f,h as c}from"./chunk.5B33ZALC.js";import{b as g,e as d}from"./chunk.OBAEIKIV.js";import{e as r}from"./chunk.6EV4YU6C.js";var h,t=class extends c{constructor(){super(...arguments);this.svg="";this.label="";this.library="default";this.color="currentColor"}connectedCallback(){super.connectedCallback(),p(this)}firstUpdated(){this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),u(this)}onThemeChange(){this.setIcon()}getUrl(){let e=a(this.library);return this.name&&e?e.name==="_internal"||e.name==="sd-multi-theming"?e.resolver(this.name,this):e.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 e=a(this.library),i=this.getUrl();if(h||(h=new DOMParser),i)try{let o=await v(i);if(i===this.getUrl())if(o.ok){let l=h.parseFromString(o.svg,"text/html").body.querySelector("svg");l!==null?((m=e==null?void 0:e.mutator)==null||m.call(e,l),this.svg=l.outerHTML,this.emit("sd-load")):(this.svg="",this.emit("sd-error"))}else this.svg="",this.emit("sd-error")}catch(o){this.emit("sd-error")}else this.svg.length>0&&(this.svg="")}render(){return d`<sd-7-0-0-next-8-theme-listener></sd-7-0-0-next-8-theme-listener>${y(this.svg)}`}};t.styles=[...c.styles,g`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{width:1em;height:1em;box-sizing:content-box!important;display:inline-block}svg{display:block;height:100%;width:100%}:host([color=primary]) svg{color:rgba(var(--sd-color-icon-fill-primary,var(--sd-color-primary)))}:host([name^='content/'][color=primary]) svg{color:rgba(var(--sd-color-icon-fill-content-icons-primary,var(--sd-color-primary)))}:host([color=white]) svg{color:rgba(var(--sd-color-text-white))}`],r([f()],t.prototype,"svg",2),r([s({reflect:!0})],t.prototype,"name",2),r([s()],t.prototype,"src",2),r([s()],t.prototype,"label",2),r([s({reflect:!0})],t.prototype,"library",2),r([s({reflect:!0})],t.prototype,"color",2),r([n("label")],t.prototype,"handleLabelChange",1),r([n(["name","src","library"])],t.prototype,"setIcon",1),t=r([b("sd-7-0-0-next-8-icon")],t);export{t as a};
1
+ import{a as v}from"./chunk.TWZDCIM2.js";import{b as y}from"./chunk.W5O4FM6B.js";import{a as p,b as u,c as a}from"./chunk.AUZKCMXB.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as b,b as s,c as f,h as c}from"./chunk.5B33ZALC.js";import{b as g,e as d}from"./chunk.OBAEIKIV.js";import{e as r}from"./chunk.6EV4YU6C.js";var h,t=class extends c{constructor(){super(...arguments);this.svg="";this.label="";this.library="default";this.color="currentColor"}connectedCallback(){super.connectedCallback(),p(this)}firstUpdated(){this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),u(this)}onThemeChange(){this.setIcon()}getUrl(){let e=a(this.library);return this.name&&e?e.name==="_internal"||e.name==="sd-multi-theming"?e.resolver(this.name,this):e.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 e=a(this.library),i=this.getUrl();if(h||(h=new DOMParser),i)try{let o=await v(i);if(i===this.getUrl())if(o.ok){let l=h.parseFromString(o.svg,"text/html").body.querySelector("svg");l!==null?((m=e==null?void 0:e.mutator)==null||m.call(e,l),this.svg=l.outerHTML,this.emit("sd-load")):(this.svg="",this.emit("sd-error"))}else this.svg="",this.emit("sd-error")}catch(o){this.emit("sd-error")}else this.svg.length>0&&(this.svg="")}render(){return d`<sd-7-0-0-next-9-theme-listener></sd-7-0-0-next-9-theme-listener>${y(this.svg)}`}};t.styles=[...c.styles,g`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{width:1em;height:1em;box-sizing:content-box!important;display:inline-block}svg{display:block;height:100%;width:100%}:host([color=primary]) svg{color:rgba(var(--sd-color-icon-fill-primary,var(--sd-color-primary)))}:host([name^='content/'][color=primary]) svg{color:rgba(var(--sd-color-icon-fill-content-icons-primary,var(--sd-color-primary)))}:host([color=white]) svg{color:rgba(var(--sd-color-text-white))}`],r([f()],t.prototype,"svg",2),r([s({reflect:!0})],t.prototype,"name",2),r([s()],t.prototype,"src",2),r([s()],t.prototype,"label",2),r([s({reflect:!0})],t.prototype,"library",2),r([s({reflect:!0})],t.prototype,"color",2),r([n("label")],t.prototype,"handleLabelChange",1),r([n(["name","src","library"])],t.prototype,"setIcon",1),t=r([b("sd-7-0-0-next-9-icon")],t);export{t as a};
@@ -1,2 +1,2 @@
1
1
  import{a as kt}from"./chunk.4ZZFYCXX.js";import{a as Dt,b as O,d as Rt,h as Et}from"./chunk.5B33ZALC.js";import{b as $t,e as Ot}from"./chunk.OBAEIKIV.js";import{a as P,b as N,c as mt,e as A}from"./chunk.6EV4YU6C.js";var H=Math.min,D=Math.max,at=Math.round,ft=Math.floor,W=t=>({x:t,y:t}),me={left:"right",right:"left",bottom:"top",top:"bottom"};function Ct(t,e,n){return D(t,H(e,n))}function K(t,e){return typeof t=="function"?t(e):t}function X(t){return t.split("-")[0]}function G(t){return t.split("-")[1]}function Tt(t){return t==="x"?"y":"x"}function pt(t){return t==="y"?"height":"width"}function _(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function wt(t){return Tt(_(t))}function Nt(t,e,n){n===void 0&&(n=!1);let i=G(t),o=wt(t),r=pt(o),s=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=ct(s)),[s,ct(s)]}function Ht(t){let e=ct(t);return[gt(t),e,gt(e)]}function gt(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}var Ft=["left","right"],Bt=["right","left"],ge=["top","bottom"],pe=["bottom","top"];function we(t,e,n){switch(t){case"top":case"bottom":return n?e?Bt:Ft:e?Ft:Bt;case"left":case"right":return e?ge:pe;default:return[]}}function Wt(t,e,n,i){let o=G(t),r=we(X(t),n==="start",i);return o&&(r=r.map(s=>s+"-"+o),e&&(r=r.concat(r.map(gt)))),r}function ct(t){let e=X(t);return me[e]+t.slice(e.length)}function ye(t){var e,n,i,o;return{top:(e=t.top)!=null?e:0,right:(n=t.right)!=null?n:0,bottom:(i=t.bottom)!=null?i:0,left:(o=t.left)!=null?o:0}}function Lt(t){return typeof t!="number"?ye(t):{top:t,right:t,bottom:t,left:t}}function J(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 _t(t,e,n){let{reference:i,floating:o}=t,r=_(e),s=wt(e),l=pt(s),c=X(e),a=r==="y",u=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,d=i[l]/2-o[l]/2,f;switch(c){case"top":f={x:u,y:i.y-o.height};break;case"bottom":f={x:u,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:h};break;case"left":f={x:i.x-o.width,y:h};break;default:f={x:i.x,y:i.y}}let m=G(e);return m&&(f[s]+=d*(m==="end"?1:-1)*(n&&a?-1:1)),f}async function Vt(t,e){var n;e===void 0&&(e={});let{x:i,y:o,platform:r,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:f=0}=K(e,t),m=Lt(f),w=l[d?h==="floating"?"reference":"floating":h],p=J(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:a,rootBoundary:u,strategy:c})),x=h==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),v=await(r.isElement==null?void 0:r.isElement(b))&&await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1},E=J(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:b,strategy:c}):x);return{top:(p.top-E.top+m.top)/v.y,bottom:(E.bottom-p.bottom+m.bottom)/v.y,left:(p.left-E.left+m.left)/v.x,right:(E.right-p.right+m.right)/v.x}}var ve=50,jt=async(t,e,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,l=s.detectOverflow?s:N(P({},s),{detectOverflow:Vt}),c=await(s.isRTL==null?void 0:s.isRTL(e)),a=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:h}=_t(a,i,c),d=i,f=0,m={};for(let g=0;g<r.length;g++){let w=r[g];if(!w)continue;let{name:p,fn:x}=w,{x:b,y:v,data:E,reset:R}=await x({x:u,y:h,initialPlacement:i,placement:d,strategy:o,middlewareData:m,rects:a,platform:l,elements:{reference:t,floating:e}});u=b!=null?b:u,h=v!=null?v:h,m[p]=P(P({},m[p]),E),R&&f<ve&&(f++,typeof R=="object"&&(R.placement&&(d=R.placement),R.rects&&(a=R.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):R.rects),{x:u,y:h}=_t(a,d,c)),g=-1)}return{x:u,y:h,placement:d,strategy:o,middlewareData:m}},It=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:o,rects:r,platform:s,elements:l,middlewareData:c}=e,{element:a,padding:u=0}=K(t,e)||{};if(a==null)return{};let h=Lt(u),d={x:n,y:i},f=wt(o),m=pt(f),g=await s.getDimensions(a),w=f==="y",p=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",v=r.reference[m]+r.reference[f]-d[f]-r.floating[m],E=d[f]-r.reference[f],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a)),L=R?R[b]:0;(!L||!await(s.isElement==null?void 0:s.isElement(R)))&&(L=l.floating[b]||r.floating[m]);let z=v/2-E/2,S=L/2-g[m]/2-1,C=H(h[p],S),rt=H(h[x],S),st=L-g[m]-rt,B=L/2-g[m]/2+z,et=Ct(C,B,st),M=!c.arrow&&G(o)!=null&&B!==et&&r.reference[m]/2-(B<C?C:rt)-g[m]/2<0,q=M?B<C?B-C:B-st:0;return{[f]:d[f]+q,data:P({[f]:et,centerOffset:B-et-q},M&&{alignmentOffset:q}),reset:M}}});var Xt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;let{placement:o,middlewareData:r,rects:s,initialPlacement:l,platform:c,elements:a}=e,et=K(t,e),{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0}=et,w=mt(et,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((n=r.arrow)!=null&&n.alignmentOffset)return{};let p=X(o),x=_(l),b=X(l)===l,v=await(c.isRTL==null?void 0:c.isRTL(a.floating)),E=d||(b||!g?[ct(l)]:Ht(l)),R=m!=="none";!d&&R&&E.push(...Wt(l,g,m,v));let L=[l,...E],z=await c.detectOverflow(e,w),S=[],C=((i=r.flip)==null?void 0:i.overflows)||[];if(u&&S.push(z[p]),h){let M=Nt(o,s,v);S.push(z[M[0]],z[M[1]])}if(C=[...C,{placement:o,overflows:S}],!S.every(M=>M<=0)){var rt,st;let M=(((rt=r.flip)==null?void 0:rt.index)||0)+1,q=L[M];if(q&&(!(h==="alignment"?x!==_(q):!1)||C.every($=>_($.placement)===x?$.overflows[0]>0:!0)))return{data:{index:M,overflows:C},reset:{placement:q}};let lt=(st=C.filter(U=>U.overflows[0]<=0).sort((U,$)=>U.overflows[1]-$.overflows[1])[0])==null?void 0:st.placement;if(!lt)switch(f){case"bestFit":{var B;let U=(B=C.filter($=>{if(R){let I=_($.placement);return I===x||I==="y"}return!0}).map($=>[$.placement,$.overflows.filter(I=>I>0).reduce((I,de)=>I+de,0)]).sort(($,I)=>$[1]-I[1])[0])==null?void 0:B[0];U&&(lt=U);break}case"initialPlacement":lt=l;break}if(o!==lt)return{reset:{placement:lt}}}return{}}}};var xe=new Set(["left","top"]);async function be(t,e){let{placement:n,platform:i,elements:o}=t,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),s=X(n),l=G(n),c=_(n)==="y",a=xe.has(s)?-1:1,u=r&&c?-1:1,h=K(e,t),{mainAxis:d,crossAxis:f,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof m=="number"&&(f=l==="end"?m*-1:m),c?{x:f*u,y:d*a}:{x:d*a,y:f*u}}var Yt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:o,y:r,placement:s,middlewareData:l}=e,c=await be(e,t);return s===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:o+c.x,y:r+c.y,data:N(P({},c),{placement:s})}}}},qt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:o,platform:r}=e,x=K(t,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:b=>{let{x:v,y:E}=b;return{x:v,y:E}}}}=x,a=mt(x,["mainAxis","crossAxis","limiter"]),u={x:n,y:i},h=await r.detectOverflow(e,a),d=_(o),f=Tt(d),m=u[f],g=u[d],w=(b,v)=>Ct(v+h[b==="y"?"top":"left"],v,v-h[b==="y"?"bottom":"right"]);s&&(m=w(f,m)),l&&(g=w(d,g));let p=c.fn(N(P({},e),{[f]:m,[d]:g}));return N(P({},p),{data:{x:p.x-n,y:p.y-i,enabled:{[f]:s,[d]:l}}})}}};var Ut=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:n,rects:i,platform:o,elements:r}=e,S=K(t,e),{apply:s=()=>{}}=S,l=mt(S,["apply"]),c=await o.detectOverflow(e,l),a=X(n),u=G(n),h=_(n)==="y",{width:d,height:f}=i.floating,m,g;a==="top"||a==="bottom"?(m=a,g=u===(await(o.isRTL==null?void 0:o.isRTL(r.floating))?"start":"end")?"left":"right"):(g=a,m=u==="end"?"top":"bottom");let w=f-c.top-c.bottom,p=d-c.left-c.right,x=H(f-c[m],w),b=H(d-c[g],p),v=e.middlewareData.shift,E=!v,R=x,L=b;v!=null&&v.enabled.x&&(L=p),v!=null&&v.enabled.y&&(R=w),E&&!u&&(h?L=d-2*D(c.left,c.right):R=f-2*D(c.top,c.bottom)),await s(N(P({},e),{availableWidth:L,availableHeight:R}));let z=await o.getDimensions(r.floating);return d!==z.width||f!==z.height?{reset:{rects:!0}}:{}}}};function yt(){return typeof window!="undefined"}function Z(t){return Gt(t)?(t.nodeName||"").toLowerCase():"#document"}function T(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function V(t){var e;return(e=(Gt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Gt(t){return yt()?t instanceof Node||t instanceof T(t).Node:!1}function k(t){return yt()?t instanceof Element||t instanceof T(t).Element:!1}function j(t){return yt()?t instanceof HTMLElement||t instanceof T(t).HTMLElement:!1}function Kt(t){return!yt()||typeof ShadowRoot=="undefined"?!1:t instanceof ShadowRoot||t instanceof T(t).ShadowRoot}function ut(t){let{overflow:e,overflowX:n,overflowY:i,display:o}=F(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&o!=="inline"&&o!=="contents"}function Jt(t){return/^(table|td|th)$/.test(Z(t))}function ht(t){try{if(t.matches(":popover-open"))return!0}catch(e){}try{return t.matches(":modal")}catch(e){return!1}}var Ae=/transform|translate|scale|rotate|perspective|filter/,Oe=/paint|layout|strict|content/,Q=t=>!!t&&t!=="none",Pt;function vt(t){let e=k(t)?F(t):t;return Q(e.transform)||Q(e.translate)||Q(e.scale)||Q(e.rotate)||Q(e.perspective)||!xt()&&(Q(e.backdropFilter)||Q(e.filter))||Ae.test(e.willChange||"")||Oe.test(e.contain||"")}function Qt(t){let e=Y(t);for(;j(e)&&!it(e);){if(vt(e))return e;if(ht(e))return null;e=Y(e)}return null}function xt(){return Pt==null&&(Pt=typeof CSS!="undefined"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Pt}function it(t){return/^(html|body|#document)$/.test(Z(t))}function F(t){return T(t).getComputedStyle(t)}function dt(t){return k(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Y(t){if(Z(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Kt(t)&&t.host||V(t);return Kt(e)?e.host:e}function Zt(t){let e=Y(t);return it(e)?(t.ownerDocument||t).body:j(e)&&ut(e)?e:Zt(e)}function nt(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);let o=Zt(t),r=o===((i=t.ownerDocument)==null?void 0:i.body),s=T(o);if(r){let l=bt(s);return e.concat(s,s.visualViewport||[],ut(o)?o:[],l&&n?nt(l):[])}else return e.concat(o,nt(o,[],n))}function bt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ne(t){let e=F(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=j(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,l=at(n)!==r||at(i)!==s;return l&&(n=r,i=s),{width:n,height:i,$:l}}function zt(t){return k(t)?t:t.contextElement}function ot(t){let e=zt(t);if(!j(e))return W(1);let n=e.getBoundingClientRect(),{width:i,height:o,$:r}=ne(e),s=(r?at(n.width):n.width)/i,l=(r?at(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Re=W(0);function ie(t){let e=T(t);return!xt()||!e.visualViewport?Re:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ee(t,e,n){return e===void 0&&(e=!1),!!n&&e&&n===T(t)}function tt(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);let o=t.getBoundingClientRect(),r=zt(t),s=W(1);e&&(i?k(i)&&(s=ot(i)):s=ot(t));let l=Ee(r,n,i)?ie(r):W(0),c=(o.left+l.x)/s.x,a=(o.top+l.y)/s.y,u=o.width/s.x,h=o.height/s.y;if(r&&i){let d=T(r),f=k(i)?T(i):i,m=d,g=bt(m);for(;g&&f!==m;){let w=ot(g),p=g.getBoundingClientRect(),x=F(g),b=p.left+(g.clientLeft+parseFloat(x.paddingLeft))*w.x,v=p.top+(g.clientTop+parseFloat(x.paddingTop))*w.y;c*=w.x,a*=w.y,u*=w.x,h*=w.y,c+=b,a+=v,m=T(g),g=bt(m)}}return J({width:u,height:h,x:c,y:a})}function At(t,e){let n=dt(t).scrollLeft;return e?e.left+n:tt(V(t)).left+n}function oe(t,e){let n=t.getBoundingClientRect(),i=n.left+e.scrollLeft-At(t,n),o=n.top+e.scrollTop;return{x:i,y:o}}function Ce(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t,r=o==="fixed",s=V(i),l=e?ht(e.floating):!1;if(i===s||l&&r)return n;let c={scrollLeft:0,scrollTop:0},a=W(1),u=W(0),h=j(i);if((h||!r)&&((Z(i)!=="body"||ut(s))&&(c=dt(i)),h)){let f=tt(i);a=ot(i),u.x=f.x+i.clientLeft,u.y=f.y+i.clientTop}let d=s&&!h&&!r?oe(s,c):W(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+u.x+d.x,y:n.y*a.y-c.scrollTop*a.y+u.y+d.y}}function Te(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Le(t){let e=dt(t),n=t.ownerDocument.body,i=D(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=D(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),r=-e.scrollLeft+At(t),s=-e.scrollTop;return F(n).direction==="rtl"&&(r+=D(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:r,y:s}}var Pe=25;function Se(t,e,n){n===void 0&&(n="viewport");let i=n==="layoutViewport",o=T(t),r=V(t),s=o.visualViewport,l=r.clientWidth,c=r.clientHeight,a=0,u=0;if(s){let d=!xt()||e==="fixed";i?d||(a=-s.offsetLeft,u=-s.offsetTop):(l=s.width,c=s.height,d&&(a=s.offsetLeft,u=s.offsetTop))}if(At(r)<=0){let d=r.ownerDocument,f=d.body,m=getComputedStyle(f),g=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,w=Math.abs(r.clientWidth-f.clientWidth-g),p=getComputedStyle(r).scrollbarGutter==="stable both-edges"?w/2:w;p<=Pe&&(l-=p)}return{width:l,height:c,x:a,y:u}}function ze(t,e){let n=tt(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=ot(t),s=t.clientWidth*r.x,l=t.clientHeight*r.y,c=o*r.x,a=i*r.y;return{width:s,height:l,x:c,y:a}}function te(t,e,n){let i;if(e==="viewport"||e==="layoutViewport")i=Se(t,n,e);else if(e==="document")i=Le(V(t));else if(k(e))i=ze(e,n);else{let o=ie(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return J(i)}function Me(t,e){let n=e.get(t);if(n)return n;let i=nt(t,[],!1).filter(l=>k(l)&&Z(l)!=="body"),o=null,r=F(t).position==="fixed",s=r?Y(t):t;for(;k(s)&&!it(s);){let l=F(s),c=vt(s),a=o?o.position:r?"fixed":"";!c&&(a==="fixed"||a==="absolute"&&l.position==="static")?i=i.filter(h=>h!==s):o=l,s=Y(s)}return e.set(t,i),i}function $e(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t,s=[...n==="clippingAncestors"?ht(e)?[]:Me(e,this._c):[].concat(n),i],l=te(e,s[0],o),c=l.top,a=l.right,u=l.bottom,h=l.left;for(let d=1;d<s.length;d++){let f=te(e,s[d],o);c=D(f.top,c),a=H(f.right,a),u=H(f.bottom,u),h=D(f.left,h)}return{width:a-h,height:u-c,x:h,y:c}}function De(t){let{width:e,height:n}=ne(t);return{width:e,height:n}}function ke(t,e,n){let i=j(e),o=V(e),r=n==="fixed",s=tt(t,!0,r,e),l={scrollLeft:0,scrollTop:0},c=W(0);if((i||!r)&&((Z(e)!=="body"||ut(o))&&(l=dt(e)),i)){let d=tt(e,!0,r,e);c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}!i&&o&&(c.x=At(o));let a=o&&!i&&!r?oe(o,l):W(0),u=s.left+l.scrollLeft-c.x-a.x,h=s.top+l.scrollTop-c.y-a.y;return{x:u,y:h,width:s.width,height:s.height}}function St(t){return F(t).position==="static"}function ee(t,e){if(!j(t)||F(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function re(t,e){let n=T(t);if(ht(t))return n;if(!j(t)){let o=Y(t);for(;o&&!it(o);){if(k(o)&&!St(o))return o;o=Y(o)}return n}let i=ee(t,e);for(;i&&Jt(i)&&St(i);)i=ee(i,e);return i&&it(i)&&St(i)&&!vt(i)?n:i||Qt(t)||n}var Fe=async function(t){let e=this.getOffsetParent||re,n=this.getDimensions,i=await n(t.floating);return{reference:ke(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Be(t){return F(t).direction==="rtl"}var Ne={convertOffsetParentRelativeRectToViewportRelativeRect:Ce,getDocumentElement:V,getClippingRect:$e,getOffsetParent:re,getElementRects:Fe,getClientRects:Te,getDimensions:De,getScale:ot,isElement:k,isRTL:Be};function se(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function He(t,e,n){let i=null,o,r=V(t);function s(){var u;clearTimeout(o),(u=i)==null||u.disconnect(),i=null}function l(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),s();let d=t.getBoundingClientRect(),{left:f,top:m,width:g,height:w}=d;if(u||e(),!g||!w)return;let p=ft(m),x=ft(r.clientWidth-(f+g)),b=ft(r.clientHeight-(m+w)),v=ft(f),R={rootMargin:-p+"px "+-x+"px "+-b+"px "+-v+"px",threshold:D(0,H(1,h))||1},L=!0;function z(S){let C=S[0].intersectionRatio;if(!se(d,t.getBoundingClientRect()))return l();if(C!==h){if(!L)return l();C?l(!1,C):o=setTimeout(()=>{l(!1,1e-7)},1e3)}L=!1}try{i=new IntersectionObserver(z,N(P({},R),{root:r.ownerDocument}))}catch(S){i=new IntersectionObserver(z,R)}i.observe(t)}let c=T(t),a=()=>l(n);return c.addEventListener("resize",a),l(!0),()=>{c.removeEventListener("resize",a),s()}}function le(t,e,n,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=i,a=zt(t),u=o||r?[...a?nt(a):[],...e?nt(e):[]]:[];u.forEach(p=>{o&&p.addEventListener("scroll",n),r&&p.addEventListener("resize",n)});let h=a&&l?He(a,n,r):null,d=-1,f=null;s&&(f=new ResizeObserver(p=>{let[x]=p;x&&x.target===a&&f&&e&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(e)})),n()}),a&&!c&&f.observe(a),e&&f.observe(e));let m,g=c?tt(t):null;c&&w();function w(){let p=tt(t);g&&!se(g,p)&&n(),g=p,m=requestAnimationFrame(w)}return n(),()=>{var p;u.forEach(x=>{o&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),h==null||h(),(p=f)==null||p.disconnect(),f=null,c&&cancelAnimationFrame(m)}}var ce=Yt;var ae=qt,fe=Xt,Mt=Ut;var ue=It;var he=(t,e,n)=>{let i=new Map,o=n!=null?n:{},r=N(P(P({},Ne),o.platform),{_c:i});return jt(t,e,N(P({},o),{platform:r}))};var y=class extends Et{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=le(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=[ce({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?n.push(Mt({apply:({rects:i})=>{let o=this.sync==="width"||this.sync==="both",r=this.sync==="height"||this.sync==="both";this.popup.style.width=o?`${i.reference.width}px`:"",this.popup.style.height=r?`${i.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&n.push(fe({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&n.push(ae({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?n.push(Mt({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(ue({element:this.arrowEl,padding:this.arrowPadding})),he(this.anchorEl,this.popup,{placement:this.placement,middleware:n,strategy:this.strategy}).then(({x:i,y:o,middlewareData:r,placement:s})=>{let l=getComputedStyle(this).direction==="rtl",c={top:"bottom",right:"left",bottom:"top",left:"right"}[s.split("-")[0]];if(this.setAttribute("data-current-placement",s),Object.assign(this.popup.style,{left:`${i}px`,top:`${o}px`}),this.arrow){let a=r.arrow.x,u=r.arrow.y,h="",d="",f="",m="";if(this.arrowPlacement==="start"){let g=typeof a=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";h=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",d=l?g:"",m=l?"":g}else if(this.arrowPlacement==="end"){let g=typeof a=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";d=l?"":g,m=l?g:"",f=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(m=typeof a=="number"?"calc(50% - var(--arrow-size-diagonal))":"",h=typeof u=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(m=typeof a=="number"?`${a}px`:"",h=typeof u=="number"?`${u}px`:"");Object.assign(this.arrowEl.style,{top:h,right:d,bottom:f,left:m,[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="${kt("isolate z-20",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>`}};y.styles=[...Et.styles,$t`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :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-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none)}[part=arrow]{width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);background:var(--arrow-color)}`],A([Rt('[part="popup"]')],y.prototype,"popup",2),A([Rt('[part="arrow"]')],y.prototype,"arrowEl",2),A([O({reflect:!0})],y.prototype,"anchor",2),A([O({type:Boolean,reflect:!0})],y.prototype,"active",2),A([O({type:String,reflect:!0})],y.prototype,"placement",2),A([O({type:String,reflect:!0})],y.prototype,"strategy",2),A([O({type:Number,reflect:!0})],y.prototype,"distance",2),A([O({type:Number,reflect:!0})],y.prototype,"skidding",2),A([O({type:Boolean,reflect:!0})],y.prototype,"arrow",2),A([O({type:String,attribute:"arrow-placement",reflect:!0})],y.prototype,"arrowPlacement",2),A([O({attribute:"arrow-padding",type:Number,reflect:!0})],y.prototype,"arrowPadding",2),A([O({type:Boolean,reflect:!0})],y.prototype,"flip",2),A([O({attribute:"flip-fallback-placements",converter:{fromAttribute:n=>n.split(" ").map(i=>i.trim()).filter(i=>i!==""),toAttribute:n=>n.join(" ")}})],y.prototype,"flipFallbackPlacements",2),A([O({type:String,attribute:"flip-fallback-strategy"})],y.prototype,"flipFallbackStrategy",2),A([O({type:Object})],y.prototype,"flipBoundary",2),A([O({attribute:"flip-padding",type:Number})],y.prototype,"flipPadding",2),A([O({type:Boolean})],y.prototype,"shift",2),A([O({type:Object})],y.prototype,"shiftBoundary",2),A([O({attribute:"shift-padding",type:Number})],y.prototype,"shiftPadding",2),A([O({type:String,attribute:"auto-size"})],y.prototype,"autoSize",2),A([O()],y.prototype,"sync",2),A([O({type:Object})],y.prototype,"autoSizeBoundary",2),A([O({attribute:"auto-size-padding",type:Number})],y.prototype,"autoSizePadding",2),y=A([Dt("sd-7-0-0-next-8-popup")],y);export{y as a};
2
+ :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-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none)}[part=arrow]{width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);background:var(--arrow-color)}`],A([Rt('[part="popup"]')],y.prototype,"popup",2),A([Rt('[part="arrow"]')],y.prototype,"arrowEl",2),A([O({reflect:!0})],y.prototype,"anchor",2),A([O({type:Boolean,reflect:!0})],y.prototype,"active",2),A([O({type:String,reflect:!0})],y.prototype,"placement",2),A([O({type:String,reflect:!0})],y.prototype,"strategy",2),A([O({type:Number,reflect:!0})],y.prototype,"distance",2),A([O({type:Number,reflect:!0})],y.prototype,"skidding",2),A([O({type:Boolean,reflect:!0})],y.prototype,"arrow",2),A([O({type:String,attribute:"arrow-placement",reflect:!0})],y.prototype,"arrowPlacement",2),A([O({attribute:"arrow-padding",type:Number,reflect:!0})],y.prototype,"arrowPadding",2),A([O({type:Boolean,reflect:!0})],y.prototype,"flip",2),A([O({attribute:"flip-fallback-placements",converter:{fromAttribute:n=>n.split(" ").map(i=>i.trim()).filter(i=>i!==""),toAttribute:n=>n.join(" ")}})],y.prototype,"flipFallbackPlacements",2),A([O({type:String,attribute:"flip-fallback-strategy"})],y.prototype,"flipFallbackStrategy",2),A([O({type:Object})],y.prototype,"flipBoundary",2),A([O({attribute:"flip-padding",type:Number})],y.prototype,"flipPadding",2),A([O({type:Boolean})],y.prototype,"shift",2),A([O({type:Object})],y.prototype,"shiftBoundary",2),A([O({attribute:"shift-padding",type:Number})],y.prototype,"shiftPadding",2),A([O({type:String,attribute:"auto-size"})],y.prototype,"autoSize",2),A([O()],y.prototype,"sync",2),A([O({type:Object})],y.prototype,"autoSizeBoundary",2),A([O({attribute:"auto-size-padding",type:Number})],y.prototype,"autoSizePadding",2),y=A([Dt("sd-7-0-0-next-9-popup")],y);export{y as a};
@@ -1,2 +1,2 @@
1
- import{a as y}from"./chunk.LHSR56PH.js";import{a as M}from"./chunk.CGQ2BPPZ.js";import{a as t,c as a}from"./chunk.B2NUKX6G.js";import{a as f}from"./chunk.KLRPP4NQ.js";import{a as x}from"./chunk.MEDJPDBB.js";import{a as c}from"./chunk.4ZZFYCXX.js";import{a as b}from"./chunk.NYKJXI3Q.js";import{a as w,b as h,d as p,h as m}from"./chunk.5B33ZALC.js";import{b as v,e as n}from"./chunk.OBAEIKIV.js";import{b as l,e as u}from"./chunk.W4QBFD6E.js";import{e as i}from"./chunk.6EV4YU6C.js";var o=class extends m{constructor(){super(...arguments);this.hasSlotController=new M(this,"footer");this.localize=new x(this);this.hasUiMotion=!1;this.open=!1;this.headline="";this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.updateMotionTheme()}firstUpdated(){this.dialog.addEventListener("cancel",e=>{e.preventDefault(),this.requestClose("keyboard")}),this.open&&this.dialog.showModal()}onThemeChange(){this.updateMotionTheme()}updateMotionTheme(){let e=getComputedStyle(this).getPropertyValue("--sd-theme").trim().replace(/['"]/g,"");this.hasUiMotion=e===""||e==="ui-light"||e==="ui-dark"}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 s=a(this,this.hasUiMotion?"dialog.denyClose":"dialog.denyCloseSimple",{dir:this.localize.dir()});l(this.panel,s.keyframes,s.options);return}this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show");let e=this.querySelector("[autofocus]");e&&e.removeAttribute("autofocus"),await u(this.dialog),this.dialog.showModal(),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.hasUiMotion?"dialog.show":"dialog.showSimple",s=this.prefersReducedMotion?a(this,"dialog.showReducedMotion",{dir:this.localize.dir()}):a(this,r,{dir:this.localize.dir()}),d=this.hasUiMotion?"dialog.overlay.show":"dialog.overlay.showSimple",g=a(this,d,{dir:this.localize.dir()});await Promise.all([l(this.panel,s.keyframes,s.options),l(this.overlay,g.keyframes,g.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),await u(this.dialog);let e=this.hasUiMotion?"dialog.hide":"dialog.hideSimple",r=this.prefersReducedMotion?a(this,"dialog.hideReducedMotion",{dir:this.localize.dir()}):a(this,e,{dir:this.localize.dir()}),s=this.hasUiMotion?"dialog.overlay.hide":"dialog.overlay.hideSimple",d=a(this,s,{dir:this.localize.dir()});await Promise.all([l(this.overlay,d.keyframes,d.options).then(()=>{this.overlay.hidden=!0}),l(this.panel,r.keyframes,r.options).then(()=>{this.panel.hidden=!0})]),this.dialog.close(),this.overlay.hidden=!1,this.panel.hidden=!1,this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,f(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,f(this,"sd-after-hide")}render(){return n`<sd-7-0-0-next-8-theme-listener></sd-7-0-0-next-8-theme-listener><dialog part="base" class="${c("flex items-center justify-center p-0 m-auto bg-transparent border-none overflow-visible",this.hasSlotController.test("footer")&&"dialog--has-footer")}"><div part="overlay" class="fixed inset-0" @click="${()=>this.requestClose("overlay")}"></div><div part="panel" class="${c("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")}" aria-label="${y(this.headline?this.headline:void 0)}" aria-labelledby="${y(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?n`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>`:n`<slot name="headline"></slot>`}</h2>${this.noCloseButton?"":n`<sd-7-0-0-next-8-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${c("absolute top-2 right-2")}" name="x-lg" @click="${()=>this.requestClose("close-button")}" type="button"><sd-7-0-0-next-8-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-7-0-0-next-8-icon></sd-7-0-0-next-8-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></dialog>`}};o.styles=[...m.styles,v`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{--width:662px;display:contents}[part=base]:not([open]){display:none}[part=panel]{width:var(--width);max-height:80vh}[part=body]{-webkit-overflow-scrolling:touch}::backdrop{display:none}[part=overlay]{background-color:rgb(var(--sd-overlay-color-background,5 21 48 / .9))}@media (max-width:414px){:host{--width:335px}[part=body]{min-height:50px}[part=footer]{width:100%}}`],i([p('[part="base"]')],o.prototype,"dialog",2),i([p('[part="overlay"]')],o.prototype,"overlay",2),i([p('[part="panel"]')],o.prototype,"panel",2),i([h({type:Boolean,reflect:!0})],o.prototype,"open",2),i([h({type:String,reflect:!0})],o.prototype,"headline",2),i([h({attribute:"no-close-button",type:Boolean,reflect:!0})],o.prototype,"noCloseButton",2),i([b("open",{waitUntilFirstUpdate:!0})],o.prototype,"handleOpenChange",1),o=i([w("sd-7-0-0-next-8-dialog")],o);t("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"}});t("dialog.showReducedMotion",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});t("dialog.showSimple",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});t("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"}});t("dialog.hideReducedMotion",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});t("dialog.hideSimple",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});t("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});t("dialog.denyCloseSimple",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});t("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});t("dialog.overlay.showSimple",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250,reducedMotion:"allow"}});t("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});t("dialog.overlay.hideSimple",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250,reducedMotion:"allow"}});export{o as a};
1
+ import{a as y}from"./chunk.LHSR56PH.js";import{a as M}from"./chunk.CGQ2BPPZ.js";import{a as t,c as a}from"./chunk.B2NUKX6G.js";import{a as f}from"./chunk.KLRPP4NQ.js";import{a as x}from"./chunk.MEDJPDBB.js";import{a as c}from"./chunk.4ZZFYCXX.js";import{a as b}from"./chunk.NYKJXI3Q.js";import{a as w,b as h,d as p,h as m}from"./chunk.5B33ZALC.js";import{b as v,e as n}from"./chunk.OBAEIKIV.js";import{b as l,e as u}from"./chunk.W4QBFD6E.js";import{e as i}from"./chunk.6EV4YU6C.js";var o=class extends m{constructor(){super(...arguments);this.hasSlotController=new M(this,"footer");this.localize=new x(this);this.hasUiMotion=!1;this.open=!1;this.headline="";this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.updateMotionTheme()}firstUpdated(){this.dialog.addEventListener("cancel",e=>{e.preventDefault(),this.requestClose("keyboard")}),this.open&&this.dialog.showModal()}onThemeChange(){this.updateMotionTheme()}updateMotionTheme(){let e=getComputedStyle(this).getPropertyValue("--sd-theme").trim().replace(/['"]/g,"");this.hasUiMotion=e===""||e==="ui-light"||e==="ui-dark"}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 s=a(this,this.hasUiMotion?"dialog.denyClose":"dialog.denyCloseSimple",{dir:this.localize.dir()});l(this.panel,s.keyframes,s.options);return}this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show");let e=this.querySelector("[autofocus]");e&&e.removeAttribute("autofocus"),await u(this.dialog),this.dialog.showModal(),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.hasUiMotion?"dialog.show":"dialog.showSimple",s=this.prefersReducedMotion?a(this,"dialog.showReducedMotion",{dir:this.localize.dir()}):a(this,r,{dir:this.localize.dir()}),d=this.hasUiMotion?"dialog.overlay.show":"dialog.overlay.showSimple",g=a(this,d,{dir:this.localize.dir()});await Promise.all([l(this.panel,s.keyframes,s.options),l(this.overlay,g.keyframes,g.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),await u(this.dialog);let e=this.hasUiMotion?"dialog.hide":"dialog.hideSimple",r=this.prefersReducedMotion?a(this,"dialog.hideReducedMotion",{dir:this.localize.dir()}):a(this,e,{dir:this.localize.dir()}),s=this.hasUiMotion?"dialog.overlay.hide":"dialog.overlay.hideSimple",d=a(this,s,{dir:this.localize.dir()});await Promise.all([l(this.overlay,d.keyframes,d.options).then(()=>{this.overlay.hidden=!0}),l(this.panel,r.keyframes,r.options).then(()=>{this.panel.hidden=!0})]),this.dialog.close(),this.overlay.hidden=!1,this.panel.hidden=!1,this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,f(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,f(this,"sd-after-hide")}render(){return n`<sd-7-0-0-next-9-theme-listener></sd-7-0-0-next-9-theme-listener><dialog part="base" class="${c("flex items-center justify-center p-0 m-auto bg-transparent border-none overflow-visible",this.hasSlotController.test("footer")&&"dialog--has-footer")}"><div part="overlay" class="fixed inset-0" @click="${()=>this.requestClose("overlay")}"></div><div part="panel" class="${c("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")}" aria-label="${y(this.headline?this.headline:void 0)}" aria-labelledby="${y(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?n`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>`:n`<slot name="headline"></slot>`}</h2>${this.noCloseButton?"":n`<sd-7-0-0-next-9-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${c("absolute top-2 right-2")}" name="x-lg" @click="${()=>this.requestClose("close-button")}" type="button"><sd-7-0-0-next-9-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-7-0-0-next-9-icon></sd-7-0-0-next-9-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></dialog>`}};o.styles=[...m.styles,v`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{--width:662px;display:contents}[part=base]:not([open]){display:none}[part=panel]{width:var(--width);max-height:80vh}[part=body]{-webkit-overflow-scrolling:touch}::backdrop{display:none}[part=overlay]{background-color:rgb(var(--sd-overlay-color-background,5 21 48 / .9))}@media (max-width:414px){:host{--width:335px}[part=body]{min-height:50px}[part=footer]{width:100%}}`],i([p('[part="base"]')],o.prototype,"dialog",2),i([p('[part="overlay"]')],o.prototype,"overlay",2),i([p('[part="panel"]')],o.prototype,"panel",2),i([h({type:Boolean,reflect:!0})],o.prototype,"open",2),i([h({type:String,reflect:!0})],o.prototype,"headline",2),i([h({attribute:"no-close-button",type:Boolean,reflect:!0})],o.prototype,"noCloseButton",2),i([b("open",{waitUntilFirstUpdate:!0})],o.prototype,"handleOpenChange",1),o=i([w("sd-7-0-0-next-9-dialog")],o);t("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"}});t("dialog.showReducedMotion",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});t("dialog.showSimple",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});t("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"}});t("dialog.hideReducedMotion",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});t("dialog.hideSimple",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});t("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});t("dialog.denyCloseSimple",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});t("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});t("dialog.overlay.showSimple",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250,reducedMotion:"allow"}});t("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});t("dialog.overlay.hideSimple",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250,reducedMotion:"allow"}});export{o as a};
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk.LHSR56PH.js";import{a as l,b as n}from"./chunk.NL7YFV4O.js";import{a as f}from"./chunk.MEDJPDBB.js";import{a as o}from"./chunk.4ZZFYCXX.js";import{a as u,b as s,d as b,h as d}from"./chunk.5B33ZALC.js";import{b as h}from"./chunk.OBAEIKIV.js";import{e as i}from"./chunk.6EV4YU6C.js";var e=class extends d{constructor(){super(...arguments);this.localize=new f(this);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemove(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}async hide(){this.emit("sd-hide"),this.style.opacity="0",await new Promise(t=>setTimeout(t,this.token("--sd-duration-fast",150))),this.hidden=!0,this.emit("sd-after-hide")}render(){let t=this.isLink(),a=this.removable&&!this.selected&&!this.toggleable,c=t?l`a`:a?l`div`:l`button`;return n`<${c} part="base" type="${r(t?void 0:"button")}" href="${r(t?this.href:void 0)}" rel="${r(t&&this.target?"noreferrer noopener":void 0)}" target="${r(t?this.target:void 0)}" download="${r(t?this.download:void 0)}" ?disabled="${r(t?void 0:this.disabled)}" aria-labelledby="content" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${r(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled||a?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${o("flex border box-border sd-7-0-0-next-8-tag-border-radius items-center leading-none whitespace-nowrap transition-colors duration-fast ease-in-out focus-visible:focus-outline",{lg:"h-8 sd-7-0-0-next-8-tag-font-weight sd-7-0-0-next-8-tag--size-lg-font-size gap-2",sm:"h-6 sd-7-0-0-next-8-tag-font-weight sd-7-0-0-next-8-tag--size-sm-font-size gap-1"}[this.size],{lg:a?"sd-7-0-0-next-8-tag--removable--size-lg-padding-right sd-7-0-0-next-8-tag--removable--size-lg-padding-left py-3":"py-2 sd-7-0-0-next-8-tag--size-lg-padding-inline",sm:a?"sd-7-0-0-next-8-tag--removable--size-sm-padding-right sd-7-0-0-next-8-tag--removable--size-sm-padding-left py-2":"py-1 sd-7-0-0-next-8-tag--size-sm-padding-inline"}[this.size],this.disabled?o(!t&&"cursor-not-allowed",this.selected&&"bg-neutral-500 text-white","sd-7-0-0-next-8-tag--disabled-color-border sd-7-0-0-next-8-tag--disabled-color-text"):this.selected?"sd-7-0-0-next-8-tag--selected-border-width sd-7-0-0-next-8-tag--selected--default-color-background sd-7-0-0-next-8-tag--selected--default-color-border sd-7-0-0-next-8-tag--selected--default-color-text hover:sd-7-0-0-next-8-tag--selected--hover-color-background hover:sd-7-0-0-next-8-tag--selected--hover-color-border hover:sd-7-0-0-next-8-tag--selected--hover-color-text":o("sd-7-0-0-next-8-tag--default-color-border sd-7-0-0-next-8-tag--default-color-text",a?"sd-7-0-0-next-8-tag--default-color-background has-[button:hover]:border-primary-500 has-[button:hover]:text-primary-500":"sd-7-0-0-next-8-tag--default-color-background hover:border-primary-500 hover:text-primary-500 hover:sd-7-0-0-next-8-tag--default--hover-color-background"))}"><slot name="icon-left" class="${o("flex-shrink-0",this.size==="lg"?"text-base":"text-[0.75rem]")}"></slot><slot id="content" part="content"></slot>${a&&!t?n`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}" ?disabled="${r(t?void 0:this.disabled)}"><slot part="removable-indicator" name="removable-indicator" class="${o(this.disabled&&"sd-7-0-0-next-8-tag--disabled-color-text")}"><sd-7-0-0-next-8-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-7-0-0-next-8-icon></slot></button>`:""}</${c}>`}};e.styles=[...d.styles,h`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{display:inline-block;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host([size=lg])::part(removable-indicator){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=sm])::part(removable-indicator){font-size:.75rem}.sd-7-0-0-next-8-tag--disabled-color-border{border-color:rgb(var(--sd-tag--disabled-color-border))}.sd-7-0-0-next-8-tag-font-weight{font-weight:var(--sd-tag-font-weight)}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}`],i([b("a, button, div")],e.prototype,"tag",2),i([s({type:String,reflect:!0})],e.prototype,"size",2),i([s({type:Boolean,reflect:!0})],e.prototype,"selected",2),i([s({type:Boolean,reflect:!0})],e.prototype,"toggleable",2),i([s({type:Boolean,reflect:!0})],e.prototype,"removable",2),i([s({type:Boolean,reflect:!0})],e.prototype,"disabled",2),i([s({type:String,reflect:!0})],e.prototype,"href",2),i([s({type:String,reflect:!0})],e.prototype,"target",2),i([s({reflect:!0})],e.prototype,"download",2),e=i([u("sd-7-0-0-next-8-tag")],e);export{e as a};
1
+ import{a as r}from"./chunk.LHSR56PH.js";import{a as l,b as n}from"./chunk.NL7YFV4O.js";import{a as f}from"./chunk.MEDJPDBB.js";import{a as o}from"./chunk.4ZZFYCXX.js";import{a as u,b as s,d as b,h as d}from"./chunk.5B33ZALC.js";import{b as h}from"./chunk.OBAEIKIV.js";import{e as i}from"./chunk.6EV4YU6C.js";var e=class extends d{constructor(){super(...arguments);this.localize=new f(this);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemove(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}async hide(){this.emit("sd-hide"),this.style.opacity="0",await new Promise(t=>setTimeout(t,this.token("--sd-duration-fast",150))),this.hidden=!0,this.emit("sd-after-hide")}render(){let t=this.isLink(),a=this.removable&&!this.selected&&!this.toggleable,c=t?l`a`:a?l`div`:l`button`;return n`<${c} part="base" type="${r(t?void 0:"button")}" href="${r(t?this.href:void 0)}" rel="${r(t&&this.target?"noreferrer noopener":void 0)}" target="${r(t?this.target:void 0)}" download="${r(t?this.download:void 0)}" ?disabled="${r(t?void 0:this.disabled)}" aria-labelledby="content" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${r(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled||a?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${o("flex border box-border sd-7-0-0-next-9-tag-border-radius items-center leading-none whitespace-nowrap transition-colors duration-fast ease-in-out focus-visible:focus-outline",{lg:"h-8 sd-7-0-0-next-9-tag-font-weight sd-7-0-0-next-9-tag--size-lg-font-size gap-2",sm:"h-6 sd-7-0-0-next-9-tag-font-weight sd-7-0-0-next-9-tag--size-sm-font-size gap-1"}[this.size],{lg:a?"sd-7-0-0-next-9-tag--removable--size-lg-padding-right sd-7-0-0-next-9-tag--removable--size-lg-padding-left py-3":"py-2 sd-7-0-0-next-9-tag--size-lg-padding-inline",sm:a?"sd-7-0-0-next-9-tag--removable--size-sm-padding-right sd-7-0-0-next-9-tag--removable--size-sm-padding-left py-2":"py-1 sd-7-0-0-next-9-tag--size-sm-padding-inline"}[this.size],this.disabled?o(!t&&"cursor-not-allowed",this.selected&&"bg-neutral-500 text-white","sd-7-0-0-next-9-tag--disabled-color-border sd-7-0-0-next-9-tag--disabled-color-text"):this.selected?"sd-7-0-0-next-9-tag--selected-border-width sd-7-0-0-next-9-tag--selected--default-color-background sd-7-0-0-next-9-tag--selected--default-color-border sd-7-0-0-next-9-tag--selected--default-color-text hover:sd-7-0-0-next-9-tag--selected--hover-color-background hover:sd-7-0-0-next-9-tag--selected--hover-color-border hover:sd-7-0-0-next-9-tag--selected--hover-color-text":o("sd-7-0-0-next-9-tag--default-color-border sd-7-0-0-next-9-tag--default-color-text",a?"sd-7-0-0-next-9-tag--default-color-background has-[button:hover]:border-primary-500 has-[button:hover]:text-primary-500":"sd-7-0-0-next-9-tag--default-color-background hover:border-primary-500 hover:text-primary-500 hover:sd-7-0-0-next-9-tag--default--hover-color-background"))}"><slot name="icon-left" class="${o("flex-shrink-0",this.size==="lg"?"text-base":"text-[0.75rem]")}"></slot><slot id="content" part="content"></slot>${a&&!t?n`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}" ?disabled="${r(t?void 0:this.disabled)}"><slot part="removable-indicator" name="removable-indicator" class="${o(this.disabled&&"sd-7-0-0-next-9-tag--disabled-color-text")}"><sd-7-0-0-next-9-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-7-0-0-next-9-icon></slot></button>`:""}</${c}>`}};e.styles=[...d.styles,h`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{display:inline-block;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host([size=lg])::part(removable-indicator){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=sm])::part(removable-indicator){font-size:.75rem}.sd-7-0-0-next-9-tag--disabled-color-border{border-color:rgb(var(--sd-tag--disabled-color-border))}.sd-7-0-0-next-9-tag-font-weight{font-weight:var(--sd-tag-font-weight)}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}`],i([b("a, button, div")],e.prototype,"tag",2),i([s({type:String,reflect:!0})],e.prototype,"size",2),i([s({type:Boolean,reflect:!0})],e.prototype,"selected",2),i([s({type:Boolean,reflect:!0})],e.prototype,"toggleable",2),i([s({type:Boolean,reflect:!0})],e.prototype,"removable",2),i([s({type:Boolean,reflect:!0})],e.prototype,"disabled",2),i([s({type:String,reflect:!0})],e.prototype,"href",2),i([s({type:String,reflect:!0})],e.prototype,"target",2),i([s({reflect:!0})],e.prototype,"download",2),e=i([u("sd-7-0-0-next-9-tag")],e);export{e as a};
@@ -1 +1 @@
1
- var p=t=>Array.from(t.assignedElements({flatten:!0})),o=t=>t.tagName.toLocaleLowerCase()==="sd-7-0-0-next-8-option"?t:Array.from(t.querySelectorAll(":scope > sd-7-0-0-next-8-option")),e=t=>t.tagName.toLocaleLowerCase()==="sd-7-0-0-next-8-optgroup",r=t=>t.map(o),n=t=>t.filter(e),s=t=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();export{p as a,o as b,e as c,r as d,n as e,s as f};
1
+ var p=t=>Array.from(t.assignedElements({flatten:!0})),o=t=>t.tagName.toLocaleLowerCase()==="sd-7-0-0-next-9-option"?t:Array.from(t.querySelectorAll(":scope > sd-7-0-0-next-9-option")),e=t=>t.tagName.toLocaleLowerCase()==="sd-7-0-0-next-9-optgroup",r=t=>t.map(o),n=t=>t.filter(e),s=t=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();export{p as a,o as b,e as c,r as d,n as e,s as f};
@@ -1,2 +1,2 @@
1
1
  import{a as l,b as i,g as c,h as o}from"./chunk.5B33ZALC.js";import{b as a,e as n}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends o{constructor(){super(...arguments);this.closeOthers=!1;this.handleAccordionShow=r=>{this.closeOthers&&this._accordionsInDefaultSlot.forEach(s=>{s!==r.target&&s.parentNode===r.target.parentNode&&s.removeAttribute("open")})}}connectedCallback(){super.connectedCallback(),this.addEventListener("sd-show",this.handleAccordionShow)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sd-show",this.handleAccordionShow)}render(){return n`<div part="base"><slot></slot></div>`}};e.styles=[...o.styles,a`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{display:block}::slotted(sd-7-0-0-next-8-accordion:not(:first-of-type)){margin-top:calc(-1 * var(--sd-accordion-border-width))!important}`],t([c({selector:"sd-7-0-0-next-8-accordion"})],e.prototype,"_accordionsInDefaultSlot",2),t([i({attribute:"close-others",type:Boolean,reflect:!0})],e.prototype,"closeOthers",2),e=t([l("sd-7-0-0-next-8-accordion-group")],e);export{e as a};
2
+ :host{display:block}::slotted(sd-7-0-0-next-9-accordion:not(:first-of-type)){margin-top:calc(-1 * var(--sd-accordion-border-width))!important}`],t([c({selector:"sd-7-0-0-next-9-accordion"})],e.prototype,"_accordionsInDefaultSlot",2),t([i({attribute:"close-others",type:Boolean,reflect:!0})],e.prototype,"closeOthers",2),e=t([l("sd-7-0-0-next-9-accordion-group")],e);export{e as a};
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk.LHSR56PH.js";import{a as y}from"./chunk.CGQ2BPPZ.js";import{a as u,b as a}from"./chunk.NL7YFV4O.js";import{a as m}from"./chunk.MEDJPDBB.js";import{a as s}from"./chunk.4ZZFYCXX.js";import{a as b,b as r,d as p,h as f}from"./chunk.5B33ZALC.js";import{b as v}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends f{constructor(){super(...arguments);this.hasSlotController=new y(this,"[default]","description","children");this.localize=new m(this);this.vertical=!1;this.size="md";this.current=!1;this.disabled=!1;this.stacked=!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.separated&&!this.href&&this.hasSlotController.test("children")}get isIconOnly(){if(!this.defaultSlot)return!1;let i=this.defaultSlot.assignedNodes({flatten:!0});return i.length>0&&i.every(n=>{var c;return n.nodeType===Node.TEXT_NODE?!((c=n.textContent)!=null&&c.trim()):n.nodeType===Node.ELEMENT_NODE?n.tagName.toLowerCase()==="sd-7-0-0-next-8-icon":!1})}get isStackedHorizontal(){return!this.vertical&&this.stacked}handleClickButton(i){this.disabled&&(i.preventDefault(),i.stopPropagation())}handleClickSummary(i){i.preventDefault(),i.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.separated&&!this.isLink?u`div`:this.isAccordion&&!this.isLink?u`summary`:this.isLink?u`a`:u`button`}focus(){var i;this.disabled||(i=this.button)==null||i.focus()}blur(){var i;(i=this.button)==null||i.blur()}render(){let i=this.tag,n=this.isLink,c=this.isButton,l=this.isAccordion,g=this.isIconOnly,d={label:this.hasSlotController.test("[default]"),main:this.hasSlotController.test("main"),description:this.hasSlotController.test("description"),children:this.hasSlotController.test("children")},x=this.vertical?"py-3":this.isStackedHorizontal?"pt-1 pb-0":"py-2",h=a`<${i} part="base" class="${s("flex items-center cursor-pointer relative focus-visible:focus-outline group hover:bg-neutral-200 transition-colors duration-fast ease-in-out min-h-[48px] navigable-border-radius",this.isStackedHorizontal?"text-xs leading-4.5":{md:"navigable-font-size",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"sd-7-0-0-next-8-navigation-item--default-color-text",this.current&&!this.disabled&&"sd-7-0-0-next-8-navigation-item--current-color-text",this.current&&!this.isStackedHorizontal&&"font-bold",!this.current&&!this.isStackedHorizontal&&"choice-control-font-weight",!l&&"w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&(this.isStackedHorizontal?"inline-flex flex-col items-center justify-center text-center rounded-full wrap":"inline-flex items-center"),!this.separated&&"hover:bg-neutral-200 group transition-colors duration-fast ease-in-out min-h-[48px]",g?"justify-center aspect-square p-3":this.isStackedHorizontal?"px-8":"px-4")}" aria-current="${o(this.current?"page":void 0)}" aria-disabled="${this.disabled}" aria-labelledby="content" aria-describedby="description" ?disabled="${o(c?this.disabled:void 0)}" href="${o(n?this.href:void 0)}" target="${o(n?this.target:void 0)}" download="${o(n?this.download:void 0)}" rel="${o(n&&this.target?"noreferrer noopener":void 0)}" tabindex="${this.disabled?"-1":"0"}" @click="${this.separated?void 0:l?this.handleClickSummary:c?this.handleClickButton:void 0}"><div part="current-indicator" class="${s("absolute bg-accent pointer-events-none navigable__current-indicator-border-radius",this.isStackedHorizontal&&"hidden",this.vertical?"navigable__current-indicator-width h-[calc(100%-16px)] top-2 left-0 group-hover:h-full group-hover:top-0":"navigable__current-indicator-height w-[calc(100%-16px)] left-2 bottom-0 group-hover:w-full group-hover:left-0 transition-all",this.disabled&&"bg-neutral-500")}"></div><div class="${s("inline-flex flex-col justify-center gap-1 w-full h-full",this.isStackedHorizontal&&"flex-col items-center")}"><span part="content-area" class="${s("relative inline-flex justify-between items-center",l?"grow":"w-full",this.isStackedHorizontal&&"justify-center",d.description&&"pt-3",!d.description&&!this.separated&&x,this.calculatePaddingX)}">${this.divider&&this.vertical?a`<sd-7-0-0-next-8-divider part="divider" class="${s("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-7-0-0-next-8-divider>`:""} <span id="content" part="content-container" class="${s("inline-flex items-center",this.vertical?"flex-auto gap-2":this.isStackedHorizontal?"relative text-center pb-1":"flex-auto flex-col justify-center gap-1 text-center")}"><slot part="content" class="${s("inline-flex items-center",this.vertical?"gap-2":this.isStackedHorizontal?"flex-col justify-center gap-1 text-center":"justify-center gap-1 text-center")}"></slot>${this.isStackedHorizontal?a`<span part="current-indicator" aria-hidden="true" class="${s("absolute left-0 right-0 bottom-0 h-[2px] pointer-events-none bg-accent navigable__current-indicator-border-radius",this.disabled&&"bg-neutral-500")}"></span>`:""} </span>${this.chevron||d.children&&this.vertical&&!this.separated?a`<sd-7-0-0-next-8-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${s("h-6 w-6 ml-2 transition-all",l?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-7-0-0-next-8-icon>`:""} </span>${d.description&&this.vertical?a`<slot id="description" name="description" part="description" class="${s("inline-block text-sm text-left font-normal text-black pb-3",l||this.separated?"grow":"w-full",this.calculatePaddingX)}"></slot>`:""}</div></${i}>`;return this.separated?a`<div part="details" id="navigation-item-details" class="relative flex flex-col"><div class="flex items-start">${h} ${d.children&&this.vertical?a`<button type="button" title="${this.open?this.localize.term("collapseNavigationItem"):this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset -mt-1" @click="${this.handleClickSummary}"><sd-7-0-0-next-8-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${s("m-4 h-6 w-6 transition-all",l||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-7-0-0-next-8-icon></button>`:""}</div>${this.open?a`<slot name="children"></slot>`:""}</div>`:l?a`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative">${h}<slot name="children"></slot></details>`:a`${h}`}};t.styles=[...f.styles,v`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}:host([stacked]:not([vertical])) ::slotted(sd-7-0-0-next-8-icon){height:var(--sd-spacing-6);width:var(--sd-spacing-6)}.sd-7-0-0-next-8-navigation-item--current-color-text{color:rgb(var(--sd-navigation-item--current-color-text,var(--sd-navigation-item-color-text)))}details summary::-webkit-details-marker{display:none}[part=current-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);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:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);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}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}`],e([p('[part="base"]')],t.prototype,"button",2),e([p("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,"stacked",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([b("sd-7-0-0-next-8-navigation-item")],t);export{t as a};
1
+ import{a as o}from"./chunk.LHSR56PH.js";import{a as y}from"./chunk.CGQ2BPPZ.js";import{a as u,b as a}from"./chunk.NL7YFV4O.js";import{a as m}from"./chunk.MEDJPDBB.js";import{a as s}from"./chunk.4ZZFYCXX.js";import{a as b,b as r,d as p,h as f}from"./chunk.5B33ZALC.js";import{b as v}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends f{constructor(){super(...arguments);this.hasSlotController=new y(this,"[default]","description","children");this.localize=new m(this);this.vertical=!1;this.size="md";this.current=!1;this.disabled=!1;this.stacked=!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.separated&&!this.href&&this.hasSlotController.test("children")}get isIconOnly(){if(!this.defaultSlot)return!1;let i=this.defaultSlot.assignedNodes({flatten:!0});return i.length>0&&i.every(n=>{var c;return n.nodeType===Node.TEXT_NODE?!((c=n.textContent)!=null&&c.trim()):n.nodeType===Node.ELEMENT_NODE?n.tagName.toLowerCase()==="sd-7-0-0-next-9-icon":!1})}get isStackedHorizontal(){return!this.vertical&&this.stacked}handleClickButton(i){this.disabled&&(i.preventDefault(),i.stopPropagation())}handleClickSummary(i){i.preventDefault(),i.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.separated&&!this.isLink?u`div`:this.isAccordion&&!this.isLink?u`summary`:this.isLink?u`a`:u`button`}focus(){var i;this.disabled||(i=this.button)==null||i.focus()}blur(){var i;(i=this.button)==null||i.blur()}render(){let i=this.tag,n=this.isLink,c=this.isButton,l=this.isAccordion,g=this.isIconOnly,d={label:this.hasSlotController.test("[default]"),main:this.hasSlotController.test("main"),description:this.hasSlotController.test("description"),children:this.hasSlotController.test("children")},x=this.vertical?"py-3":this.isStackedHorizontal?"pt-1 pb-0":"py-2",h=a`<${i} part="base" class="${s("flex items-center cursor-pointer relative focus-visible:focus-outline group hover:bg-neutral-200 transition-colors duration-fast ease-in-out min-h-[48px] navigable-border-radius",this.isStackedHorizontal?"text-xs leading-4.5":{md:"navigable-font-size",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"sd-7-0-0-next-9-navigation-item--default-color-text",this.current&&!this.disabled&&"sd-7-0-0-next-9-navigation-item--current-color-text",this.current&&!this.isStackedHorizontal&&"font-bold",!this.current&&!this.isStackedHorizontal&&"choice-control-font-weight",!l&&"w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&(this.isStackedHorizontal?"inline-flex flex-col items-center justify-center text-center rounded-full wrap":"inline-flex items-center"),!this.separated&&"hover:bg-neutral-200 group transition-colors duration-fast ease-in-out min-h-[48px]",g?"justify-center aspect-square p-3":this.isStackedHorizontal?"px-8":"px-4")}" aria-current="${o(this.current?"page":void 0)}" aria-disabled="${this.disabled}" aria-labelledby="content" aria-describedby="description" ?disabled="${o(c?this.disabled:void 0)}" href="${o(n?this.href:void 0)}" target="${o(n?this.target:void 0)}" download="${o(n?this.download:void 0)}" rel="${o(n&&this.target?"noreferrer noopener":void 0)}" tabindex="${this.disabled?"-1":"0"}" @click="${this.separated?void 0:l?this.handleClickSummary:c?this.handleClickButton:void 0}"><div part="current-indicator" class="${s("absolute bg-accent pointer-events-none navigable__current-indicator-border-radius",this.isStackedHorizontal&&"hidden",this.vertical?"navigable__current-indicator-width h-[calc(100%-16px)] top-2 left-0 group-hover:h-full group-hover:top-0":"navigable__current-indicator-height w-[calc(100%-16px)] left-2 bottom-0 group-hover:w-full group-hover:left-0 transition-all",this.disabled&&"bg-neutral-500")}"></div><div class="${s("inline-flex flex-col justify-center gap-1 w-full h-full",this.isStackedHorizontal&&"flex-col items-center")}"><span part="content-area" class="${s("relative inline-flex justify-between items-center",l?"grow":"w-full",this.isStackedHorizontal&&"justify-center",d.description&&"pt-3",!d.description&&!this.separated&&x,this.calculatePaddingX)}">${this.divider&&this.vertical?a`<sd-7-0-0-next-9-divider part="divider" class="${s("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-7-0-0-next-9-divider>`:""} <span id="content" part="content-container" class="${s("inline-flex items-center",this.vertical?"flex-auto gap-2":this.isStackedHorizontal?"relative text-center pb-1":"flex-auto flex-col justify-center gap-1 text-center")}"><slot part="content" class="${s("inline-flex items-center",this.vertical?"gap-2":this.isStackedHorizontal?"flex-col justify-center gap-1 text-center":"justify-center gap-1 text-center")}"></slot>${this.isStackedHorizontal?a`<span part="current-indicator" aria-hidden="true" class="${s("absolute left-0 right-0 bottom-0 h-[2px] pointer-events-none bg-accent navigable__current-indicator-border-radius",this.disabled&&"bg-neutral-500")}"></span>`:""} </span>${this.chevron||d.children&&this.vertical&&!this.separated?a`<sd-7-0-0-next-9-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${s("h-6 w-6 ml-2 transition-all",l?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-7-0-0-next-9-icon>`:""} </span>${d.description&&this.vertical?a`<slot id="description" name="description" part="description" class="${s("inline-block text-sm text-left font-normal text-black pb-3",l||this.separated?"grow":"w-full",this.calculatePaddingX)}"></slot>`:""}</div></${i}>`;return this.separated?a`<div part="details" id="navigation-item-details" class="relative flex flex-col"><div class="flex items-start">${h} ${d.children&&this.vertical?a`<button type="button" title="${this.open?this.localize.term("collapseNavigationItem"):this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset -mt-1" @click="${this.handleClickSummary}"><sd-7-0-0-next-9-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${s("m-4 h-6 w-6 transition-all",l||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-7-0-0-next-9-icon></button>`:""}</div>${this.open?a`<slot name="children"></slot>`:""}</div>`:l?a`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative">${h}<slot name="children"></slot></details>`:a`${h}`}};t.styles=[...f.styles,v`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}:host([stacked]:not([vertical])) ::slotted(sd-7-0-0-next-9-icon){height:var(--sd-spacing-6);width:var(--sd-spacing-6)}.sd-7-0-0-next-9-navigation-item--current-color-text{color:rgb(var(--sd-navigation-item--current-color-text,var(--sd-navigation-item-color-text)))}details summary::-webkit-details-marker{display:none}[part=current-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);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:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);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}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}`],e([p('[part="base"]')],t.prototype,"button",2),e([p("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,"stacked",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([b("sd-7-0-0-next-9-navigation-item")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as y}from"./chunk.I2H6CZK5.js";import{a as k}from"./chunk.CGQ2BPPZ.js";import{a as r,c as s}from"./chunk.B2NUKX6G.js";import{a as m}from"./chunk.KLRPP4NQ.js";import{a as x}from"./chunk.MEDJPDBB.js";import{a as f}from"./chunk.4ZZFYCXX.js";import{a as g}from"./chunk.NYKJXI3Q.js";import{a as w,b as n,d,h}from"./chunk.5B33ZALC.js";import{b as v,e as c}from"./chunk.OBAEIKIV.js";import{b as i,e as u}from"./chunk.W4QBFD6E.js";import{e as o}from"./chunk.6EV4YU6C.js";var t=class extends h{constructor(){super(...arguments);this.hasSlotController=new k(this,"footer");this.localize=new x(this);this.open=!1;this.label="";this.placement="end";this.noHeader=!1}firstUpdated(){this.drawer.addEventListener("cancel",e=>{e.preventDefault(),this.requestClose("keyboard")}),this.open&&this.drawer.showModal()}requestClose(e){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:e}}).defaultPrevented){let a=s(this,"drawer.denyClose",{dir:this.localize.dir()});i(this.panel,a.keyframes,a.options);return}this.hide()}async handleOpenChange(){var p;let e=(p=this.closeButton.shadowRoot)==null?void 0:p.querySelector('[part="base"]');if(this.open){this.emit("sd-show");let a=this.querySelector("[autofocus]");a&&a.removeAttribute("autofocus"),await u(this.drawer),this.drawer.showModal(),this.drawer.removeAttribute("inert");let l=s(this,"drawer.overlay.show",{dir:this.localize.dir()});i(this.overlay,l.keyframes,l.options);let b=s(this,`drawer.show${y(this.placement)}`,{dir:this.localize.dir()});await i(this.panel,b.keyframes,b.options),e==null||e.setAttribute("aria-controls","drawer"),e==null||e.setAttribute("aria-expanded","true"),requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(a?a.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),a?a.setAttribute("autofocus",""):this.closeButton.focus()}),this.emit("sd-after-show")}else{this.emit("sd-hide"),await u(this.drawer);let a=s(this,"drawer.overlay.hide",{dir:this.localize.dir()});i(this.overlay,a.keyframes,a.options);let l=s(this,`drawer.hide${y(this.placement)}`,{dir:this.localize.dir()});await i(this.panel,l.keyframes,l.options),this.drawer.close(),this.drawer.setAttribute("inert",""),e==null||e.setAttribute("aria-expanded","false"),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 c`<dialog id="drawer" part="base" class="top-0 start-0 w-full h-full p-0 bg-transparent border-none max-w-none max-h-none" aria-label="${this.label}"><div part="overlay" class="fixed inset-0" @click="${()=>this.requestClose("overlay")}"></div><div part="panel" class="${f("absolute flex flex-col gap-4 z-10 max-w-full max-h-full bg-white shadow-lg overflow-auto pointer-events-auto focus:outline-none",{end:"top-0 end-0 bottom-auto start-auto w-[var(--width)] h-full",start:"top-0 end-auto bottom-auto start-0 w-[var(--width)] h-full"}[this.placement])}" aria-label="${this.label}" tabindex="0">${this.noHeader?c`<sd-7-0-0-next-8-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}" class="absolute top-2 end-2 z-10"><sd-7-0-0-next-8-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-7-0-0-next-8-icon></sd-7-0-0-next-8-button>`:c`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:64px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ms-4 absolute top-2 end-2"><sd-7-0-0-next-8-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-7-0-0-next-8-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-7-0-0-next-8-icon></sd-7-0-0-next-8-button></div></header>`}<div part="body" class="flex-auto block px-4 focus-visible:focus-outline !-outline-offset-2" tabindex="0"><slot></slot></div><footer part="footer" class="${f(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></dialog>`}};t.styles=[...h.styles,v`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{--width:25rem;display:contents}[part=body]{-webkit-overflow-scrolling:touch;overflow-y:scroll;scrollbar-width:none}[part=body]::-webkit-scrollbar{height:0;width:0}:host [part=panel]{outline:1px solid rgb(var(--sd-panel-color-border,transparent))}::backdrop{display:none}[part=overlay]{background-color:rgb(var(--sd-overlay-color-background,5 21 48 / .9))}`],o([d("[part=base]")],t.prototype,"drawer",2),o([d("[part=overlay]")],t.prototype,"overlay",2),o([d("[part=panel]")],t.prototype,"panel",2),o([d("[part=close-button]")],t.prototype,"closeButton",2),o([n({type:Boolean,reflect:!0})],t.prototype,"open",2),o([n({type:String,attribute:"label",reflect:!0})],t.prototype,"label",2),o([n({type:String,reflect:!0})],t.prototype,"placement",2),o([n({attribute:"no-header",type:Boolean,reflect:!0})],t.prototype,"noHeader",2),o([g("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),t=o([w("sd-7-0-0-next-8-drawer")],t);r("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});r("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});r("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});r("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});r("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});r("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"linear"}});r("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"linear"}});export{t as a};
1
+ import{a as y}from"./chunk.I2H6CZK5.js";import{a as k}from"./chunk.CGQ2BPPZ.js";import{a as r,c as s}from"./chunk.B2NUKX6G.js";import{a as m}from"./chunk.KLRPP4NQ.js";import{a as x}from"./chunk.MEDJPDBB.js";import{a as f}from"./chunk.4ZZFYCXX.js";import{a as g}from"./chunk.NYKJXI3Q.js";import{a as w,b as n,d,h}from"./chunk.5B33ZALC.js";import{b as v,e as c}from"./chunk.OBAEIKIV.js";import{b as i,e as u}from"./chunk.W4QBFD6E.js";import{e as o}from"./chunk.6EV4YU6C.js";var t=class extends h{constructor(){super(...arguments);this.hasSlotController=new k(this,"footer");this.localize=new x(this);this.open=!1;this.label="";this.placement="end";this.noHeader=!1}firstUpdated(){this.drawer.addEventListener("cancel",e=>{e.preventDefault(),this.requestClose("keyboard")}),this.open&&this.drawer.showModal()}requestClose(e){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:e}}).defaultPrevented){let a=s(this,"drawer.denyClose",{dir:this.localize.dir()});i(this.panel,a.keyframes,a.options);return}this.hide()}async handleOpenChange(){var p;let e=(p=this.closeButton.shadowRoot)==null?void 0:p.querySelector('[part="base"]');if(this.open){this.emit("sd-show");let a=this.querySelector("[autofocus]");a&&a.removeAttribute("autofocus"),await u(this.drawer),this.drawer.showModal(),this.drawer.removeAttribute("inert");let l=s(this,"drawer.overlay.show",{dir:this.localize.dir()});i(this.overlay,l.keyframes,l.options);let b=s(this,`drawer.show${y(this.placement)}`,{dir:this.localize.dir()});await i(this.panel,b.keyframes,b.options),e==null||e.setAttribute("aria-controls","drawer"),e==null||e.setAttribute("aria-expanded","true"),requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(a?a.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),a?a.setAttribute("autofocus",""):this.closeButton.focus()}),this.emit("sd-after-show")}else{this.emit("sd-hide"),await u(this.drawer);let a=s(this,"drawer.overlay.hide",{dir:this.localize.dir()});i(this.overlay,a.keyframes,a.options);let l=s(this,`drawer.hide${y(this.placement)}`,{dir:this.localize.dir()});await i(this.panel,l.keyframes,l.options),this.drawer.close(),this.drawer.setAttribute("inert",""),e==null||e.setAttribute("aria-expanded","false"),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 c`<dialog id="drawer" part="base" class="top-0 start-0 w-full h-full p-0 bg-transparent border-none max-w-none max-h-none" aria-label="${this.label}"><div part="overlay" class="fixed inset-0" @click="${()=>this.requestClose("overlay")}"></div><div part="panel" class="${f("absolute flex flex-col gap-4 z-10 max-w-full max-h-full bg-white shadow-lg overflow-auto pointer-events-auto focus:outline-none",{end:"top-0 end-0 bottom-auto start-auto w-[var(--width)] h-full",start:"top-0 end-auto bottom-auto start-0 w-[var(--width)] h-full"}[this.placement])}" aria-label="${this.label}" tabindex="0">${this.noHeader?c`<sd-7-0-0-next-9-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}" class="absolute top-2 end-2 z-10"><sd-7-0-0-next-9-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-7-0-0-next-9-icon></sd-7-0-0-next-9-button>`:c`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:64px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ms-4 absolute top-2 end-2"><sd-7-0-0-next-9-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-7-0-0-next-9-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-7-0-0-next-9-icon></sd-7-0-0-next-9-button></div></header>`}<div part="body" class="flex-auto block px-4 focus-visible:focus-outline !-outline-offset-2" tabindex="0"><slot></slot></div><footer part="footer" class="${f(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></dialog>`}};t.styles=[...h.styles,v`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{--width:25rem;display:contents}[part=body]{-webkit-overflow-scrolling:touch;overflow-y:scroll;scrollbar-width:none}[part=body]::-webkit-scrollbar{height:0;width:0}:host [part=panel]{outline:1px solid rgb(var(--sd-panel-color-border,transparent))}::backdrop{display:none}[part=overlay]{background-color:rgb(var(--sd-overlay-color-background,5 21 48 / .9))}`],o([d("[part=base]")],t.prototype,"drawer",2),o([d("[part=overlay]")],t.prototype,"overlay",2),o([d("[part=panel]")],t.prototype,"panel",2),o([d("[part=close-button]")],t.prototype,"closeButton",2),o([n({type:Boolean,reflect:!0})],t.prototype,"open",2),o([n({type:String,attribute:"label",reflect:!0})],t.prototype,"label",2),o([n({type:String,reflect:!0})],t.prototype,"placement",2),o([n({attribute:"no-header",type:Boolean,reflect:!0})],t.prototype,"noHeader",2),o([g("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),t=o([w("sd-7-0-0-next-9-drawer")],t);r("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});r("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});r("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});r("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});r("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});r("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"linear"}});r("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"linear"}});export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk.4ZZFYCXX.js";import{a,b as r,h as o}from"./chunk.5B33ZALC.js";import{b as i,e as l}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends o{constructor(){super(...arguments);this.orientation="horizontal";this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return l`<hr part="main" aria-orientation="${this.orientation}" class="${n(this.inverted?"sd-7-0-0-next-8-divider--inverted-color-border":"border-neutral-400",this.orientation==="horizontal"?"border-t w-full":" border-l h-full")}">`}};t.styles=[...o.styles,i`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{margin:0}:host(sd-7-0-0-next-8-divider[orientation=horizontal]){display:block}:host(sd-7-0-0-next-8-divider[orientation=vertical]){display:inline-block}`],e([r({type:String,reflect:!0})],t.prototype,"orientation",2),e([r({type:Boolean,reflect:!0})],t.prototype,"inverted",2),t=e([a("sd-7-0-0-next-8-divider")],t);export{t as a};
1
+ import{a as n}from"./chunk.4ZZFYCXX.js";import{a,b as r,h as o}from"./chunk.5B33ZALC.js";import{b as i,e as l}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends o{constructor(){super(...arguments);this.orientation="horizontal";this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return l`<hr part="main" aria-orientation="${this.orientation}" class="${n(this.inverted?"sd-7-0-0-next-9-divider--inverted-color-border":"border-neutral-400",this.orientation==="horizontal"?"border-t w-full":" border-l h-full")}">`}};t.styles=[...o.styles,i`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{margin:0}:host(sd-7-0-0-next-9-divider[orientation=horizontal]){display:block}:host(sd-7-0-0-next-9-divider[orientation=vertical]){display:inline-block}`],e([r({type:String,reflect:!0})],t.prototype,"orientation",2),e([r({type:Boolean,reflect:!0})],t.prototype,"inverted",2),t=e([a("sd-7-0-0-next-9-divider")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk.4ZZFYCXX.js";import{a,b as r,h as s}from"./chunk.5B33ZALC.js";import{b as n,e as d}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends s{constructor(){super(...arguments);this.size="lg";this.variant="blue";this.inverted=!1}render(){return d`<span part="base" aria-labelledby="content" class="${i("inline-flex items-center justify-center gap-x-[1px] text-center font-bold whitespace-nowrap border rounded-full select-none cursor-[inherit]",{blue:this.inverted?"sd-7-0-0-next-8-badge--blue--inverted-color-text sd-7-0-0-next-8-badge--blue--inverted-color-background sd-7-0-0-next-8-badge--inverted-color-border":"text-white sd-7-0-0-next-8-badge--blue-color-background border-white",green:this.inverted?"sd-7-0-0-next-8-badge--green-color--inverted-text sd-7-0-0-next-8-badge--green-color--inverted-background sd-7-0-0-next-8-badge--inverted-color-border":"text-white sd-7-0-0-next-8-badge--green-color-background border-white",red:this.inverted?"sd-7-0-0-next-8-badge--red--inverted-text sd-7-0-0-next-8-badge--red--inverted-background sd-7-0-0-next-8-badge--inverted-color-border":"text-white sd-7-0-0-next-8-badge--red-color-background border-white"}[this.variant])}"><span id="content" part="content" class="${i(this.size==="sm"&&"sr-only")}"><slot></slot></span></span>`}};e.styles=[...s.styles,n`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{display:inline-flex;align-items:center;justify-content:center}:host([size=md]){height:var(--sd-spacing-4);min-width:var(--sd-spacing-4);font-size:.625rem}:host([size=lg]){height:calc(var(--sd-spacing-1) * 5);min-width:calc(var(--sd-spacing-1) * 5);font-size:.75rem}:host([size=sm])::part(base){height:var(--sd-spacing-2);min-width:var(--sd-spacing-2)}:host([size=md])::part(base){padding-inline:var(--sd-spacing-1)}:host([size=lg])::part(base){padding-left:.313rem;padding-right:.313rem}`],t([r({type:String,reflect:!0})],e.prototype,"size",2),t([r({type:String,reflect:!0})],e.prototype,"variant",2),t([r({type:Boolean,reflect:!0})],e.prototype,"inverted",2),e=t([a("sd-7-0-0-next-8-badge")],e);export{e as a};
1
+ import{a as i}from"./chunk.4ZZFYCXX.js";import{a,b as r,h as s}from"./chunk.5B33ZALC.js";import{b as n,e as d}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends s{constructor(){super(...arguments);this.size="lg";this.variant="blue";this.inverted=!1}render(){return d`<span part="base" aria-labelledby="content" class="${i("inline-flex items-center justify-center gap-x-[1px] text-center font-bold whitespace-nowrap border rounded-full select-none cursor-[inherit]",{blue:this.inverted?"sd-7-0-0-next-9-badge--blue--inverted-color-text sd-7-0-0-next-9-badge--blue--inverted-color-background sd-7-0-0-next-9-badge--inverted-color-border":"text-white sd-7-0-0-next-9-badge--blue-color-background border-white",green:this.inverted?"sd-7-0-0-next-9-badge--green-color--inverted-text sd-7-0-0-next-9-badge--green-color--inverted-background sd-7-0-0-next-9-badge--inverted-color-border":"text-white sd-7-0-0-next-9-badge--green-color-background border-white",red:this.inverted?"sd-7-0-0-next-9-badge--red--inverted-text sd-7-0-0-next-9-badge--red--inverted-background sd-7-0-0-next-9-badge--inverted-color-border":"text-white sd-7-0-0-next-9-badge--red-color-background border-white"}[this.variant])}"><span id="content" part="content" class="${i(this.size==="sm"&&"sr-only")}"><slot></slot></span></span>`}};e.styles=[...s.styles,n`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:inline-flex;align-items:center;justify-content:center}:host([size=md]){height:var(--sd-spacing-4);min-width:var(--sd-spacing-4);font-size:.625rem}:host([size=lg]){height:calc(var(--sd-spacing-1) * 5);min-width:calc(var(--sd-spacing-1) * 5);font-size:.75rem}:host([size=sm])::part(base){height:var(--sd-spacing-2);min-width:var(--sd-spacing-2)}:host([size=md])::part(base){padding-inline:var(--sd-spacing-1)}:host([size=lg])::part(base){padding-left:.313rem;padding-right:.313rem}`],t([r({type:String,reflect:!0})],e.prototype,"size",2),t([r({type:String,reflect:!0})],e.prototype,"variant",2),t([r({type:Boolean,reflect:!0})],e.prototype,"inverted",2),e=t([a("sd-7-0-0-next-9-badge")],e);export{e as a};
@@ -1,4 +1,4 @@
1
- import{a as v}from"./chunk.SAEYIL5V.js";import{a as b}from"./chunk.ERP45OHF.js";import{b as u}from"./chunk.LZRL7OLU.js";import{a as m}from"./chunk.LHSR56PH.js";import{a as p}from"./chunk.CGQ2BPPZ.js";import{a as i}from"./chunk.4ZZFYCXX.js";import{a}from"./chunk.NYKJXI3Q.js";import{a as c,b as o,c as h,d as s,h as n}from"./chunk.5B33ZALC.js";import{b as d,e as l}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends n{constructor(){super(...arguments);this.hasSlotController=new p(this,"tooltip");this.formControlController=new u(this,{value:r=>r.checked?r.value||"on":void 0,defaultValue:r=>r.defaultChecked,setValue:(r,f)=>r.checked=f});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 l`<div class="flex flex-row items-center gap-2"><label part="base" class="${i("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="${v(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="${i(`relative flex flex-initial items-center justify-center sd-7-0-0-next-8-switch-border-width rounded-full h-4 w-8 transition-colors ease duration-100
1
+ import{a as v}from"./chunk.SAEYIL5V.js";import{a as b}from"./chunk.ERP45OHF.js";import{b as u}from"./chunk.LZRL7OLU.js";import{a as m}from"./chunk.LHSR56PH.js";import{a as p}from"./chunk.CGQ2BPPZ.js";import{a as i}from"./chunk.4ZZFYCXX.js";import{a}from"./chunk.NYKJXI3Q.js";import{a as c,b as o,c as h,d as s,h as n}from"./chunk.5B33ZALC.js";import{b as d,e as l}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends n{constructor(){super(...arguments);this.hasSlotController=new p(this,"tooltip");this.formControlController=new u(this,{value:r=>r.checked?r.value||"on":void 0,defaultValue:r=>r.defaultChecked,setValue:(r,f)=>r.checked=f});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 l`<div class="flex flex-row items-center gap-2"><label part="base" class="${i("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="${v(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="${i(`relative flex flex-initial items-center justify-center sd-7-0-0-next-9-switch-border-width 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
- peer-focus-visible:outline-primary outline-transparent transition-colors ease-in-out duration-medium hover:duration-fast`,this.disabled&&this.checked?"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: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:sd-7-0-0-next-8-switch--checked--hover-color-background bg-accent hover:border-accent-550 group-hover:border-accent-550 group-hover:sd-7-0-0-next-8-switch--checked--hover-color-background":"sd-7-0-0-next-8-switch--unchecked-color-border bg-white hover:sd-7-0-0-next-8-switch--unchecked--hover-color-background group-hover:sd-7-0-0-next-8-switch--unchecked--hover-color-background")}"><span id="thumb" part="thumb" class="${i("w-2.5 h-2.5 rounded-full transition[transform,colors] ease-in-out duration-medium",this.disabled&&this.checked?"translate-x-2":this.disabled?"-translate-x-2":this.showInvalidStyle?this.checked?"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?"translate-x-2":"-translate-x-2 sd-7-0-0-next-8-switch--unchecked__icon-color-background")}"></span> </span><span part="label" id="label" class="${i("select-none inline-block ml-2",this.disabled?"text-neutral-500":"sd-7-0-0-next-8-switch-color-text")}"><slot></slot></span></label> ${this.hasSlotController.test("tooltip")?l`<slot name="tooltip"></slot>`:null}</div><div part="invalid-icon-message" class="flex items-center gap-2 mt-2">${this.showInvalidStyle?l`<sd-7-0-0-next-8-icon part="invalid-icon" class="${i("text-error")}" library="_internal" name="risk"></sd-7-0-0-next-8-icon>`:""} ${this.formControlController.renderInvalidMessage("lg")}</div>`}};e.styles=[...n.styles,d`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
4
- :host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){--tw-outline-style:none;outline-style:none}:host([required]) #label::after{content:' *'}:host([disabled][checked]) #control{border-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}:host([checked]) [part=thumb]{background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}:host([disabled]:not([checked])) [part=thumb]{background-color:rgba(var(--sd-color-icon-fill-neutral-500,rgba(var(--sd-color-neutral-500))))}`],t([s("input")],e.prototype,"input",2),t([s("#invalid-message")],e.prototype,"invalidMessage",2),t([h()],e.prototype,"showInvalidStyle",2),t([o({type:String,reflect:!0})],e.prototype,"title",2),t([o({type:String,reflect:!0})],e.prototype,"name",2),t([o()],e.prototype,"value",2),t([o({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([o({type:Boolean,reflect:!0})],e.prototype,"checked",2),t([b("checked")],e.prototype,"defaultChecked",2),t([o({reflect:!0})],e.prototype,"form",2),t([o({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([c("sd-7-0-0-next-8-switch")],e);export{e as a};
3
+ peer-focus-visible:outline-primary outline-transparent transition-colors ease-in-out duration-medium hover:duration-fast`,this.disabled&&this.checked?"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: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:sd-7-0-0-next-9-switch--checked--hover-color-background bg-accent hover:border-accent-550 group-hover:border-accent-550 group-hover:sd-7-0-0-next-9-switch--checked--hover-color-background":"sd-7-0-0-next-9-switch--unchecked-color-border bg-white hover:sd-7-0-0-next-9-switch--unchecked--hover-color-background group-hover:sd-7-0-0-next-9-switch--unchecked--hover-color-background")}"><span id="thumb" part="thumb" class="${i("w-2.5 h-2.5 rounded-full transition[transform,colors] ease-in-out duration-medium",this.disabled&&this.checked?"translate-x-2":this.disabled?"-translate-x-2":this.showInvalidStyle?this.checked?"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?"translate-x-2":"-translate-x-2 sd-7-0-0-next-9-switch--unchecked__icon-color-background")}"></span> </span><span part="label" id="label" class="${i("select-none inline-block ml-2",this.disabled?"text-neutral-500":"sd-7-0-0-next-9-switch-color-text")}"><slot></slot></span></label> ${this.hasSlotController.test("tooltip")?l`<slot name="tooltip"></slot>`:null}</div><div part="invalid-icon-message" class="flex items-center gap-2 mt-2">${this.showInvalidStyle?l`<sd-7-0-0-next-9-icon part="invalid-icon" class="${i("text-error")}" library="_internal" name="risk"></sd-7-0-0-next-9-icon>`:""} ${this.formControlController.renderInvalidMessage("lg")}</div>`}};e.styles=[...n.styles,d`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
4
+ :host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){--tw-outline-style:none;outline-style:none}:host([required]) #label::after{content:' *'}:host([disabled][checked]) #control{border-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}:host([checked]) [part=thumb]{background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}:host([disabled]:not([checked])) [part=thumb]{background-color:rgba(var(--sd-color-icon-fill-neutral-500,rgba(var(--sd-color-neutral-500))))}`],t([s("input")],e.prototype,"input",2),t([s("#invalid-message")],e.prototype,"invalidMessage",2),t([h()],e.prototype,"showInvalidStyle",2),t([o({type:String,reflect:!0})],e.prototype,"title",2),t([o({type:String,reflect:!0})],e.prototype,"name",2),t([o()],e.prototype,"value",2),t([o({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([o({type:Boolean,reflect:!0})],e.prototype,"checked",2),t([b("checked")],e.prototype,"defaultChecked",2),t([o({reflect:!0})],e.prototype,"form",2),t([o({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([c("sd-7-0-0-next-9-switch")],e);export{e as a};