@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,229 @@
1
+ "use client";
2
+ import { jsx as A } from "react/jsx-runtime";
3
+ import { d as W } from "./index.D-sRdssb.js";
4
+ import { c as $ } from "./index.DL9mof6u.js";
5
+ import * as x from "react";
6
+ import { useRef as H, useState as C, useEffect as P } from "react";
7
+ import { h as U } from "./has-window.ut_-aShB.js";
8
+ import { g as Z } from "./helpers.CexwVao7.js";
9
+ import '../assets/Icon.QeJ7TxZs.css';var j = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new WeakMap(), G = 0, F = void 0;
10
+ function J(t) {
11
+ return t ? (D.has(t) || (G += 1, D.set(t, G.toString())), D.get(t)) : "0";
12
+ }
13
+ function K(t) {
14
+ return Object.keys(t).sort().filter(
15
+ (s) => t[s] !== void 0
16
+ ).map((s) => `${s}_${s === "root" ? J(t.root) : t[s]}`).toString();
17
+ }
18
+ function Q(t) {
19
+ const s = K(t);
20
+ let e = j.get(s);
21
+ if (!e) {
22
+ const o = /* @__PURE__ */ new Map();
23
+ let c;
24
+ const i = new IntersectionObserver((n) => {
25
+ n.forEach((r) => {
26
+ var a;
27
+ const m = r.isIntersecting && c.some((d) => r.intersectionRatio >= d);
28
+ t.trackVisibility && typeof r.isVisible > "u" && (r.isVisible = m), (a = o.get(r.target)) == null || a.forEach((d) => {
29
+ d(m, r);
30
+ });
31
+ });
32
+ }, t);
33
+ c = i.thresholds || (Array.isArray(t.threshold) ? t.threshold : [t.threshold || 0]), e = {
34
+ id: s,
35
+ observer: i,
36
+ elements: o
37
+ }, j.set(s, e);
38
+ }
39
+ return e;
40
+ }
41
+ function Y(t, s, e = {}, o = F) {
42
+ if (typeof window.IntersectionObserver > "u" && o !== void 0) {
43
+ const a = t.getBoundingClientRect();
44
+ return s(o, {
45
+ isIntersecting: o,
46
+ target: t,
47
+ intersectionRatio: typeof e.threshold == "number" ? e.threshold : 0,
48
+ time: 0,
49
+ boundingClientRect: a,
50
+ intersectionRect: a,
51
+ rootBounds: a
52
+ }), () => {
53
+ };
54
+ }
55
+ const { id: c, observer: i, elements: n } = Q(e), r = n.get(t) || [];
56
+ return n.has(t) || n.set(t, r), r.push(s), i.observe(t), function() {
57
+ r.splice(r.indexOf(s), 1), r.length === 0 && (n.delete(t), i.unobserve(t)), n.size === 0 && (i.disconnect(), j.delete(c));
58
+ };
59
+ }
60
+ function ss({
61
+ threshold: t,
62
+ delay: s,
63
+ trackVisibility: e,
64
+ rootMargin: o,
65
+ root: c,
66
+ triggerOnce: i,
67
+ skip: n,
68
+ initialInView: r,
69
+ fallbackInView: a,
70
+ onChange: m
71
+ } = {}) {
72
+ var d;
73
+ const [h, b] = x.useState(null), u = x.useRef(m), [f, w] = x.useState({
74
+ inView: !!r,
75
+ entry: void 0
76
+ });
77
+ u.current = m, x.useEffect(
78
+ () => {
79
+ if (n || !h) return;
80
+ let p;
81
+ return p = Y(
82
+ h,
83
+ (S, v) => {
84
+ w({
85
+ inView: S,
86
+ entry: v
87
+ }), u.current && u.current(S, v), v.isIntersecting && i && p && (p(), p = void 0);
88
+ },
89
+ {
90
+ root: c,
91
+ rootMargin: o,
92
+ threshold: t,
93
+ // @ts-ignore
94
+ trackVisibility: e,
95
+ // @ts-ignore
96
+ delay: s
97
+ },
98
+ a
99
+ ), () => {
100
+ p && p();
101
+ };
102
+ },
103
+ // We break the rule here, because we aren't including the actual `threshold` variable
104
+ // eslint-disable-next-line react-hooks/exhaustive-deps
105
+ [
106
+ // If the threshold is an array, convert it to a string, so it won't change between renders.
107
+ Array.isArray(t) ? t.toString() : t,
108
+ h,
109
+ c,
110
+ o,
111
+ i,
112
+ n,
113
+ e,
114
+ a,
115
+ s
116
+ ]
117
+ );
118
+ const l = (d = f.entry) == null ? void 0 : d.target, k = x.useRef(void 0);
119
+ !h && l && !i && !n && k.current !== l && (k.current = l, w({
120
+ inView: !!r,
121
+ entry: void 0
122
+ }));
123
+ const g = [b, f.inView, f.entry];
124
+ return g.ref = g[0], g.inView = g[1], g.entry = g[2], g;
125
+ }
126
+ const ts = "ds-icon_image_clh5i_1", is = "ds-icon_image--theme-dark_clh5i_10", es = "ds-icon_image--size-x-large_clh5i_13", os = "ds-icon_image--size-medium_clh5i_19", rs = "ds-icon_image--size-small_clh5i_25", ns = "ds-icon_image--size-x-small_clh5i_31", y = {
127
+ image: ts,
128
+ imageThemeDark: is,
129
+ imageSizeXLarge: es,
130
+ imageSizeMedium: os,
131
+ imageSizeSmall: rs,
132
+ imageSizeXSmall: ns
133
+ }, as = (t, s, e) => {
134
+ const o = t[s];
135
+ return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((c, i) => {
136
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(i.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + s + (s.split("/").length !== e ? ". Note that variables only represent file names one level deep." : ""))));
137
+ });
138
+ }, us = ["x-large", "large", "medium", "small", "x-small"], cs = (t) => {
139
+ const s = H(void 0), [e, o] = C(!1), [c, i] = C(!0);
140
+ return P(() => {
141
+ if (!U)
142
+ return;
143
+ let n = !0;
144
+ return e && (i(!0), (async () => {
145
+ try {
146
+ s.current = await as(/* @__PURE__ */ Object.assign({ "../../../../icons/dist/assets/360.svg": () => import("./360.CfjUtgxq.js"), "../../../../icons/dist/assets/academic-cap.svg": () => import("./academic-cap.OBigTQQS.js"), "../../../../icons/dist/assets/accessibility.svg": () => import("./accessibility.B57oX4yV.js"), "../../../../icons/dist/assets/alarm-clock.svg": () => import("./alarm-clock.CpK-AEZG.js"), "../../../../icons/dist/assets/arrow-clockwise.svg": () => import("./arrow-clockwise.C4iOgjOc.js"), "../../../../icons/dist/assets/arrow-counterclockwise.svg": () => import("./arrow-counterclockwise.CgQAuBUe.js"), "../../../../icons/dist/assets/arrow-down-line.svg": () => import("./arrow-down-line.RDD2pRZY.js"), "../../../../icons/dist/assets/arrow-down.svg": () => import("./arrow-down.XpokLh98.js"), "../../../../icons/dist/assets/arrow-edge.svg": () => import("./arrow-edge.CPA93M81.js"), "../../../../icons/dist/assets/arrow-left.svg": () => import("./arrow-left.C8NG5I2X.js"), "../../../../icons/dist/assets/arrow-out.svg": () => import("./arrow-out.CsHHHYN9.js"), "../../../../icons/dist/assets/arrow-outline-left.svg": () => import("./arrow-outline-left.Bhw_LzfV.js"), "../../../../icons/dist/assets/arrow-right.svg": () => import("./arrow-right.HNwAz18h.js"), "../../../../icons/dist/assets/arrow-up-arrow-down.svg": () => import("./arrow-up-arrow-down.BVyuVJP5.js"), "../../../../icons/dist/assets/arrow-up.svg": () => import("./arrow-up.Ca1GnLaY.js"), "../../../../icons/dist/assets/at.svg": () => import("./at.BNfdp4M0.js"), "../../../../icons/dist/assets/barcode-scanner.svg": () => import("./barcode-scanner.D0olxB_m.js"), "../../../../icons/dist/assets/battery-charge-0.svg": () => import("./battery-charge-0.DxlgEAto.js"), "../../../../icons/dist/assets/battery-charge-100.svg": () => import("./battery-charge-100.D0Cax7dU.js"), "../../../../icons/dist/assets/battery.svg": () => import("./battery.6Idoickg.js"), "../../../../icons/dist/assets/bell.svg": () => import("./bell.DbPxCAUM.js"), "../../../../icons/dist/assets/bin-open.svg": () => import("./bin-open.DsjIBW00.js"), "../../../../icons/dist/assets/bin.svg": () => import("./bin.ktpYUJmK.js"), "../../../../icons/dist/assets/bluetooth-off.svg": () => import("./bluetooth-off.BzZCh4Q8.js"), "../../../../icons/dist/assets/bluetooth.svg": () => import("./bluetooth.dW5tTwby.js"), "../../../../icons/dist/assets/bookmark.svg": () => import("./bookmark.B7Mbr-d6.js"), "../../../../icons/dist/assets/burger.svg": () => import("./burger.DLP81BXa.js"), "../../../../icons/dist/assets/calendar.svg": () => import("./calendar.Cig7yG7m.js"), "../../../../icons/dist/assets/camera.svg": () => import("./camera.BoCB0Emp.js"), "../../../../icons/dist/assets/caret-down.svg": () => import("./caret-down.CupuwAF6.js"), "../../../../icons/dist/assets/caret-right.svg": () => import("./caret-right.DKtu4PQe.js"), "../../../../icons/dist/assets/cart-check.svg": () => import("./cart-check.CYH0vTB8.js"), "../../../../icons/dist/assets/cart-plus.svg": () => import("./cart-plus.DzXXFMZj.js"), "../../../../icons/dist/assets/cart.svg": () => import("./cart.CoEwMABr.js"), "../../../../icons/dist/assets/catalog.svg": () => import("./catalog.CwV-J6Kb.js"), "../../../../icons/dist/assets/certificate.svg": () => import("./certificate.Crs4RohK.js"), "../../../../icons/dist/assets/chain-link.svg": () => import("./chain-link.BMV2WV6k.js"), "../../../../icons/dist/assets/chainsaw.svg": () => import("./chainsaw.CI1EYF7a.js"), "../../../../icons/dist/assets/check.svg": () => import("./check.CuZKWgYj.js"), "../../../../icons/dist/assets/chevron-down.svg": () => import("./chevron-down.5UkGOwK_.js"), "../../../../icons/dist/assets/chevron-left.svg": () => import("./chevron-left.DRFQ-efY.js"), "../../../../icons/dist/assets/chevron-line-left.svg": () => import("./chevron-line-left.SQvDJQ1t.js"), "../../../../icons/dist/assets/chevron-line-right.svg": () => import("./chevron-line-right.CYQ3b2cQ.js"), "../../../../icons/dist/assets/chevron-right.svg": () => import("./chevron-right.B_Ew9QUt.js"), "../../../../icons/dist/assets/chevron-up.svg": () => import("./chevron-up.DqETUWqG.js"), "../../../../icons/dist/assets/circle-check-colored.svg": () => import("./circle-check-colored.qP2s3vjI.js"), "../../../../icons/dist/assets/circle-check-inverted.svg": () => import("./circle-check-inverted.Cc2cUmWT.js"), "../../../../icons/dist/assets/circle-info-colored.svg": () => import("./circle-info-colored.D2pp54gf.js"), "../../../../icons/dist/assets/circle-info-inverted.svg": () => import("./circle-info-inverted.D8Z0vTmu.js"), "../../../../icons/dist/assets/circle-pause.svg": () => import("./circle-pause.DaRfXOff.js"), "../../../../icons/dist/assets/circle-stroke.svg": () => import("./circle-stroke.CWu_o3Gx.js"), "../../../../icons/dist/assets/circle.svg": () => import("./circle.471EUzv6.js"), "../../../../icons/dist/assets/clock.svg": () => import("./clock.Bw5ICIVH.js"), "../../../../icons/dist/assets/coffee-cup.svg": () => import("./coffee-cup.DIijzKx_.js"), "../../../../icons/dist/assets/collapse.svg": () => import("./collapse.Dvv3mgkv.js"), "../../../../icons/dist/assets/compare.svg": () => import("./compare.BgktBbYD.js"), "../../../../icons/dist/assets/connected-box-mobile.svg": () => import("./connected-box-mobile.DboMCVxp.js"), "../../../../icons/dist/assets/connected-box-stationary.svg": () => import("./connected-box-stationary.CAPCPQ1d.js"), "../../../../icons/dist/assets/connected-box.svg": () => import("./connected-box.DVqJw-ws.js"), "../../../../icons/dist/assets/cross.svg": () => import("./cross.rEw3TuHs.js"), "../../../../icons/dist/assets/diamond-exclamationmark-colored.svg": () => import("./diamond-exclamationmark-colored.CzYiaTZ0.js"), "../../../../icons/dist/assets/diamond-exclamationmark-inverted.svg": () => import("./diamond-exclamationmark-inverted.DzAIb8Nt.js"), "../../../../icons/dist/assets/diamond.svg": () => import("./diamond.CXZHFpPC.js"), "../../../../icons/dist/assets/diskette.svg": () => import("./diskette._0C2VZ9v.js"), "../../../../icons/dist/assets/distance.svg": () => import("./distance.FA6pTjcW.js"), "../../../../icons/dist/assets/document-magnifying-glass.svg": () => import("./document-magnifying-glass.DkvpNz-D.js"), "../../../../icons/dist/assets/document-s.svg": () => import("./document-s.CoOp0kBK.js"), "../../../../icons/dist/assets/dots-connected.svg": () => import("./dots-connected.ZMYjHeNS.js"), "../../../../icons/dist/assets/download-complete.svg": () => import("./download-complete.CZVpzrvY.js"), "../../../../icons/dist/assets/envelope-open.svg": () => import("./envelope-open.CA4cE5lk.js"), "../../../../icons/dist/assets/envelope.svg": () => import("./envelope.re-RxZVw.js"), "../../../../icons/dist/assets/exclamationmark.svg": () => import("./exclamationmark.DEbIGqGC.js"), "../../../../icons/dist/assets/exit.svg": () => import("./exit.Cgb8AB-k.js"), "../../../../icons/dist/assets/eye-closed.svg": () => import("./eye-closed.CvqozUwK.js"), "../../../../icons/dist/assets/eye.svg": () => import("./eye.CRQMKZs4.js"), "../../../../icons/dist/assets/facebook.svg": () => import("./facebook.CVcxa0rV.js"), "../../../../icons/dist/assets/feather.svg": () => import("./feather.l1E4nFBx.js"), "../../../../icons/dist/assets/file-type-doc.svg": () => import("./file-type-doc.B_RSSYbu.js"), "../../../../icons/dist/assets/file-type-image.svg": () => import("./file-type-image.Cg2NRd7y.js"), "../../../../icons/dist/assets/file-type-pdf.svg": () => import("./file-type-pdf.Dm94xL2i.js"), "../../../../icons/dist/assets/file-type-video.svg": () => import("./file-type-video.CFwfiP-D.js"), "../../../../icons/dist/assets/file-type-zip.svg": () => import("./file-type-zip.SNixmKhQ.js"), "../../../../icons/dist/assets/file.svg": () => import("./file.DLgRXiem.js"), "../../../../icons/dist/assets/filter.svg": () => import("./filter.DrPSKpaG.js"), "../../../../icons/dist/assets/finger-double-arrow.svg": () => import("./finger-double-arrow.DDUZoPh8.js"), "../../../../icons/dist/assets/flash.svg": () => import("./flash.CgJJ1bUx.js"), "../../../../icons/dist/assets/fullscreen.svg": () => import("./fullscreen.Be2rBj1i.js"), "../../../../icons/dist/assets/gear.svg": () => import("./gear.DEltGVSA.js"), "../../../../icons/dist/assets/globe.svg": () => import("./globe.DG6uw6fi.js"), "../../../../icons/dist/assets/grid.svg": () => import("./grid.DH1impeF.js"), "../../../../icons/dist/assets/guidance.svg": () => import("./guidance.BBYB3JpW.js"), "../../../../icons/dist/assets/haircross.svg": () => import("./haircross.D-whkit9.js"), "../../../../icons/dist/assets/hanger.svg": () => import("./hanger.Bo8qtNo5.js"), "../../../../icons/dist/assets/headphones.svg": () => import("./headphones.DjWXOuJJ.js"), "../../../../icons/dist/assets/heart.svg": () => import("./heart.D-BnHMb-.js"), "../../../../icons/dist/assets/hexagon-arrow-clockwise.svg": () => import("./hexagon-arrow-clockwise.D0eeDQQx.js"), "../../../../icons/dist/assets/horizontal-ellipsis.svg": () => import("./horizontal-ellipsis.ChdN6RnG.js"), "../../../../icons/dist/assets/house.svg": () => import("./house.BohpDQ3q.js"), "../../../../icons/dist/assets/imow.svg": () => import("./imow.Dh1oMqcW.js"), "../../../../icons/dist/assets/info.svg": () => import("./info.BZVg9FLA.js"), "../../../../icons/dist/assets/instagram.svg": () => import("./instagram.CIlKb7xj.js"), "../../../../icons/dist/assets/leave-fullscreen.svg": () => import("./leave-fullscreen.BC5iwDur.js"), "../../../../icons/dist/assets/lightbulb.svg": () => import("./lightbulb.DQ7TiRsr.js"), "../../../../icons/dist/assets/linkedin.svg": () => import("./linkedin.br5zvxco.js"), "../../../../icons/dist/assets/list-three-rows.svg": () => import("./list-three-rows.Cso4ybs8.js"), "../../../../icons/dist/assets/list-two-rows.svg": () => import("./list-two-rows.DOsZEv0-.js"), "../../../../icons/dist/assets/loading-spinner.svg": () => import("./loading-spinner.BukfMaU6.js"), "../../../../icons/dist/assets/lock.svg": () => import("./lock.Dw_GOpTn.js"), "../../../../icons/dist/assets/magnifying-glass-minus.svg": () => import("./magnifying-glass-minus.BYztw2P1.js"), "../../../../icons/dist/assets/magnifying-glass-plus.svg": () => import("./magnifying-glass-plus.BTgviDVh.js"), "../../../../icons/dist/assets/magnifying-glass.svg": () => import("./magnifying-glass.C8DfRaIO.js"), "../../../../icons/dist/assets/map.svg": () => import("./map.DNl7PF61.js"), "../../../../icons/dist/assets/minus.svg": () => import("./minus.BkhCuIH4.js"), "../../../../icons/dist/assets/mobile.svg": () => import("./mobile.C1Kj9VnC.js"), "../../../../icons/dist/assets/moon.svg": () => import("./moon.5yILPYXs.js"), "../../../../icons/dist/assets/muscle.svg": () => import("./muscle.DbNjWasV.js"), "../../../../icons/dist/assets/nine-squares.svg": () => import("./nine-squares.DVsNAOzz.js"), "../../../../icons/dist/assets/note-check.svg": () => import("./note-check.CM_kmt0M.js"), "../../../../icons/dist/assets/note-plus.svg": () => import("./note-plus.Bkn78EyA.js"), "../../../../icons/dist/assets/note.svg": () => import("./note.CE0ACLn8.js"), "../../../../icons/dist/assets/number-input.svg": () => import("./number-input.BLhoh5mh.js"), "../../../../icons/dist/assets/paperclip.svg": () => import("./paperclip.BMerX4rj.js"), "../../../../icons/dist/assets/parcel.svg": () => import("./parcel.Ve9GL_EG.js"), "../../../../icons/dist/assets/pause.svg": () => import("./pause.B91Ejn-O.js"), "../../../../icons/dist/assets/pen.svg": () => import("./pen.CvKw2PvE.js"), "../../../../icons/dist/assets/percent.svg": () => import("./percent.BlB6rG-B.js"), "../../../../icons/dist/assets/petrol.svg": () => import("./petrol.BGWwCsTw.js"), "../../../../icons/dist/assets/phone.svg": () => import("./phone.DzdXfmNC.js"), "../../../../icons/dist/assets/pin-s.svg": () => import("./pin-s.DXgYuN9C.js"), "../../../../icons/dist/assets/pin.svg": () => import("./pin.DZfZr4El.js"), "../../../../icons/dist/assets/pinterest.svg": () => import("./pinterest.sUPAub_q.js"), "../../../../icons/dist/assets/placeholder.svg": () => import("./placeholder.Dbb0hT5R.js"), "../../../../icons/dist/assets/play.svg": () => import("./play.BDiY2JrT.js"), "../../../../icons/dist/assets/plug.svg": () => import("./plug.DZozve4C.js"), "../../../../icons/dist/assets/plus.svg": () => import("./plus.zdu17kAe.js"), "../../../../icons/dist/assets/printer.svg": () => import("./printer.CaFaWfeS.js"), "../../../../icons/dist/assets/prohibition-sign.svg": () => import("./prohibition-sign.DUFn0QiV.js"), "../../../../icons/dist/assets/questionmark.svg": () => import("./questionmark.QyDxanQy.js"), "../../../../icons/dist/assets/security.svg": () => import("./security.DkLw5ym4.js"), "../../../../icons/dist/assets/share.svg": () => import("./share.C3wwEl8n.js"), "../../../../icons/dist/assets/shirt.svg": () => import("./shirt.BC8W-yCI.js"), "../../../../icons/dist/assets/shop.svg": () => import("./shop.DdPV35mK.js"), "../../../../icons/dist/assets/sound-off.svg": () => import("./sound-off.D4kGcehG.js"), "../../../../icons/dist/assets/sound-on.svg": () => import("./sound-on.Cynkb0_t.js"), "../../../../icons/dist/assets/speechbubble.svg": () => import("./speechbubble.87vuoKUp.js"), "../../../../icons/dist/assets/speechbubbles.svg": () => import("./speechbubbles.CSFhpNJn.js"), "../../../../icons/dist/assets/square.svg": () => import("./square.D6PgEi_r.js"), "../../../../icons/dist/assets/star-half.svg": () => import("./star-half.DZTtM5Bw.js"), "../../../../icons/dist/assets/star.svg": () => import("./star.BkjednvI.js"), "../../../../icons/dist/assets/sun.svg": () => import("./sun.CY6ttzTL.js"), "../../../../icons/dist/assets/tag.svg": () => import("./tag.yO7uMsHj.js"), "../../../../icons/dist/assets/thumbs-down.svg": () => import("./thumbs-down.DeBD6wnK.js"), "../../../../icons/dist/assets/thumbs-up.svg": () => import("./thumbs-up.D-44gexH.js"), "../../../../icons/dist/assets/tiktok.svg": () => import("./tiktok.BWJTDGYm.js"), "../../../../icons/dist/assets/triangle-exclamationmark-colored.svg": () => import("./triangle-exclamationmark-colored.e93zvQ6Q.js"), "../../../../icons/dist/assets/triangle-exclamationmark-inverted.svg": () => import("./triangle-exclamationmark-inverted.BiGoK7TV.js"), "../../../../icons/dist/assets/triangle.svg": () => import("./triangle.ibv6NDnt.js"), "../../../../icons/dist/assets/truck.svg": () => import("./truck.xIk5wW6T.js"), "../../../../icons/dist/assets/twitch.svg": () => import("./twitch.C893cAK8.js"), "../../../../icons/dist/assets/two-people-screen.svg": () => import("./two-people-screen.BBLouaW4.js"), "../../../../icons/dist/assets/two-sheets.svg": () => import("./two-sheets.DWFmuL7N.js"), "../../../../icons/dist/assets/upload.svg": () => import("./upload.BogDfonx.js"), "../../../../icons/dist/assets/user.svg": () => import("./user.BMARueuy.js"), "../../../../icons/dist/assets/variants.svg": () => import("./variants.-R3_RCW8.js"), "../../../../icons/dist/assets/vertical-ellipsis.svg": () => import("./vertical-ellipsis.Bc9eBsDF.js"), "../../../../icons/dist/assets/wc.svg": () => import("./wc.gmKE1r5l.js"), "../../../../icons/dist/assets/weight.svg": () => import("./weight.DUPu2UT0.js"), "../../../../icons/dist/assets/whatsapp.svg": () => import("./whatsapp.CPpu-7Nn.js"), "../../../../icons/dist/assets/wifi-1bar.svg": () => import("./wifi-1bar.BcEP-r8w.js"), "../../../../icons/dist/assets/wifi-2bars.svg": () => import("./wifi-2bars.jDOd4Q3q.js"), "../../../../icons/dist/assets/wifi-off.svg": () => import("./wifi-off.D9xPqVWn.js"), "../../../../icons/dist/assets/wifi.svg": () => import("./wifi.CuQykF6X.js"), "../../../../icons/dist/assets/wind-rose.svg": () => import("./wind-rose.C-XcKdy-.js"), "../../../../icons/dist/assets/wrench.svg": () => import("./wrench.DMFV2S9u.js"), "../../../../icons/dist/assets/x.svg": () => import("./x.BqbpXd7O.js"), "../../../../icons/dist/assets/xing.svg": () => import("./xing.CiKYLbPq.js"), "../../../../icons/dist/assets/youtube.svg": () => import("./youtube.DrImaRSP.js") }), `../../../../icons/dist/assets/${t}.svg`, 8);
147
+ } catch (a) {
148
+ console.error(Z("DSIcon", a instanceof Error ? a.message : String(a)));
149
+ } finally {
150
+ n && i(!1);
151
+ }
152
+ })()), () => {
153
+ n = !1;
154
+ };
155
+ }, [t, e]), {
156
+ isLoading: c,
157
+ SVGIcon: s.current?.default,
158
+ setShouldLoad: o
159
+ };
160
+ }, fs = (t) => {
161
+ const s = W.c(38);
162
+ let e, o, c, i, n, r, a;
163
+ s[0] !== t ? ({
164
+ aria: e,
165
+ className: o,
166
+ name: n,
167
+ size: r,
168
+ source: i,
169
+ theme: a,
170
+ ...c
171
+ } = t, s[0] = t, s[1] = e, s[2] = o, s[3] = c, s[4] = i, s[5] = n, s[6] = r, s[7] = a) : (e = s[1], o = s[2], c = s[3], i = s[4], n = s[5], r = s[6], a = s[7]);
172
+ const m = n === void 0 ? "placeholder" : n, d = r === void 0 ? "large" : r, h = a === void 0 ? "light" : a, {
173
+ SVGIcon: b,
174
+ isLoading: u,
175
+ setShouldLoad: f
176
+ } = cs(m), [, w] = C(m);
177
+ let l;
178
+ s[8] === Symbol.for("react.memo_cache_sentinel") ? (l = {
179
+ "x-large": 24,
180
+ large: 16,
181
+ medium: 12,
182
+ small: 10,
183
+ "x-small": 8
184
+ }, s[8] = l) : l = s[8];
185
+ const k = l;
186
+ let g;
187
+ s[9] !== m || s[10] !== w ? (g = () => {
188
+ w(m);
189
+ }, s[9] = m, s[10] = w, s[11] = g) : g = s[11];
190
+ let p;
191
+ s[12] !== m ? (p = [m], s[12] = m, s[13] = p) : p = s[13], P(g, p);
192
+ const S = !!i;
193
+ let v;
194
+ s[14] !== f ? (v = (q) => {
195
+ f(q);
196
+ }, s[14] = f, s[15] = v) : v = s[15];
197
+ let z;
198
+ s[16] !== S || s[17] !== v ? (z = {
199
+ rootMargin: "200px 0px",
200
+ triggerOnce: !0,
201
+ fallbackInView: !0,
202
+ skip: S,
203
+ onChange: v
204
+ }, s[16] = S, s[17] = v, s[18] = z) : z = s[18];
205
+ const {
206
+ ref: E
207
+ } = ss(z);
208
+ let I;
209
+ s[19] !== i ? (I = (q) => (B) => {
210
+ i && B && (B.src = q);
211
+ }, s[19] = i, s[20] = I) : I = s[20];
212
+ const L = I, N = h === "dark" && !i && !m.includes("-colored"), T = d === "x-large", V = d === "medium", O = d === "small", X = d === "x-small";
213
+ let R;
214
+ s[21] !== o || s[22] !== N || s[23] !== T || s[24] !== V || s[25] !== O || s[26] !== X ? (R = $(y.image, o, {
215
+ [y.imageThemeDark]: N,
216
+ [y.imageSizeXLarge]: T,
217
+ [y.imageSizeMedium]: V,
218
+ [y.imageSizeSmall]: O,
219
+ [y.imageSizeXSmall]: X
220
+ }), s[21] = o, s[22] = N, s[23] = T, s[24] = V, s[25] = O, s[26] = X, s[27] = R) : R = s[27];
221
+ const _ = R;
222
+ let M;
223
+ return s[28] !== b || s[29] !== L || s[30] !== e || s[31] !== _ || s[32] !== u || s[33] !== E || s[34] !== c || s[35] !== d || s[36] !== i ? (M = i ? /* @__PURE__ */ A("img", { className: _, ref: L(i), width: k[d], height: k[d], loading: "lazy", alt: e?.["aria-label"] || "", ...c }) : !u && b ? /* @__PURE__ */ A(b, { className: _, title: e?.["aria-label"] || "", role: e?.["aria-label"] ? "img" : void 0, ...c }) : /* @__PURE__ */ A("div", { className: _, ref: E }), s[28] = b, s[29] = L, s[30] = e, s[31] = _, s[32] = u, s[33] = E, s[34] = c, s[35] = d, s[36] = i, s[37] = M) : M = s[37], M;
224
+ };
225
+ export {
226
+ fs as D,
227
+ us as I,
228
+ cs as u
229
+ };
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { g as t } from "./helpers.BbWkXTr3.js";
3
- import "./index.CgTHIF3K.js";
2
+ import { g as t } from "./helpers.CexwVao7.js";
4
3
  import "react";
5
- const i = 8, d = 5, w = ["medium", "small"], c = ["color", "date", "datetime-local", "email", "month", "number", "range", "tel", "text", "time", "url"], p = ["week", "file", "hidden", "button", "checkbox", "password", "radio", "search", "reset", "submit", "image", "datetime"], I = ({
4
+ import "./index.D-sRdssb.js";
5
+ const i = 8, r = 5, w = ["medium", "small"], m = ["color", "date", "datetime-local", "email", "month", "number", "range", "tel", "text", "time", "url"], u = ["week", "file", "hidden", "button", "checkbox", "password", "radio", "search", "reset", "submit", "image", "datetime"], b = ({
6
6
  id: e,
7
7
  label: a,
8
8
  prefix: o,
9
9
  suffix: s,
10
- leadingIconName: r,
11
- leadingIconSource: m,
10
+ leadingIconName: d,
11
+ leadingIconSource: c,
12
12
  actionButtonProps: n
13
13
  }) => {
14
14
  if (!e)
@@ -17,16 +17,16 @@ const i = 8, d = 5, w = ["medium", "small"], c = ["color", "date", "datetime-loc
17
17
  throw new Error(t("DSInput", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInput component. If you don't want to display a label, set hideLabel={true}.`));
18
18
  if (n && !n.label)
19
19
  throw new Error(t("DSInput", "The action button needs to have a label for a11y reasons. Please add a label to the actionButtonProps."));
20
- if (n && !(n != null && n.iconName) && !(n != null && n.iconSource))
20
+ if (n && !n?.iconName && !n?.iconSource)
21
21
  throw new Error(t("DSInput", "The action button needs to have an iconName or iconSource. Please add an iconName or iconSource to the actionButtonProps."));
22
- o && o.length > i && console.warn(t("DSInput", `Prefix length must not exceed ${i} characters.`)), s && s.length > d && console.warn(t("DSInput", `Suffix length must not exceed ${d} characters.`)), o && (r || m) && console.warn(t("DSInput", "Prefix and a leading Icon cannot be used at the same time.")), s && (n != null && n.iconName || n != null && n.iconSource) && console.warn(t("DSInput", "Suffix and an action button cannot be used at the same time."));
23
- }, b = (e, a) => {
24
- if (!c.includes(e) && !p.includes(e))
22
+ o && o.length > i && console.warn(t("DSInput", `Prefix length must not exceed ${i} characters.`)), s && s.length > r && console.warn(t("DSInput", `Suffix length must not exceed ${r} characters.`)), o && (d || c) && console.warn(t("DSInput", "Prefix and a leading Icon cannot be used at the same time.")), s && (n?.iconName || n?.iconSource) && console.warn(t("DSInput", "Suffix and an action button cannot be used at the same time."));
23
+ }, I = (e, a) => {
24
+ if (!m.includes(e) && !u.includes(e))
25
25
  throw new Error(t("DSInput", `The type "${e}" is not supported by the DSInput component.`));
26
26
  if (a === "off" && e === "number")
27
27
  return;
28
28
  const o = {
29
- number: "Type number is not recommended. Use type text with inputmode numeric/decimal or DSInputStepper component instead.",
29
+ number: "Type number is not recommended. Use type text with inputmode numeric/decimal or DSInputNumber component instead.",
30
30
  button: "Type button is not recommended. Use DSButton component instead.",
31
31
  file: "Type file is not recommended. Use DSInputFile component instead.",
32
32
  checkbox: "Type checkbox is not recommended. Use DSCheckbox component instead.",
@@ -41,17 +41,17 @@ const i = 8, d = 5, w = ["medium", "small"], c = ["color", "date", "datetime-loc
41
41
  hidden: 'Type hidden is not supported by DSInput component. Use a default <input type="hidden" /> element instead.'
42
42
  };
43
43
  o[e] && console.warn(t("DSInput", o[e]));
44
- }, u = () => "showPicker" in HTMLInputElement.prototype && !!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i), T = (e, a) => u() && (e || a), D = (e) => e === "date" || e === "datetime-local" || e === "month", y = (e) => e === "time";
44
+ }, p = () => "showPicker" in HTMLInputElement.prototype && !!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i), T = (e, a) => p() && (e || a), D = (e) => e === "date" || e === "datetime-local" || e === "month", y = (e) => e === "time";
45
45
  export {
46
46
  w as I,
47
47
  i as M,
48
- c as S,
49
- p as U,
50
- d as a,
51
- b,
48
+ m as S,
49
+ u as U,
50
+ r as a,
51
+ I as b,
52
52
  y as c,
53
- u as h,
53
+ p as h,
54
54
  D as i,
55
55
  T as s,
56
- I as v
56
+ b as v
57
57
  };
@@ -0,0 +1,218 @@
1
+ "use client";
2
+ import { jsxs as h, jsx as a, Fragment as pe } from "react/jsx-runtime";
3
+ import { c as b } from "./index.DL9mof6u.js";
4
+ import { forwardRef as ge, useState as U, useRef as be, useCallback as me } from "react";
5
+ import { t as De } from "./translate.nuU7uChI.js";
6
+ import { u as Z } from "./useBreakpoint.BzR_yaIv.js";
7
+ import "./index.D-sRdssb.js";
8
+ import { g as _e } from "./AriaLiveRegions.utils.CybNIBSa.js";
9
+ import { Asterisk as he } from "../asterisk.B2ih8VwF.js";
10
+ import { D as Ie } from "./Button.DCZgBNmA.js";
11
+ import { FileList as ve } from "../filelist.DgVuWpR3.js";
12
+ import { D as Se } from "./Icon.CDLyB7Pv.js";
13
+ import { D as we } from "./SystemFeedback.CjlARKki.js";
14
+ import { g as I } from "./helpers.CexwVao7.js";
15
+ import '../assets/InputFile.BnIvK65P.css';const Fe = "ds-input-file_root_1snnq_1", qe = "ds-input-file_hint_1snnq_1", ze = "ds-input-file_label_1snnq_1", Ne = "ds-input-file_browse-button--is-dragging-filled_1snnq_4", Le = "ds-input-file_browse-button--is-dragging_1snnq_4", ke = "ds-input-file_label--hidden_1snnq_35", ye = "ds-input-file_label--disabled_1snnq_48", Be = "ds-input-file_feedback_1snnq_68", Te = "ds-input-file_dropzone_1snnq_72", Ae = "ds-input-file_dropzone--disabled_1snnq_78", $e = "ds-input-file_dropzone--invalid_1snnq_92", Ce = "ds-input-file_dropzone--is-dragging_1snnq_95", Re = "ds-input-file_hint-drop-zone_1snnq_98", Ee = "ds-input-file_upload-icon_1snnq_101", Pe = "ds-input-file_browse-button-dropzone--is-dragging_1snnq_104", xe = "ds-input-file_instructions_1snnq_107", He = "ds-input-file_input_1snnq_144", Oe = "ds-input-file_required-sr-info_1snnq_148", n = {
16
+ root: Fe,
17
+ hint: qe,
18
+ label: ze,
19
+ browseButtonIsDraggingFilled: Ne,
20
+ browseButtonIsDragging: Le,
21
+ labelHidden: ke,
22
+ labelDisabled: ye,
23
+ feedback: Be,
24
+ dropzone: Te,
25
+ dropzoneDisabled: Ae,
26
+ dropzoneInvalid: $e,
27
+ dropzoneIsDragging: Ce,
28
+ hintDropZone: Re,
29
+ uploadIcon: Ee,
30
+ browseButtonDropzoneIsDragging: Pe,
31
+ instructions: xe,
32
+ input: He,
33
+ requiredSrInfo: Oe
34
+ }, We = {
35
+ dragAndDropInstructions: "Drag and drop files here or",
36
+ feedbackFileSize: "File too large. Maximum file size is",
37
+ feedbackFileType: "File type not allowed",
38
+ // {0} is the file name
39
+ fileListRemoveSelectionButtonLabel: "Remove {0} from selected files",
40
+ fileListPreviewAltText: "Preview of",
41
+ filesSelectedHint: "The following files are selected",
42
+ required: "required"
43
+ }, Ve = {
44
+ dragAndDropInstructions: "Dateien hier hin ziehen oder",
45
+ feedbackFileSize: "Datei zu groß. Maximale Dateigröße ist",
46
+ feedbackFileType: "Dateityp nicht zugelassen",
47
+ // {0} is the file name
48
+ fileListRemoveSelectionButtonLabel: "Datei {0} aus der Auswahl entfernen",
49
+ fileListPreviewAltText: "Vorschau von",
50
+ filesSelectedHint: "Die folgenden Dateien sind ausgewählt",
51
+ required: "erforderlich"
52
+ }, je = {
53
+ en: We,
54
+ de: Ve
55
+ }, Me = (s, d) => {
56
+ const t = d.split(",").map((l) => l.trim().toLowerCase()).filter(Boolean), v = s.name.toLowerCase(), i = s.type.toLowerCase();
57
+ return t.some((l) => {
58
+ if (l.startsWith("."))
59
+ return v.endsWith(l);
60
+ if (l.endsWith("/*")) {
61
+ const [S] = i.split("/");
62
+ return S === l.slice(0, -2);
63
+ }
64
+ return i === l;
65
+ });
66
+ }, Ue = ({
67
+ id: s,
68
+ label: d,
69
+ inputFileButtonProps: t
70
+ }) => {
71
+ if (!s)
72
+ throw new Error(I("DSInputFile", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputFile component.'));
73
+ if (!d)
74
+ throw new Error(I("DSInputFile", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputFile component. If you don't want to display a label, set hideLabel={true}.`));
75
+ if (t && t.label?.trim() === "")
76
+ throw new Error(I("DSInputFile", "The input file button needs to have a label for a11y reasons. Please add a label to the inputFileButtonProps."));
77
+ if (t && t.variant && t.variant !== "outline" && t.variant !== "filled")
78
+ throw new Error(I("DSInputFile", "The inputFileButtonProps variant value can only be 'outline' for DSInputFile components inside forms or 'filled' for standalone DSInputFile components."));
79
+ }, Ze = ge(({
80
+ id: s,
81
+ label: d,
82
+ accept: t,
83
+ className: v,
84
+ disabled: i = !1,
85
+ fileListItemRemoveButtonProps: l,
86
+ hideLabel: S = !1,
87
+ hint: p,
88
+ inputFileButtonProps: y,
89
+ invalid: m = !1,
90
+ isHintOutsideDropzone: G = {
91
+ base: !0,
92
+ m: !1
93
+ },
94
+ lang: B = "en",
95
+ maxSizeInMb: w = 7,
96
+ multiple: g = !1,
97
+ required: T = !1,
98
+ showFileList: J = !0,
99
+ showDropzone: c = !1,
100
+ systemFeedback: F,
101
+ translations: K,
102
+ onFilesSelect: A,
103
+ ...Q
104
+ }, D) => {
105
+ const u = De(K || je[B]);
106
+ process.env.NODE_ENV !== "production" && Ue({
107
+ id: s,
108
+ label: d,
109
+ inputFileButtonProps: y
110
+ });
111
+ const {
112
+ label: X = B === "en" ? `Choose File${g ? "s" : ""}` : `Datei${g ? "en" : ""} auswählen`,
113
+ variant: q = "outline",
114
+ ...Y
115
+ } = y || {}, [$, C] = U([]), _ = be(null), [f, z] = U(!1), ee = w * 1024 * 1024, N = `${s}-label`, R = `${s}-feedback`, L = `${s}-hint`, E = p ? ` ${L}` : "", ne = Z(S), P = Z(G), te = b(n.root, v), ie = b(n.dropzone, {
116
+ [n.dropzoneDisabled]: i,
117
+ [n.dropzoneInvalid]: m,
118
+ [n.dropzoneIsDragging]: f
119
+ }), oe = b(n.label, {
120
+ // hide label only visually to keep them available for assistive technologies
121
+ [n.labelHidden]: ne,
122
+ [n.labelDisabled]: i
123
+ }), se = b(n.browseButton, {
124
+ [n.browseButtonIsDragging]: f && q === "outline",
125
+ [n.browseButtonIsDraggingFilled]: f && q === "filled"
126
+ }), re = b(n.browseButtonDropzone, {
127
+ [n.browseButtonDropzoneIsDragging]: f
128
+ }), ae = [m && F && R].filter(Boolean).join(" ") || void 0, le = (e) => {
129
+ _.current = e, typeof D == "function" ? D(e) : D && (D.current = e);
130
+ }, x = (e) => {
131
+ if (!e)
132
+ return;
133
+ const r = [];
134
+ for (const o of e)
135
+ if (t && !Me(o, t) && (o.feedback = `${u("feedbackFileType")}: ${o.type}.`), o.size > ee && (o.feedback = `${u("feedbackFileSize")} ${w} MB.`), r.push(o), !g && r.length > 0)
136
+ break;
137
+ r.length > 0 && (C(() => {
138
+ const o = [...r], M = o.map(({
139
+ name: k,
140
+ feedback: fe = ""
141
+ }) => `${k} ${fe}`).join(", ");
142
+ return setTimeout(() => {
143
+ ue(`${u("filesSelectedHint")}: ${M}.`);
144
+ }, 1e3), o;
145
+ }), A?.(r));
146
+ }, H = (e) => {
147
+ i || (_.current?.click(), e.stopPropagation());
148
+ }, O = (e) => {
149
+ e.preventDefault(), f || z(!0);
150
+ }, W = (e) => {
151
+ e.preventDefault(), f && z(!1);
152
+ }, V = me((e) => {
153
+ e.preventDefault(), !i && (z(!1), x(e.dataTransfer.files));
154
+ }, [g, t, w, i]), de = (e) => {
155
+ x(e.target.files), _?.current && (_.current.value = "");
156
+ }, ce = (e) => {
157
+ C((r) => {
158
+ const o = r.filter((M, k) => k !== e);
159
+ return A?.(o), o;
160
+ });
161
+ }, ue = (e) => {
162
+ const r = _e();
163
+ r && (r.innerText = e, setTimeout(() => {
164
+ r.innerText = "";
165
+ }, 350));
166
+ }, j = () => /* @__PURE__ */ a(Ie, { ...Y, className: c ? re : se, type: "button", variant: q, size: c ? "small" : "medium", disabled: i, iconName: c ? void 0 : "upload", onClick: H, "aria-describedby": ae, "aria-invalid": m, children: X });
167
+ return /* @__PURE__ */ h("div", { className: te, children: [
168
+ /* @__PURE__ */ h("label", { className: oe, id: N, htmlFor: s, children: [
169
+ d,
170
+ T && /* @__PURE__ */ h(pe, { children: [
171
+ /* @__PURE__ */ a(he, {}),
172
+ /* @__PURE__ */ a("span", { className: n.requiredSrInfo, children: u("required") })
173
+ ] })
174
+ ] }),
175
+ p && (P || !c) && /* @__PURE__ */ a("div", { className: n.hint, id: L, children: p }),
176
+ !c && /* @__PURE__ */ a(
177
+ "div",
178
+ {
179
+ onDragOver: O,
180
+ onDragLeave: W,
181
+ onDrop: V,
182
+ "aria-labelledby": `${N}${E}`,
183
+ "aria-disabled": i,
184
+ children: j()
185
+ }
186
+ ),
187
+ c && /* @__PURE__ */ h(
188
+ "div",
189
+ {
190
+ className: ie,
191
+ onClick: (e) => H(e),
192
+ onDragOver: O,
193
+ onDragLeave: W,
194
+ onDrop: V,
195
+ "aria-labelledby": `${N}${E}`,
196
+ "aria-disabled": i,
197
+ children: [
198
+ /* @__PURE__ */ a(Se, { name: "upload", className: n.uploadIcon, size: "x-large" }),
199
+ /* @__PURE__ */ a("p", { id: "file-upload-instructions", className: n.instructions, children: u("dragAndDropInstructions") }),
200
+ j(),
201
+ p && !P && /* @__PURE__ */ a("div", { className: n.hintDropZone, id: L, children: p })
202
+ ]
203
+ }
204
+ ),
205
+ /* @__PURE__ */ a("input", { ...Q, type: "file", className: n.input, id: s, ref: le, accept: t, multiple: g, "aria-hidden": "true", required: T, disabled: i, onChange: de }),
206
+ m && F && /* @__PURE__ */ a(we, { className: n.feedback, message: F, variant: "error", id: R }),
207
+ $.length > 0 && J && /* @__PURE__ */ a(ve, { files: $, onRemoveFile: ce, fileListItemRemoveButtonProps: l, t: u })
208
+ ] });
209
+ });
210
+ Ze.displayName = "DSInputFile";
211
+ export {
212
+ Ze as D,
213
+ We as a,
214
+ Ve as b,
215
+ je as c,
216
+ Me as f,
217
+ Ue as v
218
+ };