@stihl-design-system/components 1.0.0-RC.31 → 1.0.0-RC.34

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 (286) hide show
  1. package/accordion.Dmqocj97.js +12 -0
  2. package/actionbutton.DLQJU6AV.js +12 -0
  3. package/actionlink.DEBrWfN3.js +12 -0
  4. package/{arialiveregions.Fgcshs5k.js → arialiveregions.BUVY9NpY.js} +2 -2
  5. package/assets/Accordion.CzBGud45.css +1 -0
  6. package/assets/Button.C8sNwIeW.css +1 -0
  7. package/assets/Checkbox.CyOw3rXI.css +1 -0
  8. package/assets/CustomReactSelect.E_jJFVew.css +1 -0
  9. package/assets/Dialog.DJkn65Es.css +1 -0
  10. package/assets/Drawer.x3BCQvWE.css +1 -0
  11. package/assets/InputFile.BnIvK65P.css +1 -0
  12. package/assets/InputNumber.BoiCIR1f.css +1 -0
  13. package/assets/InputPassword.Dk3_vNLV.css +1 -0
  14. package/assets/InputSearch.C1_4cVCi.css +1 -0
  15. package/assets/LinkButton.B86yacK5.css +1 -0
  16. package/assets/{MegaMenu.DX9gChtY.css → MegaMenu.D5EtjFeL.css} +1 -1
  17. package/assets/Notification.CvohYEvT.css +1 -0
  18. package/assets/Popover.CXyUaXiO.css +1 -0
  19. package/assets/Select.COxLltX7.css +1 -0
  20. package/assets/Slider.DPEmJ3HD.css +1 -0
  21. package/assets/Stepper.tXJl15yL.css +1 -0
  22. package/assets/{SystemFeedback.RcrPepSZ.css → SystemFeedback.PKzqnXUe.css} +1 -1
  23. package/assets/Textarea.y3MW7VW0.css +1 -0
  24. package/assets/Toast.CGyKXb4V.css +1 -0
  25. package/assets/buttonround.BN3vUDc_.css +1 -0
  26. package/assets/input.DTu4g_iA.css +1 -0
  27. package/assets/logo100years.CQrEg-Vo.css +1 -0
  28. package/assets/step.BeLporJO.css +1 -0
  29. package/assets/switch.B9B-n_3y.css +1 -0
  30. package/assets/tooltip.Co1gWF_0.css +1 -0
  31. package/{asterisk.CR60hx8S.js → asterisk.B2ih8VwF.js} +1 -1
  32. package/{banner.j9YpudOS.js → banner.CI5HnDqD.js} +3 -3
  33. package/breadcrumb.CtwAux3P.js +11 -0
  34. package/button.DHuKanZP.js +13 -0
  35. package/buttonround.CMlmEDaN.js +96 -0
  36. package/checkbox.DwccD0Mp.js +12 -0
  37. package/checkboxgroup.ZiUFfCJ1.js +9 -0
  38. package/chip.B0s_fS8L.js +12 -0
  39. package/chipgroup.Dpu66bo5.js +143 -0
  40. package/chunks/Accordion.CYIfNOWr.js +168 -0
  41. package/chunks/ActionButton.DOYsEHPr.js +180 -0
  42. package/chunks/ActionLink.DbyciN3Y.js +153 -0
  43. package/chunks/{AriaLiveRegions.utils.Cb327d_2.js → AriaLiveRegions.utils.CybNIBSa.js} +2 -2
  44. package/chunks/{Breadcrumb.BGzwzvh8.js → Breadcrumb.BgnpTo01.js} +35 -37
  45. package/chunks/Button.DCZgBNmA.js +142 -0
  46. package/chunks/Checkbox.BcGXAuuP.js +88 -0
  47. package/chunks/{CheckboxGroup.Dy_6tiGk.js → CheckboxGroup.BuFd1luB.js} +5 -5
  48. package/chunks/Chip.D6pubCZV.js +133 -0
  49. package/chunks/{CustomReactSelect.iE5iTdez.js → CustomReactSelect.Dg3wC_VH.js} +484 -473
  50. package/chunks/Dialog.DpqSVrYR.js +102 -0
  51. package/chunks/Drawer.DISWybOa.js +107 -0
  52. package/chunks/{Fieldset.CjIfmN_5.js → Fieldset.DiMtr6Vw.js} +6 -6
  53. package/chunks/Header.7TQL_J9t.js +370 -0
  54. package/chunks/Icon.CDLyB7Pv.js +229 -0
  55. package/chunks/{Input.utils.Cnnzvuk4.js → Input.utils.Dkw7gRrr.js} +17 -17
  56. package/chunks/InputFile.C8nt9Fu8.js +218 -0
  57. package/chunks/InputNumber.CbH1XJfl.js +267 -0
  58. package/chunks/{InputPassword.DC2POUc1.js → InputPassword.DbdjuSiJ.js} +34 -34
  59. package/chunks/InputSearch.joxmugiv.js +173 -0
  60. package/chunks/LinkButton.BZgIGgc8.js +132 -0
  61. package/chunks/MegaMenu.CQbOeaib.js +189 -0
  62. package/chunks/NavigationTabList.G_l0GiUa.js +67 -0
  63. package/chunks/{NavigationTabs.ClpVGcl0.js → NavigationTabs.BwM-6CRm.js} +13 -14
  64. package/chunks/Notification.CrojkJ0E.js +91 -0
  65. package/chunks/Popover.Bb0Pjmvg.js +215 -0
  66. package/chunks/{RadioGroup.peTeMK45.js → RadioGroup.CexC4v2Z.js} +5 -5
  67. package/chunks/Select.BEIdNMML.js +164 -0
  68. package/chunks/{Slider.kyVr7BLk.js → Slider.CR0zYHeZ.js} +70 -71
  69. package/chunks/Stepper.PTQdQBYf.js +152 -0
  70. package/chunks/{SystemFeedback.B9f67mjJ.js → SystemFeedback.CjlARKki.js} +9 -9
  71. package/chunks/Tabs.DyP4whX0.js +83 -0
  72. package/chunks/{Text.DGWeWF1y.js → Text.DpRtTpB4.js} +3 -3
  73. package/chunks/Textarea.Du2RII5u.js +168 -0
  74. package/chunks/Toast.ug_RjGgF.js +76 -0
  75. package/chunks/{arrow-clockwise.BefOjGPg.js → arrow-clockwise.C4iOgjOc.js} +1 -1
  76. package/chunks/{arrow-counterclockwise.C7Ov32BZ.js → arrow-counterclockwise.CgQAuBUe.js} +1 -1
  77. package/chunks/battery-charge-0.DxlgEAto.js +10 -0
  78. package/chunks/battery-charge-100.D0Cax7dU.js +10 -0
  79. package/chunks/{battery.YCg9lYqC.js → battery.6Idoickg.js} +3 -3
  80. package/chunks/bluetooth-off.BzZCh4Q8.js +10 -0
  81. package/chunks/{circle-check-colored.Bye_GwLy.js → circle-check-colored.qP2s3vjI.js} +1 -1
  82. package/chunks/{diamond-exclamationmark-colored.WNKYwZ8q.js → diamond-exclamationmark-colored.CzYiaTZ0.js} +1 -1
  83. package/chunks/document-s.CoOp0kBK.js +10 -0
  84. package/chunks/feather.l1E4nFBx.js +10 -0
  85. package/chunks/file-type-doc.B_RSSYbu.js +10 -0
  86. package/chunks/floating-ui.dom.BT8pKtCQ.js +1005 -0
  87. package/chunks/floating-ui.react.3FjeMiuN.js +1999 -0
  88. package/chunks/helpers.CexwVao7.js +38 -0
  89. package/chunks/{index.CgTHIF3K.js → index.D-sRdssb.js} +1 -1
  90. package/chunks/{index.CEyLAtio.js → index.DL9mof6u.js} +2 -2
  91. package/chunks/{is-animation-disabled.CUl4N3LI.js → is-animation-disabled.B-V_68K-.js} +5 -5
  92. package/chunks/{map.CXgG1iGz.js → map.DNl7PF61.js} +1 -1
  93. package/chunks/moon.5yILPYXs.js +10 -0
  94. package/chunks/muscle.DbNjWasV.js +10 -0
  95. package/chunks/petrol.BGWwCsTw.js +10 -0
  96. package/chunks/sun.CY6ttzTL.js +10 -0
  97. package/chunks/{triangle-exclamationmark-colored.CbVC3Gzi.js → triangle-exclamationmark-colored.e93zvQ6Q.js} +1 -1
  98. package/chunks/upload.BogDfonx.js +10 -0
  99. package/chunks/useBreakpoint.BzR_yaIv.js +42 -0
  100. package/chunks/variants.-R3_RCW8.js +10 -0
  101. package/chunks/weight.DUPu2UT0.js +10 -0
  102. package/combobox.jG5GRA7C.js +65 -0
  103. package/components/ActionButton/ActionButton.d.ts +2 -0
  104. package/components/Button/Button.d.ts +4 -0
  105. package/components/ChipGroup/Chip.d.ts +1 -0
  106. package/components/ChipGroup/ChipGroup.d.ts +4 -0
  107. package/components/ChipGroup/ChipGroup.utils.d.ts +10 -12
  108. package/components/Combobox/Combobox.utils.d.ts +3 -4
  109. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +4 -2
  110. package/components/Header/Header.d.ts +4 -5
  111. package/components/{InputStepper/InputStepper.d.ts → InputNumber/InputNumber.d.ts} +10 -4
  112. package/components/InputNumber/InputNumber.utils.d.ts +13 -0
  113. package/components/LinkButton/LinkButton.d.ts +2 -0
  114. package/components/Logo100Years/Logo100Years.d.ts +1 -0
  115. package/components/Popover/Popover.d.ts +29 -7
  116. package/components/Popover/Popover.utils.d.ts +34 -3
  117. package/components/Scroller/Scroller.d.ts +6 -2
  118. package/components/Stepper/Step.d.ts +33 -0
  119. package/components/Stepper/Step.utils.d.ts +5 -0
  120. package/components/Stepper/Stepper.d.ts +56 -0
  121. package/components/Stepper/Stepper.test.d.ts +1 -0
  122. package/components/Stepper/Stepper.utils.d.ts +30 -0
  123. package/components/Stepper/Stepper.utils.test.d.ts +1 -0
  124. package/components/Tooltip/Tooltip.d.ts +40 -0
  125. package/components/Tooltip/Tooltip.test.d.ts +1 -0
  126. package/components/Tooltip/Tooltip.utils.d.ts +70 -0
  127. package/components/Tooltip/Tooltip.utils.test.d.ts +1 -0
  128. package/components/TopBar/TopBar.d.ts +4 -4
  129. package/components/TopBar/TopBar.utils.d.ts +1 -1
  130. package/customreactselect.BFN8cYJi.js +14 -0
  131. package/dialog.CzM_Cxp0.js +9 -0
  132. package/drawer._A9MQ8Cj.js +9 -0
  133. package/fieldset.CId-NtI5.js +11 -0
  134. package/{filelist.nunJKxkv.js → filelist.DgVuWpR3.js} +23 -24
  135. package/{flag.D_iN8iD6.js → flag.CE32qHPa.js} +3 -3
  136. package/floatingactionbutton.Bsnncudt.js +87 -0
  137. package/header.CelAkqtp.js +12 -0
  138. package/{heading.BXFBZhKv.js → heading.DHLpT4dc.js} +2 -2
  139. package/icon.vzkPwgjZ.js +9 -0
  140. package/index.d.ts +4 -2
  141. package/index.es.js +217 -204
  142. package/input.DuEbg7d6.js +206 -0
  143. package/inputfile.BjgJGefV.js +17 -0
  144. package/inputnumber.BcrxBVv0.js +16 -0
  145. package/inputnumber.d.ts +2 -0
  146. package/inputpassword.CddmBW-T.js +13 -0
  147. package/inputsearch.CFOASqrd.js +14 -0
  148. package/link.f8MMZo-w.js +81 -0
  149. package/linkbutton.BYAvi-_V.js +12 -0
  150. package/{logo.C96KaG1P.js → logo.DprmD8HU.js} +3 -3
  151. package/logo100years.B4d_DIiB.js +24 -0
  152. package/logo100years.d.ts +2 -0
  153. package/megamenu.Cy9Cc-mC.js +12 -0
  154. package/navigationtablist.CkkLyHrM.js +10 -0
  155. package/navigationtabs.Dp7D2fnc.js +9 -0
  156. package/notification.B-norGiB.js +10 -0
  157. package/{numberindicator.Ddf3ESi7.js → numberindicator.BdnPMogE.js} +2 -2
  158. package/{optioncheckbox.D97W3zeW.js → optioncheckbox.nBVwGv6c.js} +3 -3
  159. package/package.json +41 -51
  160. package/partials/index.js +58 -52
  161. package/partials/lib/partials.d.ts +1 -1
  162. package/popover.DFVDZY-m.js +12 -0
  163. package/{radio.7_N_alaS.js → radio.DHUfSPai.js} +2 -2
  164. package/radiogroup.DaThoMfq.js +11 -0
  165. package/scroller.Cu7H_VCT.js +98 -0
  166. package/select.CMdKf7tC.js +13 -0
  167. package/{skiptocontent._F-d8y5b.js → skiptocontent.CHVh0hbr.js} +4 -4
  168. package/slider.C5dK6KcG.js +11 -0
  169. package/{spinner.Dht6FspZ.js → spinner.C9qCeq0R.js} +18 -18
  170. package/step.DKf4CHGr.js +82 -0
  171. package/step.d.ts +6 -0
  172. package/stepper.CCP_igpJ.js +16 -0
  173. package/stepper.d.ts +2 -0
  174. package/{switch.B37S4vfP.js → switch.Bqdyzi2E.js} +5 -5
  175. package/systemfeedback.O7tj1juR.js +10 -0
  176. package/tablist.DZgo49nZ.js +209 -0
  177. package/{tabpane.CB-eudyw.js → tabpane.C4nsUlwc.js} +2 -2
  178. package/tabs.BkoT7feH.js +11 -0
  179. package/text.cLv2PhjQ.js +10 -0
  180. package/textarea.DMn20z4p.js +13 -0
  181. package/{title.Bz_k5Vda.js → title.DuLPB-VK.js} +2 -2
  182. package/toast.Dvs8woTH.js +11 -0
  183. package/toastmanager.pi_Fhd5t.js +89 -0
  184. package/tooltip.QJe_bfO-.js +178 -0
  185. package/tooltip.d.ts +2 -0
  186. package/topbar.Bxwvp9Lf.js +12 -0
  187. package/types/icon-types.d.ts +1 -1
  188. package/types/prettier-plugin-organize-imports.d.ts +1 -0
  189. package/utils/index.d.ts +1 -0
  190. package/utils/mergeRefs.d.ts +5 -0
  191. package/utils/mergeRefs.test.d.ts +1 -0
  192. package/accordion.DkwtJy--.js +0 -12
  193. package/actionbutton.u1qp8oGC.js +0 -11
  194. package/actionlink.C7HzeIVa.js +0 -11
  195. package/assets/Accordion.BJb4TOG0.css +0 -1
  196. package/assets/Button.Dw8H5nFS.css +0 -1
  197. package/assets/Checkbox.BKHQN_tu.css +0 -1
  198. package/assets/CustomReactSelect.D0b1Hg1T.css +0 -1
  199. package/assets/Dialog.CGAg7bnN.css +0 -1
  200. package/assets/Drawer.VOvWQoEr.css +0 -1
  201. package/assets/InputFile.CCQxsulT.css +0 -1
  202. package/assets/InputPassword.124xVOiO.css +0 -1
  203. package/assets/InputSearch.Bkg-1urJ.css +0 -1
  204. package/assets/InputStepper.Dth4qZN_.css +0 -1
  205. package/assets/LinkButton.xMvg_ojf.css +0 -1
  206. package/assets/Notification.BOuaA5GT.css +0 -1
  207. package/assets/Popover.BDTDsPAt.css +0 -1
  208. package/assets/Select.CYACicZ3.css +0 -1
  209. package/assets/Slider.DzwSjDPV.css +0 -1
  210. package/assets/Textarea.BXWhXpXx.css +0 -1
  211. package/assets/Toast.CJ1zhDIT.css +0 -1
  212. package/assets/buttonround.Cw9hnUan.css +0 -1
  213. package/assets/input.ONbL-_C1.css +0 -1
  214. package/assets/switch.Bc9KIyw9.css +0 -1
  215. package/breadcrumb.BS-S3zUI.js +0 -11
  216. package/button.CPilCCUI.js +0 -12
  217. package/buttonround.C426mO4d.js +0 -81
  218. package/checkbox.BtlUvs0z.js +0 -12
  219. package/checkboxgroup.C5NgyyQF.js +0 -9
  220. package/chip.tVIG1ysH.js +0 -11
  221. package/chipgroup.CjIK0Z0x.js +0 -209
  222. package/chunks/Accordion.C5V5IcM-.js +0 -170
  223. package/chunks/ActionButton.B8zFwOrJ.js +0 -165
  224. package/chunks/ActionLink.IX6oRXU3.js +0 -138
  225. package/chunks/Button.B7xF1E19.js +0 -127
  226. package/chunks/Checkbox.DxV7-F5W.js +0 -88
  227. package/chunks/Chip.31UfPwQF.js +0 -119
  228. package/chunks/Dialog.B_2pKRnd.js +0 -135
  229. package/chunks/Drawer.HFlBTcqN.js +0 -140
  230. package/chunks/Header.DqZRryB5.js +0 -366
  231. package/chunks/Icon.DGTYCv63.js +0 -231
  232. package/chunks/InputFile.DvOatDzg.js +0 -220
  233. package/chunks/InputSearch.B0aCuPRZ.js +0 -174
  234. package/chunks/InputStepper.D_1YqlWl.js +0 -263
  235. package/chunks/LinkButton.DdTspmJz.js +0 -117
  236. package/chunks/MegaMenu.BY7eOnhj.js +0 -189
  237. package/chunks/NavigationTabList.dYFYTmWv.js +0 -57
  238. package/chunks/Notification.DIdIhGTQ.js +0 -92
  239. package/chunks/Popover.NGetxKGg.js +0 -159
  240. package/chunks/Select.BDHLJ2ma.js +0 -162
  241. package/chunks/Tabs.CkVL8Jw8.js +0 -83
  242. package/chunks/Textarea.ORkJUx-S.js +0 -163
  243. package/chunks/Toast.DHo4pLH3.js +0 -76
  244. package/chunks/file-type-doc.DlovDOBh.js +0 -10
  245. package/chunks/floating-ui.dom.C9TD1WpB.js +0 -950
  246. package/chunks/floating-ui.react.x0F9CYgn.js +0 -1637
  247. package/chunks/helpers.BbWkXTr3.js +0 -37
  248. package/chunks/petrol.Du6qAgp0.js +0 -10
  249. package/chunks/upload.ZImTAIgx.js +0 -10
  250. package/chunks/useBreakpoint.CMOR9ZOB.js +0 -44
  251. package/combobox.Bk2ycofh.js +0 -60
  252. package/components/InputStepper/InputStepper.utils.d.ts +0 -12
  253. package/customreactselect.Hnch9LGg.js +0 -14
  254. package/dialog.7sWoqGwL.js +0 -10
  255. package/drawer.DsF4KIPn.js +0 -10
  256. package/fieldset.DUFUMcT-.js +0 -11
  257. package/floatingactionbutton.DOH2k0gv.js +0 -72
  258. package/header.QpNjE3N-.js +0 -12
  259. package/icon.vMQcEBnH.js +0 -9
  260. package/input.BKHOY118.js +0 -203
  261. package/inputfile.DK8759wV.js +0 -17
  262. package/inputpassword.rV_ZZw5F.js +0 -13
  263. package/inputsearch.CmhakTpa.js +0 -14
  264. package/inputstepper.Y-YzUHhF.js +0 -16
  265. package/inputstepper.d.ts +0 -2
  266. package/link.D_FjTyoZ.js +0 -66
  267. package/linkbutton.D2C4vykc.js +0 -11
  268. package/megamenu.CdHrEeoh.js +0 -12
  269. package/navigationtablist.CVjh1k-b.js +0 -9
  270. package/navigationtabs.BGfi9AG2.js +0 -9
  271. package/notification.Dn-FZWEL.js +0 -10
  272. package/popover.DXxm1oWI.js +0 -11
  273. package/radiogroup.J8WpEEo8.js +0 -11
  274. package/scroller.BiRLQg__.js +0 -123
  275. package/select.DIzGPVx3.js +0 -13
  276. package/slider.DuJK0RdB.js +0 -11
  277. package/systemfeedback.C_2PhwKe.js +0 -10
  278. package/tablist.g_Nwu6GA.js +0 -256
  279. package/tabs.oh9-wHPp.js +0 -11
  280. package/text.ZOUuesnU.js +0 -10
  281. package/textarea.dQ12-oYB.js +0 -13
  282. package/toast.sMNbfKxi.js +0 -11
  283. package/toastmanager.CVamaS5T.js +0 -116
  284. package/topbar.Dhy_TL0U.js +0 -11
  285. /package/components/{InputStepper/InputStepper.test.d.ts → InputNumber/InputNumber.test.d.ts} +0 -0
  286. /package/components/{InputStepper/InputStepper.utils.test.d.ts → InputNumber/InputNumberutils.test.d.ts} +0 -0
@@ -0,0 +1,102 @@
1
+ "use client";
2
+ import { jsx as n, jsxs as E } from "react/jsx-runtime";
3
+ import { c as r } from "./index.DL9mof6u.js";
4
+ import { useRef as g, useState as F, useEffect as v } from "react";
5
+ import { D as W } from "./Button.DCZgBNmA.js";
6
+ import { g as x } from "./helpers.CexwVao7.js";
7
+ import "./index.D-sRdssb.js";
8
+ import '../assets/Dialog.DJkn65Es.css';const R = "ds-dialog_root_kvopn_5", y = "ds-dialog_content-wrapper_kvopn_166", z = "ds-dialog_content-wrapper--no-footer_kvopn_172", L = "ds-dialog_close-button_kvopn_180", M = "ds-dialog_header_kvopn_193", j = "ds-dialog_content_kvopn_166", H = "ds-dialog_footer_kvopn_195", I = "ds-dialog_header--scrollable_kvopn_216", O = "ds-dialog_header--close-button_kvopn_225", P = "ds-dialog_content--no-footer_kvopn_238", T = "ds-dialog_footer--scrollable_kvopn_245", o = {
9
+ root: R,
10
+ contentWrapper: y,
11
+ contentWrapperNoFooter: z,
12
+ closeButton: L,
13
+ header: M,
14
+ content: j,
15
+ footer: H,
16
+ headerScrollable: I,
17
+ headerCloseButton: O,
18
+ contentNoFooter: P,
19
+ footerScrollable: T
20
+ }, V = ({
21
+ tabIndex: s
22
+ }) => {
23
+ if (s || s === 0)
24
+ throw new Error(x("DSDialog", "Do not pass the tabindex property to the DSDialog component as it is not interactive and does not receive focus. The DSDialogs contents, including the close button contained in the DSDialog, can receive focus and be interactive."));
25
+ }, U = ({
26
+ children: s,
27
+ className: m,
28
+ closeButtonProps: b,
29
+ disableBackdropClose: D = !1,
30
+ footer: c,
31
+ header: S,
32
+ hideCloseButton: a = !1,
33
+ isOpen: i = !1,
34
+ onClose: l,
35
+ ...d
36
+ }) => {
37
+ if (process.env.NODE_ENV !== "production") {
38
+ const {
39
+ tabIndex: e
40
+ } = d;
41
+ V({
42
+ tabIndex: e
43
+ });
44
+ }
45
+ const {
46
+ label: k = "Close dialog",
47
+ ...N
48
+ } = b || {}, t = g(null), p = g(null), [u, B] = F(!1);
49
+ v(() => {
50
+ const e = p.current;
51
+ if (e) {
52
+ const _ = () => {
53
+ B(e.scrollHeight > e.clientHeight);
54
+ };
55
+ _();
56
+ const h = new ResizeObserver(_);
57
+ return h.observe(e), () => {
58
+ h.disconnect();
59
+ };
60
+ }
61
+ }, []), v(() => {
62
+ const e = t.current;
63
+ if (e)
64
+ return e.addEventListener("close", f), i ? e.showModal() : e.close(), () => {
65
+ e.removeEventListener("close", f);
66
+ };
67
+ }, [i, l]);
68
+ const f = () => {
69
+ l && l();
70
+ }, w = (e) => {
71
+ D || t.current && e.target === t.current && t.current.close();
72
+ }, C = () => {
73
+ t.current && t.current.close();
74
+ };
75
+ return /* @__PURE__ */ n("dialog", { ...d, ref: t, className: r(o.root, m), onMouseDown: (e) => w(e), "aria-modal": "true", children: /* @__PURE__ */ E("div", { className: r(o.contentWrapper, {
76
+ [o.contentWrapperNoFooter]: !c
77
+ }), children: [
78
+ !a && /* @__PURE__ */ n(W, { ...N, className: o.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => C(), children: k }),
79
+ /* @__PURE__ */ n("header", { className: r(o.header, {
80
+ [o.headerCloseButton]: !a,
81
+ [o.headerScrollable]: u
82
+ }), children: S }),
83
+ /* @__PURE__ */ n(
84
+ "div",
85
+ {
86
+ ref: p,
87
+ className: r(o.content, {
88
+ [o.contentNoFooter]: !c
89
+ }),
90
+ tabIndex: 0,
91
+ children: s
92
+ }
93
+ ),
94
+ c && /* @__PURE__ */ n("footer", { className: r(o.footer, {
95
+ [o.footerScrollable]: u
96
+ }), children: c })
97
+ ] }) });
98
+ };
99
+ export {
100
+ U as D,
101
+ V as v
102
+ };
@@ -0,0 +1,107 @@
1
+ "use client";
2
+ import { jsx as t, jsxs as F } from "react/jsx-runtime";
3
+ import { c as n } from "./index.DL9mof6u.js";
4
+ import { useRef as p, useState as R, useEffect as v } from "react";
5
+ import { D as k } from "./Button.DCZgBNmA.js";
6
+ import { g as x } from "./helpers.CexwVao7.js";
7
+ import "./index.D-sRdssb.js";
8
+ import '../assets/Drawer.x3BCQvWE.css';const I = "ds-drawer_root_4nbv0_10", O = "ds-drawer_root--end_4nbv0_68", y = "ds-drawer_content-wrapper_4nbv0_169", z = "ds-drawer_content-wrapper--no-footer_4nbv0_175", L = "ds-drawer_close-button_4nbv0_178", M = "ds-drawer_header_4nbv0_191", P = "ds-drawer_content_4nbv0_169", j = "ds-drawer_footer_4nbv0_193", H = "ds-drawer_header--scrollable_4nbv0_214", T = "ds-drawer_header--close-button_4nbv0_223", A = "ds-drawer_content--no-footer_4nbv0_237", V = "ds-drawer_footer--scrollable_4nbv0_244", o = {
9
+ root: I,
10
+ rootEnd: O,
11
+ contentWrapper: y,
12
+ contentWrapperNoFooter: z,
13
+ closeButton: L,
14
+ header: M,
15
+ content: P,
16
+ footer: j,
17
+ headerScrollable: H,
18
+ headerCloseButton: T,
19
+ contentNoFooter: A,
20
+ footerScrollable: V
21
+ }, Y = ["start", "end"], q = ({
22
+ tabIndex: s
23
+ }) => {
24
+ if (s || s === 0)
25
+ throw new Error(x("DSDrawer", "Do not pass the tabindex property to the DSDrawer component as it is not interactive and does not receive focus. The DSDrawers contents, including the close button contained in the DSDrawer, can receive focus and be interactive."));
26
+ }, Z = ({
27
+ children: s,
28
+ className: w,
29
+ closeButtonProps: m,
30
+ disableBackdropClose: D = !1,
31
+ footer: c,
32
+ header: S,
33
+ hideCloseButton: l = !1,
34
+ position: N = "start",
35
+ isOpen: d = !1,
36
+ onClose: a,
37
+ ...i
38
+ }) => {
39
+ if (process.env.NODE_ENV !== "production") {
40
+ const {
41
+ tabIndex: e
42
+ } = i;
43
+ q({
44
+ tabIndex: e
45
+ });
46
+ }
47
+ const {
48
+ label: E = "Close modal",
49
+ ...g
50
+ } = m || {}, r = p(null), _ = p(null), [u, B] = R(!1);
51
+ v(() => {
52
+ const e = _.current;
53
+ if (e) {
54
+ const f = () => {
55
+ B(e.scrollHeight > e.clientHeight);
56
+ };
57
+ f();
58
+ const h = new ResizeObserver(f);
59
+ return h.observe(e), () => {
60
+ h.disconnect();
61
+ };
62
+ }
63
+ }, []), v(() => {
64
+ const e = r.current;
65
+ if (e)
66
+ return e.addEventListener("close", b), d ? e.showModal() : e.close(), () => {
67
+ e.removeEventListener("close", b);
68
+ };
69
+ }, [d, a]);
70
+ const b = () => {
71
+ a && a();
72
+ }, C = (e) => {
73
+ D || r.current && e.target === r.current && r.current.close();
74
+ }, W = () => {
75
+ r.current && r.current.close();
76
+ };
77
+ return /* @__PURE__ */ t("dialog", { ...i, ref: r, className: n(o.root, {
78
+ [o.rootEnd]: N === "end"
79
+ }), onMouseDown: (e) => C(e), "aria-modal": "true", children: /* @__PURE__ */ F("div", { className: n(o.contentWrapper, w, {
80
+ [o.contentWrapperNoFooter]: !c
81
+ }), children: [
82
+ !l && /* @__PURE__ */ t(k, { ...g, className: o.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => W(), children: E }),
83
+ /* @__PURE__ */ t("header", { className: n(o.header, {
84
+ [o.headerCloseButton]: !l,
85
+ [o.headerScrollable]: u
86
+ }), children: S }),
87
+ /* @__PURE__ */ t(
88
+ "div",
89
+ {
90
+ ref: _,
91
+ className: n(o.content, {
92
+ [o.contentNoFooter]: !c
93
+ }),
94
+ tabIndex: 0,
95
+ children: s
96
+ }
97
+ ),
98
+ c && /* @__PURE__ */ t("footer", { className: n(o.footer, {
99
+ [o.footerScrollable]: u
100
+ }), children: c })
101
+ ] }) });
102
+ };
103
+ export {
104
+ Z as D,
105
+ Y as a,
106
+ q as v
107
+ };
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsxs as p, jsx as i, Fragment as j } from "react/jsx-runtime";
3
- import { c as m } from "./index.CEyLAtio.js";
3
+ import { c as m } from "./index.DL9mof6u.js";
4
4
  import "react";
5
- import { Asterisk as y } from "../asterisk.CR60hx8S.js";
6
- import { DSHeading as M } from "../heading.BXFBZhKv.js";
7
- import { D as x } from "./SystemFeedback.B9f67mjJ.js";
8
- import { g as D } from "./helpers.BbWkXTr3.js";
9
- import "./index.CgTHIF3K.js";
5
+ import { Asterisk as y } from "../asterisk.B2ih8VwF.js";
6
+ import { DSHeading as M } from "../heading.DHLpT4dc.js";
7
+ import { D as x } from "./SystemFeedback.CjlARKki.js";
8
+ import { g as D } from "./helpers.CexwVao7.js";
9
+ import "./index.D-sRdssb.js";
10
10
  import '../assets/Fieldset.CW9dBvAo.css';const E = "ds-fieldset_root_dtiam_1", q = "ds-fieldset_child-wrapper_dtiam_98", C = "ds-fieldset_legend_dtiam_105", P = "ds-fieldset_legend--utility--m_dtiam_109", T = "ds-fieldset_description_dtiam_121", U = "ds-fieldset_description--small_dtiam_135", W = "ds-fieldset_system-feedback_dtiam_139", s = {
11
11
  root: E,
12
12
  childWrapper: q,
@@ -0,0 +1,370 @@
1
+ "use client";
2
+ import { jsx as _, jsxs as me, Fragment as He } from "react/jsx-runtime";
3
+ import { d as T } from "./index.D-sRdssb.js";
4
+ import { c as H } from "./index.DL9mof6u.js";
5
+ import { useState as O, useEffect as ae, useContext as re, createContext as xe, useRef as L } from "react";
6
+ import { g as Y, c as F, p as he } from "./helpers.CexwVao7.js";
7
+ import { u as De } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
8
+ import { DSLogo as Pe } from "../logo.DprmD8HU.js";
9
+ import { Logo100Years as Te } from "../logo100years.B4d_DIiB.js";
10
+ import '../assets/Header.CNqtWTxB.css';const Ee = (s) => {
11
+ const e = T.c(3), t = 0, [n, r] = O("down");
12
+ let a, d;
13
+ return e[0] !== t ? (a = () => {
14
+ let c = window.scrollY;
15
+ const l = () => {
16
+ const o = window.scrollY, h = o > c ? "down" : "up";
17
+ Math.abs(o - c) > t && (r(h), c = o);
18
+ };
19
+ return window.addEventListener("scroll", l, {
20
+ passive: !0
21
+ }), () => window.removeEventListener("scroll", l);
22
+ }, d = [t], e[0] = t, e[1] = a, e[2] = d) : (a = e[1], d = e[2]), ae(a, d), n;
23
+ }, ut = ["full", "main"], Oe = ({
24
+ hasBrandArea: s,
25
+ hasPrimaryArea: e,
26
+ hasSecondaryArea: t
27
+ }) => {
28
+ if (s)
29
+ throw new Error(Y("DSHeader", "A <DSTopBar.BrandArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
30
+ if (e)
31
+ throw new Error(Y("DSHeader", "A <DSTopBar.PrimaryArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
32
+ if (t)
33
+ throw new Error(Y("DSHeader", "A <DSTopBar.SecondaryArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
34
+ }, Fe = "ds-top-bar_root_q6oxc_1", Ce = "ds-top-bar_root--sticky_q6oxc_49", Ve = "ds-top-bar_root--fixed_q6oxc_53", Re = "ds-top-bar_content_q6oxc_62", Me = "ds-top-bar_content--variant-full_q6oxc_81", qe = "ds-top-bar_content--has-primary-area-and-secondary-area_q6oxc_85", ke = "ds-top-bar_primary_q6oxc_90", $e = "ds-top-bar_content--has-brand-add-on-with-primary-area-and-secondary-area_q6oxc_105", We = "ds-top-bar_brand_q6oxc_110", Ie = "ds-top-bar_content--has-primary-area_q6oxc_85", Le = "ds-top-bar_content--has-primary-area--with-brand-add-on_q6oxc_149", Ye = "ds-top-bar_brand-add-on_q6oxc_213", ze = "ds-top-bar_brand-add-on--double_q6oxc_234", Ue = "ds-top-bar_sub-title_q6oxc_248", je = "ds-top-bar_secondary_q6oxc_274", Ge = "ds-top-bar_logo_q6oxc_283", Je = "ds-top-bar_logo--reduced_q6oxc_293", u = {
35
+ root: Fe,
36
+ rootSticky: Ce,
37
+ rootFixed: Ve,
38
+ content: Re,
39
+ contentVariantFull: Me,
40
+ contentHasPrimaryAreaAndSecondaryArea: qe,
41
+ primary: ke,
42
+ contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea: $e,
43
+ brand: We,
44
+ contentHasPrimaryArea: Ie,
45
+ contentHasPrimaryAreaWithBrandAddOn: Le,
46
+ brandAddOn: Ye,
47
+ brandAddOnDouble: ze,
48
+ subTitle: Ue,
49
+ secondary: je,
50
+ logo: Ge,
51
+ logoReduced: Je
52
+ }, Ke = ({
53
+ hasBrandArea: s,
54
+ hasPrimaryArea: e,
55
+ hasSecondaryArea: t
56
+ }) => {
57
+ if (!s)
58
+ throw new Error(Y("DSTopBar", "A <DSTopBar.BrandArea> component is required. Please include it as a child of DSTopBar."));
59
+ if (!e && t)
60
+ throw new Error(Y("DSTopBar", "A <DSTopBar.PrimaryArea> is required when using <DSTopBar.SecondaryArea>. Please include <DSTopBar.PrimaryArea> as a child of DSTopBar, or move the content from <DSTopBar.SecondaryArea> into <DSTopBar.PrimaryArea>."));
61
+ }, _e = (s) => s == null || typeof s == "object" && !Array.isArray(s) && s !== null && Object.keys(s).length === 0, _t = ["100years"], $ = (s) => {
62
+ const e = T.c(28);
63
+ let t, n, r, a;
64
+ e[0] !== s ? ({
65
+ children: t,
66
+ className: n,
67
+ rootClassName: a,
68
+ ...r
69
+ } = s, e[0] = s, e[1] = t, e[2] = n, e[3] = r, e[4] = a) : (t = e[1], n = e[2], r = e[3], a = e[4]);
70
+ const {
71
+ variant: d,
72
+ isHeaderSticky: c,
73
+ isMobile: l,
74
+ topBarAreaRef: o,
75
+ isStickyMainNavigationVisible: h,
76
+ hasBrandAddOn: m
77
+ } = re(z);
78
+ let y, p;
79
+ if (e[5] !== t || e[6] !== n || e[7] !== m || e[8] !== c || e[9] !== l || e[10] !== h || e[11] !== a || e[12] !== d) {
80
+ const B = F(t, fe), A = F(t, Ae), i = F(t, pe);
81
+ process.env.NODE_ENV !== "production" && Ke({
82
+ hasBrandArea: B,
83
+ hasPrimaryArea: A,
84
+ hasSecondaryArea: i
85
+ });
86
+ let S;
87
+ e[15] !== c || e[16] !== l || e[17] !== h || e[18] !== a ? (S = H(u.root, a, c ? {
88
+ [u.rootSticky]: !l && h,
89
+ [u.rootFixed]: !l && !h
90
+ } : {}), e[15] = c, e[16] = l, e[17] = h, e[18] = a, e[19] = S) : S = e[19], y = S, p = H(u.content, n, {
91
+ [u.contentHasPrimaryArea]: A && !m && !i,
92
+ [u.contentHasPrimaryAreaWithBrandAddOn]: A && m && !i,
93
+ [u.contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea]: m && A && i,
94
+ [u.contentHasPrimaryAreaAndSecondaryArea]: A && i && !m,
95
+ [u.contentVariantFull]: d === "full"
96
+ }), e[5] = t, e[6] = n, e[7] = m, e[8] = c, e[9] = l, e[10] = h, e[11] = a, e[12] = d, e[13] = y, e[14] = p;
97
+ } else
98
+ y = e[13], p = e[14];
99
+ const v = p;
100
+ let f;
101
+ e[20] !== t || e[21] !== v || e[22] !== r ? (f = /* @__PURE__ */ _("section", { className: v, ...r, children: t }), e[20] = t, e[21] = v, e[22] = r, e[23] = f) : f = e[23];
102
+ let g;
103
+ return e[24] !== y || e[25] !== f || e[26] !== o ? (g = /* @__PURE__ */ _("div", { className: y, ref: o, children: f }), e[24] = y, e[25] = f, e[26] = o, e[27] = g) : g = e[27], g;
104
+ }, fe = (s) => {
105
+ const e = T.c(22), {
106
+ children: t,
107
+ className: n
108
+ } = s, {
109
+ logoProps: r,
110
+ brandAddOnProps: a,
111
+ setHasBrandAddOn: d
112
+ } = re(z), {
113
+ aria: c,
114
+ logo: l,
115
+ href: o,
116
+ target: h
117
+ } = r || {}, m = l === void 0 ? "main" : l, y = o === void 0 ? "/" : o, p = h === void 0 ? "_self" : h;
118
+ let v;
119
+ e[0] !== a || e[1] !== t || e[2] !== d ? (v = () => {
120
+ t || !_e(a) ? d?.(!0) : d?.(!1);
121
+ }, e[0] = a, e[1] = t, e[2] = d, e[3] = v) : v = e[3];
122
+ let f;
123
+ e[4] !== a || e[5] !== t ? (f = [t, a], e[4] = a, e[5] = t, e[6] = f) : f = e[6], ae(v, f);
124
+ const g = H(u.logo, {
125
+ [u.logoReduced]: m.includes("reduced")
126
+ });
127
+ let B;
128
+ e[7] !== n ? (B = H(u.brand, n), e[7] = n, e[8] = B) : B = e[8];
129
+ let A;
130
+ e[9] !== c || e[10] !== y || e[11] !== m || e[12] !== g || e[13] !== p ? (A = /* @__PURE__ */ _(Pe, { className: g, aria: c, logo: m, href: y, target: p }), e[9] = c, e[10] = y, e[11] = m, e[12] = g, e[13] = p, e[14] = A) : A = e[14];
131
+ let i;
132
+ e[15] !== a ? (i = _e(a) ? void 0 : /* @__PURE__ */ _(ye, { ...a }), e[15] = a, e[16] = i) : i = e[16];
133
+ let S;
134
+ return e[17] !== t || e[18] !== B || e[19] !== A || e[20] !== i ? (S = /* @__PURE__ */ me("div", { className: B, children: [
135
+ A,
136
+ i,
137
+ t
138
+ ] }), e[17] = t, e[18] = B, e[19] = A, e[20] = i, e[21] = S) : S = e[21], S;
139
+ };
140
+ fe.displayName = "DSTopBar.BrandArea";
141
+ const ye = (s) => {
142
+ const e = T.c(15), {
143
+ children: t,
144
+ className: n,
145
+ subTitle: r,
146
+ variant: a
147
+ } = s;
148
+ let d;
149
+ e[0] !== n || e[1] !== r ? (d = H(u.brandAddOn, n, {
150
+ [u.brandAddOnDouble]: r
151
+ }), e[0] = n, e[1] = r, e[2] = d) : d = e[2];
152
+ const c = d;
153
+ if (r) {
154
+ let o;
155
+ e[3] !== t ? (o = /* @__PURE__ */ _("span", { children: t }), e[3] = t, e[4] = o) : o = e[4];
156
+ let h;
157
+ e[5] !== r ? (h = r && /* @__PURE__ */ _("span", { className: u.subTitle, children: r }), e[5] = r, e[6] = h) : h = e[6];
158
+ let m;
159
+ return e[7] !== c || e[8] !== o || e[9] !== h ? (m = /* @__PURE__ */ me("div", { className: c, children: [
160
+ o,
161
+ h
162
+ ] }), e[7] = c, e[8] = o, e[9] = h, e[10] = m) : m = e[10], m;
163
+ }
164
+ if (a === "100years") {
165
+ let o;
166
+ return e[11] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ _(Te, {}), e[11] = o) : o = e[11], o;
167
+ }
168
+ let l;
169
+ return e[12] !== c || e[13] !== t ? (l = /* @__PURE__ */ _("div", { className: c, children: t }), e[12] = c, e[13] = t, e[14] = l) : l = e[14], l;
170
+ };
171
+ ye.displayName = "DSTopBar.BrandAddOn";
172
+ const Ae = (s) => {
173
+ const e = T.c(5), {
174
+ children: t,
175
+ className: n
176
+ } = s;
177
+ let r;
178
+ e[0] !== n ? (r = H(u.primary, n), e[0] = n, e[1] = r) : r = e[1];
179
+ let a;
180
+ return e[2] !== t || e[3] !== r ? (a = /* @__PURE__ */ _("div", { className: r, children: t }), e[2] = t, e[3] = r, e[4] = a) : a = e[4], a;
181
+ };
182
+ Ae.displayName = "DSTopBar.PrimaryArea";
183
+ const pe = (s) => {
184
+ const e = T.c(5), {
185
+ children: t,
186
+ className: n
187
+ } = s;
188
+ let r;
189
+ e[0] !== n ? (r = H(u.secondary, n), e[0] = n, e[1] = r) : r = e[1];
190
+ let a;
191
+ return e[2] !== t || e[3] !== r ? (a = /* @__PURE__ */ _("div", { className: r, children: t }), e[2] = t, e[3] = r, e[4] = a) : a = e[4], a;
192
+ };
193
+ pe.displayName = "DSTopBar.SecondaryArea";
194
+ $.BrandArea = fe;
195
+ $.PrimaryArea = Ae;
196
+ $.SecondaryArea = pe;
197
+ const Qe = "ds-header_root_c5fh4_1", Xe = "ds-header_root--sticky_c5fh4_4", Ze = "ds-header_root--hidden_c5fh4_9", et = "ds-header_root--fixed_c5fh4_20", tt = "ds-header_main-navigation-area_c5fh4_37", at = "ds-header_main-navigation-area--fixed_c5fh4_90", rt = "ds-header_main-navigation-area--fixed--visible_c5fh4_105", nt = "ds-header_main-navigation-content_c5fh4_111", ot = "ds-header_main-navigation-content--variant-full_c5fh4_115", it = "ds-header_header-placeholder_c5fh4_120", st = "ds-header_header-placeholder--with-banner_c5fh4_123", b = {
198
+ root: Qe,
199
+ rootSticky: Xe,
200
+ rootHidden: Ze,
201
+ rootFixed: et,
202
+ mainNavigationArea: tt,
203
+ mainNavigationAreaFixed: at,
204
+ mainNavigationAreaFixedVisible: rt,
205
+ mainNavigationContent: nt,
206
+ mainNavigationContentVariantFull: ot,
207
+ headerPlaceholder: it,
208
+ headerPlaceholderWithBanner: st
209
+ }, z = xe({
210
+ variant: "main"
211
+ }), ne = (s) => {
212
+ const e = T.c(57);
213
+ let t, n, r, a, d, c, l;
214
+ e[0] !== s ? ({
215
+ children: n,
216
+ brandAddOnProps: t,
217
+ className: r,
218
+ isHeaderSticky: c,
219
+ variant: l,
220
+ logoProps: a,
221
+ ...d
222
+ } = s, e[0] = s, e[1] = t, e[2] = n, e[3] = r, e[4] = a, e[5] = d, e[6] = c, e[7] = l) : (t = e[1], n = e[2], r = e[3], a = e[4], d = e[5], c = e[6], l = e[7]);
223
+ const o = c === void 0 ? !1 : c, h = l === void 0 ? "main" : l, [m, y] = O(!1);
224
+ let p;
225
+ e[8] !== n ? (p = F(n, ne.BannerArea, !0), e[8] = n, e[9] = p) : p = e[9];
226
+ const v = p, f = F(n, $.BrandArea), g = F(n, $.PrimaryArea), B = F(n, $.SecondaryArea);
227
+ process.env.NODE_ENV !== "production" && Oe({
228
+ hasBrandArea: f,
229
+ hasPrimaryArea: g,
230
+ hasSecondaryArea: B
231
+ });
232
+ const A = Ee(), [i, S] = O(!1), W = L(null), U = L(null), oe = L(null), ie = L(null), [se, be] = O(!1), [C, Se] = O(!1), [w, ue] = O(!0), [ce, Ne] = O(!1), de = L(i);
233
+ let j, G;
234
+ e[10] !== o ? (j = () => {
235
+ if (o) {
236
+ const N = () => {
237
+ S((x) => (de.current = x, window.innerWidth < 1024));
238
+ };
239
+ return N(), window.addEventListener("resize", N), () => window.removeEventListener("resize", N);
240
+ }
241
+ }, G = [o], e[10] = o, e[11] = j, e[12] = G) : (j = e[11], G = e[12]), ae(j, G);
242
+ let J, K;
243
+ e[13] === Symbol.for("react.memo_cache_sentinel") ? (J = () => {
244
+ const N = () => {
245
+ const x = document.documentElement, I = W.current?.offsetHeight || 0, D = oe.current?.offsetHeight || 0;
246
+ let E;
247
+ if (!ie.current)
248
+ E = I + D;
249
+ else {
250
+ const P = U.current?.offsetHeight;
251
+ !P || P === I ? E = parseInt(x.style.getPropertyValue("--ds-header-height").replace("rem", "")) * 16 || 0 : E = P;
252
+ }
253
+ x.style.setProperty("--ds-banner-height", `${he(I)}rem`), x.style.setProperty("--ds-header-height", `${he(E)}rem`), x.style.setProperty("--ds-top-bar-height", `${he(D)}rem`);
254
+ };
255
+ return N(), window.addEventListener("resize", N), () => window.removeEventListener("resize", N);
256
+ }, K = [], e[13] = J, e[14] = K) : (J = e[13], K = e[14]), De(J, K);
257
+ let Q;
258
+ e[15] !== o || e[16] !== i || e[17] !== w || e[18] !== A ? (Q = () => {
259
+ if (o) {
260
+ const N = () => {
261
+ const D = U.current, E = !!D && window.scrollY <= D.offsetHeight;
262
+ be(E);
263
+ const P = ie.current, te = oe.current;
264
+ if (!i && de.current && !w) {
265
+ ue(E && !!D && window.scrollY <= D.offsetHeight);
266
+ return;
267
+ }
268
+ const Be = !!te && !!P && P.getBoundingClientRect().bottom > te.getBoundingClientRect().bottom, we = !P && !!te && !!W.current && (window.scrollY >= W.current.offsetHeight || 0) || !P && !W.current && !!te && window.scrollY >= 1;
269
+ ue(P ? Be && !!D && window.scrollY <= D.offsetHeight : !we);
270
+ };
271
+ window.addEventListener("scroll", N, {
272
+ passive: !0
273
+ }), N();
274
+ const x = U.current, I = !!x && x.getBoundingClientRect().bottom > 0;
275
+ return i && Se(A === "up" && !I), i || Ne(A === "up" && !w), () => {
276
+ window.removeEventListener("scroll", N);
277
+ };
278
+ }
279
+ }, e[15] = o, e[16] = i, e[17] = w, e[18] = A, e[19] = Q) : Q = e[19];
280
+ let X;
281
+ e[20] !== o || e[21] !== i || e[22] !== A ? (X = [o, i, de, A], e[20] = o, e[21] = i, e[22] = A, e[23] = X) : X = e[23], ae(Q, X);
282
+ let Z;
283
+ e[24] !== r || e[25] !== C || e[26] !== o || e[27] !== se || e[28] !== i ? (Z = H(b.root, r, o ? {
284
+ [b.rootSticky]: i,
285
+ [b.rootHidden]: i && !se,
286
+ [b.rootFixed]: i && C
287
+ } : {}), e[24] = r, e[25] = C, e[26] = o, e[27] = se, e[28] = i, e[29] = Z) : Z = e[29];
288
+ const le = Z;
289
+ let V;
290
+ e[30] !== t || e[31] !== m || e[32] !== ce || e[33] !== o || e[34] !== i || e[35] !== w || e[36] !== a || e[37] !== h ? (V = {
291
+ variant: h,
292
+ bannerAreaRef: W,
293
+ brandAddOnProps: t,
294
+ hasBrandAddOn: m,
295
+ setHasBrandAddOn: y,
296
+ isFixedMainNavigation: ce,
297
+ isHeaderSticky: o,
298
+ isMobile: i,
299
+ isStickyMainNavigationVisible: w,
300
+ mainNavigationAreaRef: ie,
301
+ topBarAreaRef: oe,
302
+ logoProps: a
303
+ }, e[30] = t, e[31] = m, e[32] = ce, e[33] = o, e[34] = i, e[35] = w, e[36] = a, e[37] = h, e[38] = V) : V = e[38];
304
+ let R;
305
+ e[39] !== n || e[40] !== V ? (R = /* @__PURE__ */ _(z.Provider, { value: V, children: n }), e[39] = n, e[40] = V, e[41] = R) : R = e[41];
306
+ let M;
307
+ e[42] !== d || e[43] !== le || e[44] !== R ? (M = /* @__PURE__ */ _("header", { className: le, ...d, ref: U, children: R }), e[42] = d, e[43] = le, e[44] = R, e[45] = M) : M = e[45];
308
+ let q;
309
+ e[46] !== C || e[47] !== i ? (q = i && C && /* @__PURE__ */ _("div", { className: b.headerPlaceholder }), e[46] = C, e[47] = i, e[48] = q) : q = e[48];
310
+ let k;
311
+ e[49] !== v || e[50] !== i || e[51] !== w ? (k = !i && !w && /* @__PURE__ */ _("div", { className: v ? b.headerPlaceholderWithBanner : b.headerPlaceholder }), e[49] = v, e[50] = i, e[51] = w, e[52] = k) : k = e[52];
312
+ let ee;
313
+ return e[53] !== M || e[54] !== q || e[55] !== k ? (ee = /* @__PURE__ */ me(He, { children: [
314
+ M,
315
+ q,
316
+ k
317
+ ] }), e[53] = M, e[54] = q, e[55] = k, e[56] = ee) : ee = e[56], ee;
318
+ }, ve = (s) => {
319
+ const e = T.c(4), {
320
+ children: t,
321
+ className: n
322
+ } = s, {
323
+ bannerAreaRef: r
324
+ } = re(z);
325
+ let a;
326
+ return e[0] !== r || e[1] !== t || e[2] !== n ? (a = /* @__PURE__ */ _("div", { ref: r, className: n, children: t }), e[0] = r, e[1] = t, e[2] = n, e[3] = a) : a = e[3], a;
327
+ };
328
+ ve.displayName = "DSHeader.BannerArea";
329
+ const ge = (s) => {
330
+ const e = T.c(15), {
331
+ children: t,
332
+ className: n
333
+ } = s, {
334
+ variant: r,
335
+ isFixedMainNavigation: a,
336
+ isHeaderSticky: d,
337
+ isMobile: c,
338
+ isStickyMainNavigationVisible: l,
339
+ mainNavigationAreaRef: o
340
+ } = re(z);
341
+ let h;
342
+ e[0] !== n || e[1] !== a || e[2] !== d || e[3] !== c || e[4] !== l ? (h = H(b.mainNavigationArea, n, d ? {
343
+ [b.mainNavigationAreaFixed]: !c && !l,
344
+ [b.mainNavigationAreaFixedVisible]: !c && a
345
+ } : {}), e[0] = n, e[1] = a, e[2] = d, e[3] = c, e[4] = l, e[5] = h) : h = e[5];
346
+ const m = h, y = r === "full";
347
+ let p;
348
+ e[6] !== y ? (p = H(b.mainNavigationContent, {
349
+ [b.mainNavigationContentVariantFull]: y
350
+ }), e[6] = y, e[7] = p) : p = e[7];
351
+ const v = p;
352
+ let f;
353
+ e[8] !== t || e[9] !== v ? (f = /* @__PURE__ */ _("div", { className: v, children: t }), e[8] = t, e[9] = v, e[10] = f) : f = e[10];
354
+ let g;
355
+ return e[11] !== o || e[12] !== m || e[13] !== f ? (g = /* @__PURE__ */ _("div", { className: m, ref: o, children: f }), e[11] = o, e[12] = m, e[13] = f, e[14] = g) : g = e[14], g;
356
+ };
357
+ ge.displayName = "DSHeader.MainNavigationArea";
358
+ ne.BannerArea = ve;
359
+ ne.MainNavigationArea = ge;
360
+ ne.displayName = "DSHeader";
361
+ export {
362
+ _t as B,
363
+ z as D,
364
+ ut as H,
365
+ ne as a,
366
+ $ as b,
367
+ Ke as c,
368
+ _e as i,
369
+ Oe as v
370
+ };