@knime/kds-components 2.5.0 → 2.6.0

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 (1162) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +27 -0
  3. package/dist/KdsPopover-DBU9xVEK.js +144 -0
  4. package/dist/KdsPopover-DBU9xVEK.js.map +1 -0
  5. package/dist/KdsPopover.css +10 -10
  6. package/dist/index.css +1878 -1842
  7. package/dist/index.js +18862 -18728
  8. package/dist/index.js.map +1 -1
  9. package/dist/overlays-DzSbLjAj.js +3942 -0
  10. package/dist/overlays-DzSbLjAj.js.map +1 -0
  11. package/dist/overlays.css +150 -150
  12. package/dist/src/components/accessories/Avatar/KdsAvatar.vue.d.ts.map +1 -0
  13. package/dist/src/components/accessories/Avatar/KdsAvatarCounter.vue.d.ts.map +1 -0
  14. package/dist/src/components/accessories/Avatar/demo-logo.d.ts.map +1 -0
  15. package/dist/src/components/accessories/Avatar/demo-user.d.ts.map +1 -0
  16. package/dist/src/components/accessories/Avatar/enums.d.ts.map +1 -0
  17. package/dist/src/components/accessories/Avatar/index.d.ts.map +1 -0
  18. package/dist/src/components/accessories/Avatar/types.d.ts.map +1 -0
  19. package/dist/src/components/accessories/Badge/KdsBadge.vue.d.ts.map +1 -0
  20. package/dist/src/components/accessories/Badge/enums.d.ts.map +1 -0
  21. package/dist/src/components/accessories/Badge/index.d.ts.map +1 -0
  22. package/dist/src/components/accessories/Badge/types.d.ts.map +1 -0
  23. package/dist/src/components/accessories/ColorSwatch/KdsColorSwatch.vue.d.ts.map +1 -0
  24. package/dist/src/components/accessories/ColorSwatch/enums.d.ts +18 -0
  25. package/dist/src/components/accessories/ColorSwatch/enums.d.ts.map +1 -0
  26. package/dist/src/components/accessories/ColorSwatch/index.d.ts.map +1 -0
  27. package/dist/src/components/accessories/ColorSwatch/types.d.ts.map +1 -0
  28. package/dist/src/components/accessories/Divider/KdsDivider.vue.d.ts.map +1 -0
  29. package/dist/src/components/accessories/Divider/index.d.ts.map +1 -0
  30. package/dist/src/components/accessories/DonutChart/KdsDonutChart.vue.d.ts.map +1 -0
  31. package/dist/src/components/accessories/DonutChart/index.d.ts.map +1 -0
  32. package/dist/src/components/accessories/DonutChart/types.d.ts.map +1 -0
  33. package/dist/src/components/accessories/Icon/IdToIconNameMapping.d.ts.map +1 -0
  34. package/dist/src/components/accessories/Icon/KdsDataType.vue.d.ts.map +1 -0
  35. package/dist/src/components/accessories/Icon/KdsIcon.vue.d.ts.map +1 -0
  36. package/dist/src/components/accessories/Icon/aliases.d.ts.map +1 -0
  37. package/dist/src/components/accessories/Icon/enums.d.ts.map +1 -0
  38. package/dist/src/components/accessories/Icon/index.d.ts.map +1 -0
  39. package/dist/src/components/accessories/Icon/types.d.ts.map +1 -0
  40. package/dist/src/components/accessories/Icon/useIcon.d.ts.map +1 -0
  41. package/dist/src/components/accessories/KeyboardShortcut/KdsKeyboardShortcut.vue.d.ts.map +1 -0
  42. package/dist/src/components/accessories/KeyboardShortcut/enums.d.ts.map +1 -0
  43. package/dist/src/components/accessories/KeyboardShortcut/index.d.ts.map +1 -0
  44. package/dist/src/components/accessories/KeyboardShortcut/types.d.ts.map +1 -0
  45. package/dist/src/components/accessories/LiveStatus/KdsLiveStatus.vue.d.ts.map +1 -0
  46. package/dist/src/components/accessories/LiveStatus/enums.d.ts.map +1 -0
  47. package/dist/src/components/accessories/LiveStatus/index.d.ts.map +1 -0
  48. package/dist/src/components/accessories/LiveStatus/types.d.ts.map +1 -0
  49. package/dist/src/components/accessories/LoadingSpinner/KdsLoadingSpinner.vue.d.ts.map +1 -0
  50. package/dist/src/components/accessories/LoadingSpinner/enums.d.ts.map +1 -0
  51. package/dist/src/components/accessories/LoadingSpinner/index.d.ts.map +1 -0
  52. package/dist/src/components/accessories/LoadingSpinner/types.d.ts.map +1 -0
  53. package/dist/src/components/accessories/MissingValueIcon/KdsMissingValueIcon.vue.d.ts.map +1 -0
  54. package/dist/src/components/accessories/MissingValueIcon/index.d.ts.map +1 -0
  55. package/dist/src/components/accessories/PortIcon/KdsPortIcon.vue.d.ts +5 -0
  56. package/dist/src/components/accessories/PortIcon/KdsPortIcon.vue.d.ts.map +1 -0
  57. package/dist/src/components/accessories/PortIcon/constants.d.ts +3 -0
  58. package/dist/src/components/accessories/PortIcon/constants.d.ts.map +1 -0
  59. package/dist/src/components/accessories/PortIcon/enums.d.ts +8 -0
  60. package/dist/src/components/accessories/PortIcon/enums.d.ts.map +1 -0
  61. package/dist/src/components/accessories/PortIcon/index.d.ts +5 -0
  62. package/dist/src/components/accessories/PortIcon/index.d.ts.map +1 -0
  63. package/dist/src/components/accessories/PortIcon/types.d.ts +30 -0
  64. package/dist/src/components/accessories/PortIcon/types.d.ts.map +1 -0
  65. package/dist/src/components/accessories/Text/KdsTextHighlight/KdsTextHighlight.vue.d.ts.map +1 -0
  66. package/dist/src/components/accessories/Text/KdsTextHighlight/index.d.ts.map +1 -0
  67. package/dist/src/components/accessories/Text/KdsTextHighlight/types.d.ts.map +1 -0
  68. package/dist/src/components/accessories/Text/index.d.ts.map +1 -0
  69. package/dist/src/components/accessories/_Accessory/_Accessory.vue.d.ts.map +1 -0
  70. package/dist/src/components/accessories/_Accessory/enums.d.ts +16 -0
  71. package/dist/src/components/accessories/_Accessory/enums.d.ts.map +1 -0
  72. package/dist/src/components/accessories/_Accessory/index.d.ts.map +1 -0
  73. package/dist/src/components/accessories/_Accessory/types.d.ts +35 -0
  74. package/dist/src/components/accessories/_Accessory/types.d.ts.map +1 -0
  75. package/dist/src/components/accessories/index.d.ts +25 -0
  76. package/dist/src/components/accessories/index.d.ts.map +1 -0
  77. package/dist/src/components/buttons/ActionButton/ActionButton.vue.d.ts.map +1 -0
  78. package/dist/src/components/buttons/ActionButton/enums.d.ts.map +1 -0
  79. package/dist/src/components/buttons/ActionButton/index.d.ts.map +1 -0
  80. package/dist/src/components/buttons/ActionButton/types.d.ts.map +1 -0
  81. package/dist/src/components/buttons/BaseButton.vue.d.ts +101 -0
  82. package/dist/src/components/buttons/BaseButton.vue.d.ts.map +1 -0
  83. package/dist/src/components/buttons/Breadcrumb/BreadcrumbItem.vue.d.ts.map +1 -0
  84. package/dist/src/components/buttons/Breadcrumb/KdsBreadcrumb.vue.d.ts.map +1 -0
  85. package/dist/src/components/buttons/Breadcrumb/index.d.ts.map +1 -0
  86. package/dist/src/components/buttons/Breadcrumb/types.d.ts +61 -0
  87. package/dist/src/components/buttons/Breadcrumb/types.d.ts.map +1 -0
  88. package/dist/src/components/buttons/Breadcrumb/useBreadcrumbAdaptiveLayout.d.ts.map +1 -0
  89. package/dist/src/components/buttons/KdsButton/KdsButton.vue.d.ts +48 -0
  90. package/dist/src/components/buttons/KdsButton/KdsButton.vue.d.ts.map +1 -0
  91. package/dist/src/components/buttons/KdsButton/index.d.ts.map +1 -0
  92. package/dist/src/components/buttons/KdsButton/types.d.ts.map +1 -0
  93. package/dist/src/components/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts +190 -0
  94. package/dist/src/components/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts.map +1 -0
  95. package/dist/src/components/buttons/KdsMenuButton/index.d.ts.map +1 -0
  96. package/dist/src/components/buttons/KdsMenuButton/types.d.ts +20 -0
  97. package/dist/src/components/buttons/KdsMenuButton/types.d.ts.map +1 -0
  98. package/dist/src/components/buttons/KdsProgressButton/KdsProgressButton.vue.d.ts +51 -0
  99. package/dist/src/components/buttons/KdsProgressButton/KdsProgressButton.vue.d.ts.map +1 -0
  100. package/dist/src/components/buttons/KdsProgressButton/enums.d.ts.map +1 -0
  101. package/dist/src/components/buttons/KdsProgressButton/index.d.ts.map +1 -0
  102. package/dist/src/components/buttons/KdsProgressButton/types.d.ts +33 -0
  103. package/dist/src/components/buttons/KdsProgressButton/types.d.ts.map +1 -0
  104. package/dist/src/components/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts +62 -0
  105. package/dist/src/components/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts.map +1 -0
  106. package/dist/src/components/buttons/KdsSplitButton/index.d.ts.map +1 -0
  107. package/dist/src/components/buttons/KdsSplitButton/types.d.ts +20 -0
  108. package/dist/src/components/buttons/KdsSplitButton/types.d.ts.map +1 -0
  109. package/dist/src/components/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts +52 -0
  110. package/dist/src/components/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts.map +1 -0
  111. package/dist/src/components/buttons/KdsToggleButton/enums.d.ts +6 -0
  112. package/dist/src/components/buttons/KdsToggleButton/enums.d.ts.map +1 -0
  113. package/dist/src/components/buttons/KdsToggleButton/index.d.ts.map +1 -0
  114. package/dist/src/components/buttons/KdsToggleButton/types.d.ts.map +1 -0
  115. package/dist/src/components/buttons/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts.map +1 -0
  116. package/dist/src/components/buttons/ResponsiveButtonGroup/enums.d.ts.map +1 -0
  117. package/dist/src/components/buttons/ResponsiveButtonGroup/index.d.ts.map +1 -0
  118. package/dist/src/components/buttons/ResponsiveButtonGroup/mapping.d.ts +150 -0
  119. package/dist/src/components/buttons/ResponsiveButtonGroup/mapping.d.ts.map +1 -0
  120. package/dist/src/components/buttons/ResponsiveButtonGroup/types.d.ts +104 -0
  121. package/dist/src/components/buttons/ResponsiveButtonGroup/types.d.ts.map +1 -0
  122. package/dist/src/components/buttons/enums.d.ts +14 -0
  123. package/dist/src/components/buttons/enums.d.ts.map +1 -0
  124. package/dist/src/components/buttons/index.d.ts +23 -0
  125. package/dist/src/components/buttons/index.d.ts.map +1 -0
  126. package/dist/src/components/buttons/links/KdsLink/KdsLink.vue.d.ts.map +1 -0
  127. package/dist/src/components/buttons/links/KdsLink/enums.d.ts.map +1 -0
  128. package/dist/src/components/buttons/links/KdsLink/index.d.ts.map +1 -0
  129. package/dist/src/components/buttons/links/KdsLink/types.d.ts +41 -0
  130. package/dist/src/components/buttons/links/KdsLink/types.d.ts.map +1 -0
  131. package/dist/src/components/buttons/links/KdsLinkButton/KdsLinkButton.vue.d.ts +48 -0
  132. package/dist/src/components/buttons/links/KdsLinkButton/KdsLinkButton.vue.d.ts.map +1 -0
  133. package/dist/src/components/buttons/links/KdsLinkButton/index.d.ts.map +1 -0
  134. package/dist/src/components/buttons/links/KdsLinkButton/types.d.ts +8 -0
  135. package/dist/src/components/buttons/links/KdsLinkButton/types.d.ts.map +1 -0
  136. package/dist/src/components/buttons/links/docs.d.ts.map +1 -0
  137. package/dist/src/components/buttons/links/linkUtils.d.ts.map +1 -0
  138. package/dist/src/components/buttons/types.d.ts +75 -0
  139. package/dist/src/components/buttons/types.d.ts.map +1 -0
  140. package/dist/src/components/feedback/EmptyState/KdsEmptyState.vue.d.ts +37 -0
  141. package/dist/src/components/feedback/EmptyState/KdsEmptyState.vue.d.ts.map +1 -0
  142. package/dist/src/components/feedback/EmptyState/index.d.ts.map +1 -0
  143. package/dist/src/components/feedback/EmptyState/types.d.ts +31 -0
  144. package/dist/src/components/feedback/EmptyState/types.d.ts.map +1 -0
  145. package/dist/src/components/feedback/InlineMessage/KdsInlineMessage.vue.d.ts.map +1 -0
  146. package/dist/src/components/feedback/InlineMessage/enums.d.ts.map +1 -0
  147. package/dist/src/components/feedback/InlineMessage/index.d.ts.map +1 -0
  148. package/dist/src/components/feedback/InlineMessage/types.d.ts +14 -0
  149. package/dist/src/components/feedback/InlineMessage/types.d.ts.map +1 -0
  150. package/dist/src/components/feedback/LoadingSkeleton/KdsLoadingSkeleton.vue.d.ts.map +1 -0
  151. package/dist/src/components/feedback/LoadingSkeleton/LoadingSkeletonItem.vue.d.ts.map +1 -0
  152. package/dist/src/components/feedback/LoadingSkeleton/enums.d.ts.map +1 -0
  153. package/dist/src/components/feedback/LoadingSkeleton/index.d.ts.map +1 -0
  154. package/dist/src/components/feedback/LoadingSkeleton/types.d.ts.map +1 -0
  155. package/dist/src/components/feedback/ProgressBar/KdsProgressBar.vue.d.ts.map +1 -0
  156. package/dist/src/components/feedback/ProgressBar/enums.d.ts.map +1 -0
  157. package/dist/src/components/feedback/ProgressBar/index.d.ts.map +1 -0
  158. package/dist/src/components/feedback/ProgressBar/types.d.ts.map +1 -0
  159. package/dist/src/components/feedback/index.d.ts +9 -0
  160. package/dist/src/components/feedback/index.d.ts.map +1 -0
  161. package/dist/src/components/forms/Checkbox/BaseCheckbox.vue.d.ts.map +1 -0
  162. package/dist/src/components/forms/Checkbox/KdsCheckbox.vue.d.ts.map +1 -0
  163. package/dist/src/components/forms/Checkbox/KdsCheckboxGroup.vue.d.ts.map +1 -0
  164. package/dist/src/components/forms/Checkbox/enums.d.ts.map +1 -0
  165. package/dist/src/components/forms/Checkbox/index.d.ts.map +1 -0
  166. package/dist/src/components/forms/Checkbox/types.d.ts.map +1 -0
  167. package/dist/src/components/forms/FileSelector/KdsFileSelector.vue.d.ts.map +1 -0
  168. package/dist/src/components/forms/FileSelector/index.d.ts.map +1 -0
  169. package/dist/src/components/forms/FileSelector/types.d.ts.map +1 -0
  170. package/dist/src/components/forms/RadioButton/KdsRadioButton.vue.d.ts.map +1 -0
  171. package/dist/src/components/forms/RadioButton/KdsRadioButtonGroup.vue.d.ts.map +1 -0
  172. package/dist/src/components/forms/RadioButton/KdsValueSwitch.vue.d.ts.map +1 -0
  173. package/dist/src/components/forms/RadioButton/ValueSwitchItem.vue.d.ts.map +1 -0
  174. package/dist/src/components/forms/RadioButton/enums.d.ts.map +1 -0
  175. package/dist/src/components/forms/RadioButton/index.d.ts.map +1 -0
  176. package/dist/src/components/forms/RadioButton/types.d.ts +98 -0
  177. package/dist/src/components/forms/RadioButton/types.d.ts.map +1 -0
  178. package/dist/src/components/forms/RadioButton/useRadioSelection.d.ts.map +1 -0
  179. package/dist/src/components/forms/RadioButton/useValueSwitchIconHiding.d.ts.map +1 -0
  180. package/dist/src/components/forms/ToggleSwitch/KdsToggleSwitch.vue.d.ts.map +1 -0
  181. package/dist/src/components/forms/ToggleSwitch/enums.d.ts.map +1 -0
  182. package/dist/src/components/forms/ToggleSwitch/index.d.ts.map +1 -0
  183. package/dist/src/components/forms/ToggleSwitch/types.d.ts.map +1 -0
  184. package/dist/src/components/forms/_helper/BaseFieldsetWrapper.vue.d.ts.map +1 -0
  185. package/dist/src/components/forms/_helper/BaseFormFieldWrapper.vue.d.ts.map +1 -0
  186. package/dist/src/components/forms/_helper/InfoPopover/InfoPopover.vue.d.ts.map +1 -0
  187. package/dist/src/components/forms/_helper/InfoPopover/KdsInfoToggleButton.vue.d.ts.map +1 -0
  188. package/dist/src/components/forms/_helper/InfoPopover/index.d.ts.map +1 -0
  189. package/dist/src/components/forms/_helper/InfoPopover/types.d.ts.map +1 -0
  190. package/dist/src/components/forms/_helper/KdsLabel.vue.d.ts.map +1 -0
  191. package/dist/src/components/forms/_helper/KdsSubText.vue.d.ts.map +1 -0
  192. package/dist/src/components/forms/_helper/VariablePopover/KdsVariableToggleButton.vue.d.ts.map +1 -0
  193. package/dist/src/components/forms/_helper/VariablePopover/VariablePopover.vue.d.ts.map +1 -0
  194. package/dist/src/components/forms/_helper/VariablePopover/index.d.ts.map +1 -0
  195. package/dist/src/components/forms/_helper/VariablePopover/types.d.ts.map +1 -0
  196. package/dist/src/components/forms/index.d.ts.map +1 -0
  197. package/dist/src/components/forms/inputs/BaseInput.vue.d.ts +177 -0
  198. package/dist/src/components/forms/inputs/BaseInput.vue.d.ts.map +1 -0
  199. package/dist/src/components/forms/inputs/ColorInput/ColorPicker/ColorPicker.vue.d.ts.map +1 -0
  200. package/dist/src/components/forms/inputs/ColorInput/ColorPicker/ColorPickerSlider.vue.d.ts.map +1 -0
  201. package/dist/src/components/forms/inputs/ColorInput/ColorPicker/types.d.ts.map +1 -0
  202. package/dist/src/components/forms/inputs/ColorInput/KdsColorInput.vue.d.ts.map +1 -0
  203. package/dist/src/components/forms/inputs/ColorInput/colorUtils.d.ts.map +1 -0
  204. package/dist/src/components/forms/inputs/ColorInput/index.d.ts.map +1 -0
  205. package/dist/src/components/forms/inputs/ColorInput/types.d.ts.map +1 -0
  206. package/dist/src/components/forms/inputs/ColorInput/useColorInputValidationOnFocusOut.d.ts.map +1 -0
  207. package/dist/src/components/forms/inputs/DateInput/KdsDateInput.vue.d.ts.map +1 -0
  208. package/dist/src/components/forms/inputs/DateInput/KdsDatePicker.vue.d.ts.map +1 -0
  209. package/dist/src/components/forms/inputs/DateInput/_helper/DatePickerDayGrid.vue.d.ts.map +1 -0
  210. package/dist/src/components/forms/inputs/DateInput/_helper/DatePickerMonthGrid.vue.d.ts.map +1 -0
  211. package/dist/src/components/forms/inputs/DateInput/_helper/DatePickerYearGrid.vue.d.ts.map +1 -0
  212. package/dist/src/components/forms/inputs/DateInput/_helper/types.d.ts.map +1 -0
  213. package/dist/src/components/forms/inputs/DateInput/dateUtils.d.ts.map +1 -0
  214. package/dist/src/components/forms/inputs/DateInput/enums.d.ts.map +1 -0
  215. package/dist/src/components/forms/inputs/DateInput/index.d.ts.map +1 -0
  216. package/dist/src/components/forms/inputs/DateInput/types.d.ts.map +1 -0
  217. package/dist/src/components/forms/inputs/DateInput/useDateInputMask.d.ts.map +1 -0
  218. package/dist/src/components/forms/inputs/DateTimeFormatInput/DateTimeFormatPopover.vue.d.ts.map +1 -0
  219. package/dist/src/components/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue.d.ts.map +1 -0
  220. package/dist/src/components/forms/inputs/DateTimeFormatInput/enums.d.ts.map +1 -0
  221. package/dist/src/components/forms/inputs/DateTimeFormatInput/index.d.ts.map +1 -0
  222. package/dist/src/components/forms/inputs/DateTimeFormatInput/types.d.ts.map +1 -0
  223. package/dist/src/components/forms/inputs/DateTimeInput/KdsDateTimeInput.vue.d.ts.map +1 -0
  224. package/dist/src/components/forms/inputs/DateTimeInput/index.d.ts.map +1 -0
  225. package/dist/src/components/forms/inputs/DateTimeInput/types.d.ts.map +1 -0
  226. package/dist/src/components/forms/inputs/IntervalInput/IntervalInputPopover.vue.d.ts.map +1 -0
  227. package/dist/src/components/forms/inputs/IntervalInput/KdsIntervalInput.vue.d.ts.map +1 -0
  228. package/dist/src/components/forms/inputs/IntervalInput/enums.d.ts.map +1 -0
  229. package/dist/src/components/forms/inputs/IntervalInput/index.d.ts.map +1 -0
  230. package/dist/src/components/forms/inputs/IntervalInput/intervalUtils.d.ts.map +1 -0
  231. package/dist/src/components/forms/inputs/IntervalInput/types.d.ts.map +1 -0
  232. package/dist/src/components/forms/inputs/NumberInput/KdsNumberInput.vue.d.ts.map +1 -0
  233. package/dist/src/components/forms/inputs/NumberInput/index.d.ts.map +1 -0
  234. package/dist/src/components/forms/inputs/NumberInput/numberParser.d.ts.map +1 -0
  235. package/dist/src/components/forms/inputs/NumberInput/types.d.ts.map +1 -0
  236. package/dist/src/components/forms/inputs/PasswordInput/KdsPasswordInput.vue.d.ts.map +1 -0
  237. package/dist/src/components/forms/inputs/PasswordInput/enums.d.ts.map +1 -0
  238. package/dist/src/components/forms/inputs/PasswordInput/index.d.ts.map +1 -0
  239. package/dist/src/components/forms/inputs/PasswordInput/types.d.ts.map +1 -0
  240. package/dist/src/components/forms/inputs/PatternInput/KdsPatternInput.vue.d.ts.map +1 -0
  241. package/dist/src/components/forms/inputs/PatternInput/index.d.ts.map +1 -0
  242. package/dist/src/components/forms/inputs/PatternInput/patternRegex.d.ts.map +1 -0
  243. package/dist/src/components/forms/inputs/PatternInput/types.d.ts.map +1 -0
  244. package/dist/src/components/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts.map +1 -0
  245. package/dist/src/components/forms/inputs/SearchInput/index.d.ts.map +1 -0
  246. package/dist/src/components/forms/inputs/SearchInput/types.d.ts +50 -0
  247. package/dist/src/components/forms/inputs/SearchInput/types.d.ts.map +1 -0
  248. package/dist/src/components/forms/inputs/TextInput/KdsTextInput.vue.d.ts.map +1 -0
  249. package/dist/src/components/forms/inputs/TextInput/index.d.ts.map +1 -0
  250. package/dist/src/components/forms/inputs/TextInput/types.d.ts.map +1 -0
  251. package/dist/src/components/forms/inputs/Textarea/KdsTextarea.vue.d.ts.map +1 -0
  252. package/dist/src/components/forms/inputs/Textarea/index.d.ts.map +1 -0
  253. package/dist/src/components/forms/inputs/Textarea/types.d.ts.map +1 -0
  254. package/dist/src/components/forms/inputs/TimeInput/KdsTimeInput.vue.d.ts.map +1 -0
  255. package/dist/src/components/forms/inputs/TimeInput/TimePicker.vue.d.ts.map +1 -0
  256. package/dist/src/components/forms/inputs/TimeInput/enums.d.ts.map +1 -0
  257. package/dist/src/components/forms/inputs/TimeInput/index.d.ts.map +1 -0
  258. package/dist/src/components/forms/inputs/TimeInput/types.d.ts.map +1 -0
  259. package/dist/src/components/forms/inputs/TimeInput/useTimeInputMask.d.ts.map +1 -0
  260. package/dist/src/components/forms/inputs/UsernameInput/KdsUsernameInput.vue.d.ts.map +1 -0
  261. package/dist/src/components/forms/inputs/UsernameInput/enums.d.ts.map +1 -0
  262. package/dist/src/components/forms/inputs/UsernameInput/index.d.ts.map +1 -0
  263. package/dist/src/components/forms/inputs/UsernameInput/types.d.ts.map +1 -0
  264. package/dist/src/components/forms/inputs/ZonedDateTimeInput/KdsZonedDateTimeInput.vue.d.ts.map +1 -0
  265. package/dist/src/components/forms/inputs/ZonedDateTimeInput/index.d.ts.map +1 -0
  266. package/dist/src/components/forms/inputs/ZonedDateTimeInput/types.d.ts.map +1 -0
  267. package/dist/src/components/forms/inputs/index.d.ts.map +1 -0
  268. package/dist/src/components/forms/inputs/types.d.ts.map +1 -0
  269. package/dist/src/components/forms/inputs/useInputSegments.d.ts.map +1 -0
  270. package/dist/src/components/forms/inputs/useInputSegments.helpers.d.ts.map +1 -0
  271. package/dist/src/components/forms/inputs/useInputSegmentsDnd.d.ts.map +1 -0
  272. package/dist/src/components/forms/inputs/useInputSegmentsMouse.d.ts.map +1 -0
  273. package/dist/src/components/forms/selects/Dropdown/BaseDropdown.vue.d.ts.map +1 -0
  274. package/dist/src/components/forms/selects/Dropdown/DropdownContainer.vue.d.ts.map +1 -0
  275. package/dist/src/components/forms/selects/Dropdown/KdsDropdown.vue.d.ts.map +1 -0
  276. package/dist/src/components/forms/selects/Dropdown/KdsMultiSelectDropdown.vue.d.ts.map +1 -0
  277. package/dist/src/components/forms/selects/Dropdown/MultiSelectDropdownContainer.vue.d.ts.map +1 -0
  278. package/dist/src/components/forms/selects/Dropdown/constants.d.ts.map +1 -0
  279. package/dist/src/components/forms/selects/Dropdown/index.d.ts.map +1 -0
  280. package/dist/src/components/forms/selects/Dropdown/types.d.ts +71 -0
  281. package/dist/src/components/forms/selects/Dropdown/types.d.ts.map +1 -0
  282. package/dist/src/components/forms/selects/MultiSelectListBox/KdsMultiSelectListBox.vue.d.ts.map +1 -0
  283. package/dist/src/components/forms/selects/MultiSelectListBox/index.d.ts.map +1 -0
  284. package/dist/src/components/forms/selects/MultiSelectListBox/types.d.ts +41 -0
  285. package/dist/src/components/forms/selects/MultiSelectListBox/types.d.ts.map +1 -0
  286. package/dist/src/components/forms/selects/MultiSelectListBox/useMultiSelectListBoxSelection.d.ts.map +1 -0
  287. package/dist/src/components/forms/selects/SortableListBox/KdsSortableListBox.vue.d.ts.map +1 -0
  288. package/dist/src/components/forms/selects/SortableListBox/index.d.ts.map +1 -0
  289. package/dist/src/components/forms/selects/SortableListBox/types.d.ts.map +1 -0
  290. package/dist/src/components/forms/selects/SortableListBox/useSortableListBoxReorder.d.ts.map +1 -0
  291. package/dist/src/components/forms/selects/TwinList/KdsTwinList.pageobject.d.ts.map +1 -0
  292. package/dist/src/components/forms/selects/TwinList/KdsTwinList.vue.d.ts.map +1 -0
  293. package/dist/src/components/forms/selects/TwinList/TwinListBody.vue.d.ts.map +1 -0
  294. package/dist/src/components/forms/selects/TwinList/TwinListHeader.vue.d.ts.map +1 -0
  295. package/dist/src/components/forms/selects/TwinList/enums.d.ts.map +1 -0
  296. package/dist/src/components/forms/selects/TwinList/index.d.ts.map +1 -0
  297. package/dist/src/components/forms/selects/TwinList/types.d.ts +102 -0
  298. package/dist/src/components/forms/selects/TwinList/types.d.ts.map +1 -0
  299. package/dist/src/components/forms/selects/index.d.ts.map +1 -0
  300. package/dist/src/components/forms/types.d.ts.map +1 -0
  301. package/dist/src/components/index.d.ts +13 -0
  302. package/dist/src/components/index.d.ts.map +1 -0
  303. package/dist/src/components/lists/ContextMenu/KdsContextMenu.vue.d.ts.map +1 -0
  304. package/dist/src/components/lists/ContextMenu/index.d.ts.map +1 -0
  305. package/dist/src/components/lists/ContextMenu/types.d.ts +40 -0
  306. package/dist/src/components/lists/ContextMenu/types.d.ts.map +1 -0
  307. package/dist/src/components/lists/ListContainer/KdsListContainer.vue.d.ts.map +1 -0
  308. package/dist/src/components/lists/ListContainer/ListItem/ListItem/KdsListItem.vue.d.ts.map +1 -0
  309. package/dist/src/components/lists/ListContainer/ListItem/ListItem/demo-accessories.d.ts +9 -0
  310. package/dist/src/components/lists/ListContainer/ListItem/ListItem/demo-accessories.d.ts.map +1 -0
  311. package/dist/src/components/lists/ListContainer/ListItem/ListItem/enums.d.ts.map +1 -0
  312. package/dist/src/components/lists/ListContainer/ListItem/ListItem/index.d.ts.map +1 -0
  313. package/dist/src/components/lists/ListContainer/ListItem/ListItem/types.d.ts +68 -0
  314. package/dist/src/components/lists/ListContainer/ListItem/ListItem/types.d.ts.map +1 -0
  315. package/dist/src/components/lists/ListContainer/ListItem/ListItemButton/KdsListItemButton.vue.d.ts.map +1 -0
  316. package/dist/src/components/lists/ListContainer/ListItem/ListItemButton/index.d.ts.map +1 -0
  317. package/dist/src/components/lists/ListContainer/ListItem/ListItemButton/types.d.ts +14 -0
  318. package/dist/src/components/lists/ListContainer/ListItem/ListItemButton/types.d.ts.map +1 -0
  319. package/dist/src/components/lists/ListContainer/ListItem/ListItemSectionTitle/ListItemSectionTitle.vue.d.ts.map +1 -0
  320. package/dist/src/components/lists/ListContainer/ListItem/ListItemSectionTitle/index.d.ts.map +1 -0
  321. package/dist/src/components/lists/ListContainer/ListItem/ListItemSectionTitle/types.d.ts +8 -0
  322. package/dist/src/components/lists/ListContainer/ListItem/ListItemSectionTitle/types.d.ts.map +1 -0
  323. package/dist/src/components/lists/ListContainer/index.d.ts.map +1 -0
  324. package/dist/src/components/lists/ListContainer/types.d.ts +76 -0
  325. package/dist/src/components/lists/ListContainer/types.d.ts.map +1 -0
  326. package/dist/src/components/lists/Menu/KdsMenu.vue.d.ts.map +1 -0
  327. package/dist/src/components/lists/Menu/index.d.ts.map +1 -0
  328. package/dist/src/components/lists/Menu/types.d.ts +17 -0
  329. package/dist/src/components/lists/Menu/types.d.ts.map +1 -0
  330. package/dist/src/components/lists/MenuContainer/KdsMenuContainer.vue.d.ts.map +1 -0
  331. package/dist/src/components/lists/MenuContainer/KdsMenuItem.vue.d.ts.map +1 -0
  332. package/dist/src/components/lists/MenuContainer/index.d.ts.map +1 -0
  333. package/dist/src/components/lists/MenuContainer/keys.d.ts.map +1 -0
  334. package/dist/src/components/lists/MenuContainer/types.d.ts +152 -0
  335. package/dist/src/components/lists/MenuContainer/types.d.ts.map +1 -0
  336. package/dist/src/components/lists/index.d.ts +8 -0
  337. package/dist/src/components/lists/index.d.ts.map +1 -0
  338. package/dist/src/components/richText/Description/KdsDescription.vue.d.ts.map +1 -0
  339. package/dist/src/components/richText/Description/index.d.ts.map +1 -0
  340. package/dist/src/components/richText/index.d.ts.map +1 -0
  341. package/dist/src/index.d.ts +2 -12
  342. package/dist/src/index.d.ts.map +1 -1
  343. package/dist/src/layouts/cards/BaseCard.vue.d.ts.map +1 -0
  344. package/dist/src/layouts/cards/CardHeader.vue.d.ts.map +1 -0
  345. package/dist/src/layouts/cards/KdsCard.vue.d.ts.map +1 -0
  346. package/dist/src/layouts/cards/KdsClickableCard.vue.d.ts.map +1 -0
  347. package/dist/src/layouts/cards/KdsLinkCard.vue.d.ts.map +1 -0
  348. package/dist/src/layouts/cards/KdsSelectableCard.vue.d.ts.map +1 -0
  349. package/dist/src/layouts/cards/enums.d.ts +7 -0
  350. package/dist/src/layouts/cards/enums.d.ts.map +1 -0
  351. package/dist/src/layouts/cards/index.d.ts.map +1 -0
  352. package/dist/src/layouts/cards/types.d.ts.map +1 -0
  353. package/dist/src/layouts/explorer/FileExplorer/FileExplorerItem.vue.d.ts.map +1 -0
  354. package/dist/src/layouts/explorer/FileExplorer/FileExplorerItemBack.vue.d.ts.map +1 -0
  355. package/dist/src/layouts/explorer/FileExplorer/FileExplorerItemBase.vue.d.ts.map +1 -0
  356. package/dist/src/layouts/explorer/FileExplorer/KdsFileExplorer.vue.d.ts.map +1 -0
  357. package/dist/src/layouts/explorer/FileExplorer/enums.d.ts.map +1 -0
  358. package/dist/src/layouts/explorer/FileExplorer/index.d.ts.map +1 -0
  359. package/dist/src/layouts/explorer/FileExplorer/multiSelection/index.d.ts.map +1 -0
  360. package/dist/src/layouts/explorer/FileExplorer/multiSelection/multiSelectionStateService.d.ts.map +1 -0
  361. package/dist/src/layouts/explorer/FileExplorer/multiSelection/useFocusableMultiSelection.d.ts.map +1 -0
  362. package/dist/src/layouts/explorer/FileExplorer/multiSelection/useMultiSelection.d.ts.map +1 -0
  363. package/dist/src/layouts/explorer/FileExplorer/types.d.ts +93 -0
  364. package/dist/src/layouts/explorer/FileExplorer/types.d.ts.map +1 -0
  365. package/dist/src/layouts/explorer/FileExplorer/useItemDragging/index.d.ts.map +1 -0
  366. package/dist/src/layouts/explorer/FileExplorer/useNameValidator/index.d.ts.map +1 -0
  367. package/dist/src/layouts/explorer/FileExplorer/useNameValidator/useNameValidator.d.ts.map +1 -0
  368. package/dist/src/layouts/explorer/FileExplorer/utils/dragGhostHelpers.d.ts.map +1 -0
  369. package/dist/src/layouts/explorer/FileExplorer/utils/popoverAnchorElement.d.ts.map +1 -0
  370. package/dist/src/layouts/explorer/PreviewList/KdsPreviewList.vue.d.ts.map +1 -0
  371. package/dist/src/layouts/explorer/PreviewList/index.d.ts.map +1 -0
  372. package/dist/src/layouts/explorer/PreviewList/types.d.ts +45 -0
  373. package/dist/src/layouts/explorer/PreviewList/types.d.ts.map +1 -0
  374. package/dist/src/layouts/explorer/Tree/BaseTree/BaseTree.vue.d.ts +138 -0
  375. package/dist/src/layouts/explorer/Tree/BaseTree/BaseTree.vue.d.ts.map +1 -0
  376. package/dist/src/layouts/explorer/Tree/BaseTree/TreeNode.vue.d.ts.map +1 -0
  377. package/dist/src/layouts/explorer/Tree/BaseTree/context.d.ts.map +1 -0
  378. package/dist/src/layouts/explorer/Tree/BaseTree/renderNode.d.ts.map +1 -0
  379. package/dist/src/layouts/explorer/Tree/BaseTree/useTreeData.d.ts.map +1 -0
  380. package/dist/src/layouts/explorer/Tree/KdsTree.vue.d.ts.map +1 -0
  381. package/dist/src/layouts/explorer/Tree/index.d.ts.map +1 -0
  382. package/dist/src/layouts/explorer/Tree/types.d.ts +127 -0
  383. package/dist/src/layouts/explorer/Tree/types.d.ts.map +1 -0
  384. package/dist/src/layouts/explorer/Tree/useTreeSearch.d.ts.map +1 -0
  385. package/dist/src/layouts/explorer/index.d.ts +7 -0
  386. package/dist/src/layouts/explorer/index.d.ts.map +1 -0
  387. package/dist/src/layouts/index.d.ts +8 -20
  388. package/dist/src/layouts/index.d.ts.map +1 -1
  389. package/dist/src/layouts/overlays/Modal/KdsDynamicModalProvider.vue.d.ts.map +1 -0
  390. package/dist/src/layouts/overlays/Modal/KdsModal.vue.d.ts +38 -0
  391. package/dist/src/layouts/overlays/Modal/KdsModal.vue.d.ts.map +1 -0
  392. package/dist/src/layouts/overlays/Modal/KdsModalLayout.vue.d.ts.map +1 -0
  393. package/dist/src/layouts/overlays/Modal/enums.d.ts +41 -0
  394. package/dist/src/layouts/overlays/Modal/enums.d.ts.map +1 -0
  395. package/dist/src/layouts/overlays/Modal/index.d.ts.map +1 -0
  396. package/dist/src/layouts/overlays/Modal/types.d.ts +54 -0
  397. package/dist/src/layouts/overlays/Modal/types.d.ts.map +1 -0
  398. package/dist/src/layouts/overlays/Modal/useKdsDynamicModal.d.ts +172 -0
  399. package/dist/src/layouts/overlays/Modal/useKdsDynamicModal.d.ts.map +1 -0
  400. package/dist/src/layouts/overlays/Popover/KdsPopover.vue.d.ts.map +1 -0
  401. package/dist/src/layouts/overlays/Popover/enums.d.ts.map +1 -0
  402. package/dist/src/layouts/overlays/Popover/index.d.ts.map +1 -0
  403. package/dist/src/layouts/overlays/Popover/types.d.ts.map +1 -0
  404. package/dist/src/layouts/overlays/SideDrawer/KdsSideDrawer.vue.d.ts.map +1 -0
  405. package/dist/src/layouts/overlays/SideDrawer/enums.d.ts.map +1 -0
  406. package/dist/src/layouts/overlays/SideDrawer/index.d.ts.map +1 -0
  407. package/dist/src/layouts/overlays/SideDrawer/types.d.ts.map +1 -0
  408. package/dist/src/layouts/overlays/Tooltip/index.d.ts.map +1 -0
  409. package/dist/src/layouts/overlays/Tooltip/vKdsTooltip.d.ts.map +1 -0
  410. package/dist/src/layouts/overlays/index.d.ts.map +1 -0
  411. package/dist/src/layouts/panels/Accordion/KdsAccordion.vue.d.ts.map +1 -0
  412. package/dist/src/layouts/panels/Accordion/index.d.ts.map +1 -0
  413. package/dist/src/layouts/panels/Accordion/types.d.ts +34 -0
  414. package/dist/src/layouts/panels/Accordion/types.d.ts.map +1 -0
  415. package/dist/src/layouts/panels/Navigation/KdsNavItem/KdsNavItem.vue.d.ts.map +1 -0
  416. package/dist/src/layouts/panels/Navigation/KdsNavItem/index.d.ts.map +1 -0
  417. package/dist/src/layouts/panels/Navigation/KdsNavItem/types.d.ts +29 -0
  418. package/dist/src/layouts/panels/Navigation/KdsNavItem/types.d.ts.map +1 -0
  419. package/dist/src/layouts/panels/Navigation/KdsNavigation.vue.d.ts.map +1 -0
  420. package/dist/src/layouts/panels/Navigation/index.d.ts.map +1 -0
  421. package/dist/src/layouts/panels/Navigation/types.d.ts.map +1 -0
  422. package/dist/src/layouts/panels/Panel/KdsPanel.vue.d.ts.map +1 -0
  423. package/dist/src/layouts/panels/Panel/enums.d.ts.map +1 -0
  424. package/dist/src/layouts/panels/Panel/index.d.ts.map +1 -0
  425. package/dist/src/layouts/panels/Panel/types.d.ts +103 -0
  426. package/dist/src/layouts/panels/Panel/types.d.ts.map +1 -0
  427. package/dist/src/layouts/panels/ResizeContainer/KdsResizeContainer.vue.d.ts.map +1 -0
  428. package/dist/src/layouts/panels/ResizeContainer/ResizeHandle/ResizeHandle.vue.d.ts.map +1 -0
  429. package/dist/src/layouts/panels/ResizeContainer/ResizeHandle/index.d.ts.map +1 -0
  430. package/dist/src/layouts/panels/ResizeContainer/ResizeHandle/types.d.ts.map +1 -0
  431. package/dist/src/layouts/panels/ResizeContainer/index.d.ts.map +1 -0
  432. package/dist/src/layouts/panels/ResizeContainer/types.d.ts.map +1 -0
  433. package/dist/src/layouts/panels/TabBar/KdsTabBar.vue.d.ts.map +1 -0
  434. package/dist/src/layouts/panels/TabBar/enums.d.ts.map +1 -0
  435. package/dist/src/layouts/panels/TabBar/index.d.ts.map +1 -0
  436. package/dist/src/layouts/panels/TabBar/types.d.ts +30 -0
  437. package/dist/src/layouts/panels/TabBar/types.d.ts.map +1 -0
  438. package/dist/src/layouts/panels/TabBar/useTabBarAdaptiveLayout.d.ts.map +1 -0
  439. package/dist/src/layouts/panels/index.d.ts +9 -0
  440. package/dist/src/layouts/panels/index.d.ts.map +1 -0
  441. package/dist/src/util/types.d.ts.map +1 -0
  442. package/dist/src/util/useListItemKeyboardNav.d.ts.map +1 -0
  443. package/dist/src/util/useStableItemIds.d.ts.map +1 -0
  444. package/package.json +2 -2
  445. package/dist/KdsPopover-C6tdx8QK.js +0 -144
  446. package/dist/KdsPopover-C6tdx8QK.js.map +0 -1
  447. package/dist/overlays-BLMQhNcK.js +0 -3942
  448. package/dist/overlays-BLMQhNcK.js.map +0 -1
  449. package/dist/src/accessories/Avatar/KdsAvatar.vue.d.ts.map +0 -1
  450. package/dist/src/accessories/Avatar/KdsAvatarCounter.vue.d.ts.map +0 -1
  451. package/dist/src/accessories/Avatar/demo-logo.d.ts.map +0 -1
  452. package/dist/src/accessories/Avatar/demo-user.d.ts.map +0 -1
  453. package/dist/src/accessories/Avatar/enums.d.ts.map +0 -1
  454. package/dist/src/accessories/Avatar/index.d.ts.map +0 -1
  455. package/dist/src/accessories/Avatar/types.d.ts.map +0 -1
  456. package/dist/src/accessories/Badge/KdsBadge.vue.d.ts.map +0 -1
  457. package/dist/src/accessories/Badge/enums.d.ts.map +0 -1
  458. package/dist/src/accessories/Badge/index.d.ts.map +0 -1
  459. package/dist/src/accessories/Badge/types.d.ts.map +0 -1
  460. package/dist/src/accessories/ColorSwatch/KdsColorSwatch.vue.d.ts.map +0 -1
  461. package/dist/src/accessories/ColorSwatch/enums.d.ts +0 -18
  462. package/dist/src/accessories/ColorSwatch/enums.d.ts.map +0 -1
  463. package/dist/src/accessories/ColorSwatch/index.d.ts.map +0 -1
  464. package/dist/src/accessories/ColorSwatch/types.d.ts.map +0 -1
  465. package/dist/src/accessories/Divider/KdsDivider.vue.d.ts.map +0 -1
  466. package/dist/src/accessories/Divider/index.d.ts.map +0 -1
  467. package/dist/src/accessories/DonutChart/KdsDonutChart.vue.d.ts.map +0 -1
  468. package/dist/src/accessories/DonutChart/index.d.ts.map +0 -1
  469. package/dist/src/accessories/DonutChart/types.d.ts.map +0 -1
  470. package/dist/src/accessories/Icon/IdToIconNameMapping.d.ts.map +0 -1
  471. package/dist/src/accessories/Icon/KdsDataType.vue.d.ts.map +0 -1
  472. package/dist/src/accessories/Icon/KdsIcon.vue.d.ts.map +0 -1
  473. package/dist/src/accessories/Icon/aliases.d.ts.map +0 -1
  474. package/dist/src/accessories/Icon/enums.d.ts.map +0 -1
  475. package/dist/src/accessories/Icon/index.d.ts.map +0 -1
  476. package/dist/src/accessories/Icon/types.d.ts.map +0 -1
  477. package/dist/src/accessories/Icon/useIcon.d.ts.map +0 -1
  478. package/dist/src/accessories/KeyboardShortcut/KdsKeyboardShortcut.vue.d.ts.map +0 -1
  479. package/dist/src/accessories/KeyboardShortcut/enums.d.ts.map +0 -1
  480. package/dist/src/accessories/KeyboardShortcut/index.d.ts.map +0 -1
  481. package/dist/src/accessories/KeyboardShortcut/types.d.ts.map +0 -1
  482. package/dist/src/accessories/LiveStatus/KdsLiveStatus.vue.d.ts.map +0 -1
  483. package/dist/src/accessories/LiveStatus/enums.d.ts.map +0 -1
  484. package/dist/src/accessories/LiveStatus/index.d.ts.map +0 -1
  485. package/dist/src/accessories/LiveStatus/types.d.ts.map +0 -1
  486. package/dist/src/accessories/LoadingSpinner/KdsLoadingSpinner.vue.d.ts.map +0 -1
  487. package/dist/src/accessories/LoadingSpinner/enums.d.ts.map +0 -1
  488. package/dist/src/accessories/LoadingSpinner/index.d.ts.map +0 -1
  489. package/dist/src/accessories/LoadingSpinner/types.d.ts.map +0 -1
  490. package/dist/src/accessories/MissingValueIcon/KdsMissingValueIcon.vue.d.ts.map +0 -1
  491. package/dist/src/accessories/MissingValueIcon/index.d.ts.map +0 -1
  492. package/dist/src/accessories/ProgressBar/KdsProgressBar.vue.d.ts.map +0 -1
  493. package/dist/src/accessories/ProgressBar/enums.d.ts.map +0 -1
  494. package/dist/src/accessories/ProgressBar/index.d.ts.map +0 -1
  495. package/dist/src/accessories/ProgressBar/types.d.ts.map +0 -1
  496. package/dist/src/accessories/Text/KdsTextHighlight/KdsTextHighlight.vue.d.ts.map +0 -1
  497. package/dist/src/accessories/Text/KdsTextHighlight/index.d.ts.map +0 -1
  498. package/dist/src/accessories/Text/KdsTextHighlight/types.d.ts.map +0 -1
  499. package/dist/src/accessories/Text/index.d.ts.map +0 -1
  500. package/dist/src/accessories/_Accessory/_Accessory.vue.d.ts.map +0 -1
  501. package/dist/src/accessories/_Accessory/enums.d.ts +0 -15
  502. package/dist/src/accessories/_Accessory/enums.d.ts.map +0 -1
  503. package/dist/src/accessories/_Accessory/index.d.ts.map +0 -1
  504. package/dist/src/accessories/_Accessory/types.d.ts +0 -29
  505. package/dist/src/accessories/_Accessory/types.d.ts.map +0 -1
  506. package/dist/src/accessories/index.d.ts +0 -25
  507. package/dist/src/accessories/index.d.ts.map +0 -1
  508. package/dist/src/buttons/ActionButton/ActionButton.vue.d.ts.map +0 -1
  509. package/dist/src/buttons/ActionButton/enums.d.ts.map +0 -1
  510. package/dist/src/buttons/ActionButton/index.d.ts.map +0 -1
  511. package/dist/src/buttons/ActionButton/types.d.ts.map +0 -1
  512. package/dist/src/buttons/BaseButton.vue.d.ts +0 -101
  513. package/dist/src/buttons/BaseButton.vue.d.ts.map +0 -1
  514. package/dist/src/buttons/KdsButton/KdsButton.vue.d.ts +0 -48
  515. package/dist/src/buttons/KdsButton/KdsButton.vue.d.ts.map +0 -1
  516. package/dist/src/buttons/KdsButton/index.d.ts.map +0 -1
  517. package/dist/src/buttons/KdsButton/types.d.ts.map +0 -1
  518. package/dist/src/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts +0 -190
  519. package/dist/src/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts.map +0 -1
  520. package/dist/src/buttons/KdsMenuButton/index.d.ts.map +0 -1
  521. package/dist/src/buttons/KdsMenuButton/types.d.ts +0 -20
  522. package/dist/src/buttons/KdsMenuButton/types.d.ts.map +0 -1
  523. package/dist/src/buttons/KdsProgressButton/KdsProgressButton.vue.d.ts +0 -51
  524. package/dist/src/buttons/KdsProgressButton/KdsProgressButton.vue.d.ts.map +0 -1
  525. package/dist/src/buttons/KdsProgressButton/enums.d.ts.map +0 -1
  526. package/dist/src/buttons/KdsProgressButton/index.d.ts.map +0 -1
  527. package/dist/src/buttons/KdsProgressButton/types.d.ts +0 -33
  528. package/dist/src/buttons/KdsProgressButton/types.d.ts.map +0 -1
  529. package/dist/src/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts +0 -62
  530. package/dist/src/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts.map +0 -1
  531. package/dist/src/buttons/KdsSplitButton/index.d.ts.map +0 -1
  532. package/dist/src/buttons/KdsSplitButton/types.d.ts +0 -20
  533. package/dist/src/buttons/KdsSplitButton/types.d.ts.map +0 -1
  534. package/dist/src/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts +0 -52
  535. package/dist/src/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts.map +0 -1
  536. package/dist/src/buttons/KdsToggleButton/enums.d.ts +0 -6
  537. package/dist/src/buttons/KdsToggleButton/enums.d.ts.map +0 -1
  538. package/dist/src/buttons/KdsToggleButton/index.d.ts.map +0 -1
  539. package/dist/src/buttons/KdsToggleButton/types.d.ts.map +0 -1
  540. package/dist/src/buttons/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts.map +0 -1
  541. package/dist/src/buttons/ResponsiveButtonGroup/enums.d.ts.map +0 -1
  542. package/dist/src/buttons/ResponsiveButtonGroup/index.d.ts.map +0 -1
  543. package/dist/src/buttons/ResponsiveButtonGroup/mapping.d.ts +0 -150
  544. package/dist/src/buttons/ResponsiveButtonGroup/mapping.d.ts.map +0 -1
  545. package/dist/src/buttons/ResponsiveButtonGroup/types.d.ts +0 -104
  546. package/dist/src/buttons/ResponsiveButtonGroup/types.d.ts.map +0 -1
  547. package/dist/src/buttons/enums.d.ts +0 -14
  548. package/dist/src/buttons/enums.d.ts.map +0 -1
  549. package/dist/src/buttons/index.d.ts +0 -21
  550. package/dist/src/buttons/index.d.ts.map +0 -1
  551. package/dist/src/buttons/links/KdsLink/KdsLink.vue.d.ts.map +0 -1
  552. package/dist/src/buttons/links/KdsLink/enums.d.ts.map +0 -1
  553. package/dist/src/buttons/links/KdsLink/index.d.ts.map +0 -1
  554. package/dist/src/buttons/links/KdsLink/types.d.ts +0 -41
  555. package/dist/src/buttons/links/KdsLink/types.d.ts.map +0 -1
  556. package/dist/src/buttons/links/KdsLinkButton/KdsLinkButton.vue.d.ts +0 -48
  557. package/dist/src/buttons/links/KdsLinkButton/KdsLinkButton.vue.d.ts.map +0 -1
  558. package/dist/src/buttons/links/KdsLinkButton/index.d.ts.map +0 -1
  559. package/dist/src/buttons/links/KdsLinkButton/types.d.ts +0 -8
  560. package/dist/src/buttons/links/KdsLinkButton/types.d.ts.map +0 -1
  561. package/dist/src/buttons/links/docs.d.ts.map +0 -1
  562. package/dist/src/buttons/links/linkUtils.d.ts.map +0 -1
  563. package/dist/src/buttons/types.d.ts +0 -75
  564. package/dist/src/buttons/types.d.ts.map +0 -1
  565. package/dist/src/containers/ContextMenu/KdsContextMenu.vue.d.ts.map +0 -1
  566. package/dist/src/containers/ContextMenu/index.d.ts.map +0 -1
  567. package/dist/src/containers/ContextMenu/types.d.ts +0 -40
  568. package/dist/src/containers/ContextMenu/types.d.ts.map +0 -1
  569. package/dist/src/containers/FileExplorer/FileExplorerItem.vue.d.ts.map +0 -1
  570. package/dist/src/containers/FileExplorer/FileExplorerItemBack.vue.d.ts.map +0 -1
  571. package/dist/src/containers/FileExplorer/FileExplorerItemBase.vue.d.ts.map +0 -1
  572. package/dist/src/containers/FileExplorer/KdsFileExplorer.vue.d.ts.map +0 -1
  573. package/dist/src/containers/FileExplorer/enums.d.ts.map +0 -1
  574. package/dist/src/containers/FileExplorer/index.d.ts.map +0 -1
  575. package/dist/src/containers/FileExplorer/multiSelection/index.d.ts.map +0 -1
  576. package/dist/src/containers/FileExplorer/multiSelection/multiSelectionStateService.d.ts.map +0 -1
  577. package/dist/src/containers/FileExplorer/multiSelection/useFocusableMultiSelection.d.ts.map +0 -1
  578. package/dist/src/containers/FileExplorer/multiSelection/useMultiSelection.d.ts.map +0 -1
  579. package/dist/src/containers/FileExplorer/types.d.ts +0 -93
  580. package/dist/src/containers/FileExplorer/types.d.ts.map +0 -1
  581. package/dist/src/containers/FileExplorer/useItemDragging/index.d.ts.map +0 -1
  582. package/dist/src/containers/FileExplorer/useNameValidator/index.d.ts.map +0 -1
  583. package/dist/src/containers/FileExplorer/useNameValidator/useNameValidator.d.ts.map +0 -1
  584. package/dist/src/containers/FileExplorer/utils/dragGhostHelpers.d.ts.map +0 -1
  585. package/dist/src/containers/FileExplorer/utils/popoverAnchorElement.d.ts.map +0 -1
  586. package/dist/src/containers/ListContainer/KdsListContainer.vue.d.ts.map +0 -1
  587. package/dist/src/containers/ListContainer/index.d.ts.map +0 -1
  588. package/dist/src/containers/ListContainer/types.d.ts +0 -76
  589. package/dist/src/containers/ListContainer/types.d.ts.map +0 -1
  590. package/dist/src/containers/ListItem/KdsListItem/KdsListItem.vue.d.ts.map +0 -1
  591. package/dist/src/containers/ListItem/KdsListItem/demo-accessories.d.ts +0 -8
  592. package/dist/src/containers/ListItem/KdsListItem/demo-accessories.d.ts.map +0 -1
  593. package/dist/src/containers/ListItem/KdsListItem/enums.d.ts.map +0 -1
  594. package/dist/src/containers/ListItem/KdsListItem/index.d.ts.map +0 -1
  595. package/dist/src/containers/ListItem/KdsListItem/types.d.ts +0 -68
  596. package/dist/src/containers/ListItem/KdsListItem/types.d.ts.map +0 -1
  597. package/dist/src/containers/ListItem/KdsListItemButton/KdsListItemButton.vue.d.ts.map +0 -1
  598. package/dist/src/containers/ListItem/KdsListItemButton/index.d.ts.map +0 -1
  599. package/dist/src/containers/ListItem/KdsListItemButton/types.d.ts +0 -14
  600. package/dist/src/containers/ListItem/KdsListItemButton/types.d.ts.map +0 -1
  601. package/dist/src/containers/ListItem/ListItemSectionTitle/ListItemSectionTitle.vue.d.ts.map +0 -1
  602. package/dist/src/containers/ListItem/ListItemSectionTitle/index.d.ts.map +0 -1
  603. package/dist/src/containers/ListItem/ListItemSectionTitle/types.d.ts +0 -8
  604. package/dist/src/containers/ListItem/ListItemSectionTitle/types.d.ts.map +0 -1
  605. package/dist/src/containers/Menu/KdsMenu.vue.d.ts.map +0 -1
  606. package/dist/src/containers/Menu/index.d.ts.map +0 -1
  607. package/dist/src/containers/Menu/types.d.ts +0 -17
  608. package/dist/src/containers/Menu/types.d.ts.map +0 -1
  609. package/dist/src/containers/MenuContainer/KdsMenuContainer.vue.d.ts.map +0 -1
  610. package/dist/src/containers/MenuContainer/KdsMenuItem.vue.d.ts.map +0 -1
  611. package/dist/src/containers/MenuContainer/index.d.ts.map +0 -1
  612. package/dist/src/containers/MenuContainer/keys.d.ts.map +0 -1
  613. package/dist/src/containers/MenuContainer/types.d.ts +0 -152
  614. package/dist/src/containers/MenuContainer/types.d.ts.map +0 -1
  615. package/dist/src/containers/PreviewList/KdsPreviewList/KdsPreviewList.vue.d.ts.map +0 -1
  616. package/dist/src/containers/PreviewList/KdsPreviewList/index.d.ts.map +0 -1
  617. package/dist/src/containers/PreviewList/KdsPreviewList/types.d.ts +0 -45
  618. package/dist/src/containers/PreviewList/KdsPreviewList/types.d.ts.map +0 -1
  619. package/dist/src/containers/PreviewList/index.d.ts +0 -3
  620. package/dist/src/containers/PreviewList/index.d.ts.map +0 -1
  621. package/dist/src/containers/_helpers/types.d.ts.map +0 -1
  622. package/dist/src/containers/_helpers/useListItemKeyboardNav.d.ts.map +0 -1
  623. package/dist/src/containers/_helpers/useStableItemIds.d.ts.map +0 -1
  624. package/dist/src/containers/index.d.ts +0 -12
  625. package/dist/src/containers/index.d.ts.map +0 -1
  626. package/dist/src/forms/Checkbox/BaseCheckbox.vue.d.ts.map +0 -1
  627. package/dist/src/forms/Checkbox/KdsCheckbox.vue.d.ts.map +0 -1
  628. package/dist/src/forms/Checkbox/KdsCheckboxGroup.vue.d.ts.map +0 -1
  629. package/dist/src/forms/Checkbox/enums.d.ts.map +0 -1
  630. package/dist/src/forms/Checkbox/index.d.ts.map +0 -1
  631. package/dist/src/forms/Checkbox/types.d.ts.map +0 -1
  632. package/dist/src/forms/FileSelector/KdsFileSelector.vue.d.ts.map +0 -1
  633. package/dist/src/forms/FileSelector/index.d.ts.map +0 -1
  634. package/dist/src/forms/FileSelector/types.d.ts.map +0 -1
  635. package/dist/src/forms/RadioButton/KdsRadioButton.vue.d.ts.map +0 -1
  636. package/dist/src/forms/RadioButton/KdsRadioButtonGroup.vue.d.ts.map +0 -1
  637. package/dist/src/forms/RadioButton/KdsValueSwitch.vue.d.ts.map +0 -1
  638. package/dist/src/forms/RadioButton/ValueSwitchItem.vue.d.ts.map +0 -1
  639. package/dist/src/forms/RadioButton/enums.d.ts.map +0 -1
  640. package/dist/src/forms/RadioButton/index.d.ts.map +0 -1
  641. package/dist/src/forms/RadioButton/types.d.ts +0 -98
  642. package/dist/src/forms/RadioButton/types.d.ts.map +0 -1
  643. package/dist/src/forms/RadioButton/useRadioSelection.d.ts.map +0 -1
  644. package/dist/src/forms/RadioButton/useValueSwitchIconHiding.d.ts.map +0 -1
  645. package/dist/src/forms/ToggleSwitch/KdsToggleSwitch.vue.d.ts.map +0 -1
  646. package/dist/src/forms/ToggleSwitch/enums.d.ts.map +0 -1
  647. package/dist/src/forms/ToggleSwitch/index.d.ts.map +0 -1
  648. package/dist/src/forms/ToggleSwitch/types.d.ts.map +0 -1
  649. package/dist/src/forms/_helper/BaseFieldsetWrapper.vue.d.ts.map +0 -1
  650. package/dist/src/forms/_helper/BaseFormFieldWrapper.vue.d.ts.map +0 -1
  651. package/dist/src/forms/_helper/InfoPopover/InfoPopover.vue.d.ts.map +0 -1
  652. package/dist/src/forms/_helper/InfoPopover/KdsInfoToggleButton.vue.d.ts.map +0 -1
  653. package/dist/src/forms/_helper/InfoPopover/index.d.ts.map +0 -1
  654. package/dist/src/forms/_helper/InfoPopover/types.d.ts.map +0 -1
  655. package/dist/src/forms/_helper/KdsLabel.vue.d.ts.map +0 -1
  656. package/dist/src/forms/_helper/KdsSubText.vue.d.ts.map +0 -1
  657. package/dist/src/forms/_helper/VariablePopover/KdsVariableToggleButton.vue.d.ts.map +0 -1
  658. package/dist/src/forms/_helper/VariablePopover/VariablePopover.vue.d.ts.map +0 -1
  659. package/dist/src/forms/_helper/VariablePopover/index.d.ts.map +0 -1
  660. package/dist/src/forms/_helper/VariablePopover/types.d.ts.map +0 -1
  661. package/dist/src/forms/index.d.ts.map +0 -1
  662. package/dist/src/forms/inputs/BaseInput.vue.d.ts +0 -177
  663. package/dist/src/forms/inputs/BaseInput.vue.d.ts.map +0 -1
  664. package/dist/src/forms/inputs/ColorInput/ColorPicker/ColorPicker.vue.d.ts.map +0 -1
  665. package/dist/src/forms/inputs/ColorInput/ColorPicker/ColorPickerSlider.vue.d.ts.map +0 -1
  666. package/dist/src/forms/inputs/ColorInput/ColorPicker/types.d.ts.map +0 -1
  667. package/dist/src/forms/inputs/ColorInput/KdsColorInput.vue.d.ts.map +0 -1
  668. package/dist/src/forms/inputs/ColorInput/colorUtils.d.ts.map +0 -1
  669. package/dist/src/forms/inputs/ColorInput/index.d.ts.map +0 -1
  670. package/dist/src/forms/inputs/ColorInput/types.d.ts.map +0 -1
  671. package/dist/src/forms/inputs/ColorInput/useColorInputValidationOnFocusOut.d.ts.map +0 -1
  672. package/dist/src/forms/inputs/DateInput/KdsDateInput.vue.d.ts.map +0 -1
  673. package/dist/src/forms/inputs/DateInput/KdsDatePicker.vue.d.ts.map +0 -1
  674. package/dist/src/forms/inputs/DateInput/_helper/DatePickerDayGrid.vue.d.ts.map +0 -1
  675. package/dist/src/forms/inputs/DateInput/_helper/DatePickerMonthGrid.vue.d.ts.map +0 -1
  676. package/dist/src/forms/inputs/DateInput/_helper/DatePickerYearGrid.vue.d.ts.map +0 -1
  677. package/dist/src/forms/inputs/DateInput/_helper/types.d.ts.map +0 -1
  678. package/dist/src/forms/inputs/DateInput/dateUtils.d.ts.map +0 -1
  679. package/dist/src/forms/inputs/DateInput/enums.d.ts.map +0 -1
  680. package/dist/src/forms/inputs/DateInput/index.d.ts.map +0 -1
  681. package/dist/src/forms/inputs/DateInput/types.d.ts.map +0 -1
  682. package/dist/src/forms/inputs/DateInput/useDateInputMask.d.ts.map +0 -1
  683. package/dist/src/forms/inputs/DateTimeFormatInput/DateTimeFormatPopover.vue.d.ts.map +0 -1
  684. package/dist/src/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue.d.ts.map +0 -1
  685. package/dist/src/forms/inputs/DateTimeFormatInput/enums.d.ts.map +0 -1
  686. package/dist/src/forms/inputs/DateTimeFormatInput/index.d.ts.map +0 -1
  687. package/dist/src/forms/inputs/DateTimeFormatInput/types.d.ts.map +0 -1
  688. package/dist/src/forms/inputs/DateTimeInput/KdsDateTimeInput.vue.d.ts.map +0 -1
  689. package/dist/src/forms/inputs/DateTimeInput/index.d.ts.map +0 -1
  690. package/dist/src/forms/inputs/DateTimeInput/types.d.ts.map +0 -1
  691. package/dist/src/forms/inputs/IntervalInput/IntervalInputPopover.vue.d.ts.map +0 -1
  692. package/dist/src/forms/inputs/IntervalInput/KdsIntervalInput.vue.d.ts.map +0 -1
  693. package/dist/src/forms/inputs/IntervalInput/enums.d.ts.map +0 -1
  694. package/dist/src/forms/inputs/IntervalInput/index.d.ts.map +0 -1
  695. package/dist/src/forms/inputs/IntervalInput/intervalUtils.d.ts.map +0 -1
  696. package/dist/src/forms/inputs/IntervalInput/types.d.ts.map +0 -1
  697. package/dist/src/forms/inputs/NumberInput/KdsNumberInput.vue.d.ts.map +0 -1
  698. package/dist/src/forms/inputs/NumberInput/index.d.ts.map +0 -1
  699. package/dist/src/forms/inputs/NumberInput/numberParser.d.ts.map +0 -1
  700. package/dist/src/forms/inputs/NumberInput/types.d.ts.map +0 -1
  701. package/dist/src/forms/inputs/PasswordInput/KdsPasswordInput.vue.d.ts.map +0 -1
  702. package/dist/src/forms/inputs/PasswordInput/enums.d.ts.map +0 -1
  703. package/dist/src/forms/inputs/PasswordInput/index.d.ts.map +0 -1
  704. package/dist/src/forms/inputs/PasswordInput/types.d.ts.map +0 -1
  705. package/dist/src/forms/inputs/PatternInput/KdsPatternInput.vue.d.ts.map +0 -1
  706. package/dist/src/forms/inputs/PatternInput/index.d.ts.map +0 -1
  707. package/dist/src/forms/inputs/PatternInput/patternRegex.d.ts.map +0 -1
  708. package/dist/src/forms/inputs/PatternInput/types.d.ts.map +0 -1
  709. package/dist/src/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts.map +0 -1
  710. package/dist/src/forms/inputs/SearchInput/index.d.ts.map +0 -1
  711. package/dist/src/forms/inputs/SearchInput/types.d.ts +0 -50
  712. package/dist/src/forms/inputs/SearchInput/types.d.ts.map +0 -1
  713. package/dist/src/forms/inputs/TextInput/KdsTextInput.vue.d.ts.map +0 -1
  714. package/dist/src/forms/inputs/TextInput/index.d.ts.map +0 -1
  715. package/dist/src/forms/inputs/TextInput/types.d.ts.map +0 -1
  716. package/dist/src/forms/inputs/Textarea/KdsTextarea.vue.d.ts.map +0 -1
  717. package/dist/src/forms/inputs/Textarea/index.d.ts.map +0 -1
  718. package/dist/src/forms/inputs/Textarea/types.d.ts.map +0 -1
  719. package/dist/src/forms/inputs/TimeInput/KdsTimeInput.vue.d.ts.map +0 -1
  720. package/dist/src/forms/inputs/TimeInput/TimePicker.vue.d.ts.map +0 -1
  721. package/dist/src/forms/inputs/TimeInput/enums.d.ts.map +0 -1
  722. package/dist/src/forms/inputs/TimeInput/index.d.ts.map +0 -1
  723. package/dist/src/forms/inputs/TimeInput/types.d.ts.map +0 -1
  724. package/dist/src/forms/inputs/TimeInput/useTimeInputMask.d.ts.map +0 -1
  725. package/dist/src/forms/inputs/UsernameInput/KdsUsernameInput.vue.d.ts.map +0 -1
  726. package/dist/src/forms/inputs/UsernameInput/enums.d.ts.map +0 -1
  727. package/dist/src/forms/inputs/UsernameInput/index.d.ts.map +0 -1
  728. package/dist/src/forms/inputs/UsernameInput/types.d.ts.map +0 -1
  729. package/dist/src/forms/inputs/ZonedDateTimeInput/KdsZonedDateTimeInput.vue.d.ts.map +0 -1
  730. package/dist/src/forms/inputs/ZonedDateTimeInput/index.d.ts.map +0 -1
  731. package/dist/src/forms/inputs/ZonedDateTimeInput/types.d.ts.map +0 -1
  732. package/dist/src/forms/inputs/index.d.ts.map +0 -1
  733. package/dist/src/forms/inputs/types.d.ts.map +0 -1
  734. package/dist/src/forms/inputs/useInputSegments.d.ts.map +0 -1
  735. package/dist/src/forms/inputs/useInputSegments.helpers.d.ts.map +0 -1
  736. package/dist/src/forms/inputs/useInputSegmentsDnd.d.ts.map +0 -1
  737. package/dist/src/forms/inputs/useInputSegmentsMouse.d.ts.map +0 -1
  738. package/dist/src/forms/selects/Dropdown/BaseDropdown.vue.d.ts.map +0 -1
  739. package/dist/src/forms/selects/Dropdown/DropdownContainer.vue.d.ts.map +0 -1
  740. package/dist/src/forms/selects/Dropdown/KdsDropdown.vue.d.ts.map +0 -1
  741. package/dist/src/forms/selects/Dropdown/KdsMultiSelectDropdown.vue.d.ts.map +0 -1
  742. package/dist/src/forms/selects/Dropdown/MultiSelectDropdownContainer.vue.d.ts.map +0 -1
  743. package/dist/src/forms/selects/Dropdown/constants.d.ts.map +0 -1
  744. package/dist/src/forms/selects/Dropdown/index.d.ts.map +0 -1
  745. package/dist/src/forms/selects/Dropdown/types.d.ts +0 -71
  746. package/dist/src/forms/selects/Dropdown/types.d.ts.map +0 -1
  747. package/dist/src/forms/selects/MultiSelectListBox/KdsMultiSelectListBox.vue.d.ts.map +0 -1
  748. package/dist/src/forms/selects/MultiSelectListBox/index.d.ts.map +0 -1
  749. package/dist/src/forms/selects/MultiSelectListBox/types.d.ts +0 -41
  750. package/dist/src/forms/selects/MultiSelectListBox/types.d.ts.map +0 -1
  751. package/dist/src/forms/selects/MultiSelectListBox/useMultiSelectListBoxSelection.d.ts.map +0 -1
  752. package/dist/src/forms/selects/SortableListBox/KdsSortableListBox.vue.d.ts.map +0 -1
  753. package/dist/src/forms/selects/SortableListBox/index.d.ts.map +0 -1
  754. package/dist/src/forms/selects/SortableListBox/types.d.ts.map +0 -1
  755. package/dist/src/forms/selects/SortableListBox/useSortableListBoxReorder.d.ts.map +0 -1
  756. package/dist/src/forms/selects/TwinList/KdsTwinList.pageobject.d.ts.map +0 -1
  757. package/dist/src/forms/selects/TwinList/KdsTwinList.vue.d.ts.map +0 -1
  758. package/dist/src/forms/selects/TwinList/TwinListBody.vue.d.ts.map +0 -1
  759. package/dist/src/forms/selects/TwinList/TwinListHeader.vue.d.ts.map +0 -1
  760. package/dist/src/forms/selects/TwinList/enums.d.ts.map +0 -1
  761. package/dist/src/forms/selects/TwinList/index.d.ts.map +0 -1
  762. package/dist/src/forms/selects/TwinList/types.d.ts +0 -102
  763. package/dist/src/forms/selects/TwinList/types.d.ts.map +0 -1
  764. package/dist/src/forms/selects/index.d.ts.map +0 -1
  765. package/dist/src/forms/types.d.ts.map +0 -1
  766. package/dist/src/layouts/Accordion/KdsAccordion.vue.d.ts.map +0 -1
  767. package/dist/src/layouts/Accordion/index.d.ts.map +0 -1
  768. package/dist/src/layouts/Accordion/types.d.ts +0 -34
  769. package/dist/src/layouts/Accordion/types.d.ts.map +0 -1
  770. package/dist/src/layouts/Breadcrumb/BreadcrumbItem.vue.d.ts.map +0 -1
  771. package/dist/src/layouts/Breadcrumb/KdsBreadcrumb.vue.d.ts.map +0 -1
  772. package/dist/src/layouts/Breadcrumb/index.d.ts.map +0 -1
  773. package/dist/src/layouts/Breadcrumb/types.d.ts +0 -61
  774. package/dist/src/layouts/Breadcrumb/types.d.ts.map +0 -1
  775. package/dist/src/layouts/Breadcrumb/useBreadcrumbAdaptiveLayout.d.ts.map +0 -1
  776. package/dist/src/layouts/Card/BaseCard.vue.d.ts.map +0 -1
  777. package/dist/src/layouts/Card/CardHeader.vue.d.ts.map +0 -1
  778. package/dist/src/layouts/Card/KdsCard.vue.d.ts.map +0 -1
  779. package/dist/src/layouts/Card/KdsClickableCard.vue.d.ts.map +0 -1
  780. package/dist/src/layouts/Card/KdsLinkCard.vue.d.ts.map +0 -1
  781. package/dist/src/layouts/Card/KdsSelectableCard.vue.d.ts.map +0 -1
  782. package/dist/src/layouts/Card/enums.d.ts +0 -7
  783. package/dist/src/layouts/Card/enums.d.ts.map +0 -1
  784. package/dist/src/layouts/Card/index.d.ts.map +0 -1
  785. package/dist/src/layouts/Card/types.d.ts.map +0 -1
  786. package/dist/src/layouts/EmptyState/KdsEmptyState.vue.d.ts +0 -37
  787. package/dist/src/layouts/EmptyState/KdsEmptyState.vue.d.ts.map +0 -1
  788. package/dist/src/layouts/EmptyState/index.d.ts.map +0 -1
  789. package/dist/src/layouts/EmptyState/types.d.ts +0 -31
  790. package/dist/src/layouts/EmptyState/types.d.ts.map +0 -1
  791. package/dist/src/layouts/InlineMessage/KdsInlineMessage.vue.d.ts.map +0 -1
  792. package/dist/src/layouts/InlineMessage/enums.d.ts.map +0 -1
  793. package/dist/src/layouts/InlineMessage/index.d.ts.map +0 -1
  794. package/dist/src/layouts/InlineMessage/types.d.ts +0 -14
  795. package/dist/src/layouts/InlineMessage/types.d.ts.map +0 -1
  796. package/dist/src/layouts/LoadingSkeleton/KdsLoadingSkeleton.vue.d.ts.map +0 -1
  797. package/dist/src/layouts/LoadingSkeleton/LoadingSkeletonItem.vue.d.ts.map +0 -1
  798. package/dist/src/layouts/LoadingSkeleton/enums.d.ts.map +0 -1
  799. package/dist/src/layouts/LoadingSkeleton/index.d.ts.map +0 -1
  800. package/dist/src/layouts/LoadingSkeleton/types.d.ts.map +0 -1
  801. package/dist/src/layouts/Navigation/KdsNavItem/KdsNavItem.vue.d.ts.map +0 -1
  802. package/dist/src/layouts/Navigation/KdsNavItem/index.d.ts.map +0 -1
  803. package/dist/src/layouts/Navigation/KdsNavItem/types.d.ts +0 -29
  804. package/dist/src/layouts/Navigation/KdsNavItem/types.d.ts.map +0 -1
  805. package/dist/src/layouts/Navigation/KdsNavigation.vue.d.ts.map +0 -1
  806. package/dist/src/layouts/Navigation/index.d.ts.map +0 -1
  807. package/dist/src/layouts/Navigation/types.d.ts.map +0 -1
  808. package/dist/src/layouts/Panel/KdsPanel.vue.d.ts.map +0 -1
  809. package/dist/src/layouts/Panel/enums.d.ts.map +0 -1
  810. package/dist/src/layouts/Panel/index.d.ts.map +0 -1
  811. package/dist/src/layouts/Panel/types.d.ts +0 -103
  812. package/dist/src/layouts/Panel/types.d.ts.map +0 -1
  813. package/dist/src/layouts/ResizeContainer/KdsResizeContainer.vue.d.ts.map +0 -1
  814. package/dist/src/layouts/ResizeContainer/ResizeHandle/ResizeHandle.vue.d.ts.map +0 -1
  815. package/dist/src/layouts/ResizeContainer/ResizeHandle/index.d.ts.map +0 -1
  816. package/dist/src/layouts/ResizeContainer/ResizeHandle/types.d.ts.map +0 -1
  817. package/dist/src/layouts/ResizeContainer/index.d.ts.map +0 -1
  818. package/dist/src/layouts/ResizeContainer/types.d.ts.map +0 -1
  819. package/dist/src/layouts/TabBar/KdsTabBar.vue.d.ts.map +0 -1
  820. package/dist/src/layouts/TabBar/enums.d.ts.map +0 -1
  821. package/dist/src/layouts/TabBar/index.d.ts.map +0 -1
  822. package/dist/src/layouts/TabBar/types.d.ts +0 -30
  823. package/dist/src/layouts/TabBar/types.d.ts.map +0 -1
  824. package/dist/src/layouts/TabBar/useTabBarAdaptiveLayout.d.ts.map +0 -1
  825. package/dist/src/layouts/Tree/BaseTree/BaseTree.vue.d.ts +0 -138
  826. package/dist/src/layouts/Tree/BaseTree/BaseTree.vue.d.ts.map +0 -1
  827. package/dist/src/layouts/Tree/BaseTree/TreeNode.vue.d.ts.map +0 -1
  828. package/dist/src/layouts/Tree/BaseTree/context.d.ts.map +0 -1
  829. package/dist/src/layouts/Tree/BaseTree/renderNode.d.ts.map +0 -1
  830. package/dist/src/layouts/Tree/BaseTree/useTreeData.d.ts.map +0 -1
  831. package/dist/src/layouts/Tree/KdsTree.vue.d.ts.map +0 -1
  832. package/dist/src/layouts/Tree/index.d.ts.map +0 -1
  833. package/dist/src/layouts/Tree/types.d.ts +0 -127
  834. package/dist/src/layouts/Tree/types.d.ts.map +0 -1
  835. package/dist/src/layouts/Tree/useTreeSearch.d.ts.map +0 -1
  836. package/dist/src/overlays/Modal/KdsDynamicModalProvider.vue.d.ts.map +0 -1
  837. package/dist/src/overlays/Modal/KdsModal.vue.d.ts +0 -38
  838. package/dist/src/overlays/Modal/KdsModal.vue.d.ts.map +0 -1
  839. package/dist/src/overlays/Modal/KdsModalLayout.vue.d.ts.map +0 -1
  840. package/dist/src/overlays/Modal/enums.d.ts +0 -41
  841. package/dist/src/overlays/Modal/enums.d.ts.map +0 -1
  842. package/dist/src/overlays/Modal/index.d.ts.map +0 -1
  843. package/dist/src/overlays/Modal/types.d.ts +0 -54
  844. package/dist/src/overlays/Modal/types.d.ts.map +0 -1
  845. package/dist/src/overlays/Modal/useKdsDynamicModal.d.ts +0 -172
  846. package/dist/src/overlays/Modal/useKdsDynamicModal.d.ts.map +0 -1
  847. package/dist/src/overlays/Popover/KdsPopover.vue.d.ts.map +0 -1
  848. package/dist/src/overlays/Popover/enums.d.ts.map +0 -1
  849. package/dist/src/overlays/Popover/index.d.ts.map +0 -1
  850. package/dist/src/overlays/Popover/types.d.ts.map +0 -1
  851. package/dist/src/overlays/SideDrawer/KdsSideDrawer.vue.d.ts.map +0 -1
  852. package/dist/src/overlays/SideDrawer/enums.d.ts.map +0 -1
  853. package/dist/src/overlays/SideDrawer/index.d.ts.map +0 -1
  854. package/dist/src/overlays/SideDrawer/types.d.ts.map +0 -1
  855. package/dist/src/overlays/Tooltip/index.d.ts.map +0 -1
  856. package/dist/src/overlays/Tooltip/vKdsTooltip.d.ts.map +0 -1
  857. package/dist/src/overlays/index.d.ts.map +0 -1
  858. package/dist/src/richText/Description/KdsDescription.vue.d.ts.map +0 -1
  859. package/dist/src/richText/Description/index.d.ts.map +0 -1
  860. package/dist/src/richText/index.d.ts.map +0 -1
  861. /package/dist/src/{accessories → components/accessories}/Avatar/KdsAvatar.vue.d.ts +0 -0
  862. /package/dist/src/{accessories → components/accessories}/Avatar/KdsAvatarCounter.vue.d.ts +0 -0
  863. /package/dist/src/{accessories → components/accessories}/Avatar/demo-logo.d.ts +0 -0
  864. /package/dist/src/{accessories → components/accessories}/Avatar/demo-user.d.ts +0 -0
  865. /package/dist/src/{accessories → components/accessories}/Avatar/enums.d.ts +0 -0
  866. /package/dist/src/{accessories → components/accessories}/Avatar/index.d.ts +0 -0
  867. /package/dist/src/{accessories → components/accessories}/Avatar/types.d.ts +0 -0
  868. /package/dist/src/{accessories → components/accessories}/Badge/KdsBadge.vue.d.ts +0 -0
  869. /package/dist/src/{accessories → components/accessories}/Badge/enums.d.ts +0 -0
  870. /package/dist/src/{accessories → components/accessories}/Badge/index.d.ts +0 -0
  871. /package/dist/src/{accessories → components/accessories}/Badge/types.d.ts +0 -0
  872. /package/dist/src/{accessories → components/accessories}/ColorSwatch/KdsColorSwatch.vue.d.ts +0 -0
  873. /package/dist/src/{accessories → components/accessories}/ColorSwatch/index.d.ts +0 -0
  874. /package/dist/src/{accessories → components/accessories}/ColorSwatch/types.d.ts +0 -0
  875. /package/dist/src/{accessories → components/accessories}/Divider/KdsDivider.vue.d.ts +0 -0
  876. /package/dist/src/{accessories → components/accessories}/Divider/index.d.ts +0 -0
  877. /package/dist/src/{accessories → components/accessories}/DonutChart/KdsDonutChart.vue.d.ts +0 -0
  878. /package/dist/src/{accessories → components/accessories}/DonutChart/index.d.ts +0 -0
  879. /package/dist/src/{accessories → components/accessories}/DonutChart/types.d.ts +0 -0
  880. /package/dist/src/{accessories → components/accessories}/Icon/IdToIconNameMapping.d.ts +0 -0
  881. /package/dist/src/{accessories → components/accessories}/Icon/KdsDataType.vue.d.ts +0 -0
  882. /package/dist/src/{accessories → components/accessories}/Icon/KdsIcon.vue.d.ts +0 -0
  883. /package/dist/src/{accessories → components/accessories}/Icon/aliases.d.ts +0 -0
  884. /package/dist/src/{accessories → components/accessories}/Icon/enums.d.ts +0 -0
  885. /package/dist/src/{accessories → components/accessories}/Icon/index.d.ts +0 -0
  886. /package/dist/src/{accessories → components/accessories}/Icon/types.d.ts +0 -0
  887. /package/dist/src/{accessories → components/accessories}/Icon/useIcon.d.ts +0 -0
  888. /package/dist/src/{accessories → components/accessories}/KeyboardShortcut/KdsKeyboardShortcut.vue.d.ts +0 -0
  889. /package/dist/src/{accessories → components/accessories}/KeyboardShortcut/enums.d.ts +0 -0
  890. /package/dist/src/{accessories → components/accessories}/KeyboardShortcut/index.d.ts +0 -0
  891. /package/dist/src/{accessories → components/accessories}/KeyboardShortcut/types.d.ts +0 -0
  892. /package/dist/src/{accessories → components/accessories}/LiveStatus/KdsLiveStatus.vue.d.ts +0 -0
  893. /package/dist/src/{accessories → components/accessories}/LiveStatus/enums.d.ts +0 -0
  894. /package/dist/src/{accessories → components/accessories}/LiveStatus/index.d.ts +0 -0
  895. /package/dist/src/{accessories → components/accessories}/LiveStatus/types.d.ts +0 -0
  896. /package/dist/src/{accessories → components/accessories}/LoadingSpinner/KdsLoadingSpinner.vue.d.ts +0 -0
  897. /package/dist/src/{accessories → components/accessories}/LoadingSpinner/enums.d.ts +0 -0
  898. /package/dist/src/{accessories → components/accessories}/LoadingSpinner/index.d.ts +0 -0
  899. /package/dist/src/{accessories → components/accessories}/LoadingSpinner/types.d.ts +0 -0
  900. /package/dist/src/{accessories → components/accessories}/MissingValueIcon/KdsMissingValueIcon.vue.d.ts +0 -0
  901. /package/dist/src/{accessories → components/accessories}/MissingValueIcon/index.d.ts +0 -0
  902. /package/dist/src/{accessories → components/accessories}/Text/KdsTextHighlight/KdsTextHighlight.vue.d.ts +0 -0
  903. /package/dist/src/{accessories → components/accessories}/Text/KdsTextHighlight/index.d.ts +0 -0
  904. /package/dist/src/{accessories → components/accessories}/Text/KdsTextHighlight/types.d.ts +0 -0
  905. /package/dist/src/{accessories → components/accessories}/Text/index.d.ts +0 -0
  906. /package/dist/src/{accessories → components/accessories}/_Accessory/_Accessory.vue.d.ts +0 -0
  907. /package/dist/src/{accessories → components/accessories}/_Accessory/index.d.ts +0 -0
  908. /package/dist/src/{buttons → components/buttons}/ActionButton/ActionButton.vue.d.ts +0 -0
  909. /package/dist/src/{buttons → components/buttons}/ActionButton/enums.d.ts +0 -0
  910. /package/dist/src/{buttons → components/buttons}/ActionButton/index.d.ts +0 -0
  911. /package/dist/src/{buttons → components/buttons}/ActionButton/types.d.ts +0 -0
  912. /package/dist/src/{layouts → components/buttons}/Breadcrumb/BreadcrumbItem.vue.d.ts +0 -0
  913. /package/dist/src/{layouts → components/buttons}/Breadcrumb/KdsBreadcrumb.vue.d.ts +0 -0
  914. /package/dist/src/{layouts → components/buttons}/Breadcrumb/index.d.ts +0 -0
  915. /package/dist/src/{layouts → components/buttons}/Breadcrumb/useBreadcrumbAdaptiveLayout.d.ts +0 -0
  916. /package/dist/src/{buttons → components/buttons}/KdsButton/index.d.ts +0 -0
  917. /package/dist/src/{buttons → components/buttons}/KdsButton/types.d.ts +0 -0
  918. /package/dist/src/{buttons → components/buttons}/KdsMenuButton/index.d.ts +0 -0
  919. /package/dist/src/{buttons → components/buttons}/KdsProgressButton/enums.d.ts +0 -0
  920. /package/dist/src/{buttons → components/buttons}/KdsProgressButton/index.d.ts +0 -0
  921. /package/dist/src/{buttons → components/buttons}/KdsSplitButton/index.d.ts +0 -0
  922. /package/dist/src/{buttons → components/buttons}/KdsToggleButton/index.d.ts +0 -0
  923. /package/dist/src/{buttons → components/buttons}/KdsToggleButton/types.d.ts +0 -0
  924. /package/dist/src/{buttons → components/buttons}/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts +0 -0
  925. /package/dist/src/{buttons → components/buttons}/ResponsiveButtonGroup/enums.d.ts +0 -0
  926. /package/dist/src/{buttons → components/buttons}/ResponsiveButtonGroup/index.d.ts +0 -0
  927. /package/dist/src/{buttons → components/buttons}/links/KdsLink/KdsLink.vue.d.ts +0 -0
  928. /package/dist/src/{buttons → components/buttons}/links/KdsLink/enums.d.ts +0 -0
  929. /package/dist/src/{buttons → components/buttons}/links/KdsLink/index.d.ts +0 -0
  930. /package/dist/src/{buttons → components/buttons}/links/KdsLinkButton/index.d.ts +0 -0
  931. /package/dist/src/{buttons → components/buttons}/links/docs.d.ts +0 -0
  932. /package/dist/src/{buttons → components/buttons}/links/linkUtils.d.ts +0 -0
  933. /package/dist/src/{layouts → components/feedback}/EmptyState/index.d.ts +0 -0
  934. /package/dist/src/{layouts → components/feedback}/InlineMessage/KdsInlineMessage.vue.d.ts +0 -0
  935. /package/dist/src/{layouts → components/feedback}/InlineMessage/enums.d.ts +0 -0
  936. /package/dist/src/{layouts → components/feedback}/InlineMessage/index.d.ts +0 -0
  937. /package/dist/src/{layouts → components/feedback}/LoadingSkeleton/KdsLoadingSkeleton.vue.d.ts +0 -0
  938. /package/dist/src/{layouts → components/feedback}/LoadingSkeleton/LoadingSkeletonItem.vue.d.ts +0 -0
  939. /package/dist/src/{layouts → components/feedback}/LoadingSkeleton/enums.d.ts +0 -0
  940. /package/dist/src/{layouts → components/feedback}/LoadingSkeleton/index.d.ts +0 -0
  941. /package/dist/src/{layouts → components/feedback}/LoadingSkeleton/types.d.ts +0 -0
  942. /package/dist/src/{accessories → components/feedback}/ProgressBar/KdsProgressBar.vue.d.ts +0 -0
  943. /package/dist/src/{accessories → components/feedback}/ProgressBar/enums.d.ts +0 -0
  944. /package/dist/src/{accessories → components/feedback}/ProgressBar/index.d.ts +0 -0
  945. /package/dist/src/{accessories → components/feedback}/ProgressBar/types.d.ts +0 -0
  946. /package/dist/src/{forms → components/forms}/Checkbox/BaseCheckbox.vue.d.ts +0 -0
  947. /package/dist/src/{forms → components/forms}/Checkbox/KdsCheckbox.vue.d.ts +0 -0
  948. /package/dist/src/{forms → components/forms}/Checkbox/KdsCheckboxGroup.vue.d.ts +0 -0
  949. /package/dist/src/{forms → components/forms}/Checkbox/enums.d.ts +0 -0
  950. /package/dist/src/{forms → components/forms}/Checkbox/index.d.ts +0 -0
  951. /package/dist/src/{forms → components/forms}/Checkbox/types.d.ts +0 -0
  952. /package/dist/src/{forms → components/forms}/FileSelector/KdsFileSelector.vue.d.ts +0 -0
  953. /package/dist/src/{forms → components/forms}/FileSelector/index.d.ts +0 -0
  954. /package/dist/src/{forms → components/forms}/FileSelector/types.d.ts +0 -0
  955. /package/dist/src/{forms → components/forms}/RadioButton/KdsRadioButton.vue.d.ts +0 -0
  956. /package/dist/src/{forms → components/forms}/RadioButton/KdsRadioButtonGroup.vue.d.ts +0 -0
  957. /package/dist/src/{forms → components/forms}/RadioButton/KdsValueSwitch.vue.d.ts +0 -0
  958. /package/dist/src/{forms → components/forms}/RadioButton/ValueSwitchItem.vue.d.ts +0 -0
  959. /package/dist/src/{forms → components/forms}/RadioButton/enums.d.ts +0 -0
  960. /package/dist/src/{forms → components/forms}/RadioButton/index.d.ts +0 -0
  961. /package/dist/src/{forms → components/forms}/RadioButton/useRadioSelection.d.ts +0 -0
  962. /package/dist/src/{forms → components/forms}/RadioButton/useValueSwitchIconHiding.d.ts +0 -0
  963. /package/dist/src/{forms → components/forms}/ToggleSwitch/KdsToggleSwitch.vue.d.ts +0 -0
  964. /package/dist/src/{forms → components/forms}/ToggleSwitch/enums.d.ts +0 -0
  965. /package/dist/src/{forms → components/forms}/ToggleSwitch/index.d.ts +0 -0
  966. /package/dist/src/{forms → components/forms}/ToggleSwitch/types.d.ts +0 -0
  967. /package/dist/src/{forms → components/forms}/_helper/BaseFieldsetWrapper.vue.d.ts +0 -0
  968. /package/dist/src/{forms → components/forms}/_helper/BaseFormFieldWrapper.vue.d.ts +0 -0
  969. /package/dist/src/{forms → components/forms}/_helper/InfoPopover/InfoPopover.vue.d.ts +0 -0
  970. /package/dist/src/{forms → components/forms}/_helper/InfoPopover/KdsInfoToggleButton.vue.d.ts +0 -0
  971. /package/dist/src/{forms → components/forms}/_helper/InfoPopover/index.d.ts +0 -0
  972. /package/dist/src/{forms → components/forms}/_helper/InfoPopover/types.d.ts +0 -0
  973. /package/dist/src/{forms → components/forms}/_helper/KdsLabel.vue.d.ts +0 -0
  974. /package/dist/src/{forms → components/forms}/_helper/KdsSubText.vue.d.ts +0 -0
  975. /package/dist/src/{forms → components/forms}/_helper/VariablePopover/KdsVariableToggleButton.vue.d.ts +0 -0
  976. /package/dist/src/{forms → components/forms}/_helper/VariablePopover/VariablePopover.vue.d.ts +0 -0
  977. /package/dist/src/{forms → components/forms}/_helper/VariablePopover/index.d.ts +0 -0
  978. /package/dist/src/{forms → components/forms}/_helper/VariablePopover/types.d.ts +0 -0
  979. /package/dist/src/{forms → components/forms}/index.d.ts +0 -0
  980. /package/dist/src/{forms → components/forms}/inputs/ColorInput/ColorPicker/ColorPicker.vue.d.ts +0 -0
  981. /package/dist/src/{forms → components/forms}/inputs/ColorInput/ColorPicker/ColorPickerSlider.vue.d.ts +0 -0
  982. /package/dist/src/{forms → components/forms}/inputs/ColorInput/ColorPicker/types.d.ts +0 -0
  983. /package/dist/src/{forms → components/forms}/inputs/ColorInput/KdsColorInput.vue.d.ts +0 -0
  984. /package/dist/src/{forms → components/forms}/inputs/ColorInput/colorUtils.d.ts +0 -0
  985. /package/dist/src/{forms → components/forms}/inputs/ColorInput/index.d.ts +0 -0
  986. /package/dist/src/{forms → components/forms}/inputs/ColorInput/types.d.ts +0 -0
  987. /package/dist/src/{forms → components/forms}/inputs/ColorInput/useColorInputValidationOnFocusOut.d.ts +0 -0
  988. /package/dist/src/{forms → components/forms}/inputs/DateInput/KdsDateInput.vue.d.ts +0 -0
  989. /package/dist/src/{forms → components/forms}/inputs/DateInput/KdsDatePicker.vue.d.ts +0 -0
  990. /package/dist/src/{forms → components/forms}/inputs/DateInput/_helper/DatePickerDayGrid.vue.d.ts +0 -0
  991. /package/dist/src/{forms → components/forms}/inputs/DateInput/_helper/DatePickerMonthGrid.vue.d.ts +0 -0
  992. /package/dist/src/{forms → components/forms}/inputs/DateInput/_helper/DatePickerYearGrid.vue.d.ts +0 -0
  993. /package/dist/src/{forms → components/forms}/inputs/DateInput/_helper/types.d.ts +0 -0
  994. /package/dist/src/{forms → components/forms}/inputs/DateInput/dateUtils.d.ts +0 -0
  995. /package/dist/src/{forms → components/forms}/inputs/DateInput/enums.d.ts +0 -0
  996. /package/dist/src/{forms → components/forms}/inputs/DateInput/index.d.ts +0 -0
  997. /package/dist/src/{forms → components/forms}/inputs/DateInput/types.d.ts +0 -0
  998. /package/dist/src/{forms → components/forms}/inputs/DateInput/useDateInputMask.d.ts +0 -0
  999. /package/dist/src/{forms → components/forms}/inputs/DateTimeFormatInput/DateTimeFormatPopover.vue.d.ts +0 -0
  1000. /package/dist/src/{forms → components/forms}/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue.d.ts +0 -0
  1001. /package/dist/src/{forms → components/forms}/inputs/DateTimeFormatInput/enums.d.ts +0 -0
  1002. /package/dist/src/{forms → components/forms}/inputs/DateTimeFormatInput/index.d.ts +0 -0
  1003. /package/dist/src/{forms → components/forms}/inputs/DateTimeFormatInput/types.d.ts +0 -0
  1004. /package/dist/src/{forms → components/forms}/inputs/DateTimeInput/KdsDateTimeInput.vue.d.ts +0 -0
  1005. /package/dist/src/{forms → components/forms}/inputs/DateTimeInput/index.d.ts +0 -0
  1006. /package/dist/src/{forms → components/forms}/inputs/DateTimeInput/types.d.ts +0 -0
  1007. /package/dist/src/{forms → components/forms}/inputs/IntervalInput/IntervalInputPopover.vue.d.ts +0 -0
  1008. /package/dist/src/{forms → components/forms}/inputs/IntervalInput/KdsIntervalInput.vue.d.ts +0 -0
  1009. /package/dist/src/{forms → components/forms}/inputs/IntervalInput/enums.d.ts +0 -0
  1010. /package/dist/src/{forms → components/forms}/inputs/IntervalInput/index.d.ts +0 -0
  1011. /package/dist/src/{forms → components/forms}/inputs/IntervalInput/intervalUtils.d.ts +0 -0
  1012. /package/dist/src/{forms → components/forms}/inputs/IntervalInput/types.d.ts +0 -0
  1013. /package/dist/src/{forms → components/forms}/inputs/NumberInput/KdsNumberInput.vue.d.ts +0 -0
  1014. /package/dist/src/{forms → components/forms}/inputs/NumberInput/index.d.ts +0 -0
  1015. /package/dist/src/{forms → components/forms}/inputs/NumberInput/numberParser.d.ts +0 -0
  1016. /package/dist/src/{forms → components/forms}/inputs/NumberInput/types.d.ts +0 -0
  1017. /package/dist/src/{forms → components/forms}/inputs/PasswordInput/KdsPasswordInput.vue.d.ts +0 -0
  1018. /package/dist/src/{forms → components/forms}/inputs/PasswordInput/enums.d.ts +0 -0
  1019. /package/dist/src/{forms → components/forms}/inputs/PasswordInput/index.d.ts +0 -0
  1020. /package/dist/src/{forms → components/forms}/inputs/PasswordInput/types.d.ts +0 -0
  1021. /package/dist/src/{forms → components/forms}/inputs/PatternInput/KdsPatternInput.vue.d.ts +0 -0
  1022. /package/dist/src/{forms → components/forms}/inputs/PatternInput/index.d.ts +0 -0
  1023. /package/dist/src/{forms → components/forms}/inputs/PatternInput/patternRegex.d.ts +0 -0
  1024. /package/dist/src/{forms → components/forms}/inputs/PatternInput/types.d.ts +0 -0
  1025. /package/dist/src/{forms → components/forms}/inputs/SearchInput/KdsSearchInput.vue.d.ts +0 -0
  1026. /package/dist/src/{forms → components/forms}/inputs/SearchInput/index.d.ts +0 -0
  1027. /package/dist/src/{forms → components/forms}/inputs/TextInput/KdsTextInput.vue.d.ts +0 -0
  1028. /package/dist/src/{forms → components/forms}/inputs/TextInput/index.d.ts +0 -0
  1029. /package/dist/src/{forms → components/forms}/inputs/TextInput/types.d.ts +0 -0
  1030. /package/dist/src/{forms → components/forms}/inputs/Textarea/KdsTextarea.vue.d.ts +0 -0
  1031. /package/dist/src/{forms → components/forms}/inputs/Textarea/index.d.ts +0 -0
  1032. /package/dist/src/{forms → components/forms}/inputs/Textarea/types.d.ts +0 -0
  1033. /package/dist/src/{forms → components/forms}/inputs/TimeInput/KdsTimeInput.vue.d.ts +0 -0
  1034. /package/dist/src/{forms → components/forms}/inputs/TimeInput/TimePicker.vue.d.ts +0 -0
  1035. /package/dist/src/{forms → components/forms}/inputs/TimeInput/enums.d.ts +0 -0
  1036. /package/dist/src/{forms → components/forms}/inputs/TimeInput/index.d.ts +0 -0
  1037. /package/dist/src/{forms → components/forms}/inputs/TimeInput/types.d.ts +0 -0
  1038. /package/dist/src/{forms → components/forms}/inputs/TimeInput/useTimeInputMask.d.ts +0 -0
  1039. /package/dist/src/{forms → components/forms}/inputs/UsernameInput/KdsUsernameInput.vue.d.ts +0 -0
  1040. /package/dist/src/{forms → components/forms}/inputs/UsernameInput/enums.d.ts +0 -0
  1041. /package/dist/src/{forms → components/forms}/inputs/UsernameInput/index.d.ts +0 -0
  1042. /package/dist/src/{forms → components/forms}/inputs/UsernameInput/types.d.ts +0 -0
  1043. /package/dist/src/{forms → components/forms}/inputs/ZonedDateTimeInput/KdsZonedDateTimeInput.vue.d.ts +0 -0
  1044. /package/dist/src/{forms → components/forms}/inputs/ZonedDateTimeInput/index.d.ts +0 -0
  1045. /package/dist/src/{forms → components/forms}/inputs/ZonedDateTimeInput/types.d.ts +0 -0
  1046. /package/dist/src/{forms → components/forms}/inputs/index.d.ts +0 -0
  1047. /package/dist/src/{forms → components/forms}/inputs/types.d.ts +0 -0
  1048. /package/dist/src/{forms → components/forms}/inputs/useInputSegments.d.ts +0 -0
  1049. /package/dist/src/{forms → components/forms}/inputs/useInputSegments.helpers.d.ts +0 -0
  1050. /package/dist/src/{forms → components/forms}/inputs/useInputSegmentsDnd.d.ts +0 -0
  1051. /package/dist/src/{forms → components/forms}/inputs/useInputSegmentsMouse.d.ts +0 -0
  1052. /package/dist/src/{forms → components/forms}/selects/Dropdown/BaseDropdown.vue.d.ts +0 -0
  1053. /package/dist/src/{forms → components/forms}/selects/Dropdown/DropdownContainer.vue.d.ts +0 -0
  1054. /package/dist/src/{forms → components/forms}/selects/Dropdown/KdsDropdown.vue.d.ts +0 -0
  1055. /package/dist/src/{forms → components/forms}/selects/Dropdown/KdsMultiSelectDropdown.vue.d.ts +0 -0
  1056. /package/dist/src/{forms → components/forms}/selects/Dropdown/MultiSelectDropdownContainer.vue.d.ts +0 -0
  1057. /package/dist/src/{forms → components/forms}/selects/Dropdown/constants.d.ts +0 -0
  1058. /package/dist/src/{forms → components/forms}/selects/Dropdown/index.d.ts +0 -0
  1059. /package/dist/src/{forms → components/forms}/selects/MultiSelectListBox/KdsMultiSelectListBox.vue.d.ts +0 -0
  1060. /package/dist/src/{forms → components/forms}/selects/MultiSelectListBox/index.d.ts +0 -0
  1061. /package/dist/src/{forms → components/forms}/selects/MultiSelectListBox/useMultiSelectListBoxSelection.d.ts +0 -0
  1062. /package/dist/src/{forms → components/forms}/selects/SortableListBox/KdsSortableListBox.vue.d.ts +0 -0
  1063. /package/dist/src/{forms → components/forms}/selects/SortableListBox/index.d.ts +0 -0
  1064. /package/dist/src/{forms → components/forms}/selects/SortableListBox/types.d.ts +0 -0
  1065. /package/dist/src/{forms → components/forms}/selects/SortableListBox/useSortableListBoxReorder.d.ts +0 -0
  1066. /package/dist/src/{forms → components/forms}/selects/TwinList/KdsTwinList.pageobject.d.ts +0 -0
  1067. /package/dist/src/{forms → components/forms}/selects/TwinList/KdsTwinList.vue.d.ts +0 -0
  1068. /package/dist/src/{forms → components/forms}/selects/TwinList/TwinListBody.vue.d.ts +0 -0
  1069. /package/dist/src/{forms → components/forms}/selects/TwinList/TwinListHeader.vue.d.ts +0 -0
  1070. /package/dist/src/{forms → components/forms}/selects/TwinList/enums.d.ts +0 -0
  1071. /package/dist/src/{forms → components/forms}/selects/TwinList/index.d.ts +0 -0
  1072. /package/dist/src/{forms → components/forms}/selects/index.d.ts +0 -0
  1073. /package/dist/src/{forms → components/forms}/types.d.ts +0 -0
  1074. /package/dist/src/{containers → components/lists}/ContextMenu/KdsContextMenu.vue.d.ts +0 -0
  1075. /package/dist/src/{containers → components/lists}/ContextMenu/index.d.ts +0 -0
  1076. /package/dist/src/{containers → components/lists}/ListContainer/KdsListContainer.vue.d.ts +0 -0
  1077. /package/dist/src/{containers/ListItem/KdsListItem → components/lists/ListContainer/ListItem/ListItem}/KdsListItem.vue.d.ts +0 -0
  1078. /package/dist/src/{containers/ListItem/KdsListItem → components/lists/ListContainer/ListItem/ListItem}/enums.d.ts +0 -0
  1079. /package/dist/src/{containers/ListItem/KdsListItem → components/lists/ListContainer/ListItem/ListItem}/index.d.ts +0 -0
  1080. /package/dist/src/{containers/ListItem/KdsListItemButton → components/lists/ListContainer/ListItem/ListItemButton}/KdsListItemButton.vue.d.ts +0 -0
  1081. /package/dist/src/{containers/ListItem/KdsListItemButton → components/lists/ListContainer/ListItem/ListItemButton}/index.d.ts +0 -0
  1082. /package/dist/src/{containers → components/lists/ListContainer}/ListItem/ListItemSectionTitle/ListItemSectionTitle.vue.d.ts +0 -0
  1083. /package/dist/src/{containers → components/lists/ListContainer}/ListItem/ListItemSectionTitle/index.d.ts +0 -0
  1084. /package/dist/src/{containers → components/lists}/ListContainer/index.d.ts +0 -0
  1085. /package/dist/src/{containers → components/lists}/Menu/KdsMenu.vue.d.ts +0 -0
  1086. /package/dist/src/{containers → components/lists}/Menu/index.d.ts +0 -0
  1087. /package/dist/src/{containers → components/lists}/MenuContainer/KdsMenuContainer.vue.d.ts +0 -0
  1088. /package/dist/src/{containers → components/lists}/MenuContainer/KdsMenuItem.vue.d.ts +0 -0
  1089. /package/dist/src/{containers → components/lists}/MenuContainer/index.d.ts +0 -0
  1090. /package/dist/src/{containers → components/lists}/MenuContainer/keys.d.ts +0 -0
  1091. /package/dist/src/{richText → components/richText}/Description/KdsDescription.vue.d.ts +0 -0
  1092. /package/dist/src/{richText → components/richText}/Description/index.d.ts +0 -0
  1093. /package/dist/src/{richText → components/richText}/index.d.ts +0 -0
  1094. /package/dist/src/layouts/{Card → cards}/BaseCard.vue.d.ts +0 -0
  1095. /package/dist/src/layouts/{Card → cards}/CardHeader.vue.d.ts +0 -0
  1096. /package/dist/src/layouts/{Card → cards}/KdsCard.vue.d.ts +0 -0
  1097. /package/dist/src/layouts/{Card → cards}/KdsClickableCard.vue.d.ts +0 -0
  1098. /package/dist/src/layouts/{Card → cards}/KdsLinkCard.vue.d.ts +0 -0
  1099. /package/dist/src/layouts/{Card → cards}/KdsSelectableCard.vue.d.ts +0 -0
  1100. /package/dist/src/layouts/{Card → cards}/index.d.ts +0 -0
  1101. /package/dist/src/layouts/{Card → cards}/types.d.ts +0 -0
  1102. /package/dist/src/{containers → layouts/explorer}/FileExplorer/FileExplorerItem.vue.d.ts +0 -0
  1103. /package/dist/src/{containers → layouts/explorer}/FileExplorer/FileExplorerItemBack.vue.d.ts +0 -0
  1104. /package/dist/src/{containers → layouts/explorer}/FileExplorer/FileExplorerItemBase.vue.d.ts +0 -0
  1105. /package/dist/src/{containers → layouts/explorer}/FileExplorer/KdsFileExplorer.vue.d.ts +0 -0
  1106. /package/dist/src/{containers → layouts/explorer}/FileExplorer/enums.d.ts +0 -0
  1107. /package/dist/src/{containers → layouts/explorer}/FileExplorer/index.d.ts +0 -0
  1108. /package/dist/src/{containers → layouts/explorer}/FileExplorer/multiSelection/index.d.ts +0 -0
  1109. /package/dist/src/{containers → layouts/explorer}/FileExplorer/multiSelection/multiSelectionStateService.d.ts +0 -0
  1110. /package/dist/src/{containers → layouts/explorer}/FileExplorer/multiSelection/useFocusableMultiSelection.d.ts +0 -0
  1111. /package/dist/src/{containers → layouts/explorer}/FileExplorer/multiSelection/useMultiSelection.d.ts +0 -0
  1112. /package/dist/src/{containers → layouts/explorer}/FileExplorer/useItemDragging/index.d.ts +0 -0
  1113. /package/dist/src/{containers → layouts/explorer}/FileExplorer/useNameValidator/index.d.ts +0 -0
  1114. /package/dist/src/{containers → layouts/explorer}/FileExplorer/useNameValidator/useNameValidator.d.ts +0 -0
  1115. /package/dist/src/{containers → layouts/explorer}/FileExplorer/utils/dragGhostHelpers.d.ts +0 -0
  1116. /package/dist/src/{containers → layouts/explorer}/FileExplorer/utils/popoverAnchorElement.d.ts +0 -0
  1117. /package/dist/src/{containers/PreviewList/KdsPreviewList → layouts/explorer/PreviewList}/KdsPreviewList.vue.d.ts +0 -0
  1118. /package/dist/src/{containers/PreviewList/KdsPreviewList → layouts/explorer/PreviewList}/index.d.ts +0 -0
  1119. /package/dist/src/layouts/{Tree → explorer/Tree}/BaseTree/TreeNode.vue.d.ts +0 -0
  1120. /package/dist/src/layouts/{Tree → explorer/Tree}/BaseTree/context.d.ts +0 -0
  1121. /package/dist/src/layouts/{Tree → explorer/Tree}/BaseTree/renderNode.d.ts +0 -0
  1122. /package/dist/src/layouts/{Tree → explorer/Tree}/BaseTree/useTreeData.d.ts +0 -0
  1123. /package/dist/src/layouts/{Tree → explorer/Tree}/KdsTree.vue.d.ts +0 -0
  1124. /package/dist/src/layouts/{Tree → explorer/Tree}/index.d.ts +0 -0
  1125. /package/dist/src/layouts/{Tree → explorer/Tree}/useTreeSearch.d.ts +0 -0
  1126. /package/dist/src/{overlays → layouts/overlays}/Modal/KdsDynamicModalProvider.vue.d.ts +0 -0
  1127. /package/dist/src/{overlays → layouts/overlays}/Modal/KdsModalLayout.vue.d.ts +0 -0
  1128. /package/dist/src/{overlays → layouts/overlays}/Modal/index.d.ts +0 -0
  1129. /package/dist/src/{overlays → layouts/overlays}/Popover/KdsPopover.vue.d.ts +0 -0
  1130. /package/dist/src/{overlays → layouts/overlays}/Popover/enums.d.ts +0 -0
  1131. /package/dist/src/{overlays → layouts/overlays}/Popover/index.d.ts +0 -0
  1132. /package/dist/src/{overlays → layouts/overlays}/Popover/types.d.ts +0 -0
  1133. /package/dist/src/{overlays → layouts/overlays}/SideDrawer/KdsSideDrawer.vue.d.ts +0 -0
  1134. /package/dist/src/{overlays → layouts/overlays}/SideDrawer/enums.d.ts +0 -0
  1135. /package/dist/src/{overlays → layouts/overlays}/SideDrawer/index.d.ts +0 -0
  1136. /package/dist/src/{overlays → layouts/overlays}/SideDrawer/types.d.ts +0 -0
  1137. /package/dist/src/{overlays → layouts/overlays}/Tooltip/index.d.ts +0 -0
  1138. /package/dist/src/{overlays → layouts/overlays}/Tooltip/vKdsTooltip.d.ts +0 -0
  1139. /package/dist/src/{overlays → layouts/overlays}/index.d.ts +0 -0
  1140. /package/dist/src/layouts/{Accordion → panels/Accordion}/KdsAccordion.vue.d.ts +0 -0
  1141. /package/dist/src/layouts/{Accordion → panels/Accordion}/index.d.ts +0 -0
  1142. /package/dist/src/layouts/{Navigation → panels/Navigation}/KdsNavItem/KdsNavItem.vue.d.ts +0 -0
  1143. /package/dist/src/layouts/{Navigation → panels/Navigation}/KdsNavItem/index.d.ts +0 -0
  1144. /package/dist/src/layouts/{Navigation → panels/Navigation}/KdsNavigation.vue.d.ts +0 -0
  1145. /package/dist/src/layouts/{Navigation → panels/Navigation}/index.d.ts +0 -0
  1146. /package/dist/src/layouts/{Navigation → panels/Navigation}/types.d.ts +0 -0
  1147. /package/dist/src/layouts/{Panel → panels/Panel}/KdsPanel.vue.d.ts +0 -0
  1148. /package/dist/src/layouts/{Panel → panels/Panel}/enums.d.ts +0 -0
  1149. /package/dist/src/layouts/{Panel → panels/Panel}/index.d.ts +0 -0
  1150. /package/dist/src/layouts/{ResizeContainer → panels/ResizeContainer}/KdsResizeContainer.vue.d.ts +0 -0
  1151. /package/dist/src/layouts/{ResizeContainer → panels/ResizeContainer}/ResizeHandle/ResizeHandle.vue.d.ts +0 -0
  1152. /package/dist/src/layouts/{ResizeContainer → panels/ResizeContainer}/ResizeHandle/index.d.ts +0 -0
  1153. /package/dist/src/layouts/{ResizeContainer → panels/ResizeContainer}/ResizeHandle/types.d.ts +0 -0
  1154. /package/dist/src/layouts/{ResizeContainer → panels/ResizeContainer}/index.d.ts +0 -0
  1155. /package/dist/src/layouts/{ResizeContainer → panels/ResizeContainer}/types.d.ts +0 -0
  1156. /package/dist/src/layouts/{TabBar → panels/TabBar}/KdsTabBar.vue.d.ts +0 -0
  1157. /package/dist/src/layouts/{TabBar → panels/TabBar}/enums.d.ts +0 -0
  1158. /package/dist/src/layouts/{TabBar → panels/TabBar}/index.d.ts +0 -0
  1159. /package/dist/src/layouts/{TabBar → panels/TabBar}/useTabBarAdaptiveLayout.d.ts +0 -0
  1160. /package/dist/src/{containers/_helpers → util}/types.d.ts +0 -0
  1161. /package/dist/src/{containers/_helpers → util}/useListItemKeyboardNav.d.ts +0 -0
  1162. /package/dist/src/{containers/_helpers → util}/useStableItemIds.d.ts +0 -0
@@ -0,0 +1,3942 @@
1
+ import { l as _plugin_vue_export_helper_default } from "./KdsPopover-DBU9xVEK.js";
2
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createPropsRestProxy, createSlots, createVNode, defineComponent, effectScope, guardReactiveProps, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, onMounted, openBlock, readonly, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRef, unref, useCssVars, useId, useModel, useTemplateRef, watch, withCtx, withDirectives, withModifiers } from "vue";
3
+ import { useEventListener, useMutationObserver, useResizeObserver } from "@vueuse/core";
4
+ import './overlays.css';//#region src/util/useKdsIsTruncated.ts
5
+ function elementOverflowsHorizontally(element) {
6
+ if (!element) return false;
7
+ return element.scrollWidth > element.clientWidth;
8
+ }
9
+ function elementOverflowsVertically(element) {
10
+ if (!element) return false;
11
+ return element.scrollHeight > element.clientHeight;
12
+ }
13
+ /**
14
+ * Tracks whether the content of an element is visually truncated.
15
+ *
16
+ * Detects both horizontal truncation (e.g. `text-overflow: ellipsis`)
17
+ * and vertical truncation (e.g. `-webkit-line-clamp`).
18
+ *
19
+ * This can be used to set tooltips or other UI affordances when text is cut off.
20
+ * Changing the size of the provided element based on this composable may result in an infinite loop!
21
+ *
22
+ * @param elementRef - A ref pointing to the element that might be truncated.
23
+ * @returns An object containing a reactive `isTruncated` ref.
24
+ */
25
+ function useKdsIsTruncated(elementRef) {
26
+ const isTruncated = ref(false);
27
+ const checkTruncation = () => {
28
+ isTruncated.value = elementOverflowsHorizontally(elementRef.value) || elementOverflowsVertically(elementRef.value);
29
+ };
30
+ useResizeObserver(elementRef, checkTruncation);
31
+ useMutationObserver(elementRef, checkTruncation, {
32
+ childList: true,
33
+ characterData: true,
34
+ subtree: true,
35
+ attributes: true,
36
+ attributeFilter: ["class", "style"]
37
+ });
38
+ return { isTruncated };
39
+ }
40
+ //#endregion
41
+ //#region src/layouts/overlays/Tooltip/vKdsTooltip.ts
42
+ var SHOW_DELAY = 450;
43
+ var HIDE_DELAY = 150;
44
+ var stateMap = /* @__PURE__ */ new WeakMap();
45
+ var visibleCount = 0;
46
+ var currentVisible = null;
47
+ function generateTooltipDiv(text) {
48
+ const div = document.createElement("div");
49
+ div.classList.add("kds-tooltip");
50
+ div.textContent = text;
51
+ return div;
52
+ }
53
+ function getText(binding) {
54
+ const value = binding.value;
55
+ if (value === null || value === void 0 || value === "") return null;
56
+ return String(value);
57
+ }
58
+ function isTruncatedMod(binding) {
59
+ return binding.arg === "truncated";
60
+ }
61
+ function elementIsTruncated(el) {
62
+ return elementOverflowsHorizontally(el) || elementOverflowsVertically(el);
63
+ }
64
+ function appendAnchorName(el, anchorName) {
65
+ const existing = el.style.getPropertyValue("anchor-name");
66
+ const names = existing ? existing.split(",").map((n) => n.trim()).filter(Boolean) : [];
67
+ if (!names.includes(anchorName)) names.push(anchorName);
68
+ el.style.setProperty("anchor-name", names.join(", "));
69
+ }
70
+ function removeAnchorName(el, anchorName) {
71
+ const existing = el.style.getPropertyValue("anchor-name");
72
+ const names = existing ? existing.split(",").map((n) => n.trim()).filter((n) => n !== anchorName) : [];
73
+ if (names.length > 0) el.style.setProperty("anchor-name", names.join(", "));
74
+ else el.style.removeProperty("anchor-name");
75
+ }
76
+ function createPopover(triggerEl, binding) {
77
+ const popover = generateTooltipDiv(getText(binding) ?? "");
78
+ popover.setAttribute("popover", "manual");
79
+ popover.setAttribute("role", "tooltip");
80
+ popover.setAttribute("aria-hidden", "true");
81
+ const id = `kds-tooltip-${crypto.randomUUID()}`;
82
+ popover.id = id;
83
+ if (!isTruncatedMod(binding)) triggerEl.setAttribute("aria-describedby", id);
84
+ const anchorName = `--kds-tooltip-anchor-${id}`;
85
+ appendAnchorName(triggerEl, anchorName);
86
+ popover.style.setProperty("position-anchor", anchorName);
87
+ return {
88
+ popover,
89
+ anchorName
90
+ };
91
+ }
92
+ function attachPopover(triggerEl, state) {
93
+ if (state.attached) return;
94
+ state.attached = true;
95
+ const root = triggerEl.getRootNode();
96
+ (root === document ? document.body : root).appendChild(state.popoverEl);
97
+ }
98
+ function detachPopover(state) {
99
+ if (!state.attached) return;
100
+ state.attached = false;
101
+ state.popoverEl.remove();
102
+ }
103
+ function cancelTimers(state) {
104
+ if (state.showTimer !== null) {
105
+ clearTimeout(state.showTimer);
106
+ state.showTimer = null;
107
+ }
108
+ if (state.hideTimer !== null) {
109
+ clearTimeout(state.hideTimer);
110
+ state.hideTimer = null;
111
+ }
112
+ }
113
+ function hidePopover(state) {
114
+ if (!state.visible) return;
115
+ state.visible = false;
116
+ visibleCount--;
117
+ if (currentVisible === state) currentVisible = null;
118
+ try {
119
+ state.popoverEl.hidePopover();
120
+ } catch {}
121
+ detachPopover(state);
122
+ }
123
+ function showPopover(triggerEl, state) {
124
+ if (state.visible) return;
125
+ if (currentVisible && currentVisible !== state) {
126
+ cancelTimers(currentVisible);
127
+ hidePopover(currentVisible);
128
+ }
129
+ appendAnchorName(triggerEl, state.anchorName);
130
+ attachPopover(triggerEl, state);
131
+ try {
132
+ state.popoverEl.showPopover();
133
+ } catch {}
134
+ state.visible = true;
135
+ visibleCount++;
136
+ currentVisible = state;
137
+ }
138
+ function scheduleShow(triggerEl, state, delay) {
139
+ cancelTimers(state);
140
+ if (state.dismissed) return;
141
+ state.showTimer = setTimeout(() => {
142
+ state.showTimer = null;
143
+ showPopover(triggerEl, state);
144
+ }, delay);
145
+ }
146
+ function scheduleHide(state) {
147
+ cancelTimers(state);
148
+ state.hideTimer = setTimeout(() => {
149
+ state.hideTimer = null;
150
+ hidePopover(state);
151
+ }, HIDE_DELAY);
152
+ }
153
+ function mount(triggerEl, binding) {
154
+ if (getText(binding) === null) return;
155
+ const { popover: popoverEl, anchorName } = createPopover(triggerEl, binding);
156
+ const state = {
157
+ popoverEl,
158
+ anchorName,
159
+ showTimer: null,
160
+ hideTimer: null,
161
+ dismissed: false,
162
+ visible: false,
163
+ attached: false,
164
+ scope: effectScope()
165
+ };
166
+ stateMap.set(triggerEl, state);
167
+ const onMouseEnter = () => {
168
+ state.dismissed = false;
169
+ if (isTruncatedMod(binding) && !elementIsTruncated(triggerEl)) return;
170
+ scheduleShow(triggerEl, state, visibleCount > 0 ? 0 : SHOW_DELAY);
171
+ };
172
+ const onMouseLeave = () => {
173
+ scheduleHide(state);
174
+ };
175
+ const onFocusIn = () => {
176
+ state.dismissed = false;
177
+ if (isTruncatedMod(binding) && !elementIsTruncated(triggerEl)) return;
178
+ if (triggerEl.matches(":focus-visible")) scheduleShow(triggerEl, state, 0);
179
+ };
180
+ const onFocusOut = () => {
181
+ cancelTimers(state);
182
+ hidePopover(state);
183
+ };
184
+ const onDocumentKeyDown = (e) => {
185
+ if (e.key === "Escape" && state.visible) {
186
+ cancelTimers(state);
187
+ hidePopover(state);
188
+ state.dismissed = true;
189
+ }
190
+ };
191
+ const onPopoverMouseEnter = () => {
192
+ cancelTimers(state);
193
+ };
194
+ const onPopoverMouseLeave = () => {
195
+ scheduleHide(state);
196
+ };
197
+ const onScroll = () => {
198
+ cancelTimers(state);
199
+ if (state.visible) hidePopover(state);
200
+ };
201
+ state.scope.run(() => {
202
+ useEventListener(triggerEl, "mouseenter", onMouseEnter);
203
+ useEventListener(triggerEl, "mouseleave", onMouseLeave);
204
+ useEventListener(triggerEl, "focusin", onFocusIn);
205
+ useEventListener(triggerEl, "focusout", onFocusOut);
206
+ useEventListener(document, "keydown", onDocumentKeyDown, true);
207
+ useEventListener(document, "scroll", onScroll, true);
208
+ useEventListener(popoverEl, "mouseenter", onPopoverMouseEnter);
209
+ useEventListener(popoverEl, "mouseleave", onPopoverMouseLeave);
210
+ });
211
+ }
212
+ function unmount(triggerEl, binding) {
213
+ const state = stateMap.get(triggerEl);
214
+ if (state) {
215
+ state.scope.stop();
216
+ cancelTimers(state);
217
+ hidePopover(state);
218
+ removeAnchorName(triggerEl, state.anchorName);
219
+ stateMap.delete(triggerEl);
220
+ }
221
+ if (!binding || !isTruncatedMod(binding)) triggerEl.removeAttribute("aria-describedby");
222
+ }
223
+ var vKdsTooltip = {
224
+ mounted(el, binding) {
225
+ mount(el, binding);
226
+ },
227
+ updated(el, binding) {
228
+ const state = stateMap.get(el);
229
+ const newText = getText(binding);
230
+ if (newText === null) {
231
+ if (state) unmount(el, binding);
232
+ return;
233
+ }
234
+ if (!state) {
235
+ mount(el, binding);
236
+ return;
237
+ }
238
+ state.popoverEl.textContent = newText;
239
+ },
240
+ unmounted(el, binding) {
241
+ unmount(el, binding);
242
+ }
243
+ };
244
+ //#endregion
245
+ //#region \0rolldown_dynamic_import_helper.js
246
+ var _rolldown_dynamic_import_helper_default = (glob, path, segments) => {
247
+ const query = path.lastIndexOf("?");
248
+ const v = glob[query === -1 || query < path.lastIndexOf("/") ? path : path.slice(0, query)];
249
+ if (v) return typeof v === "function" ? v() : Promise.resolve(v);
250
+ return new Promise((_, reject) => {
251
+ (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + path + (path.split("/").length !== segments ? ". Note that variables only represent file names one level deep." : ""))));
252
+ });
253
+ };
254
+ //#endregion
255
+ //#region src/components/accessories/Icon/useIcon.ts
256
+ var iconCache = /* @__PURE__ */ new Map();
257
+ var iconLoadPromises = /* @__PURE__ */ new Map();
258
+ function useIcon({ name, folder }) {
259
+ const iconComponent = shallowRef(null);
260
+ const status = shallowRef("loading");
261
+ watch(() => name.value, (newName) => {
262
+ const cacheKey = `${folder}/${newName}`;
263
+ if (iconCache.has(cacheKey)) {
264
+ iconComponent.value = iconCache.get(cacheKey);
265
+ status.value = "loaded";
266
+ return;
267
+ }
268
+ status.value = "loading";
269
+ let loadPromise = iconLoadPromises.get(cacheKey);
270
+ if (!loadPromise) {
271
+ loadPromise = _rolldown_dynamic_import_helper_default(/* #__PURE__ */ Object.assign({
272
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/add-user.svg": () => import("./add-user-D9Ee2TYN.js"),
273
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/ai-general.svg": () => import("./ai-general-Cur17ALs.js"),
274
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/annotation-mode.svg": () => import("./annotation-mode-BuZZm_bF.js"),
275
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/arrow-down.svg": () => import("./arrow-down-TYsyKoOg.js"),
276
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/arrow-up.svg": () => import("./arrow-up-CvPeUcDb.js"),
277
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/arrows-expand.svg": () => import("./arrows-expand-B3j5PiBo.js"),
278
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/arrows-move.svg": () => import("./arrows-move-l-9Q8RLx.js"),
279
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/arrows-order.svg": () => import("./arrows-order-C3KfpB6w.js"),
280
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/auto-configure.svg": () => import("./auto-configure-CRqXfxg9.js"),
281
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/back.svg": () => import("./back-CTFlpLAV.js"),
282
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/bold.svg": () => import("./bold-_dXNDeen.js"),
283
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/calendar.svg": () => import("./calendar-FiSvffVW.js"),
284
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/case-sensitive.svg": () => import("./case-sensitive-DO9PmrYZ.js"),
285
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/cell-renderer.svg": () => import("./cell-renderer-CRE9rNpm.js"),
286
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/center-aligned.svg": () => import("./center-aligned-4Wd8BspF.js"),
287
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/checkmark.svg": () => import("./checkmark-B7b3H2yL.js"),
288
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/chevron-down.svg": () => import("./chevron-down-Dumg332k.js"),
289
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/chevron-left-double.svg": () => import("./chevron-left-double-CSvxc-P4.js"),
290
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/chevron-left.svg": () => import("./chevron-left-BbFoKkn4.js"),
291
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/chevron-right-double.svg": () => import("./chevron-right-double-CHaKKaOb.js"),
292
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/chevron-right.svg": () => import("./chevron-right-BEFgSvKg.js"),
293
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/chevron-up.svg": () => import("./chevron-up-aWsmK8-z.js"),
294
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/circle-error.svg": () => import("./circle-error-UtFE7VMs.js"),
295
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/circle-info.svg": () => import("./circle-info-CVqUdHYS.js"),
296
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/circle-question.svg": () => import("./circle-question-BfEnFD0f.js"),
297
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/circle-success.svg": () => import("./circle-success-CA9_uYZd.js"),
298
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/circle-unchecked.svg": () => import("./circle-unchecked-Bo68JN7u.js"),
299
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/cloud-download.svg": () => import("./cloud-download-cBY7CrY8.js"),
300
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/cloud-knime.svg": () => import("./cloud-knime-ClNulevy.js"),
301
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/cloud-pending-changes.svg": () => import("./cloud-pending-changes-YZ1GMMJs.js"),
302
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/cloud-synced.svg": () => import("./cloud-synced-6rUrgH7y.js"),
303
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/cloud-upload.svg": () => import("./cloud-upload-CmD3er8K.js"),
304
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/cloud-workflow.svg": () => import("./cloud-workflow-Np7_Plth.js"),
305
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/code-block.svg": () => import("./code-block-BXoI9EDp.js"),
306
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/collection.svg": () => import("./collection-DoG2xaMt.js"),
307
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/color-picker.svg": () => import("./color-picker-DN44Txbm.js"),
308
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/column-width.svg": () => import("./column-width-B6zflBTv.js"),
309
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/comment.svg": () => import("./comment-De4Uf7vZ.js"),
310
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/component.svg": () => import("./component-qNY0fSrM.js"),
311
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/connection.svg": () => import("./connection-B8pE08-E.js"),
312
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/copy.svg": () => import("./copy-LLZlIJXC.js"),
313
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/cursor.svg": () => import("./cursor-CLK8GE-2.js"),
314
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/data-app.svg": () => import("./data-app-BA4jpS01.js"),
315
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/data-value-view.svg": () => import("./data-value-view-BimuTgAC.js"),
316
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/date-time.svg": () => import("./date-time--ikjrxdn.js"),
317
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/db-browse.svg": () => import("./db-browse-CyASJ-2r.js"),
318
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/db-database.svg": () => import("./db-database-B5E4ObPL.js"),
319
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/db-fetch.svg": () => import("./db-fetch-D5btsr3E.js"),
320
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/db-schema.svg": () => import("./db-schema-Cw3XJt8J.js"),
321
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/db-table-view.svg": () => import("./db-table-view-CYls-yJm.js"),
322
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/db-table.svg": () => import("./db-table-BAoXPAqx.js"),
323
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/deploy.svg": () => import("./deploy-BQKjOupe.js"),
324
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/detect.svg": () => import("./detect-Dxedf42C.js"),
325
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/divider.svg": () => import("./divider-ClPilfNJ.js"),
326
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/duplicate.svg": () => import("./duplicate-CFeQXVVJ.js"),
327
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/duration.svg": () => import("./duration-Bp-JtK0N.js"),
328
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/edit.svg": () => import("./edit-BkIf9l_I.js"),
329
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/education.svg": () => import("./education-BBPaZ9bB.js"),
330
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/error-panel.svg": () => import("./error-panel-BvHeFPzA.js"),
331
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/execute-all.svg": () => import("./execute-all-D6AGIyz-.js"),
332
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/execute.svg": () => import("./execute-DBWxaXJ0.js"),
333
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/expand-panel.svg": () => import("./expand-panel-DlGmHjTH.js"),
334
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/extension-community.svg": () => import("./extension-community-BxmhxaIU.js"),
335
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/extension.svg": () => import("./extension-3MTVWXNI.js"),
336
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/external-link.svg": () => import("./external-link-Cp68qGP0.js"),
337
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/eye.svg": () => import("./eye-PTj_JcHT.js"),
338
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/feedback.svg": () => import("./feedback-bWfaEzle.js"),
339
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/file-export.svg": () => import("./file-export-BxZdQNAO.js"),
340
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/file-text.svg": () => import("./file-text-DfVxN_z5.js"),
341
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/file.svg": () => import("./file-Cm-SDEzE.js"),
342
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/filter.svg": () => import("./filter-C20NbVLH.js"),
343
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/flow-variable-default.svg": () => import("./flow-variable-default-qCdqQbeF.js"),
344
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/flow-variable-in-out.svg": () => import("./flow-variable-in-out-4HpZmEWg.js"),
345
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/flow-variable-in.svg": () => import("./flow-variable-in-BEnsyyYF.js"),
346
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/flow-variable-out.svg": () => import("./flow-variable-out-wpTWWMKS.js"),
347
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/folder-move.svg": () => import("./folder-move-kJgVbUZo.js"),
348
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/folder-plus.svg": () => import("./folder-plus-eLB75rJ2.js"),
349
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/folder-search.svg": () => import("./folder-search-Ch0lW_a9.js"),
350
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/folder-workflow.svg": () => import("./folder-workflow-DA176H3o.js"),
351
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/folder.svg": () => import("./folder-CIsti-VA.js"),
352
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/forum.svg": () => import("./forum-BzOt8fSb.js"),
353
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/function-catalog.svg": () => import("./function-catalog-DfIJFuHg.js"),
354
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/hide-eye.svg": () => import("./hide-eye-Ec_Eihnh.js"),
355
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/home.svg": () => import("./home-B0zJSQO_.js"),
356
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/import-table.svg": () => import("./import-table-DM2iQXz0.js"),
357
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/import.svg": () => import("./import-DWWyEmra.js"),
358
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/info.svg": () => import("./info-CJ2OZk4_.js"),
359
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/insert-left.svg": () => import("./insert-left-C7NdqKmf.js"),
360
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/insert-right.svg": () => import("./insert-right-DKdg2MBz.js"),
361
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/interval.svg": () => import("./interval-CrXRipiU.js"),
362
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/italic.svg": () => import("./italic-BIDvkXy_.js"),
363
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/key.svg": () => import("./key-Bp2wG-2z.js"),
364
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/layout-editor.svg": () => import("./layout-editor--nbtrUFF.js"),
365
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/left-aligned.svg": () => import("./left-aligned-CtYWiopa.js"),
366
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/like.svg": () => import("./like-Cjq2IL6w.js"),
367
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/limit.svg": () => import("./limit-0I9qNp0w.js"),
368
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/link.svg": () => import("./link-BjyJjSWp.js"),
369
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/linked-component.svg": () => import("./linked-component-DrONiWS4.js"),
370
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/linked-metanode.svg": () => import("./linked-metanode-BEXaMLO0.js"),
371
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/list-bulletpoint.svg": () => import("./list-bulletpoint-CzhUPszI.js"),
372
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/list-number.svg": () => import("./list-number-_IdTsPsH.js"),
373
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/list-thumbs.svg": () => import("./list-thumbs-DxOhPHzW.js"),
374
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/list.svg": () => import("./list-POyL_fnF.js"),
375
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/local-filesystem.svg": () => import("./local-filesystem-CXJmY7k7.js"),
376
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/lock.svg": () => import("./lock-BDNUzSyI.js"),
377
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/login.svg": () => import("./login-CmQnzF1E.js"),
378
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/menu.svg": () => import("./menu-kBS9_x8e.js"),
379
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/metanode.svg": () => import("./metanode-DieExSD6.js"),
380
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/mini-map.svg": () => import("./mini-map-h8is6OrO.js"),
381
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/minimize-dialog.svg": () => import("./minimize-dialog-CMFsPxbI.js"),
382
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/minimize-side-panel.svg": () => import("./minimize-side-panel-DdhGyILH.js"),
383
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/minus.svg": () => import("./minus-DG6HyW-r.js"),
384
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/more-actions.svg": () => import("./more-actions-C5lCnDAa.js"),
385
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/more-connections.svg": () => import("./more-connections-BcYzk3dq.js"),
386
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/node-stack.svg": () => import("./node-stack-BzfQ7xPK.js"),
387
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/nodes-align-horiz.svg": () => import("./nodes-align-horiz-DmP06bbh.js"),
388
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/nodes-align-vert.svg": () => import("./nodes-align-vert-DNUx1lBG.js"),
389
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/open-in-new-window.svg": () => import("./open-in-new-window-CJ443ZDe.js"),
390
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/pan-mode.svg": () => import("./pan-mode-BnU7u9yT.js"),
391
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/parameter.svg": () => import("./parameter-DrbeyzYv.js"),
392
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/path-separator.svg": () => import("./path-separator-6okwyOJ6.js"),
393
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/pending-changes.svg": () => import("./pending-changes-cXTpfgBQ.js"),
394
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/pin.svg": () => import("./pin-ClOQOUqm.js"),
395
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/placeholder.svg": () => import("./placeholder-CmJL63HK.js"),
396
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/plus.svg": () => import("./plus-nccKkYiC.js"),
397
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/python.svg": () => import("./python-CdxBpAq5.js"),
398
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/quote.svg": () => import("./quote-CKMkT9MW.js"),
399
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/random-seed.svg": () => import("./random-seed-I165l5et.js"),
400
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/re-execution.svg": () => import("./re-execution-U-VUXbQ4.js"),
401
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/redo.svg": () => import("./redo-DUCjWUzk.js"),
402
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/regex.svg": () => import("./regex-Z0j-8rtt.js"),
403
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/reload.svg": () => import("./reload-DEMnpS9j.js"),
404
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/rename.svg": () => import("./rename-CQLpE_Pq.js"),
405
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/replace.svg": () => import("./replace-16ayXUtT.js"),
406
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/reset-all.svg": () => import("./reset-all-eOSnkYcG.js"),
407
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/resume-execution.svg": () => import("./resume-execution-iqZEcSUD.js"),
408
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/right-aligned.svg": () => import("./right-aligned-GDCxE8wl.js"),
409
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/rocket.svg": () => import("./rocket-CcFeytlk.js"),
410
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/save-as.svg": () => import("./save-as-YwKwDTkf.js"),
411
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/save.svg": () => import("./save-BzAPOFl5.js"),
412
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/schedule.svg": () => import("./schedule-LqI0l9l0.js"),
413
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/search.svg": () => import("./search-CBsgtBI3.js"),
414
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/secret-store.svg": () => import("./secret-store-CNGLJxk4.js"),
415
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/selected-cancel.svg": () => import("./selected-cancel-ChFs-WpW.js"),
416
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/selected-execution.svg": () => import("./selected-execution-EdEnJH25.js"),
417
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/selected-reset.svg": () => import("./selected-reset-BNyFkIg2.js"),
418
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/send.svg": () => import("./send-DAa1SRbX.js"),
419
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/server-rack-workflow.svg": () => import("./server-rack-workflow-B8r77eqK.js"),
420
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/service.svg": () => import("./service-EziATJfx.js"),
421
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/settings.svg": () => import("./settings-C32r_FAS.js"),
422
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/share.svg": () => import("./share-BbIVjatO.js"),
423
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/shortcuts.svg": () => import("./shortcuts-Cj0NsXKm.js"),
424
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/sort-ascending.svg": () => import("./sort-ascending-DgRbOEGU.js"),
425
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/sort-descending.svg": () => import("./sort-descending-BjDeIRpO.js"),
426
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/space-local.svg": () => import("./space-local-B3FLYgDP.js"),
427
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/space-private.svg": () => import("./space-private-BjpFkbXk.js"),
428
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/space.svg": () => import("./space-BnS7bD4u.js"),
429
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/stepwise-execution.svg": () => import("./stepwise-execution-CNoDXin0.js"),
430
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/stop.svg": () => import("./stop-CcDr3VC6.js"),
431
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/strikethrough.svg": () => import("./strikethrough-CA5SZeo8.js"),
432
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/table-statistics.svg": () => import("./table-statistics-DemcTVzy.js"),
433
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/table.svg": () => import("./table-BhuibEZw.js"),
434
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/tag.svg": () => import("./tag-g9-KErUn.js"),
435
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/team.svg": () => import("./team-C841dQ4N.js"),
436
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/template-gallery.svg": () => import("./template-gallery-CCDTL90P.js"),
437
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/text.svg": () => import("./text-szmbjD4i.js"),
438
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/textstyles.svg": () => import("./textstyles-CcoQMKsn.js"),
439
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/thumbs-down.svg": () => import("./thumbs-down-VKlLQEYH.js"),
440
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/thumbs-up.svg": () => import("./thumbs-up-i3hLKCTO.js"),
441
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/time.svg": () => import("./time-XN7sAUH-.js"),
442
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/to-bottom.svg": () => import("./to-bottom-CjDRIoZq.js"),
443
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/to-top.svg": () => import("./to-top-enlznKoE.js"),
444
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/trash.svg": () => import("./trash-QtOP2Tmv.js"),
445
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/trigger.svg": () => import("./trigger-BHVlCoqg.js"),
446
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/underline.svg": () => import("./underline-BfjjrGT7.js"),
447
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/undo.svg": () => import("./undo-D8kTVReZ.js"),
448
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/unlink.svg": () => import("./unlink-Ch9yC7A9.js"),
449
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/update-file.svg": () => import("./update-file-BCv5h_3L.js"),
450
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/usage.svg": () => import("./usage-yV_1Wlkx.js"),
451
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/user.svg": () => import("./user-CVvfxiGJ.js"),
452
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/validate.svg": () => import("./validate-G38eJa1b.js"),
453
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/version.svg": () => import("./version-DWvVsp8U.js"),
454
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/view-cards.svg": () => import("./view-cards-xk20zAC-.js"),
455
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/view-list.svg": () => import("./view-list-fU1pKCPC.js"),
456
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/view-tree.svg": () => import("./view-tree-CjJCCpuk.js"),
457
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/warning.svg": () => import("./warning-D340VNcm.js"),
458
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/workflow.svg": () => import("./workflow-KXW5I2rt.js"),
459
+ "../../../../node_modules/@knime/kds-styles/dist/img/icons/x-close.svg": () => import("./x-close-2xiLF07L.js"),
460
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/audio-datatype.svg": () => import("./audio-datatype-B0g6Brd-.js"),
461
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/binary-object-datatype.svg": () => import("./binary-object-datatype-DNPwnKRT.js"),
462
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/bit-byte-vector-datatype.svg": () => import("./bit-byte-vector-datatype-XApNVPDD.js"),
463
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/boolean-datatype.svg": () => import("./boolean-datatype-CLs6TRrq.js"),
464
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/collection-list-datatype.svg": () => import("./collection-list-datatype-DCRDcH2R.js"),
465
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/collection-set-datatype.svg": () => import("./collection-set-datatype-CjK0E8Js.js"),
466
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/date-datatype.svg": () => import("./date-datatype-DOIZVECX.js"),
467
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/date-time-local-datatype.svg": () => import("./date-time-local-datatype-BJlEZvPH.js"),
468
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/date-time-zoned-datatype.svg": () => import("./date-time-zoned-datatype-C50dVdY2.js"),
469
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/default-extension-datatype.svg": () => import("./default-extension-datatype-8T-OVOk6.js"),
470
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/document-datatype.svg": () => import("./document-datatype-DXkO5JMg.js"),
471
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/duration-date-based-datatype.svg": () => import("./duration-date-based-datatype-9yHiEj0o.js"),
472
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/duration-time-based-datatype.svg": () => import("./duration-time-based-datatype-DpCetgRM.js"),
473
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/geo-datatype.svg": () => import("./geo-datatype-DkG3iiMf.js"),
474
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/helm-datatype.svg": () => import("./helm-datatype-DV384xnE.js"),
475
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/image-png-datatype.svg": () => import("./image-png-datatype-B0ksrYK6.js"),
476
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/image-svg-datatype.svg": () => import("./image-svg-datatype-BHfEIJNK.js"),
477
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/json-datatype.svg": () => import("./json-datatype-CdiPloWT.js"),
478
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/labeling-datatype.svg": () => import("./labeling-datatype-4SUcyb9B.js"),
479
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/linear-notation-molecule.svg": () => import("./linear-notation-molecule-RgsQuoGZ.js"),
480
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/message-datatype.svg": () => import("./message-datatype-G2uxqoI5.js"),
481
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/microscope.svg": () => import("./microscope-CbZlrmhr.js"),
482
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/model-pmml-datatype.svg": () => import("./model-pmml-datatype-B-_JhNXA.js"),
483
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/molecule.svg": () => import("./molecule-C4qtce9q.js"),
484
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/number-double-datatype.svg": () => import("./number-double-datatype-BxkUtyf2.js"),
485
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/number-double-vector-datatype.svg": () => import("./number-double-vector-datatype-CrVACVTe.js"),
486
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/number-integer-datatype.svg": () => import("./number-integer-datatype-f5ovYHvq.js"),
487
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/path-datatype.svg": () => import("./path-datatype-8ieLlI-K.js"),
488
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/string-datatype.svg": () => import("./string-datatype-C9p5pKm6.js"),
489
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/string-vector-datatype.svg": () => import("./string-vector-datatype-BsLQtmJ7.js"),
490
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/subgraph-datatype.svg": () => import("./subgraph-datatype-CN53UDq5.js"),
491
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/term-datatype.svg": () => import("./term-datatype-DPbklymE.js"),
492
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/test-tube.svg": () => import("./test-tube-C6g6m4zY.js"),
493
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/time-datatype.svg": () => import("./time-datatype-OdimrjnK.js"),
494
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/tool-datatype.svg": () => import("./tool-datatype-_NWQDgex.js"),
495
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/unknown-datatype.svg": () => import("./unknown-datatype-v5jQutBJ.js"),
496
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/uri-datatype.svg": () => import("./uri-datatype-D24nBC-p.js"),
497
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-boolean.svg": () => import("./variable-boolean-D5so-YqU.js"),
498
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-collection-boolean.svg": () => import("./variable-collection-boolean-Cousb70z.js"),
499
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-collection-double.svg": () => import("./variable-collection-double-C4_hXdDq.js"),
500
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-collection-integer.svg": () => import("./variable-collection-integer-CUiqfIiy.js"),
501
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-collection-string.svg": () => import("./variable-collection-string-DORR-nZG.js"),
502
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-conda-environment.svg": () => import("./variable-conda-environment-BMjJp0Nj.js"),
503
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-credential.svg": () => import("./variable-credential-CdJHots5.js"),
504
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-integer.svg": () => import("./variable-integer-D9BJxOub.js"),
505
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-number-double.svg": () => import("./variable-number-double-oZloipJL.js"),
506
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-path.svg": () => import("./variable-path-DeigeuII.js"),
507
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-string.svg": () => import("./variable-string-NomCqUqm.js"),
508
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/variable-unknown.svg": () => import("./variable-unknown-COTsrgsl.js"),
509
+ "../../../../node_modules/@knime/kds-styles/dist/img/type-icons/xml-datatype.svg": () => import("./xml-datatype-BnMaieSR.js")
510
+ }), `../../../../node_modules/@knime/kds-styles/dist/img/${folder}/${newName}.svg`, 11).then((module) => {
511
+ const component = markRaw(module.default);
512
+ iconCache.set(cacheKey, component);
513
+ iconLoadPromises.delete(cacheKey);
514
+ return component;
515
+ }).catch((error) => {
516
+ iconLoadPromises.delete(cacheKey);
517
+ throw error;
518
+ });
519
+ iconLoadPromises.set(cacheKey, loadPromise);
520
+ }
521
+ loadPromise.then((component) => {
522
+ if (name.value !== newName) return;
523
+ iconComponent.value = component;
524
+ status.value = "loaded";
525
+ }).catch((error) => {
526
+ if (error.name === "AbortError") return;
527
+ if (name.value !== newName) return;
528
+ console.error(`Failed to load icon "${newName}" from folder "${folder}":`, error);
529
+ iconComponent.value = null;
530
+ status.value = "error";
531
+ });
532
+ }, { immediate: true });
533
+ return {
534
+ iconComponent: readonly(iconComponent),
535
+ status: readonly(status)
536
+ };
537
+ }
538
+ //#endregion
539
+ //#region src/components/accessories/Icon/KdsIcon.vue?vue&type=script&setup=true&lang.ts
540
+ var _hoisted_1$8 = ["data-kds-icon-name"];
541
+ //#endregion
542
+ //#region src/components/accessories/Icon/KdsIcon.vue
543
+ var KdsIcon_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
544
+ __name: "KdsIcon",
545
+ props: {
546
+ name: {},
547
+ size: { default: "medium" },
548
+ disabled: {
549
+ type: Boolean,
550
+ default: false
551
+ }
552
+ },
553
+ setup(__props, { expose: __expose }) {
554
+ const props = createPropsRestProxy(__props, ["size", "disabled"]);
555
+ const { iconComponent, status } = useIcon({
556
+ name: toRef(() => props.name),
557
+ folder: "icons"
558
+ });
559
+ /**
560
+ * Reactive loading status of the icon module. Whenever `name` changes,
561
+ * `status` becomes `"loading"` until it resolves to `"loaded"` or `"error"`
562
+ * — so it can cycle through these states multiple times over the component's
563
+ * lifetime (cached icons resolve synchronously to `"loaded"`). Useful for
564
+ * consumers that need to coordinate rendering timing (e.g. wait for the icon
565
+ * before measuring layout).
566
+ */
567
+ __expose({ status });
568
+ return (_ctx, _cache) => {
569
+ return unref(iconComponent) ? (openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent)), {
570
+ key: 0,
571
+ class: normalizeClass([
572
+ "kds-icon",
573
+ __props.size,
574
+ { disabled: __props.disabled }
575
+ ]),
576
+ "data-kds-icon-name": props.name,
577
+ "aria-hidden": "true",
578
+ focusable: "false"
579
+ }, null, 8, ["class", "data-kds-icon-name"])) : (openBlock(), createElementBlock("span", {
580
+ key: 1,
581
+ class: normalizeClass([
582
+ "kds-icon",
583
+ __props.size,
584
+ { disabled: __props.disabled }
585
+ ]),
586
+ "data-kds-icon-name": props.name,
587
+ "aria-hidden": "true",
588
+ focusable: "false"
589
+ }, null, 10, _hoisted_1$8));
590
+ };
591
+ }
592
+ }), [["__scopeId", "data-v-c1a42494"]]);
593
+ //#endregion
594
+ //#region ../../node_modules/.pnpm/pretty-bytes@7.1.0/node_modules/pretty-bytes/index.js
595
+ var BYTE_UNITS = [
596
+ "B",
597
+ "kB",
598
+ "MB",
599
+ "GB",
600
+ "TB",
601
+ "PB",
602
+ "EB",
603
+ "ZB",
604
+ "YB"
605
+ ];
606
+ var BIBYTE_UNITS = [
607
+ "B",
608
+ "KiB",
609
+ "MiB",
610
+ "GiB",
611
+ "TiB",
612
+ "PiB",
613
+ "EiB",
614
+ "ZiB",
615
+ "YiB"
616
+ ];
617
+ var BIT_UNITS = [
618
+ "b",
619
+ "kbit",
620
+ "Mbit",
621
+ "Gbit",
622
+ "Tbit",
623
+ "Pbit",
624
+ "Ebit",
625
+ "Zbit",
626
+ "Ybit"
627
+ ];
628
+ var BIBIT_UNITS = [
629
+ "b",
630
+ "kibit",
631
+ "Mibit",
632
+ "Gibit",
633
+ "Tibit",
634
+ "Pibit",
635
+ "Eibit",
636
+ "Zibit",
637
+ "Yibit"
638
+ ];
639
+ var toLocaleString = (number, locale, options) => {
640
+ let result = number;
641
+ if (typeof locale === "string" || Array.isArray(locale)) result = number.toLocaleString(locale, options);
642
+ else if (locale === true || options !== void 0) result = number.toLocaleString(void 0, options);
643
+ return result;
644
+ };
645
+ var log10 = (numberOrBigInt) => {
646
+ if (typeof numberOrBigInt === "number") return Math.log10(numberOrBigInt);
647
+ const string = numberOrBigInt.toString(10);
648
+ return string.length + Math.log10(`0.${string.slice(0, 15)}`);
649
+ };
650
+ var log = (numberOrBigInt) => {
651
+ if (typeof numberOrBigInt === "number") return Math.log(numberOrBigInt);
652
+ return log10(numberOrBigInt) * Math.log(10);
653
+ };
654
+ var divide = (numberOrBigInt, divisor) => {
655
+ if (typeof numberOrBigInt === "number") return numberOrBigInt / divisor;
656
+ const integerPart = numberOrBigInt / BigInt(divisor);
657
+ const remainder = numberOrBigInt % BigInt(divisor);
658
+ return Number(integerPart) + Number(remainder) / divisor;
659
+ };
660
+ var applyFixedWidth = (result, fixedWidth) => {
661
+ if (fixedWidth === void 0) return result;
662
+ if (typeof fixedWidth !== "number" || !Number.isSafeInteger(fixedWidth) || fixedWidth < 0) throw new TypeError(`Expected fixedWidth to be a non-negative integer, got ${typeof fixedWidth}: ${fixedWidth}`);
663
+ if (fixedWidth === 0) return result;
664
+ return result.length < fixedWidth ? result.padStart(fixedWidth, " ") : result;
665
+ };
666
+ var buildLocaleOptions = (options) => {
667
+ const { minimumFractionDigits, maximumFractionDigits } = options;
668
+ if (minimumFractionDigits === void 0 && maximumFractionDigits === void 0) return;
669
+ return {
670
+ ...minimumFractionDigits !== void 0 && { minimumFractionDigits },
671
+ ...maximumFractionDigits !== void 0 && { maximumFractionDigits },
672
+ roundingMode: "trunc"
673
+ };
674
+ };
675
+ function prettyBytes(number, options) {
676
+ if (typeof number !== "bigint" && !Number.isFinite(number)) throw new TypeError(`Expected a finite number, got ${typeof number}: ${number}`);
677
+ options = {
678
+ bits: false,
679
+ binary: false,
680
+ space: true,
681
+ nonBreakingSpace: false,
682
+ ...options
683
+ };
684
+ const UNITS = options.bits ? options.binary ? BIBIT_UNITS : BIT_UNITS : options.binary ? BIBYTE_UNITS : BYTE_UNITS;
685
+ const separator = options.space ? options.nonBreakingSpace ? "\xA0" : " " : "";
686
+ const isZero = typeof number === "number" ? number === 0 : number === 0n;
687
+ if (options.signed && isZero) return applyFixedWidth(` 0${separator}${UNITS[0]}`, options.fixedWidth);
688
+ const isNegative = number < 0;
689
+ const prefix = isNegative ? "-" : options.signed ? "+" : "";
690
+ if (isNegative) number = -number;
691
+ const localeOptions = buildLocaleOptions(options);
692
+ let result;
693
+ if (number < 1) result = prefix + toLocaleString(number, options.locale, localeOptions) + separator + UNITS[0];
694
+ else {
695
+ const exponent = Math.min(Math.floor(options.binary ? log(number) / Math.log(1024) : log10(number) / 3), UNITS.length - 1);
696
+ number = divide(number, (options.binary ? 1024 : 1e3) ** exponent);
697
+ if (!localeOptions) {
698
+ const minPrecision = Math.max(3, Math.floor(number).toString().length);
699
+ number = number.toPrecision(minPrecision);
700
+ }
701
+ const numberString = toLocaleString(Number(number), options.locale, localeOptions);
702
+ const unit = UNITS[exponent];
703
+ result = prefix + numberString + separator + unit;
704
+ }
705
+ return applyFixedWidth(result, options.fixedWidth);
706
+ }
707
+ //#endregion
708
+ //#region ../../node_modules/.pnpm/dompurify@3.4.11/node_modules/dompurify/dist/purify.es.mjs
709
+ /*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */
710
+ function _arrayLikeToArray(r, a) {
711
+ (null == a || a > r.length) && (a = r.length);
712
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
713
+ return n;
714
+ }
715
+ function _arrayWithHoles(r) {
716
+ if (Array.isArray(r)) return r;
717
+ }
718
+ function _iterableToArrayLimit(r, l) {
719
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
720
+ if (null != t) {
721
+ var e, n, i, u, a = [], f = true, o = false;
722
+ try {
723
+ if (i = (t = t.call(r)).next, 0 === l);
724
+ else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
725
+ } catch (r) {
726
+ o = true, n = r;
727
+ } finally {
728
+ try {
729
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
730
+ } finally {
731
+ if (o) throw n;
732
+ }
733
+ }
734
+ return a;
735
+ }
736
+ }
737
+ function _nonIterableRest() {
738
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
739
+ }
740
+ function _slicedToArray(r, e) {
741
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
742
+ }
743
+ function _unsupportedIterableToArray(r, a) {
744
+ if (r) {
745
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
746
+ var t = {}.toString.call(r).slice(8, -1);
747
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
748
+ }
749
+ }
750
+ var entries = Object.entries, setPrototypeOf = Object.setPrototypeOf, isFrozen = Object.isFrozen, getPrototypeOf = Object.getPrototypeOf, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
751
+ var freeze = Object.freeze, seal = Object.seal, create = Object.create;
752
+ var _ref = typeof Reflect !== "undefined" && Reflect, apply = _ref.apply, construct = _ref.construct;
753
+ if (!freeze) freeze = function freeze(x) {
754
+ return x;
755
+ };
756
+ if (!seal) seal = function seal(x) {
757
+ return x;
758
+ };
759
+ if (!apply) apply = function apply(func, thisArg) {
760
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) args[_key - 2] = arguments[_key];
761
+ return func.apply(thisArg, args);
762
+ };
763
+ if (!construct) construct = function construct(Func) {
764
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) args[_key2 - 1] = arguments[_key2];
765
+ return new Func(...args);
766
+ };
767
+ var arrayForEach = unapply(Array.prototype.forEach);
768
+ var arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
769
+ var arrayPop = unapply(Array.prototype.pop);
770
+ var arrayPush = unapply(Array.prototype.push);
771
+ var arraySplice = unapply(Array.prototype.splice);
772
+ var arrayIsArray = Array.isArray;
773
+ var stringToLowerCase = unapply(String.prototype.toLowerCase);
774
+ var stringToString = unapply(String.prototype.toString);
775
+ var stringMatch = unapply(String.prototype.match);
776
+ var stringReplace = unapply(String.prototype.replace);
777
+ var stringIndexOf = unapply(String.prototype.indexOf);
778
+ var stringTrim = unapply(String.prototype.trim);
779
+ var numberToString = unapply(Number.prototype.toString);
780
+ var booleanToString = unapply(Boolean.prototype.toString);
781
+ var bigintToString = typeof BigInt === "undefined" ? null : unapply(BigInt.prototype.toString);
782
+ var symbolToString = typeof Symbol === "undefined" ? null : unapply(Symbol.prototype.toString);
783
+ var objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
784
+ var objectToString = unapply(Object.prototype.toString);
785
+ var regExpTest = unapply(RegExp.prototype.test);
786
+ var typeErrorCreate = unconstruct(TypeError);
787
+ /**
788
+ * Creates a new function that calls the given function with a specified thisArg and arguments.
789
+ *
790
+ * @param func - The function to be wrapped and called.
791
+ * @returns A new function that calls the given function with a specified thisArg and arguments.
792
+ */
793
+ function unapply(func) {
794
+ return function(thisArg) {
795
+ if (thisArg instanceof RegExp) thisArg.lastIndex = 0;
796
+ for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) args[_key3 - 1] = arguments[_key3];
797
+ return apply(func, thisArg, args);
798
+ };
799
+ }
800
+ /**
801
+ * Creates a new function that constructs an instance of the given constructor function with the provided arguments.
802
+ *
803
+ * @param func - The constructor function to be wrapped and called.
804
+ * @returns A new function that constructs an instance of the given constructor function with the provided arguments.
805
+ */
806
+ function unconstruct(Func) {
807
+ return function() {
808
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) args[_key4] = arguments[_key4];
809
+ return construct(Func, args);
810
+ };
811
+ }
812
+ /**
813
+ * Add properties to a lookup table
814
+ *
815
+ * @param set - The set to which elements will be added.
816
+ * @param array - The array containing elements to be added to the set.
817
+ * @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
818
+ * @returns The modified set with added elements.
819
+ */
820
+ function addToSet(set, array) {
821
+ let transformCaseFunc = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
822
+ if (setPrototypeOf) setPrototypeOf(set, null);
823
+ if (!arrayIsArray(array)) return set;
824
+ let l = array.length;
825
+ while (l--) {
826
+ let element = array[l];
827
+ if (typeof element === "string") {
828
+ const lcElement = transformCaseFunc(element);
829
+ if (lcElement !== element) {
830
+ if (!isFrozen(array)) array[l] = lcElement;
831
+ element = lcElement;
832
+ }
833
+ }
834
+ set[element] = true;
835
+ }
836
+ return set;
837
+ }
838
+ /**
839
+ * Clean up an array to harden against CSPP
840
+ *
841
+ * @param array - The array to be cleaned.
842
+ * @returns The cleaned version of the array
843
+ */
844
+ function cleanArray(array) {
845
+ for (let index = 0; index < array.length; index++) if (!objectHasOwnProperty(array, index)) array[index] = null;
846
+ return array;
847
+ }
848
+ /**
849
+ * Shallow clone an object
850
+ *
851
+ * @param object - The object to be cloned.
852
+ * @returns A new object that copies the original.
853
+ */
854
+ function clone(object) {
855
+ const newObject = create(null);
856
+ for (const _ref2 of entries(object)) {
857
+ var _ref3 = _slicedToArray(_ref2, 2);
858
+ const property = _ref3[0];
859
+ const value = _ref3[1];
860
+ if (objectHasOwnProperty(object, property)) if (arrayIsArray(value)) newObject[property] = cleanArray(value);
861
+ else if (value && typeof value === "object" && value.constructor === Object) newObject[property] = clone(value);
862
+ else newObject[property] = value;
863
+ }
864
+ return newObject;
865
+ }
866
+ /**
867
+ * Convert non-node values into strings without depending on direct property access.
868
+ *
869
+ * @param value - The value to stringify.
870
+ * @returns A string representation of the provided value.
871
+ */
872
+ function stringifyValue(value) {
873
+ switch (typeof value) {
874
+ case "string": return value;
875
+ case "number": return numberToString(value);
876
+ case "boolean": return booleanToString(value);
877
+ case "bigint": return bigintToString ? bigintToString(value) : "0";
878
+ case "symbol": return symbolToString ? symbolToString(value) : "Symbol()";
879
+ case "undefined": return objectToString(value);
880
+ case "function":
881
+ case "object": {
882
+ if (value === null) return objectToString(value);
883
+ const valueAsRecord = value;
884
+ const valueToString = lookupGetter(valueAsRecord, "toString");
885
+ if (typeof valueToString === "function") {
886
+ const stringified = valueToString(valueAsRecord);
887
+ return typeof stringified === "string" ? stringified : objectToString(stringified);
888
+ }
889
+ return objectToString(value);
890
+ }
891
+ default: return objectToString(value);
892
+ }
893
+ }
894
+ /**
895
+ * This method automatically checks if the prop is function or getter and behaves accordingly.
896
+ *
897
+ * @param object - The object to look up the getter function in its prototype chain.
898
+ * @param prop - The property name for which to find the getter function.
899
+ * @returns The getter function found in the prototype chain or a fallback function.
900
+ */
901
+ function lookupGetter(object, prop) {
902
+ while (object !== null) {
903
+ const desc = getOwnPropertyDescriptor(object, prop);
904
+ if (desc) {
905
+ if (desc.get) return unapply(desc.get);
906
+ if (typeof desc.value === "function") return unapply(desc.value);
907
+ }
908
+ object = getPrototypeOf(object);
909
+ }
910
+ function fallbackValue() {
911
+ return null;
912
+ }
913
+ return fallbackValue;
914
+ }
915
+ function isRegex(value) {
916
+ try {
917
+ regExpTest(value, "");
918
+ return true;
919
+ } catch (_unused) {
920
+ return false;
921
+ }
922
+ }
923
+ var html$1 = freeze([
924
+ "a",
925
+ "abbr",
926
+ "acronym",
927
+ "address",
928
+ "area",
929
+ "article",
930
+ "aside",
931
+ "audio",
932
+ "b",
933
+ "bdi",
934
+ "bdo",
935
+ "big",
936
+ "blink",
937
+ "blockquote",
938
+ "body",
939
+ "br",
940
+ "button",
941
+ "canvas",
942
+ "caption",
943
+ "center",
944
+ "cite",
945
+ "code",
946
+ "col",
947
+ "colgroup",
948
+ "content",
949
+ "data",
950
+ "datalist",
951
+ "dd",
952
+ "decorator",
953
+ "del",
954
+ "details",
955
+ "dfn",
956
+ "dialog",
957
+ "dir",
958
+ "div",
959
+ "dl",
960
+ "dt",
961
+ "element",
962
+ "em",
963
+ "fieldset",
964
+ "figcaption",
965
+ "figure",
966
+ "font",
967
+ "footer",
968
+ "form",
969
+ "h1",
970
+ "h2",
971
+ "h3",
972
+ "h4",
973
+ "h5",
974
+ "h6",
975
+ "head",
976
+ "header",
977
+ "hgroup",
978
+ "hr",
979
+ "html",
980
+ "i",
981
+ "img",
982
+ "input",
983
+ "ins",
984
+ "kbd",
985
+ "label",
986
+ "legend",
987
+ "li",
988
+ "main",
989
+ "map",
990
+ "mark",
991
+ "marquee",
992
+ "menu",
993
+ "menuitem",
994
+ "meter",
995
+ "nav",
996
+ "nobr",
997
+ "ol",
998
+ "optgroup",
999
+ "option",
1000
+ "output",
1001
+ "p",
1002
+ "picture",
1003
+ "pre",
1004
+ "progress",
1005
+ "q",
1006
+ "rp",
1007
+ "rt",
1008
+ "ruby",
1009
+ "s",
1010
+ "samp",
1011
+ "search",
1012
+ "section",
1013
+ "select",
1014
+ "shadow",
1015
+ "slot",
1016
+ "small",
1017
+ "source",
1018
+ "spacer",
1019
+ "span",
1020
+ "strike",
1021
+ "strong",
1022
+ "style",
1023
+ "sub",
1024
+ "summary",
1025
+ "sup",
1026
+ "table",
1027
+ "tbody",
1028
+ "td",
1029
+ "template",
1030
+ "textarea",
1031
+ "tfoot",
1032
+ "th",
1033
+ "thead",
1034
+ "time",
1035
+ "tr",
1036
+ "track",
1037
+ "tt",
1038
+ "u",
1039
+ "ul",
1040
+ "var",
1041
+ "video",
1042
+ "wbr"
1043
+ ]);
1044
+ var svg$1 = freeze([
1045
+ "svg",
1046
+ "a",
1047
+ "altglyph",
1048
+ "altglyphdef",
1049
+ "altglyphitem",
1050
+ "animatecolor",
1051
+ "animatemotion",
1052
+ "animatetransform",
1053
+ "circle",
1054
+ "clippath",
1055
+ "defs",
1056
+ "desc",
1057
+ "ellipse",
1058
+ "enterkeyhint",
1059
+ "exportparts",
1060
+ "filter",
1061
+ "font",
1062
+ "g",
1063
+ "glyph",
1064
+ "glyphref",
1065
+ "hkern",
1066
+ "image",
1067
+ "inputmode",
1068
+ "line",
1069
+ "lineargradient",
1070
+ "marker",
1071
+ "mask",
1072
+ "metadata",
1073
+ "mpath",
1074
+ "part",
1075
+ "path",
1076
+ "pattern",
1077
+ "polygon",
1078
+ "polyline",
1079
+ "radialgradient",
1080
+ "rect",
1081
+ "stop",
1082
+ "style",
1083
+ "switch",
1084
+ "symbol",
1085
+ "text",
1086
+ "textpath",
1087
+ "title",
1088
+ "tref",
1089
+ "tspan",
1090
+ "view",
1091
+ "vkern"
1092
+ ]);
1093
+ var svgFilters = freeze([
1094
+ "feBlend",
1095
+ "feColorMatrix",
1096
+ "feComponentTransfer",
1097
+ "feComposite",
1098
+ "feConvolveMatrix",
1099
+ "feDiffuseLighting",
1100
+ "feDisplacementMap",
1101
+ "feDistantLight",
1102
+ "feDropShadow",
1103
+ "feFlood",
1104
+ "feFuncA",
1105
+ "feFuncB",
1106
+ "feFuncG",
1107
+ "feFuncR",
1108
+ "feGaussianBlur",
1109
+ "feImage",
1110
+ "feMerge",
1111
+ "feMergeNode",
1112
+ "feMorphology",
1113
+ "feOffset",
1114
+ "fePointLight",
1115
+ "feSpecularLighting",
1116
+ "feSpotLight",
1117
+ "feTile",
1118
+ "feTurbulence"
1119
+ ]);
1120
+ var svgDisallowed = freeze([
1121
+ "animate",
1122
+ "color-profile",
1123
+ "cursor",
1124
+ "discard",
1125
+ "font-face",
1126
+ "font-face-format",
1127
+ "font-face-name",
1128
+ "font-face-src",
1129
+ "font-face-uri",
1130
+ "foreignobject",
1131
+ "hatch",
1132
+ "hatchpath",
1133
+ "mesh",
1134
+ "meshgradient",
1135
+ "meshpatch",
1136
+ "meshrow",
1137
+ "missing-glyph",
1138
+ "script",
1139
+ "set",
1140
+ "solidcolor",
1141
+ "unknown",
1142
+ "use"
1143
+ ]);
1144
+ var mathMl$1 = freeze([
1145
+ "math",
1146
+ "menclose",
1147
+ "merror",
1148
+ "mfenced",
1149
+ "mfrac",
1150
+ "mglyph",
1151
+ "mi",
1152
+ "mlabeledtr",
1153
+ "mmultiscripts",
1154
+ "mn",
1155
+ "mo",
1156
+ "mover",
1157
+ "mpadded",
1158
+ "mphantom",
1159
+ "mroot",
1160
+ "mrow",
1161
+ "ms",
1162
+ "mspace",
1163
+ "msqrt",
1164
+ "mstyle",
1165
+ "msub",
1166
+ "msup",
1167
+ "msubsup",
1168
+ "mtable",
1169
+ "mtd",
1170
+ "mtext",
1171
+ "mtr",
1172
+ "munder",
1173
+ "munderover",
1174
+ "mprescripts"
1175
+ ]);
1176
+ var mathMlDisallowed = freeze([
1177
+ "maction",
1178
+ "maligngroup",
1179
+ "malignmark",
1180
+ "mlongdiv",
1181
+ "mscarries",
1182
+ "mscarry",
1183
+ "msgroup",
1184
+ "mstack",
1185
+ "msline",
1186
+ "msrow",
1187
+ "semantics",
1188
+ "annotation",
1189
+ "annotation-xml",
1190
+ "mprescripts",
1191
+ "none"
1192
+ ]);
1193
+ var text = freeze(["#text"]);
1194
+ var html = freeze([
1195
+ "accept",
1196
+ "action",
1197
+ "align",
1198
+ "alt",
1199
+ "autocapitalize",
1200
+ "autocomplete",
1201
+ "autopictureinpicture",
1202
+ "autoplay",
1203
+ "background",
1204
+ "bgcolor",
1205
+ "border",
1206
+ "capture",
1207
+ "cellpadding",
1208
+ "cellspacing",
1209
+ "checked",
1210
+ "cite",
1211
+ "class",
1212
+ "clear",
1213
+ "color",
1214
+ "cols",
1215
+ "colspan",
1216
+ "command",
1217
+ "commandfor",
1218
+ "controls",
1219
+ "controlslist",
1220
+ "coords",
1221
+ "crossorigin",
1222
+ "datetime",
1223
+ "decoding",
1224
+ "default",
1225
+ "dir",
1226
+ "disabled",
1227
+ "disablepictureinpicture",
1228
+ "disableremoteplayback",
1229
+ "download",
1230
+ "draggable",
1231
+ "enctype",
1232
+ "enterkeyhint",
1233
+ "exportparts",
1234
+ "face",
1235
+ "for",
1236
+ "headers",
1237
+ "height",
1238
+ "hidden",
1239
+ "high",
1240
+ "href",
1241
+ "hreflang",
1242
+ "id",
1243
+ "inert",
1244
+ "inputmode",
1245
+ "integrity",
1246
+ "ismap",
1247
+ "kind",
1248
+ "label",
1249
+ "lang",
1250
+ "list",
1251
+ "loading",
1252
+ "loop",
1253
+ "low",
1254
+ "max",
1255
+ "maxlength",
1256
+ "media",
1257
+ "method",
1258
+ "min",
1259
+ "minlength",
1260
+ "multiple",
1261
+ "muted",
1262
+ "name",
1263
+ "nonce",
1264
+ "noshade",
1265
+ "novalidate",
1266
+ "nowrap",
1267
+ "open",
1268
+ "optimum",
1269
+ "part",
1270
+ "pattern",
1271
+ "placeholder",
1272
+ "playsinline",
1273
+ "popover",
1274
+ "popovertarget",
1275
+ "popovertargetaction",
1276
+ "poster",
1277
+ "preload",
1278
+ "pubdate",
1279
+ "radiogroup",
1280
+ "readonly",
1281
+ "rel",
1282
+ "required",
1283
+ "rev",
1284
+ "reversed",
1285
+ "role",
1286
+ "rows",
1287
+ "rowspan",
1288
+ "spellcheck",
1289
+ "scope",
1290
+ "selected",
1291
+ "shape",
1292
+ "size",
1293
+ "sizes",
1294
+ "slot",
1295
+ "span",
1296
+ "srclang",
1297
+ "start",
1298
+ "src",
1299
+ "srcset",
1300
+ "step",
1301
+ "style",
1302
+ "summary",
1303
+ "tabindex",
1304
+ "title",
1305
+ "translate",
1306
+ "type",
1307
+ "usemap",
1308
+ "valign",
1309
+ "value",
1310
+ "width",
1311
+ "wrap",
1312
+ "xmlns"
1313
+ ]);
1314
+ var svg = freeze([
1315
+ "accent-height",
1316
+ "accumulate",
1317
+ "additive",
1318
+ "alignment-baseline",
1319
+ "amplitude",
1320
+ "ascent",
1321
+ "attributename",
1322
+ "attributetype",
1323
+ "azimuth",
1324
+ "basefrequency",
1325
+ "baseline-shift",
1326
+ "begin",
1327
+ "bias",
1328
+ "by",
1329
+ "class",
1330
+ "clip",
1331
+ "clippathunits",
1332
+ "clip-path",
1333
+ "clip-rule",
1334
+ "color",
1335
+ "color-interpolation",
1336
+ "color-interpolation-filters",
1337
+ "color-profile",
1338
+ "color-rendering",
1339
+ "cx",
1340
+ "cy",
1341
+ "d",
1342
+ "dx",
1343
+ "dy",
1344
+ "diffuseconstant",
1345
+ "direction",
1346
+ "display",
1347
+ "divisor",
1348
+ "dur",
1349
+ "edgemode",
1350
+ "elevation",
1351
+ "end",
1352
+ "exponent",
1353
+ "fill",
1354
+ "fill-opacity",
1355
+ "fill-rule",
1356
+ "filter",
1357
+ "filterunits",
1358
+ "flood-color",
1359
+ "flood-opacity",
1360
+ "font-family",
1361
+ "font-size",
1362
+ "font-size-adjust",
1363
+ "font-stretch",
1364
+ "font-style",
1365
+ "font-variant",
1366
+ "font-weight",
1367
+ "fx",
1368
+ "fy",
1369
+ "g1",
1370
+ "g2",
1371
+ "glyph-name",
1372
+ "glyphref",
1373
+ "gradientunits",
1374
+ "gradienttransform",
1375
+ "height",
1376
+ "href",
1377
+ "id",
1378
+ "image-rendering",
1379
+ "in",
1380
+ "in2",
1381
+ "intercept",
1382
+ "k",
1383
+ "k1",
1384
+ "k2",
1385
+ "k3",
1386
+ "k4",
1387
+ "kerning",
1388
+ "keypoints",
1389
+ "keysplines",
1390
+ "keytimes",
1391
+ "lang",
1392
+ "lengthadjust",
1393
+ "letter-spacing",
1394
+ "kernelmatrix",
1395
+ "kernelunitlength",
1396
+ "lighting-color",
1397
+ "local",
1398
+ "marker-end",
1399
+ "marker-mid",
1400
+ "marker-start",
1401
+ "markerheight",
1402
+ "markerunits",
1403
+ "markerwidth",
1404
+ "maskcontentunits",
1405
+ "maskunits",
1406
+ "max",
1407
+ "mask",
1408
+ "mask-type",
1409
+ "media",
1410
+ "method",
1411
+ "mode",
1412
+ "min",
1413
+ "name",
1414
+ "numoctaves",
1415
+ "offset",
1416
+ "operator",
1417
+ "opacity",
1418
+ "order",
1419
+ "orient",
1420
+ "orientation",
1421
+ "origin",
1422
+ "overflow",
1423
+ "paint-order",
1424
+ "path",
1425
+ "pathlength",
1426
+ "patterncontentunits",
1427
+ "patterntransform",
1428
+ "patternunits",
1429
+ "points",
1430
+ "preservealpha",
1431
+ "preserveaspectratio",
1432
+ "primitiveunits",
1433
+ "r",
1434
+ "rx",
1435
+ "ry",
1436
+ "radius",
1437
+ "refx",
1438
+ "refy",
1439
+ "repeatcount",
1440
+ "repeatdur",
1441
+ "restart",
1442
+ "result",
1443
+ "rotate",
1444
+ "scale",
1445
+ "seed",
1446
+ "shape-rendering",
1447
+ "slope",
1448
+ "specularconstant",
1449
+ "specularexponent",
1450
+ "spreadmethod",
1451
+ "startoffset",
1452
+ "stddeviation",
1453
+ "stitchtiles",
1454
+ "stop-color",
1455
+ "stop-opacity",
1456
+ "stroke-dasharray",
1457
+ "stroke-dashoffset",
1458
+ "stroke-linecap",
1459
+ "stroke-linejoin",
1460
+ "stroke-miterlimit",
1461
+ "stroke-opacity",
1462
+ "stroke",
1463
+ "stroke-width",
1464
+ "style",
1465
+ "surfacescale",
1466
+ "systemlanguage",
1467
+ "tabindex",
1468
+ "tablevalues",
1469
+ "targetx",
1470
+ "targety",
1471
+ "transform",
1472
+ "transform-origin",
1473
+ "text-anchor",
1474
+ "text-decoration",
1475
+ "text-rendering",
1476
+ "textlength",
1477
+ "type",
1478
+ "u1",
1479
+ "u2",
1480
+ "unicode",
1481
+ "values",
1482
+ "viewbox",
1483
+ "visibility",
1484
+ "version",
1485
+ "vert-adv-y",
1486
+ "vert-origin-x",
1487
+ "vert-origin-y",
1488
+ "width",
1489
+ "word-spacing",
1490
+ "wrap",
1491
+ "writing-mode",
1492
+ "xchannelselector",
1493
+ "ychannelselector",
1494
+ "x",
1495
+ "x1",
1496
+ "x2",
1497
+ "xmlns",
1498
+ "y",
1499
+ "y1",
1500
+ "y2",
1501
+ "z",
1502
+ "zoomandpan"
1503
+ ]);
1504
+ var mathMl = freeze([
1505
+ "accent",
1506
+ "accentunder",
1507
+ "align",
1508
+ "bevelled",
1509
+ "close",
1510
+ "columnalign",
1511
+ "columnlines",
1512
+ "columnspacing",
1513
+ "columnspan",
1514
+ "denomalign",
1515
+ "depth",
1516
+ "dir",
1517
+ "display",
1518
+ "displaystyle",
1519
+ "encoding",
1520
+ "fence",
1521
+ "frame",
1522
+ "height",
1523
+ "href",
1524
+ "id",
1525
+ "largeop",
1526
+ "length",
1527
+ "linethickness",
1528
+ "lquote",
1529
+ "lspace",
1530
+ "mathbackground",
1531
+ "mathcolor",
1532
+ "mathsize",
1533
+ "mathvariant",
1534
+ "maxsize",
1535
+ "minsize",
1536
+ "movablelimits",
1537
+ "notation",
1538
+ "numalign",
1539
+ "open",
1540
+ "rowalign",
1541
+ "rowlines",
1542
+ "rowspacing",
1543
+ "rowspan",
1544
+ "rspace",
1545
+ "rquote",
1546
+ "scriptlevel",
1547
+ "scriptminsize",
1548
+ "scriptsizemultiplier",
1549
+ "selection",
1550
+ "separator",
1551
+ "separators",
1552
+ "stretchy",
1553
+ "subscriptshift",
1554
+ "supscriptshift",
1555
+ "symmetric",
1556
+ "voffset",
1557
+ "width",
1558
+ "xmlns"
1559
+ ]);
1560
+ var xml = freeze([
1561
+ "xlink:href",
1562
+ "xml:id",
1563
+ "xlink:title",
1564
+ "xml:space",
1565
+ "xmlns:xlink"
1566
+ ]);
1567
+ var MUSTACHE_EXPR = seal(/{{[\w\W]*|^[\w\W]*}}/g);
1568
+ var ERB_EXPR = seal(/<%[\w\W]*|^[\w\W]*%>/g);
1569
+ var TMPLIT_EXPR = seal(/\${[\w\W]*/g);
1570
+ var DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
1571
+ var ARIA_ATTR = seal(/^aria-[\-\w]+$/);
1572
+ var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);
1573
+ var IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
1574
+ var ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);
1575
+ var DOCTYPE_NAME = seal(/^html$/i);
1576
+ var CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
1577
+ var ELEMENT_MARKUP_PROBE = seal(/<[/\w!]/g);
1578
+ var COMMENT_MARKUP_PROBE = seal(/<[/\w]/g);
1579
+ var FALLBACK_TAG_CLOSE = seal(/<\/no(script|embed|frames)/i);
1580
+ var SELF_CLOSING_TAG = seal(/\/>/i);
1581
+ var NODE_TYPE = {
1582
+ element: 1,
1583
+ attribute: 2,
1584
+ text: 3,
1585
+ cdataSection: 4,
1586
+ entityReference: 5,
1587
+ entityNode: 6,
1588
+ processingInstruction: 7,
1589
+ comment: 8,
1590
+ document: 9,
1591
+ documentType: 10,
1592
+ documentFragment: 11,
1593
+ notation: 12
1594
+ };
1595
+ var getGlobal = function getGlobal() {
1596
+ return typeof window === "undefined" ? null : window;
1597
+ };
1598
+ /**
1599
+ * Creates a no-op policy for internal use only.
1600
+ * Don't export this function outside this module!
1601
+ * @param trustedTypes The policy factory.
1602
+ * @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
1603
+ * @return The policy created (or null, if Trusted Types
1604
+ * are not supported or creating the policy failed).
1605
+ */
1606
+ var _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {
1607
+ if (typeof trustedTypes !== "object" || typeof trustedTypes.createPolicy !== "function") return null;
1608
+ let suffix = null;
1609
+ const ATTR_NAME = "data-tt-policy-suffix";
1610
+ if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) suffix = purifyHostElement.getAttribute(ATTR_NAME);
1611
+ const policyName = "dompurify" + (suffix ? "#" + suffix : "");
1612
+ try {
1613
+ return trustedTypes.createPolicy(policyName, {
1614
+ createHTML(html) {
1615
+ return html;
1616
+ },
1617
+ createScriptURL(scriptUrl) {
1618
+ return scriptUrl;
1619
+ }
1620
+ });
1621
+ } catch (_) {
1622
+ console.warn("TrustedTypes policy " + policyName + " could not be created.");
1623
+ return null;
1624
+ }
1625
+ };
1626
+ var _createHooksMap = function _createHooksMap() {
1627
+ return {
1628
+ afterSanitizeAttributes: [],
1629
+ afterSanitizeElements: [],
1630
+ afterSanitizeShadowDOM: [],
1631
+ beforeSanitizeAttributes: [],
1632
+ beforeSanitizeElements: [],
1633
+ beforeSanitizeShadowDOM: [],
1634
+ uponSanitizeAttribute: [],
1635
+ uponSanitizeElement: [],
1636
+ uponSanitizeShadowNode: []
1637
+ };
1638
+ };
1639
+ /**
1640
+ * Resolve a set-valued configuration option: a fresh set built from
1641
+ * cfg[key] when it is an own array property (seeded with a clone of
1642
+ * options.base when given, case-normalized via options.transform),
1643
+ * the fallback set otherwise.
1644
+ *
1645
+ * @param cfg the cloned, prototype-free configuration object
1646
+ * @param key the configuration property to read
1647
+ * @param fallback the set to use when the option is absent or not an array
1648
+ * @param options transform and optional base set to merge into
1649
+ * @returns the resolved set
1650
+ */
1651
+ var _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options) {
1652
+ return objectHasOwnProperty(cfg, key) && arrayIsArray(cfg[key]) ? addToSet(options.base ? clone(options.base) : {}, cfg[key], options.transform) : fallback;
1653
+ };
1654
+ function createDOMPurify() {
1655
+ let window = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
1656
+ const DOMPurify = (root) => createDOMPurify(root);
1657
+ DOMPurify.version = "3.4.11";
1658
+ DOMPurify.removed = [];
1659
+ if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
1660
+ DOMPurify.isSupported = false;
1661
+ return DOMPurify;
1662
+ }
1663
+ let document = window.document;
1664
+ const originalDocument = document;
1665
+ const currentScript = originalDocument.currentScript;
1666
+ window.DocumentFragment;
1667
+ const HTMLTemplateElement = window.HTMLTemplateElement, Node = window.Node, Element = window.Element, NodeFilter = window.NodeFilter;
1668
+ window.NamedNodeMap === void 0 && (window.NamedNodeMap || window.MozNamedAttrMap);
1669
+ window.HTMLFormElement;
1670
+ const DOMParser = window.DOMParser, trustedTypes = window.trustedTypes;
1671
+ const ElementPrototype = Element.prototype;
1672
+ const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
1673
+ const remove = lookupGetter(ElementPrototype, "remove");
1674
+ const getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
1675
+ const getChildNodes = lookupGetter(ElementPrototype, "childNodes");
1676
+ const getParentNode = lookupGetter(ElementPrototype, "parentNode");
1677
+ const getShadowRoot = lookupGetter(ElementPrototype, "shadowRoot");
1678
+ const getAttributes = lookupGetter(ElementPrototype, "attributes");
1679
+ const getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeType") : null;
1680
+ const getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeName") : null;
1681
+ if (typeof HTMLTemplateElement === "function") {
1682
+ const template = document.createElement("template");
1683
+ if (template.content && template.content.ownerDocument) document = template.content.ownerDocument;
1684
+ }
1685
+ let trustedTypesPolicy;
1686
+ let emptyHTML = "";
1687
+ let defaultTrustedTypesPolicy;
1688
+ let defaultTrustedTypesPolicyResolved = false;
1689
+ let IN_TRUSTED_TYPES_POLICY = 0;
1690
+ const _assertNotInTrustedTypesPolicy = function _assertNotInTrustedTypesPolicy() {
1691
+ if (IN_TRUSTED_TYPES_POLICY > 0) throw typeErrorCreate("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
1692
+ };
1693
+ const _createTrustedHTML = function _createTrustedHTML(html) {
1694
+ _assertNotInTrustedTypesPolicy();
1695
+ IN_TRUSTED_TYPES_POLICY++;
1696
+ try {
1697
+ return trustedTypesPolicy.createHTML(html);
1698
+ } finally {
1699
+ IN_TRUSTED_TYPES_POLICY--;
1700
+ }
1701
+ };
1702
+ const _createTrustedScriptURL = function _createTrustedScriptURL(scriptUrl) {
1703
+ _assertNotInTrustedTypesPolicy();
1704
+ IN_TRUSTED_TYPES_POLICY++;
1705
+ try {
1706
+ return trustedTypesPolicy.createScriptURL(scriptUrl);
1707
+ } finally {
1708
+ IN_TRUSTED_TYPES_POLICY--;
1709
+ }
1710
+ };
1711
+ const _getDefaultTrustedTypesPolicy = function _getDefaultTrustedTypesPolicy() {
1712
+ if (!defaultTrustedTypesPolicyResolved) {
1713
+ defaultTrustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
1714
+ defaultTrustedTypesPolicyResolved = true;
1715
+ }
1716
+ return defaultTrustedTypesPolicy;
1717
+ };
1718
+ const _document = document, implementation = _document.implementation, createNodeIterator = _document.createNodeIterator, createDocumentFragment = _document.createDocumentFragment, getElementsByTagName = _document.getElementsByTagName;
1719
+ const importNode = originalDocument.importNode;
1720
+ let hooks = _createHooksMap();
1721
+ /**
1722
+ * Expose whether this browser supports running the full DOMPurify.
1723
+ */
1724
+ DOMPurify.isSupported = typeof entries === "function" && typeof getParentNode === "function" && implementation && implementation.createHTMLDocument !== void 0;
1725
+ const MUSTACHE_EXPR$1 = MUSTACHE_EXPR, ERB_EXPR$1 = ERB_EXPR, TMPLIT_EXPR$1 = TMPLIT_EXPR, DATA_ATTR$1 = DATA_ATTR, ARIA_ATTR$1 = ARIA_ATTR, IS_SCRIPT_OR_DATA$1 = IS_SCRIPT_OR_DATA, ATTR_WHITESPACE$1 = ATTR_WHITESPACE, CUSTOM_ELEMENT$1 = CUSTOM_ELEMENT;
1726
+ let IS_ALLOWED_URI$1 = IS_ALLOWED_URI;
1727
+ /**
1728
+ * We consider the elements and attributes below to be safe. Ideally
1729
+ * don't add any new ones but feel free to remove unwanted ones.
1730
+ */
1731
+ let ALLOWED_TAGS = null;
1732
+ const DEFAULT_ALLOWED_TAGS = addToSet({}, [
1733
+ ...html$1,
1734
+ ...svg$1,
1735
+ ...svgFilters,
1736
+ ...mathMl$1,
1737
+ ...text
1738
+ ]);
1739
+ let ALLOWED_ATTR = null;
1740
+ const DEFAULT_ALLOWED_ATTR = addToSet({}, [
1741
+ ...html,
1742
+ ...svg,
1743
+ ...mathMl,
1744
+ ...xml
1745
+ ]);
1746
+ let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
1747
+ tagNameCheck: {
1748
+ writable: true,
1749
+ configurable: false,
1750
+ enumerable: true,
1751
+ value: null
1752
+ },
1753
+ attributeNameCheck: {
1754
+ writable: true,
1755
+ configurable: false,
1756
+ enumerable: true,
1757
+ value: null
1758
+ },
1759
+ allowCustomizedBuiltInElements: {
1760
+ writable: true,
1761
+ configurable: false,
1762
+ enumerable: true,
1763
+ value: false
1764
+ }
1765
+ }));
1766
+ let FORBID_TAGS = null;
1767
+ let FORBID_ATTR = null;
1768
+ const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
1769
+ tagCheck: {
1770
+ writable: true,
1771
+ configurable: false,
1772
+ enumerable: true,
1773
+ value: null
1774
+ },
1775
+ attributeCheck: {
1776
+ writable: true,
1777
+ configurable: false,
1778
+ enumerable: true,
1779
+ value: null
1780
+ }
1781
+ }));
1782
+ let ALLOW_ARIA_ATTR = true;
1783
+ let ALLOW_DATA_ATTR = true;
1784
+ let ALLOW_UNKNOWN_PROTOCOLS = false;
1785
+ let ALLOW_SELF_CLOSE_IN_ATTR = true;
1786
+ let SAFE_FOR_TEMPLATES = false;
1787
+ let SAFE_FOR_XML = true;
1788
+ let WHOLE_DOCUMENT = false;
1789
+ let SET_CONFIG = false;
1790
+ let SET_CONFIG_ALLOWED_TAGS = null;
1791
+ let SET_CONFIG_ALLOWED_ATTR = null;
1792
+ let FORCE_BODY = false;
1793
+ let RETURN_DOM = false;
1794
+ let RETURN_DOM_FRAGMENT = false;
1795
+ let RETURN_TRUSTED_TYPE = false;
1796
+ let SANITIZE_DOM = true;
1797
+ let SANITIZE_NAMED_PROPS = false;
1798
+ const SANITIZE_NAMED_PROPS_PREFIX = "user-content-";
1799
+ let KEEP_CONTENT = true;
1800
+ let IN_PLACE = false;
1801
+ let USE_PROFILES = {};
1802
+ let FORBID_CONTENTS = null;
1803
+ const DEFAULT_FORBID_CONTENTS = addToSet({}, [
1804
+ "annotation-xml",
1805
+ "audio",
1806
+ "colgroup",
1807
+ "desc",
1808
+ "foreignobject",
1809
+ "head",
1810
+ "iframe",
1811
+ "math",
1812
+ "mi",
1813
+ "mn",
1814
+ "mo",
1815
+ "ms",
1816
+ "mtext",
1817
+ "noembed",
1818
+ "noframes",
1819
+ "noscript",
1820
+ "plaintext",
1821
+ "script",
1822
+ "selectedcontent",
1823
+ "style",
1824
+ "svg",
1825
+ "template",
1826
+ "thead",
1827
+ "title",
1828
+ "video",
1829
+ "xmp"
1830
+ ]);
1831
+ let DATA_URI_TAGS = null;
1832
+ const DEFAULT_DATA_URI_TAGS = addToSet({}, [
1833
+ "audio",
1834
+ "video",
1835
+ "img",
1836
+ "source",
1837
+ "image",
1838
+ "track"
1839
+ ]);
1840
+ let URI_SAFE_ATTRIBUTES = null;
1841
+ const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [
1842
+ "alt",
1843
+ "class",
1844
+ "for",
1845
+ "id",
1846
+ "label",
1847
+ "name",
1848
+ "pattern",
1849
+ "placeholder",
1850
+ "role",
1851
+ "summary",
1852
+ "title",
1853
+ "value",
1854
+ "style",
1855
+ "xmlns"
1856
+ ]);
1857
+ const MATHML_NAMESPACE = "http://www.w3.org/1998/Math/MathML";
1858
+ const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
1859
+ const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
1860
+ let NAMESPACE = HTML_NAMESPACE;
1861
+ let IS_EMPTY_INPUT = false;
1862
+ let ALLOWED_NAMESPACES = null;
1863
+ const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [
1864
+ MATHML_NAMESPACE,
1865
+ SVG_NAMESPACE,
1866
+ HTML_NAMESPACE
1867
+ ], stringToString);
1868
+ const DEFAULT_MATHML_TEXT_INTEGRATION_POINTS = freeze([
1869
+ "mi",
1870
+ "mo",
1871
+ "mn",
1872
+ "ms",
1873
+ "mtext"
1874
+ ]);
1875
+ let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS);
1876
+ const DEFAULT_HTML_INTEGRATION_POINTS = freeze(["annotation-xml"]);
1877
+ let HTML_INTEGRATION_POINTS = addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS);
1878
+ const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [
1879
+ "title",
1880
+ "style",
1881
+ "font",
1882
+ "a",
1883
+ "script"
1884
+ ]);
1885
+ let PARSER_MEDIA_TYPE = null;
1886
+ const SUPPORTED_PARSER_MEDIA_TYPES = ["application/xhtml+xml", "text/html"];
1887
+ const DEFAULT_PARSER_MEDIA_TYPE = "text/html";
1888
+ let transformCaseFunc = null;
1889
+ let CONFIG = null;
1890
+ const formElement = document.createElement("form");
1891
+ const isRegexOrFunction = function isRegexOrFunction(testValue) {
1892
+ return testValue instanceof RegExp || testValue instanceof Function;
1893
+ };
1894
+ /**
1895
+ * _parseConfig
1896
+ *
1897
+ * @param cfg optional config literal
1898
+ */
1899
+ const _parseConfig = function _parseConfig() {
1900
+ let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1901
+ if (CONFIG && CONFIG === cfg) return;
1902
+ if (!cfg || typeof cfg !== "object") cfg = {};
1903
+ cfg = clone(cfg);
1904
+ PARSER_MEDIA_TYPE = SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
1905
+ transformCaseFunc = PARSER_MEDIA_TYPE === "application/xhtml+xml" ? stringToString : stringToLowerCase;
1906
+ ALLOWED_TAGS = _resolveSetOption(cfg, "ALLOWED_TAGS", DEFAULT_ALLOWED_TAGS, { transform: transformCaseFunc });
1907
+ ALLOWED_ATTR = _resolveSetOption(cfg, "ALLOWED_ATTR", DEFAULT_ALLOWED_ATTR, { transform: transformCaseFunc });
1908
+ ALLOWED_NAMESPACES = _resolveSetOption(cfg, "ALLOWED_NAMESPACES", DEFAULT_ALLOWED_NAMESPACES, { transform: stringToString });
1909
+ URI_SAFE_ATTRIBUTES = _resolveSetOption(cfg, "ADD_URI_SAFE_ATTR", DEFAULT_URI_SAFE_ATTRIBUTES, {
1910
+ transform: transformCaseFunc,
1911
+ base: DEFAULT_URI_SAFE_ATTRIBUTES
1912
+ });
1913
+ DATA_URI_TAGS = _resolveSetOption(cfg, "ADD_DATA_URI_TAGS", DEFAULT_DATA_URI_TAGS, {
1914
+ transform: transformCaseFunc,
1915
+ base: DEFAULT_DATA_URI_TAGS
1916
+ });
1917
+ FORBID_CONTENTS = _resolveSetOption(cfg, "FORBID_CONTENTS", DEFAULT_FORBID_CONTENTS, { transform: transformCaseFunc });
1918
+ FORBID_TAGS = _resolveSetOption(cfg, "FORBID_TAGS", clone({}), { transform: transformCaseFunc });
1919
+ FORBID_ATTR = _resolveSetOption(cfg, "FORBID_ATTR", clone({}), { transform: transformCaseFunc });
1920
+ USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === "object" ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;
1921
+ ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
1922
+ ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
1923
+ ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false;
1924
+ ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false;
1925
+ SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false;
1926
+ SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false;
1927
+ WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false;
1928
+ RETURN_DOM = cfg.RETURN_DOM || false;
1929
+ RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false;
1930
+ RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false;
1931
+ FORCE_BODY = cfg.FORCE_BODY || false;
1932
+ SANITIZE_DOM = cfg.SANITIZE_DOM !== false;
1933
+ SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false;
1934
+ KEEP_CONTENT = cfg.KEEP_CONTENT !== false;
1935
+ IN_PLACE = cfg.IN_PLACE || false;
1936
+ IS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI;
1937
+ NAMESPACE = typeof cfg.NAMESPACE === "string" ? cfg.NAMESPACE : HTML_NAMESPACE;
1938
+ MATHML_TEXT_INTEGRATION_POINTS = objectHasOwnProperty(cfg, "MATHML_TEXT_INTEGRATION_POINTS") && cfg.MATHML_TEXT_INTEGRATION_POINTS && typeof cfg.MATHML_TEXT_INTEGRATION_POINTS === "object" ? clone(cfg.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS);
1939
+ HTML_INTEGRATION_POINTS = objectHasOwnProperty(cfg, "HTML_INTEGRATION_POINTS") && cfg.HTML_INTEGRATION_POINTS && typeof cfg.HTML_INTEGRATION_POINTS === "object" ? clone(cfg.HTML_INTEGRATION_POINTS) : addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS);
1940
+ const customElementHandling = objectHasOwnProperty(cfg, "CUSTOM_ELEMENT_HANDLING") && cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING === "object" ? clone(cfg.CUSTOM_ELEMENT_HANDLING) : create(null);
1941
+ CUSTOM_ELEMENT_HANDLING = create(null);
1942
+ if (objectHasOwnProperty(customElementHandling, "tagNameCheck") && isRegexOrFunction(customElementHandling.tagNameCheck)) CUSTOM_ELEMENT_HANDLING.tagNameCheck = customElementHandling.tagNameCheck;
1943
+ if (objectHasOwnProperty(customElementHandling, "attributeNameCheck") && isRegexOrFunction(customElementHandling.attributeNameCheck)) CUSTOM_ELEMENT_HANDLING.attributeNameCheck = customElementHandling.attributeNameCheck;
1944
+ if (objectHasOwnProperty(customElementHandling, "allowCustomizedBuiltInElements") && typeof customElementHandling.allowCustomizedBuiltInElements === "boolean") CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements;
1945
+ seal(CUSTOM_ELEMENT_HANDLING);
1946
+ if (SAFE_FOR_TEMPLATES) ALLOW_DATA_ATTR = false;
1947
+ if (RETURN_DOM_FRAGMENT) RETURN_DOM = true;
1948
+ if (USE_PROFILES) {
1949
+ ALLOWED_TAGS = addToSet({}, text);
1950
+ ALLOWED_ATTR = create(null);
1951
+ if (USE_PROFILES.html === true) {
1952
+ addToSet(ALLOWED_TAGS, html$1);
1953
+ addToSet(ALLOWED_ATTR, html);
1954
+ }
1955
+ if (USE_PROFILES.svg === true) {
1956
+ addToSet(ALLOWED_TAGS, svg$1);
1957
+ addToSet(ALLOWED_ATTR, svg);
1958
+ addToSet(ALLOWED_ATTR, xml);
1959
+ }
1960
+ if (USE_PROFILES.svgFilters === true) {
1961
+ addToSet(ALLOWED_TAGS, svgFilters);
1962
+ addToSet(ALLOWED_ATTR, svg);
1963
+ addToSet(ALLOWED_ATTR, xml);
1964
+ }
1965
+ if (USE_PROFILES.mathMl === true) {
1966
+ addToSet(ALLOWED_TAGS, mathMl$1);
1967
+ addToSet(ALLOWED_ATTR, mathMl);
1968
+ addToSet(ALLOWED_ATTR, xml);
1969
+ }
1970
+ }
1971
+ EXTRA_ELEMENT_HANDLING.tagCheck = null;
1972
+ EXTRA_ELEMENT_HANDLING.attributeCheck = null;
1973
+ if (objectHasOwnProperty(cfg, "ADD_TAGS")) {
1974
+ if (typeof cfg.ADD_TAGS === "function") EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
1975
+ else if (arrayIsArray(cfg.ADD_TAGS)) {
1976
+ if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) ALLOWED_TAGS = clone(ALLOWED_TAGS);
1977
+ addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
1978
+ }
1979
+ }
1980
+ if (objectHasOwnProperty(cfg, "ADD_ATTR")) {
1981
+ if (typeof cfg.ADD_ATTR === "function") EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
1982
+ else if (arrayIsArray(cfg.ADD_ATTR)) {
1983
+ if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) ALLOWED_ATTR = clone(ALLOWED_ATTR);
1984
+ addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
1985
+ }
1986
+ }
1987
+ if (objectHasOwnProperty(cfg, "ADD_URI_SAFE_ATTR") && arrayIsArray(cfg.ADD_URI_SAFE_ATTR)) addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
1988
+ if (objectHasOwnProperty(cfg, "FORBID_CONTENTS") && arrayIsArray(cfg.FORBID_CONTENTS)) {
1989
+ if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) FORBID_CONTENTS = clone(FORBID_CONTENTS);
1990
+ addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
1991
+ }
1992
+ if (objectHasOwnProperty(cfg, "ADD_FORBID_CONTENTS") && arrayIsArray(cfg.ADD_FORBID_CONTENTS)) {
1993
+ if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) FORBID_CONTENTS = clone(FORBID_CONTENTS);
1994
+ addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
1995
+ }
1996
+ if (KEEP_CONTENT) ALLOWED_TAGS["#text"] = true;
1997
+ if (WHOLE_DOCUMENT) addToSet(ALLOWED_TAGS, [
1998
+ "html",
1999
+ "head",
2000
+ "body"
2001
+ ]);
2002
+ if (ALLOWED_TAGS.table) {
2003
+ addToSet(ALLOWED_TAGS, ["tbody"]);
2004
+ delete FORBID_TAGS.tbody;
2005
+ }
2006
+ if (cfg.TRUSTED_TYPES_POLICY) {
2007
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
2008
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
2009
+ const previousTrustedTypesPolicy = trustedTypesPolicy;
2010
+ trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
2011
+ try {
2012
+ emptyHTML = _createTrustedHTML("");
2013
+ } catch (error) {
2014
+ trustedTypesPolicy = previousTrustedTypesPolicy;
2015
+ throw error;
2016
+ }
2017
+ } else if (cfg.TRUSTED_TYPES_POLICY === null) {
2018
+ trustedTypesPolicy = void 0;
2019
+ emptyHTML = "";
2020
+ } else {
2021
+ if (trustedTypesPolicy === void 0) trustedTypesPolicy = _getDefaultTrustedTypesPolicy();
2022
+ if (trustedTypesPolicy && typeof emptyHTML === "string") emptyHTML = _createTrustedHTML("");
2023
+ }
2024
+ if (freeze) freeze(cfg);
2025
+ CONFIG = cfg;
2026
+ };
2027
+ const ALL_SVG_TAGS = addToSet({}, [
2028
+ ...svg$1,
2029
+ ...svgFilters,
2030
+ ...svgDisallowed
2031
+ ]);
2032
+ const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
2033
+ /**
2034
+ * Namespace rules for an element in the SVG namespace.
2035
+ *
2036
+ * @param tagName the element's lowercase tag name
2037
+ * @param parent the (possibly simulated) parent node
2038
+ * @param parentTagName the parent's lowercase tag name
2039
+ * @returns true if a spec-compliant parser could produce this element
2040
+ */
2041
+ const _checkSvgNamespace = function _checkSvgNamespace(tagName, parent, parentTagName) {
2042
+ if (parent.namespaceURI === HTML_NAMESPACE) return tagName === "svg";
2043
+ if (parent.namespaceURI === MATHML_NAMESPACE) return tagName === "svg" && (parentTagName === "annotation-xml" || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
2044
+ return Boolean(ALL_SVG_TAGS[tagName]);
2045
+ };
2046
+ /**
2047
+ * Namespace rules for an element in the MathML namespace.
2048
+ *
2049
+ * @param tagName the element's lowercase tag name
2050
+ * @param parent the (possibly simulated) parent node
2051
+ * @param parentTagName the parent's lowercase tag name
2052
+ * @returns true if a spec-compliant parser could produce this element
2053
+ */
2054
+ const _checkMathMlNamespace = function _checkMathMlNamespace(tagName, parent, parentTagName) {
2055
+ if (parent.namespaceURI === HTML_NAMESPACE) return tagName === "math";
2056
+ if (parent.namespaceURI === SVG_NAMESPACE) return tagName === "math" && HTML_INTEGRATION_POINTS[parentTagName];
2057
+ return Boolean(ALL_MATHML_TAGS[tagName]);
2058
+ };
2059
+ /**
2060
+ * Namespace rules for an element in the HTML namespace.
2061
+ *
2062
+ * @param tagName the element's lowercase tag name
2063
+ * @param parent the (possibly simulated) parent node
2064
+ * @param parentTagName the parent's lowercase tag name
2065
+ * @returns true if a spec-compliant parser could produce this element
2066
+ */
2067
+ const _checkHtmlNamespace = function _checkHtmlNamespace(tagName, parent, parentTagName) {
2068
+ if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) return false;
2069
+ if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) return false;
2070
+ return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
2071
+ };
2072
+ /**
2073
+ * @param element a DOM element whose namespace is being checked
2074
+ * @returns Return false if the element has a
2075
+ * namespace that a spec-compliant parser would never
2076
+ * return. Return true otherwise.
2077
+ */
2078
+ const _checkValidNamespace = function _checkValidNamespace(element) {
2079
+ let parent = getParentNode(element);
2080
+ if (!parent || !parent.tagName) parent = {
2081
+ namespaceURI: NAMESPACE,
2082
+ tagName: "template"
2083
+ };
2084
+ const tagName = stringToLowerCase(element.tagName);
2085
+ const parentTagName = stringToLowerCase(parent.tagName);
2086
+ if (!ALLOWED_NAMESPACES[element.namespaceURI]) return false;
2087
+ if (element.namespaceURI === SVG_NAMESPACE) return _checkSvgNamespace(tagName, parent, parentTagName);
2088
+ if (element.namespaceURI === MATHML_NAMESPACE) return _checkMathMlNamespace(tagName, parent, parentTagName);
2089
+ if (element.namespaceURI === HTML_NAMESPACE) return _checkHtmlNamespace(tagName, parent, parentTagName);
2090
+ if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && ALLOWED_NAMESPACES[element.namespaceURI]) return true;
2091
+ return false;
2092
+ };
2093
+ /**
2094
+ * _forceRemove
2095
+ *
2096
+ * @param node a DOM node
2097
+ */
2098
+ const _forceRemove = function _forceRemove(node) {
2099
+ arrayPush(DOMPurify.removed, { element: node });
2100
+ try {
2101
+ getParentNode(node).removeChild(node);
2102
+ } catch (_) {
2103
+ remove(node);
2104
+ if (!getParentNode(node)) throw typeErrorCreate("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
2105
+ }
2106
+ };
2107
+ /**
2108
+ * _neutralizeRoot
2109
+ *
2110
+ * Fail-closed teardown of an in-place root after the sanitize walk aborts
2111
+ * (campaign-3 F2). An internal throw mid-walk — e.g. a page-registered
2112
+ * custom element's reaction detaches a node so `_forceRemove`'s deliberate
2113
+ * parentless guard throws, or any other re-entrant engine mutation — would
2114
+ * otherwise leave the caller's *live* tree half-sanitized, with everything
2115
+ * after the abort point still carrying its handlers. There is no safe way
2116
+ * to resume the walk (the tree mutated under us), so we strip the root bare:
2117
+ * remove every child and every attribute, then let the caller's catch see
2118
+ * the original error. Clobber-safe (cached `remove`/`childNodes`/`attributes`
2119
+ * getters; the root was already clobber-pre-flighted at the IN_PLACE entry).
2120
+ *
2121
+ * @param root the in-place root to empty
2122
+ */
2123
+ const _neutralizeRoot = function _neutralizeRoot(root) {
2124
+ const childNodes = getChildNodes(root);
2125
+ if (childNodes) {
2126
+ const snapshot = [];
2127
+ arrayForEach(childNodes, (child) => {
2128
+ arrayPush(snapshot, child);
2129
+ });
2130
+ arrayForEach(snapshot, (child) => {
2131
+ try {
2132
+ remove(child);
2133
+ } catch (_) {}
2134
+ });
2135
+ }
2136
+ const attributes = getAttributes(root);
2137
+ if (attributes) for (let i = attributes.length - 1; i >= 0; --i) {
2138
+ const attribute = attributes[i];
2139
+ const name = attribute && attribute.name;
2140
+ if (typeof name === "string") try {
2141
+ root.removeAttribute(name);
2142
+ } catch (_) {}
2143
+ }
2144
+ };
2145
+ /**
2146
+ * _removeAttribute
2147
+ *
2148
+ * @param name an Attribute name
2149
+ * @param element a DOM node
2150
+ */
2151
+ const _removeAttribute = function _removeAttribute(name, element) {
2152
+ try {
2153
+ arrayPush(DOMPurify.removed, {
2154
+ attribute: element.getAttributeNode(name),
2155
+ from: element
2156
+ });
2157
+ } catch (_) {
2158
+ arrayPush(DOMPurify.removed, {
2159
+ attribute: null,
2160
+ from: element
2161
+ });
2162
+ }
2163
+ element.removeAttribute(name);
2164
+ if (name === "is") if (RETURN_DOM || RETURN_DOM_FRAGMENT) try {
2165
+ _forceRemove(element);
2166
+ } catch (_) {}
2167
+ else try {
2168
+ element.setAttribute(name, "");
2169
+ } catch (_) {}
2170
+ };
2171
+ /**
2172
+ * _stripDisallowedAttributes
2173
+ *
2174
+ * Removes every attribute the active configuration does not allow from a
2175
+ * single element, using the same allowlist as the main attribute pass (so
2176
+ * `on*` handlers go, but no `/^on/` blocklist is introduced). Used only to
2177
+ * neutralise nodes that are being discarded from an in-place tree.
2178
+ *
2179
+ * @param element the element to strip
2180
+ */
2181
+ const _stripDisallowedAttributes = function _stripDisallowedAttributes(element) {
2182
+ const attributes = getAttributes(element);
2183
+ if (!attributes) return;
2184
+ for (let i = attributes.length - 1; i >= 0; --i) {
2185
+ const attribute = attributes[i];
2186
+ const name = attribute && attribute.name;
2187
+ if (typeof name !== "string" || ALLOWED_ATTR[transformCaseFunc(name)]) continue;
2188
+ try {
2189
+ element.removeAttribute(name);
2190
+ } catch (_) {}
2191
+ }
2192
+ };
2193
+ /**
2194
+ * _neutralizeSubtree
2195
+ *
2196
+ * Completes the audit-5 F1 fix across every removal path. The KEEP_CONTENT
2197
+ * move-hoist neutralises only disallowed-tag removals; clobber, mXSS-canary,
2198
+ * namespace, comment, processing-instruction and KEEP_CONTENT:false removals
2199
+ * all drop their subtree wholesale via `_forceRemove`. On the IN_PLACE path
2200
+ * those dropped nodes are detached from the caller's LIVE tree but a
2201
+ * handler-bearing original among them (an `<img onerror>`/`<video>` that was
2202
+ * loading) keeps its queued resource event, which fires in page scope after
2203
+ * sanitize returns. This walks a removed subtree and strips every attribute
2204
+ * the active configuration does not allow — so `on*` handlers are cancelled
2205
+ * through the SAME allowlist that governs kept nodes, not a separate `/^on/`
2206
+ * blocklist. Run synchronously before sanitize returns, i.e. before any
2207
+ * queued event can fire. Hook-free by design: these nodes leave the output,
2208
+ * so firing attribute hooks for them would be surprising. Clobber-safe reads;
2209
+ * a doomed clobbered node may shadow `removeAttribute` (its own attributes are
2210
+ * irrelevant — it is discarded — while its non-clobbered descendants, e.g.
2211
+ * the `<img>`, are reached and scrubbed).
2212
+ *
2213
+ * @param root the root of a removed subtree to neutralise
2214
+ */
2215
+ const _neutralizeSubtree = function _neutralizeSubtree(root) {
2216
+ const stack = [root];
2217
+ while (stack.length > 0) {
2218
+ const node = stack.pop();
2219
+ if ((getNodeType ? getNodeType(node) : node.nodeType) === NODE_TYPE.element) _stripDisallowedAttributes(node);
2220
+ const childNodes = getChildNodes(node);
2221
+ if (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push(childNodes[i]);
2222
+ }
2223
+ };
2224
+ /**
2225
+ * _initDocument
2226
+ *
2227
+ * @param dirty - a string of dirty markup
2228
+ * @return a DOM, filled with the dirty markup
2229
+ */
2230
+ const _initDocument = function _initDocument(dirty) {
2231
+ let doc = null;
2232
+ let leadingWhitespace = null;
2233
+ if (FORCE_BODY) dirty = "<remove></remove>" + dirty;
2234
+ else {
2235
+ const matches = stringMatch(dirty, /^[\r\n\t ]+/);
2236
+ leadingWhitespace = matches && matches[0];
2237
+ }
2238
+ if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && NAMESPACE === HTML_NAMESPACE) dirty = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + dirty + "</body></html>";
2239
+ const dirtyPayload = trustedTypesPolicy ? _createTrustedHTML(dirty) : dirty;
2240
+ if (NAMESPACE === HTML_NAMESPACE) try {
2241
+ doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
2242
+ } catch (_) {}
2243
+ if (!doc || !doc.documentElement) {
2244
+ doc = implementation.createDocument(NAMESPACE, "template", null);
2245
+ try {
2246
+ doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
2247
+ } catch (_) {}
2248
+ }
2249
+ const body = doc.body || doc.documentElement;
2250
+ if (dirty && leadingWhitespace) body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
2251
+ if (NAMESPACE === HTML_NAMESPACE) return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? "html" : "body")[0];
2252
+ return WHOLE_DOCUMENT ? doc.documentElement : body;
2253
+ };
2254
+ /**
2255
+ * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
2256
+ *
2257
+ * @param root The root element or node to start traversing on.
2258
+ * @return The created NodeIterator
2259
+ */
2260
+ const _createNodeIterator = function _createNodeIterator(root) {
2261
+ return createNodeIterator.call(root.ownerDocument || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
2262
+ };
2263
+ /**
2264
+ * Replace template expression syntax (mustache, ERB, template
2265
+ * literal) with a space; shared by all SAFE_FOR_TEMPLATES scrub
2266
+ * sites. Order matters: mustache, then ERB, then template literal.
2267
+ *
2268
+ * @param value the string to scrub
2269
+ * @returns the scrubbed string
2270
+ */
2271
+ const _stripTemplateExpressions = function _stripTemplateExpressions(value) {
2272
+ value = stringReplace(value, MUSTACHE_EXPR$1, " ");
2273
+ value = stringReplace(value, ERB_EXPR$1, " ");
2274
+ value = stringReplace(value, TMPLIT_EXPR$1, " ");
2275
+ return value;
2276
+ };
2277
+ /**
2278
+ * Strip template-engine expressions ({{...}}, ${...}, <%...%>) from the
2279
+ * character data of an element subtree. Used as the final safety net for
2280
+ * SAFE_FOR_TEMPLATES on every DOM-returning code path so that expressions
2281
+ * which only form after text-node normalization (e.g. fragments split across
2282
+ * stripped elements) cannot survive into a template-evaluating framework.
2283
+ *
2284
+ * Walks text/comment/CDATA/processing-instruction nodes and mutates `.data`
2285
+ * in place rather than round-tripping through innerHTML. This preserves
2286
+ * descendant node references (important for IN_PLACE callers), avoids a
2287
+ * serialize/reparse cycle, and reads literal character data — which means
2288
+ * `<%...%>` in text content matches the ERB regex against its real bytes
2289
+ * instead of the HTML-entity-escaped form innerHTML would produce.
2290
+ *
2291
+ * Attribute values are not visited here; SAFE_FOR_TEMPLATES handling for
2292
+ * attributes is performed during the per-node `_sanitizeAttributes` pass.
2293
+ *
2294
+ * @param node The root element whose character data should be scrubbed.
2295
+ */
2296
+ const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
2297
+ var _node$querySelectorAl;
2298
+ node.normalize();
2299
+ const walker = createNodeIterator.call(node.ownerDocument || node, node, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
2300
+ let currentNode = walker.nextNode();
2301
+ while (currentNode) {
2302
+ currentNode.data = _stripTemplateExpressions(currentNode.data);
2303
+ currentNode = walker.nextNode();
2304
+ }
2305
+ const templates = (_node$querySelectorAl = node.querySelectorAll) === null || _node$querySelectorAl === void 0 ? void 0 : _node$querySelectorAl.call(node, "template");
2306
+ if (templates) arrayForEach(templates, (tmpl) => {
2307
+ if (_isDocumentFragment(tmpl.content)) _scrubTemplateExpressions2(tmpl.content);
2308
+ });
2309
+ };
2310
+ /**
2311
+ * _isClobbered
2312
+ *
2313
+ * Detect DOM-clobbering on HTMLFormElement nodes. Form is the only HTML
2314
+ * interface with [LegacyOverrideBuiltIns]; a descendant element with a
2315
+ * `name` attribute matching a prototype property shadows that property
2316
+ * on direct reads. We use this check at the IN_PLACE entry-point and
2317
+ * during attribute sanitization to refuse clobbered forms.
2318
+ *
2319
+ * @param element element to check for clobbering attacks
2320
+ * @return true if clobbered, false if safe
2321
+ */
2322
+ const _isClobbered = function _isClobbered(element) {
2323
+ const realTagName = getNodeName ? getNodeName(element) : null;
2324
+ if (typeof realTagName !== "string") return false;
2325
+ if (transformCaseFunc(realTagName) !== "form") return false;
2326
+ return typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || element.attributes !== getAttributes(element) || typeof element.removeAttribute !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function" || element.nodeType !== getNodeType(element) || element.childNodes !== getChildNodes(element);
2327
+ };
2328
+ /**
2329
+ * Checks whether the given value is a DocumentFragment from any realm.
2330
+ *
2331
+ * The realm-independent replacement reads `nodeType` through the cached
2332
+ * Node.prototype getter and compares to the DOCUMENT_FRAGMENT_NODE
2333
+ * constant (11). nodeType is a numeric value resolved from the node's
2334
+ * internal slot, identical across realms for the same kind of node.
2335
+ *
2336
+ * @param value object to check
2337
+ * @return true if value is a DocumentFragment-shaped node from any realm
2338
+ */
2339
+ const _isDocumentFragment = function _isDocumentFragment(value) {
2340
+ if (!getNodeType || typeof value !== "object" || value === null) return false;
2341
+ try {
2342
+ return getNodeType(value) === NODE_TYPE.documentFragment;
2343
+ } catch (_) {
2344
+ return false;
2345
+ }
2346
+ };
2347
+ /**
2348
+ * Checks whether the given object is a DOM node, including nodes that
2349
+ * originate from a different window/realm (e.g. an iframe's
2350
+ * contentDocument). The previous `value instanceof Node` check was
2351
+ * realm-bound: nodes from a different window failed it, causing
2352
+ * sanitize() to silently stringify them and reset IN_PLACE to false,
2353
+ * returning the original node unsanitized. See GHSA-4w3q-35jp-p934.
2354
+ *
2355
+ * @param value object to check whether it's a DOM node
2356
+ * @return true if value is a DOM node from any realm
2357
+ */
2358
+ const _isNode = function _isNode(value) {
2359
+ if (!getNodeType || typeof value !== "object" || value === null) return false;
2360
+ try {
2361
+ return typeof getNodeType(value) === "number";
2362
+ } catch (_) {
2363
+ return false;
2364
+ }
2365
+ };
2366
+ function _executeHooks(hooks, currentNode, data) {
2367
+ if (hooks.length === 0) return;
2368
+ arrayForEach(hooks, (hook) => {
2369
+ hook.call(DOMPurify, currentNode, data, CONFIG);
2370
+ });
2371
+ }
2372
+ /**
2373
+ * Structural-threat checks that condemn a node regardless of the
2374
+ * allowlists: mXSS via namespace confusion, risky CSS construction,
2375
+ * processing instructions, markup-bearing comments. Pure predicate;
2376
+ * the caller removes. Check order is load-bearing.
2377
+ *
2378
+ * @param currentNode the node to inspect
2379
+ * @param tagName the node's transformCaseFunc'd tag name
2380
+ * @return true if the node must be removed
2381
+ */
2382
+ const _isUnsafeNode = function _isUnsafeNode(currentNode, tagName) {
2383
+ if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.innerHTML)) return true;
2384
+ if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === "style" && _isNode(currentNode.firstElementChild)) return true;
2385
+ if (currentNode.nodeType === NODE_TYPE.processingInstruction) return true;
2386
+ if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, currentNode.data)) return true;
2387
+ return false;
2388
+ };
2389
+ /**
2390
+ * Handle a node whose tag is forbidden or not allowlisted: keep
2391
+ * allowed custom elements (false return exits _sanitizeElements
2392
+ * early - namespace/fallback checks and the afterSanitizeElements
2393
+ * hook are intentionally skipped for kept custom elements), else
2394
+ * hoist content per KEEP_CONTENT and remove.
2395
+ *
2396
+ * @param currentNode the disallowed node
2397
+ * @param tagName the node's transformCaseFunc'd tag name
2398
+ * @return true if the node was removed, false if kept
2399
+ */
2400
+ const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName) {
2401
+ if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
2402
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;
2403
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false;
2404
+ }
2405
+ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
2406
+ const parentNode = getParentNode(currentNode);
2407
+ const childNodes = getChildNodes(currentNode);
2408
+ if (childNodes && parentNode) {
2409
+ const childCount = childNodes.length;
2410
+ for (let i = childCount - 1; i >= 0; --i) {
2411
+ const hoisted = IN_PLACE ? childNodes[i] : cloneNode(childNodes[i], true);
2412
+ parentNode.insertBefore(hoisted, getNextSibling(currentNode));
2413
+ }
2414
+ }
2415
+ }
2416
+ _forceRemove(currentNode);
2417
+ return true;
2418
+ };
2419
+ /**
2420
+ * _sanitizeElements
2421
+ *
2422
+ * @protect nodeName
2423
+ * @protect textContent
2424
+ * @protect removeChild
2425
+ * @param currentNode to check for permission to exist
2426
+ * @return true if node was killed, false if left alive
2427
+ */
2428
+ const _sanitizeElements = function _sanitizeElements(currentNode) {
2429
+ _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
2430
+ if (_isClobbered(currentNode)) {
2431
+ _forceRemove(currentNode);
2432
+ return true;
2433
+ }
2434
+ const tagName = transformCaseFunc(getNodeName ? getNodeName(currentNode) : currentNode.nodeName);
2435
+ _executeHooks(hooks.uponSanitizeElement, currentNode, {
2436
+ tagName,
2437
+ allowedTags: ALLOWED_TAGS
2438
+ });
2439
+ if (_isUnsafeNode(currentNode, tagName)) {
2440
+ _forceRemove(currentNode);
2441
+ return true;
2442
+ }
2443
+ if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) return _sanitizeDisallowedNode(currentNode, tagName);
2444
+ if ((getNodeType ? getNodeType(currentNode) : currentNode.nodeType) === NODE_TYPE.element && !_checkValidNamespace(currentNode)) {
2445
+ _forceRemove(currentNode);
2446
+ return true;
2447
+ }
2448
+ if ((tagName === "noscript" || tagName === "noembed" || tagName === "noframes") && regExpTest(FALLBACK_TAG_CLOSE, currentNode.innerHTML)) {
2449
+ _forceRemove(currentNode);
2450
+ return true;
2451
+ }
2452
+ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
2453
+ const content = _stripTemplateExpressions(currentNode.textContent);
2454
+ if (currentNode.textContent !== content) {
2455
+ arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });
2456
+ currentNode.textContent = content;
2457
+ }
2458
+ }
2459
+ _executeHooks(hooks.afterSanitizeElements, currentNode, null);
2460
+ return false;
2461
+ };
2462
+ /**
2463
+ * _isValidAttribute
2464
+ *
2465
+ * @param lcTag Lowercase tag name of containing element.
2466
+ * @param lcName Lowercase attribute name.
2467
+ * @param value Attribute value.
2468
+ * @return Returns true if `value` is valid, otherwise false.
2469
+ */
2470
+ const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
2471
+ if (FORBID_ATTR[lcName]) return false;
2472
+ if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document || value in formElement)) return false;
2473
+ const nameIsPermitted = ALLOWED_ATTR[lcName] || EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag);
2474
+ if (ALLOW_DATA_ATTR && regExpTest(DATA_ATTR$1, lcName));
2475
+ else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName));
2476
+ else if (!nameIsPermitted) if (_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) || lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value)));
2477
+ else return false;
2478
+ else if (URI_SAFE_ATTRIBUTES[lcName]);
2479
+ else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE$1, "")));
2480
+ else if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag]);
2481
+ else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$1, stringReplace(value, ATTR_WHITESPACE$1, "")));
2482
+ else if (value) return false;
2483
+ return true;
2484
+ };
2485
+ const RESERVED_CUSTOM_ELEMENT_NAMES = addToSet({}, [
2486
+ "annotation-xml",
2487
+ "color-profile",
2488
+ "font-face",
2489
+ "font-face-format",
2490
+ "font-face-name",
2491
+ "font-face-src",
2492
+ "font-face-uri",
2493
+ "missing-glyph"
2494
+ ]);
2495
+ /**
2496
+ * _isBasicCustomElement
2497
+ * checks if at least one dash is included in tagName, and it's not the first char
2498
+ * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
2499
+ *
2500
+ * @param tagName name of the tag of the node to sanitize
2501
+ * @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
2502
+ */
2503
+ const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
2504
+ return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT$1, tagName);
2505
+ };
2506
+ /**
2507
+ * Wrap an attribute value in the matching Trusted Types object when
2508
+ * the active policy requires it. Namespaced attributes pass through
2509
+ * unchanged (no TT support yet, see
2510
+ * https://bugs.chromium.org/p/chromium/issues/detail?id=1305293).
2511
+ *
2512
+ * @param lcTag lowercase tag name of the containing element
2513
+ * @param lcName lowercase attribute name
2514
+ * @param namespaceURI the attribute's namespace, if any
2515
+ * @param value the attribute value to wrap
2516
+ * @return the value, wrapped when Trusted Types demand it
2517
+ */
2518
+ const _applyTrustedTypesToAttribute = function _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value) {
2519
+ if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function" && !namespaceURI) switch (trustedTypes.getAttributeType(lcTag, lcName)) {
2520
+ case "TrustedHTML": return _createTrustedHTML(value);
2521
+ case "TrustedScriptURL": return _createTrustedScriptURL(value);
2522
+ }
2523
+ return value;
2524
+ };
2525
+ /**
2526
+ * Write a modified attribute value back onto the element. On
2527
+ * success, re-probe for clobbering introduced by the new value and
2528
+ * remove the element when found; otherwise pop the removal entry
2529
+ * recorded by the earlier _removeAttribute (long-standing pairing
2530
+ * with the SANITIZE_NAMED_PROPS path - do not "fix" casually). On
2531
+ * failure, remove the attribute instead.
2532
+ *
2533
+ * @param currentNode the element carrying the attribute
2534
+ * @param name the attribute name as present on the element
2535
+ * @param namespaceURI the attribute's namespace, if any
2536
+ * @param value the new attribute value
2537
+ */
2538
+ const _setAttributeValue = function _setAttributeValue(currentNode, name, namespaceURI, value) {
2539
+ try {
2540
+ if (namespaceURI) currentNode.setAttributeNS(namespaceURI, name, value);
2541
+ else currentNode.setAttribute(name, value);
2542
+ if (_isClobbered(currentNode)) _forceRemove(currentNode);
2543
+ else arrayPop(DOMPurify.removed);
2544
+ } catch (_) {
2545
+ _removeAttribute(name, currentNode);
2546
+ }
2547
+ };
2548
+ /**
2549
+ * _sanitizeAttributes
2550
+ *
2551
+ * @protect attributes
2552
+ * @protect nodeName
2553
+ * @protect removeAttribute
2554
+ * @protect setAttribute
2555
+ *
2556
+ * @param currentNode to sanitize
2557
+ */
2558
+ const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
2559
+ _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
2560
+ const attributes = currentNode.attributes;
2561
+ if (!attributes || _isClobbered(currentNode)) return;
2562
+ const hookEvent = {
2563
+ attrName: "",
2564
+ attrValue: "",
2565
+ keepAttr: true,
2566
+ allowedAttributes: ALLOWED_ATTR,
2567
+ forceKeepAttr: void 0
2568
+ };
2569
+ let l = attributes.length;
2570
+ const lcTag = transformCaseFunc(currentNode.nodeName);
2571
+ while (l--) {
2572
+ const attr = attributes[l];
2573
+ const name = attr.name, namespaceURI = attr.namespaceURI, attrValue = attr.value;
2574
+ const lcName = transformCaseFunc(name);
2575
+ const initValue = attrValue;
2576
+ let value = name === "value" ? initValue : stringTrim(initValue);
2577
+ hookEvent.attrName = lcName;
2578
+ hookEvent.attrValue = value;
2579
+ hookEvent.keepAttr = true;
2580
+ hookEvent.forceKeepAttr = void 0;
2581
+ _executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
2582
+ value = hookEvent.attrValue;
2583
+ if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name") && stringIndexOf(value, SANITIZE_NAMED_PROPS_PREFIX) !== 0) {
2584
+ _removeAttribute(name, currentNode);
2585
+ value = SANITIZE_NAMED_PROPS_PREFIX + value;
2586
+ }
2587
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
2588
+ _removeAttribute(name, currentNode);
2589
+ continue;
2590
+ }
2591
+ if (lcName === "attributename" && stringMatch(value, "href")) {
2592
+ _removeAttribute(name, currentNode);
2593
+ continue;
2594
+ }
2595
+ if (hookEvent.forceKeepAttr) continue;
2596
+ if (!hookEvent.keepAttr) {
2597
+ _removeAttribute(name, currentNode);
2598
+ continue;
2599
+ }
2600
+ if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(SELF_CLOSING_TAG, value)) {
2601
+ _removeAttribute(name, currentNode);
2602
+ continue;
2603
+ }
2604
+ if (SAFE_FOR_TEMPLATES) value = _stripTemplateExpressions(value);
2605
+ if (!_isValidAttribute(lcTag, lcName, value)) {
2606
+ _removeAttribute(name, currentNode);
2607
+ continue;
2608
+ }
2609
+ value = _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value);
2610
+ if (value !== initValue) _setAttributeValue(currentNode, name, namespaceURI, value);
2611
+ }
2612
+ _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
2613
+ };
2614
+ /**
2615
+ * _sanitizeShadowDOM
2616
+ *
2617
+ * @param fragment to iterate over recursively
2618
+ */
2619
+ const _sanitizeShadowDOM2 = function _sanitizeShadowDOM(fragment) {
2620
+ let shadowNode = null;
2621
+ const shadowIterator = _createNodeIterator(fragment);
2622
+ _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
2623
+ while (shadowNode = shadowIterator.nextNode()) {
2624
+ _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
2625
+ _sanitizeElements(shadowNode);
2626
+ _sanitizeAttributes(shadowNode);
2627
+ if (_isDocumentFragment(shadowNode.content)) _sanitizeShadowDOM2(shadowNode.content);
2628
+ if ((getNodeType ? getNodeType(shadowNode) : shadowNode.nodeType) === NODE_TYPE.element) {
2629
+ const innerSr = getShadowRoot(shadowNode);
2630
+ if (_isDocumentFragment(innerSr)) {
2631
+ _sanitizeAttachedShadowRoots(innerSr);
2632
+ _sanitizeShadowDOM2(innerSr);
2633
+ }
2634
+ }
2635
+ }
2636
+ _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
2637
+ };
2638
+ /**
2639
+ * _sanitizeAttachedShadowRoots
2640
+ *
2641
+ * Walks `root` and feeds every attached shadow root we encounter into
2642
+ * the existing _sanitizeShadowDOM pipeline. The default node iterator
2643
+ * does not descend into shadow trees, so nodes inside an attached
2644
+ * shadow root would otherwise be skipped entirely.
2645
+ *
2646
+ * Two real input paths put attached shadow roots in front of us:
2647
+ * 1. IN_PLACE on a DOM node that already has shadow roots attached.
2648
+ * 2. DOM-node input where importNode(dirty, true) deep-clones the
2649
+ * shadow root because it was created with `clonable: true`.
2650
+ *
2651
+ * This pass runs once, up front, so the main iteration loop (and the
2652
+ * existing _sanitizeShadowDOM template-content recursion) stay
2653
+ * untouched — string-input paths are not affected.
2654
+ *
2655
+ * @param root the subtree root to walk for attached shadow roots
2656
+ */
2657
+ const _sanitizeAttachedShadowRoots = function _sanitizeAttachedShadowRoots(root) {
2658
+ const stack = [{
2659
+ node: root,
2660
+ shadow: null
2661
+ }];
2662
+ while (stack.length > 0) {
2663
+ const item = stack.pop();
2664
+ if (item.shadow) {
2665
+ _sanitizeShadowDOM2(item.shadow);
2666
+ continue;
2667
+ }
2668
+ const node = item.node;
2669
+ const isElement = (getNodeType ? getNodeType(node) : node.nodeType) === NODE_TYPE.element;
2670
+ const childNodes = getChildNodes(node);
2671
+ if (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push({
2672
+ node: childNodes[i],
2673
+ shadow: null
2674
+ });
2675
+ if (isElement) {
2676
+ const rootName = getNodeName ? getNodeName(node) : null;
2677
+ if (typeof rootName === "string" && transformCaseFunc(rootName) === "template") {
2678
+ const content = node.content;
2679
+ if (_isDocumentFragment(content)) stack.push({
2680
+ node: content,
2681
+ shadow: null
2682
+ });
2683
+ }
2684
+ }
2685
+ if (isElement) {
2686
+ const sr = getShadowRoot(node);
2687
+ if (_isDocumentFragment(sr)) stack.push({
2688
+ node: null,
2689
+ shadow: sr
2690
+ }, {
2691
+ node: sr,
2692
+ shadow: null
2693
+ });
2694
+ }
2695
+ }
2696
+ };
2697
+ DOMPurify.sanitize = function(dirty) {
2698
+ let cfg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2699
+ let body = null;
2700
+ let importedNode = null;
2701
+ let currentNode = null;
2702
+ let returnNode = null;
2703
+ IS_EMPTY_INPUT = !dirty;
2704
+ if (IS_EMPTY_INPUT) dirty = "<!-->";
2705
+ if (typeof dirty !== "string" && !_isNode(dirty)) {
2706
+ dirty = stringifyValue(dirty);
2707
+ if (typeof dirty !== "string") throw typeErrorCreate("dirty is not a string, aborting");
2708
+ }
2709
+ if (!DOMPurify.isSupported) return dirty;
2710
+ if (SET_CONFIG) {
2711
+ ALLOWED_TAGS = SET_CONFIG_ALLOWED_TAGS;
2712
+ ALLOWED_ATTR = SET_CONFIG_ALLOWED_ATTR;
2713
+ } else _parseConfig(cfg);
2714
+ if (hooks.uponSanitizeElement.length > 0 || hooks.uponSanitizeAttribute.length > 0) ALLOWED_TAGS = clone(ALLOWED_TAGS);
2715
+ if (hooks.uponSanitizeAttribute.length > 0) ALLOWED_ATTR = clone(ALLOWED_ATTR);
2716
+ DOMPurify.removed = [];
2717
+ const inPlace = IN_PLACE && typeof dirty !== "string" && _isNode(dirty);
2718
+ if (inPlace) {
2719
+ const nn = getNodeName ? getNodeName(dirty) : dirty.nodeName;
2720
+ if (typeof nn === "string") {
2721
+ const tagName = transformCaseFunc(nn);
2722
+ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
2723
+ }
2724
+ if (_isClobbered(dirty)) throw typeErrorCreate("root node is clobbered and cannot be sanitized in-place");
2725
+ try {
2726
+ _sanitizeAttachedShadowRoots(dirty);
2727
+ } catch (error) {
2728
+ _neutralizeRoot(dirty);
2729
+ throw error;
2730
+ }
2731
+ } else if (_isNode(dirty)) {
2732
+ body = _initDocument("<!---->");
2733
+ importedNode = body.ownerDocument.importNode(dirty, true);
2734
+ if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === "BODY") body = importedNode;
2735
+ else if (importedNode.nodeName === "HTML") body = importedNode;
2736
+ else body.appendChild(importedNode);
2737
+ _sanitizeAttachedShadowRoots(importedNode);
2738
+ } else {
2739
+ if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && dirty.indexOf("<") === -1) return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(dirty) : dirty;
2740
+ body = _initDocument(dirty);
2741
+ if (!body) return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : "";
2742
+ }
2743
+ if (body && FORCE_BODY) _forceRemove(body.firstChild);
2744
+ const nodeIterator = _createNodeIterator(inPlace ? dirty : body);
2745
+ try {
2746
+ while (currentNode = nodeIterator.nextNode()) {
2747
+ _sanitizeElements(currentNode);
2748
+ _sanitizeAttributes(currentNode);
2749
+ if (_isDocumentFragment(currentNode.content)) _sanitizeShadowDOM2(currentNode.content);
2750
+ }
2751
+ } catch (error) {
2752
+ if (inPlace) _neutralizeRoot(dirty);
2753
+ throw error;
2754
+ }
2755
+ if (inPlace) {
2756
+ arrayForEach(DOMPurify.removed, (entry) => {
2757
+ if (entry.element) _neutralizeSubtree(entry.element);
2758
+ });
2759
+ if (SAFE_FOR_TEMPLATES) _scrubTemplateExpressions2(dirty);
2760
+ return dirty;
2761
+ }
2762
+ if (RETURN_DOM) {
2763
+ if (SAFE_FOR_TEMPLATES) _scrubTemplateExpressions2(body);
2764
+ if (RETURN_DOM_FRAGMENT) {
2765
+ returnNode = createDocumentFragment.call(body.ownerDocument);
2766
+ while (body.firstChild) returnNode.appendChild(body.firstChild);
2767
+ } else returnNode = body;
2768
+ if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) returnNode = importNode.call(originalDocument, returnNode, true);
2769
+ return returnNode;
2770
+ }
2771
+ let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
2772
+ if (WHOLE_DOCUMENT && ALLOWED_TAGS["!doctype"] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) serializedHTML = "<!DOCTYPE " + body.ownerDocument.doctype.name + ">\n" + serializedHTML;
2773
+ if (SAFE_FOR_TEMPLATES) serializedHTML = _stripTemplateExpressions(serializedHTML);
2774
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(serializedHTML) : serializedHTML;
2775
+ };
2776
+ DOMPurify.setConfig = function() {
2777
+ let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2778
+ _parseConfig(cfg);
2779
+ SET_CONFIG = true;
2780
+ SET_CONFIG_ALLOWED_TAGS = ALLOWED_TAGS;
2781
+ SET_CONFIG_ALLOWED_ATTR = ALLOWED_ATTR;
2782
+ };
2783
+ DOMPurify.clearConfig = function() {
2784
+ CONFIG = null;
2785
+ SET_CONFIG = false;
2786
+ SET_CONFIG_ALLOWED_TAGS = null;
2787
+ SET_CONFIG_ALLOWED_ATTR = null;
2788
+ trustedTypesPolicy = defaultTrustedTypesPolicy;
2789
+ emptyHTML = "";
2790
+ };
2791
+ DOMPurify.isValidAttribute = function(tag, attr, value) {
2792
+ if (!CONFIG) _parseConfig({});
2793
+ const lcTag = transformCaseFunc(tag);
2794
+ const lcName = transformCaseFunc(attr);
2795
+ return _isValidAttribute(lcTag, lcName, value);
2796
+ };
2797
+ DOMPurify.addHook = function(entryPoint, hookFunction) {
2798
+ if (typeof hookFunction !== "function") return;
2799
+ if (!objectHasOwnProperty(hooks, entryPoint)) return;
2800
+ arrayPush(hooks[entryPoint], hookFunction);
2801
+ };
2802
+ DOMPurify.removeHook = function(entryPoint, hookFunction) {
2803
+ if (!objectHasOwnProperty(hooks, entryPoint)) return;
2804
+ if (hookFunction !== void 0) {
2805
+ const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
2806
+ return index === -1 ? void 0 : arraySplice(hooks[entryPoint], index, 1)[0];
2807
+ }
2808
+ return arrayPop(hooks[entryPoint]);
2809
+ };
2810
+ DOMPurify.removeHooks = function(entryPoint) {
2811
+ if (!objectHasOwnProperty(hooks, entryPoint)) return;
2812
+ hooks[entryPoint] = [];
2813
+ };
2814
+ DOMPurify.removeAllHooks = function() {
2815
+ hooks = _createHooksMap();
2816
+ };
2817
+ return DOMPurify;
2818
+ }
2819
+ createDOMPurify();
2820
+ //#endregion
2821
+ //#region ../utils/dist/index.js
2822
+ var __defProp = Object.defineProperty;
2823
+ var __exportAll = (all, no_symbols) => {
2824
+ let target = {};
2825
+ for (var name in all) __defProp(target, name, {
2826
+ get: all[name],
2827
+ enumerable: true
2828
+ });
2829
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
2830
+ return target;
2831
+ };
2832
+ Object.assign({}, ...[
2833
+ {
2834
+ id: "search",
2835
+ normalize(searchTerm, caseSensitiveSearch) {
2836
+ return caseSensitiveSearch ? searchTerm : searchTerm.toLowerCase();
2837
+ },
2838
+ test(text, normalizedSearchTerm, caseSensitiveSearch, inverseSearch) {
2839
+ const matches = (caseSensitiveSearch ? text : text.toLowerCase()).includes(normalizedSearchTerm);
2840
+ return inverseSearch ? !matches : matches;
2841
+ }
2842
+ },
2843
+ {
2844
+ id: "wildcard",
2845
+ normalize(searchTerm, caseSensitiveSearch) {
2846
+ if (searchTerm.length > 0) searchTerm = `^${searchTerm.replace(/[-[\]{}()+.,\\^$|#\s]/g, "\\$&").replace(/\*/g, ".*").replace(/\?/g, ".?")}$`;
2847
+ else return { test: () => false };
2848
+ try {
2849
+ return new RegExp(searchTerm, caseSensitiveSearch ? "" : "i");
2850
+ } catch (_error) {
2851
+ return /$^/;
2852
+ }
2853
+ },
2854
+ test(text, normalizedSearchTerm, caseSensitiveSearch, inverseSearch) {
2855
+ const matches = normalizedSearchTerm.test(text);
2856
+ return inverseSearch ? !matches : matches;
2857
+ }
2858
+ },
2859
+ {
2860
+ id: "regex",
2861
+ normalize(searchTerm, caseSensitiveSearch) {
2862
+ try {
2863
+ const flags = caseSensitiveSearch ? "" : "i";
2864
+ return new RegExp(`^(${searchTerm})$`, flags);
2865
+ } catch (_error) {
2866
+ return /$^/;
2867
+ }
2868
+ },
2869
+ test(text, normalizedSearchTerm, caseSensitiveSearch, inverseSearch) {
2870
+ const matches = normalizedSearchTerm.test(text);
2871
+ return inverseSearch ? !matches : matches;
2872
+ }
2873
+ },
2874
+ {
2875
+ id: "type",
2876
+ normalize(selectedTypes) {
2877
+ return { test: (type) => selectedTypes.includes(type) };
2878
+ },
2879
+ test(type, normalizedSearchTerm) {
2880
+ if (typeof type === "undefined") return false;
2881
+ return normalizedSearchTerm.test(type);
2882
+ }
2883
+ }
2884
+ ].map((obj) => ({ [obj.id]: obj })));
2885
+ var formatFileSize = (bytes) => {
2886
+ return prettyBytes(Number.isFinite(bytes) && bytes >= 0 ? bytes : 0);
2887
+ };
2888
+ var yearsPart = "(\\d+)\\s*y(?:ears?)?";
2889
+ var monthsPart = "(\\d+)\\s*m(?:o(?:nths?)?)?";
2890
+ var weeksPart = "(\\d+)\\s*w(?:eeks?)?";
2891
+ var daysPart = "(\\d+)\\s*d(?:ays?)?";
2892
+ var hoursPart = "(\\d+)\\s*h(?:ours?)?";
2893
+ var minutesPart = "(\\d+)\\s*m(?:in(?:s|utes?)?)?";
2894
+ var secondsPart = "(\\d+)(?:[,.](\\d{1,3}))?\\s*s(?:ec(?:s|onds?)?)?";
2895
+ /**
2896
+ * Matches a human readable period string, e.g. "1y 2mo 3weeks 4day" (each part is optional)
2897
+ */
2898
+ var humanReadablePeriodRegex = new RegExp(`^(?:${yearsPart})?\\s*(?:${monthsPart})?\\s*(?:${weeksPart})?\\s*(?:${daysPart})?\\s*$`, "i");
2899
+ /**
2900
+ * Matches a human readable duration string, e.g. "1h 2m 3.456s" (each part is optional)
2901
+ */
2902
+ var humanReadableDurationRegex = new RegExp(`^(?:${hoursPart})?\\s*(?:${minutesPart})?\\s*(?:${secondsPart})?$`, "i");
2903
+ new RegExp(`^\\s*-\\s*\\(\\s*${humanReadablePeriodRegex.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`, "i");
2904
+ new RegExp(`^\\s*-\\s*(?:\\s*${yearsPart}|${monthsPart}|${weeksPart}|${daysPart})\\s*$`, "i");
2905
+ new RegExp(`^\\s*-\\s*\\(\\s*${humanReadableDurationRegex.source.replace(/[$^]/g, "")}\\s*\\)\\s*$`, "i");
2906
+ new RegExp(`^\\s*-\\s*(?:\\s*${hoursPart}|${minutesPart}|${secondsPart})\\s*$`, "i");
2907
+ var AbortError = class extends Error {};
2908
+ /**
2909
+ * Helper to create an abortable promise. Returns an AbortController and a Function
2910
+ * that you can pass your async handler to. Whenever the AbortController signal is
2911
+ * aborted then the async handler's promise will reject with an AbortError
2912
+ *
2913
+ * Example:
2914
+ * ```
2915
+ * import { abortUtils } from "@knime/utils"
2916
+ * const myFetchCall = async (params...) => {...};
2917
+ *
2918
+ * try {
2919
+ * const { runAbortablePromise, abortController } = createAbortablePromise(() =>
2920
+ * myFetchCall(params...),
2921
+ * );
2922
+ * } catch (e) {
2923
+ * if (e instanceof abortUtils.AbortError) {
2924
+ * console.info('ignore due to abort');
2925
+ * return;
2926
+ * }
2927
+ * }
2928
+ *
2929
+ * // somewhere else (while request is in-flight)
2930
+ * abortController.abort(new abortUtils.AbortError('reason here'))
2931
+ * ```
2932
+ */
2933
+ var createAbortablePromise = () => {
2934
+ const abortController = new AbortController();
2935
+ const runAbortablePromise = (request) => {
2936
+ return new Promise((resolve, reject) => {
2937
+ const abortListener = ({ target }) => {
2938
+ abortController.signal.removeEventListener("abort", abortListener);
2939
+ const reason = target.reason;
2940
+ reject(reason instanceof AbortError ? reason : new AbortError(reason));
2941
+ };
2942
+ request().then(resolve).catch((error) => {
2943
+ if (error instanceof AbortError) return;
2944
+ reject(error);
2945
+ });
2946
+ abortController.signal.addEventListener("abort", abortListener);
2947
+ });
2948
+ };
2949
+ return {
2950
+ abortController,
2951
+ runAbortablePromise
2952
+ };
2953
+ };
2954
+ var createUnwrappedPromise = () => {
2955
+ let resolve = () => {};
2956
+ let reject = () => {};
2957
+ const promise = new Promise((res, rej) => {
2958
+ resolve = res;
2959
+ reject = rej;
2960
+ });
2961
+ return {
2962
+ resolve,
2963
+ reject,
2964
+ promise
2965
+ };
2966
+ };
2967
+ /**
2968
+ * Returns promise that resolves after ms.
2969
+ */
2970
+ function sleep(ms) {
2971
+ return new Promise((resolve) => setTimeout(resolve, ms));
2972
+ }
2973
+ /**
2974
+ * Helper to add retry capability to an async function
2975
+ * @param fn async function
2976
+ * @param retryCount max number of retries. defaults to 5
2977
+ * @param retryDelayMS delay in-between retries in millisecs. defaults to 0
2978
+ * @param excludeError predicate fn to exclude specific errors from causing a retry
2979
+ */
2980
+ async function retryPromise({ fn, retryCount = 5, retryDelayMS = 0, excludeError }) {
2981
+ try {
2982
+ return await fn();
2983
+ } catch (error) {
2984
+ if (excludeError?.(error)) throw error;
2985
+ if (retryCount > 0) {
2986
+ await sleep(retryDelayMS);
2987
+ return await retryPromise({
2988
+ fn,
2989
+ retryCount: retryCount - 1,
2990
+ retryDelayMS,
2991
+ excludeError
2992
+ });
2993
+ }
2994
+ throw error;
2995
+ }
2996
+ }
2997
+ var promise_exports = /* @__PURE__ */ __exportAll({
2998
+ AbortError: () => AbortError,
2999
+ DEFAULT_RETRY_COUNT: () => 5,
3000
+ DEFAULT_RETRY_DELAY_MS: () => 0,
3001
+ createAbortablePromise: () => createAbortablePromise,
3002
+ createUnwrappedPromise: () => createUnwrappedPromise,
3003
+ retryPromise: () => retryPromise
3004
+ });
3005
+ /**
3006
+ * Gets the file extension
3007
+ * @param nameOrPath can take a full file name (e.g "file.txt") or a path to a file
3008
+ * (e.g "file://path/to/file.txt" OR "/path/to/file.txt")
3009
+ * @returns just the file extension (e.g "txt")
3010
+ */
3011
+ var getFileExtension = (nameOrPath) => {
3012
+ const basename = nameOrPath.split(/[\\/]/).pop() ?? "";
3013
+ const parts = basename.split(".");
3014
+ if (basename === "" || parts.length === 1) return "";
3015
+ return parts.at(-1) ?? "";
3016
+ };
3017
+ Object.freeze({
3018
+ extension: "knar",
3019
+ mimeType: "application/vnd.knime.workflow-group+zip",
3020
+ matches(file) {
3021
+ return getFileExtension(file.name) === this.extension;
3022
+ }
3023
+ });
3024
+ Object.freeze({
3025
+ extension: "knwf",
3026
+ mimeType: "application/vnd.knime.workflow+zip",
3027
+ matches(file) {
3028
+ return getFileExtension(file.name) === this.extension;
3029
+ },
3030
+ /**
3031
+ * Gets the name of a .knwf file without the extension. If the file is not
3032
+ * matched as a .knwf file then this function will return the default value,
3033
+ * which is empty string ("") if param is not provided
3034
+ */
3035
+ getNameOrDefault(file, defaultValue = "") {
3036
+ if (!this.matches(file)) return defaultValue;
3037
+ return file.name.replace(`.${this.extension}`, "");
3038
+ }
3039
+ });
3040
+ /**
3041
+ * Platforms that influence how modifier keys are rendered. macOS substitutes
3042
+ * dedicated glyphs (`⌘`, `⌥`, `⇧`, …), every other platform uses the textual
3043
+ * rendering (`Ctrl`, `Alt`, `Shift`, …).
3044
+ */
3045
+ var hotkeyPlatform = {
3046
+ MAC_OS: "macOS",
3047
+ OTHER: "other"
3048
+ };
3049
+ Object.values(hotkeyPlatform);
3050
+ /**
3051
+ *
3052
+ * @returns true if the platform of the user is Mac
3053
+ */
3054
+ var isMac = () => navigator?.userAgent?.toLowerCase()?.includes("mac");
3055
+ var globalKeyMap = {
3056
+ ArrowUp: "↑",
3057
+ ArrowDown: "↓",
3058
+ ArrowLeft: "←",
3059
+ ArrowRight: "→",
3060
+ Enter: "↵",
3061
+ " ": "Space",
3062
+ CtrlOrCmd: "Ctrl"
3063
+ };
3064
+ var MacOSkeyMap = {
3065
+ Shift: "⇧",
3066
+ Delete: "⌫",
3067
+ CtrlOrCmd: "⌘",
3068
+ Ctrl: "⌃",
3069
+ Alt: "⌥",
3070
+ Enter: "↩"
3071
+ };
3072
+ /**
3073
+ * Returns a string representation of a single hotkey. Replaces some special key names with symbols.
3074
+ *
3075
+ * By default the platform is auto-detected from the user agent via `isMac()`.
3076
+ * Pass `platform` to force a specific platform's glyphs — useful for SSR,
3077
+ * tests, or rendering multiple platforms on the same page.
3078
+ */
3079
+ var formatHotkey = (hotkey, platform) => {
3080
+ /**
3081
+ * Returns the symbol corresponding to the `key` based on the given
3082
+ * `formatMap`. Otherwise, if not found, returns the same `key` value given
3083
+ */
3084
+ const mapSymbols = (formatMap) => (key) => formatMap[key] ?? key;
3085
+ /**
3086
+ * Pipe function implementation. Receives a list of functions to execute in order
3087
+ * and will pipe the parameter passed at the end to each function returning the final output
3088
+ */
3089
+ const pipe = (...fns) => fns.reduce((f, g) => (arg) => g(f(arg)), (arg) => arg);
3090
+ const macKeyFormatter = pipe(mapSymbols(MacOSkeyMap), mapSymbols(globalKeyMap));
3091
+ const generalKeyFormatter = mapSymbols(globalKeyMap);
3092
+ return (platform === void 0 ? isMac() : platform === hotkeyPlatform.MAC_OS) ? macKeyFormatter(hotkey) : generalKeyFormatter(hotkey);
3093
+ };
3094
+ var getDefaultSeparator = () => isMac() ? " " : "+";
3095
+ /**
3096
+ * Returns a string representation of a list of hotkeys. Replaces some special key names with symbols
3097
+ */
3098
+ var formatHotkeys = (hotkeys, getSeparator = getDefaultSeparator) => hotkeys.map((hotkey) => formatHotkey(hotkey)).join(getSeparator());
3099
+ /**
3100
+ * Appends a formatted hotkey shortcut to the given string. Useful for tooltips
3101
+ */
3102
+ var textWithHotkeys = (text, hotkeys) => {
3103
+ return `${text} – ${formatHotkeys(hotkeys)}`;
3104
+ };
3105
+ /**
3106
+ * Checks whether a pressed `Digit` key falls within a numeric hotkey range such
3107
+ * as `1-9`.
3108
+ * @param keyCode - The `KeyboardEvent.code` to check (e.g. `Digit5`).
3109
+ * @param hotkey - The hotkey token, expected to be a single-digit range like `1-9`.
3110
+ * @returns True if the pressed digit lies within the inclusive range.
3111
+ */
3112
+ var isDigitKeyInRange = (keyCode, hotkey) => {
3113
+ if (hotkey.length !== 3 || !keyCode?.startsWith("Digit")) return false;
3114
+ const keyNumber = Number(keyCode.slice(5));
3115
+ const [lower, upper] = hotkey.split("-");
3116
+ return Boolean(lower) && Boolean(upper) && Number.parseInt(lower, 10) <= keyNumber && keyNumber <= Number.parseInt(upper, 10);
3117
+ };
3118
+ /**
3119
+ * Checks whether a keyboard event matches a hotkey definition. The last token is
3120
+ * treated as the character; any preceding tokens are modifiers. The special
3121
+ * `CtrlOrCmd` modifier resolves to the platform's primary modifier (Meta/`⌘` on
3122
+ * macOS, Ctrl elsewhere).
3123
+ * @param event - The keyboard event to check.
3124
+ * @param hotkeys - The ordered hotkey tokens (modifiers followed by the character).
3125
+ * @returns True if the event matches the given hotkey, otherwise false.
3126
+ */
3127
+ var match = (event, hotkeys) => {
3128
+ const { key, code, metaKey, ctrlKey, shiftKey, altKey } = event;
3129
+ const modifiers = hotkeys.slice();
3130
+ const character = modifiers.pop() ?? "";
3131
+ const ctrlOrMeta = isMac() ? "Meta" : "Ctrl";
3132
+ const platformModifiers = new Set(modifiers.map((modifier) => modifier === "CtrlOrCmd" ? ctrlOrMeta : modifier));
3133
+ const metaMatches = Boolean(metaKey) === platformModifiers.has("Meta");
3134
+ const ctrlMatches = Boolean(ctrlKey) === platformModifiers.has("Ctrl");
3135
+ const shiftMatches = Boolean(shiftKey) === platformModifiers.has("Shift");
3136
+ const altMatches = Boolean(altKey) === platformModifiers.has("Alt");
3137
+ const keysMatch = key.toUpperCase() === character.toUpperCase() || character.includes("-") && isDigitKeyInRange(code, character) || isMac() && character === "Delete" && key === "Backspace";
3138
+ return metaMatches && ctrlMatches && shiftMatches && altMatches && keysMatch;
3139
+ };
3140
+ /**
3141
+ * Returns the name of the primary modifier key for the current platform.
3142
+ */
3143
+ var getMetaOrCtrlKey = () => {
3144
+ return isMac() ? "metaKey" : "ctrlKey";
3145
+ };
3146
+ /**
3147
+ * Grouped keyboard-shortcut helpers, exposed as a single namespace for
3148
+ * ergonomic access (e.g. `hotkeys.formatHotkey`).
3149
+ */
3150
+ var hotkeys = {
3151
+ formatHotkeys,
3152
+ formatHotkey,
3153
+ getDefaultSeparator,
3154
+ hotkeyPlatform,
3155
+ textWithHotkeys,
3156
+ match
3157
+ };
3158
+ //#endregion
3159
+ //#region src/components/accessories/LoadingSpinner/KdsLoadingSpinner.vue?vue&type=script&setup=true&lang.ts
3160
+ var _hoisted_1$7 = ["data-style"];
3161
+ //#endregion
3162
+ //#region src/components/accessories/LoadingSpinner/KdsLoadingSpinner.vue
3163
+ var KdsLoadingSpinner_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
3164
+ __name: "KdsLoadingSpinner",
3165
+ props: {
3166
+ size: { default: "medium" },
3167
+ variant: { default: "onSurface" }
3168
+ },
3169
+ setup(__props) {
3170
+ return (_ctx, _cache) => {
3171
+ return openBlock(), createElementBlock("svg", {
3172
+ class: normalizeClass(["kds-loading-spinner", __props.size]),
3173
+ "data-style": __props.variant,
3174
+ viewBox: "0 0 120 120"
3175
+ }, [..._cache[0] || (_cache[0] = [createElementVNode("circle", {
3176
+ class: "track",
3177
+ cx: "60",
3178
+ cy: "60",
3179
+ r: "50"
3180
+ }, null, -1), createElementVNode("circle", {
3181
+ class: "loader",
3182
+ cx: "60",
3183
+ cy: "60",
3184
+ r: "50"
3185
+ }, null, -1)])], 10, _hoisted_1$7);
3186
+ };
3187
+ }
3188
+ }), [["__scopeId", "data-v-ea91036d"]]);
3189
+ //#endregion
3190
+ //#region src/components/buttons/BaseButton.vue?vue&type=script&setup=true&lang.ts
3191
+ var _hoisted_1$6 = {
3192
+ key: 0,
3193
+ class: "label"
3194
+ };
3195
+ //#endregion
3196
+ //#region src/components/buttons/BaseButton.vue
3197
+ var BaseButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
3198
+ __name: "BaseButton",
3199
+ props: {
3200
+ dataTestId: {},
3201
+ size: { default: "medium" },
3202
+ disabled: {
3203
+ type: Boolean,
3204
+ default: false
3205
+ },
3206
+ tooltip: {},
3207
+ variant: {},
3208
+ label: {},
3209
+ leadingIcon: {},
3210
+ trailingIcon: {},
3211
+ ariaLabel: {},
3212
+ destructive: {
3213
+ type: Boolean,
3214
+ default: false
3215
+ },
3216
+ success: {
3217
+ type: Boolean,
3218
+ default: false
3219
+ },
3220
+ error: {
3221
+ type: Boolean,
3222
+ default: false
3223
+ },
3224
+ toggled: {
3225
+ type: Boolean,
3226
+ default: false
3227
+ },
3228
+ removeBorderRadius: { default: () => void 0 },
3229
+ component: { default: "button" }
3230
+ },
3231
+ emits: ["click"],
3232
+ setup(__props, { emit: __emit }) {
3233
+ const props = createPropsRestProxy(__props, [
3234
+ "component",
3235
+ "size",
3236
+ "destructive",
3237
+ "success",
3238
+ "error",
3239
+ "disabled",
3240
+ "toggled",
3241
+ "removeBorderRadius"
3242
+ ]);
3243
+ const emit = __emit;
3244
+ const classes = computed(() => [
3245
+ "button",
3246
+ __props.size,
3247
+ props.variant,
3248
+ { destructive: __props.destructive },
3249
+ { disabled: __props.disabled },
3250
+ { toggled: __props.toggled },
3251
+ { success: __props.success },
3252
+ { error: __props.error },
3253
+ __props.removeBorderRadius ? `remove-border-radius-${__props.removeBorderRadius}` : void 0
3254
+ ]);
3255
+ const iconSize = computed(() => {
3256
+ if (__props.size === "xsmall") return "small";
3257
+ else return __props.size;
3258
+ });
3259
+ function onClick(e) {
3260
+ if (!__props.disabled) emit("click", e);
3261
+ }
3262
+ return (_ctx, _cache) => {
3263
+ return withDirectives((openBlock(), createBlock(resolveDynamicComponent(__props.component), {
3264
+ type: __props.component === "button" ? "button" : void 0,
3265
+ class: normalizeClass(classes.value),
3266
+ disabled: __props.disabled,
3267
+ "aria-label": props.ariaLabel,
3268
+ "data-test-id": props.dataTestId,
3269
+ onClick: _cache[0] || (_cache[0] = ($event) => onClick($event))
3270
+ }, {
3271
+ default: withCtx(() => [
3272
+ renderSlot(_ctx.$slots, "leading", {}, () => [props.leadingIcon ? (openBlock(), createBlock(KdsIcon_default, {
3273
+ key: 0,
3274
+ name: props.leadingIcon,
3275
+ size: iconSize.value
3276
+ }, null, 8, ["name", "size"])) : createCommentVNode("", true)], true),
3277
+ props.label ? (openBlock(), createElementBlock("span", _hoisted_1$6, toDisplayString(props.label), 1)) : createCommentVNode("", true),
3278
+ props.trailingIcon && props.label ? (openBlock(), createBlock(KdsIcon_default, {
3279
+ key: 1,
3280
+ name: props.trailingIcon,
3281
+ size: iconSize.value
3282
+ }, null, 8, ["name", "size"])) : createCommentVNode("", true)
3283
+ ]),
3284
+ _: 3
3285
+ }, 8, [
3286
+ "type",
3287
+ "class",
3288
+ "disabled",
3289
+ "aria-label",
3290
+ "data-test-id"
3291
+ ])), [[unref(vKdsTooltip), props.tooltip]]);
3292
+ };
3293
+ }
3294
+ }), [["__scopeId", "data-v-afad70c2"]]);
3295
+ //#endregion
3296
+ //#region src/components/buttons/KdsButton/KdsButton.vue
3297
+ var KdsButton_default = /* @__PURE__ */ defineComponent({
3298
+ __name: "KdsButton",
3299
+ props: {
3300
+ dataTestId: {},
3301
+ size: {},
3302
+ disabled: { type: Boolean },
3303
+ tooltip: {},
3304
+ variant: { default: "filled" },
3305
+ label: {},
3306
+ leadingIcon: {},
3307
+ trailingIcon: {},
3308
+ ariaLabel: {},
3309
+ destructive: { type: Boolean }
3310
+ },
3311
+ emits: ["click"],
3312
+ setup(__props, { emit: __emit }) {
3313
+ const props = createPropsRestProxy(__props, ["variant"]);
3314
+ const emit = __emit;
3315
+ return (_ctx, _cache) => {
3316
+ return openBlock(), createBlock(BaseButton_default, mergeProps(props, {
3317
+ variant: __props.variant,
3318
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("click", $event))
3319
+ }), null, 16, ["variant"]);
3320
+ };
3321
+ }
3322
+ });
3323
+ //#endregion
3324
+ //#region src/layouts/overlays/Modal/enums.ts
3325
+ var kdsModalClosedBy = {
3326
+ ANY: "any",
3327
+ CLOSEREQUEST: "closerequest",
3328
+ NONE: "none"
3329
+ };
3330
+ var kdsModalClosedByOptions = Object.values(kdsModalClosedBy);
3331
+ var kdsModalWidth = {
3332
+ SMALL: "small",
3333
+ MEDIUM: "medium",
3334
+ LARGE: "large",
3335
+ XLARGE: "xlarge",
3336
+ FULL: "full"
3337
+ };
3338
+ var kdsModalWidthSizes = Object.values(kdsModalWidth);
3339
+ var kdsModalHeight = {
3340
+ AUTO: "auto",
3341
+ FULL: "full"
3342
+ };
3343
+ var kdsModalHeightSizes = Object.values(kdsModalHeight);
3344
+ var kdsModalVariant = {
3345
+ PADDED: "padded",
3346
+ PLAIN: "plain"
3347
+ };
3348
+ var kdsModalVariants = Object.values(kdsModalVariant);
3349
+ var kdsModalLayoutPropsDefault = {
3350
+ headline: "",
3351
+ variant: kdsModalVariant.PADDED,
3352
+ overflow: "auto",
3353
+ leadingIcon: void 0
3354
+ };
3355
+ kdsModalHeight.AUTO, kdsModalWidth.MEDIUM, kdsModalClosedBy.CLOSEREQUEST, { ...kdsModalLayoutPropsDefault };
3356
+ //#endregion
3357
+ //#region src/layouts/overlays/Modal/KdsModalLayout.vue?vue&type=script&setup=true&lang.ts
3358
+ var _hoisted_1$5 = { class: "modal-header" };
3359
+ var _hoisted_2$3 = { class: "modal-header-headline" };
3360
+ var _hoisted_3$2 = ["data-variant"];
3361
+ var _hoisted_4$1 = {
3362
+ key: 0,
3363
+ class: "modal-footer"
3364
+ };
3365
+ //#endregion
3366
+ //#region src/layouts/overlays/Modal/KdsModalLayout.vue
3367
+ var KdsModalLayout_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
3368
+ inheritAttrs: false,
3369
+ __name: "KdsModalLayout",
3370
+ props: {
3371
+ headline: { default: "" },
3372
+ variant: { default: () => kdsModalVariant.PADDED },
3373
+ leadingIcon: {},
3374
+ overflow: { default: "auto" },
3375
+ onClose: { type: Function }
3376
+ },
3377
+ setup(__props) {
3378
+ useCssVars((_ctx) => ({ "v4b5bb7fa": _ctx.overflow }));
3379
+ const props = createPropsRestProxy(__props, [
3380
+ "headline",
3381
+ "variant",
3382
+ "overflow"
3383
+ ]);
3384
+ return (_ctx, _cache) => {
3385
+ return openBlock(), createElementBlock(Fragment, null, [
3386
+ createElementVNode("header", _hoisted_1$5, [
3387
+ props.leadingIcon ? (openBlock(), createBlock(KdsIcon_default, {
3388
+ key: 0,
3389
+ name: props.leadingIcon,
3390
+ size: "medium"
3391
+ }, null, 8, ["name"])) : createCommentVNode("", true),
3392
+ createElementVNode("div", _hoisted_2$3, toDisplayString(__props.headline), 1),
3393
+ createVNode(KdsButton_default, {
3394
+ "leading-icon": "x-close",
3395
+ variant: "transparent",
3396
+ size: "medium",
3397
+ tooltip: "Close",
3398
+ ariaLabel: "Close",
3399
+ onClick: props.onClose
3400
+ }, null, 8, ["onClick"])
3401
+ ]),
3402
+ createElementVNode("div", {
3403
+ class: "modal-body",
3404
+ "data-variant": __props.variant
3405
+ }, [renderSlot(_ctx.$slots, "body", {}, void 0, true)], 8, _hoisted_3$2),
3406
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_4$1, [renderSlot(_ctx.$slots, "footer", {}, void 0, true)])) : createCommentVNode("", true)
3407
+ ], 64);
3408
+ };
3409
+ }
3410
+ }), [["__scopeId", "data-v-3e1612e8"]]);
3411
+ //#endregion
3412
+ //#region src/layouts/overlays/Modal/KdsModal.vue?vue&type=script&setup=true&lang.ts
3413
+ var _hoisted_1$4 = ["closedby"];
3414
+ //#endregion
3415
+ //#region src/layouts/overlays/Modal/KdsModal.vue
3416
+ var KdsModal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
3417
+ __name: "KdsModal",
3418
+ props: {
3419
+ leadingIcon: {},
3420
+ headline: { default: "" },
3421
+ variant: { default: () => kdsModalVariant.PADDED },
3422
+ width: { default: () => kdsModalWidth.MEDIUM },
3423
+ height: { default: () => kdsModalHeight.AUTO },
3424
+ active: {
3425
+ type: Boolean,
3426
+ default: false
3427
+ },
3428
+ closedby: { default: () => kdsModalClosedBy.CLOSEREQUEST },
3429
+ overflow: { default: "auto" }
3430
+ },
3431
+ emits: ["close", "closed"],
3432
+ setup(__props, { emit: __emit }) {
3433
+ useCssVars((_ctx) => ({ "v366b75ef": _ctx.overflow }));
3434
+ const emit = __emit;
3435
+ const dialog = useTemplateRef("dialogElement");
3436
+ const onClose = (event) => {
3437
+ emit("close", event);
3438
+ };
3439
+ watch(() => __props.active, async (isActive) => {
3440
+ if (isActive) {
3441
+ await nextTick();
3442
+ dialog.value?.showModal();
3443
+ } else dialog.value?.close();
3444
+ }, { immediate: true });
3445
+ const renderDialog = ref(__props.active);
3446
+ const removeDialog = () => {
3447
+ if (!renderDialog.value) return;
3448
+ renderDialog.value = false;
3449
+ emit("closed");
3450
+ };
3451
+ watch(() => __props.active, async (value, lastValue) => {
3452
+ if (value === false && lastValue === true) if (dialog.value) {
3453
+ Promise.all(dialog.value.getAnimations({ subtree: true }).map((animation) => animation.finished)).then(removeDialog).catch((error) => {
3454
+ if (error.name === "AbortError") {
3455
+ removeDialog();
3456
+ return;
3457
+ }
3458
+ throw error;
3459
+ });
3460
+ await sleep(350);
3461
+ removeDialog();
3462
+ } else removeDialog();
3463
+ else renderDialog.value = value;
3464
+ });
3465
+ return (_ctx, _cache) => {
3466
+ return renderDialog.value ? (openBlock(), createElementBlock("dialog", {
3467
+ key: 0,
3468
+ ref: "dialogElement",
3469
+ class: normalizeClass([
3470
+ "kds-modal",
3471
+ `width-${__props.width}`,
3472
+ `height-${__props.height}`,
3473
+ `overflow-${__props.overflow}`
3474
+ ]),
3475
+ closedby: __props.closedby,
3476
+ onCancel: withModifiers(onClose, ["prevent"])
3477
+ }, [renderSlot(_ctx.$slots, "default", {
3478
+ headline: __props.headline,
3479
+ leadingIcon: __props.leadingIcon,
3480
+ variant: __props.variant,
3481
+ overflow: __props.overflow,
3482
+ onClose
3483
+ }, () => [createVNode(KdsModalLayout_default, {
3484
+ headline: __props.headline,
3485
+ "leading-icon": __props.leadingIcon,
3486
+ variant: __props.variant,
3487
+ overflow: __props.overflow,
3488
+ onClose
3489
+ }, {
3490
+ body: withCtx(() => [renderSlot(_ctx.$slots, "body", {}, void 0, true)]),
3491
+ footer: withCtx(() => [renderSlot(_ctx.$slots, "footer", {}, void 0, true)]),
3492
+ _: 3
3493
+ }, 8, [
3494
+ "headline",
3495
+ "leading-icon",
3496
+ "variant",
3497
+ "overflow"
3498
+ ])], true)], 42, _hoisted_1$4)) : createCommentVNode("", true);
3499
+ };
3500
+ }
3501
+ }), [["__scopeId", "data-v-a56c7085"]]);
3502
+ //#endregion
3503
+ //#region src/components/forms/_helper/KdsSubText.vue?vue&type=script&setup=true&lang.ts
3504
+ var _hoisted_1$3 = ["id"];
3505
+ var _hoisted_2$2 = { class: "subtext-text" };
3506
+ //#endregion
3507
+ //#region src/components/forms/_helper/KdsSubText.vue
3508
+ var KdsSubText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
3509
+ __name: "KdsSubText",
3510
+ props: {
3511
+ id: {},
3512
+ subText: {},
3513
+ error: {
3514
+ type: Boolean,
3515
+ default: false
3516
+ },
3517
+ validating: {
3518
+ type: Boolean,
3519
+ default: false
3520
+ },
3521
+ preserveSubTextSpace: {
3522
+ type: Boolean,
3523
+ default: false
3524
+ }
3525
+ },
3526
+ setup(__props) {
3527
+ const props = createPropsRestProxy(__props, [
3528
+ "error",
3529
+ "validating",
3530
+ "preserveSubTextSpace"
3531
+ ]);
3532
+ return (_ctx, _cache) => {
3533
+ return props.subText || __props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", {
3534
+ key: 0,
3535
+ id: props.id,
3536
+ class: normalizeClass({
3537
+ subtext: true,
3538
+ error: __props.error
3539
+ })
3540
+ }, [__props.error && props.subText ? (openBlock(), createBlock(KdsIcon_default, {
3541
+ key: 0,
3542
+ name: "circle-error",
3543
+ size: "small",
3544
+ "aria-label": "Error"
3545
+ })) : __props.validating && props.subText ? (openBlock(), createBlock(KdsLoadingSpinner_default, {
3546
+ key: 1,
3547
+ size: "small",
3548
+ variant: "onSurface",
3549
+ "aria-hidden": "true"
3550
+ })) : createCommentVNode("", true), createElementVNode("span", _hoisted_2$2, toDisplayString(props.subText), 1)], 10, _hoisted_1$3)) : createCommentVNode("", true);
3551
+ };
3552
+ }
3553
+ }), [["__scopeId", "data-v-f8268ce9"]]);
3554
+ //#endregion
3555
+ //#region src/components/forms/Checkbox/BaseCheckbox.vue?vue&type=script&setup=true&lang.ts
3556
+ var _hoisted_1$2 = [
3557
+ "disabled",
3558
+ "aria-label",
3559
+ "aria-checked",
3560
+ "aria-describedby",
3561
+ "aria-invalid"
3562
+ ];
3563
+ var _hoisted_2$1 = { class: "control" };
3564
+ var _hoisted_3$1 = {
3565
+ key: 0,
3566
+ class: "content"
3567
+ };
3568
+ var _hoisted_4 = { class: "label" };
3569
+ var _hoisted_5 = ["id"];
3570
+ var _hoisted_6 = {
3571
+ key: 0,
3572
+ class: "subtext-wrapper"
3573
+ };
3574
+ //#endregion
3575
+ //#region src/components/forms/Checkbox/BaseCheckbox.vue
3576
+ var BaseCheckbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
3577
+ __name: "BaseCheckbox",
3578
+ props: /*@__PURE__*/ mergeModels({
3579
+ disabled: {
3580
+ type: Boolean,
3581
+ default: false
3582
+ },
3583
+ error: {
3584
+ type: Boolean,
3585
+ default: false
3586
+ },
3587
+ subText: {},
3588
+ preserveSubTextSpace: { type: Boolean },
3589
+ label: {},
3590
+ tooltip: {},
3591
+ helperText: {}
3592
+ }, {
3593
+ "modelValue": { default: false },
3594
+ "modelModifiers": {}
3595
+ }),
3596
+ emits: ["update:modelValue"],
3597
+ setup(__props) {
3598
+ const props = createPropsRestProxy(__props, ["disabled", "error"]);
3599
+ const modelValue = useModel(__props, "modelValue");
3600
+ const helperId = useId();
3601
+ const descriptionId = useId();
3602
+ const isChecked = computed(() => modelValue.value === true);
3603
+ const isIndeterminate = computed(() => modelValue.value === "indeterminate");
3604
+ const icon = computed(() => {
3605
+ if (isChecked.value) return "checkmark";
3606
+ if (isIndeterminate.value) return "minus";
3607
+ return null;
3608
+ });
3609
+ const ariaChecked = computed(() => {
3610
+ if (isIndeterminate.value) return "mixed";
3611
+ return isChecked.value;
3612
+ });
3613
+ const ariaDescribedBy = computed(() => {
3614
+ const ids = [];
3615
+ if (props.helperText) ids.push(helperId);
3616
+ if (props.subText) ids.push(descriptionId);
3617
+ return ids.length > 0 ? ids.join(" ") : void 0;
3618
+ });
3619
+ const handleClick = () => {
3620
+ if (__props.disabled) return;
3621
+ modelValue.value = isIndeterminate.value ? true : !isChecked.value;
3622
+ };
3623
+ return (_ctx, _cache) => {
3624
+ return openBlock(), createElementBlock("div", null, [withDirectives((openBlock(), createElementBlock("button", {
3625
+ class: normalizeClass({
3626
+ checkbox: true,
3627
+ checked: isChecked.value,
3628
+ indeterminate: isIndeterminate.value,
3629
+ disabled: __props.disabled,
3630
+ error: __props.error
3631
+ }),
3632
+ disabled: __props.disabled,
3633
+ "aria-label": props.tooltip,
3634
+ "aria-checked": ariaChecked.value,
3635
+ "aria-describedby": ariaDescribedBy.value,
3636
+ "aria-invalid": __props.error,
3637
+ type: "button",
3638
+ role: "checkbox",
3639
+ onClick: handleClick
3640
+ }, [createElementVNode("div", _hoisted_2$1, [icon.value ? (openBlock(), createBlock(KdsIcon_default, {
3641
+ key: 0,
3642
+ name: icon.value,
3643
+ class: "icon",
3644
+ size: "xsmall"
3645
+ }, null, 8, ["name"])) : createCommentVNode("", true)]), props.label || props.helperText ? (openBlock(), createElementBlock("div", _hoisted_3$1, [createElementVNode("div", _hoisted_4, toDisplayString(props.label), 1), props.helperText ? (openBlock(), createElementBlock("div", {
3646
+ key: 0,
3647
+ id: unref(helperId),
3648
+ class: "helper-text"
3649
+ }, toDisplayString(props.helperText), 9, _hoisted_5)) : createCommentVNode("", true)])) : createCommentVNode("", true)], 10, _hoisted_1$2)), [[unref(vKdsTooltip), props.tooltip]]), props.subText || props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(KdsSubText_default, {
3650
+ id: unref(descriptionId),
3651
+ "sub-text": props.subText,
3652
+ "preserve-sub-text-space": props.preserveSubTextSpace,
3653
+ error: __props.error
3654
+ }, null, 8, [
3655
+ "id",
3656
+ "sub-text",
3657
+ "preserve-sub-text-space",
3658
+ "error"
3659
+ ])])) : createCommentVNode("", true)]);
3660
+ };
3661
+ }
3662
+ }), [["__scopeId", "data-v-74caccc8"]]);
3663
+ //#endregion
3664
+ //#region src/components/forms/Checkbox/KdsCheckbox.vue
3665
+ var KdsCheckbox_default = /* @__PURE__ */ defineComponent({
3666
+ __name: "KdsCheckbox",
3667
+ props: /*@__PURE__*/ mergeModels({
3668
+ disabled: {
3669
+ type: Boolean,
3670
+ default: false
3671
+ },
3672
+ error: {
3673
+ type: Boolean,
3674
+ default: false
3675
+ },
3676
+ subText: {},
3677
+ preserveSubTextSpace: {
3678
+ type: Boolean,
3679
+ default: false
3680
+ },
3681
+ label: {},
3682
+ tooltip: {}
3683
+ }, {
3684
+ "modelValue": { default: false },
3685
+ "modelModifiers": {}
3686
+ }),
3687
+ emits: ["update:modelValue"],
3688
+ setup(__props) {
3689
+ const props = createPropsRestProxy(__props, [
3690
+ "disabled",
3691
+ "error",
3692
+ "preserveSubTextSpace"
3693
+ ]);
3694
+ /** The checked state of the checkbox. */
3695
+ const modelValue = useModel(__props, "modelValue");
3696
+ return (_ctx, _cache) => {
3697
+ return openBlock(), createBlock(BaseCheckbox_default, mergeProps(props, {
3698
+ modelValue: modelValue.value,
3699
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
3700
+ disabled: __props.disabled,
3701
+ error: __props.error,
3702
+ "preserve-sub-text-space": __props.preserveSubTextSpace
3703
+ }), null, 16, [
3704
+ "modelValue",
3705
+ "disabled",
3706
+ "error",
3707
+ "preserve-sub-text-space"
3708
+ ]);
3709
+ };
3710
+ }
3711
+ });
3712
+ //#endregion
3713
+ //#region src/layouts/overlays/Modal/useKdsDynamicModal.ts
3714
+ var defaultCancelButton = {
3715
+ type: "cancel",
3716
+ label: "Cancel"
3717
+ };
3718
+ var defaultConfirmButton = {
3719
+ type: "confirm",
3720
+ label: "Confirm"
3721
+ };
3722
+ var isActive = ref(false);
3723
+ var activeModalConfig = ref(null);
3724
+ var unwrappedPromise = ref(promise_exports.createUnwrappedPromise());
3725
+ var resetInternalState = () => {
3726
+ isActive.value = false;
3727
+ unwrappedPromise.value = promise_exports.createUnwrappedPromise();
3728
+ };
3729
+ var onClosed = () => {
3730
+ activeModalConfig.value = null;
3731
+ };
3732
+ /**
3733
+ * Used to confirm the modal result. Should only used when called via
3734
+ * `askConfirmation`
3735
+ * @param doNotAskAgain
3736
+ */
3737
+ var confirm = (doNotAskAgain = false) => {
3738
+ unwrappedPromise.value.resolve({
3739
+ confirmed: true,
3740
+ doNotAskAgain
3741
+ });
3742
+ resetInternalState();
3743
+ };
3744
+ /**
3745
+ * Close or cancel the dialog
3746
+ */
3747
+ var close = () => {
3748
+ const isConfirm = activeModalConfig.value?.type === "confirm";
3749
+ unwrappedPromise.value.resolve(isConfirm ? { confirmed: false } : void 0);
3750
+ resetInternalState();
3751
+ };
3752
+ var isTemplateBasedConfirm = (config) => {
3753
+ return "component" in config;
3754
+ };
3755
+ var updateConfig = (config) => {
3756
+ if (!isActive.value || !activeModalConfig.value || activeModalConfig.value.type === "confirm") {
3757
+ consola.warn("useKdsDynamicModal: invalid invocation of updateConfig");
3758
+ return;
3759
+ }
3760
+ activeModalConfig.value.value = {
3761
+ ...activeModalConfig.value.value,
3762
+ ...config
3763
+ };
3764
+ };
3765
+ var internal = {
3766
+ confirm,
3767
+ close,
3768
+ isTemplateBasedConfirm,
3769
+ onClosed,
3770
+ updateConfig
3771
+ };
3772
+ function askConfirmation(config) {
3773
+ activeModalConfig.value = {
3774
+ type: "confirm",
3775
+ value: {
3776
+ buttons: [defaultCancelButton, defaultConfirmButton],
3777
+ ...config
3778
+ }
3779
+ };
3780
+ isActive.value = true;
3781
+ return unwrappedPromise.value.promise;
3782
+ }
3783
+ var showByTemplate = (config) => {
3784
+ activeModalConfig.value = {
3785
+ type: "dynamic",
3786
+ value: config
3787
+ };
3788
+ isActive.value = true;
3789
+ return unwrappedPromise.value.promise;
3790
+ };
3791
+ var useKdsDynamicModal = () => {
3792
+ return {
3793
+ askConfirmation,
3794
+ showByTemplate,
3795
+ config: computed(() => activeModalConfig.value),
3796
+ isActive: computed(() => isActive.value),
3797
+ close: () => internal.close()
3798
+ };
3799
+ };
3800
+ //#endregion
3801
+ //#region src/layouts/overlays/Modal/KdsDynamicModalProvider.vue?vue&type=script&setup=true&lang.ts
3802
+ var _hoisted_1$1 = {
3803
+ key: 1,
3804
+ class: "confirmation"
3805
+ };
3806
+ var _hoisted_2 = { class: "message" };
3807
+ var _hoisted_3 = {
3808
+ key: 0,
3809
+ class: "ask-again"
3810
+ };
3811
+ //#endregion
3812
+ //#region src/layouts/overlays/Modal/KdsDynamicModalProvider.vue
3813
+ var KdsDynamicModalProvider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
3814
+ __name: "KdsDynamicModalProvider",
3815
+ setup(__props) {
3816
+ const askAgain = ref(false);
3817
+ const { config, isActive } = useKdsDynamicModal();
3818
+ const reset = () => {
3819
+ askAgain.value = false;
3820
+ };
3821
+ const onConfirm = () => {
3822
+ internal.confirm(askAgain.value);
3823
+ reset();
3824
+ };
3825
+ const onClose = () => {
3826
+ internal.close();
3827
+ reset();
3828
+ };
3829
+ const handleConfirmButton = (button) => {
3830
+ if (!button.customHandler) {
3831
+ (button.type === "cancel" ? onClose : onConfirm)();
3832
+ return;
3833
+ }
3834
+ if (button.type === "cancel") button.customHandler({ cancel: onClose });
3835
+ if (button.type === "confirm") button.customHandler({ confirm: onConfirm });
3836
+ };
3837
+ const defaultVariant = (type) => type === "cancel" ? "transparent" : "filled";
3838
+ const kdsModalProps = computed(() => {
3839
+ if (!config.value) return {};
3840
+ const { leadingIcon, headline, height, width, variant, overflow, closedby } = config.value.value;
3841
+ return {
3842
+ leadingIcon,
3843
+ headline,
3844
+ height,
3845
+ width,
3846
+ variant,
3847
+ overflow,
3848
+ closedby,
3849
+ onClose,
3850
+ onClosed: internal.onClosed,
3851
+ active: isActive.value
3852
+ };
3853
+ });
3854
+ return (_ctx, _cache) => {
3855
+ return openBlock(), createBlock(KdsModal_default, mergeProps({ class: "confirm-modal" }, kdsModalProps.value), createSlots({ _: 2 }, [
3856
+ unref(config)?.type === "confirm" ? {
3857
+ name: "body",
3858
+ fn: withCtx(() => [unref(internal).isTemplateBasedConfirm(unref(config).value) ? (openBlock(), createBlock(resolveDynamicComponent(unref(config).value.component), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1$1, [createElementVNode("div", _hoisted_2, toDisplayString(unref(config).value.message), 1), unref(config).value.doNotAskAgain ? (openBlock(), createElementBlock("div", _hoisted_3, [createVNode(KdsCheckbox_default, {
3859
+ modelValue: askAgain.value,
3860
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => askAgain.value = $event),
3861
+ label: unref(config).value.doNotAskAgain.label,
3862
+ "sub-text": unref(config).value.doNotAskAgain.subText
3863
+ }, null, 8, [
3864
+ "modelValue",
3865
+ "label",
3866
+ "sub-text"
3867
+ ])])) : createCommentVNode("", true)]))]),
3868
+ key: "0"
3869
+ } : void 0,
3870
+ unref(config)?.type === "confirm" ? {
3871
+ name: "footer",
3872
+ fn: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(config).value.buttons, (button, index) => {
3873
+ return openBlock(), createBlock(KdsButton_default, {
3874
+ key: index,
3875
+ destructive: button.destructive,
3876
+ autofocus: button.autofocus,
3877
+ label: button.label,
3878
+ variant: button.variant ?? defaultVariant(button.type),
3879
+ class: normalizeClass({ "flush-left": button.flushLeft }),
3880
+ "data-test-id": `${button.type}-button`,
3881
+ onClick: ($event) => handleConfirmButton(button)
3882
+ }, null, 8, [
3883
+ "destructive",
3884
+ "autofocus",
3885
+ "label",
3886
+ "variant",
3887
+ "class",
3888
+ "data-test-id",
3889
+ "onClick"
3890
+ ]);
3891
+ }), 128))]),
3892
+ key: "1"
3893
+ } : void 0,
3894
+ unref(config)?.type === "dynamic" ? {
3895
+ name: "default",
3896
+ fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(unref(config).value.component), normalizeProps(guardReactiveProps({
3897
+ ...slotProps,
3898
+ context: unref(config).value.context,
3899
+ updateConfig: unref(internal).updateConfig
3900
+ })), null, 16))]),
3901
+ key: "2"
3902
+ } : void 0
3903
+ ]), 1040);
3904
+ };
3905
+ }
3906
+ }), [["__scopeId", "data-v-9937b6b2"]]);
3907
+ //#endregion
3908
+ //#region src/layouts/overlays/SideDrawer/KdsSideDrawer.vue?vue&type=script&setup=true&lang.ts
3909
+ var _hoisted_1 = ["data-width"];
3910
+ //#endregion
3911
+ //#region src/layouts/overlays/SideDrawer/KdsSideDrawer.vue
3912
+ var KdsSideDrawer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
3913
+ __name: "KdsSideDrawer",
3914
+ props: {
3915
+ isExpanded: {
3916
+ type: Boolean,
3917
+ default: false
3918
+ },
3919
+ width: { default: "default" }
3920
+ },
3921
+ setup(__props) {
3922
+ const drawerRef = useTemplateRef("drawer");
3923
+ onMounted(() => {
3924
+ watch(() => __props.isExpanded, (expanded) => {
3925
+ if (expanded) drawerRef.value?.showPopover();
3926
+ else drawerRef.value?.hidePopover();
3927
+ }, { immediate: true });
3928
+ });
3929
+ return (_ctx, _cache) => {
3930
+ return openBlock(), createElementBlock("div", {
3931
+ ref: "drawer",
3932
+ popover: "manual",
3933
+ class: "kds-side-drawer",
3934
+ "data-width": __props.width
3935
+ }, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 8, _hoisted_1);
3936
+ };
3937
+ }
3938
+ }), [["__scopeId", "data-v-a62ccf38"]]);
3939
+ //#endregion
3940
+ export { KdsIcon_default as C, useKdsIsTruncated as D, elementOverflowsHorizontally as E, hotkeys as S, vKdsTooltip as T, KdsButton_default as _, BaseCheckbox_default as a, formatFileSize as b, KdsModalLayout_default as c, kdsModalHeight as d, kdsModalHeightSizes as f, kdsModalWidthSizes as g, kdsModalWidth as h, KdsCheckbox_default as i, kdsModalClosedBy as l, kdsModalVariants as m, KdsDynamicModalProvider_default as n, KdsSubText_default as o, kdsModalVariant as p, useKdsDynamicModal as r, KdsModal_default as s, KdsSideDrawer_default as t, kdsModalClosedByOptions as u, BaseButton_default as v, useIcon as w, getMetaOrCtrlKey as x, KdsLoadingSpinner_default as y };
3941
+
3942
+ //# sourceMappingURL=overlays-DzSbLjAj.js.map